/* ============================================================
   Basari Grupo Médico — Design System v2
   Warm, editorial, clinical-premium
   ============================================================ */

:root {
  --ink: #14272c;
  --ink-soft: #3a5155;
  --muted: #6f888c;
  --pine: #0c3b48;          /* dark teal — matches logo, used for dark bands/footer */
  --pine-deep: #082e39;
  --green: #0a7f9c;         /* primary accent — Basari logo teal (#0084a8) */
  --green-soft: #e3f0f3;
  --sage: #cbe5e2;
  --sand: #c39a68;
  --sand-soft: #f0e6d6;
  --bg: #f5f1e9;
  --bg-alt: #efe9dd;
  --surface: #fffdf8;
  --line: #e3ddd0;
  --line-soft: #ece6da;
  --radius: 22px;
  --radius-sm: 14px;
  --radius-lg: 34px;
  --shadow-xs: 0 1px 2px rgba(11, 58, 71, 0.04);
  --shadow-sm: 0 2px 6px rgba(11, 58, 71, 0.05), 0 8px 20px rgba(11, 58, 71, 0.04);
  --shadow-md: 0 4px 10px rgba(11, 58, 71, 0.06), 0 20px 44px rgba(11, 58, 71, 0.10);
  --shadow-lg: 0 30px 70px rgba(8, 46, 57, 0.22);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

::selection { background: var(--pine); color: #fff; }

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.7vw, 2.9rem); }
h3 { font-size: 1.2rem; font-family: var(--font-body); font-weight: 700; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--sand);
  border-radius: 2px;
}

.lead {
  font-size: 1.16rem;
  color: var(--ink-soft);
  max-width: 620px;
  line-height: 1.6;
}

.section { padding: 108px 0; }

.section-head { max-width: 660px; margin-bottom: 60px; }
.section-head p { margin-top: 18px; }

.center { text-align: center; }
.center .section-head { margin-left: auto; margin-right: auto; }
.center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: -0.005em;
  transition: all 0.3s var(--ease);
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--pine); background: var(--surface); }

.btn-light { background: #fff; color: var(--pine); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-sand { background: var(--sand); color: #2a1f10; }
.btn-sand:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); filter: brightness(1.04); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 241, 233, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line-soft);
}

.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; }

.brand { display: flex; align-items: center; gap: 13px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.brand-logo { height: 40px; width: auto; display: block; }
.site-footer .brand-logo { height: 44px; }
@media (max-width: 720px) { .brand-logo { height: 34px; } }

.brand-mark {
  width: 42px; height: 42px;
  border-radius: 13px;
  background: var(--pine);
  display: grid; place-items: center;
  color: #fff; flex-shrink: 0;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 4px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.16);
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--muted); margin-top: 1px;
}

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }

.nav-links a { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); transition: color 0.2s; position: relative; }
.nav-links a:hover { color: var(--pine); }
.nav-links a.active { color: var(--pine); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -9px;
  height: 2px; border-radius: 2px; background: var(--sand);
}

.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-cta .btn { padding: 11px 22px; font-size: 0.86rem; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--ink); }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding: 104px 0 116px; }

.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(680px 460px at 88% 8%, rgba(10, 127, 156, 0.10), transparent 62%),
    radial-gradient(520px 420px at 6% 96%, rgba(195, 154, 104, 0.14), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 68px;
  align-items: center;
}

.hero h1 { margin-bottom: 26px; }
.hero h1 em { font-style: italic; color: var(--green); }
.hero .lead { margin-bottom: 38px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-trust { margin-top: 52px; display: flex; gap: 44px; flex-wrap: wrap; }
.hero-trust div { position: relative; padding-left: 20px; }
.hero-trust div::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; background: var(--sand); border-radius: 2px; }
.hero-trust div strong { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--ink); font-weight: 500; line-height: 1; }
.hero-trust div span { font-size: 0.8rem; color: var(--muted); font-weight: 600; }

/* Hero image */
.hero-visual { position: relative; }

.hero-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
  background: linear-gradient(150deg, var(--pine) 0%, var(--green) 55%, #2f8a6f 100%);
  box-shadow: var(--shadow-lg);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,43,37,0) 40%, rgba(12,43,37,0.42) 100%);
}

.hero-badge {
  position: absolute; top: 22px; left: 22px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,253,248,0.92);
  backdrop-filter: blur(6px);
  color: var(--pine);
  font-size: 0.78rem; font-weight: 700;
  padding: 9px 16px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.hero-float {
  position: absolute; bottom: -24px; left: -26px; z-index: 3;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 22px;
  box-shadow: var(--shadow-md);
  max-width: 260px;
}
.hero-float .hf-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.hero-float .hf-dot { width: 34px; height: 34px; border-radius: 10px; background: var(--sand-soft); color: var(--sand); display: grid; place-items: center; flex-shrink: 0; }
.hero-float strong { font-size: 0.92rem; color: var(--ink); }
.hero-float p { font-size: 0.8rem; color: var(--muted); font-weight: 500; line-height: 1.4; }

.hero-chip {
  position: absolute; top: 30%; right: -22px; z-index: 3;
  background: var(--pine); color: #fff;
  border-radius: 14px; padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px;
  font-size: 0.82rem; font-weight: 700;
}
.hero-chip svg { color: var(--sand); }

/* ---------- Marquee of specialties ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.pill {
  font-size: 0.82rem; font-weight: 600; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 999px;
}

/* ---------- Cards ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card::before {
  content: ""; position: absolute; top: 0; left: 32px; right: 32px; height: 2px;
  background: var(--sand); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--sage); }
.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 54px; height: 54px; border-radius: 15px;
  background: var(--green-soft); color: var(--pine);
  display: grid; place-items: center; margin-bottom: 24px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.card:hover .card-icon { background: var(--pine); color: #fff; }

.card h3 { margin-bottom: 11px; }
.card p { font-size: 0.95rem; color: var(--muted); }

.card .card-link {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 20px;
  font-size: 0.86rem; font-weight: 700; color: var(--pine);
}
.card .card-link svg { transition: transform 0.3s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }

/* ---------- Stats band ---------- */

.stats-band {
  background: var(--pine);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(560px 320px at 92% 6%, rgba(47, 138, 111, 0.55), transparent 66%),
    radial-gradient(400px 300px at 4% 98%, rgba(195,154,104,0.16), transparent 62%);
}
.stats-band .eyebrow { color: var(--sand); }
.stats-band .eyebrow::before { background: var(--sand); }
.stats-band h2 { position: relative; max-width: 640px; }

.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 54px; }
.stat { padding: 26px 22px; border-radius: 18px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.1rem); color: #fff; font-weight: 500; line-height: 1; }
.stat span { font-size: 0.88rem; color: rgba(255,255,255,0.62); font-weight: 600; margin-top: 8px; display: block; }

/* ---------- Split ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 76px; align-items: center; }

.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3.5;
  background: linear-gradient(150deg, var(--sage), var(--green-soft));
  box-shadow: var(--shadow-md);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,43,37,0) 55%, rgba(12,43,37,0.28) 100%);
}
.split-media .media-tag {
  position: absolute; bottom: 20px; left: 20px; z-index: 2;
  background: rgba(255,253,248,0.92); backdrop-filter: blur(6px);
  color: var(--pine); font-size: 0.82rem; font-weight: 700;
  padding: 10px 16px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
}

.check-list { list-style: none; display: grid; gap: 18px; margin-top: 30px; }
.check-list li { display: flex; gap: 15px; align-items: flex-start; color: var(--ink-soft); font-weight: 500; font-size: 0.98rem; }
.check-list li strong { color: var(--ink); font-weight: 700; }
.check-list .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--green-soft); color: var(--pine); display: grid; place-items: center; flex-shrink: 0; margin-top: 2px; }

/* ---------- CTA banner ---------- */

.cta-banner {
  background: var(--pine);
  border-radius: var(--radius-lg);
  padding: 76px 60px;
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  gap: 44px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(500px 340px at 88% 12%, rgba(47,138,111,0.5), transparent 66%),
    radial-gradient(360px 280px at 8% 96%, rgba(195,154,104,0.2), transparent 62%);
}
.cta-banner > * { position: relative; }
.cta-banner h2 { max-width: 540px; }
.cta-banner p { color: rgba(255,255,255,0.78); margin-top: 14px; max-width: 480px; }

/* ---------- Team ---------- */

.team-group { margin-bottom: 68px; }
.team-group-title { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.team-group-title h2 { font-size: 1.7rem; }
.team-group-title .count { margin-left: auto; font-size: 0.8rem; font-weight: 700; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; }
.team-group-title .card-icon { margin: 0; width: 48px; height: 48px; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }

.doctor {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
  display: flex; align-items: center; gap: 17px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.doctor:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--sage); }

.avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(140deg, var(--green), var(--pine));
  color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; flex-shrink: 0;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.12);
}
.doctor h3 { font-size: 1.03rem; margin-bottom: 3px; }
.doctor span { font-size: 0.8rem; color: var(--muted); font-weight: 600; }

/* ---------- Centers ---------- */

.center-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.center-card::before { display: none; }
.center-card-top {
  position: relative; overflow: hidden;
  padding: 30px; color: #fff;
  background: linear-gradient(150deg, var(--pine), var(--green));
  min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end;
}
.center-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 0.6s var(--ease); }
.center-card:hover .center-photo { transform: scale(1.05); }
.ct-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(12,43,37,0.15) 0%, rgba(12,43,37,0.45) 55%, rgba(12,43,37,0.82) 100%); }
.center-card-top .ct-icon { position: relative; z-index: 2; margin-bottom: 12px; opacity: 0.95; }
.center-card-top h3 { position: relative; z-index: 2; font-size: 1.24rem; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; text-shadow: 0 1px 12px rgba(0,0,0,0.35); }
.center-card-body { padding: 28px 30px 32px; display: flex; flex-direction: column; gap: 15px; flex: 1; }
.center-meta { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: var(--ink-soft); font-weight: 600; }
.center-meta svg { flex-shrink: 0; color: var(--sand); margin-top: 3px; }
.center-meta a:hover { color: var(--pine); }
.center-card-body p.desc { font-size: 0.92rem; color: var(--muted); font-weight: 400; }
.center-card-body .card-link { margin-top: auto; padding-top: 6px; }

/* ---------- Values ---------- */

.value-card::before { display: none; }
.value-num { font-family: var(--font-display); font-size: 2.6rem; color: var(--sand); font-weight: 500; line-height: 1; margin-bottom: 18px; }

/* ---------- Forms ---------- */

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 46px; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.83rem; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.01em; }
.form-field label em { color: var(--sand); font-style: normal; }

.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body); font-size: 0.95rem;
  padding: 14px 16px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: var(--bg);
  color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--green); background: var(--surface);
  box-shadow: 0 0 0 3px rgba(10, 127, 156, 0.15);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 18px; }
.form-status { font-size: 0.9rem; font-weight: 600; margin-top: 4px; padding: 12px 16px; border-radius: var(--radius); }
.form-status.is-ok { color: #0f6b3f; background: rgba(16, 122, 72, 0.1); border: 1px solid rgba(16, 122, 72, 0.25); }
.form-status.is-error { color: #a4242b; background: rgba(164, 36, 43, 0.08); border: 1px solid rgba(164, 36, 43, 0.25); }

/* ---------- Contact info ---------- */

.info-tile { display: flex; gap: 18px; align-items: flex-start; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.3s var(--ease), transform 0.3s var(--ease); }
.info-tile:hover { border-color: var(--sage); transform: translateX(4px); }
.info-tile .card-icon { margin: 0; width: 48px; height: 48px; flex-shrink: 0; }
.info-tile:hover .card-icon { background: var(--green-soft); color: var(--pine); }
.info-tile h3 { font-size: 1rem; margin-bottom: 5px; }
.info-tile p { font-size: 0.95rem; color: var(--ink-soft); font-weight: 600; }
.info-tile a { color: var(--pine); }
.info-tile a:hover { text-decoration: underline; }

/* ---------- Insurance logos row ---------- */
.logo-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.logo-chip { font-size: 0.9rem; font-weight: 700; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); padding: 12px 22px; border-radius: 12px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--pine-deep); color: rgba(255, 255, 255, 0.72); margin-top: 108px; padding: 78px 0 34px; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 90% 0%, rgba(28,107,87,0.3), transparent 64%); }
.site-footer .container { position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 50px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.site-footer .brand { color: #fff; margin-bottom: 20px; }
.site-footer .brand small { color: rgba(255, 255, 255, 0.5); }
.footer-grid p { font-size: 0.92rem; max-width: 320px; line-height: 1.7; }
.footer-grid h4 { color: #fff; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 20px; }
.footer-grid ul { list-style: none; display: grid; gap: 13px; }
.footer-grid ul a { font-size: 0.92rem; color: rgba(255, 255, 255, 0.65); transition: color 0.2s; }
.footer-grid ul a:hover { color: var(--sand); }
.footer-grid ul li { font-size: 0.92rem; line-height: 1.5; }
.footer-bottom { padding-top: 32px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: rgba(255, 255, 255, 0.45); }
.footer-bottom a:hover { color: var(--sand); }

/* ---------- Page hero ---------- */

.page-hero { padding: 92px 0 80px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(560px 340px at 92% 0%, rgba(28,107,87,0.08), transparent 62%),
    radial-gradient(440px 320px at 4% 100%, rgba(195,154,104,0.13), transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.page-hero h1 { max-width: 780px; margin-bottom: 22px; }
.page-hero h1 em { font-style: italic; color: var(--green); }
.page-hero-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5/4; background: linear-gradient(150deg, var(--pine), var(--green)); box-shadow: var(--shadow-md); position: relative; }
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Reveal ---------- */

/* Default state is VISIBLE so nothing flashes before JS runs (and it stays
   accessible if JS fails). Only elements JS marks with .pre — i.e. those below
   the fold on load — start hidden and animate in as they scroll into view. */
.reveal { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.pre { opacity: 0; transform: translateY(26px); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal.pre { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid, .split, .page-hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .page-hero-photo { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-photo { aspect-ratio: 16/12; max-width: 560px; }
  .hero-float { left: 10px; }
}

@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .nav-links {
    display: none; position: absolute; top: 80px; left: 0; right: 0;
    background: var(--surface); flex-direction: column; align-items: flex-start;
    padding: 24px 28px; gap: 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
  .grid-3, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .stats-band, .cta-banner { padding: 52px 30px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .form-card { padding: 30px 24px; }
  .hero { padding: 68px 0 92px; }
  .hero-chip { display: none; }
  .cta-banner { text-align: left; }
  .team-group-title .count { display: none; }
}
