/* ============================================================================
   All American Fence Co. — shared site stylesheet
   Single source of truth for the whole multi-page site (homepage, service
   pages, service-area pages). Lean self-hosted pattern: local woff2 fonts,
   local images, no CDN, no base64. Paths inside this file are relative to
   this file's location (assets/), so ../fonts and ../images resolve the same
   for every HTML page that links it, regardless of that page's folder depth.
   ============================================================================ */

/* ============ Fonts ============ */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Barlow-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Barlow-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Barlow-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/Barlow-ExtraBold.woff2') format('woff2');
}

/* ============ Tokens ============ */
:root {
  --navy: #0A3161;
  --navy-deep: #06203F;
  --red: #B22234;
  --red-hover: #8E1B29;
  --steel: #6E8FC6;
  --spray: #EEF2FA;

  --bg: #FFFFFF;
  --bg-alt: #F4F5F8;
  --bg-card: #FFFFFF;
  --text: #3A4048;
  --text-soft: #6B7280;
  --heading: var(--navy);
  --nav-bg: rgba(255, 255, 255, 0.96);
  --border-soft: rgba(20, 33, 61, 0.10);
  --shadow-card: 0 6px 22px rgba(20, 33, 61, 0.08);
  --shadow-card-hover: 0 16px 38px rgba(20, 33, 61, 0.14);
  --tag-bg: rgba(178, 34, 52, 0.08);
  --tag-border: rgba(178, 34, 52, 0.26);
  --tag-text: #8E1B29;
  --dark-section: var(--bg-alt);
  --on-dark: #FFFFFF;
  --on-dark-soft: rgba(255, 255, 255, 0.85);
  --input-bg: #FFFFFF;
  --input-border: rgba(20, 33, 61, 0.16);
  --focus-glow: rgba(178, 34, 52, 0.22);
  --review-border: rgba(20, 33, 61, 0.28);
  --outline-hover: rgba(20, 33, 61, 0.05);
  --menu-bg: #FFFFFF;

  --topbar-h: 34px;
}
@media (min-width: 641px) {
  :root { --topbar-h: 38px; }
}
@media (prefers-color-scheme: dark) {
  :root {
    --red: #CE3341;
    --red-hover: #B0222F;
    --steel: #8FB0DE;
    --bg: #0E1420;
    --bg-alt: #151C29;
    --bg-card: #1A2130;
    --text: #E3E6EB;
    --text-soft: #9BA3AF;
    --heading: #F2F4F7;
    --nav-bg: rgba(14, 20, 32, 0.96);
    --border-soft: rgba(150, 170, 210, 0.14);
    --shadow-card: 0 6px 22px rgba(0, 0, 0, 0.38);
    --shadow-card-hover: 0 16px 38px rgba(0, 0, 0, 0.55);
    --tag-bg: rgba(206, 51, 65, 0.16);
    --tag-border: rgba(206, 51, 65, 0.40);
    --tag-text: #E9A7AE;
    --dark-section: #0A0F18;
    --input-bg: #1E2635;
    --input-border: rgba(150, 170, 210, 0.22);
    --focus-glow: rgba(206, 51, 65, 0.30);
    --review-border: rgba(150, 170, 210, 0.50);
    --outline-hover: rgba(150, 170, 210, 0.08);
    --menu-bg: #1A2130;
  }
}
:root[data-theme="dark"] {
  --red: #CE3341;
  --red-hover: #B0222F;
  --steel: #8FB0DE;
  --bg: #0E1420;
  --bg-alt: #151C29;
  --bg-card: #1A2130;
  --text: #E3E6EB;
  --text-soft: #9BA3AF;
  --heading: #F2F4F7;
  --nav-bg: rgba(14, 20, 32, 0.96);
  --border-soft: rgba(150, 170, 210, 0.14);
  --shadow-card: 0 6px 22px rgba(0, 0, 0, 0.38);
  --shadow-card-hover: 0 16px 38px rgba(0, 0, 0, 0.55);
  --tag-bg: rgba(206, 51, 65, 0.16);
  --tag-border: rgba(206, 51, 65, 0.40);
  --tag-text: #E9A7AE;
  --dark-section: #0A0F18;
  --input-bg: #1E2635;
  --input-border: rgba(150, 170, 210, 0.22);
  --focus-glow: rgba(206, 51, 65, 0.30);
  --review-border: rgba(150, 170, 210, 0.50);
  --outline-hover: rgba(150, 170, 210, 0.08);
  --menu-bg: #1A2130;
}
:root[data-theme="light"] {
  --red: #B22234;
  --red-hover: #8E1B29;
  --steel: #6E8FC6;
  --bg: #FFFFFF;
  --bg-alt: #F4F5F8;
  --bg-card: #FFFFFF;
  --text: #3A4048;
  --text-soft: #6B7280;
  --heading: #0A3161;
  --nav-bg: rgba(255, 255, 255, 0.96);
  --border-soft: rgba(20, 33, 61, 0.10);
  --shadow-card: 0 6px 22px rgba(20, 33, 61, 0.08);
  --shadow-card-hover: 0 16px 38px rgba(20, 33, 61, 0.14);
  --tag-bg: rgba(178, 34, 52, 0.08);
  --tag-border: rgba(178, 34, 52, 0.26);
  --tag-text: #8E1B29;
  --dark-section: #F4F5F8;
  --input-bg: #FFFFFF;
  --input-border: rgba(20, 33, 61, 0.16);
  --focus-glow: rgba(178, 34, 52, 0.22);
  --review-border: rgba(20, 33, 61, 0.28);
  --outline-hover: rgba(20, 33, 61, 0.05);
  --menu-bg: #FFFFFF;
}

/* ============ Base ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  font-family: 'Barlow', 'Segoe UI', sans-serif;
  color: var(--heading);
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* Mobile-first container; min-width queries layer up. */
.container {
  width: calc(100% - 2.25rem);
  margin-inline: auto;
}
@media (min-width: 641px) {
  .container { width: min(1180px, 100% - 3rem); }
}
.container-narrow {
  width: calc(100% - 2.25rem);
  max-width: 820px;
  margin-inline: auto;
}
@media (min-width: 641px) {
  .container-narrow { width: min(820px, 100% - 3rem); }
}

.section { padding: 64px 0; }
@media (min-width: 761px) {
  .section { padding: 100px 0; }
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.section-head { max-width: 720px; margin: 0 auto 58px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; }
.section-head .lead { margin-top: 16px; color: var(--text-soft); font-size: 1.05rem; }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 12px;
  padding: 15px 30px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  text-align: center;
}
.btn:active { transform: scale(0.97); }
.btn-red {
  background: var(--red);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(178, 34, 52, 0.32);
}
.btn-red:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(178, 34, 52, 0.42);
}
.btn-steel-outline {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-steel-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}
.btn-navy-outline {
  background: transparent;
  color: var(--heading);
  border-color: var(--review-border);
}
.btn-navy-outline:hover {
  background: var(--outline-hover);
  transform: translateY(-2px);
}

/* ============ Sticky utility top bar (phone) ============ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: var(--topbar-h);
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  align-items: center;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.topbar .tb-note {
  display: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
}
.topbar .tb-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}
.topbar .tb-phone svg {
  width: 15px; height: 15px;
  stroke: var(--steel); fill: none;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.topbar .tb-phone:hover { color: var(--steel); }
.topbar .tb-phone .tb-cta { color: rgba(255, 255, 255, 0.6); font-weight: 600; }
@media (min-width: 641px) {
  .topbar-inner { justify-content: space-between; }
  .topbar .tb-note { display: block; }
}

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: var(--topbar-h); left: 0; right: 0;
  z-index: 50;
  padding: 12px 0;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.nav.scrolled {
  background: var(--nav-bg);
  box-shadow: 0 2px 18px rgba(20, 33, 61, 0.10);
  padding: 12px 0;
  backdrop-filter: blur(8px);
}
/* Solid nav variant for interior pages (no hero behind it) */
.nav.nav-solid {
  background: var(--nav-bg);
  box-shadow: 0 2px 18px rgba(20, 33, 61, 0.10);
  padding: 12px 0;
  backdrop-filter: blur(8px);
}
.nav-inner { display: flex; align-items: center; gap: 26px; }
.nav-brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.nav-brand .brand-mark {
  width: 76px; height: 76px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-mark .brand-initials { font-family: 'Barlow', sans-serif; font-weight: 800; font-size: 1.05rem; color: #FFFFFF; letter-spacing: -0.02em; }
.nav-brand .brand-text {
  display: flex; flex-direction: column; line-height: 1.05;
}
.nav-brand .brand-text b {
  font-family: 'Barlow', sans-serif;
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--on-dark);
  transition: color 0.3s ease;
}
.nav-brand .brand-text small {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}
.nav.scrolled .nav-brand .brand-text b, .nav.nav-solid .nav-brand .brand-text b { color: var(--heading); }
.nav.scrolled .nav-brand .brand-text small, .nav.nav-solid .nav-brand .brand-text small { color: var(--red); }

.nav-links {
  display: none;
  gap: 26px; align-items: center;
  margin-left: auto;
  list-style: none; padding: 0; margin-top: 0; margin-bottom: 0;
}
@media (min-width: 981px) {
  .nav-links { display: flex; }
}
.nav-links > li { position: relative; }
.nav-links a, .nav-links .nav-drop-toggle {
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.25s ease;
  background: none; border: none; cursor: pointer;
  font-family: 'Barlow', sans-serif;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 0;
}
.nav-links a:hover, .nav-links .nav-drop-toggle:hover { color: #FFFFFF; }
.nav.scrolled .nav-links a, .nav.scrolled .nav-links .nav-drop-toggle,
.nav.nav-solid .nav-links a, .nav.nav-solid .nav-links .nav-drop-toggle { color: var(--text); }
.nav.scrolled .nav-links a:hover, .nav.scrolled .nav-links .nav-drop-toggle:hover,
.nav.nav-solid .nav-links a:hover, .nav.nav-solid .nav-links .nav-drop-toggle:hover { color: var(--red); }
.nav-drop-toggle svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.2; transition: transform 0.2s ease; }
.nav-drop:hover .nav-drop-toggle svg, .nav-drop:focus-within .nav-drop-toggle svg { transform: rotate(180deg); }

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 250px;
  background: var(--menu-bg);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  box-shadow: var(--shadow-card-hover);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 60;
}
.nav-drop-menu.nav-drop-menu-wide { min-width: 300px; }
.nav-drop-menu::before {
  content: "";
  position: absolute;
  top: -18px; left: 0; right: 0; height: 18px;
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-drop-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text) !important;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.nav-drop-menu a:hover { background: var(--tag-bg); color: var(--red) !important; }
.nav-drop-menu .nav-drop-all {
  margin-top: 4px;
  border-top: 1px solid var(--border-soft);
  padding-top: 8px;
}
.nav-drop-menu .nav-drop-all a { color: var(--red) !important; font-weight: 700; }

.nav-cta { display: none; padding: 11px 22px; font-size: 0.9rem; border-radius: 11px; }
.nav-brand .brand-text small { display: none; }
@media (min-width: 481px) {
  .nav-cta { display: inline-block; margin-left: auto; }
  .nav-toggle { margin-left: 12px; }
  .nav-brand .brand-text small { display: block; }
}
@media (min-width: 981px) {
  .nav-cta { margin-left: 0; }
}

/* ============ Mobile menu toggle ============ */
.nav-toggle {
  display: flex;
  margin-left: auto;
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: var(--on-dark);
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav.scrolled .nav-toggle, .nav.nav-solid .nav-toggle { background: rgba(20, 33, 61, 0.08); color: var(--heading); }
.nav-toggle svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.nav-toggle .icon-close { display: none; }
.nav.mobile-open .nav-toggle .icon-open { display: none; }
.nav.mobile-open .nav-toggle .icon-close { display: block; }

.mobile-menu {
  display: block;
  max-height: 0;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-card-hover);
  transition: max-height 0.36s ease;
}
.nav.mobile-open .mobile-menu { max-height: 90vh; overflow-y: auto; }
.mobile-menu-inner { padding: 10px 0 26px; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu > .container > ul > li + li { border-top: 1px solid var(--border-soft); }
.mobile-menu a {
  display: block;
  padding: 15px 2px;
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--heading);
  text-decoration: none;
  font-family: 'Barlow', sans-serif;
}
.mobile-menu .mm-cta { margin-top: 16px; width: 100%; }

/* Mobile collapsible sub-sections (Services / Service Areas accordions) */
.mm-acc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 2px;
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--heading);
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
  text-align: left;
}
.mm-acc-toggle svg { width: 18px; height: 18px; stroke: var(--red); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s ease; flex-shrink: 0; }
.mm-acc[open] .mm-acc-toggle svg { transform: rotate(180deg); }
.mm-acc { border-top: 1px solid var(--border-soft); }
.mm-acc summary { list-style: none; }
.mm-acc summary::-webkit-details-marker { display: none; }
.mm-sub { padding: 0 0 10px 12px; }
.mm-sub li + li { border-top: none !important; }
.mm-sub a { padding: 11px 2px; font-size: 0.96rem; font-weight: 600; color: var(--text-soft); }
.mm-sub a:hover { color: var(--red); }

@media (min-width: 981px) {
  .nav-toggle { display: none; }
  .mobile-menu { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu { transition: none; }
}

/* ============ Hero (homepage) ============ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background-image: url('../images/hero-flag-fence.jpg');
  /* Slight zoom past cover gives vertical crop headroom so the flag can be
     anchored a touch lower (it sits high in the source frame). Anchored to the
     top so the extra crop comes off the bottom, dropping the flag a little. */
  background-size: auto 110%;
  background-position: 45% top;
  background-color: var(--navy-deep);
}
/* Mobile: the flag sits in the left third of the photo, so pull the crop left
   to keep it in frame on a narrow viewport, and down a bit so it clears the
   nav rather than hiding behind the badges. */
@media (max-width: 760px) {
  .hero { background-size: auto 122%; background-position: 24% 30%; }
}
/* Mobile: content stacks over the full width, so darken toward the bottom where
   the text sits, but keep the top light so the flag reads. */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(6, 32, 63, 0.30) 0%,
    rgba(6, 32, 63, 0.42) 38%,
    rgba(6, 32, 63, 0.72) 72%,
    rgba(6, 32, 63, 0.88) 100%);
}
/* Desktop: copy sits left and the form card sits right, so the scrim darkens
   both edges for contrast and stays clear through the middle — that gap is
   where the flag in the photo has to read. */
@media (min-width: 761px) {
  .hero::after {
    background:
      linear-gradient(90deg,
        rgba(6, 32, 63, 0.90) 0%,
        rgba(6, 32, 63, 0.78) 28%,
        rgba(6, 32, 63, 0.30) 44%,
        rgba(6, 32, 63, 0.18) 52%,
        rgba(6, 32, 63, 0.42) 66%,
        rgba(6, 32, 63, 0.66) 100%),
      linear-gradient(180deg,
        rgba(6, 32, 63, 0.22) 0%,
        rgba(6, 32, 63, 0.10) 45%,
        rgba(6, 32, 63, 0.46) 100%);
  }
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: calc(122px + var(--topbar-h)) 0 64px;
}
@media (min-width: 761px) {
  .hero-content { padding: calc(120px + var(--topbar-h)) 0 56px; }
}
/* Mobile: single stacked column, left-aligned. Desktop splits into
   text-left / form-right below. */
.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-text { max-width: 600px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 7px 14px;
  border-radius: 999px;
  backdrop-filter: blur(3px);
}
.hero-badge svg { width: 15px; height: 15px; stroke: var(--steel); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hero-badge .star { color: #FFC24B; }
.hero h1 {
  color: var(--on-dark);
  font-size: clamp(2.1rem, 4.4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.hero h1 .accent { color: #FF5A68; }
.hero-tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  font-style: italic;
  color: #FFC24B;
  letter-spacing: 0.01em;
}
.hero-sub {
  margin-top: 8px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.4;
}
.hero-ctas {
  margin-top: 14px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-form-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: var(--shadow-card-hover);
  border: 1px solid var(--border-soft);
  padding: 14px 18px;
}
.hero-form-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 2px; }
.hero-form-card .hero-form-sub {
  color: var(--text-soft);
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.hero-form-card .field { margin-bottom: 8px; gap: 4px; }
.hero-form-card .field textarea { min-height: 42px; }
.hero-form-card .hero-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-form-card .btn { width: 100%; }
/* Desktop: copy on the left, estimate form on the right, with a deliberate
   gap between them so the flag in the photo reads through the middle. */
@media (min-width: 761px) {
  .hero-grid {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 56px;
    max-width: none;
  }
  .hero-text { flex: 0 1 540px; max-width: 540px; }
  .hero-form-card { flex: 0 0 400px; max-width: 400px; }
}

@media (min-width: 1100px) {
  .hero-grid { gap: 80px; }
  .hero-text { flex: 0 1 580px; max-width: 580px; }
  .hero-form-card { flex: 0 0 430px; max-width: 430px; }
}

/* ============ Interior page header (service / area pages) ============ */
.page-hero {
  position: relative;
  background: var(--navy);
  color: var(--on-dark);
  overflow: hidden;
  padding: calc(96px + var(--topbar-h)) 0 60px;
}
@media (min-width: 761px) {
  .page-hero { padding: calc(150px + var(--topbar-h)) 0 84px; }
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(110, 143, 198, 0.28), transparent 45%),
    radial-gradient(circle at 92% 120%, rgba(178, 34, 52, 0.24), transparent 50%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: #FF8A94; }
.breadcrumbs {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumbs a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs .sep { color: rgba(255, 255, 255, 0.4); }
.page-hero h1 {
  color: var(--on-dark);
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  font-weight: 800;
  max-width: 760px;
}
.page-hero .page-hero-sub {
  margin-top: 18px;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
}
.page-hero .page-hero-ctas {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
}
.page-hero .phone-inline {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; color: #fff; text-decoration: none;
}
.page-hero .phone-inline svg { width: 20px; height: 20px; stroke: var(--steel); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.page-hero .phone-inline:hover { color: var(--steel); }

/* ============ Prose / article content ============ */
.prose { color: var(--text); }
.prose > * + * { margin-top: 20px; }
.prose h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 800;
  margin-top: 46px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-top: 30px;
  color: var(--heading);
}
.prose p { color: var(--text); }
.prose strong { color: var(--heading); font-weight: 700; }
.prose ul, .prose ol { margin: 0; padding-left: 1.25rem; color: var(--text); }
.prose li { margin-bottom: 10px; }
.prose li::marker { color: var(--red); }
.prose .lead-p { font-size: 1.12rem; color: var(--text-soft); }

/* Feature photo inside prose (service / area pages) */
.prose-figure { margin: 30px 0; }
.prose-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}
.prose-figure figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-soft);
  text-align: center;
}

/* Feature cards inside content */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 30px 0;
}
@media (min-width: 601px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--red);
  border-radius: 14px;
  padding: 22px 22px;
  box-shadow: var(--shadow-card);
}
.feature-card h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 8px; margin-top: 0; }
.feature-card p { color: var(--text-soft); font-size: 0.94rem; }

/* Callout / highlight band inside prose */
.prose-callout {
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 26px 26px;
  margin: 34px 0;
}
.prose-callout h3 { margin-top: 0; }

/* Content + sidebar layout */
.content-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
}
@media (min-width: 921px) {
  .content-wrap { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
}
.sidebar { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 921px) {
  .sidebar { position: sticky; top: calc(var(--topbar-h) + 88px); }
}
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 24px 22px;
}
.sidebar-card.sidebar-cta { background: var(--navy); color: #fff; border-color: transparent; }
.sidebar-card.sidebar-cta h3 { color: #fff; }
.sidebar-card.sidebar-cta p { color: rgba(255, 255, 255, 0.82); font-size: 0.92rem; }
.sidebar-card h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: 12px; }
.sidebar-card .phone-inline {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 1.24rem; color: #fff; text-decoration: none; margin: 6px 0 16px;
}
.sidebar-card .phone-inline svg { width: 19px; height: 19px; stroke: var(--steel); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-card .btn { width: 100%; }
.sidebar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sidebar-list li + li { border-top: 1px solid var(--border-soft); }
.sidebar-list a {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 4px;
  font-size: 0.95rem; font-weight: 600;
  color: var(--text); text-decoration: none;
  transition: color 0.18s ease;
}
.sidebar-list a:hover { color: var(--red); }
.sidebar-list svg { width: 16px; height: 16px; stroke: var(--red); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sidebar-list a[aria-current="page"] { color: var(--red); font-weight: 700; }

/* Related links row */
.related {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 8px;
}
@media (min-width: 601px) { .related { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 901px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 20px 20px;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  border-top: 3px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-top-color: var(--red); }
.related-card .rc-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.related-card h3 { font-size: 1.08rem; font-weight: 800; margin: 8px 0 6px; }
.related-card p { color: var(--text-soft); font-size: 0.9rem; }

/* ============ Trust bar ============ */
.trustbar {
  background: var(--bg-alt);
  padding: 26px 0;
  border-top: 3px solid var(--red);
  border-bottom: 1px solid var(--border-soft);
}
.trustbar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  align-items: center;
  gap: 18px 30px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  font-size: 0.98rem;
  font-weight: 600;
}
.trust-item .mark { color: var(--red); display: inline-flex; }
.trust-item .mark svg { width: 21px; height: 21px; stroke: var(--red); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 861px) {
  .trustbar-inner { justify-content: space-between; text-align: left; }
}

/* ============ Services (icon card grid) ============ */
/* "WHAT WE DO." — big, left-aligned section heading with the services as
   numbered photo rows below it. */
#services .section-head { text-align: left; margin-inline: 0; max-width: 860px; }
.services-heading {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-transform: uppercase;
}

.services-list { display: flex; flex-direction: column; gap: 16px; }

.service-row {
  display: grid;
  grid-template-columns: auto 300px 1fr;
  align-items: center;
  gap: 30px;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 18px 26px 18px 20px;
  box-shadow: var(--shadow-card);
  border-left: 3px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.service-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-left-color: var(--red);
}

.service-row-num {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  color: #FF5A68;
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
  min-width: 2.2ch;
}

.service-row-photo {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
}
.service-row-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.service-row-body h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.service-row-body p { color: var(--text-soft); font-size: 0.95rem; line-height: 1.5; }
.service-row .card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; font-size: 0.88rem; font-weight: 700; color: var(--red);
}
.service-row .card-link svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s ease; }
.service-row:hover .card-link svg { transform: translateX(3px); }

/* Phones: number + title, then photo, then copy — stacked and left-aligned. */
@media (max-width: 760px) {
  .service-row { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
  .service-row-num { font-size: 1.5rem; }
  .service-row-photo { width: 100%; aspect-ratio: 16 / 9; order: -1; }
}

/* ============ Project gallery ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 481px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 761px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-grid figure { margin: 0; }
.gallery-grid .gphoto {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-soft);
  aspect-ratio: 4 / 3;
}
.gallery-grid .gphoto img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-grid figure:hover .gphoto img { transform: scale(1.05); }
.gallery-grid figcaption {
  margin-top: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-soft);
  text-align: center;
}

/* ============ About ============ */
.about { background: var(--bg-alt); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 901px) { .about-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.about-text .eyebrow { margin-bottom: 14px; }
.about-text h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; margin-bottom: 20px; }
.about-text p { color: var(--text-soft); margin-bottom: 18px; }
.about-text p strong { color: var(--text); font-weight: 700; }
.about-points {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: grid; grid-template-columns: 1fr; gap: 12px 20px;
}
@media (min-width: 481px) { .about-points { grid-template-columns: 1fr 1fr; } }
.about-points li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.95rem; font-weight: 600; color: var(--heading);
}
.about-points svg { width: 20px; height: 20px; stroke: var(--red); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.about-sign {
  margin-top: 26px;
  font-weight: 700;
  color: var(--heading);
}
.about-sign span { display: block; font-weight: 500; font-size: 0.9rem; color: var(--text-soft); margin-top: 2px; }
.about-photo {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-soft);
  aspect-ratio: 5 / 4;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ============ Reviews ============ */
.reviews { background: linear-gradient(180deg, var(--bg) 0%, rgba(178,34,52,0.05) 100%); }
.reviews-stat {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 0 auto 40px;
  font-size: 1.05rem; font-weight: 700; color: var(--heading);
  flex-wrap: wrap; text-align: center;
}
.reviews-stat .stars { font-size: 1.35rem; letter-spacing: 2px; }
.reviews-stat .stars .on { color: #FFC24B; }
.reviews-stat .stars .off { color: var(--border-soft); }
.reviews-cta { text-align: center; margin-top: 44px; }
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 561px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 901px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.review-card .stars { color: #FFC24B; font-size: 0.95rem; letter-spacing: 2px; }
.review-card p { color: var(--text); font-size: 0.9rem; flex: 1; }
.review-card .who { font-size: 0.85rem; font-weight: 700; color: var(--heading); }
.review-card .who span { display: block; font-weight: 500; color: var(--text-soft); font-size: 0.78rem; margin-top: 2px; }

/* ============ Clean CTA band (subpages) ============ */
.cta-band {
  background: var(--navy);
  text-align: center;
}
.cta-band .eyebrow { color: #FF8A94; }
.cta-band h2 {
  color: #FFFFFF;
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  font-weight: 800;
  max-width: 760px;
  margin: 0 auto;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 600px;
  margin: 18px auto 0;
  font-size: 1.06rem;
}
.cta-band .cta-actions {
  margin-top: 34px;
  display: flex; flex-wrap: wrap; gap: 18px 26px;
  align-items: center; justify-content: center;
}
.cta-band .btn { font-size: 1.06rem; padding: 18px 40px; }
.cta-band .phone {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Barlow', sans-serif;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  font-weight: 800;
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.2s ease;
}
.cta-band .phone svg { width: 26px; height: 26px; stroke: var(--steel); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cta-band .phone:hover { color: var(--steel); }

/* ============ Lead form ============ */
.form-card {
  background: var(--bg-card);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-soft);
  padding: 30px 22px;
  max-width: 740px;
  margin: 0 auto;
}
@media (min-width: 601px) { .form-card { padding: 46px; } }
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 601px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--heading);
}
.field input, .field textarea {
  font-family: 'Barlow', sans-serif;
  font-size: 0.98rem;
  color: var(--text);
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: 11px;
  padding: 14px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--focus-glow);
}
.form-card .btn { width: 100%; margin-top: 6px; }
.form-note { text-align: center; margin-top: 16px; font-size: 0.84rem; color: var(--text-soft); }

/* SMS opt-in disclosure shown above each form's submit button (A2P requirement). */
.form-consent {
  font-size: 0.72rem;
  color: var(--text-soft);
  line-height: 1.45;
  margin: 2px 0 12px;
}

/* Inline form validation */
.form-status { margin-top: 10px; font-size: 0.88rem; color: #0a7c2f; }
.form-status.is-error { color: #c8102e; }

.field-error {
  display: block;
  margin-top: 5px;
  font-size: 0.76rem;
  color: #ff6b7d;
}
input.has-error { border-color: #c8102e !important; }

/* Submission acknowledgement: the form fades out and a drawn checkmark
   replaces it, so it's obvious the request actually went through. */
.is-submitted { opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .3s ease; }

.form-success {
  text-align: center;
  padding: 26px 18px;
  animation: form-success-in .45s cubic-bezier(.22,1,.36,1) both;
}

@keyframes form-success-in {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.form-success-check { width: 62px; height: 62px; margin-bottom: 10px; }

.form-success-circle {
  stroke: #2fa84f;
  stroke-width: 3;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: form-success-circle .5s cubic-bezier(.65,0,.45,1) .1s forwards;
}

.form-success-tick {
  stroke: #2fa84f;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: form-success-tick .3s cubic-bezier(.65,0,.45,1) .5s forwards;
}

@keyframes form-success-circle { to { stroke-dashoffset: 0; } }
@keyframes form-success-tick { to { stroke-dashoffset: 0; } }

.form-success-title { font-weight: 800; font-size: 1.12rem; margin: 0 0 5px; }
.form-success-text { font-size: 0.9rem; color: var(--text-soft); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .is-submitted { transition: none; }
  .form-success, .form-success-circle, .form-success-tick { animation: none; }
  .form-success-circle, .form-success-tick { stroke-dashoffset: 0; }
}

/* ============ Service area ============ */
.areas { text-align: center; background: var(--bg-alt); }
.areas .section-head { margin-bottom: 24px; }
.areas .body {
  max-width: 660px;
  margin: 0 auto 34px;
  color: var(--text-soft);
}
.area-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  list-style: none;
  padding: 0; margin: 0;
}
.area-tags li a, .area-tags li span {
  display: inline-block;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  color: var(--tag-text);
  font-size: 0.94rem;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.area-tags li a:hover { background: var(--red); color: #fff; }

/* Google Maps embed — responsive location map (matches card tokens) */
.map-embed {
  margin: 46px auto 0;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  background: var(--bg-card);
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 560px) {
  .map-embed { aspect-ratio: 4 / 5; margin-top: 34px; border-radius: 14px; }
}

/* ============ Footer ============ */
.footer {
  background: var(--dark-section);
  color: var(--heading);
  padding: 70px 0 34px;
  border-top: 1px solid var(--border-soft);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 56px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--border-soft);
}
.footer-brand { max-width: 340px; }
.footer-brand .fb-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .brand-mark {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--red);
}
.footer-brand .brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.footer-brand .brand-mark .brand-initials { color: #fff; font-family: 'Barlow', sans-serif; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; }
.footer-brand .name {
  font-family: 'Barlow', sans-serif;
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--heading);
  line-height: 1.1;
}
.footer-brand .tagline {
  color: var(--text-soft);
  font-size: 0.94rem;
}
.footer-nav { min-width: 150px; }
.footer-nav ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.footer h4 {
  font-family: 'Barlow', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 18px;
}
.footer a { color: var(--text-soft); text-decoration: none; font-size: 0.95rem; transition: color 0.2s ease; }
.footer a:hover { color: var(--red); }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-contact .line { color: var(--text-soft); font-size: 0.95rem; }
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.88rem;
  color: var(--heading);
  margin-top: 4px;
}
.footer-badge svg { width: 15px; height: 15px; stroke: var(--red); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom {
  padding-top: 28px;
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* ============ Chat widget ============ */
.chat-widget {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
@media (min-width: 481px) {
  .chat-widget { right: 24px; bottom: 24px; }
}
.chat-bubble {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--red);
  color: #FFFFFF;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(178, 34, 52, 0.5);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.chat-bubble:hover { background: var(--red-hover); transform: translateY(-2px); }
.chat-bubble svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat-bubble .icon-close { display: none; }
.chat-widget.open .chat-bubble .icon-open { display: none; }
.chat-widget.open .chat-bubble .icon-close { display: block; }
.chat-panel {
  position: absolute;
  bottom: calc(100% + 14px);
  right: 0;
  width: calc(100vw - 32px);
  max-height: min(540px, calc(100vh - 120px));
  overflow-y: auto;
  background: var(--bg-card);
  border-radius: 18px;
  box-shadow: var(--shadow-card-hover);
  border: 1px solid var(--border-soft);
  transform-origin: bottom right;
  transform: scale(0.92) translateY(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
@media (min-width: 481px) {
  .chat-panel { width: min(342px, calc(100vw - 48px)); }
}
.chat-widget.open .chat-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}
.chat-panel-header {
  position: relative;
  background: var(--navy);
  color: var(--on-dark);
  padding: 20px 46px 18px 22px;
  border-radius: 18px 18px 0 0;
}
.chat-panel-header .ch-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.chat-panel-header .ch-av {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 0.72rem; flex-shrink: 0;
  letter-spacing: -0.02em;
  overflow: hidden;
}
.chat-panel-header .ch-av img { width: 100%; height: 100%; object-fit: cover; }
.chat-panel-header h3 { font-size: 1.02rem; font-weight: 800; color: var(--on-dark); }
.chat-panel-header .ch-status { font-size: 0.74rem; color: var(--steel); font-weight: 600; }
.chat-panel-header p { font-size: 0.84rem; color: rgba(255, 255, 255, 0.85); line-height: 1.5; }
.chat-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: var(--on-dark);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.2s ease;
}
.chat-close:hover { background: rgba(255, 255, 255, 0.3); }
.chat-panel-body { padding: 20px 22px 22px; }
.chat-panel-body .field { margin-bottom: 14px; }
.chat-panel-body .field label { font-size: 0.8rem; }
.chat-panel-body .field input, .chat-panel-body .field textarea { padding: 11px 14px; font-size: 0.92rem; }
.chat-panel-body .field textarea { min-height: 74px; }
.chat-consent {
  font-size: 0.73rem;
  color: var(--text-soft);
  margin: -2px 0 14px;
  line-height: 1.4;
}
.chat-panel-body .btn { width: 100%; }

.chat-callout {
  position: absolute;
  right: 3px;
  bottom: 74px;
  max-width: 188px;
  background: var(--navy);
  color: var(--on-dark);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  padding: 10px 28px 10px 13px;
  border-radius: 14px;
  border: 1px solid rgba(110, 143, 198, 0.34);
  box-shadow: 0 12px 28px rgba(6, 32, 63, 0.38);
  cursor: pointer;
  transform-origin: bottom right;
  animation: chatCalloutIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both;
}
@media (min-width: 481px) {
  .chat-callout { max-width: 214px; font-size: 0.86rem; padding: 12px 32px 12px 15px; bottom: 80px; }
}
.chat-widget.open .chat-callout,
.chat-callout.dismissed { animation: chatCalloutOut 0.3s ease forwards; }
.chat-callout::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: -7px;
  width: 15px; height: 15px;
  background: var(--navy);
  border-right: 1px solid rgba(110, 143, 198, 0.34);
  border-bottom: 1px solid rgba(110, 143, 198, 0.34);
  transform: rotate(45deg);
}
.chat-callout .cc-x {
  position: absolute;
  top: 5px; right: 7px;
  width: 20px; height: 20px;
  border: none; background: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.05rem; line-height: 1;
  cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.chat-callout .cc-x:hover { color: var(--on-dark); }
@keyframes chatCalloutIn {
  from { opacity: 0; transform: translateY(10px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes chatCalloutOut {
  to { opacity: 0; transform: translateY(6px) scale(0.94); visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-callout { animation: none; }
  .chat-widget.open .chat-callout,
  .chat-callout.dismissed { animation: none; opacity: 0; visibility: hidden; }
}

/* ============ Scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.stagger.in > * { opacity: 1; transform: translateY(0); }
.stagger.in > *:nth-child(1) { transition-delay: 0s; }
.stagger.in > *:nth-child(2) { transition-delay: 0.06s; }
.stagger.in > *:nth-child(3) { transition-delay: 0.12s; }
.stagger.in > *:nth-child(4) { transition-delay: 0.18s; }
.stagger.in > *:nth-child(5) { transition-delay: 0.24s; }
.stagger.in > *:nth-child(6) { transition-delay: 0.30s; }
.stagger.in > *:nth-child(7) { transition-delay: 0.36s; }
.stagger.in > *:nth-child(8) { transition-delay: 0.42s; }
.stagger.in > *:nth-child(9) { transition-delay: 0.48s; }
.stagger.done > * { transition-delay: 0s !important; }
.stagger.done > .service-row:hover, .stagger.done > .review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .stagger > * { opacity: 1; transform: none; transition: none; }
  .btn, .service-row, .review-card, .nav { transition: none; }
  .service-row:hover, .review-card:hover, .btn:hover { transform: none; }
  .gallery-grid figure:hover .gphoto img { transform: none; }
  .chat-bubble, .chat-panel { transition: none; }
}
