/* Fonts loaded via <link> tags in each page <head> for non-blocking performance */

:root {
  --purple:       #2D0A5E;
  --purple-mid:   #6B21A8;
  --purple-light: #F5F3FF;
  --teal:         #0D7272;
  --teal-dark:    #095959;
  --teal-light:   #E6F7F7;
  --gold:         #F59E0B;
  --gold-dark:    #B8720A;
  --gold-light:   #FEF9ED;
  --slate:        #1A2332;
  --body-bg:      #FDFDFF;
  --border:       #EEF2F7;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', serif;
  color: var(--slate);
  background: var(--body-bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

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

/* Subtle grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 9999;
}

/* ── NAVIGATION ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(253, 253, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.nav-logo-name {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 1.375rem;
  color: var(--purple);
  letter-spacing: -0.045em;
  line-height: 1;
}

.nav-logo-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.55rem;
  color: #94A3B8;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
  margin-top: 2px;
}

.nav-divider {
  width: 1px;
  height: 2rem;
  background: #E2E8F0;
  margin: 0 0.125rem;
}

.nav-registered {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.5rem;
  color: #94A3B8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.5;
}

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

.nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: #475569;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--teal); }
.nav-link.active { color: var(--purple); }

.nav-highlight {
  color: var(--purple-mid) !important;
  font-weight: 700;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.8rem 1.875rem;
  border-radius: 9999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.2s ease,
              background 0.2s ease,
              color 0.2s ease,
              border-color 0.2s ease;
}
.btn:hover { transform: scale(1.05) translateY(-1px); }
.btn:active { transform: scale(0.97) translateY(0); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.btn-gold {
  background: var(--gold);
  color: var(--purple);
  box-shadow: 0 4px 16px rgba(245,158,11,0.28);
}
.btn-gold:hover {
  background: #FBBF24;
  box-shadow: 0 12px 32px rgba(245,158,11,0.38);
}

.btn-teal {
  background: var(--teal);
  color: white;
  box-shadow: 0 4px 16px rgba(13,114,114,0.28);
}
.btn-teal:hover {
  background: var(--teal-dark);
  box-shadow: 0 12px 32px rgba(13,114,114,0.32);
}

.btn-purple {
  background: var(--purple);
  color: white;
  box-shadow: 0 4px 16px rgba(45,10,94,0.28);
}
.btn-purple:hover {
  background: var(--purple-mid);
  box-shadow: 0 12px 32px rgba(45,10,94,0.32);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.55);
}
.btn-outline-white:hover {
  background: white;
  color: var(--purple);
  border-color: white;
}

.btn-outline-teal {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline-teal:hover {
  background: var(--teal);
  color: white;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 0.8rem;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.65rem;
}

/* ── LAYOUT ── */
.section-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-py { padding-top: 5rem; padding-bottom: 5rem; }
.section-py-lg { padding-top: 7rem; padding-bottom: 7rem; }

/* ── TYPOGRAPHY ── */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 0.875rem;
}

.eyebrow-gold { color: var(--gold); }
.eyebrow-purple { color: var(--purple-mid); }

.section-title {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(1.875rem, 4vw, 3rem);
  color: var(--slate);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-title-white { color: white; }

.section-sub {
  font-family: 'Lora', serif;
  font-size: 1.0625rem;
  color: #64748B;
  line-height: 1.8;
  max-width: 44ch;
  margin-top: 1rem;
}

.section-sub-white { color: rgba(255,255,255,0.78); }

/* ── CARDS ── */
.card {
  background: white;
  border-radius: 1.375rem;
  border: 1.5px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03), 0 8px 28px rgba(13,114,114,0.05);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05), 0 24px 56px rgba(13,114,114,0.13);
}
.card-accent::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--purple-mid));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card-accent:hover::before { opacity: 1; }

.card-body { padding: 1.75rem; }

/* ── SERVICE ICON ── */
.svc-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.125rem;
  flex-shrink: 0;
}

.svc-icon-teal    { background: var(--teal-light); }
.svc-icon-purple  { background: var(--purple-light); }
.svc-icon-gold    { background: var(--gold-light); }

/* ── NDIS TAG ── */
.ndis-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
}
.ndis-tag::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

/* ── AVAILABILITY WIDGET ── */
.avail-widget {
  background: white;
  border: 1.5px solid #E2E8F0;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(13,114,114,0.1), 0 4px 16px rgba(0,0,0,0.06);
  padding: 0.375rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  max-width: 30rem;
}
@media (min-width: 520px) {
  .avail-widget { flex-direction: row; }
}

.avail-input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: none;
  border-radius: 0.625rem;
  background: #F8FAFC;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--slate);
  outline: none;
  min-width: 0;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.avail-input:focus {
  background: white;
  box-shadow: 0 0 0 2px rgba(13,114,114,0.18);
}
.avail-input::placeholder { color: #94A3B8; }

/* ── STATS BAR ── */
.stats-bar {
  background: white;
  border-top: 1px solid #F1F5F9;
  border-bottom: 1px solid #F1F5F9;
  padding: 2rem 1.5rem;
}

.stat-number {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94A3B8;
  margin-top: 0.3rem;
}


/* ── Service bento cards hover ── */
.svc-card {
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.35s ease;
}
.svc-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 20px 48px rgba(0,0,0,0.1);
}

/* ── ELEVATE FACT PILLS ── */
.elevate-fact-pill {
  display: flex;
  align-items: center;
  gap: .875rem;
  background: rgba(255,255,255,0.11);
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
}
.elevate-fact-pill:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.35);
  transform: translateX(6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.elevate-fact-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── TRUST CARD hover ── */
.trust-card {
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.35s ease;
}
.trust-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 24px 56px rgba(0,0,0,0.12) !important;
}

/* ── ELEVATE SECTION ── */
.elevate-section {
  background: var(--purple);
  position: relative;
  overflow: hidden;
}
.elevate-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(245,158,11,0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(107,33,168,0.5) 0%, transparent 55%);
  pointer-events: none;
}

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--purple) 0%, #3B0764 55%, var(--purple-mid) 100%);
  color: white;
  padding: 5rem 1.5rem 6rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 85% 40%, rgba(245,158,11,0.14) 0%, transparent 55%);
  pointer-events: none;
}
.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-hero-deco {
  position: absolute;
  border-radius: 50%;
  border: 48px solid rgba(255,255,255,0.04);
}
.page-hero-deco-1 { width: 400px; height: 400px; top: -150px; right: -100px; }
.page-hero-deco-2 { width: 200px; height: 200px; bottom: -80px; left: 10%; }

/* ── FORM ── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-label {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--slate);
  letter-spacing: 0.01em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid #DDE3EC;
  border-radius: 0.625rem;
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  color: var(--slate);
  background: #FAFBFC;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
  -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,114,114,0.1);
  background: white;
}
.form-textarea { resize: vertical; min-height: 5.5rem; }

.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #475569;
  cursor: pointer;
}
.form-checkbox-label input[type="checkbox"] {
  width: 1.125rem; height: 1.125rem;
  border-radius: 0.3rem;
  accent-color: var(--teal);
  cursor: pointer;
}

/* ── PROCESS STEPS ── */
.process-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  position: relative;
}
.step-num {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(13,114,114,0.3);
}
.step-connector {
  position: absolute;
  left: 1.375rem;
  top: 2.75rem;
  width: 2px;
  height: calc(100% + 1.5rem);
  background: linear-gradient(to bottom, var(--teal-light), transparent);
}

/* ── OUTCOME CARD ── */
.outcome-card {
  background: white;
  border: 1.5px solid #E9D5FF;
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.25s ease;
}
.outcome-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(107,33,168,0.1);
}
.outcome-icon {
  width: 2.75rem; height: 2.75rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--purple), var(--purple-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

/* ── TRUST BADGE ── */
.trust-badge {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 1rem;
  padding: 1.125rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.25s ease;
}
.trust-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(13,114,114,0.1);
}

/* ── CONTACT INFO ROW ── */
.contact-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.contact-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ── FOOTER ── */
.site-footer {
  background: #0D1526;
  color: white;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-col-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.125rem;
}
.footer-link {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s ease;
  margin-bottom: 0.625rem;
}
.footer-link:hover { color: rgba(255,255,255,0.9); }

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-bottom-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.3);
}

/* ── NDIS LOVE BADGE ── */
.ndis-love-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 9999px;
  padding: 0.4rem 0.875rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: white;
}

/* ── HERO FLOATING CARDS ── */
.float-card {
  background: white;
  border-radius: 1rem;
  padding: 0.875rem 1.125rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.float-card-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.float-card-label {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--slate);
  line-height: 1.3;
}
.float-card-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.625rem;
  color: #94A3B8;
}

/* ── REFERRAL QUICK FACTS ── */
.quick-fact {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.125rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.875rem;
}

/* ── CAPACITY STATUS ── */
#capacityStatus {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--teal-dark);
  margin-top: 0.75rem;
}
#capacityStatus.show { display: flex; }

/* ── RESPONSIVE GRID HELPERS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section-py { padding-top: 3.5rem; padding-bottom: 3.5rem; }
}

/* ── HERO LAYOUT MOBILE ── */
@media (max-width: 860px) {
  /* Reduce photo opacity on mobile so text stays readable */
  #main-content > div:first-child {
    width: 75% !important;
  }
}

/* ── SKIP NAVIGATION LINK (accessibility) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--teal);
  color: white;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: .875rem;
  padding: .625rem 1.25rem;
  border-radius: 0 0 .5rem .5rem;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* ── REFERRALS SIDEBAR MOBILE ── */
@media (max-width: 900px) {
  /* The referrals page uses 1fr 420px — stack on mobile */
  [style*="grid-template-columns:1fr 420px"],
  [style*="grid-template-columns: 1fr 420px"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── NAMED GRID CLASSES — replaces fragile [style*] attribute selectors ── */
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.grid-2col-sm { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

/* ── RESPONSIVE BREAKPOINTS ── */
@media (max-width: 860px) {
  .grid-2col,
  .grid-2col-sm,
  /* legacy inline-style fallback — covers both spacing variants */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  /* non-equal 2-column layouts (FAQ, story team, elevate CTA) */
  [style*="grid-template-columns:2fr 3fr"],
  [style*="grid-template-columns:2fr 1fr"],
  [style*="grid-template-columns:auto 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  /* Step connector line: hide on mobile */
  .step-connector-line { display: none !important; }
  [style*="left:calc(16.67%"] { display: none !important; }
}

@media (max-width: 700px) {
  .grid-3col,
  .grid-4col,
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3,1fr)"],
  [style*="grid-template-columns:repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 1.75rem !important; }
}

/* ── ACCORDION CHEVRON ROTATION ── */
details summary svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
details[open] summary svg {
  transform: rotate(180deg);
}

/* ── DETAILS / SUMMARY BASE ── */
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }

/* ── TEAM CARD OVERFLOW FIX ── */
/* Overlapping avatar cards need overflow:visible on the wrapper */
.team-card-wrap { overflow: visible !important; }

/* ── LINK UNDERLINE RESET ── */
.footer-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── SMOOTH DETAIL ANIMATION ── */
details > div {
  animation: slideUp 0.2s ease;
}

/* ── SERVICES ILLUSTRATION BOXES ── */
.svc-illustration {
  border-radius: 2rem;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(13,114,114,0.09);
}
@media (max-width: 860px) {
  .svc-illustration { min-height: 200px; }
}

/* ── SCROLL ANIMATION ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── MOBILE HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--slate);
  border-radius: 2px;
  transition: all 0.3s ease;
}
@media (max-width: 900px) {
  .hamburger { display: flex; }
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid #F1F5F9;
  gap: 0.25rem;
  background: white;
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #475569;
  padding: 0.625rem 0;
  border-bottom: 1px solid #F8FAFC;
}
.mobile-nav-link:hover { color: var(--teal); }

/* ── BENTO GRID ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.125rem;
}
.bento-c4 { grid-column: span 4; }
.bento-c3 { grid-column: span 3; }
.bento-c2 { grid-column: span 2; }

@media (max-width: 1024px) {
  .bento-c4 { grid-column: span 6; }
  .bento-c3 { grid-column: span 6; }
  .bento-c2 { grid-column: span 3; }
}
@media (max-width: 640px) {
  .bento-c4, .bento-c3, .bento-c2 { grid-column: span 6; }
  .bento-grid { gap: .75rem; }
}

/* Bento glow overlay */
.bento-glow {
  position: relative;
  overflow: hidden;
}
.bento-glow::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 60% 0%, rgba(13,114,114,0.06), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.bento-glow-gold::before {
  background: radial-gradient(circle at 80% 20%, rgba(245,158,11,0.13), transparent 60%);
}
.bento-glow > * { position: relative; z-index: 1; }

/* Spring card */
.spring-card {
  transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              border-color 0.25s ease;
}
.spring-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 56px rgba(13,114,114,0.13), 0 6px 16px rgba(0,0,0,0.06);
}

/* ── INFINITE MARQUEE ── */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 1.25rem;
  animation: marquee 38s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

/* ── SPECIALIST TICKER ── */
.ticker-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: marquee 26s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }

/* ── ANIMATIONS ── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-float { animation: float 4s ease-in-out infinite; }
.anim-float-delay { animation: float 4s ease-in-out 1.8s infinite; }
.pulse-dot { animation: pulse-dot 2s ease-in-out infinite; }

/* ── ACCESSIBILITY: SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--teal);
  color: white;
  padding: .5rem 1.25rem;
  border-radius: .5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: .875rem;
  z-index: 9999;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

/* ── ACCESSIBILITY: FOCUS VISIBLE ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── ACCESSIBILITY: MIN TOUCH TARGETS ── */
.btn { min-height: 44px; min-width: 44px; }
.hamburger { min-height: 44px; min-width: 44px; align-items: center; justify-content: center; }

/* ── ACCESSIBILITY: CURSOR ── */
.spring-card[href], a.spring-card { cursor: pointer; }
button { cursor: pointer; }

/* ── ACCESSIBILITY: PREFERS-REDUCED-MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .anim-float,
  .anim-float-delay,
  .pulse-dot { animation: none !important; }

  .marquee-track { animation: none !important; overflow-x: auto; }

  .spring-card {
    transition: none !important;
    transform: none !important;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal); }

/* ── SELECTION ── */
::selection { background: rgba(13,114,114,0.18); }

/* ── WHATSAPP FLOATING BUTTON ── */
.whatsapp-btn {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 1000;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.25s cubic-bezier(0.175,0.885,0.32,1.275), box-shadow 0.25s ease;
  text-decoration: none;
}
.whatsapp-btn:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.5);
}
.whatsapp-btn:focus-visible {
  outline: 3px solid #25D366;
  outline-offset: 3px;
}

/* ── BACK TO TOP BUTTON ── */
.back-to-top {
  position: fixed;
  bottom: 5.5rem;
  right: 1.75rem;
  z-index: 1000;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--purple);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(45,10,94,0.3);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.25s ease;
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  box-shadow: 0 6px 20px rgba(45,10,94,0.45);
}
.back-to-top:focus-visible {
  outline: 3px solid var(--purple-mid);
  outline-offset: 3px;
}

/* ── MOBILE NAV SLIDE ANIMATION ── */
.mobile-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}
.mobile-nav.open {
  max-height: 500px;
  opacity: 1;
}

/* ── COOKIE CONSENT BANNER — slim single line ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: rgba(26, 35, 50, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: .625rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p {
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  max-width: 72ch;
  margin: 0;
}
.cookie-banner a { color: var(--teal); font-weight: 700; }
.cookie-accept {
  background: var(--teal);
  color: white;
  border: none;
  border-radius: .5rem;
  padding: .375rem 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: .75rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.cookie-accept:hover { background: var(--teal-dark); }

/* ── PAGE HERO GRAIN TEXTURE ── */
.page-hero {
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* ── SOCIAL ICON LINKS ── */
.social-links {
  display: flex;
  gap: .75rem;
  align-items: center;
  margin-top: .5rem;
}
.social-link {
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
.social-link:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-2px);
}
.social-link:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ── HONEYPOT (hidden spam trap) ── */
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; tabindex: -1; }

/* ══════════════════════════════════════════
   AURORA BACKGROUND — story.html hero
   Mirrors the Aceternity AuroraBackground
   component using the site's brand palette.
══════════════════════════════════════════ */
@keyframes aurora {
  from { background-position: 50% 50%, 50% 50%; }
  to   { background-position: 350% 50%, 350% 50%; }
}

.aurora-layer {
  position: absolute;
  inset: -10px;
  background-image:
    repeating-linear-gradient(
      100deg,
      rgba(255,255,255,0.06) 0%,
      rgba(255,255,255,0.06) 7%,
      transparent 10%,
      transparent 12%,
      rgba(255,255,255,0.06) 16%
    ),
    repeating-linear-gradient(
      100deg,
      #0D7272 10%,
      #6B21A8 15%,
      #0F9488 20%,
      #F59E0B 25%,
      #2D0A5E 30%
    );
  background-size: 300%, 200%;
  filter: blur(14px);
  opacity: 0.55;
  animation: aurora 60s linear infinite;
  mask-image: radial-gradient(ellipse at 80% 0%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 0%, black 10%, transparent 70%);
  pointer-events: none;
  will-change: background-position;
}

/* ══════════════════════════════════════════
   WORD CAROUSEL — animated-hero cycling text
   Replicates framer-motion spring animation
   with CSS transitions + JS class toggling.
══════════════════════════════════════════ */
.word-carousel {
  display: inline-block;
  position: relative;
  min-width: 220px;
  height: 1.15em;
  vertical-align: bottom;
  overflow: hidden;
}

.word-carousel-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  opacity: 0;
  transform: translateY(120%);
  transition:
    opacity 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    transform 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: var(--gold);
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 400;
  white-space: nowrap;
  pointer-events: none;
}

.word-carousel-item.state-above {
  opacity: 0;
  transform: translateY(-120%);
}

.word-carousel-item.state-active {
  opacity: 1;
  transform: translateY(0);
}

.word-carousel-item.state-below {
  opacity: 0;
  transform: translateY(120%);
}



/* ══════════════════════════════════════════
   MOBILE — targeted responsive layout
══════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Core stack: all major section grids collapse to 1 column */
  .mobile-stack {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Stats bar: 2×2 instead of 4 in a row */
  .mobile-stack[style*="repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
    gap: .875rem !important;
  }

  /* Steps: 1 column */
  .mobile-stack[style*="repeat(3"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Testimonials & 3-col grids: 1 column */
  .mobile-stack[style*="1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Form field rows: always single column on mobile */
  form .mobile-stack,
  form [style*="grid-template-columns:1fr 1fr"],
  form [style*="display:grid;grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: .875rem !important;
  }

  /* Sticky sidebars: remove sticky on mobile */
  [style*="position:sticky"] {
    position: static !important;
  }

  /* Section padding: reduce */
  section, div.section-wrap > section {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  /* Stat numbers: smaller */
  .stat-number { font-size: 2.25rem !important; }

  /* Page hero: tighter */
  .page-hero { padding: 3rem 1.25rem 3.5rem !important; }

  /* Images in specialist sections: cap height */
  .mobile-stack img[style*="height:"] {
    height: 200px !important;
    width: 100% !important;
    object-fit: cover !important;
  }

  /* Hide the heavy decorative photo section on mobile */
  section[style*="background:white"] .mobile-stack > a[style*="max-width:820px"],
  section[style*="background:white"] .mobile-stack > div[style*="max-width:820px"] {
    display: none !important;
  }

  /* Hide second and third testimonials on mobile — show only 1 */
  .mobile-stack[style*="1fr 1fr 1fr"] > div:nth-child(2),
  .mobile-stack[style*="1fr 1fr 1fr"] > div:nth-child(3) {
    display: none !important;
  }

  /* Coordinator teal card: hide the numbered list, show just CTA */
  [style*="background:var(--teal);border-radius:1.5rem"] > div:not(:first-child):not(:last-child) {
    display: none !important;
  }

  /* Footer: 2 columns */
  .footer-grid { grid-template-columns: 1fr 1fr !important; }

  /* Ticker: faster on small screens */
  .ticker-track { animation-duration: 18s !important; }

  /* Elevate image grid: hide on mobile, keep text */
  .mobile-stack[style*="grid-template-columns:1fr 1fr;grid-template-rows"] {
    display: none !important;
  }

  /* Step connector line: hide on mobile */
  [style*="position:absolute;top:2.375rem;left:calc"] {
    display: none !important;
  }

  /* Gap between sections: reduce */
  [style*="padding:5rem 1.5rem"] {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  [style*="padding:5.5rem 1.5rem"] {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }
}

/* ── Extra small phones ≤ 480px ── */
@media (max-width: 480px) {
  .stat-number { font-size: 1.875rem !important; }
  .page-hero-inner h1 { font-size: clamp(1.875rem, 8.5vw, 2.5rem) !important; }
  .section-title { font-size: clamp(1.5rem, 7vw, 2rem) !important; }
  .footer-grid { grid-template-columns: 1fr !important; }
  .mobile-stack { gap: 1.5rem !important; }
  [style*="padding:5rem 1.5rem"],
  [style*="padding:5.5rem 1.5rem"] {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
}


/* ── Mobile section hiding — targeted by ID ── */
@media (max-width: 768px) {
  /* Hide entire Elevate spotlight (has its own page) */
  #m-hide-elevate { display: none !important; }

  /* Hide large decorative photo grid */
  #m-hide-photo { display: none !important; }

  /* Hide For Support Coordinators (desktop-targeted content) */
  #m-hide-coordinator { display: none !important; }

  /* Hospital Discharge — hide right column detail, keep left content + CTA */
  #m-hide-discharge-right { display: none !important; }

  /* SIL — hide right column panels, keep left content + CTA */
  #m-hide-sil-right { display: none !important; }

  /* Testimonials — show only 1 card */
  #m-simplify-testimonials .mobile-stack > div:nth-child(2),
  #m-simplify-testimonials .mobile-stack > div:nth-child(3) { display: none !important; }
}


/* ── Bento grid: max 2 cards visible on mobile, rest need scroll ── */
@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: .875rem !important;
  }
  .bento-c4 { grid-column: span 2 !important; }
  .bento-c2, .bento-c3 { grid-column: span 1 !important; }

  /* Form 2-col pairs inside teal referral section */
  [style*="background:linear-gradient(135deg,var(--teal-dark)"] form [style*="grid-template-columns:1fr 1fr"],
  [style*="background:linear-gradient(135deg,var(--teal-dark)"] form [style*="display:grid"] {
    grid-template-columns: 1fr !important;
    gap: .875rem !important;
  }

  /* Hospital Discharge & SIL feature grids (border-left) — already 2-col inline, force 1-col */
  [style*="grid-template-columns:1fr 1fr;gap:.875rem"] {
    grid-template-columns: 1fr !important;
  }

  /* Reduce very large section headings on mobile */
  [style*="font-size:clamp(2rem,4vw"] {
    font-size: clamp(1.625rem, 7vw, 2rem) !important;
  }

  /* FAQ right column (if any 2-col layout) */
  main [style*="grid-template-columns:1fr 400px"] {
    grid-template-columns: 1fr !important;
  }
}


/* ── Sticky mobile call bar ── */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: var(--teal);
  padding: .875rem 1.5rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
}
.mobile-call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: white;
  text-decoration: none;
}
@media (max-width: 768px) {
  .mobile-call-bar { display: block; }
  /* Push WhatsApp button above the call bar */
  .whatsapp-btn { bottom: 5rem !important; }
  .back-to-top { bottom: 5rem !important; }
  /* Hide trust compliance strip on mobile — too wide */
  #trust-compliance-strip { display: none; }
}


/* ── Hero word carousel — letter roll animation ── */
@keyframes letter-roll-in {
  0%   { opacity: 0; transform: translateY(0.65em) rotateX(-70deg); }
  65%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0)      rotateX(0deg);   }
}
@keyframes letter-roll-out {
  0%   { opacity: 1; transform: translateY(0)       rotateX(0deg);  }
  35%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-0.65em) rotateX(70deg); }
}
.carousel-letter {
  display: inline-block;
  animation-fill-mode: both;
  transform-style: preserve-3d;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
.carousel-letter.rolling-in  { animation-name: letter-roll-in;  animation-duration: .48s; }
.carousel-letter.rolling-out { animation-name: letter-roll-out; animation-duration: .32s; }


/* ── Pop-in cards (Why Families Choose Us) ── */
@keyframes pop-in {
  0%   { opacity: 0; transform: scale(0.86) translateY(28px); }
  65%  { transform: scale(1.03) translateY(-4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.pop-card {
  opacity: 0;
  will-change: transform, opacity;
}
.pop-card.popped {
  animation: pop-in 0.58s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}


/* ── Step hover cards (Getting Started) ── */
.step-hover-card {
  background: #F0FDFC;
  border: 1.5px solid #B2E8E8;
  border-radius: 1.75rem;
  padding: 2.25rem 1.75rem;
  box-shadow: 0 4px 20px rgba(13,114,114,0.07);
  cursor: default;
  opacity: 0;
  transform: translateY(32px);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.45s ease,
              background 0.2s ease,
              border-color 0.2s ease,
              opacity 0.45s ease;
}
.step-hover-card.step-visible {
  opacity: 1;
  transform: translateY(0);
}
.step-hover-card:hover {
  transform: translateY(-14px) scale(1.03);
  box-shadow: 0 32px 64px rgba(13, 114, 114, 0.2);
  background: white;
  border-color: rgba(13,114,114,0.3);
}
.step-hover-card:hover .step-number {
  transform: scale(1.15);
  box-shadow: 0 14px 40px rgba(13, 114, 114, 0.42);
}
.step-number {
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.45s ease;
}


/* ── Elevate photo hover zoom ── */
.elevate-photo {
  overflow: hidden;
}
.elevate-photo img {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.elevate-photo:hover img {
  transform: scale(1.09);
}


/* ── Scroll reveal ── */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ── Service marquee strip (reusable) ── */
.section-ticker-wrap {
  overflow: hidden;
  padding: .875rem 0;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 2.5rem;
}
.section-ticker-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.section-ticker-track:hover { animation-play-state: paused; }
.section-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--teal-dark);
}


/* ── Mobile hero overrides (narrow phones ≤ 480px) ── */
@media (max-width: 480px) {
  /* Scale down hero H1 so carousel doesn't overflow on 320px screens */
  #main-content h1 {
    font-size: clamp(1.75rem, 8vw, 2.375rem) !important;
    letter-spacing: -.03em !important;
  }
  /* Reduce carousel min-width so "Your Journey," fits on one line */
  #heroCarousel {
    min-width: 150px !important;
    font-size: .95em !important;
  }
  /* Tighten hero top padding on phones */
  #main-content {
    padding-top: 3rem !important;
  }
  /* Hero image: reduce height on mobile so it doesn't dominate */
  #main-content .mobile-stack img {
    height: 260px !important;
  }
}

/* ── Pull quote + hero: tighten on mobile ── */
@media (max-width: 768px) {
  [style*="padding:3rem 3.5rem"] {
    padding: 1.75rem 1.5rem !important;
  }
  /* Hero image: reduce height on tablets so it doesn't dominate */
  #main-content .mobile-stack img {
    height: 320px !important;
  }
  /* Step hover cards: disable the translateY entrance so they're visible immediately on mobile */
  .step-hover-card {
    opacity: 1;
    transform: none;
    transition: box-shadow 0.3s ease, background 0.2s ease, border-color 0.2s ease;
  }
  .step-hover-card.step-visible {
    opacity: 1;
    transform: none;
  }
  /* Pop cards: show immediately on mobile (no scroll-reveal needed on small screens) */
  .pop-card {
    opacity: 1;
    animation: none !important;
  }
  .pop-card.popped {
    animation: none !important;
  }
}
