/* Summit Health — shared styles
   Brand colours taken from the logo: navy, sunrise orange, sun yellow, ice blue. */

:root {
  --navy: #2b3166;
  --navy-deep: #1c2149;
  --sun: #f4a06b;
  --sun-deep: #e8804a;
  --sun-soft: #fbe7a1;
  --ice: #c8e6ee;
  --ice-soft: #eef8fb;
  --ink: #1b1f3b;
  --muted: #5b6180;
  --line: #e4e8f2;
  --bg: #f7f9fc;
  --white: #ffffff;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px rgba(28, 33, 73, 0.10);
  --shadow-lg: 0 24px 60px rgba(28, 33, 73, 0.18);
  --max: 1120px;
  --gutter: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Always light: stop the phone's dark mode from changing the colours */
:root { color-scheme: light; }

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.22rem); color: var(--muted); max-width: 56ch; }

.wrap { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
section { padding: clamp(64px, 10vw, 112px) 0; position: relative; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sun-deep); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--sun-soft), var(--sun));
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; border: 0; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--sun) 0%, var(--sun-deep) 100%);
  box-shadow: 0 12px 26px rgba(232, 128, 74, 0.35);
}
.btn-ghost {
  color: var(--navy); background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--sun); outline-offset: 3px;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow, .card-link:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(28, 33, 73, 0.06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 0.95rem; position: relative; padding: 6px 0; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links .btn { min-height: 44px; padding: 10px 20px; font-size: 0.92rem; }

.menu-toggle {
  display: none; width: 48px; height: 48px; border: 0; border-radius: 14px; background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--navy); position: relative; transition: transform 0.35s var(--ease), opacity 0.2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 6px;
    padding: 12px var(--gutter) 24px; background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.3s;
  }
  .menu-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a:not(.btn) { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 10px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(40px, 7vw, 84px) 0 clamp(56px, 8vw, 96px);
  background:
    radial-gradient(900px 500px at 85% -10%, var(--sun-soft) 0%, transparent 60%),
    radial-gradient(800px 500px at -10% 30%, var(--ice) 0%, transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero h1 span { background: linear-gradient(120deg, var(--sun-deep), var(--sun)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-photo { position: relative; justify-self: center; width: min(420px, 100%); }
.hero-photo .frame {
  border-radius: 200px 200px 28px 28px; overflow: hidden; aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg); background: var(--ice);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.float-card {
  position: absolute; left: -12px; bottom: 28px; display: flex; align-items: center; gap: 12px;
  background: var(--white); padding: 12px 16px 12px 12px; border-radius: 18px; box-shadow: var(--shadow);
  font-size: 0.9rem; font-weight: 600; max-width: 230px; line-height: 1.3;
}
.float-card img { width: 44px; height: 44px; object-fit: contain; }
.float-card small { display: block; font-weight: 500; color: var(--muted); font-size: 0.78rem; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 56px;
}
.stat {
  background: var(--white); border-radius: var(--radius-sm); padding: 18px 14px; text-align: center; box-shadow: var(--shadow);
}
.stat strong { display: block; font-size: clamp(1.05rem, 3.4vw, 1.5rem); color: var(--navy); font-weight: 800; line-height: 1.2; }
.stat span { font-size: 0.8rem; color: var(--muted); }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
  .hero-photo { justify-self: end; }
}

/* ---------- Cards and sections ---------- */
.card {
  background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--ice-soft), var(--ice)); color: var(--navy); font-weight: 800; font-size: 1.1rem;
}
.card p { color: var(--muted); margin: 0; }
.grid-3 { display: grid; gap: 18px; }
.grid-2 { display: grid; gap: 22px; }
@media (min-width: 760px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.section-alt { background: var(--white); }
[data-theme] .section-alt, :root .section-alt { }

/* Story timeline */
.timeline { display: grid; gap: 18px; margin-top: 40px; }
.timeline .card .tag {
  display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sun-deep); margin-bottom: 8px;
}
.timeline .card p { color: var(--ink); opacity: 0.85; }
.story-split { display: grid; gap: 40px; align-items: center; }
.story-split img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.quote {
  font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 700; color: var(--navy); line-height: 1.35;
  border-left: 4px solid var(--sun); padding-left: 20px; margin: 28px 0 0;
}
@media (min-width: 900px) {
  .story-split { grid-template-columns: 0.9fr 1.1fr; gap: 72px; }
  .timeline { grid-template-columns: repeat(3, 1fr); }
}

/* Steps */
.steps { counter-reset: step; display: grid; gap: 18px; margin-top: 40px; }
.step {
  display: flex; gap: 18px; align-items: flex-start; background: var(--white); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step; content: counter(step);
  flex: 0 0 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--navy), #4a54a0);
}
.step p { color: var(--muted); margin: 4px 0 0; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Programs (preview + full) */
.program {
  display: grid; gap: 26px; background: var(--white); border-radius: 28px; padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow); align-items: center; position: relative; overflow: hidden;
}
.program { scroll-margin-top: 110px; }
.program::after {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; right: -120px; top: -120px;
  background: radial-gradient(circle, var(--sun-soft), transparent 70%); pointer-events: none;
}
.program .badge {
  display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  background: var(--ice-soft); color: var(--navy); margin-bottom: 14px;
}
.program .mock { max-width: 360px; width: 100%; justify-self: center; transition: transform 0.6s var(--ease); }
.program:hover .mock { transform: translateY(-8px) rotate(-1deg); }
.checklist { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.checklist li::before {
  content: ""; flex: 0 0 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat;
}
@media (min-width: 900px) {
  .program { grid-template-columns: 1.15fr 0.85fr; }
  .program.flip { grid-template-columns: 0.85fr 1.15fr; }
  .program.flip .mock { order: -1; }
}

/* Testimonials placeholder */
.quote-card blockquote { margin: 0 0 16px; font-size: 1.05rem; font-weight: 600; color: var(--navy); }
.quote-card cite { font-style: normal; font-size: 0.9rem; color: var(--muted); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; border-radius: 32px;
  padding: clamp(36px, 7vw, 72px) clamp(24px, 5vw, 64px); position: relative; overflow: hidden; text-align: center;
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(244,160,107,0.45), transparent 70%);
  width: 420px; height: 420px; top: -180px; right: -120px; animation: drift 14s ease-in-out infinite alternate;
}
.cta-band::after { background: radial-gradient(circle, rgba(200,230,238,0.25), transparent 70%); top: auto; bottom: -220px; left: -160px; right: auto; animation-duration: 18s; }
.cta-band h2 { color: #fff; position: relative; }
.cta-band .lead { color: rgba(255,255,255,0.8); margin-inline: auto; position: relative; }
.cta-band .btn { position: relative; }
.cta-band .btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.4); }

/* Footer */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 56px 0 120px; }
.footer-grid { display: grid; gap: 28px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--ice-soft); color: var(--navy); text-decoration: none; font-weight: 800; font-size: 0.85rem;
  transition: transform 0.3s var(--ease), background 0.3s;
}
.socials a:hover { transform: translateY(-3px); background: var(--sun-soft); }
.site-footer .small { font-size: 0.85rem; color: var(--muted); }
.disclaimer { font-size: 0.82rem; color: var(--muted); max-width: 80ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.92rem; }
.footer-links a { color: var(--navy); font-weight: 600; text-decoration: none; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr; align-items: center; } }

/* Sticky mobile CTA */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  transform: translateY(140%); transition: transform 0.5s var(--ease);
}
.mobile-cta.show { transform: none; }
.mobile-cta .btn { width: 100%; box-shadow: 0 16px 36px rgba(28,33,73,0.28); }
@media (min-width: 760px) { .mobile-cta { display: none; } }

/* ---------- Page header (inner pages) ---------- */
.page-hero { padding: clamp(48px, 8vw, 88px) 0 clamp(28px, 4vw, 44px); background: radial-gradient(900px 400px at 90% -20%, var(--sun-soft), transparent 60%), var(--bg); }
.crumb { font-size: 0.88rem; color: var(--muted); margin-bottom: 12px; }
.crumb a { color: var(--navy); font-weight: 600; text-decoration: none; }

/* ---------- FAQ ---------- */
details {
  background: var(--white); border-radius: 18px; padding: 4px 22px; box-shadow: var(--shadow); margin-bottom: 12px;
}
summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; font-size: 1.4rem; color: var(--sun-deep); transition: transform 0.35s var(--ease); line-height: 1;
}
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 0 0 18px; }

/* ---------- Application and thank-you pages ---------- */
.flow { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); margin: 28px 0 0; padding: 0; list-style: none; }
.flow li {
  font-size: 0.82rem; font-weight: 700; text-align: center; padding: 12px 8px; border-radius: 14px;
  background: var(--white); color: var(--muted); box-shadow: var(--shadow);
}
.flow li.done, .flow li.now { color: var(--navy); }
.flow li.now { background: linear-gradient(135deg, var(--sun-soft), #fff); box-shadow: inset 0 0 0 2px var(--sun); }
.form-card { background: var(--white); border-radius: 28px; padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow-lg); }
.ghl-slot {
  min-height: 420px; border-radius: var(--radius-sm); border: 2px dashed var(--ice); display: grid; place-items: center;
  text-align: center; padding: 24px; color: var(--muted); background: var(--ice-soft);
}
.ghl-slot strong { display: block; color: var(--navy); margin-bottom: 6px; }
.split-page { display: grid; gap: 36px; align-items: start; }
.reassure { display: grid; gap: 14px; margin-top: 24px; }
.reassure div { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.reassure b { color: var(--ink); }
.reassure .dot { flex: 0 0 10px; height: 10px; border-radius: 50%; margin-top: 9px; background: var(--sun); }
@media (min-width: 900px) { .split-page { grid-template-columns: 0.85fr 1.15fr; gap: 64px; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.float { animation: float 6s ease-in-out infinite; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(-40px, 30px) scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
