/* ==========================================================================
   Full Measure Advisory — site stylesheet
   Brand: deep navy #0D2B4E + white + light grey. Cormorant Garamond headings,
   Inter body. No gold. No teal. No em dashes in copy.
   Hand-coded static site. Mobile-first. No JS dependency (CSS-only nav).
   ========================================================================== */

:root {
  --navy:        #0D2B4E;
  --navy-2:      #123961;   /* hover / raised surfaces on dark */
  --navy-line:   rgba(255,255,255,0.16);
  --navy-muted:  rgba(255,255,255,0.68);

  --ink:         #0D2B4E;   /* headings on light */
  --body:        #33414f;   /* body text on light */
  --muted:       #5d6b79;   /* secondary text on light */
  --line:        #e3e8ed;   /* hairlines on light */
  --bg:          #ffffff;
  --bg-alt:      #f4f6f8;   /* light grey sections */

  --serif: "Cormorant Garamond", Garamond, "EB Garamond", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1140px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--body);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- typography ---- */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.06; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
p  { max-width: 68ch; }
strong { font-weight: 600; color: var(--ink); }

.kicker {
  font-family: var(--sans);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
.dark .kicker { color: var(--navy-muted); }
.lede { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.55; color: var(--body); max-width: 60ch; }
.dark .lede { color: var(--navy-muted); }
.rule { height: 2px; width: 56px; background: currentColor; opacity: 0.7; margin: 26px 0; }

/* ---- layout ---- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(64px, 9vw, 120px) 0; }
.dark { background: var(--navy); color: #fff; }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.alt  { background: var(--bg-alt); }
.tight { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .kicker { display: block; margin-bottom: 18px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  padding: 15px 28px; border-radius: 2px; border: 1.5px solid var(--navy);
  background: var(--navy); color: #fff; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.dark .btn { background: #fff; color: var(--navy); border-color: #fff; }
.dark .btn:hover { background: transparent; color: #fff; }
.dark .btn-ghost { background: transparent; color: #fff; border-color: var(--navy-line); }
.dark .btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---- header / nav (CSS-only mobile toggle) ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--ink); letter-spacing: -0.01em; }
.brand .mark {
  width: 34px; height: 34px; flex: none; border-radius: 2px;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
}
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-family: var(--sans); font-size: 0.92rem; font-weight: 500; color: var(--body); transition: color .15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-cta { margin-left: 8px; }
.nav-toggle, .nav-toggle-label { display: none; }

/* ---- hero ---- */
.hero { padding: clamp(72px, 11vw, 150px) 0 clamp(64px, 9vw, 130px); }
.hero h1 { max-width: 16ch; }
.hero .lede { margin-top: 26px; }
.hero-lines h1 { line-height: 1.08; }
.hero-lines h1 + h1 { margin-top: 4px; }

/* ---- generic grids ---- */
.grid { display: grid; gap: clamp(24px, 3vw, 36px); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ---- cards ---- */
.card { border-top: 2px solid var(--navy); padding-top: 24px; }
.dark .card { border-top-color: var(--navy-line); }
.card .num { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--navy); opacity: 0.32; line-height: 1; }
.dark .card .num { color: #fff; opacity: 0.4; }
.card h3 { margin: 12px 0 10px; }
.card p { font-size: 0.98rem; color: var(--muted); }
.dark .card p { color: var(--navy-muted); }

/* ---- quote / attribution ---- */
.quote { border-left: 2px solid var(--navy); padding-left: 26px; }
.dark .quote { border-left-color: var(--navy-line); }
.quote p { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); font-style: italic; color: var(--ink); line-height: 1.3; max-width: 30ch; }
.dark .quote p { color: #fff; }
.quote .attr { font-family: var(--sans); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 18px; }
.dark .quote .attr { color: var(--navy-muted); }

.pullquote { font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.7rem); font-style: italic; line-height: 1.28; max-width: 22ch; }

/* ---- stat strip ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat .n { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; color: var(--ink); line-height: 1; }
.dark .stat .n { color: #fff; }
.stat .l { font-family: var(--sans); font-size: 0.88rem; line-height: 1.45; color: var(--muted); margin-top: 12px; max-width: 22ch; }
.dark .stat .l { color: var(--navy-muted); }

/* ---- service / price rows ---- */
.srow { display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; align-items: start; padding: 30px 0; border-top: 1px solid var(--line); }
.srow:last-child { border-bottom: 1px solid var(--line); }
.srow .s-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--ink); }
.srow .s-tag { font-size: 1rem; color: var(--body); margin-top: 6px; }
.srow .s-meta { font-size: 0.92rem; color: var(--muted); margin-top: 12px; }
.srow .s-meta b { color: var(--ink); font-weight: 600; }
.srow .s-fee { font-family: var(--sans); font-size: 1.1rem; font-weight: 600; color: var(--navy); white-space: nowrap; text-align: right; }
.srow .s-fee small { display: block; font-size: 0.78rem; font-weight: 500; color: var(--muted); margin-top: 4px; }

/* ---- comparison table ---- */
.compare { width: 100%; border-collapse: collapse; font-family: var(--sans); }
.compare th, .compare td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 0.95rem; vertical-align: top; }
.compare thead th { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.compare thead th:last-child { color: var(--navy); }
.compare td:first-child { color: var(--muted); font-weight: 500; }
.compare td:last-child { color: var(--ink); font-weight: 600; }
.compare tbody tr:hover { background: var(--bg-alt); }

/* ---- credential / lane blocks ---- */
.lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 44px); }
.lane h3 { margin-bottom: 16px; }
.lane ul { list-style: none; }
.lane li { position: relative; padding-left: 20px; font-size: 0.96rem; color: var(--body); margin-bottom: 9px; line-height: 1.5; }
.lane li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--navy); }
.dark .lane li { color: var(--navy-muted); }
.dark .lane li::before { background: #fff; }

/* ---- insight / editorial cards ---- */
.insight { border: 1px solid var(--line); padding: 32px; border-radius: 3px; background: #fff; transition: border-color .18s ease, transform .18s ease; height: 100%; }
.insight:hover { border-color: var(--navy); transform: translateY(-3px); }
.insight .tag { font-family: var(--sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.insight h3 { margin: 16px 0 12px; font-size: 1.5rem; }
.insight p { font-size: 0.97rem; color: var(--muted); }

/* ---- contact form ---- */
.form-grid { display: grid; gap: 20px; max-width: 620px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--sans); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink); }
.field input, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 2px; background: #fff;
  transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); }
.field textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute; left: -9999px; }   /* honeypot */

/* ---- footer ---- */
.site-footer { background: var(--navy); color: #fff; padding: clamp(56px, 7vw, 84px) 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--navy-line); }
.site-footer .brand { color: #fff; }
.site-footer p { color: var(--navy-muted); font-size: 0.95rem; margin-top: 16px; max-width: 34ch; }
.foot-col h4 { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-muted); font-weight: 600; margin-bottom: 16px; }
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 10px; }
.foot-col a { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.foot-col a:hover { color: #fff; }
.footer-bot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 26px; font-size: 0.82rem; color: var(--navy-muted); }

/* ---- bottom CTA band ---- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 22ch; margin: 0 auto 14px; }
.cta-band .lede { margin: 0 auto; }
.cta-band .btn-row { justify-content: center; }

/* ---- misc ---- */
.eyebrow-num { font-family: var(--serif); font-size: 1.1rem; color: var(--navy); opacity: 0.5; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 26px; } .mt-l { margin-top: 44px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .grid-3, .lanes, .stats { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 64px; }

  /* mobile nav */
  .nav-toggle-label { display: inline-flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
  .nav-toggle-label span { width: 24px; height: 2px; background: var(--navy); transition: .2s; }
  .nav-links {
    position: fixed; inset: 70px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-cta { margin: 14px 0 0; }
  .nav-toggle:checked ~ .nav-links { max-height: 80vh; padding-top: 8px; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .lanes, .stats, .footer-top, .compare-wrap { grid-template-columns: 1fr; }
  .stats { gap: 30px; }
  .srow { grid-template-columns: 1fr; }
  .srow .s-fee { text-align: left; }
  .compare { font-size: 0.86rem; }
  .compare th, .compare td { padding: 12px 10px; }
}
