/* ============================================================
   GRAND VISION PRACTICE MANAGEMENT — Design System
   Navy / Gold / Cream · Cormorant Garamond + Montserrat
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #1a2744;
  --navy-deep:   #0f1c35;
  --navy-hover:  #243560;
  --ink:         #0b0e16;          /* Vital Signs command-center black */
  --ink-line:    rgba(255,255,255,0.07);
  --gold:        #c9a84c;
  --gold-soft:   #d4b45e;
  --gold-rule:   rgba(201,168,76,0.35);
  --gold-faint:  rgba(201,168,76,0.12);
  --cream:       #f8f5f0;
  --cream-card:  #f9f7f4;
  --text:        #3f4654;
  --text-dark:   #2a2a2a;
  --ok:          #5fbf8a;
  --warn:        #d9a13b;
  --bad:         #d66a6a;
  --serif:       'Cormorant Garamond', serif;
  --sans:        'Montserrat', sans-serif;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  background: #fff;
  font-family: var(--sans);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Shared building blocks ─────────────────────────────── */

.wrap        { max-width: 1080px; margin: 0 auto; padding: 0 40px; }
.wrap-narrow { max-width: 760px;  margin: 0 auto; padding: 0 40px; }

.eyebrow {
  font-size: 10px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
}

.sec { padding: 96px 0; }
.sec-tight { padding: 72px 0; }

.sec-head { text-align: center; max-width: 720px; margin: 0 auto 56px; padding: 0 40px; }
.sec-head h2 {
  font-family: var(--serif); font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 300; color: var(--navy); line-height: 1.12; margin: 0 0 18px;
}
.sec-head h2 em, .on-dark h2 em { font-style: italic; color: var(--gold); }
.sec-head .lede {
  font-size: 15px; font-weight: 300; line-height: 1.9; color: var(--text);
}
.on-dark .sec-head h2 { color: #fff; }
.on-dark .sec-head .lede { color: rgba(255,255,255,0.62); }

/* Pulse-line divider — the GVPM signature */
.pulse-rule {
  width: 170px; height: 24px; margin: 0 auto 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='24' viewBox='0 0 170 24'%3E%3Cpath d='M0 12h62l6 0 5-8 7 16 5-11 4 3h81' fill='none' stroke='%23c9a84c' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round' opacity='0.85'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pulse-rule.left { margin: 0 0 26px; }

.gold-rule { width: 36px; height: 2px; background: var(--gold); border-radius: 2px; margin: 0 auto 24px; }
.gold-rule.left { margin: 0 0 24px; }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--sans);
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 15px 34px; border-radius: 3px; text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s; cursor: pointer; border: none;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-line { background: transparent; color: var(--navy); border: 1px solid rgba(26,39,68,0.25); }
.btn-line:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-line-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.btn-line-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

.cta-micro {
  margin-top: 16px; font-size: 11px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
}
.cta-micro.dark-text { color: #6b7080; }

/* ── Hero (navy, GVFO family DNA) ───────────────────────── */
.hero {
  background: var(--navy); padding: 96px 40px 88px; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -140px; left: 50%; transform: translateX(-50%);
  width: 680px; height: 680px; border-radius: 50%;
  border: 0.5px solid rgba(201,168,76,0.07); pointer-events: none;
}
.hero > * { position: relative; }
.hero h1 {
  font-family: var(--serif); font-size: clamp(42px, 6vw, 68px); font-weight: 300;
  color: #fff; line-height: 1.08; margin: 0 0 20px;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .h-divider { width: 36px; height: 1px; background: var(--gold); opacity: 0.45; margin: 0 auto 24px; }
.hero .sub {
  font-size: 15px; font-weight: 300; color: rgba(255,255,255,0.65);
  line-height: 1.9; max-width: 620px; margin: 0 auto;
}
.hero .sub strong { color: #fff; font-weight: 500; }
.hero .hero-cta { margin-top: 36px; }

/* Dark hero variant (product pages) */
.hero-ink { background: var(--ink); }
.hero-ink::before { border-color: rgba(201,168,76,0.09); }

/* ── Body copy block ────────────────────────────────────── */
.body-copy { font-size: 15px; font-weight: 400; color: var(--text); line-height: 2; }
.body-copy p { margin-bottom: 18px; }
.body-copy p:last-child { margin-bottom: 0; }
.body-copy strong { color: var(--navy); font-weight: 500; }
.on-dark .body-copy { color: rgba(255,255,255,0.65); }
.on-dark .body-copy strong { color: #fff; }

.serif-pull {
  font-family: var(--serif); font-size: clamp(21px, 2.6vw, 26px); font-style: italic;
  font-weight: 400; color: var(--navy); line-height: 1.55;
  border-left: 2px solid var(--gold); padding-left: 26px; margin: 36px 0;
}

/* ── Card grids ─────────────────────────────────────────── */
.card-grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--cream-card); border: 0.5px solid rgba(26,39,68,0.08);
  border-radius: 6px; padding: 36px 32px;
}
.card .c-label {
  font-size: 9px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.card h3 {
  font-family: var(--serif); font-size: 26px; font-weight: 400;
  color: var(--navy); line-height: 1.25; margin: 0 0 12px;
}
.card p { font-size: 13.5px; font-weight: 300; line-height: 1.85; color: var(--text); }
.card p strong { color: var(--navy); font-weight: 500; }

/* ── VITAL SIGNS command-center panel (the proof element) ─ */
.vs-frame {
  max-width: 920px; margin: 0 auto; background: var(--ink);
  border: 1px solid rgba(201,168,76,0.22); border-radius: 10px;
  overflow: hidden; box-shadow: 0 30px 80px rgba(8,12,24,0.55);
}
.vs-top {
  display: flex; align-items: center; gap: 14px; padding: 15px 22px;
  border-bottom: 1px solid var(--ink-line);
}
.vs-dots { display: flex; gap: 6px; }
.vs-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.vs-title {
  font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.vs-title b { color: var(--gold); font-weight: 600; }
.vs-date {
  margin-left: auto; font-size: 9px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
}
.vs-kpis { display: grid; grid-template-columns: repeat(5, 1fr); }
.vs-kpi {
  padding: 24px 20px 22px; border-right: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
}
.vs-kpi:last-child { border-right: none; }
.vs-kpi .k-label {
  font-size: 8.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.38); margin-bottom: 10px; line-height: 1.5;
}
.vs-kpi .k-value { font-size: clamp(22px, 2.4vw, 28px); font-weight: 300; color: #fff; letter-spacing: 0.01em; }
.vs-kpi .k-delta { margin-top: 8px; font-size: 10px; font-weight: 500; letter-spacing: 0.04em; }
.k-delta.ok   { color: var(--ok); }
.k-delta.warn { color: var(--warn); }
.k-delta.bad  { color: var(--bad); }
.vs-score { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 22px; }
.vs-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 999px;
  padding: 7px 14px; font-size: 10px; font-weight: 500; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6);
}
.vs-pill b { color: rgba(255,255,255,0.92); font-weight: 600; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot.g { background: var(--ok); } .dot.y { background: var(--warn); } .dot.r { background: var(--bad); }
.vs-foot {
  padding: 13px 22px; border-top: 1px solid var(--ink-line); text-align: center;
  font-size: 9px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.32);
}
.vs-caption {
  text-align: center; margin-top: 22px; font-family: var(--serif);
  font-size: 15px; font-style: italic; color: rgba(255,255,255,0.5);
}

/* ── CTA band ───────────────────────────────────────────── */
.cta-band { background: var(--navy); text-align: center; padding: 80px 40px; position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; bottom: -200px; left: 50%; transform: translateX(-50%);
  width: 560px; height: 560px; border-radius: 50%;
  border: 0.5px solid rgba(201,168,76,0.08); pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band .eyebrow { margin-bottom: 16px; }
.cta-band h2 {
  font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); font-weight: 300;
  font-style: italic; color: #fff; line-height: 1.2; margin: 0 0 14px;
}
.cta-band .band-sub {
  font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.6);
  line-height: 1.8; max-width: 520px; margin: 0 auto 32px;
}

/* ── FAQ details ────────────────────────────────────────── */
.faq-item {
  border-bottom: 0.5px solid rgba(26,39,68,0.12); padding: 6px 0;
}
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 18px;
  padding: 22px 0; font-family: var(--serif); font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 400; color: var(--navy); line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: '+'; font-family: var(--serif); font-size: 24px; color: var(--gold);
  flex-shrink: 0; line-height: 1; transition: transform 0.2s; transform-origin: center;
}
.faq-item[open] summary::before { content: '–'; }
.faq-item .faq-a { padding: 0 0 26px 42px; }
.faq-item .faq-a p {
  font-size: 14px; font-weight: 300; line-height: 1.95; color: var(--text); margin-bottom: 14px;
}
.faq-item .faq-a p:last-child { margin-bottom: 0; }
.faq-item .faq-a strong { color: var(--navy); font-weight: 500; }

/* ── Forms ──────────────────────────────────────────────── */
.form-card {
  background: var(--cream-card); border-radius: 8px; padding: 48px 40px;
  border: 0.5px solid rgba(26,39,68,0.08);
}
.form-eyebrow {
  font-size: 9px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.form-title { font-family: var(--serif); font-size: 28px; font-weight: 400; color: var(--navy); margin: 0 0 8px; line-height: 1.3; }
.form-desc { font-size: 13px; font-weight: 300; color: #5a5f6b; line-height: 1.7; margin: 0 0 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #777;
}
.form-group label .req { color: var(--gold); margin-left: 2px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 14px; background: #fff;
  border: 0.5px solid rgba(26,39,68,0.2); border-radius: 3px;
  font-family: var(--sans); font-size: 13px; color: var(--navy); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(26,39,68,0.3); }
.form-group textarea { resize: vertical; min-height: 100px; line-height: 1.65; }
.form-submit {
  width: 100%; font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--navy);
  background: var(--gold); border: none; padding: 15px 24px; border-radius: 3px;
  cursor: pointer; transition: background 0.2s; margin-top: 12px;
}
.form-submit:hover { background: var(--gold-soft); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-error {
  display: none; margin-top: 12px; padding: 12px 16px; background: rgba(180,50,50,0.06);
  border-left: 3px solid rgba(180,50,50,0.4); font-size: 12px; color: #a03030;
  line-height: 1.6; border-radius: 0 3px 3px 0;
}
.form-error.visible { display: block; }
.form-success { display: none; text-align: center; padding: 48px 20px; }
.form-success .s-icon {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(201,168,76,0.1);
  border: 1px solid var(--gold-rule); display: flex; align-items: center;
  justify-content: center; margin: 0 auto 20px;
}
.form-success h3 { font-family: var(--serif); font-size: 24px; font-weight: 300; font-style: italic; color: var(--navy); margin-bottom: 10px; }
.form-success p { font-size: 13px; font-weight: 300; color: #5a5f6b; line-height: 1.75; }
.real-person { display: none !important; }
.sec-note {
  margin-top: 20px; font-size: 10px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: #8a8f99; text-align: center;
}

/* ── Trust note box ─────────────────────────────────────── */
.trust-note {
  padding: 22px 26px; background: var(--cream); border-left: 3px solid var(--gold-rule);
  border-radius: 0 4px 4px 0;
}
.trust-note p { font-size: 13px; font-weight: 300; color: var(--text); line-height: 1.8; margin: 0; }
.trust-note strong { color: var(--navy); font-weight: 500; }
.trust-note a { color: var(--navy); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--gold-rule); }
.trust-note a:hover { border-color: var(--gold); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 980px) {
  .cols-3 { grid-template-columns: 1fr; }
  .vs-kpis { grid-template-columns: repeat(2, 1fr); }
  .vs-kpi:nth-child(2n) { border-right: none; }
  .vs-kpi:last-child { border-bottom: none; }
}
@media (max-width: 700px) {
  .wrap, .wrap-narrow, .sec-head { padding-left: 24px; padding-right: 24px; }
  .sec { padding: 68px 0; }
  .sec-tight { padding: 52px 0; }
  .hero { padding: 72px 24px 64px; }
  .cols-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 36px 26px; }
  .cta-band { padding: 64px 24px; }
  .faq-item .faq-a { padding-left: 0; }
}
@media (max-width: 480px) {
  .vs-kpis { grid-template-columns: 1fr; }
  .vs-kpi { border-right: none; }
}
