/* ============================================================
   SecureWay Driving School — sleek, modern, dark-first theme
   ============================================================ */

:root {
  --red: #ff3355;
  --red-2: #c8102e;
  --red-soft: rgba(255, 51, 85, 0.16);
  --accent: #38bdf8;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: Sora, var(--sans);
  --maxw: 1200px;
  --pad: clamp(18px, 5vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dark theme (default) */
:root,
[data-theme="dark"] {
  --bg: #050b1a;
  --bg-2: #081227;
  --panel: rgba(18, 30, 56, 0.55);
  --panel-solid: #0d1a34;
  --glass: rgba(12, 22, 44, 0.62);
  --glass-brd: rgba(255, 255, 255, 0.09);
  --ink: #eaf1ff;
  --ink-strong: #ffffff;
  --muted: #9db0cf;
  --line: rgba(255, 255, 255, 0.1);
  --card: rgba(255, 255, 255, 0.035);
  --card-brd: rgba(255, 255, 255, 0.09);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 14px 34px rgba(0, 0, 0, 0.35);
  --hero-glow: radial-gradient(60% 70% at 78% 18%, rgba(255, 51, 85, 0.22), transparent 60%);
}

/* Light theme */
[data-theme="light"] {
  --bg: #f6f8fc;
  --bg-2: #ffffff;
  --panel: rgba(255, 255, 255, 0.7);
  --panel-solid: #ffffff;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-brd: rgba(9, 20, 44, 0.08);
  --ink: #0f1f38;
  --ink-strong: #071736;
  --muted: #5a6b86;
  --line: rgba(9, 20, 44, 0.1);
  --card: #ffffff;
  --card-brd: rgba(9, 20, 44, 0.09);
  --shadow: 0 30px 70px rgba(9, 20, 44, 0.14);
  --shadow-sm: 0 14px 34px rgba(9, 20, 44, 0.1);
  --hero-glow: radial-gradient(60% 70% at 80% 12%, rgba(255, 51, 85, 0.14), transparent 60%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* ---------- Background aurora ---------- */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    var(--hero-glow),
    radial-gradient(50% 60% at 12% 8%, rgba(56, 189, 248, 0.16), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 40%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  animation: float 18s var(--ease) infinite alternate;
}
.orb-1 { width: 440px; height: 440px; top: -120px; right: -80px; background: radial-gradient(circle, rgba(255, 51, 85, 0.55), transparent 70%); }
.orb-2 { width: 520px; height: 520px; top: 30%; left: -160px; background: radial-gradient(circle, rgba(56, 189, 248, 0.4), transparent 70%); animation-delay: -6s; }
.orb-3 { width: 380px; height: 380px; bottom: -140px; right: 15%; background: radial-gradient(circle, rgba(124, 92, 255, 0.4), transparent 70%); animation-delay: -12s; }

@keyframes float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(0, -40px, 0) scale(1.12); }
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--accent));
  box-shadow: 0 0 14px rgba(255, 51, 85, 0.6);
  transition: width 80ms linear;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--red);
  transition: top 160ms var(--ease);
}
.skip-link:focus { top: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: var(--maxw);
  margin: 12px auto 0;
  padding: 12px clamp(14px, 3vw, 22px);
  border: 1px solid var(--glass-brd);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 220ms var(--ease), transform 220ms var(--ease);
}
.site-header.is-stuck { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28); }

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  flex: none;
}
.brand-mark.small { width: 40px; height: 40px; }
.brand-mark img { width: 100%; height: 100%; padding: 3px; }
.brand-text strong {
  display: block;
  font-family: var(--display);
  color: var(--ink-strong);
  font-size: 1.06rem;
  line-height: 1;
  letter-spacing: 0.2px;
}
.brand-text strong span { color: var(--red); }
.brand-text small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.site-nav { display: flex; gap: 2px; align-items: center; margin: 0 auto; }
.site-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  transition: color 160ms var(--ease), background 160ms var(--ease);
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink-strong); background: var(--card); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-cta { padding: 10px 18px; min-height: 44px; }

.header-account {
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--card);
  font-weight: 700;
  font-size: 0.9rem;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}
.header-account:hover, .header-account:focus-visible { color: var(--ink-strong); border-color: var(--red); }
.header-account.is-out { color: var(--red); border-color: rgba(255, 51, 85, 0.4); }
.header-logout { display: inline-flex; align-items: center; padding: 9px 8px; color: var(--muted); font-weight: 700; font-size: 0.85rem; }
.header-logout:hover, .header-logout:focus-visible { color: var(--red); }
@media (max-width: 720px) { .header-logout { display: none; } }

.account-menu { position: relative; }
.account-menu > button.header-account { cursor: pointer; appearance: none; -webkit-appearance: none; }
.account-menu-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: none;
  gap: 2px;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--glass-brd);
  border-radius: 14px;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
  z-index: 60;
}
.account-menu.is-open > .account-menu-pop { display: grid; }
.account-menu-pop a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.94rem;
}
.account-menu-pop a:hover, .account-menu-pop a:focus-visible { background: var(--card); color: var(--red); }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: transform 200ms var(--ease), border-color 200ms var(--ease);
}
.theme-toggle:hover { transform: rotate(-12deg); border-color: var(--red); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px; width: 20px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Layout ---------- */
.hero, .section, .stats-strip { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--red);
  background: var(--red-soft);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ping {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(255, 51, 85, 0.6);
  animation: ping 1.8s var(--ease) infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(255, 51, 85, 0.55); }
  100% { box-shadow: 0 0 0 10px rgba(255, 51, 85, 0); }
}

h1, h2, h3 { margin: 0; color: var(--ink-strong); font-family: var(--display); }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  max-width: 15ch;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: 1.02;
  font-weight: 800;
}
h2 { font-size: clamp(1.9rem, 3.8vw, 3.2rem); line-height: 1.05; font-weight: 800; }
h3 { font-size: 1.2rem; line-height: 1.25; font-weight: 700; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease);
}
.button .arrow { transition: transform 200ms var(--ease); }
.button:hover .arrow { transform: translateX(4px); }
.button.full { width: 100%; }
.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  box-shadow: 0 14px 32px rgba(255, 51, 85, 0.34);
}
.button.primary:hover, .button.primary:focus-visible { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(255, 51, 85, 0.44); }
.button.ghost {
  color: var(--ink);
  border-color: var(--line);
  background: var(--card);
  backdrop-filter: blur(8px);
}
.button.ghost:hover, .button.ghost:focus-visible { border-color: var(--red); transform: translateY(-2px); }
.phone-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(40px, 7vw, 96px);
  padding-bottom: clamp(40px, 7vw, 90px);
}
.hero-text {
  max-width: 56ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.hero-points li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--card);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-media { position: relative; }
.hero-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-brd);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  box-shadow: var(--shadow);
  aspect-ratio: 1774 / 887;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  left: -14px; bottom: -18px;
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border: 1px solid var(--glass-brd);
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}
.hero-badge strong { font-family: var(--display); font-size: 1.5rem; color: var(--ink-strong); }
.hero-badge span { font-size: 0.78rem; color: var(--muted); font-weight: 600; }

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 10px;
}
.stats-strip article {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--card-brd);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(8px);
}
.stat-num {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(120deg, var(--red), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats-strip strong { display: block; margin-top: 12px; color: var(--ink-strong); font-size: 1.14rem; }
.stats-strip p { margin: 8px 0 0; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(20px, 4vw, 40px); }
.section:last-of-type { padding-bottom: clamp(64px, 9vw, 120px); }

.intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}
.intro > p { margin: 0; color: var(--muted); font-size: 1.15rem; }

.section-heading { max-width: 720px; margin-bottom: 40px; }
.section-heading .eyebrow { margin-bottom: 14px; }

/* ---------- Program cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.program-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 26px 24px;
  border: 1px solid var(--card-brd);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.program-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% -10%, rgba(255, 51, 85, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 220ms var(--ease);
}
.program-card:hover { transform: translateY(-6px); border-color: rgba(255, 51, 85, 0.45); box-shadow: var(--shadow-sm); }
.program-card:hover::before { opacity: 1; }
.program-card > * { position: relative; }
.program-card.featured {
  border-color: transparent;
  background: linear-gradient(155deg, #101f3d, #0b1730);
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .program-card.featured { background: linear-gradient(155deg, #0d2452, #071736); }
.program-card.featured h3, .program-card.featured a { color: #fff; }
.program-card.featured p { color: rgba(255, 255, 255, 0.72); }
.tag {
  position: absolute;
  top: 16px; right: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.card-icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin-bottom: 22px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  font-family: var(--display);
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(255, 51, 85, 0.3);
}
.program-card p { margin: 10px 0 0; color: var(--muted); }
.program-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--red);
  font-weight: 700;
}
.program-card a .arrow { transition: transform 200ms var(--ease); }
.program-card a:hover .arrow { transform: translateX(4px); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  border: 1px solid var(--card-brd);
  border-radius: var(--radius-lg);
  background: var(--card);
  backdrop-filter: blur(10px);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); }
.price-card.highlight {
  border-color: rgba(255, 51, 85, 0.5);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 51, 85, 0.12), transparent 60%),
    var(--card);
  box-shadow: 0 24px 60px rgba(255, 51, 85, 0.16);
}
.price-card h3 { font-size: 1.24rem; }
.price { margin: 14px 0 6px; display: flex; align-items: baseline; gap: 8px; }
.price .amount {
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ink-strong);
}
.price .per { color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.price-note { margin: 0 0 18px; color: var(--muted); font-size: 0.95rem; }
.feature-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 11px; }
.feature-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-size: 0.95rem;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--red), var(--red-2));
  box-shadow: 0 4px 10px rgba(255, 51, 85, 0.35);
}
.feature-list li::after {
  content: "";
  position: absolute;
  left: 6px; top: 8px;
  width: 5px; height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.price-card .button { margin-top: auto; }
.price-disclaimer { margin: 26px 0 0; color: var(--muted); font-size: 0.9rem; text-align: center; }

/* ---------- Timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0; margin: 0; list-style: none; }
.timeline li {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--card-brd);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.timeline li::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--accent));
}
.timeline span {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  font-family: var(--display);
  font-weight: 800;
}
.timeline p { margin: 10px 0 0; color: var(--muted); }

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
blockquote {
  margin: 0;
  padding: 28px 26px;
  border: 1px solid var(--card-brd);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(8px);
}
.stars { color: #ffc53d; letter-spacing: 2px; margin-bottom: 12px; font-size: 1.05rem; }
blockquote p { margin: 0; color: var(--ink); font-size: 1.05rem; line-height: 1.6; }
cite { display: block; margin-top: 18px; color: var(--red); font-style: normal; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; max-width: 860px; }
details {
  border: 1px solid var(--card-brd);
  border-radius: var(--radius-sm);
  background: var(--card);
  backdrop-filter: blur(8px);
  overflow: hidden;
}
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  color: var(--ink-strong);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
.chev { position: relative; width: 14px; height: 14px; flex: none; transition: transform 240ms var(--ease); }
.chev::before, .chev::after { content: ""; position: absolute; top: 6px; width: 9px; height: 2px; border-radius: 2px; background: var(--red); }
.chev::before { left: 0; transform: rotate(45deg); }
.chev::after { right: 0; transform: rotate(-45deg); }
details[open] .chev { transform: rotate(180deg); }
details p { margin: 0; padding: 0 22px 22px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}
.contact-copy p { margin: 0; color: var(--muted); font-size: 1.1rem; }
.contact-links { display: grid; gap: 10px; margin-top: 26px; }
.contact-links a, .contact-links span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  transition: color 160ms var(--ease);
}
.contact-links a:hover, .contact-links a:focus-visible { color: var(--red); }
.ci { color: var(--red); font-size: 1.05rem; }

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--card-brd);
  border-radius: var(--radius-lg);
  background: var(--card);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
label { display: grid; gap: 7px; color: var(--ink-strong); font-size: 0.9rem; font-weight: 700; }
input, select, textarea {
  width: 100%;
  padding: 14px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--bg-2);
  font: inherit;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea { background: rgba(255, 255, 255, 0.04); }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
}
textarea { resize: vertical; }
select { appearance: none; }
.field-error { color: var(--red); font-size: 0.82rem; font-weight: 600; font-style: normal; min-height: 0; }
label.invalid input, label.invalid select, label.invalid textarea { border-color: var(--red); }

.form-status {
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
}
.form-status.success { color: #eafff1; background: rgba(34, 197, 94, 0.16); border: 1px solid rgba(34, 197, 94, 0.4); }
.form-status.error { color: #ffe9ee; background: var(--red-soft); border: 1px solid rgba(255, 51, 85, 0.45); }

.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- Floating CTA ---------- */
.floating-cta {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  box-shadow: 0 16px 40px rgba(255, 51, 85, 0.45);
  font-weight: 700;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 300ms var(--ease), opacity 300ms var(--ease);
}
.floating-cta.show { transform: translateY(0); opacity: 1; }
.floating-cta:hover { transform: translateY(-3px); }
.fc-icon { font-size: 1.15rem; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(40px, 6vw, 80px);
  padding: 48px var(--pad) 30px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { color: var(--ink-strong); font-family: var(--display); }
.footer-brand p { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; font-weight: 600; }
.site-footer nav a { color: var(--muted); transition: color 160ms var(--ease); }
.site-footer nav a:hover, .site-footer nav a:focus-visible { color: var(--red); }
.copyright { max-width: var(--maxw); margin: 30px auto 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 640ms var(--ease), transform 640ms var(--ease);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero, .intro, .contact-section { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 640px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; }
  .price-card.highlight { order: -1; }
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
}

@media (max-width: 720px) {
  .site-header {
    border-radius: 18px;
    margin-top: 8px;
  }
  .site-nav {
    position: absolute;
    left: 0; right: 0;
    top: calc(100% + 10px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--glass-brd);
    border-radius: 18px;
    background: var(--panel-solid);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 14px; border-radius: 12px; }
  .stats-strip, .card-grid, .timeline, .review-grid { grid-template-columns: 1fr; }
  .program-card { min-height: auto; }
  .hero-badge { left: 8px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .floating-cta .fc-text { display: none; }
  .floating-cta { padding: 16px; }
}

/* ---------- Single pages (Student Portal, etc.) ---------- */
.page-section {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-top: clamp(48px, 8vw, 88px);
  padding-bottom: clamp(48px, 8vw, 96px);
}
.page-head { margin-bottom: 26px; }
.page-title { font-family: var(--display); font-size: clamp(2rem, 4.4vw, 3.4rem); color: var(--ink-strong); }
.page-content { font-size: 1.05rem; }
.page-content h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 1.4em 0 .5em; }
.page-content h3 { margin: 1.2em 0 .4em; }
.page-content a { color: var(--red); font-weight: 700; }

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