/* ============================================================
   Gallatin OrthoSport — main.css
   One CSS file shared across every page.
   Brand: charcoal #4A4A4A · sky #5EAFD1 · teal #1A7A9A · ice #C6F8FF · slate #354A54
   Typography: Inter
   ============================================================ */

/* ---- Reset + base ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

:root {
  --charcoal: #4A4A4A;
  --charcoal-soft: #5a5a5a;
  --sky: #5EAFD1;
  --sky-light: #8ec8de;
  --teal: #1A7A9A;
  --teal-dark: #135e76;
  --ice: #C6F8FF;
  --ice-soft: #e7faff;
  --slate: #354A54;
  --slate-deep: #243640;
  --bg: #fafbfc;
  --card: #ffffff;
  --border: #e3e8ec;
  --border-strong: #cfd6dd;
  --text: #1f2429;
  --text-muted: #5a6671;
  --text-subtle: #8a939b;
  --shadow-sm: 0 1px 2px rgba(53,74,84,0.05), 0 2px 6px rgba(53,74,84,0.06);
  --shadow-md: 0 2px 8px rgba(53,74,84,0.07), 0 12px 28px rgba(53,74,84,0.08);
  --shadow-lg: 0 4px 16px rgba(53,74,84,0.10), 0 24px 48px rgba(53,74,84,0.12);
  --container: 1200px;
  --prose: 720px;
}

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv01', 'cv11';
}

body { min-height: 100vh; display: flex; flex-direction: column; }

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--charcoal); }

/* ---- Type scale ---- */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p  { font-size: 1.0625rem; color: var(--text); }
.lead { font-size: 1.2rem; line-height: 1.5; color: var(--text-muted); }
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow-light { color: var(--sky); }
.muted { color: var(--text-muted); }

/* ---- Layout ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--prose); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-dark {
  background: linear-gradient(180deg, var(--slate-deep) 0%, var(--slate) 100%);
  color: rgba(255,255,255,0.92);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: white; }
.section-dark p { color: rgba(255,255,255,0.78); }
.section-dark .eyebrow { color: var(--sky); }
.section-ice { background: linear-gradient(180deg, var(--ice-soft) 0%, white 100%); }
@media (max-width: 700px) {
  .section { padding: 56px 0; }
  .section-tight { padding: 40px 0; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  font: inherit; font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--teal); color: white; border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: white; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: white; color: var(--charcoal); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: white; border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: white; border-color: white; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .brand-logo { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand .brand-logo img { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand .brand-text { font-weight: 700; font-size: 1rem; color: var(--charcoal); letter-spacing: -0.01em; line-height: 1.1; }
.brand .brand-text span { font-weight: 500; color: var(--text-muted); }
.brand:hover { color: inherit; }
/* Footer/dark-bg variant — invert the dark icon to white */
.site-footer .brand .brand-logo img { filter: brightness(0) invert(1); }
.site-footer .brand .brand-text { color: white; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--charcoal); font-weight: 500; font-size: 0.9375rem; }
.nav-links a:hover { color: var(--teal); }
.nav-links a.active { color: var(--teal); font-weight: 600; }
.nav-cta { padding: 9px 18px; border-radius: 999px; background: var(--charcoal); color: white !important; font-weight: 600; font-size: 0.875rem; }
.nav-cta:hover { background: var(--teal); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--charcoal); margin: 4px 0; border-radius: 2px; transition: all .2s ease; }

@media (max-width: 820px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: white; border-bottom: 1px solid var(--border); padding: 8px 0; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 24px; }
  .nav-toggle { display: block; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--slate-deep) 0%, var(--slate) 60%, var(--teal-dark) 100%);
  color: white;
  padding: 96px 0 88px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(94,175,209,0.18), transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(198,248,255,0.08), transparent 50%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero .eyebrow { color: var(--sky); margin-bottom: 18px; }
.hero h1 { color: white; max-width: 18ch; margin-bottom: 20px; }
.hero p.lead { color: rgba(255,255,255,0.85); max-width: 56ch; margin-bottom: 32px; }
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Cards ---- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all .15s ease;
}
.card:hover { border-color: var(--sky); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); margin-bottom: 12px; }
.card .card-link { font-size: 0.9375rem; font-weight: 600; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---- Pricing tiers ---- */
.tier {
  background: white;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex; flex-direction: column;
  position: relative;
}
.tier.featured { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(26,122,154,0.08), var(--shadow-md); }
.tier .tier-badge {
  position: absolute; top: -12px; right: 24px;
  background: var(--teal); color: white; font-size: 0.6875rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; letter-spacing: 0.1em; text-transform: uppercase;
}
.tier h3 { font-size: 1.25rem; margin-bottom: 6px; }
.tier .tier-tagline { color: var(--text-muted); font-size: 0.9375rem; margin-bottom: 18px; }
.tier .tier-price { font-size: 2.5rem; font-weight: 800; color: var(--charcoal); letter-spacing: -0.03em; line-height: 1; }
.tier .tier-price-suffix { font-size: 0.9375rem; color: var(--text-muted); font-weight: 500; margin-left: 4px; }
.tier ul { list-style: none; margin: 24px 0; flex: 1; }
.tier ul li { padding: 7px 0 7px 26px; position: relative; font-size: 0.9375rem; color: var(--text); }
.tier ul li::before { content: "✓"; position: absolute; left: 0; top: 7px; color: var(--teal); font-weight: 700; }
.tier .btn { width: 100%; justify-content: center; }

/* ---- Block / phase indicators (used on ACL page) ---- */
.block-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0; }
@media (max-width: 800px) { .block-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .block-row { grid-template-columns: 1fr; } }
.block {
  background: white; border: 1px solid var(--border); border-radius: 12px; padding: 22px;
  border-top: 4px solid var(--sky);
}
.block-2 { border-top-color: #6BB5C6; }
.block-3 { border-top-color: var(--teal); }
.block-4 { border-top-color: var(--slate); }
.block .block-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.block h4 { font-size: 1.0625rem; margin-bottom: 8px; color: var(--charcoal); }
.block .block-lsi { font-size: 0.8125rem; color: var(--teal); font-weight: 600; margin-bottom: 12px; }
.block ul { list-style: none; margin-top: 8px; }
.block ul li { font-size: 0.875rem; color: var(--text-muted); padding: 3px 0 3px 14px; position: relative; }
.block ul li::before { content: "·"; position: absolute; left: 4px; color: var(--sky); font-weight: 700; }

/* ---- Stat row / credibility strip ---- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 32px 0; border-top: 1px solid rgba(255,255,255,0.12); border-bottom: 1px solid rgba(255,255,255,0.12); }
@media (max-width: 700px) { .stat-strip { grid-template-columns: 1fr 1fr; gap: 24px; } }
.stat .stat-num { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; color: white; line-height: 1; }
.stat .stat-label { font-size: 0.8125rem; color: rgba(255,255,255,0.7); margin-top: 6px; letter-spacing: 0.05em; }

/* ---- Quote / pull-out ---- */
.callout {
  background: var(--ice-soft); border-left: 4px solid var(--teal);
  padding: 24px 28px; border-radius: 8px; margin: 28px 0;
  color: var(--slate);
}
.callout strong { color: var(--charcoal); }

/* ---- FAQ ---- */
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq summary {
  font-weight: 600; font-size: 1.0625rem; color: var(--charcoal);
  cursor: pointer; list-style: none; padding-right: 24px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.5rem; color: var(--teal); transition: transform .2s ease; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--text-muted); }

/* ---- CTA banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--slate) 100%);
  color: white;
  padding: 64px 24px;
  border-radius: 16px;
  text-align: center;
}
.cta-banner h2 { color: white; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.82); margin-bottom: 28px; max-width: 56ch; margin-left: auto; margin-right: auto; }

/* ---- Footer ---- */
.site-footer {
  background: var(--slate-deep);
  color: rgba(255,255,255,0.72);
  padding: 56px 0 32px;
  margin-top: auto;
  font-size: 0.9375rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h5 { color: white; font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.72); }
.footer-col a:hover { color: var(--sky); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.10); font-size: 0.8125rem; color: rgba(255,255,255,0.5); }
@media (max-width: 600px) { .footer-bottom { flex-direction: column; gap: 8px; } }

/* ---- Misc utilities ---- */
.center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
.flex { display: flex; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.flex-wrap { flex-wrap: wrap; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; background: var(--ice); color: var(--teal); }

/* ---- Visual placeholder for photos (until curated) ---- */
.photo-placeholder {
  background: linear-gradient(135deg, var(--slate) 0%, var(--teal-dark) 100%);
  border-radius: 12px;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.8125rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  position: relative; overflow: hidden;
}
.photo-placeholder::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(94,175,209,0.2), transparent 60%);
}
