@layer reset, base, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
  body, h1, h2, h3, p, ul, ol { margin: 0; }
  ul, ol { padding: 0; }
  img, svg { display: block; max-width: 100%; }
  button, input, textarea, select { font: inherit; }
}

@layer base {
  :root {
    color-scheme: light;
    --navy: #14263d;
    --navy-soft: #203851;
    --gold: #c4a46a;
    --gold-soft: #e9ddc5;
    --ivory: #f7f5f0;
    --white: #fff;
    --ink: #17202a;
    --muted: #5e6873;
    --line: rgba(20, 38, 61, .14);
    --shadow: 0 20px 60px rgba(20, 38, 61, .10);
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --max: 1180px;
    --radius: 1.25rem;
  }

  body { min-width: 320px; background: var(--ivory); color: var(--ink); font-family: var(--sans); line-height: 1.65; }
  body.nav-open { overflow: hidden; }
  a { color: inherit; text-decoration: none; }
  button { border: 0; }
  :focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
  h1, h2, h3 { color: var(--navy); font-family: var(--serif); font-weight: 500; line-height: 1.08; text-wrap: balance; }
  h1 { font-size: clamp(2.85rem, 8vw, 6.25rem); letter-spacing: -.055em; }
  h2 { font-size: clamp(2.15rem, 5vw, 4rem); letter-spacing: -.04em; }
  h3 { font-size: clamp(1.35rem, 3vw, 1.8rem); letter-spacing: -.025em; }
  p { text-wrap: pretty; }
}

@layer components {
  .container { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
  .section { padding-block: clamp(4.5rem, 10vw, 8rem); }
  .section--white { background: var(--white); }
  .section--navy { background: var(--navy); color: var(--white); }
  .section--navy h2, .section--navy h3 { color: var(--white); }
  .skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; transform: translateY(-200%); background: var(--white); color: var(--navy); padding: .75rem 1rem; border-radius: .5rem; box-shadow: var(--shadow); }
  .skip-link:focus { transform: none; }

  .site-header { position: sticky; z-index: 50; top: 0; background: rgba(247, 245, 240, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
  .header-inner { min-height: 4.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
  .brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--navy); font-weight: 750; letter-spacing: -.025em; }
  .brand-mark { width: 2rem; height: 2rem; }
  .brand-name { font-size: 1.05rem; }
  .brand-name span { color: #8a6d3a; font-weight: 500; }
  .nav-toggle { width: 2.8rem; height: 2.8rem; display: grid; place-items: center; background: transparent; color: var(--navy); cursor: pointer; }
  .nav-toggle svg { width: 1.55rem; height: 1.55rem; stroke: currentColor; }
  .site-nav { position: fixed; inset: 4.75rem 0 0; display: none; flex-direction: column; gap: .25rem; background: var(--ivory); padding: 1.5rem 1rem; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .8rem .5rem; color: var(--navy); font-weight: 600; }
  .site-nav a[aria-current="page"] { color: #7c602e; }
  .site-nav .button { margin-top: .75rem; color: var(--white); }

  .button { min-height: 3rem; display: inline-flex; align-items: center; justify-content: center; gap: .65rem; width: fit-content; padding: .78rem 1.15rem; border-radius: .3rem; background: var(--navy); color: var(--white); font-weight: 700; transition: transform .2s ease, background .2s ease; }
  .button:hover { background: var(--navy-soft); transform: translateY(-2px); }
  .button--gold { background: var(--gold); color: var(--navy); }
  .button--gold:hover { background: #d2b57f; }
  .button--ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
  .button svg, .text-link svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; }
  .text-link { display: inline-flex; align-items: center; gap: .45rem; color: var(--navy); font-weight: 750; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .3rem; }

  .eyebrow { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.2rem; color: #7c602e; font-size: .74rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
  .eyebrow::before { content: ""; width: 2.1rem; height: 1px; background: var(--gold); }
  .section--navy .eyebrow { color: var(--gold-soft); }
  .lead { max-width: 46rem; margin-top: 1.5rem; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
  .section--navy .lead { color: #dce3ea; }
  .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

  .hero { position: relative; overflow: hidden; padding-block: clamp(5rem, 13vw, 9rem); }
  .hero::after { content: ""; position: absolute; z-index: -1; width: 27rem; height: 27rem; right: -11rem; top: -8rem; border: 1px solid rgba(196, 164, 106, .35); border-radius: 50%; box-shadow: 0 0 0 4rem rgba(196, 164, 106, .05), 0 0 0 8rem rgba(196, 164, 106, .035); }
  .hero-grid { display: grid; gap: 3rem; align-items: end; }
  .hero-copy h1 { max-width: 14ch; }
  .hero-note { max-width: 22rem; padding: 1.5rem; border-left: 2px solid var(--gold); background: rgba(255,255,255,.55); color: var(--muted); }
  .hero-note strong { display: block; margin-bottom: .35rem; color: var(--navy); }

  .trust-strip { border-block: 1px solid var(--line); background: var(--white); }
  .trust-list { display: grid; list-style: none; }
  .trust-list li { display: flex; align-items: center; gap: .8rem; padding: 1.25rem 0; color: var(--navy); font-size: .9rem; font-weight: 700; border-bottom: 1px solid var(--line); }
  .trust-list li:last-child { border: 0; }
  .trust-list svg { width: 1.25rem; height: 1.25rem; color: #8a6d3a; fill: none; stroke: currentColor; }

  .section-heading { display: grid; gap: 1.25rem; margin-bottom: 2.5rem; }
  .section-heading p { max-width: 39rem; color: var(--muted); }
  .cards { display: grid; gap: 1rem; }
  .card { display: flex; flex-direction: column; min-height: 100%; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 0 0 rgba(20,38,61,0); transition: transform .2s ease, box-shadow .2s ease; }
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .card-icon { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; margin-bottom: 2.5rem; border-radius: 50%; background: var(--gold-soft); color: var(--navy); }
  .card-icon svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; }
  .card p { margin: .85rem 0 1.5rem; color: var(--muted); }
  .card .text-link { margin-top: auto; }
  .status { display: inline-flex; align-items: center; width: fit-content; gap: .4rem; margin-bottom: 1rem; padding: .28rem .55rem; border-radius: 999px; background: var(--gold-soft); color: #684e20; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
  .status::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--gold); }

  .split { display: grid; gap: 2.5rem; align-items: center; }
  .principles { display: grid; gap: 1rem; list-style: none; }
  .principles li { padding: 1.25rem 0 1.25rem 3rem; position: relative; border-bottom: 1px solid rgba(255,255,255,.18); }
  .principles strong { display: block; margin-bottom: .25rem; color: var(--white); }
  .principles span { color: #c9d2db; }
  .principles .number { position: absolute; left: 0; top: 1.35rem; color: var(--gold); font-family: var(--serif); font-size: 1.25rem; }

  .steps { display: grid; gap: 1rem; counter-reset: steps; }
  .step { position: relative; padding: 1.5rem 1.5rem 1.5rem 4.2rem; border-top: 1px solid var(--line); counter-increment: steps; }
  .step::before { content: "0" counter(steps); position: absolute; left: 0; top: 1.15rem; color: #8a6d3a; font-family: var(--serif); font-size: 1.8rem; }
  .step p { margin-top: .5rem; color: var(--muted); }

  .cta-panel { display: grid; gap: 1.5rem; padding: clamp(2rem, 6vw, 4.5rem); border-radius: var(--radius); background: var(--navy); color: var(--white); box-shadow: var(--shadow); }
  .cta-panel h2 { color: var(--white); }
  .cta-panel p { max-width: 41rem; color: #d3dce5; }

  .page-hero { padding-block: clamp(4rem, 10vw, 7rem); border-bottom: 1px solid var(--line); }
  .page-hero h1 { max-width: 16ch; font-size: clamp(2.7rem, 7vw, 5.3rem); }
  .breadcrumbs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 2rem; color: var(--muted); font-size: .85rem; }
  .breadcrumbs a { text-decoration: underline; text-underline-offset: .2rem; }
  .content-grid { display: grid; gap: 2.5rem; }
  .prose { max-width: 48rem; }
  .prose h2 { margin: 2.8rem 0 1rem; font-size: clamp(1.8rem, 4vw, 2.6rem); }
  .prose h3 { margin: 2rem 0 .75rem; }
  .prose p + p, .prose ul + p { margin-top: 1rem; }
  .prose ul { margin: 1rem 0 0 1.2rem; }
  .prose li + li { margin-top: .5rem; }
  .notice { padding: 1.25rem; border-left: 3px solid var(--gold); background: var(--white); color: var(--muted); }
  .notice strong { color: var(--navy); }
  .side-panel { height: fit-content; padding: 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
  .side-panel h2 { font-size: 1.7rem; }
  .side-panel p { margin: .8rem 0 1.3rem; color: var(--muted); }

  .accordion { border-top: 1px solid var(--line); }
  .accordion-item { border-bottom: 1px solid var(--line); }
  .accordion-trigger { width: 100%; display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; background: transparent; color: var(--navy); font-weight: 750; text-align: left; cursor: pointer; }
  .accordion-trigger span:last-child { color: #8a6d3a; font-size: 1.35rem; }
  .accordion-panel { padding: 0 2rem 1.4rem 0; color: var(--muted); }
  .accordion-panel[hidden] { display: none; }

  .contact-grid { display: grid; gap: 2rem; }
  .form { display: grid; gap: 1rem; padding: 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
  .field { display: grid; gap: .45rem; }
  .field label { color: var(--navy); font-size: .9rem; font-weight: 750; }
  .field input, .field textarea, .field select { width: 100%; padding: .85rem; border: 1px solid #b9c0c7; border-radius: .35rem; background: var(--white); color: var(--ink); }
  .field textarea { min-height: 9rem; resize: vertical; }
  .field small { color: var(--muted); }
  .form-status { padding: .8rem; background: var(--gold-soft); color: #61491f; font-size: .9rem; }

  .site-footer { padding-block: 3.5rem 1.5rem; background: #0e1d2f; color: #d4dde6; }
  .footer-grid { display: grid; gap: 2.5rem; }
  .site-footer .brand { color: var(--white); }
  .footer-brand p { max-width: 25rem; margin-top: 1rem; color: #aeb9c5; }
  .footer-title { margin-bottom: .8rem; color: var(--white); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
  .footer-links { display: grid; gap: .55rem; list-style: none; font-size: .9rem; }
  .footer-links a:hover { color: var(--gold-soft); text-decoration: underline; text-underline-offset: .25rem; }
  .footer-bottom { display: flex; flex-direction: column; gap: .7rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.14); color: #93a2b1; font-size: .78rem; }
}

@layer utilities {
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .muted { color: var(--muted); }
  .narrow { max-width: 45rem; }
}

@media (min-width: 700px) {
  .container { width: min(var(--max), calc(100% - 4rem)); }
  .trust-list { grid-template-columns: repeat(3, 1fr); }
  .trust-list li { padding-inline: 1.5rem; border-right: 1px solid var(--line); border-bottom: 0; }
  .cards--2 { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .section-heading { grid-template-columns: 1fr 1fr; align-items: end; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: .8fr 1.2fr; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 940px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; inset: auto; display: flex; flex-direction: row; align-items: center; gap: .2rem; background: transparent; padding: 0; }
  .site-nav a { padding: .6rem .65rem; font-size: .86rem; }
  .site-nav .button { margin: 0 0 0 .5rem; padding-inline: 1rem; }
  .hero-grid { grid-template-columns: 1.55fr .45fr; }
  .split { grid-template-columns: 1fr 1fr; gap: 6rem; }
  .content-grid { grid-template-columns: minmax(0, 1fr) 20rem; gap: 5rem; }
  .side-panel { position: sticky; top: 6.5rem; }
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
