:root {
  --paper: #f7f4ef;
  --paper-2: #efebe3;
  --navy: #0f1729;
  --navy-2: #1a2336;
  --ink: #0f1729;
  --ink-soft: #4a5468;
  --gray: #374151;
  --gray-line: #6b7280;
  --cream: #f7f4ef;
  --cream-soft: rgba(247, 244, 239, 0.62);
  --amber: #e89b1c;
  --amber-deep: #c47f12;
  --line: rgba(15, 23, 41, 0.12);
  --line-dark: rgba(247, 244, 239, 0.16);
  --max: 1100px;
  --nav-h: 66px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: 84px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: 1920px; margin: 0 auto; padding: 0 48px; }
.wrap.narrow { max-width: 1920px; }
.hero-col { max-width: 600px; }
.band.light p:not(.section-intro):not(.outcome) { max-width: 42em; }

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 400; line-height: 1.08; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: 3.8rem; letter-spacing: -0.01em; }
h2 { font-size: 2.6rem; letter-spacing: -0.01em; }
h3 { font-size: 1.45rem; line-height: 1.2; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--amber); }
p { margin: 0 0 1.2em; }
strong { font-weight: 500; color: var(--ink); }

/* Eyebrow with amber dash */
.eyebrow {
  font-family: 'DM Sans', sans-serif; font-size: 0.66rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--amber);
  margin: 0 0 24px; display: flex; align-items: center;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: var(--amber); margin-right: 18px; flex: none; }

/* Nav — always-white frosted glass (matched from Manus), small links that never wrap, hamburger->circle on mobile */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0.85rem 3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: #f7f4ef80; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 41, 0.08);
  transition: background-color 0.45s ease, border-color 0.45s ease;
}
.nav-logo { flex-shrink: 0; display: flex; }
.nav-logo-img { height: 34px; width: auto; display: block; transition: filter 0.45s ease; }
.nav-links-desktop { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.5rem); }
.nav-links-desktop a { font-family: 'DM Sans', system-ui, sans-serif; font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase; color: #374151; text-decoration: none; white-space: nowrap; transition: color 0.3s; }
.nav-links-desktop a:hover { color: #0f1729; }
.nav-cta {
  font-family: 'DM Sans', system-ui, sans-serif; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.55rem 1.3rem; background: #e89b1c; color: #fff !important; border-radius: 2px; text-decoration: none;
  white-space: nowrap; border: none; transition: background 0.3s;
}
.nav-cta:hover { background: #c4820f; }
a.tel { text-decoration: none; }

.nav-toggle { display: none; cursor: pointer; padding: 4px; background: none; border: none; align-items: center; justify-content: center; }
.nav-toggle-icon { width: 32px; height: 32px; overflow: visible; }
.nav-toggle-icon .bar { stroke: #0f1729; stroke-width: 1.8; stroke-linecap: round; transition: stroke 0.45s ease, opacity 0.25s ease, transform 0.35s cubic-bezier(.4,0,.2,1); }
.nav-toggle-icon .o-ring { fill: none; stroke: #0f1729; stroke-width: 1.8; stroke-dasharray: 57; stroke-dashoffset: 57; opacity: 0; transform-origin: 16px 16px; transition: stroke 0.45s ease, stroke-dashoffset 0.4s cubic-bezier(.4,0,.2,1) 0.1s, opacity 0.2s ease 0.1s; }
.nav-toggle.open .bar-top { opacity: 0; transform: translateY(-4px); }
.nav-toggle.open .bar-mid { opacity: 0; transform: scaleX(0); }
.nav-toggle.open .bar-bot { opacity: 0; transform: translateY(4px); }
.nav-toggle.open .o-ring { stroke-dashoffset: 0; opacity: 1; }

.nav-mobile-menu {
  display: none; position: fixed; top: 56px; left: 0; right: 0; z-index: 90;
  flex-direction: column; gap: 1.25rem; padding: 1.75rem 1.5rem 2rem;
  background: #f7f4ef80; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 41, 0.08); align-items: flex-end; text-align: right;
  transition: background-color 0.45s ease, border-color 0.45s ease;
}
.nav-mobile-menu.open { display: flex; animation: navFadeIn 0.22s ease forwards; }
.nav-mobile-menu a { font-family: 'DM Sans', system-ui, sans-serif; font-size: 0.82rem; letter-spacing: 0.13em; text-transform: uppercase; color: #374151; text-decoration: none; transition: color 0.45s ease; }
.nav-mobile-menu a:hover { color: #0f1729; }
.nav-mobile-menu .nav-cta { color: #fff !important; }
@keyframes navFadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* Adaptive: over a dark section, flip nav + menu to dark frosted with light text */
.nav.on-dark { background: rgba(15, 23, 41, 0.5); border-bottom-color: rgba(247, 244, 239, 0.14); }
.nav.on-dark .nav-links-desktop a { color: rgba(247, 244, 239, 0.85); }
.nav.on-dark .nav-links-desktop a:hover { color: #fff; }
.nav.on-dark .nav-logo-img { filter: brightness(0) invert(1); }
.nav.on-dark .nav-toggle-icon .bar, .nav.on-dark .nav-toggle-icon .o-ring { stroke: #f7f4ef; }
.nav-mobile-menu.on-dark { background: rgba(15, 23, 41, 0.55); border-bottom-color: rgba(247, 244, 239, 0.14); }
.nav-mobile-menu.on-dark a { color: rgba(247, 244, 239, 0.9); }
.nav-mobile-menu.on-dark a:hover { color: #fff; }
.nav-mobile-menu.on-dark .nav-cta { color: #fff !important; }

@media (max-width: 900px) {
  .nav { padding: 0.7rem 1.5rem; }
  .nav-links-desktop { display: none; }
  .nav-toggle { display: flex; }
}

/* Bands */
.band { padding: 112px 0; position: relative; overflow: hidden; }
.band.light { background: var(--paper); color: var(--ink); }
.band.dark { background: var(--navy); color: var(--cream); }
.band.dark h1, .band.dark h2, .band.dark h3 { color: #fff; }
.section-intro { max-width: 40em; margin-top: -0.1em; color: var(--ink-soft); }
.band.dark .section-intro { color: var(--cream-soft); }

/* Hero */
.hero { background: var(--paper); padding: 176px 0 128px; }
.hero h1 { margin-bottom: 0.35em; }
.lead { font-size: 1.25rem; line-height: 1.7; color: var(--ink-soft); margin-bottom: 2.4em; }

.actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.actions.center { justify-content: center; }
.btn {
  display: inline-block; font-family: 'DM Sans', sans-serif; font-size: 0.68rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.13em;
  background: var(--amber); color: #fff; padding: 11px 22px; border-radius: 2px;
  text-decoration: none; border: 1px solid var(--amber); transition: background-color .2s, border-color .2s;
}
.btn:hover { background: var(--amber-deep); border-color: var(--amber-deep); }
.btn.link {
  background: transparent; color: var(--gray); border: none; border-radius: 0;
  padding: 0 0 2px; font-size: 0.78rem; letter-spacing: 0.08em; border-bottom: 1px solid var(--gray-line);
}
.btn.link:hover { background: transparent; color: var(--ink); }
.call { font-family: 'DM Sans', sans-serif; font-size: 0.84rem; color: var(--ink-soft); margin: 24px 0 0; }
.call a.tel { color: var(--amber-deep); white-space: nowrap; border-bottom: 1px solid currentColor; }

/* Navy statement band */
.statement .motif {
  position: absolute; left: -180px; top: -120px; width: 620px; height: 620px; border-radius: 50%;
  background: var(--navy-2); pointer-events: none;
}
.statement .wrap { position: relative; }
.statement-line { font-size: 2.7rem; line-height: 1.25; max-width: 17em; color: var(--cream-soft) !important; }
.statement-line em { color: #fff; font-style: normal; }
.statement p { color: var(--cream-soft); max-width: 38em; }
.statement .emph { color: #fff; }

/* Light band body */
.band.light p { color: var(--ink-soft); }
.band.light .bridge-link a { color: var(--amber-deep); text-decoration: none; font-family: 'DM Sans', sans-serif; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 1px solid currentColor; }
.bridge-link { margin-top: 1.8em; }

/* Service cards */
.services { background: var(--paper); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 48px 0 0; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--paper); padding: 34px 30px; }
.card.feature { background: var(--paper-2); }
.card-tag { font-family: 'DM Sans', sans-serif; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--amber-deep); font-weight: 400; margin: 0 0 16px; }
.card h3 { margin-bottom: 0.5em; }
.card p { font-size: 0.94rem; color: var(--ink-soft); }
.card .outcome { color: var(--ink); font-style: italic; margin-bottom: 0; margin-top: 1.1em; }
.reassure { margin-top: 40px; font-style: italic; color: var(--ink-soft); }

/* Diagram */
.triangles { display: block; width: 100%; max-width: 720px; height: auto; margin: 44px auto 0; }
.line-graphic { display: block; width: 100%; max-width: 560px; height: auto; margin: 40px auto 0; }
.shift-legend { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; margin: 28px 0 0; padding: 0; font-family: 'DM Sans', sans-serif; font-size: 0.82rem; letter-spacing: 0.02em; }
.shift-legend li { color: var(--ink-soft); }
.shift-legend .from { color: #6b7280; }
.shift-legend .arr { color: var(--ink-soft); margin: 0 0.2em; }
.shift-legend .to { color: var(--amber-deep); font-weight: 500; }
.diagram-credit { font-family: 'DM Sans', sans-serif; font-size: 0.72rem; line-height: 1.6; color: #8a8276; text-align: center; max-width: 52em; margin: 22px auto 0; }
.diagram-credit em { font-style: italic; }

/* Who — hairline-separated rows */
.people { margin: 44px 0; border-top: 1px solid var(--line); }
.person { padding: 32px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 2fr; gap: 36px; }
.person p { color: var(--ink-soft); margin: 0 0 0.7em; }
.person p:last-child { margin-bottom: 0; }
.person a { color: var(--amber-deep); text-decoration: none; font-family: 'DM Sans', sans-serif; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 1px solid currentColor; }
.person-name { font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 400; color: var(--ink) !important; margin: 0; }
.creed {
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; font-size: 1.8rem; line-height: 1.4;
  margin: 1.8em 0 0; padding-left: 28px; border-left: 2px solid var(--amber); color: var(--ink); max-width: 24em;
}

/* Contact */
.contact { text-align: center; }
.contact .eyebrow { justify-content: center; }
.contact .section-intro, .contact p { margin-left: auto; margin-right: auto; }
.contact h2 { max-width: 15em; margin-left: auto; margin-right: auto; }
.contact p:not(.actions) { max-width: 34em; color: var(--ink-soft); }
.actions.center { margin: 2.2em 0 0.8em; }
.promise { font-style: italic; color: var(--ink-soft); font-size: 0.95rem; }

/* Footer — exact match to the Manus build: bg "open" watermark (full-width svg) dictates height; content overlaid, scaled to fit on mobile */
.site-footer { border-top: 1.5px solid rgba(15, 23, 41, 0.1); background: #0f1729; position: relative; }
.footer-bg { width: 100%; display: block; pointer-events: none; }
.footer-bg-img { width: 100%; height: auto; display: block; }
.footer-bg-img path { fill: #1a2332; }
.footer-content { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; padding: 1.5rem 2rem; }
.footer-block { display: flex; flex-direction: column; gap: 0.25rem; }
.footer-logo-img { height: 28px; width: auto; display: block; }
.footer-links { display: flex; gap: 1rem; }
.footer-links a { font-family: 'DM Sans', system-ui, sans-serif; font-size: 0.55rem; letter-spacing: 0.08em; text-transform: uppercase; color: #f7f4ef; text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: #e89b1c; }
.footer-copy { font-family: 'DM Sans', system-ui, sans-serif; font-size: 0.5rem; color: #f7f4ef66; letter-spacing: 0.03em; line-height: 1.4; margin: 0; }
@media (max-width: 900px) {
  .footer-content { padding: 1rem 1.25rem; }
  .footer-logo-img, .footer-bg-img { overflow: visible; }
  .footer-logo-img { height: 21px; }
}
@media (max-width: 600px) {
  .footer-content { align-items: center; justify-content: flex-start; padding: 0 1.5rem; }
  .footer-block { align-items: flex-start; transform: scale(0.75); transform-origin: left center; }
  .footer-links { justify-content: flex-start; }
  .footer-copy { text-align: left; }
}

/* Focus */
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

/* Responsive */
@media (max-width: 860px) {
  h1 { font-size: 2.7rem; }
  h2 { font-size: 2rem; }
  .statement-line { font-size: 2rem; }
  .cards { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; gap: 10px; }
  .hero { padding: 134px 0 88px; }
  .band { padding: 80px 0; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 22px; }
  .logo-mark { width: 146px; }
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ── Lead form: low-friction 3-step ─────────────────────────────────────── */
.lf { max-width: 30rem; margin: 2.2rem auto 1.6rem; text-align: left; }
.lf-progress { display: flex; gap: 8px; justify-content: center; margin-bottom: 1.7rem; }
.lf-dot { width: 30px; height: 4px; border-radius: 2px; background: rgba(15, 23, 41, 0.12); transition: background-color 0.3s ease; }
.lf-dot.is-active { background: var(--amber); }
.lf-step { display: none; border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.lf-step.is-active { display: block; animation: lfIn 0.25s ease; }
@keyframes lfIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lf-q { font-family: 'Playfair Display', Georgia, serif; font-weight: 400; font-size: 1.35rem; line-height: 1.25; color: var(--ink); margin: 0 0 1.1rem; padding: 0; }
.lf-opt { font-family: 'DM Sans', sans-serif; font-size: 0.8rem; color: var(--ink-soft); font-style: italic; }
.lf-choices { display: flex; flex-direction: column; gap: 10px; }
.lf-choice { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px; font-family: 'Lora', Georgia, serif; font-size: 0.98rem; color: var(--ink); cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease; }
.lf-choice:hover { border-color: var(--amber); }
.lf-choice input { accent-color: var(--amber); width: 16px; height: 16px; flex: none; }
.lf-choice:has(input:checked) { border-color: var(--amber); background: rgba(232, 155, 28, 0.06); }
.lf-input { width: 100%; box-sizing: border-box; padding: 13px 15px; border: 1px solid var(--line); border-radius: 4px; font-family: 'Lora', Georgia, serif; font-size: 1rem; color: var(--ink); background: #fff; margin-bottom: 12px; }
.lf-input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(232, 155, 28, 0.12); }
.lf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lf-nav { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 1.3rem; }
.lf-nav .lf-back { margin-right: auto; }
.lf-done-msg { font-family: 'Lora', Georgia, serif; font-size: 1.12rem; line-height: 1.6; color: var(--ink); text-align: center; padding: 1.6rem 0; margin: 0; }
.lf-err { font-family: 'DM Sans', sans-serif; font-size: 0.85rem; color: #b4452f; margin: 1rem 0 0; }
.lf-err a { color: #b4452f; }
.lf-alt { font-family: 'DM Sans', sans-serif; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); text-align: center; margin: 0.5rem 0 0.8rem; }
