/* M Kelly Roofing Solutions — Bootstrap overrides (logo brand colors) */

:root {
  --bs-primary: #e30613;
  --bs-primary-rgb: 227, 6, 19;
  --bs-body-font-family: "Inter", system-ui, -apple-system, sans-serif;
  --bs-body-color: #4a4a4a;
  --bs-light: #f7f7f7;
  --bs-border-color: #e5e5e5;

  --brand-red: #e30613;
  --brand-red-dark: #b8050f;
  --brand-red-light: #fdf0f0;
  --brand-gray: #6d6e71;
  --brand-gray-dark: #4a4a4a;
  --brand-gray-darker: #2f2f2f;
  --brand-gray-light: #f5f5f5;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  background: #ffffff;
  padding-bottom: 0;
}

@media (max-width: 991.98px) {
  body {
    padding-bottom: 76px;
  }
}

/* Typography */
h1, h2, h3, .display-6 {
  font-family: "Barlow Condensed", "Inter", sans-serif;
  letter-spacing: 0.01em;
}

.section-intro {
  max-width: 640px;
}

.section-label {
  letter-spacing: 0.12em;
  font-family: "Barlow Condensed", "Inter", sans-serif;
  font-style: italic;
}

.py-lg-6 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

/* Top bar */
.topbar {
  background: var(--brand-gray-light);
  border-bottom: 1px solid var(--bs-border-color);
}

.topbar-phone {
  color: var(--brand-red);
}

.topbar-phone:hover {
  color: var(--brand-red-dark);
}

/* Logo */
.site-logo {
  height: 52px;
  width: auto;
  display: block;
}

.site-logo--footer {
  height: 48px;
}

.navbar-brand {
  padding: 0;
}

.navbar.scrolled {
  box-shadow: 0 1px 12px rgba(47, 47, 47, 0.08);
}

.nav-link {
  color: var(--brand-gray) !important;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem !important;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--brand-red) !important;
}

/* Buttons */
.btn-primary {
  background: var(--brand-red);
  border-color: var(--brand-red);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
}

.btn-outline-primary {
  color: var(--brand-red);
  border-color: var(--brand-red);
}

.btn-outline-primary:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
}

.text-primary {
  color: var(--brand-red) !important;
}

/* Hero */
.hero {
  min-height: 85vh;
  min-height: 85dvh;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(47, 47, 47, 0.9) 0%,
    rgba(74, 74, 74, 0.78) 50%,
    rgba(109, 110, 113, 0.55) 100%
  );
}

.min-vh-hero {
  min-height: 75vh;
  min-height: 75dvh;
}

.hero-badge {
  background: rgba(227, 6, 19, 0.15) !important;
  color: #fff !important;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(227, 6, 19, 0.45);
  font-family: "Barlow Condensed", sans-serif;
  font-style: italic;
  text-transform: uppercase;
}

.hero h1 {
  font-style: italic;
}

.hero-trust {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-trust i {
  color: var(--brand-red);
}

/* Trust icons */
.trust-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-red-light);
  color: var(--brand-red);
  border-radius: 12px;
  font-size: 1.25rem;
}

/* Services */
.service-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card-featured {
  border: 2px solid var(--brand-red) !important;
}

.service-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-red-light);
  color: var(--brand-red);
  border-radius: 10px;
  font-size: 1.125rem;
}

/* About */
.about-image-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: 24px;
  background: #fff;
  padding: 1.25rem 1.5rem;
  max-width: 180px;
  border-left: 4px solid var(--brand-red);
}

.about-list li {
  padding: 0.375rem 0;
  color: var(--brand-gray-dark);
  font-size: 0.9375rem;
}

/* Process */
.process-num {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid var(--brand-red);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-red);
  font-family: "Barlow Condensed", sans-serif;
}

.process-step {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem 1.25rem;
  border: 1px solid var(--bs-border-color);
}

/* Gallery */
.gallery-filter .nav-link {
  color: var(--brand-gray);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  border: 1px solid var(--bs-border-color);
  background: #fff;
}

.gallery-filter .nav-link.active {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}

.gallery-item {
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--brand-gray-light);
  transition: opacity 0.2s ease;
  position: relative;
  display: block;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  pointer-events: none;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.04);
}

.gallery-item--video .gallery-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 47, 47, 0.25);
  pointer-events: none;
  transition: background 0.2s ease;
}

.gallery-item--video .gallery-play i {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-red);
  border-radius: 50%;
  font-size: 1.5rem;
  padding-left: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.gallery-item--video:hover .gallery-play {
  background: rgba(47, 47, 47, 0.35);
}

.gallery-modal-media {
  background: #000;
  max-height: 80vh;
}

.gallery-modal-media img,
.gallery-modal-video {
  max-height: 80vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: var(--brand-gray-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.gallery-nav-prev { left: 12px; }
.gallery-nav-next { right: 12px; }

/* Areas map */
.areas-map {
  background: var(--brand-gray-light);
  border: 1px solid var(--bs-border-color);
}

.areas-map-inner {
  width: 280px;
  height: 280px;
  background: #fff;
  border-radius: 50%;
  border: 1px solid var(--bs-border-color);
}

.area-pin {
  position: absolute;
  padding: 0.375rem 0.875rem;
  background: #fff;
  border: 1px solid var(--bs-border-color);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-gray-dark);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(47, 47, 47, 0.08);
}

.area-pin::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--brand-red);
  border-radius: 50%;
  margin-right: 6px;
}

.area-pin-dublin { top: 22%; left: 50%; transform: translateX(-50%); }
.area-pin-kildare { bottom: 36%; left: 12%; }
.area-pin-wicklow { bottom: 18%; right: 8%; }

/* FAQ */
.faq-accordion {
  max-width: 760px;
}

.accordion-button:not(.collapsed) {
  background: var(--brand-red-light);
  color: var(--brand-gray-dark);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--bs-border-color);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--brand-gray-darker) 0%, var(--brand-red) 100%);
}

/* Contact */
.contact-card {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

a.contact-card:hover {
  border-color: var(--brand-red) !important;
  box-shadow: 0 2px 12px rgba(227, 6, 19, 0.12);
}

.form-control,
.form-select {
  border-color: var(--bs-border-color);
  font-size: 0.9375rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 0.2rem rgba(227, 6, 19, 0.12);
}

.form-control-lg,
.form-select-lg {
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

/* Footer */
.footer {
  background: var(--brand-gray-light) !important;
}

.footer a:hover {
  color: var(--brand-red) !important;
}

/* Mobile CTA */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-top: 1px solid var(--bs-border-color);
  box-shadow: 0 -4px 20px rgba(47, 47, 47, 0.08);
}

/* Modal backdrop */
.modal-backdrop.show {
  opacity: 0.85;
}

@media (max-width: 575.98px) {
  .site-logo {
    height: 42px;
  }
}
