/* ==========================================================================
   Keystone Construction — style.css
   Palette: navy #1B2A49 (brand, matches logo bg), gold #C8A24A (logo crown),
   white surfaces, near-black text. Serif display + sans body.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand */
  --navy: #1B2A49;
  --navy-deep: #14203A;
  --navy-ink: #0E1830;
  --gold: #C8A24A;
  --gold-light: #DCC084;
  --gold-dark: #A5842F;
  /* Surfaces & text */
  --bg: #FFFFFF;
  --bg-soft: #F6F3EC;
  --bg-navy-tint: #EEF1F7;
  --text: #1A2233;
  --muted: #4A5568;
  --line: #E3E7EF;
  --on-dark: #F4F6FB;
  --on-dark-muted: #B9C2D6;
  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  /* Layout */
  --container: 88rem;
  --header-h: 80px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-1: 0 1px 3px rgba(14, 24, 48, 0.08), 0 8px 24px rgba(14, 24, 48, 0.07);
  --shadow-2: 0 2px 6px rgba(14, 24, 48, 0.10), 0 16px 40px rgba(14, 24, 48, 0.14);
  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 240ms;
  /* Z scale */
  --z-dropdown: 30;
  --z-header: 50;
  --z-mobile-nav: 60;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.125rem; font-family: var(--font-body); font-weight: 700; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--dur) var(--ease-out); }
a:hover { color: var(--gold-dark); }

/* Phone numbers should never wrap across two lines */
a[href^="tel:"] { white-space: nowrap; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: 0.35em; }

strong { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--navy-ink);
  padding: 0.6rem 1rem;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.section { padding-block: clamp(3.8rem, 7.5vw, 6.5rem); }
.section--soft {
  background-color: var(--bg-soft);
  background-image: radial-gradient(rgba(27, 42, 73, 0.045) 1px, transparent 1.6px);
  background-size: 26px 26px;
}
.section--tight { padding-block: clamp(2.2rem, 5vw, 3.5rem); }

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.9rem;
}
.section-head { max-width: 52rem; margin-inline: auto; }
.section-head--center { text-align: center; }
/* Gold accent rule under centered headings */
.section-head--center h2::after,
.reassure--feature h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 1rem auto 0;
}
.section-head p { color: var(--muted); font-size: 1.09rem; }

/* Consistent centered reading column for all in-section prose and lists.
   Grids that need full width (card-grid, testimonial-grid, steps, split,
   reassure) are intentionally excluded so they still span the container. */
.section > .container > h2,
.section > .container > h3,
.section > .container > p,
.section > .container > ul:not([class]),
.section > .container > .svc-list,
.section > .container > .check-list,
.section > .container > .related-grid,
.section > .container > .local-note {
  max-width: 52rem;
  margin-inline: auto;
}
/* Breathing room above subsection headings that follow body copy or lists */
.section > .container > h3 { margin-top: 2.75rem; }
.section > .container > .section-head + h3 { margin-top: 1.75rem; }

.lead { font-size: 1.17rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.72rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.btn svg { flex: 0 0 auto; }

.btn--gold {
  background: var(--gold);
  color: var(--navy-ink);
  box-shadow: 0 6px 18px rgba(200, 162, 74, 0.35);
}
.btn--gold:hover { background: var(--gold-light); color: var(--navy-ink); box-shadow: 0 8px 24px rgba(200, 162, 74, 0.45); }

.btn--outline-light {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: #fff; }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); color: #fff; }

.btn--outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline-navy:hover { background: var(--navy); color: #fff; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out), backdrop-filter var(--dur) var(--ease-out);
}
/* Frosted, solid header once scrolled off the hero (or when the mobile menu is open) */
.site-header.is-scrolled,
.site-header.nav-open {
  background: rgba(20, 32, 58, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(14, 24, 48, 0.35);
}
/* On mobile the header must NOT use backdrop-filter: it would become the
   containing block for the fixed slide-in menu and collapse its height.
   Use a solid navy bar instead. */
@media (max-width: 64rem) {
  .site-header.is-scrolled,
  .site-header.nav-open {
    background: var(--navy);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 76px;
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 62px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  padding: 0.55rem 0.85rem;
  color: var(--on-dark);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.main-nav a:hover { color: var(--gold-light); }
.main-nav a[aria-current="page"] { color: var(--gold-light); }

/* Animated gold underline on the top-level nav links */
.main-nav > ul > li > a { position: relative; }
.main-nav > ul > li > a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.32rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 260ms var(--ease-out);
}
.main-nav > ul > li > a:hover::after { transform: scaleX(1); }

/* Services dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a .caret { transition: transform var(--dur) var(--ease-out); }
.has-dropdown:hover > a .caret,
.has-dropdown:focus-within > a .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 34rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem 0.6rem;
  padding: 0.9rem;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 180ms;
  z-index: var(--z-dropdown);
}
.dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}
.dropdown li { margin: 0; }
.dropdown a {
  display: block;
  padding: 0.5rem 0.7rem;
  color: var(--text);
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
}
.dropdown a:hover { background: var(--bg-navy-tint); color: var(--navy); }
.dropdown .dropdown-all {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  margin-top: 0.4rem;
  padding-top: 0.45rem;
}
.dropdown .dropdown-all a { font-weight: 600; color: var(--gold-dark); }

/* Compact dropdown (few items, e.g. About) */
.dropdown--sm { grid-template-columns: 1fr; min-width: 15rem; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--on-dark);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.55rem 0.6rem;
  border-radius: var(--radius-sm);
}
.header-phone:hover { color: var(--gold-light); }
.header-phone svg { color: var(--gold); }

.header-cta { white-space: nowrap; padding: 0.6rem 1.25rem; min-height: 44px; font-size: 0.95rem; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
}
.nav-toggle .bars { position: relative; width: 24px; height: 2px; background: #fff; display: block; transition: background-color 120ms; }
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform var(--dur) var(--ease-out), top var(--dur) var(--ease-out);
}
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero (dark navy, image + overlay)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--navy-ink);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  display: none;
}
.hero-media.is-video .hero-video { display: block; }
.hero-media.is-video .hero-fallback { display: none; }
.hero.is-loaded .hero-media img { animation: heroZoom 18s var(--ease-out) forwards; }
@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.1); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 24, 48, 0.55) 0%, rgba(14, 24, 48, 0.35) 45%, rgba(14, 24, 48, 0.82) 100%),
    linear-gradient(100deg, rgba(14, 24, 48, 0.85) 0%, rgba(14, 24, 48, 0.35) 60%, rgba(14, 24, 48, 0.15) 100%);
}
/* Extra darkening at the very top so the floating nav stays legible */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 170px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(14, 24, 48, 0.55), transparent);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 5rem));
  padding-bottom: clamp(4.2rem, 10vw, 8rem);
  max-width: 60rem;
  margin-inline: auto;
  text-align: center;
}
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { color: #fff; margin-bottom: 0.45em; }
.hero .hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--on-dark-muted);
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 1.8rem;
}
.hero .hero-sub strong { color: var(--gold-light); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-bottom: 2.4rem; }

/* Glassy stat chips (nod to the reference design) */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.85rem 1.25rem;
  margin: 0;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-stats .num {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.1;
}
.hero-stats .label { font-size: 0.85rem; color: var(--on-dark-muted); }

/* Slim page hero for interior pages */
.hero--page .hero-inner {
  padding-top: calc(var(--header-h) + clamp(1.5rem, 5vw, 3rem));
  padding-bottom: clamp(3.4rem, 8vw, 6rem);
}

/* --------------------------------------------------------------------------
   Trust bar
   -------------------------------------------------------------------------- */
.trust-bar { background: var(--navy-deep); color: var(--on-dark); }
.trust-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-block: 1.4rem;
}
.trust-item { display: flex; align-items: center; gap: 0.8rem; font-size: 0.95rem; }
.trust-item svg { color: var(--gold); flex: 0 0 auto; }
.trust-item strong { display: block; color: #fff; font-size: 1.02rem; }
.trust-item span { color: var(--on-dark-muted); font-size: 0.85rem; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
  margin-top: 2.4rem;
}
@media (max-width: 60rem) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 38rem) { .card-grid { grid-template-columns: 1fr; } }

.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.7rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: rgba(200, 162, 74, 0.55);
  color: var(--text);
}
.svc-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--bg-navy-tint);
  color: var(--navy);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.svc-card:hover .icon { background: var(--navy); color: var(--gold-light); }
.svc-card h3 { margin: 0.4rem 0 0; font-size: 1.22rem; }
.svc-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.svc-card .card-more {
  margin-top: auto;
  padding-top: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gold-dark);
}
.svc-card .card-more svg { transition: transform var(--dur) var(--ease-out); }
.svc-card:hover .card-more svg { transform: translateX(4px); }

/* Accent CTA card (last cell of the services grid) */
.svc-card--cta { background: var(--navy); border-color: var(--navy); color: var(--on-dark); }
.svc-card--cta h3 { color: #fff; }
.svc-card--cta p { color: var(--on-dark-muted); }
.svc-card--cta .icon { background: rgba(255, 255, 255, 0.1); color: var(--gold-light); }
.svc-card--cta:hover { border-color: var(--gold); color: var(--on-dark); }
.svc-card--cta:hover .icon { background: var(--gold); color: var(--navy-ink); }
.svc-card--cta .card-more { color: var(--gold-light); }

/* --------------------------------------------------------------------------
   Split (text + image) blocks
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.8rem, 5vw, 4rem);
  align-items: center;
}
.split--flip > .split-media { order: -1; }
.split-media { position: relative; }
.split-media img {
  border-radius: var(--radius);
  box-shadow:
    0 2px 6px rgba(14, 24, 48, 0.08),
    0 14px 28px rgba(14, 24, 48, 0.14),
    0 34px 64px -12px rgba(14, 24, 48, 0.24);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Checklist ("What We Offer")
   -------------------------------------------------------------------------- */
.check-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  margin: 1.7rem 0 0;
  list-style: none;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  padding: 0.6rem 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  border-bottom: 1px solid var(--line);
}
.check-list li:last-child { border-bottom: 0; }
.check-list svg {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 6px;
  color: var(--gold-dark);
  background: rgba(200, 162, 74, 0.13);
  border-radius: 50%;
}
@media (min-width: 40rem) {
  .check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.4rem; }
  .check-list li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}

/* Simple two/three-column keyword lists inside division pages */
.svc-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.45rem 1.2rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}
.svc-list li {
  position: relative;
  margin: 0;
  padding: 0.35rem 0 0.35rem 1.35rem;
  font-size: 0.98rem;
}
.svc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   Process steps
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.4rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 2rem 1.6rem 1.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* --------------------------------------------------------------------------
   Reassurance band ("Worried about choosing the wrong builder?")
   -------------------------------------------------------------------------- */
.reassure {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.4rem);
  box-shadow: var(--shadow-2);
}
.reassure h2 { color: var(--navy); }
.reassure p { color: var(--muted); }
.reassure strong { color: var(--navy); }

/* Prominent, centered trust variant (home) */
.reassure--feature { text-align: center; padding-block: clamp(2.6rem, 6vw, 4rem); }
.reassure--feature .eyebrow { color: var(--gold-dark); }
.reassure--feature h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.reassure--feature > p { max-width: 46rem; margin-inline: auto; }
.reassure--feature > .lead { color: var(--text); }
.reassure-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 1.9rem; }

/* Three core principles (reusable trust band) */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  margin: 2.2rem 0;
  text-align: center;
}
.principle {
  padding: 1.9rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.principle .p-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.principle h3 { color: var(--navy); font-size: 1.22rem; margin: 0 0 0.45rem; }
.principle p { color: var(--muted); font-size: 0.97rem; margin: 0; }
@media (max-width: 52rem) {
  .principles { grid-template-columns: 1fr; gap: 0.9rem; }
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
  margin-top: 2.4rem;
}
@media (max-width: 52rem) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.7rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.stars { display: inline-flex; gap: 0.15rem; color: var(--gold); }
.testimonial blockquote { margin: 0; font-size: 0.99rem; color: var(--text); }
.testimonial cite {
  font-style: normal;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.93rem;
}
.testimonial cite span { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; }

/* --------------------------------------------------------------------------
   Local / service-area note
   -------------------------------------------------------------------------- */
.local-note {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.4rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-1);
  margin-top: 1.8rem;
}
.local-note svg { color: var(--navy); flex: 0 0 auto; margin-top: 0.15rem; }
.local-note p { margin: 0; font-size: 0.98rem; color: var(--text); }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--navy-ink);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50rem 24rem at -10% 120%, rgba(200, 162, 74, 0.14), transparent 60%),
    radial-gradient(46rem 22rem at 110% -30%, rgba(200, 162, 74, 0.1), transparent 60%);
  pointer-events: none;
}
.cta-band .container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  padding-block: clamp(2.6rem, 6vw, 4rem);
}
.cta-band h2 { color: #fff; margin: 0 0 0.3em; }
.cta-band p { color: var(--on-dark-muted); margin: 0; max-width: 34rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* --------------------------------------------------------------------------
   Related links
   -------------------------------------------------------------------------- */
.related-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.8rem;
}
.related-link {
  flex: 1 1 14rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 1.05rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--navy);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}
.related-link:hover {
  border-color: rgba(200, 162, 74, 0.6);
  box-shadow: var(--shadow-1);
  transform: translateY(-2px);
  color: var(--navy);
}
.related-link svg { color: var(--gold-dark); flex: 0 0 auto; }
/* Above mobile, cap card width so a leftover card centers at a normal size
   (instead of stretching full-width) and the whole row stays balanced. */
@media (min-width: 34rem) { .related-link { max-width: 17rem; } }

/* --------------------------------------------------------------------------
   FAQ accordion (native <details>)
   -------------------------------------------------------------------------- */
.faq { max-width: 52rem; margin-inline: auto; margin-top: 2.2rem; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-1);
  margin-bottom: 0.8rem;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  transition: color var(--dur) var(--ease-out);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-dark); }
.faq-item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border-right: 2.5px solid var(--gold-dark);
  border-bottom: 2.5px solid var(--gold-dark);
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-answer { padding: 0 1.35rem 1.25rem; color: var(--muted); }
.faq-answer p { margin: 0; }
/* Custom summary display breaks native collapsing, so hide answers explicitly */
.faq-item:not([open]) .faq-answer { display: none; }

/* --------------------------------------------------------------------------
   Portfolio marquee (auto-scrolling image ribbon)
   -------------------------------------------------------------------------- */
.portfolio { background: var(--navy-ink); color: var(--on-dark); overflow: hidden; }
.portfolio .eyebrow { color: var(--gold-light); }
.portfolio h2 { color: #fff; }
.portfolio .section-head p { color: var(--on-dark-muted); }
.marquee {
  margin-top: 2.8rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 70s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-item {
  position: relative;
  flex: 0 0 auto;
  width: 450px;
  height: 300px;
  margin-right: 1.2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), 0 16px 34px rgba(0, 0, 0, 0.4);
}
.marquee-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.marquee-item .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.2rem 1.15rem 0.95rem;
  background: linear-gradient(transparent, rgba(14, 24, 48, 0.9));
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  pointer-events: none;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 48rem) {
  .marquee-item { width: 300px; height: 200px; margin-right: 0.9rem; }
  .marquee-track { animation-duration: 48s; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .marquee-track { animation: none; }
  .marquee-item[aria-hidden="true"] { display: none; }
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: start;
}
.contact-panel {
  padding: 1.8rem 1.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.contact-info { display: grid; gap: 1.1rem; padding: 0; margin: 1.4rem 0 0; list-style: none; }
.contact-info li { display: flex; gap: 0.85rem; align-items: flex-start; margin: 0; }
.contact-info svg { color: var(--gold-dark); flex: 0 0 auto; margin-top: 0.2rem; }
.contact-info strong { display: block; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.contact-info a { font-weight: 600; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); border: 1px solid var(--line); margin-top: 1.6rem; }
.map-embed iframe { display: block; width: 100%; height: 320px; border: 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: var(--on-dark-muted);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.2rem;
  padding-block: clamp(2.8rem, 6vw, 4rem) 2rem;
}
.footer-brand img { height: 44px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.93rem; }
.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-contact svg { color: var(--gold); flex: 0 0 auto; margin-top: 0.25rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.87rem;
}
.footer-bottom a { text-decoration: underline; text-decoration-color: rgba(255,255,255,0.25); }

/* --------------------------------------------------------------------------
   Prose helper for legal pages & long-form sections
   -------------------------------------------------------------------------- */
.prose { max-width: 52rem; margin-inline: auto; }
.prose--center { margin-inline: auto; }
.prose h2 { margin-top: 2.2rem; font-size: 1.5rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { color: var(--text); }

/* --------------------------------------------------------------------------
   Scroll-reveal animation (JS adds .js to <html>; IO adds .is-visible)
   -------------------------------------------------------------------------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

html.js .hero-inner > * {
  opacity: 0;
  transform: translateY(22px);
}
html.js .hero.is-loaded .hero-inner > * {
  animation: fadeUp 800ms var(--ease-out) forwards;
}
html.js .hero.is-loaded .hero-inner > *:nth-child(2) { animation-delay: 100ms; }
html.js .hero.is-loaded .hero-inner > *:nth-child(3) { animation-delay: 200ms; }
html.js .hero.is-loaded .hero-inner > *:nth-child(4) { animation-delay: 300ms; }
html.js .hero.is-loaded .hero-inner > *:nth-child(5) { animation-delay: 420ms; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 78rem) {
  .header-phone span { display: none; }
  .header-phone svg { width: 22px; height: 22px; }
  .dropdown { min-width: 28rem; }
}

@media (max-width: 64rem) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    background: var(--navy-deep);
    padding: 1.2rem 1.2rem 2.5rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 300ms var(--ease-out);
    z-index: var(--z-mobile-nav);
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .main-nav a { padding: 0.95rem 0.4rem; font-size: 1.05rem; width: 100%; justify-content: space-between; }
  .main-nav > ul > li > a::after { display: none; }

  /* Services accordion on mobile */
  .dropdown {
    position: static;
    transform: none;
    min-width: 0;
    grid-template-columns: 1fr;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 0 0.6rem 0.9rem;
    opacity: 1;
    visibility: visible;
    display: none;
  }
  .has-dropdown.is-open .dropdown { display: grid; }
  /* Neutralize the desktop hover/focus fly-out transform on mobile */
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    transform: none;
    position: static;
  }
  .dropdown a { color: var(--on-dark-muted); padding: 0.55rem 0.4rem; }
  .dropdown a:hover { background: rgba(255, 255, 255, 0.06); color: var(--gold-light); }
  .dropdown .dropdown-all { border-top-color: rgba(255, 255, 255, 0.1); }
  .dropdown .dropdown-all a { color: var(--gold-light); }

  .mobile-nav-cta { display: grid; gap: 0.7rem; margin-top: 1.4rem; }

  .trust-bar .container { grid-template-columns: 1fr 1fr; }
  .split, .split--flip { grid-template-columns: 1fr; }
  .split--flip > .split-media { order: 0; }
  .split-media::after { display: none; }
  .steps { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Hide mobile-only CTA on desktop */
.mobile-nav-cta { display: none; }
@media (max-width: 64rem) { .main-nav.is-open .mobile-nav-cta, .main-nav .mobile-nav-cta { display: grid; } }

@media (max-width: 34rem) {
  body { font-size: 1rem; }
  .trust-bar .container { grid-template-columns: 1fr; gap: 0.7rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.7rem; }
  .hero-actions .btn { width: 100%; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 auto; }
  .brand img { height: 48px; }
}

/* --------------------------------------------------------------------------
   LUXURY REFINEMENTS  (applied site-wide)
   -------------------------------------------------------------------------- */

/* Typography drama */
h1 { letter-spacing: -0.02em; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.015em; }
.lead { font-size: 1.24rem; line-height: 1.75; }
.eyebrow { letter-spacing: 0.24em; font-size: 0.78rem; }
.eyebrow::before {
  content: "\25C6";
  color: var(--gold);
  font-size: 0.62em;
  margin-right: 0.6rem;
  vertical-align: 1px;
}

/* Refined, tapered gold divider under centered headings (logo-diamond palette) */
.section-head--center h2::after,
.reassure--feature h2::after {
  width: 6rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 22%, var(--gold) 78%, transparent);
}

/* Editorial image grade + slow reveal on hover */
.split-media img,
.hero-fallback,
.hero-video { filter: contrast(1.04) saturate(0.96); }
.split-media img { transition: transform 900ms var(--ease-out); }
.split:hover .split-media img { transform: scale(1.03); }

/* Slower, richer card hover */
.svc-card {
  transition: box-shadow 380ms var(--ease-out), border-color 380ms var(--ease-out), transform 380ms var(--ease-out);
}
.svc-card:hover { transform: translateY(-6px); }

/* Animated gold underline on inline prose links */
.section p a:not(.btn) {
  text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 1px;
  transition: background-size 320ms var(--ease-out), color 320ms var(--ease-out);
}
.section p a:not(.btn):hover { background-size: 100% 1.5px; color: var(--gold-dark); }

/* Whisper-thin gold hairline between stacked sections */
main > .section + .section { position: relative; }
main > .section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(80%, 58rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 162, 74, 0.45), transparent);
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js .reveal, html.js .hero-inner > * { opacity: 1 !important; transform: none !important; }
  .hero.is-loaded .hero-media img { animation: none; }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none; }
  .hero { background: #fff; color: #000; }
  .hero h1 { color: #000; }
}
