/* ============================================================
   Diamond Fence Corp. - Redesign v2
   Design system: "Cedar & Paper" editorial warmth + "Blueprint"
   technical precision. Brand: navy + steel from the DF logo.
   Fonts: Bodoni Moda (display, matches the logo wordmark) + Inter (body).
   Google Fonts only.
   ============================================================ */

/* 1. Reset & Box-Sizing
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }
ul[class], ol[class] { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* 2. CSS Custom Properties
   ------------------------------------------------------------ */
:root {
  /* Brand */
  --color-primary:       #1c2f55;   /* Diamond navy (buttons, links) */
  --color-primary-dark:  #0e1629;   /* logo navy */
  --color-secondary:     #828e9e;   /* logo steel */
  --color-accent:        #b18e57;   /* warm brass, used sparingly */

  /* Text */
  --color-text:          #1d2129;
  --color-text-muted:    #5d6470;
  --color-text-inverse:  #ffffff;
  --color-text-soft:     #aab4c4;   /* muted text on navy */

  /* Backgrounds */
  --color-bg:            #ffffff;
  --color-bg-alt:        #f6f4ee;   /* warm paper */
  --color-bg-dark:       #0e1629;
  --color-bg-card:       #ffffff;

  /* Borders */
  --color-border:        #e6e2d8;
  --color-border-strong: #d4cfc2;
  --color-border-navy:   #223353;

  /* Buttons */
  --btn-primary-bg:      var(--color-primary);
  --btn-primary-text:    #ffffff;
  --btn-primary-hover:   var(--color-primary-dark);
  --btn-ghost-border:    var(--color-primary);
  --btn-ghost-text:      var(--color-primary);

  /* Type */
  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;

  /* Misc */
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(14, 22, 41, 0.08);
  --shadow-md: 0 10px 32px rgba(14, 22, 41, 0.12);
  --shadow-lg: 0 24px 60px rgba(14, 22, 41, 0.18);
  --header-h: 78px;
  --utility-h: 42px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* surfaces and tints promoted out of the rules below */
  --color-white: #ffffff;
  --color-text-on-dark-muted: #ccd4e0;
  --color-paper: #fdfcf9;
  --color-accent-dark: #97753f;
  --color-accent-soft: #d8c49a;
  --color-accent-text: #7d5f2e;   /* brass for small text on light backgrounds: >=5.38:1 (WCAG AA) */
  --color-star: #f0a92b;          /* review stars */
  --color-input-border: #8c8474;  /* form field borders: 3.71:1 on white (WCAG AA for UI) */
  /* form validation states */
  --color-error: #b3261e;
  --color-error-bg: #fdeceb;
  --color-error-border: #f2b8b5;
  --color-error-text: #8c1d18;
  --color-success-bg: #edf7ee;
  --color-success-border: #b7dcbb;
  --color-success-text: #1e4620;
  --color-badge-bg: #e8ecf2;
}

/* 3. Base
   ------------------------------------------------------------ */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.1vw, 17.5px);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}
main { display: block; }
::selection { background: var(--color-primary); color: var(--color-white); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--color-primary-dark); color: var(--color-white);
  padding: 10px 18px; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* Keyboard focus: visible ring, never shown for mouse clicks */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.on-dark :focus-visible,
.site-footer :focus-visible,
.utility-bar :focus-visible {
  outline-color: var(--color-accent-soft);
}

/* 4. Typography
   ------------------------------------------------------------ */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-primary-dark);
  text-wrap: balance;
}
h1 { font-size: clamp(36px, 4.6vw, 58px); letter-spacing: -0.01em; }
h2 { font-size: clamp(27px, 3vw, 42px); letter-spacing: -0.005em; }
h3 { font-size: clamp(21px, 1.9vw, 27px); }
h4, h5, h6 { font-family: var(--font-display); font-weight: 600; line-height: 1.3; }

p { max-width: 68ch; }
.lead { font-size: clamp(17px, 1.3vw, 19.5px); }
.muted { color: var(--color-text-muted); }

.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-accent-text);
  margin-bottom: 14px;
}
.section-label::before {
  content: ""; width: 8px; height: 8px; flex: none;
  background: var(--color-accent);
  transform: rotate(45deg);
}
.on-dark .section-label { color: var(--color-accent); }

.section-heading { margin-bottom: 18px; }
.section-sub { color: var(--color-text-muted); margin-bottom: 8px; }
.rule {
  border: 0; height: 3px; width: 64px;
  background: var(--color-accent);
  margin: 22px 0 0;
}
.rule.centered { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.closing-note { margin: 44px auto 0; max-width: 62ch; text-align: center; color: var(--color-text-muted); }
.text-center p, .text-center .section-sub { margin-left: auto; margin-right: auto; }

/* diamond bullet lists */
.diamond-list { display: grid; gap: 12px; }
.diamond-list.two-col { grid-template-columns: 1fr 1fr; column-gap: 36px; }
.diamond-list li {
  position: relative; padding-left: 26px;
}
.diamond-list li::before {
  content: ""; position: absolute; left: 4px; top: 0.62em;
  width: 7px; height: 7px; background: var(--color-accent);
  transform: rotate(45deg);
}

/* 5. Layout
   ------------------------------------------------------------ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 100px 0; }
.section-pad-sm { padding: 64px 0; }
.bg-alt { background: var(--color-bg-alt); }
.bg-dark { background: var(--color-bg-dark); }
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3 { color: var(--color-white); }
.on-dark p { color: var(--color-text-soft); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

/* 6. Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px;
  font-size: 15.5px; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; border-radius: var(--radius);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--btn-primary-bg); color: var(--btn-primary-text);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--btn-primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost {
  border: 1.5px solid var(--btn-ghost-border); color: var(--btn-ghost-text);
  background: transparent;
}
.btn-ghost:hover { background: var(--color-primary); color: var(--color-white); transform: translateY(-2px); }
.btn-light { background: var(--color-white); color: var(--color-primary-dark); }
.btn-light:hover { background: var(--color-bg-alt); transform: translateY(-2px); }
.btn-ghost-light { border: 1.5px solid rgba(255,255,255,0.55); color: var(--color-white); }
.btn-ghost-light:hover { background: var(--color-white); color: var(--color-primary-dark); transform: translateY(-2px); }
.btn-accent { background: var(--color-accent); color: var(--color-white); }
.btn-accent:hover { background: var(--color-accent-dark); transform: translateY(-2px); }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }

/* 7. Utility Bar
   ------------------------------------------------------------ */
.utility-bar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1001;
  height: var(--utility-h);
  background: var(--color-bg-dark);
  color: var(--color-text-soft);
  font-size: 13.5px;
  border-bottom: 1px solid var(--color-border-navy);
  transition: transform 0.3s var(--ease);
}
.utility-bar.hidden { transform: translateY(-100%); }
.utility-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.utility-left { display: flex; align-items: center; gap: 22px; }
.utility-bar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; transition: color 0.2s; }
.utility-bar a:hover { color: var(--color-white); }
.utility-bar .u-phone { color: var(--color-white); font-weight: 600; }
.utility-bar svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
.utility-social { display: flex; align-items: center; gap: 4px; }
.utility-social a { padding: 4px; }

/* 8. Header & Navigation
   ------------------------------------------------------------ */
.site-header {
  position: fixed; top: var(--utility-h); left: 0; width: 100%; z-index: 1002;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s var(--ease), top 0.3s var(--ease);
}
.site-header.scrolled { top: 0; box-shadow: 0 6px 24px rgba(14,22,41,0.09); }
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.header-logo { display: inline-flex; align-items: center; flex: none; }
.header-logo img { height: 56px; width: auto; transition: height 0.3s var(--ease); }
.site-header.scrolled .header-logo img { height: 48px; }

.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav > li { position: relative; }
.header-nav a, .header-nav .nav-parent {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  font-size: 15px; font-weight: 500; color: var(--color-text);
  text-decoration: none; border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.header-nav a:hover, .header-nav .nav-parent:hover { color: var(--color-primary); background: var(--color-bg-alt); }
.header-nav .caret { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.25s var(--ease); }
.header-nav li:hover .caret, .header-nav li:focus-within .caret { transform: rotate(225deg) translateY(-1px); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 8px; min-width: 230px;
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 8px; z-index: 100;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.dropdown::before { content: ""; position: absolute; top: -10px; left: 0; width: 100%; height: 10px; }
.header-nav li:hover > .dropdown,
.header-nav li:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 14px; font-size: 14.5px; }

.header-cta { flex: none; }

/* Mobile toggle */
.mobile-menu-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; border-radius: var(--radius);
}
.mobile-menu-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--color-primary-dark); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 999;
  background: var(--color-white); overflow-y: auto;
  padding: calc(var(--header-h) + 24px) 24px 40px;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; }
.mobile-nav ul li { list-style: none; }
.mobile-nav a:not(.btn), .mobile-nav .m-parent {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left;
  padding: 14px 10px; font-size: 17px; font-weight: 500;
  color: var(--color-text); text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav .m-sub { display: none; padding-left: 14px; }
.mobile-nav .m-sub.open { display: block; }
.mobile-nav .m-sub a { font-size: 15.5px; font-weight: 400; color: var(--color-text-muted); }
.mobile-nav .m-parent .caret { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 0.25s; }
.mobile-nav .m-parent[aria-expanded="true"] .caret { transform: rotate(225deg); }
.mobile-nav .btn { margin-top: 22px; }

/* 9. Hero
   ------------------------------------------------------------ */
.hero-section {
  position: relative;
  min-height: min(88vh, 860px);
  display: flex; align-items: center;
  padding: calc(var(--utility-h) + var(--header-h) + 60px) 0 90px;
  overflow: hidden;
  background: var(--color-bg-dark);
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
}
.hero-media img, .hero-media video {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(10, 16, 31, 0.86) 0%, rgba(10, 16, 31, 0.62) 48%, rgba(10, 16, 31, 0.3) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 780px; }
.hero-content .section-label { color: var(--color-accent-soft); }
.hero-content h1 { color: var(--color-white); margin-bottom: 20px; }
.hero-subtitle { color: var(--color-text-on-dark-muted); font-size: clamp(16.5px, 1.3vw, 19px); margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges {
  position: relative; z-index: 2;
  margin-top: 56px; padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.16);
  display: flex; flex-wrap: wrap; gap: 18px 44px;
}
.hero-badge { display: flex; align-items: center; gap: 11px; color: var(--color-badge-bg); font-weight: 500; font-size: 15px; }
.hero-badge svg { width: 21px; height: 21px; fill: none; stroke: var(--color-accent); stroke-width: 1.8; flex: none; }

/* Inner-page hero (shorter, editorial) */
.page-hero {
  position: relative;
  padding: calc(var(--utility-h) + var(--header-h) + 76px) 0 84px;
  background: var(--color-bg-dark);
  overflow: hidden;
}
.page-hero .hero-overlay {
  background: linear-gradient(100deg, rgba(10,16,31,0.9) 0%, rgba(10,16,31,0.68) 55%, rgba(10,16,31,0.42) 100%);
}
.page-hero .hero-content h1 { margin-bottom: 16px; }
.page-hero .hero-content p { color: var(--color-text-on-dark-muted); }

/* 10. Trust Bar
   ------------------------------------------------------------ */
.trust-bar { background: var(--color-bg-alt); border-bottom: 1px solid var(--color-border); }
.trust-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0; padding: 26px 0;
}
.trust-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 40px;
  font-family: var(--font-display); font-weight: 600; font-size: 17.5px;
  color: var(--color-primary-dark);
}
.trust-item + .trust-item { border-left: 1px solid var(--color-border-strong); }
.trust-item svg { width: 26px; height: 26px; fill: none; stroke: var(--color-accent); stroke-width: 1.7; flex: none; }

/* 11. Sections
   ------------------------------------------------------------ */

/* About split */
.about-media { position: relative; }
.about-media .photo-main {
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  width: 100%; object-fit: cover; aspect-ratio: 4 / 3;
}
video.photo-main { display: block; background: var(--color-bg-alt); }
.about-media .photo-inset {
  position: absolute; right: -26px; bottom: -34px;
  width: 46%; border-radius: var(--radius);
  border: 6px solid var(--color-white); box-shadow: var(--shadow-md);
  object-fit: cover; aspect-ratio: 1 / 1;
}
.about-copy p + p { margin-top: 16px; }
.about-copy .diamond-list { margin: 22px 0; grid-template-columns: 1fr 1fr; }
.signature {
  margin-top: 30px; padding-top: 22px;
  border-top: 1px solid var(--color-border);
  display: flex; align-items: center; gap: 16px;
}
.signature-name { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--color-primary-dark); }
.signature-mark {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  background: var(--color-bg-dark); color: var(--color-white); border-radius: 50%;
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
}

/* Process timeline */
.process-steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px;
  position: relative; margin-top: 56px;
}
/* connector track: sits BEHIND the diamonds, spans center-to-center */
.process-step::before {
  content: ""; position: absolute; z-index: 0;
  top: 25px; left: 50%; margin-top: -1px;
  width: calc(100% + 26px); height: 2px;
  background-color: var(--color-border-strong);
  background-image: linear-gradient(90deg, var(--color-accent), var(--color-accent));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 0.65s var(--ease);
}
.process-steps.lit .process-step::before { background-size: 100% 100%; }
.process-steps.lit .process-step:nth-child(2)::before { transition-delay: 0.45s; }
.process-steps.lit .process-step:nth-child(3)::before { transition-delay: 0.9s; }
.process-steps.lit .process-step:nth-child(4)::before { transition-delay: 1.35s; }
.process-step:last-child::before { display: none; }

/* travelling light: runs along the connector toward the next number */
.process-step::after {
  content: ""; position: absolute; z-index: 1;
  top: 25px; left: 50%; margin-top: -2px;
  width: 54px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, rgba(255,246,224,0) 0%, rgba(255,246,224,0.95) 38%, var(--color-accent) 50%, rgba(255,246,224,0.95) 62%, rgba(255,246,224,0) 100%);
  filter: drop-shadow(0 0 7px rgba(177, 142, 87, 0.85));
  opacity: 0; pointer-events: none;
}
.process-step:last-child::after { display: none; }
.process-step:hover::after, .process-step:focus-within::after {
  animation: travel-light 0.95s var(--ease);
}
@keyframes travel-light {
  0%   { opacity: 0; transform: translateX(0); }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(calc(100% + 26px)); }
}
/* the next diamond answers when the light arrives */
.process-step:hover + .process-step .step-diamond,
.process-step:focus-within + .process-step .step-diamond {
  animation: diamond-arrive 0.8s var(--ease) 0.5s;
}
@keyframes diamond-arrive {
  0%, 100% { box-shadow: 0 0 0 0 rgba(177, 142, 87, 0); }
  45%      { box-shadow: 0 0 0 8px rgba(177, 142, 87, 0.32); }
}

.process-step { position: relative; text-align: center; padding: 0 6px; }
.step-diamond {
  position: relative; z-index: 2;
  width: 50px; height: 50px; margin: 0 auto 20px;
  background: var(--color-bg); border: 1.5px solid var(--color-border-strong);
  transform: rotate(45deg); border-radius: 5px;
  display: grid; place-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.3s var(--ease);
}
.step-diamond span {
  transform: rotate(-45deg);
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  font-variant-numeric: tabular-nums;
  color: var(--color-primary-dark);
  transition: color 0.4s;
}
.process-steps.lit .step-diamond { background: var(--color-bg-dark); border-color: var(--color-bg-dark); }
.process-steps.lit .step-diamond span { color: var(--color-white); }
.process-step:hover .step-diamond { border-color: var(--color-accent); }
.process-step .step-kicker { font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent-text); display: block; margin-bottom: 6px; }
.process-step h3 { font-size: 19.5px; margin-bottom: 10px; }
.process-step p { font-size: 14.8px; color: var(--color-text-muted); }

/* Why choose */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 54px; }
.why-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-item svg { width: 34px; height: 34px; fill: none; stroke: var(--color-primary); stroke-width: 1.6; margin-bottom: 18px; }
.why-item h3 { font-size: 20px; margin-bottom: 10px; }
.why-item p { font-size: 15.3px; color: var(--color-text-muted); }

.why-item.why-cta {
  background: var(--color-bg-dark);
  border-color: var(--color-bg-dark);
  border-top-color: var(--color-accent);
  display: flex; flex-direction: column; justify-content: center;
}
.why-cta-phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--color-white); font-weight: 600; font-size: 15.5px; text-decoration: none;
  transition: color 0.2s;
}
.why-cta-phone:hover { color: var(--color-accent); }
.why-cta-phone svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.why-item.why-cta h3 { color: var(--color-white); }
.why-item.why-cta p { color: var(--color-text-soft); }
.why-item.why-cta svg { stroke: var(--color-accent); }
.why-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.why-cta-actions .btn { padding: 13px 24px; font-size: 14.5px; }


/* Stats / counters */
.stats-section { border-top: 1px solid var(--color-border-navy); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat-item { text-align: center; padding: 58px 20px; }
.stat-item + .stat-item { border-left: 1px solid var(--color-border-navy); }
.stat-number {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(44px, 5vw, 68px); line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--color-white); display: block; margin-bottom: 10px;
}
.stat-number em { font-style: normal; color: var(--color-accent); }
.stat-label { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-soft); }

/* Testimonials (restyle of gr-* carousel) */
.testimonials-section .gr-wrap { margin-top: 46px; }

/* Fence material cards */
.fence-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 54px; }
.fence-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border); border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
  text-decoration: none;
}
.fence-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.fence-card-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.fence-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.fence-card:hover .fence-card-media img { transform: scale(1.06); }
.fence-card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.fence-card-kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent-text); margin-bottom: 8px; }
.fence-card h3 { font-size: 22px; margin-bottom: 10px; }
.fence-card p { font-size: 14.8px; color: var(--color-text-muted); flex: 1; }
.fence-card .card-link {
  margin-top: 18px; font-weight: 600; font-size: 14.5px; color: var(--color-primary);
  display: inline-flex; align-items: center; gap: 8px;
}
.fence-card .card-link::after { content: "\2192"; transition: transform 0.25s var(--ease); }
.fence-card:hover .card-link::after { transform: translateX(5px); }
.fence-card h3 a { color: inherit; text-decoration: none; transition: color 0.2s; }
.fence-card h3 a:hover { color: var(--color-primary); }
.fence-card p a { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.fence-card p a:hover { text-decoration: underline; }
div.fence-card { cursor: default; }

/* Financing band */
.financing-band {
  background:
    linear-gradient(115deg, rgba(14,22,41,0.97) 0%, rgba(14,22,41,0.88) 55%, rgba(28,47,85,0.82) 100%),
    var(--color-bg-dark);
  border-top: 3px solid var(--color-accent);
  border-bottom: 3px solid var(--color-accent);
}
.financing-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 66px 0; flex-wrap: wrap; }
.financing-copy h2 { color: var(--color-white); font-size: clamp(26px, 2.8vw, 38px); margin-bottom: 6px; }
.financing-copy .fin-kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-accent); display: block; margin-bottom: 12px; }
.financing-copy .fin-sub { color: var(--color-text-on-dark-muted); font-family: var(--font-display); font-size: clamp(18px, 1.8vw, 23px); }

/* FAQ */
.faq-list { margin-top: 46px; display: grid; gap: 0; border-top: 1px solid var(--color-border-strong); }
.faq-item { border-bottom: 1px solid var(--color-border-strong); }
.faq-question {
  list-style: none; cursor: pointer;
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 24px 4px;
  font-family: var(--font-display); font-size: clamp(17px, 1.4vw, 20px); font-weight: 600;
  color: var(--color-primary-dark);
  transition: color 0.2s;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { color: var(--color-primary); }
.faq-question::after {
  content: "+"; flex: none;
  font-family: var(--font-body); font-size: 24px; font-weight: 300; line-height: 1;
  color: var(--color-accent);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] .faq-question::after { transform: rotate(45deg); }
.faq-answer { padding: 0 4px 26px; color: var(--color-text-muted); }
.faq-answer p + p { margin-top: 12px; }

/* Areas */
.areas-grid {
  margin-top: 46px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.area-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--color-bg-card); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 15px 18px;
  font-weight: 500; font-size: 15px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s;
}
.area-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--color-border-strong); }
.area-chip::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--color-accent); transform: rotate(45deg); }

/* CTA strip */
.cta-strip { text-align: center; }
.cta-strip h2 { color: var(--color-white); margin-bottom: 10px; }
.cta-strip p { color: var(--color-text-soft); margin: 0 auto 26px; }
.cta-phone {
  display: inline-block; margin-bottom: 26px;
  font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 44px); font-weight: 600;
  color: var(--color-white); text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s;
}
.cta-phone:hover { color: var(--color-accent); }

/* Spec tables (blueprint) */
.spec-table-wrap { overflow-x: auto; margin-top: 40px; border: 1px solid var(--color-border-strong); border-radius: var(--radius); background: var(--color-white); }
.spec-table { min-width: 640px; }
.spec-table th {
  background: var(--color-bg-dark); color: var(--color-white);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  text-align: left; padding: 15px 20px;
}
.spec-table td { padding: 17px 20px; border-top: 1px solid var(--color-border); vertical-align: top; font-size: 15.3px; }
.spec-table tr:nth-child(even) td { background: var(--color-bg-alt); }
.spec-table td:first-child { font-weight: 600; color: var(--color-primary-dark); white-space: nowrap; }
.spec-tier {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
  background: var(--color-bg-alt); border: 1px solid var(--color-border-strong);
  color: var(--color-primary-dark); white-space: nowrap;
}
.spec-note { margin-top: 14px; font-size: 14px; color: var(--color-text-muted); }

/* Included checklist */
.included-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; margin-top: 46px; }
.included-item {
  display: flex; gap: 16px;
  background: var(--color-bg-card); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 24px 26px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.included-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.included-check {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--color-bg-dark); color: var(--color-white);
  display: grid; place-items: center;
}
.included-check svg { width: 14px; height: 14px; fill: none; stroke: var(--color-accent); stroke-width: 2.4; }
.included-item h3 { font-size: 17.5px; font-weight: 600; margin-bottom: 5px; color: var(--color-primary-dark); }
.included-item p { font-size: 14.6px; color: var(--color-text-muted); }

/* Service intro split + side gallery */
.service-gallery { display: grid; gap: 18px; }
.service-gallery img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; object-fit: cover; }
.service-gallery .sg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.service-gallery .sg-row img { aspect-ratio: 1/1; }
.service-gallery > img { aspect-ratio: 16/10; }

/* Quick answer callout */
.quick-answer {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 172px 1fr; gap: 40px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 46px 54px 44px;
}
.quick-answer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--color-accent), rgba(177, 142, 87, 0.12));
}
.quick-answer::after {
  content: ""; position: absolute; right: -52px; bottom: -52px;
  width: 196px; height: 196px; transform: rotate(45deg);
  border: 1.5px solid rgba(177, 142, 87, 0.3); border-radius: 24px;
  box-shadow: inset 0 0 0 9px rgba(177, 142, 87, 0.07);
  pointer-events: none;
}
.bg-alt .quick-answer { background: var(--color-bg-card); }
.qa-rail { position: relative; z-index: 1; }
.qa-mark {
  display: block; width: 30px; height: 30px; margin-bottom: 18px;
  transform: rotate(45deg); border-radius: 7px;
  background: var(--color-accent);
  box-shadow: 0 0 0 6px rgba(177, 142, 87, 0.12);
}
.qa-label {
  display: block; font-size: 12px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--color-primary-dark);
}
.qa-rail::after { content: ""; display: block; width: 44px; height: 2px; margin-top: 20px; background: var(--color-border-strong); }
.qa-body { position: relative; z-index: 1; }
.qa-body p { max-width: 74ch; font-size: 15.5px; color: var(--color-text); }
.qa-body p + p { margin-top: 15px; }
.qa-lead {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(19px, 1.85vw, 23px); line-height: 1.42;
  color: var(--color-primary-dark);
}
.qa-body .qa-actions {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--color-border);
  font-size: 15px; color: var(--color-text-muted);
}

/* Code / safety callout (pool barrier rules) */
.code-note {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start;
  margin-top: 44px; padding: 38px 44px 36px;
  background: var(--color-bg-dark); color: var(--color-text-inverse);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.code-note::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--color-accent), rgba(177, 142, 87, 0.1));
}
.code-note::after {
  content: ""; position: absolute; right: -58px; bottom: -58px;
  width: 210px; height: 210px; transform: rotate(45deg);
  border: 1.5px solid rgba(177, 142, 87, 0.26); border-radius: 26px;
  pointer-events: none;
}
.code-note-mark {
  position: relative; z-index: 1;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(177, 142, 87, 0.16);
  border: 1px solid rgba(177, 142, 87, 0.4);
}
.code-note-mark svg { width: 22px; height: 22px; fill: none; stroke: var(--color-accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.code-note-body { position: relative; z-index: 1; }
.code-note-label {
  display: block; margin-bottom: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--color-accent);
}
.code-note p { max-width: 82ch; font-size: 16px; color: rgba(255, 255, 255, 0.82); }
.code-note strong { color: var(--color-text-inverse); font-weight: 600; }

/* Cost drivers panel */
.drivers {
  margin-top: 48px; padding: 40px 46px 36px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.drivers-title { max-width: none; margin-bottom: 18px; }
.drivers-title strong {
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--color-primary-dark);
}
.drivers-list {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 52px;
}
.drivers-list li {
  display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: baseline;
  padding: 15px 0; border-top: 1px solid var(--color-border);
  font-size: 15.6px; line-height: 1.6;
}
.drivers-list li:nth-child(-n+2) { border-top: none; padding-top: 0; }
.drivers-list .dn {
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  color: var(--color-accent); font-variant-numeric: tabular-nums;
}
.drivers .spec-note {
  margin-top: 28px; padding-top: 22px; max-width: none;
  border-top: 1px solid var(--color-border);
}

/* Big photo with an overlapping inset */
.media-stack { position: relative; padding-bottom: 58px; }
.media-stack > img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.media-stack .ms-inset {
  position: absolute; left: 0; bottom: 0; width: 44%;
  aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius); border: 7px solid var(--color-white);
  box-shadow: var(--shadow-lg);
}
/* product shots sit on white, so show them whole instead of cropping */
.media-stack.product > img { aspect-ratio: 1 / 1; object-fit: contain; background: var(--color-white); }
.media-stack.product .ms-inset { object-fit: contain; background: var(--color-white); }

/* Pricing guide */
.pricing-lead {
  max-width: none; text-align: left;
  columns: 2; column-gap: 60px;
}
.turnkey-lead { max-width: 92ch; }
.price-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 30px; align-items: start; }
.price-notes .spec-note { margin-top: 0; max-width: none; }
.price-cta { margin-top: 26px; }

/* Inline call to action under a copy column */
.intro-cta { margin-top: 28px; }

/* Related services */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.related-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 10; display: flex; align-items: flex-end;
  text-decoration: none;
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease);
}
.related-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.related-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.related-card:hover img { transform: scale(1.05); }
.related-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,16,31,0.82) 0%, rgba(10,16,31,0.1) 55%); }
.related-card h3 { position: relative; z-index: 1; color: var(--color-white); padding: 22px 24px; font-size: 21px; }

/* Call-today band */
.call-band {
  display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap;
  padding: 40px 0;
}
.call-band .cb-label { font-family: var(--font-display); font-size: clamp(20px, 2vw, 26px); font-weight: 600; color: var(--color-white); }
.call-band .cta-phone { margin: 0; }

/* ============================================================
   FLIPBOOK BROCHURE
   ============================================================ */
.brochure-section { overflow: hidden; }
.brochure-toolbar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 34px;
}
.view-toggle {
  display: inline-flex; border: 1px solid var(--color-border-strong);
  border-radius: 999px; overflow: hidden; background: var(--color-white);
}
.view-toggle button {
  padding: 9px 22px; font-size: 13.5px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--color-text-muted);
  transition: background 0.2s, color 0.2s;
}
.view-toggle button[aria-pressed="true"] { background: var(--color-bg-dark); color: var(--color-white); }

.flipbook-stage {
  position: relative;
  margin: 48px auto 0;
  max-width: 1220px;
  perspective: 3000px;
}
.flipbook {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1.02;
  transform-style: preserve-3d;
  margin: 0 auto;
  filter: drop-shadow(0 30px 50px rgba(14,22,41,0.25));
  transition: transform 0.9s var(--ease);
}
.flip-sheet {
  position: absolute; top: 0; left: 50%;
  width: 50%; height: 100%;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease);
}
.flip-sheet .sheet-face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
}
.flip-sheet .face-front { border-radius: 0 var(--radius) var(--radius) 0; }
.flip-sheet .face-back  { transform: rotateY(180deg); border-radius: var(--radius) 0 0 var(--radius); }
.flip-sheet.flipped { transform: rotateY(-180deg); }
/* page edge shading for depth */
.flip-sheet .face-front::after,
.flip-sheet .face-back::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 46px; pointer-events: none;
}
.flip-sheet .face-front::after { left: 0; background: linear-gradient(to right, rgba(14,22,41,0.10), transparent); }
.flip-sheet .face-back::after  { right: 0; background: linear-gradient(to left, rgba(14,22,41,0.10), transparent); }

/* page inner layouts */
.bpage { height: 100%; display: flex; flex-direction: column; }
.bpage-photo { flex: 1 1 68%; min-height: 0; position: relative; background: var(--color-paper); }
.bpage-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 18px 22px 0; }
.bpage-caption { flex: none; padding: 20px 26px 22px; }
.bpage-caption .bp-kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent-text); display: block; margin-bottom: 5px; }
.bpage-caption h3 { font-size: clamp(15px, 1.7vw, 22px); }
.bpage-caption .bp-note { font-size: 12.8px; color: var(--color-text-muted); margin-top: 5px; }
.bpage-num {
  position: absolute; bottom: 10px; font-size: 11px; letter-spacing: 0.1em;
  color: var(--color-text-muted); font-variant-numeric: tabular-nums;
}
.face-front .bpage-num { right: 16px; }
.face-back .bpage-num { left: 16px; }

/* brochure cover */
.bpage.cover {
  background: var(--color-bg-dark);
  align-items: center; justify-content: center; text-align: center;
  padding: 30px;
}
.bpage.cover .cover-logo {
  background: var(--color-white); border-radius: var(--radius);
  padding: 14px 20px; margin-bottom: 30px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.bpage.cover .cover-logo img { width: clamp(90px, 12vw, 150px); height: auto; }
.bpage.cover .cover-kicker { font-size: 11.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 14px; }
.bpage.cover h3 { color: var(--color-white); font-size: clamp(20px, 2.6vw, 34px); }
.bpage.cover .cover-rule { width: 54px; height: 2px; background: var(--color-accent); margin: 22px auto; }
.bpage.cover p { color: var(--color-text-soft); font-size: 13.5px; max-width: 36ch; margin: 0 auto; text-wrap: balance; }
.bpage.cover a { color: var(--color-accent); text-decoration-color: rgba(177, 142, 87, 0.5); text-underline-offset: 3px; }
.bpage.cover a:hover { color: var(--color-white); text-decoration-color: currentColor; }

/* color swatch page inside brochure */
.bpage.swatches { padding: 26px 28px; }
.bpage.swatches h3 { font-size: clamp(15px, 1.6vw, 21px); margin-bottom: 4px; }
.bpage.swatches .bp-kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent-text); display: block; margin-bottom: 5px; }
.swatch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.swatch { text-align: center; }
.swatch img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; border: 1px solid var(--color-border); }
.swatch figcaption { font-size: 12.5px; font-weight: 600; margin-top: 7px; color: var(--color-primary-dark); }
.swatch-note { font-size: 11.8px; color: var(--color-text-muted); margin-top: 14px; }
.swatch-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.swatch-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.feature-swatches { display: flex; gap: 20px; margin-top: 6px; }
.feature-swatches .swatch { width: 130px; }
.cover-diamond-mini { width: 12px; height: 12px; background: var(--color-accent); transform: rotate(45deg); margin-bottom: 20px; }

/* flip controls */
.flip-controls {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin-top: 30px;
}
.flip-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--color-border-strong);
  display: grid; place-items: center;
  background: var(--color-white);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.flip-btn:hover:not(:disabled) { background: var(--color-bg-dark); border-color: var(--color-bg-dark); transform: translateY(-2px); }
.flip-btn:hover:not(:disabled) svg { stroke: var(--color-white); }
.flip-btn:disabled { opacity: 0.35; cursor: default; }
.flip-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--color-primary-dark); stroke-width: 2; }
.flip-status { font-size: 13.5px; color: var(--color-text-muted); font-variant-numeric: tabular-nums; min-width: 90px; text-align: center; }
.flip-hint { margin: 14px auto 0; max-width: none; text-align: center; font-size: 13.5px; color: var(--color-text-muted); }

/* grid fallback view + mobile deck */
.brochure-grid { display: none; margin-top: 48px; }
.brochure-grid.active { display: block; }
.flipbook-stage.hidden { display: none; }
.style-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.style-card {
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.style-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.style-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.style-card figcaption { padding: 18px 22px 20px; }
.style-card figcaption h3 { font-size: 18.5px; }
.style-card figcaption .bp-note { font-size: 13.5px; color: var(--color-text-muted); margin-top: 4px; }

.colors-heading { margin-top: 56px; }
/* color options standalone grid (grid view) */
.color-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 44px; }
.color-grid .swatch img { aspect-ratio: 1/1; }

/* Location page helpers */
.hoa-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: stretch; }
.hoa-grid.spaced { margin-top: 54px; }
.hoa-media { position: relative; min-height: 320px; }
.hoa-grid.media-right { grid-template-columns: 1.1fr 0.9fr; }
.cost-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 56px; align-items: stretch; }
.cost-grid { margin-top: 52px; }
.cost-grid .hoa-media { min-height: 300px; }
.hoa-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.commercial-pair { margin-top: 28px; grid-template-columns: 1fr 1fr; }
.hoa-lead { margin: 22px 0 14px; }
.hoa-close { margin-top: 22px; }
.neighborhood-list { margin-top: 34px; }
.neighborhood-list.two-col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 44px; }
.cta-inline { color: var(--color-white); text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.cta-inline:hover { color: var(--color-accent); }
.quick-answer a { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.quick-answer a:hover { text-decoration: underline; }
.closing-note a { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.lets-build-link { color: var(--color-primary); text-decoration: none; border-bottom: 2px solid var(--color-accent); padding-bottom: 2px; transition: color 0.2s, border-color 0.2s; }
.lets-build-link:hover { color: var(--color-accent); }
.faq-answer a { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.about-copy a:not(.btn) { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.about-copy a:not(.btn):hover { text-decoration: underline; }

/* Where to go from here */
.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 50px; }
.next-step {
  text-align: center; padding: 40px 28px;
  background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius);
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.next-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.next-step .step-diamond { margin-bottom: 24px; }
.next-step h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.next-step p { font-size: 14.6px; color: var(--color-text-muted); margin: 0 auto; }

/* 404 */
.error-404-section { padding-top: calc(var(--utility-h) + var(--header-h) + 100px); }
.error-404-content { text-align: center; max-width: 760px; }
.error-404-content p { margin: 0 auto; }
.error-404-actions { display: flex; justify-content: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* GMB map embed */
.gmb-map-section iframe { display: block; width: 100%; height: 400px; border: 0; }
@media (max-width: 768px) { .gmb-map-section iframe { height: 300px; } }

/* Interactive service-area map */
.areas-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; margin-top: 52px; align-items: center; }
.areas-layout.wide-copy { grid-template-columns: 1fr 1.12fr; }
.areas-copy > * + * { margin-top: 26px; }
.areas-copy .neighborhood-list { margin-top: 0; }
.areas-copy > :first-child { margin-top: 0; }
.areas-map {
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; position: relative;
}
.areas-map svg { display: block; width: 100%; height: auto; }
.map-pin { cursor: default; }
a.map-pin { cursor: pointer; }
.map-pin .pin-shape {
  fill: var(--color-primary);
  transition: transform 0.25s var(--ease), fill 0.2s;
  transform-box: fill-box; transform-origin: center;
}
a.map-pin .pin-shape { fill: var(--color-accent); }
.map-pin:hover .pin-shape, .map-pin:focus .pin-shape { transform: scale(1.5); }
.map-pin .pin-label {
  font-family: var(--font-body); font-size: 21px; font-weight: 600;
  fill: var(--color-primary-dark);
  opacity: 0; transition: opacity 0.2s var(--ease);
  pointer-events: none;
  paint-order: stroke; stroke: var(--color-white); stroke-width: 5px; stroke-linejoin: round;
}
.map-pin:hover .pin-label, .map-pin:focus .pin-label { opacity: 1; }
.map-pin.hq .pin-label { opacity: 1; font-size: 22px; }
.map-pin.base .pin-label { opacity: 1; font-size: 15px; font-weight: 500; fill: var(--color-text-muted); }

.map-pin .pin-halo {
  fill: none; stroke: var(--color-accent); stroke-width: 2;
  opacity: 0; transform: scale(0.45);
  transform-box: fill-box; transform-origin: center;
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease);
}
.map-pin.pin-active .pin-halo { opacity: 1; transform: scale(1); }
.map-pin.pin-active .pin-shape { transform: scale(1.75); fill: var(--color-accent); }
.map-pin.pin-active .pin-label { opacity: 1; }
.area-chip::before { transition: transform 0.25s var(--ease); }
.area-chip.chip-active {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}
.area-chip.chip-active::before { transform: rotate(45deg) scale(1.45); }

.map-pin.hq .pin-ring { fill: none; stroke: var(--color-accent); stroke-width: 2; animation: hq-pulse 2.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes hq-pulse {
  0% { transform: scale(0.7); opacity: 0.9; }
  70% { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}
.map-legend {
  display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center;
  padding: 14px 20px; border-top: 1px solid var(--color-border);
  font-size: 13px; color: var(--color-text-muted); background: var(--color-bg-alt);
}
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.map-legend i { width: 8px; height: 8px; flex: none; transform: rotate(45deg); display: inline-block; }
.map-legend .lg-gold { background: var(--color-accent); }
.map-legend .lg-navy { background: var(--color-primary); }
.areas-grid.in-layout { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
@media (max-width: 1024px) {
  .areas-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .areas-grid.in-layout { grid-template-columns: repeat(2, 1fr); }
  .map-pin .pin-label { font-size: 26px; }
}

/* Calendly embed */
.contact-grid .calendly-wrap { margin-top: 0; }
.calendly-wrap {
  margin-top: 40px;
  border: 1px solid var(--color-border-strong); border-radius: var(--radius);
  overflow: hidden; background: var(--color-white); box-shadow: var(--shadow-sm);
}
.calendly-wrap iframe { display: block; width: 100%; height: 760px; border: 0; }

/* 12. Footer
   ------------------------------------------------------------ */
.site-footer { background: var(--color-bg-dark); color: var(--color-text-soft); }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px;
  padding: 80px 0 60px;
}
.footer-logo img { height: 62px; width: auto; margin-bottom: 22px; }
.footer-tagline { font-size: 14.8px; max-width: 34ch; }
.footer-col h4 {
  color: var(--color-white); font-size: 13.5px; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-nav { display: grid; gap: 11px; }
.footer-nav a { color: var(--color-text-soft); text-decoration: none; font-size: 14.8px; transition: color 0.2s; }
.footer-nav a:hover { color: var(--color-white); }
.footer-contact { display: grid; gap: 14px; font-size: 14.8px; }
.footer-contact a { color: var(--color-text-soft); text-decoration: none; transition: color 0.2s; }
.footer-contact a:hover { color: var(--color-white); }
.footer-contact .fc-item { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; fill: none; stroke: var(--color-accent); stroke-width: 1.8; flex: none; margin-top: 4px; }
.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--color-border-navy);
  display: grid; place-items: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.footer-social a:hover { background: var(--color-primary); border-color: var(--color-primary); transform: translateY(-2px); }
/* Touch widths: keep the 38px circle, extend the tap area to 44px */
@media (max-width: 1024px) {
  .footer-social { gap: 16px; }
  .footer-social a { position: relative; }
  .footer-social a::after {
    content: ""; position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 44px; height: 44px;
  }
  .footer-nav a, .footer-contact a { display: inline-block; padding: 6px 0; }
}
.footer-social svg { width: 16px; height: 16px; fill: var(--color-white); }
.footer-bottom {
  border-top: 1px solid var(--color-border-navy);
  padding: 24px 0; text-align: center; font-size: 13.5px;
}
.footer-bottom p { max-width: none; margin: 0 auto; }
.footer-logo img { background: var(--color-white); padding: 10px 14px; border-radius: var(--radius); }

/* 13. Forms
   ------------------------------------------------------------ */
/* form and booking widget sit side by side; info cards go below in two columns */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 52px; align-items: start; }
/* keep long tokens (the email) from forcing a grid track wider than the viewport */
.contact-grid > *, .contact-info-cards > *, .contact-card > div { min-width: 0; }
.contact-card a, .contact-card p { overflow-wrap: anywhere; }
.contact-form-wrap {
  background: var(--color-bg-alt); border: 1px solid var(--color-border-strong); border-radius: var(--radius);
  padding: 42px; box-shadow: var(--shadow-sm);
}

/* default everywhere: a single stacked column in the narrow right-hand track */
.contact-info-cards { display: grid; gap: 18px; }
/* contact page only: cards sit full width below the form, so they go two-up */
.contact-grid + .contact-info-cards { grid-template-columns: 1fr 1fr; margin-top: 32px; }
.contact-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--color-bg-alt); border: 1px solid var(--color-border-strong); border-radius: var(--radius);
  padding: 24px 26px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease);
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); background: var(--color-bg-card); }
.contact-card-icon {
  flex: none; width: 46px; height: 46px; border-radius: var(--radius);
  background: var(--color-bg-dark);
  display: grid; place-items: center;
}
.contact-card-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--color-accent); stroke-width: 1.8; }
.contact-card h3 { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 4px; }
.contact-card a, .contact-card p { font-size: 16.5px; font-weight: 500; color: var(--color-primary-dark); text-decoration: none; max-width: none; }
.contact-card a:hover { color: var(--color-primary); }

/* 14. Animations
   ------------------------------------------------------------ */
.fade-in-up {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.fade-in-up.d-1 { transition-delay: 0.08s; }
.fade-in-up.d-2 { transition-delay: 0.16s; }
.fade-in-up.d-3 { transition-delay: 0.24s; }
.fade-in-up.d-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .fade-in-up { opacity: 1; transform: none; }
}

/* 15. Responsive
   ------------------------------------------------------------ */
@media (max-width: 1120px) {
  .fence-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: repeat(4, 1fr); }
  .process-steps { grid-template-columns: repeat(3, 1fr); gap: 40px 26px; }
  .process-step::before, .process-step::after { display: none; }
  .color-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  :root { --utility-h: 0px; }
  .utility-bar { display: none; }
  .site-header { top: 0; }
  .section-pad { padding: 70px 0; }
  .header-nav, .header-cta { display: none; }
  .mobile-menu-toggle { display: flex; }
  .grid-2 { grid-template-columns: 1fr; gap: 44px; }
  .why-grid, .related-grid, .next-steps { grid-template-columns: repeat(2, 1fr); }
  .hoa-grid, .hoa-grid.media-right, .cost-grid { grid-template-columns: 1fr; }
  .quick-answer { grid-template-columns: 1fr; gap: 22px; padding: 32px 26px 30px; }
  .qa-rail::after { display: none; }
  .price-notes { grid-template-columns: 1fr; gap: 20px; }
  .code-note { grid-template-columns: 1fr; gap: 18px; padding: 30px 24px 28px; }
  .drivers { padding: 30px 24px 26px; }
  .drivers-list { grid-template-columns: 1fr; column-gap: 0; }
  .drivers-list li:nth-child(2) { border-top: 1px solid var(--color-border); padding-top: 15px; }
  .pricing-lead { columns: 1; }
  .media-stack { padding-bottom: 0; }
  .media-stack .ms-inset { position: static; width: 62%; margin: -46px 0 0 auto; display: block; }
  .areas-layout.wide-copy { grid-template-columns: 1fr; }
  .hoa-media { min-height: 260px; }
  .included-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid + .contact-info-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .trust-item { padding: 8px 24px; font-size: 16px; }
  .about-media .photo-inset { right: 0; }
}

@media (max-width: 768px) {
  .section-pad { padding: 50px 0; }
  .hero-section { min-height: 0; padding-bottom: 64px; }
  .hero-badges { gap: 12px 26px; margin-top: 40px; }
  .grid-3, .grid-4, .style-grid { grid-template-columns: 1fr; }
  .fence-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { padding: 36px 16px; }
  .stat-item + .stat-item { border-left: 0; border-top: 1px solid var(--color-border-navy); }
  .process-steps { grid-template-columns: 1fr; text-align: left; gap: 30px; }
  .process-step { display: grid; grid-template-columns: 50px 1fr; gap: 20px; text-align: left; }
  .process-step .step-diamond { margin: 0; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid, .next-steps { grid-template-columns: 1fr; }
  .diamond-list.two-col, .neighborhood-list.two-col { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 22px; }
  .financing-inner { justify-content: center; text-align: center; }
  .color-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding: 56px 0 40px; }
  .about-copy .diamond-list { grid-template-columns: 1fr; }
  .calendly-wrap iframe { height: 900px; }

  /* flipbook becomes swipeable deck on phones */
  .flipbook-stage { display: none; }
  .flip-controls { display: none; }
  .flip-hint { display: none; }
  .brochure-grid { display: block; }
  .brochure-toolbar { display: none; }
  .style-grid {
    display: grid; grid-auto-flow: column; grid-auto-columns: 82%;
    overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 16px; padding-bottom: 14px;
    -webkit-overflow-scrolling: touch;
  }
  .style-grid .style-card { scroll-snap-align: center; }
  .deck-hint { display: block; text-align: center; font-size: 13px; color: var(--color-text-muted); margin-top: 6px; }
}

@media (min-width: 769px) {
  .deck-hint { display: none; }
}

/* Contact form (posts to the form-relay worker)
   ------------------------------------------------------------ */
.contact-form-wrap .cf-title {
  font-size: clamp(21px, 2vw, 26px);
  margin-bottom: 8px;
}
.contact-form-wrap .cf-sub {
  color: var(--color-text-muted);
  font-size: 15px;
  margin-bottom: 26px;
  max-width: 52ch;
}
.calendly-wrap .cal-lead {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--color-primary-dark);
  padding: 22px 24px 0;
  margin: 0;
}

/* honeypot: off-screen for people, still reachable for bots */
.df-hp {
  position: absolute; left: -9999px; top: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}

.df-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.df-field { display: flex; flex-direction: column; margin-bottom: 18px; min-width: 0; }
.df-field label {
  font-size: 13.5px; font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 7px;
}
.df-required { color: var(--color-accent-text); margin-left: 3px; }

.df-field input,
.df-field select,
.df-field textarea {
  font-family: var(--font-body);
  font-size: 16px;                 /* 16px stops iOS zooming on focus */
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-input-border);
  border-radius: 8px;
  padding: 13px 14px;
  width: 100%;
  min-height: 48px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.df-field textarea { min-height: 118px; resize: vertical; }
.df-field input:focus,
.df-field select:focus,
.df-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(28, 47, 85, 0.12);
}

/* errors are announced by text, not colour alone */
.df-error {
  display: none;
  font-size: 13px;
  color: var(--color-error);
  margin-top: 6px;
}
.df-field.df-has-error .df-error { display: block; }
.df-field.df-has-error input,
.df-field.df-has-error select,
.df-field.df-has-error textarea { border-color: var(--color-error); }

.df-submit { width: 100%; margin-top: 6px; }

.df-form-message {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14.5px;
  line-height: 1.55;
}
.df-form-message.df-show { display: block; }
.df-form-message.df-success {
  background: var(--color-success-bg); border: 1px solid var(--color-success-border); color: var(--color-success-text);
}
.df-form-message.df-failure {
  background: var(--color-error-bg); border: 1px solid var(--color-error-border); color: var(--color-error-text);
}

@media (max-width: 600px) {
  .df-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form-wrap { padding: 28px 22px; }
}

/* Aggregate rating above the reviews carousel */
.review-aggregate {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 10px;
  margin: 0 auto; max-width: none;
  font-size: 16px; color: var(--color-text-muted);
}
.review-aggregate .ra-score {
  font-family: var(--font-display); font-weight: 600;
  font-size: 26px; color: var(--color-primary-dark);
  line-height: 1;
}
.review-aggregate .ra-stars { color: var(--color-star); font-size: 19px; line-height: 1; letter-spacing: 1px; }
.review-aggregate .ra-text { line-height: 1.5; }
.review-aggregate a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.review-aggregate a:hover { color: var(--color-accent-text); }

/* Sticky mobile call bar
   ------------------------------------------------------------
   Hidden on desktop, where the utility bar already carries the phone.
   Shown at <=1024px, which is exactly where .utility-bar is hidden. */
.call-bar { display: none; }

@media (max-width: 1024px) {
  .call-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1200;
    background: var(--color-bg-dark);
    border-top: 1px solid var(--color-border-navy);
    box-shadow: 0 -6px 22px rgba(14, 22, 41, 0.22);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .call-bar a {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 52px; padding: 12px 10px;
    font-family: var(--font-body);
    font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
    text-decoration: none;
  }
  .call-bar a svg {
    width: 18px; height: 18px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
  }
  .call-bar .cb-call { background: var(--color-accent); color: var(--color-bg-dark); }
  .call-bar .cb-quote { color: var(--color-white); }
  .call-bar .cb-quote:hover, .call-bar .cb-quote:focus-visible { background: var(--color-border-navy); }

  /* keep the footer clear of the fixed bar */
  body { padding-bottom: 52px; }
}

/* Reviews carousel (gr-*) inherits the body font and palette.
   The 10 reviews ship as static HTML so crawlers can read them; the carousel
   script enhances that markup. These rules style the pre-enhancement state so
   the section stays readable if the script fails or is still loading. The
   script sets .gr-live on the mount, after which its own injected styles win. */
#gr-reviews:not(.gr-live) .gr-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 34px;
}
#gr-reviews:not(.gr-live) .gr-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 46px 22px 22px;
  margin-top: 30px;
  position: relative;
  text-align: center;
}
#gr-reviews:not(.gr-live) .gr-text { text-align: left; font-size: 15px; line-height: 1.6; color: var(--color-text-muted); margin: 0; }
#gr-reviews:not(.gr-live) .gr-readmore { display: none; }
/* the carousel script normally sizes these; without it they would render full-bleed */
#gr-reviews:not(.gr-live) .gr-avatar {
  position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
  width: 66px; height: 66px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-white); font-family: var(--font-display);
  font-weight: 600; font-size: 25px;
}
#gr-reviews:not(.gr-live) .gr-gbadge {
  position: absolute; right: -3px; bottom: -3px;
  width: 26px; height: 26px; background: var(--color-white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
#gr-reviews:not(.gr-live) .gr-gbadge svg { width: 16px; height: 16px; display: block; }
#gr-reviews:not(.gr-live) .gr-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin: 2px 0 8px; }
#gr-reviews:not(.gr-live) .gr-stars { display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
#gr-reviews:not(.gr-live) .gr-star { color: var(--color-star); font-size: 19px; line-height: 1; letter-spacing: 1px; }
#gr-reviews:not(.gr-live) .gr-verified { width: 17px; height: 17px; margin-left: 6px; display: inline-flex; }
#gr-reviews:not(.gr-live) .gr-verified svg { width: 17px; height: 17px; display: block; }
