/* ==========================================================================
   Meridian Implant Advisory — Design System
   ========================================================================== */

:root {
  /* Palette — deep navy-charcoal + brass accent, distinct from BioHorizons navy/orange */
  --ink: #0F1E2E;
  --ink-2: #16283C;
  --ink-3: #1F3650;
  --paper: #FFFFFF;
  --paper-soft: #F5F6F8;
  --paper-line: #E4E7EC;
  --text: #151B23;
  --text-soft: #4A5568;
  --text-faint: #8A94A3;
  --gold: #B8935F;
  --gold-light: #D9BD90;
  --gold-dim: #8C6D42;
  --white: #FFFFFF;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --container: 1180px;
  --radius: 4px;
  --shadow-card: 0 1px 2px rgba(15,30,46,0.06), 0 8px 24px rgba(15,30,46,0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 4.4vw, 3.9rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 500; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; color: var(--text-soft); }
p.lead { font-size: 1.2rem; color: var(--text-soft); line-height: 1.6; }

a { color: var(--ink); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin: 0 0 14px;
  display: block;
}
section.dark .eyebrow, .dark .eyebrow { color: var(--gold-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover { background: var(--gold-light); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--paper-line);
}
.btn-outline-dark:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15,30,46,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.brand .brand-mark { color: var(--gold-light); }
nav.primary-nav { display: flex; align-items: center; gap: 8px; }
nav.primary-nav a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
nav.primary-nav a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
nav.primary-nav a.current { color: var(--white); }
nav.primary-nav a.nav-cta {
  border: 1px solid rgba(255,255,255,0.3);
  margin-left: 8px;
}
.nav-toggle { display: none; }

@media (max-width: 880px) {
  nav.primary-nav {
    position: fixed;
    inset: 76px 0 0 0;
    z-index: 100;
    background: #0F1E2E;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 2px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.18s ease;
  }
  nav.primary-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  nav.primary-nav a { padding: 16px; font-size: 1.05rem; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    padding: 6px 8px;
  }
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
section.dark { background: var(--ink); color: var(--white); }
section.dark h1, section.dark h2, section.dark h3, section.dark h4 { color: var(--white); }
section.dark p { color: rgba(255,255,255,0.72); }
section.soft { background: var(--paper-soft); }
section.hero {
  background: radial-gradient(1100px 620px at 82% -10%, rgba(184,147,95,0.16), transparent 60%), var(--ink);
  color: var(--white);
  padding: 132px 0 110px;
  position: relative;
  overflow: hidden;
}
section.hero::after {
  content: "";
  position: absolute;
  right: -12%;
  top: 8%;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  border: 1px solid rgba(217,189,144,0.16);
}
section.hero::before {
  content: "";
  position: absolute;
  right: -6%;
  top: 20%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(217,189,144,0.22);
}
section.hero h1, section.hero p { color: var(--white); position: relative; }
section.hero .container { position: relative; z-index: 2; }

/* ---------- Grid / cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-card);
}
.card.on-dark {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  box-shadow: none;
}
.card.on-dark h3, .card.on-dark h4 { color: var(--white); }
.card.on-dark p { color: rgba(255,255,255,0.68); }

.pillar-num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

/* ---------- Stat row ---------- */
.stat-row { display: flex; gap: 56px; flex-wrap: wrap; }
.stat .stat-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.stat .stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.66); max-width: 190px; }
section:not(.dark):not(.hero) .stat .stat-label { color: var(--text-soft); }
section:not(.dark):not(.hero) .stat .stat-num { color: var(--gold-dim); }

/* ---------- Track fork cards (GP / Specialist) ---------- */
.track-card {
  position: relative;
  border-radius: var(--radius);
  padding: 44px 38px;
  overflow: hidden;
  color: var(--white);
  text-decoration: none;
  display: block;
  min-height: 260px;
}
.track-card.track-gp { background: linear-gradient(160deg, var(--ink-3), var(--ink)); }
.track-card.track-specialist { background: linear-gradient(160deg, #2B2013, var(--ink)); }
.track-card .eyebrow { color: var(--gold-light); }
.track-card h3 { color: var(--white); font-size: 1.7rem; }
.track-card p { color: rgba(255,255,255,0.72); margin-bottom: 22px; }
.track-card .track-cta { color: var(--gold-light); font-weight: 600; font-size: 0.92rem; }
.track-card:hover .track-cta { color: var(--white); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.62);
  padding: 56px 0 30px;
  font-size: 0.9rem;
}
footer.site-footer .brand { margin-bottom: 12px; }
footer.site-footer a { color: rgba(255,255,255,0.62); text-decoration: none; }
footer.site-footer a:hover { color: var(--white); }
.footer-cols { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 36px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ---------- Forms ---------- */
input, textarea, select {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  width: 100%;
  color: var(--text);
  background: var(--white);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(184,147,95,0.15);
}
label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field { margin-bottom: 18px; }

/* ---------- Misc utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.narrow { max-width: 720px; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.divider { height: 1px; background: var(--paper-line); border: none; margin: 0; }
.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(184,147,95,0.12);
  color: var(--gold-dim);
}
