/* Mandy's Driving Academy — v2 design */

:root {
  --ink: #2a2740;
  --ink-soft: #55516e;
  --sky: #00b0ff;
  --pink: #ff6584;
  --coral: #ffb8b8;
  --cream: #faf6f1;
  --white: #ffffff;
  --line: #e8e2d9;
  --radius: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Sora', sans-serif; line-height: 1.15; }

a { color: inherit; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(250, 246, 241, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.site-header.scrolled { border-bottom-color: var(--line); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  white-space: nowrap;
}

.brand em {
  font-style: normal;
  color: var(--pink);
}

.brand-mark { width: 32px; height: 32px; flex: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  border-radius: 12px;
}

.nav-toggle svg { width: 24px; height: 24px; }

.nav-content { display: none; }

.nav-content.open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 12px 20px 20px;
  gap: 4px;
}

.nav-content a {
  display: block;
  padding: 10px 4px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

.nav-content a:hover { color: var(--pink); }

.call-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px !important;
  background: var(--pink);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 6px 16px -6px rgba(255, 101, 132, 0.55);
  transition: transform 0.2s;
}

.call-pill:hover { transform: translateY(-1px); color: #fff !important; }

.call-pill svg { width: 18px; height: 18px; fill: currentColor; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-content {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    background: none;
    border: 0;
    padding: 0;
  }
  .nav-content a { padding: 8px 2px; }
  .call-pill { margin-left: 8px; }
}

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

.hero {
  padding: 128px 0 48px;
  background:
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(0, 176, 255, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(255, 184, 184, 0.28), transparent 60%),
    var(--cream);
  overflow: hidden;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.hero-copy { max-width: 580px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  box-shadow: 0 2px 8px rgba(42, 39, 64, 0.06);
}

.eyebrow .heart { width: 16px; height: 16px; }

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-sub {
  margin: 0 0 28px;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

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

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(255, 101, 132, 0.6);
}

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: 0 4px 12px -6px rgba(42, 39, 64, 0.15);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.hero-facts span {
  display: inline-block;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 3px solid var(--sky);
}

.hero-art { width: 100%; max-width: 620px; }

.hero-art img { width: 100%; height: auto; display: block; }

@media (min-width: 900px) {
  .hero-grid { flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; }
  .hero-copy { width: 52%; }
  .hero-art { width: 48%; }
}

/* ---------- Sections ---------- */

.section { padding: 80px 0; }

.section-tint {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.kicker {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink);
}

.kicker.light { color: var(--coral); }

.section-head h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-sub { margin: 12px 0 0; color: var(--ink-soft); }

/* ---------- Plans ---------- */

.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 56px;
}

.plan {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(42, 39, 64, 0.05);
}

.plan-name {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.plan-price {
  font-family: 'Sora', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  margin: 8px 0 20px;
}

.plan-price sup { font-size: 1.2rem; font-weight: 700; vertical-align: super; margin-right: 2px; }

.plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.plan ul li { padding-left: 26px; position: relative; }

.plan ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--sky);
  opacity: 0.85;
}

.plan-feature {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
  box-shadow: 0 18px 40px -14px rgba(42, 39, 64, 0.5);
}

.plan-feature .plan-price { color: #fff; }

.plan-feature ul li { color: rgba(250, 246, 241, 0.85); }

.plan-feature .plan ul li::before { background: var(--pink); }

.badge {
  position: absolute;
  top: -14px; right: 24px;
  margin: 0;
  padding: 6px 14px;
  background: var(--pink);
  color: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (min-width: 760px) {
  .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .plan-feature { transform: translateY(-14px); }
}

/* ---------- Detail rows ---------- */

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.detail-col {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.detail-col img {
  width: 64%;
  max-width: 340px;
  height: auto;
  display: block;
  margin: 0 auto 24px;
}

.detail-col h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  font-weight: 700;
}

.detail-col p { color: var(--ink-soft); margin: 0 0 16px; }

.fineprint {
  font-size: 0.88rem;
  background: var(--cream);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}

.phone-link {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--pink);
  text-decoration: none;
}

.phone-link:hover { text-decoration: underline; }

/* course table */

.course-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.course-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 8px 10px;
  border-bottom: 2px solid var(--line);
}

.course-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-soft);
}

.course-table td strong { display: block; color: var(--ink); }

.course-table td span { display: block; font-size: 0.82rem; margin-top: 2px; }

.course-table td:last-child { white-space: nowrap; }

@media (min-width: 900px) {
  .detail-grid { grid-template-columns: 1.2fr 1fr; }
}

/* ---------- Duo cards ---------- */

.duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.duo-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.duo-card img {
  width: 56%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto 24px;
}

.duo-card h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  font-weight: 700;
}

.duo-card p { margin: 0 0 16px; color: var(--ink-soft); }

.duo-card p:last-child { margin-bottom: 0; }

.link {
  color: var(--pink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--coral);
}

.link:hover { border-bottom-color: var(--pink); }

@media (min-width: 760px) {
  .duo { grid-template-columns: 1fr 1fr; }
}

/* ---------- Help ---------- */

.help-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.help-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 10px rgba(42, 39, 64, 0.04);
}

.help-card .label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
}

.help-card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.help-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

@media (min-width: 700px) {
  .help-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .help-grid { grid-template-columns: repeat(3, 1fr); }
  .help-card.help-wide { grid-column: span 2; }
}

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

.contact {
  padding: 96px 0;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 90% at 50% -20%, rgba(0, 176, 255, 0.35), transparent 65%),
    var(--ink);
}

.contact h2 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
}

.contact p { color: rgba(250, 246, 241, 0.75); }

.mega-phone {
  display: inline-block;
  margin: 12px 0 20px;
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 7vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  border-bottom: 4px solid var(--pink);
}

.mega-phone:hover { color: var(--coral); }

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

footer {
  background: var(--ink);
  border-top: 1px solid rgba(250, 246, 241, 0.15);
  color: rgba(250, 246, 241, 0.7);
}

.foot-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 32px 20px;
  text-align: center;
}

.foot-brand { color: #fff; font-size: 1.1rem; }

.foot-row p { margin: 0; font-size: 0.9rem; }

/* ---------- Heartbeat ---------- */

.heartbeat {
  animation: heartbeat 1.5s ease-in-out infinite both;
  transform-origin: center center;
}

@keyframes heartbeat {
  from { transform: scale(1); animation-timing-function: ease-out; }
  10%  { transform: scale(0.91); animation-timing-function: ease-in; }
  17%  { transform: scale(0.98); animation-timing-function: ease-out; }
  33%  { transform: scale(0.87); animation-timing-function: ease-in; }
  45%  { transform: scale(1); animation-timing-function: ease-out; }
}
