/* ============================================================
   mstyles.css — Castlerock Construction & Concrete
   Home Page Styles (header + footer shared with substyles.css)

   DESIGN TOKENS
   ─────────────────────────────────────────────────────────
   Brand Red:       #C0181F   (darkened from logo #ED1C24 for
                               WCAG AA contrast on white ≥ 4.5:1)
   Brand Red Hover: #9E1319
   Near Black:      #1A1A1A   (text, nav, footer bg)
   Steel Gray:      #3D4A56   (secondary text, subheadings)
   Off White:       #F5F5F5   (section alternating bg)
   White:           #FFFFFF
   Gold Accent:     #B08D57   (signature element — used on
                               section dividers + icon accents;
                               evokes raw steel & ironwork)

   TYPOGRAPHY (via bunny.net)
   ─────────────────────────────────────────────────────────
   Display/Headings: Barlow Condensed 700 — strong, industrial,
                     wide tracking; perfect for a construction brand.
                     Used with restraint at large sizes only.
   Body:             Open Sans 400/600 — clean, accessible,
                     excellent legibility at small sizes.
   Utility/Labels:   Open Sans 600 uppercase — captions, tags.

   SIGNATURE ELEMENT
   ─────────────────────────────────────────────────────────
   A 4px left border in gold (#B08D57) on section heading
   eyebrows ("Our Services", "About Us" etc.), paired with
   a thin horizontal rule in the same gold. This references
   the structural steel angle iron used in construction —
   a material-world detail that no generic template would choose.
   ============================================================ */

/* ─── Reset & Base ─────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  color: #1A1A1A;
  background: #FFFFFF;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Respect reduced-motion preference — WCAG 2.3.3 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── Typography ───────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow Condensed', 'Open Sans', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin-top: 0;
  color: #1A1A1A;
}

h1 { font-size: clamp(2rem,   5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem);  }
h3 { font-size: clamp(1.3rem, 3vw, 2rem);    }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem);  }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem;   }

p { margin-top: 0; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: #C0181F;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
a:hover, a:focus { color: #9E1319; }

/* Visible focus outline — WCAG 2.4.7 */
:focus-visible {
  outline: 3px solid #B08D57;
  outline-offset: 3px;
  border-radius: 2px;
}

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin-top: 0; padding-left: 1.5rem; }

/* ─── Skip Link — WCAG 2.4.1 ───────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: #C0181F;
  color: #FFFFFF;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0 0 4px 4px;
  z-index: 10000;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid #B08D57;
  outline-offset: 3px;
}

/* ─── Section Heading Style (Signature Gold Eyebrow) ────── */
.section-eyebrow {
  display: inline-block;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  /* #8B6914 passes WCAG AA (4.52:1) on white and off-white.
     On dark backgrounds (#1A1A1A) this still reads as warm gold. */
  color: #8B6914;
  border-left: 4px solid #8B6914;
  padding-left: 0.6rem;
  margin-bottom: 0.6rem;
  line-height: 1;
}

.section-heading {
  font-family: 'Barlow Condensed', 'Open Sans', sans-serif;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-subtext {
  color: #3D4A56;
  font-size: 1.05rem;
  max-width: 640px;
}

/* Center variant */
.section-head--center {
  text-align: center;
}
.section-head--center .section-eyebrow {
  border-left: none;
  padding-left: 0;
  display: block;
}
.section-head--center .section-subtext {
  margin-left: auto;
  margin-right: auto;
}

/* On dark backgrounds, revert eyebrow to warm gold #B08D57
   which passes WCAG AA (5.63:1) on #1A1A1A and #111111 */
.content-section--dark .section-eyebrow,
.testimonials-section .section-eyebrow,
.page-hero .section-eyebrow {
  color: #B08D57;
  border-left-color: #B08D57;
}

/* ─── HEADER ────────────────────────────────────────────── */
.site-header {
  background: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  border-bottom: 3px solid #C0181F;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  height: 88px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  height: 50px;
  width: auto;
}

/* Logo text fallback (when no image yet) */
.site-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.site-logo-text .logo-main {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: #1A1A1A;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.site-logo-text .logo-sub {
  font-size: 0.65rem;
  color: #B08D57;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Desktop Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav > li {
  position: relative;
}

.main-nav > li > a,
.main-nav > li > button {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.85rem;
  color: #3D4A56;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  height: 88px;
}

.main-nav > li > a:hover,
.main-nav > li > a:focus,
.main-nav > li > button:hover,
.main-nav > li > button:focus {
  color: #C0181F;
  border-bottom-color: #C0181F;
}

.main-nav > li > a.nav-active {
  color: #C0181F;
  border-bottom-color: #C0181F;
}

/* Dropdown arrow */
.nav-arrow {
  font-size: 0.6rem;
  transition: transform 0.2s;
  pointer-events: none;
}
.main-nav > li.nav-open > button .nav-arrow {
  transform: rotate(180deg);
}

/* Dropdown menu */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #FFFFFF;
  border-top: 3px solid #C0181F;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  display: none;
  z-index: 200;
}

.main-nav > li.nav-open > .nav-dropdown,
.main-nav > li:hover > .nav-dropdown,
.main-nav > li:focus-within > .nav-dropdown {
  display: block;
}

.nav-dropdown li a {
  display: block;
  padding: 0.6rem 1.2rem;
  color: #1A1A1A;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.nav-dropdown li a:hover,
.nav-dropdown li a:focus {
  background: #F5F5F5;
  border-left-color: #C0181F;
  color: #C0181F;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #1A1A1A;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}
.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(0,0,0,0.07);
  outline: 3px solid #B08D57;
  outline-offset: 2px;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #1A1A1A;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger → X animation */
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}
.mobile-nav.is-open {
  display: block;
  pointer-events: auto;
}

.mobile-nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0.65);
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: #1A1A1A;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mobile-nav.is-open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-close {
  background: none;
  border: none;
  color: #E8E8E8;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  line-height: 1;
  transition: color 0.2s, background 0.2s;
}
.mobile-nav-close:hover,
.mobile-nav-close:focus-visible {
  color: #FFFFFF;
  background: rgba(255,255,255,0.1);
  outline: 3px solid #B08D57;
  outline-offset: 2px;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0;
  flex: 1;
}

.mobile-nav-list li a,
.mobile-nav-list li button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 1.25rem;
  color: #E8E8E8;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.mobile-nav-list li a:hover,
.mobile-nav-list li a:focus,
.mobile-nav-list li button:hover,
.mobile-nav-list li button:focus {
  background: rgba(255,255,255,0.07);
  border-left-color: #C0181F;
  color: #FFFFFF;
}

.mobile-nav-list li a.nav-active {
  border-left-color: #C0181F;
  color: #FFFFFF;
}

/* Mobile sub-menu */
.mobile-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgba(255,255,255,0.04);
  display: none;
}
.mobile-submenu.is-open { display: block; }

.mobile-submenu li a {
  padding-left: 2.25rem;
  font-size: 0.88rem;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 400;
  border-left: 3px solid transparent;
}
.mobile-submenu li a:hover,
.mobile-submenu li a:focus {
  border-left-color: #B08D57;
}

.mobile-nav-contact {
  padding: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav-contact a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #B08D57;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.mobile-nav-contact a:hover { color: #c9a06a; }

@media (max-width: 1023px) {
  .main-nav  { display: none; }
  .nav-toggle { display: flex; }
}

/* ─── HERO SLIDER ───────────────────────────────────────── */
/*
  Image ratio: 16:9 on desktop, 4:3 on mobile.
  16:9 gives full cinematic width without being so tall
  that content is pushed below the fold on laptop screens.
  4:3 on mobile (< 640px) keeps the image substantial without
  being a vertical strip on narrow phones.

  To replace placeholder slides: swap the background-image
  value on each .slide-N rule in your CSS or inline style.
  Recommended image size: 1600 × 900px minimum, JPEG optimized.
  Keep focal point centered — both ends may be cropped on
  narrower viewports due to object-fit: cover.
*/
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #1A1A1A;
  /* 16:9 aspect ratio — maintain this comment for future editors */
  aspect-ratio: 16 / 9;
}

@media (max-width: 639px) {
  .hero-slider {
    /* 4:3 on mobile — better suited to portrait viewport proportions */
    aspect-ratio: 4 / 3;
  }
}

.slider-track {
  display: flex;
  height: 100%;
  /* Transition: crossfade via opacity, NOT slide movement.
     Movement-based transitions can trigger vestibular disorders.
     WCAG 2.3.3 — motion from interactions must be disableable. */
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  /* Crossfade — safe for photosensitivity (no flash, < 3 flashes/sec) */
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
}

.slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Placeholder slide backgrounds (swap for real images) */
/* Images should be 1600×900px minimum JPEG or WebP — 16:9 ratio */
.slide-1 {
  background-image: url('../images/home-slides/home-slide1.webp');
}
.slide-2 {
  background-image: url('../images/home-slides/home-slide2.webp');
}
.slide-3 {
  background-image: url('../images/home-slides/home-slide3.webp');
}
/* END placeholder backgrounds */

/* Dark overlay so text is always readable over any photo */
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(26,26,26,0.72) 0%,
    rgba(26,26,26,0.40) 55%,
    rgba(26,26,26,0.20) 100%
  );
}

.slide-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 1.25rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

/* Semi-transparent dark container behind slide text.
   rgba(0,0,0,0.62) gives the white text inside a contrast ratio
   well above 4.5:1 against any photo behind it — WCAG AA safe.
   Increase the alpha toward 0.80 to darken, decrease toward 0.40
   to show more of the photo through. */
.slide-box {
  background: rgba(0, 0, 0, 0.62);
  border-radius: 8px;
  padding: 2rem 2.25rem;
  max-width: 580px;
  border-left: 4px solid #C0181F;
}

.slide-eyebrow {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #B08D57;
  margin-bottom: 0.6rem;
}

.slide-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  /* Minimum 24px for WCAG — clamp ensures readability at all sizes */
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  color: #FFFFFF;
  line-height: 1.1;
  margin-bottom: 1rem;
  max-width: 600px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.slide-text {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.9);
  max-width: 480px;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Pause button — WCAG 2.2.2: moving content must be pauseable */
.slider-pause {
  background: rgba(26,26,26,0.7);
  border: 2px solid rgba(255,255,255,0.5);
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.slider-pause:hover,
.slider-pause:focus-visible {
  background: rgba(192,24,31,0.85);
  border-color: #C0181F;
  outline: 3px solid #B08D57;
  outline-offset: 3px;
}

.slider-dots {
  display: flex;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  padding: 0;
}
.slider-dot:hover {
  background: rgba(255,255,255,0.75);
}
.slider-dot.is-active {
  background: #C0181F;
  border-color: #C0181F;
  transform: scale(1.2);
}
/* Minimum 44×44px touch target — WCAG 2.5.5 */
.slider-dot {
  min-width: 44px;
  min-height: 44px;
  border-radius: 22px;
  width: auto;
  height: auto;
  padding: 16px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  position: relative;
}
.slider-dot::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: 2px solid rgba(255,255,255,0.3);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.slider-dot.is-active::after {
  background: #C0181F;
  border-color: #C0181F;
  transform: scale(1.3);
}
.slider-dot:hover::after {
  background: rgba(255,255,255,0.75);
}

/* Prev/Next arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(26,26,26,0.6);
  border: 2px solid rgba(255,255,255,0.3);
  color: #FFFFFF;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s, border-color 0.2s;
}
.slider-arrow:hover,
.slider-arrow:focus-visible {
  background: rgba(192,24,31,0.85);
  border-color: #C0181F;
  outline: 3px solid #B08D57;
  outline-offset: 3px;
}
.slider-prev { left: 1rem; }
.slider-next { right: 1rem; }

@media (max-width: 639px) {
  .slider-arrow { display: none; }

  /* On mobile, anchor content to the top so it never overlaps
     the pause/dot controls sitting at the bottom.
     Bottom padding = controls height (~70px) + breathing room. */
  .slide-content {
    justify-content: flex-start;
    padding: 1.25rem 1rem 5rem;
  }

  /* Tighten the box so it uses less vertical space on small screens */
  .slide-box {
    padding: 1.25rem 1.25rem;
    max-width: 100%;
  }

  .slide-heading {
    font-size: clamp(1.3rem, 6vw, 1.75rem);
    margin-bottom: 0.5rem;
  }

  .slide-text {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
}

/* ─── BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.6rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  line-height: 1.2;
  white-space: nowrap;
  /* Minimum 44px height — WCAG 2.5.5 */
  min-height: 44px;
}
.btn:focus-visible {
  outline: 3px solid #B08D57;
  outline-offset: 3px;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: #C0181F;
  color: #FFFFFF;
  border-color: #C0181F;
}
.btn-primary:hover, .btn-primary:focus {
  background: #9E1319;
  border-color: #9E1319;
  color: #FFFFFF;
}

.btn-secondary {
  background: transparent;
  color: #C0181F;
  border-color: #C0181F;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #C0181F;
  color: #FFFFFF;
}

.btn-white {
  background: #FFFFFF;
  color: #1A1A1A;
  border-color: #FFFFFF;
}
.btn-white:hover, .btn-white:focus {
  background: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.btn-outline-white {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover, .btn-outline-white:focus {
  background: #FFFFFF;
  color: #1A1A1A;
  border-color: #FFFFFF;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
  min-height: 52px;
}

/* ─── QUICK LINKS / ICON CARDS (below slider) ───────────── */
.quick-links {
  background: #1A1A1A;
  padding: 0;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .quick-links-grid { grid-template-columns: repeat(2, 1fr); }
}

.quick-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  text-decoration: none;
  color: #E8E8E8;
  border-right: 1px solid rgba(255,255,255,0.07);
  border-bottom: 3px solid transparent;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.quick-link-card:last-child { border-right: none; }
.quick-link-card:hover,
.quick-link-card:focus {
  background: rgba(192,24,31,0.12);
  border-bottom-color: #C0181F;
  color: #FFFFFF;
}
.quick-link-card i {
  font-size: 1.5rem;
  color: #B08D57;
  transition: color 0.2s;
}

/* Custom SVG icons in quick links — sized to match FontAwesome at 1.5rem.
   Uses CSS filter to approximate the gold color since SVG loaded as <img>
   cannot be targeted with color/fill directly.
   If your SVG uses currentColor, swap to inline SVG instead and
   remove the filter — then color: #B08D57 on .quick-link-card i will work. */
.quick-link-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  /* Approximate #B08D57 gold via filter — adjust if your SVG is not black */
  filter: invert(62%) sepia(28%) saturate(600%) hue-rotate(5deg) brightness(85%) contrast(90%);
  transition: filter 0.2s;
}
.quick-link-card:hover .quick-link-icon,
.quick-link-card:focus .quick-link-icon {
  /* Approximate #C0181F red on hover — matches FontAwesome icon hover */
  filter: invert(14%) sepia(90%) saturate(3000%) hue-rotate(349deg) brightness(85%) contrast(110%);
}
.quick-link-card:hover i,
.quick-link-card:focus i {
  color: #C0181F;
}
.quick-link-card span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── SERVICES ICON CARDS SECTION ──────────────────────── */
.services-strip {
  background: #FFFFFF;
  padding: 5rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

/* 3-column variant — used on home page */
.services-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1023px) {
  .services-grid,
  .services-grid--3col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 599px) {
  .services-grid,
  .services-grid--3col { grid-template-columns: 1fr; }
}

.service-card {
  background: #F5F5F5;
  border-top: 4px solid transparent;
  border-radius: 4px;
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: #1A1A1A;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.service-card:hover,
.service-card:focus {
  border-top-color: #C0181F;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  transform: translateY(-3px);
  color: #1A1A1A;
}

/* Use .service-card--static on non-link cards (e.g. core values)
   to suppress the hover/focus lift effect */
.service-card--static:hover,
.service-card--static:focus {
  border-top-color: transparent;
  box-shadow: none;
  transform: none;
  cursor: default;
}
.service-card i {
  font-size: 2.2rem;
  color: #C0181F;
  margin-bottom: 1rem;
}

/* Custom SVG icon inside service cards — matches fa at 2.2rem */
.service-card-icon-svg {
  width: 2.6rem;
  height: 2.6rem;
  display: block;
  margin: 0 auto 1rem;
  /* Colorize to brand red #C0181F — assumes black source SVG */
  filter: invert(14%) sepia(90%) saturate(3000%) hue-rotate(349deg) brightness(85%) contrast(110%);
  transition: filter 0.2s;
}
.service-card:hover .service-card-icon-svg,
.service-card:focus .service-card-icon-svg {
  filter: invert(14%) sepia(90%) saturate(3000%) hue-rotate(349deg) brightness(75%) contrast(120%);
}
.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: #1A1A1A;
}
.service-card p {
  font-size: 0.9rem;
  color: #3D4A56;
  margin: 0;
  line-height: 1.6;
}

/* ─── ABOUT + VIDEO SECTION ─────────────────────────────── */
.about-section {
  background: #F5F5F5;
  padding: 5rem 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 767px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.about-text .section-eyebrow { margin-bottom: 0.5rem; }
.about-text h2 { margin-bottom: 1rem; }
.about-text p  { color: #3D4A56; }

/* Video wrapper — 16:9 */
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1A1A1A;
  border-radius: 4px;
  overflow: hidden;
}
.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ─── FEATURED SERVICES CARDS ───────────────────────────── */
.featured-services {
  background: #FFFFFF;
  padding: 5rem 0;
}

.featured-grid {
  display: grid;
  /* 2 across on medium/large, 1 across on mobile */
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}

@media (max-width: 639px) {
  .featured-grid { grid-template-columns: 1fr; }
}

/* Full card is a link — no redundant "Read More" text */
.featured-card {
  display: block;
  text-decoration: none;
  color: #1A1A1A;
  background: #FFFFFF;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid #E8E8E8;
  transition: box-shadow 0.2s, transform 0.2s;
}
.featured-card:hover,
.featured-card:focus {
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
  transform: translateY(-3px);
  color: #1A1A1A;
}

/* 4:3 image ratio — keep this comment for future editors.
   This ratio is flexible enough to look great from mobile
   to desktop without awkward letterboxing or excessive height. */
.featured-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #3D4A56;
  position: relative;
}
.featured-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.featured-card:hover .featured-card-img img,
.featured-card:focus .featured-card-img img {
  transform: scale(1.04);
}

/* Placeholder when no image */
.featured-card-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3D4A56 0%, #1A1A1A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.featured-card-img-placeholder i {
  font-size: 3rem;
  color: rgba(176,141,87,0.6);
}

.featured-card-body {
  padding: 1.5rem;
}
.featured-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #1A1A1A;
  transition: color 0.2s;
}
.featured-card:hover .featured-card-body h3,
.featured-card:focus .featured-card-body h3 {
  color: #C0181F;
}
.featured-card-body p {
  font-size: 0.9rem;
  color: #3D4A56;
  margin: 0;
  line-height: 1.65;
}

.featured-services-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ─── TESTIMONIALS ──────────────────────────────────────── */
.testimonials-section {
  background: #1A1A1A;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

/* Subtle background texture using CSS — construction feel */
.testimonials-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(176,141,87,0.025) 40px,
    rgba(176,141,87,0.025) 80px
  );
  pointer-events: none;
}

.testimonials-section .section-eyebrow { color: #B08D57; }
.testimonials-section .section-heading { color: #FFFFFF; }

.testimonial-carousel {
  position: relative;
  margin-top: 3rem;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s ease;
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 1rem);
  background: rgba(255,255,255,0.06);
  border-left: 4px solid #B08D57;
  border-radius: 4px;
  padding: 2rem;
  position: relative;
}

@media (max-width: 1023px) {
  .testimonial-card { flex: 0 0 calc(50% - 0.75rem); }
}
@media (max-width: 639px) {
  .testimonial-card { flex: 0 0 90%; }
}

.testimonial-quote-mark {
  font-size: 3.5rem;
  line-height: 1;
  color: #B08D57;
  font-family: Georgia, serif;
  margin-bottom: 0.5rem;
  opacity: 0.7;
  display: block;
}

.testimonial-text {
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-attribution {
  font-weight: 600;
  font-size: 0.85rem;
  color: #FFFFFF;
  letter-spacing: 0.03em;
}
.testimonial-location {
  font-size: 0.8rem;
  color: #B08D57;
  font-weight: 400;
}
.testimonial-service-tag {
  display: inline-block;
  margin-top: 0.5rem;
  background: rgba(192,24,31,0.25);
  color: rgba(255,255,255,0.75);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

/* Carousel controls */
.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.testimonial-btn {
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  color: #FFFFFF;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.testimonial-btn:hover,
.testimonial-btn:focus-visible {
  background: #C0181F;
  border-color: #C0181F;
  outline: 3px solid #B08D57;
  outline-offset: 3px;
}

/* ─── GALLERY PREVIEW ───────────────────────────────────── */
.gallery-preview {
  background: #F5F5F5;
  padding: 5rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 3rem;
}

@media (max-width: 767px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 479px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-item {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #3D4A56;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img,
.gallery-item:focus img {
  transform: scale(1.06);
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0);
  transition: background 0.2s;
}
.gallery-item:hover::after,
.gallery-item:focus::after {
  background: rgba(192,24,31,0.15);
}

/* Placeholder gallery items */
.gallery-item-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3D4A56 0%, #2c3e50 100%);
}
.gallery-item-placeholder i {
  font-size: 2rem;
  color: rgba(176,141,87,0.5);
}

.gallery-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ─── FAQ SECTION ───────────────────────────────────────── */
.faq-section {
  background: #FFFFFF;
  padding: 5rem 0;
}

.faq-list {
  margin-top: 2.5rem;
  border-top: 1px solid #E8E8E8;
}

.faq-item {
  border-bottom: 1px solid #E8E8E8;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  text-align: left;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #1A1A1A;
  transition: color 0.2s;
}
.faq-question:hover { color: #C0181F; }
.faq-question:focus-visible {
  outline: 3px solid #B08D57;
  outline-offset: 2px;
  border-radius: 2px;
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #F5F5F5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C0181F;
  font-size: 0.75rem;
  transition: background 0.2s, transform 0.3s;
}
.faq-item.is-open .faq-icon {
  background: #C0181F;
  color: #FFFFFF;
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.is-open .faq-answer {
  max-height: 600px;
  padding-bottom: 1.2rem;
}
.faq-answer p {
  color: #3D4A56;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.faq-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ─── CTA BAND ──────────────────────────────────────────── */
.cta-band {
  background: #C0181F;
  padding: 4rem 0;
  text-align: center;
}

.cta-band h2 {
  color: #FFFFFF;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 0.75rem;
}
.cta-band p {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── FOOTER ────────────────────────────────────────────── */
.site-footer {
  background: #111111;
  color: #C8C8C8;
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 599px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand .site-logo-text .logo-main { font-size: 1.1rem; }
.footer-tagline {
  font-size: 0.875rem;
  color: #999;
  margin-top: 0.75rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}
.footer-contact-item i {
  color: #B08D57;
  font-size: 0.9rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.footer-contact-item a {
  color: #C8C8C8;
  text-decoration: none;
}
.footer-contact-item a:hover { color: #FFFFFF; }

.footer-col h4 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #B08D57;
  display: inline-block;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li + li { margin-top: 0.4rem; }
.footer-links a {
  color: #999;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: #FFFFFF; }

/* Footer service area blurb */
.footer-service-area {
  font-size: 0.8rem;
  color: #999;
  line-height: 1.6;
}
.footer-service-area strong { color: #B08D57; }

/* Footer bottom bar */
.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-bottom-text {
  font-size: 0.78rem;
  color: #999;
}
.footer-bottom-text a {
  color: #999;
  text-decoration: none;
}
.footer-bottom-text a:hover { color: #C8C8C8; }

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-legal-links a {
  font-size: 0.78rem;
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal-links a:hover { color: #C8C8C8; }

@media (max-width: 599px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ─── BREADCRUMBS (sub pages) ──────────────────────────── */
.breadcrumbs {
  background: #F5F5F5;
  border-bottom: 1px solid #E8E8E8;
  padding: 0.6rem 0;
}
.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
}
.breadcrumbs li { display: flex; align-items: center; gap: 0.3rem; }
.breadcrumbs li::after {
  content: '/';
  color: #AAA;
  margin-left: 0.3rem;
}
.breadcrumbs li:last-child::after { display: none; }
.breadcrumbs a {
  color: #3D4A56;
  text-decoration: none;
}
.breadcrumbs a:hover { color: #C0181F; text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: #6B6B6B; }

/* ─── PAGE HERO (sub pages) ─────────────────────────────── */
.page-hero {
  background: #1A1A1A;
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #C0181F 0%, #B08D57 50%, #C0181F 100%);
}
.page-hero h1 {
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}
.page-hero .lead {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0;
}

/* ─── CONTENT SECTIONS (sub pages) ─────────────────────── */
.content-section {
  padding: 4.5rem 0;
}
.content-section--gray {
  background: #F5F5F5;
}
.content-section--dark {
  background: #1A1A1A;
  color: #E8E8E8;
}
.content-section--dark h2,
.content-section--dark h3,
.content-section--dark h4 {
  color: #FFFFFF;
}
.content-section--dark p {
  color: rgba(255,255,255,0.8);
}

/* ─── SERVICE DETAIL GRID ──────────────────────────────── */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 767px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.service-detail-grid img {
  border-radius: 4px;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ─── ICON LIST ─────────────────────────────────────────── */
.icon-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}
.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.45rem 0;
  font-size: 0.95rem;
  color: #3D4A56;
  border-bottom: 1px solid #E8E8E8;
}
.icon-list li:last-child { border-bottom: none; }
.icon-list i {
  color: #C0181F;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  flex-shrink: 0;
}

/* ─── CONTACT FORM AREA ─────────────────────────────────── */
.contact-wrapper {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: flex-start;
}
@media (max-width: 767px) {
  .contact-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
}

.form-placeholder {
  background: #F5F5F5;
  border: 2px dashed #D0D0D0;
  border-radius: 4px;
  padding: 3rem 2rem;
  text-align: center;
  color: #888;
}
.form-placeholder p { margin: 0; font-size: 1rem; }

.contact-info-block { }
.contact-info-block h3 { margin-bottom: 1.25rem; }
.contact-info-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  align-items: flex-start;
}
.contact-info-item i {
  color: #C0181F;
  font-size: 1.1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}
.contact-info-item a {
  color: #1A1A1A;
  text-decoration: none;
}
.contact-info-item a:hover { color: #C0181F; }

/* ─── SAFETY SECTION ────────────────────────────────────── */
.safety-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (max-width: 599px) {
  .safety-stats { grid-template-columns: 1fr; }
}

.stat-card {
  background: #F5F5F5;
  border-top: 4px solid #B08D57;
  padding: 1.75rem 1.25rem;
  text-align: center;
  border-radius: 4px;
}
.stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 2.8rem;
  color: #C0181F;
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.82rem;
  color: #3D4A56;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-top: 0.4rem;
}

/* ─── GALLERY PAGE ──────────────────────────────────────── */
.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}
@media (max-width: 767px) {
  .gallery-page-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 479px) {
  .gallery-page-grid { grid-template-columns: 1fr; }
}

.gallery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.filter-btn {
  background: #F5F5F5;
  border: 2px solid #E8E8E8;
  color: #3D4A56;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  min-height: 44px;
}
.filter-btn:hover,
.filter-btn.is-active {
  background: #C0181F;
  border-color: #C0181F;
  color: #FFFFFF;
}
.filter-btn:focus-visible {
  outline: 3px solid #B08D57;
  outline-offset: 3px;
}

/* ─── Services Landing Page ────────────────────────────── */
.services-landing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}
@media (max-width: 1023px) {
  .services-landing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 599px) {
  .services-landing-grid { grid-template-columns: 1fr; }
}

.service-landing-card {
  display: block;
  text-decoration: none;
  color: #1A1A1A;
  background: #FFFFFF;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid #E8E8E8;
  border-bottom: 4px solid transparent;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.service-landing-card:hover,
.service-landing-card:focus {
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
  transform: translateY(-3px);
  border-bottom-color: #C0181F;
  color: #1A1A1A;
}
.service-landing-card-icon {
  background: #1A1A1A;
  padding: 2rem;
  text-align: center;
}
.service-landing-card-icon i {
  font-size: 2.5rem;
  color: #B08D57;
}
.service-landing-card-body {
  padding: 1.5rem;
}
.service-landing-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.service-landing-card:hover h3,
.service-landing-card:focus h3 {
  color: #C0181F;
}
.service-landing-card-body p {
  font-size: 0.875rem;
  color: #3D4A56;
  margin: 0;
  line-height: 1.65;
}

/* ─── Service Area Map Placeholder ─────────────────────── */
.service-area-box {
  background: #F5F5F5;
  border: 2px solid #E8E8E8;
  border-radius: 4px;
  padding: 2rem;
  text-align: center;
}
.service-area-states {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}
.state-tag {
  background: #1A1A1A;
  color: #E8E8E8;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
}
.state-tag--primary {
  background: #C0181F;
  color: #FFFFFF;
}

/* ─── Accessibility Statement, Privacy, Terms pages ────── */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}
.legal-content h2 { margin-top: 2rem; }
.legal-content h3 { margin-top: 1.5rem; color: #3D4A56; }

/* ─── GALLERY LIGHTBOX ──────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
}
.lightbox.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

.lightbox-container {
  position: relative;
  z-index: 1;
  max-width: min(920px, 94vw);
  width: 100%;
  background: #1A1A1A;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  background: rgba(0,0,0,0.65);
  border: 2px solid rgba(255,255,255,0.3);
  color: #FFFFFF;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s, border-color 0.2s;
}
.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: #C0181F;
  border-color: #C0181F;
  outline: 3px solid #B08D57;
  outline-offset: 3px;
}

.lightbox-img-wrap {
  width: 100%;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-height: 72vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 72vh;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.lightbox-footer {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: #1A1A1A;
}

.lightbox-caption {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  margin: 0;
  flex: 1;
  min-width: 0;
}

/* Zoom cursor hint on gallery items */
.gallery-lightbox-trigger {
  cursor: zoom-in;
}

@media (max-width: 599px) {
  .lightbox-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* ─── ABOUT PAGE IMAGE ──────────────────────────────────── */
/* 4:3 ratio enforced at all screen sizes.
   Replace /images/about-team.jpg with your actual photo path.
   If the image fails to load, the placeholder block shows instead. */
.about-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
  display: block;
}

.img-placeholder-block {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #1A1A1A 0%, #3D4A56 100%);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: rgba(176,141,87,0.5);
}
.img-placeholder-block i    { font-size: 3rem; }
.img-placeholder-block span { font-size: 0.85rem; color: #555; }

/* ─── SERVICES PAGE LAYOUT ──────────────────────────────── */
.services-page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 1023px) {
  .services-page-layout {
    grid-template-columns: 1fr;
  }
  /* On mobile sidebar moves below main content */
  .services-page-sidebar {
    order: -1;
  }
}

.services-page-intro {
  font-size: 1.05rem;
  color: #3D4A56;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #E8E8E8;
}

/* Individual service listing row */
.services-page-item {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid #E8E8E8;
  align-items: flex-start;
}
.services-page-item:last-child {
  border-bottom: none;
}

.services-page-item-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: #F5F5F5;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 3px solid #C0181F;
}
.services-page-item-icon i {
  font-size: 1.4rem;
  color: #C0181F;
}
.services-page-svg {
  width: 1.6rem;
  height: 1.6rem;
  /* Colorize black SVG to brand red */
  filter: invert(14%) sepia(90%) saturate(3000%) hue-rotate(349deg) brightness(85%) contrast(110%);
}

.services-page-item-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #1A1A1A;
}
.services-page-item-body p {
  color: #3D4A56;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Sidebar */
.services-page-sidebar {
  position: sticky;
  top: 104px; /* header height + breathing room */
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-block {
  background: #F5F5F5;
  border-radius: 4px;
  padding: 1.5rem;
  border-top: 4px solid #C0181F;
}

.sidebar-block--dark {
  background: #1A1A1A;
  border-top-color: #C0181F;
}
.sidebar-block--dark p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.sidebar-block-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #1A1A1A;
}
.sidebar-block--dark .sidebar-block-heading {
  color: #FFFFFF;
}

.sidebar-services-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-services-list li + li {
  border-top: 1px solid #E8E8E8;
}
.sidebar-services-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0;
  color: #3D4A56;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}
.sidebar-services-list a:hover {
  color: #C0181F;
}
.sidebar-services-list i {
  font-size: 0.65rem;
  color: #C0181F;
  flex-shrink: 0;
}

@media (max-width: 1023px) {
  .services-page-sidebar {
    position: static;
  }
}

/* ─── ABOUT SECTION INLINE SLIDER ──────────────────────────
   4:3 ratio enforced at all screen sizes via aspect-ratio.
   Crossfade transitions (no movement) — WCAG vestibular safe.
   Pause button required per WCAG 2.2.2.
   Arrows min 44×44px — WCAG 2.5.5.
   To add images: duplicate .about-slide, update src/alt,
   add matching .about-dot button, update aria-label counts.
─────────────────────────────────────────────────────────── */
.about-slider {
  position: relative;
  width: 100%;
  /* 4:3 ratio — maintained at every screen size */
  aspect-ratio: 4 / 3;
  background: #1A1A1A;
  border-radius: 4px;
  overflow: hidden;
}

.about-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  /* Crossfade — no slide movement (vestibular safety) */
  transition: opacity 0.7s ease-in-out;
  pointer-events: none;
}
.about-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.about-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Prev / Next arrows — 44×44px minimum touch target */
.about-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(26,26,26,0.65);
  border: 2px solid rgba(255,255,255,0.3);
  color: #FFFFFF;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.2s, border-color 0.2s;
}
.about-slider-arrow:hover,
.about-slider-arrow:focus-visible {
  background: rgba(192,24,31,0.85);
  border-color: #C0181F;
  outline: 3px solid #B08D57;
  outline-offset: 3px;
}
.about-slider-prev { left: 0.6rem; }
.about-slider-next { right: 0.6rem; }

/* Controls bar — pause + dots */
.about-slider-controls {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Pause button */
.about-slider-pause {
  background: rgba(26,26,26,0.7);
  border: 2px solid rgba(255,255,255,0.4);
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.about-slider-pause:hover,
.about-slider-pause:focus-visible {
  background: rgba(192,24,31,0.85);
  border-color: #C0181F;
  outline: 3px solid #B08D57;
  outline-offset: 3px;
}

/* Dots — 44×44px touch targets */
.about-slider-dots {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.about-dot {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
}
.about-dot::after {
  content: '';
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: 2px solid rgba(255,255,255,0.3);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.about-dot.is-active::after {
  background: #C0181F;
  border-color: #C0181F;
  transform: scale(1.3);
}
.about-dot:hover::after { background: rgba(255,255,255,0.75); }
.about-dot:focus-visible {
  outline: 3px solid #B08D57;
  outline-offset: 3px;
  border-radius: 4px;
}
