/* ============================================
   SHEN TAN TUTORING — V2
   Inspired by: Apple · Notion · Dr. Du Education
   ============================================ */

/* TOKENS */
:root {
  --navy:         #0a1628;
  --navy-mid:     #0f2040;
  --blue:         #2563eb;
  --blue-hover:   #1d4ed8;
  --white:        #ffffff;
  --off-white:    #f8fafc;
  --grey-100:     #f3f4f6;
  --grey-200:     #e5e7eb;
  --grey-300:     #d1d5db;
  --grey-400:     #9ca3af;
  --grey-500:     #6b7280;
  --grey-600:     #4b5563;
  --grey-700:     #374151;
  --grey-900:     #111827;
  --text:         #111827;
  --text-muted:   #6b7280;

  --section-pad:  120px;
  --container:    1140px;
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;

  --shadow-md:    0 4px 20px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg:    0 20px 60px rgba(0,0,0,0.12), 0 6px 16px rgba(0,0,0,0.06);
  --shadow-hover: 0 28px 80px rgba(0,0,0,0.18), 0 8px 20px rgba(0,0,0,0.08);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* LAYOUT */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* LABELS */
.section-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.section-label.light { color: rgba(255,255,255,0.4); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.section-sub { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}
.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.45);
}
.btn-full { width: 100%; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--grey-600);
  font-size: 0.9rem;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--grey-300);
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--grey-900); border-color: var(--grey-500); }

/* ── NAV ─────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 14px 0;
  transition: background 0.35s, padding 0.35s, box-shadow 0.35s;
}
#nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--grey-900);
  transition: color 0.35s;
}
#nav.scrolled .nav-logo { color: var(--grey-900); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-sep {
  width: 1px;
  height: 13px;
  background: var(--grey-200);
  border-radius: 1px;
  flex-shrink: 0;
}
#nav.scrolled .nav-sep { background: var(--grey-200); }
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--grey-600);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--grey-900); }
#nav.scrolled .nav-links a { color: var(--grey-600); }
#nav.scrolled .nav-links a:hover { color: var(--grey-900); }

.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 9px 22px !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 10px rgba(37,99,235,0.3);
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover { background: var(--blue-hover) !important; transform: translateY(-1px); }

/* Hamburger — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
#nav.scrolled .nav-hamburger span { background: var(--grey-600); }
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile-only "Get in Touch" inside hamburger menu — hidden on desktop */
.nav-mobile-cta { display: none; }

/* ── HERO ─────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 32px 80px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(37,99,235,0.12) 0%, rgba(219,234,254,0.30) 40%, transparent 65%),
    var(--off-white);
}

/* Subtle dot grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(37,99,235,0.20) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Glow orb */
.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.05) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; max-width: 820px; }

.hero-avatar {
  position: relative;
  width: 167px;
  height: 167px;
  border-radius: 50%;
  background: linear-gradient(145deg, #dbeafe, #eff6ff);
  border: 2.5px solid #93c5fd;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.03em;
  overflow: hidden;
  box-shadow: 0 0 0 8px rgba(37,99,235,0.07), 0 12px 36px rgba(0,0,0,0.1);
}
.hero-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--grey-900);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  color: var(--grey-500);
  max-width: 620px;
  margin: 0 auto 44px;
  line-height: 1.8;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--grey-600);
  background: rgba(37,99,235,0.06);
  border: 1px solid rgba(37,99,235,0.15);
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

/* ── CREDENTIALS ────────────────────────────────── */
.creds {
  padding: 52px 0;
  border-bottom: 1px solid var(--grey-200);
}

.creds-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.cred {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 40px;
}
.cred strong {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--grey-900);
  line-height: 1.1;
}
.cred span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 5px;
}

.cred-divider {
  width: 1px;
  height: 40px;
  background: var(--grey-200);
  flex-shrink: 0;
}

/* ── ABOUT ──────────────────────────────────────── */
.about {
  padding: var(--section-pad) 0;
  background: var(--off-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 88px;
  align-items: center;
}

.about-img-wrap { position: relative; aspect-ratio: 4/5; }

.about-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1;
  transform: scale(1.05); /* desktop: zoom the photo in ~5% (reset on mobile/tablet) */
}

.about-img-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--grey-300);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--grey-400);
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  letter-spacing: 0.02em;
}
.about-img-placeholder::before {
  content: '🖼';
  font-size: 2rem;
  opacity: 0.4;
}

.about-img-badge {
  position: absolute;
  z-index: 2;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 22px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.about-img-badge strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--grey-900);
}
.about-img-badge span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.about-body h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 28px;
}
.about-body p {
  color: var(--grey-600);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 18px;
}
.about-body p:last-child { margin-bottom: 0; }
.about-body strong { color: var(--grey-900); font-weight: 600; }
.about-body em { font-style: italic; color: var(--grey-700); }

/* ── ABOUT RESULTS PANEL ───────────────────────── */
.about-results {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.about-result {
  flex: 1;
  min-width: 130px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.about-result strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--blue);
  line-height: 1.1;
  margin-bottom: 4px;
}
.about-result span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ── APPROACH CARDS (used by Flexibility) ──────── */
.approach-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 26px 28px;
  border: 1.5px solid var(--grey-200);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.approach-card:hover {
  transform: translateY(-5px);
  border-color: #bfdbfe;
  box-shadow: 0 12px 36px rgba(37,99,235,0.10);
}

.approach-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  font-size: 1.15rem;
  margin-bottom: 18px;
}

.approach-card h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--grey-900);
}
.approach-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── SUBJECTS ──────────────────────────────────── */
.subjects { padding: var(--section-pad) 0; background: var(--off-white); }

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
/* Two rows of three equal cards */
.subject-card:nth-child(3n+1) { grid-column: 1 / 3; }
.subject-card:nth-child(3n+2) { grid-column: 3 / 5; }
.subject-card:nth-child(3n)   { grid-column: 5 / 7; }

.subject-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 28px 32px;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(0,0,0,0.04);
}
.subject-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-hover); }

.subject-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--grey-100);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 20px;
  letter-spacing: 0;
}

.subject-card h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--grey-900);
}

.subject-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.subject-card p strong {
  color: var(--grey-700);
  font-weight: 600;
}

/* ── PROGRAMS (PORTFOLIO) ──────────────────────── */
.programs {
  padding: var(--section-pad) 0;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
}

.programs-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}

.programs-text h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 24px;
}
.programs-text > p {
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.program-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 32px 28px;
  box-shadow: var(--shadow-lg);
}

.program-card-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--grey-200);
  margin-bottom: 8px;
}
.program-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--grey-900);
}
.program-card-sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.program-blocks {
  list-style: none;
  counter-reset: program-block;
}
.program-blocks li {
  counter-increment: program-block;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--grey-100);
  font-size: 0.88rem;
}
.program-blocks li:last-child { border-bottom: none; }
.program-blocks li::before {
  content: counter(program-block);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: #eff6ff;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--blue);
}
.program-block-name {
  font-weight: 600;
  color: var(--grey-700);
}
.program-block-weeks {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.program-card-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--grey-200);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
}
.program-card-foot strong {
  font-weight: 800;
  color: var(--blue);
}

.program-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.program-tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--blue);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 4px 11px;
  border-radius: 999px;
}

/* ── FLEXIBILITY ───────────────────────────────── */
.flexibility { padding: var(--section-pad) 0; }

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

/* ── PROCESS ───────────────────────────────────── */
.process {
  padding: var(--section-pad) 0;
  background: var(--off-white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-step {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 26px 28px;
  border: 1.5px solid var(--grey-200);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.process-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), #60a5fa);
}
.process-step:hover {
  transform: translateY(-5px);
  border-color: #bfdbfe;
  box-shadow: 0 12px 36px rgba(37,99,235,0.10);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0;
  margin-bottom: 18px;
}

.process-step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--grey-900);
}
.process-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── PRICING ───────────────────────────────────── */
.pricing {
  padding: var(--section-pad) 0;
  background: linear-gradient(135deg, #eff6ff 0%, var(--off-white) 100%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 880px;
  margin: 0 auto 48px;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  padding: 36px 24px 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.price-level {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.price-display {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  margin: 0 0 12px;
}
.price-currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--grey-400);
  margin-top: 10px;
}
.price-amount {
  font-size: 3.8rem;
  font-weight: 900;
  color: var(--grey-900);
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-per {
  font-size: 0.95rem;
  color: var(--grey-400);
  align-self: flex-end;
  margin-bottom: 8px;
}

.price-duration {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.price-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  max-width: 340px;
  margin: 0 auto 36px;
}
.price-features li {
  font-size: 0.9rem;
  color: var(--grey-600);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}
.price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.85rem;
}

.pricing-cta { text-align: center; }

/* ── WHERE I TUTOR (MAP) ─────────────────────── */
.tutor-area {
  padding: var(--section-pad) 0;
  background: var(--off-white);
}

.tutor-area-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 72px;
  align-items: center;
}

.tutor-area-text h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 20px;
}
.tutor-area-text > p {
  color: var(--grey-600);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.area-tag {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--blue);
  background: #eff6ff;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
}

#tutor-map {
  height: 420px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--grey-200);
}

/* ── FAQ ───────────────────────────────────────── */
.faq {
  padding: var(--section-pad) 0;
  background: var(--off-white);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item[open] {
  border-color: #bfdbfe;
  box-shadow: 0 8px 24px rgba(37,99,235,0.08);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  padding: 18px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--grey-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--blue);
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-item p {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--grey-600);
  line-height: 1.7;
}

/* ── CONTACT ───────────────────────────────────── */
.contact { padding: var(--section-pad) 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 88px;
  align-items: start;
}

.contact-left h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.contact-left > p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 40px;
  line-height: 1.7;
}

.contact-details { display: flex; flex-direction: column; gap: 18px; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.92rem;
  color: var(--grey-600);
  font-weight: 500;
}
.detail-icon { font-size: 1rem; flex-shrink: 0; }

/* Form */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { margin-bottom: 16px; }

label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--grey-500);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--grey-100);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%239ca3af' d='M8 10.5L3 5.5h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 40px;
  cursor: pointer;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
::placeholder { color: var(--grey-400); }
textarea { resize: vertical; }

/* ── FOOTER ─────────────────────────────────────── */
footer {
  background: var(--grey-900);
  padding: 52px 0;
}
.footer-inner { text-align: center; }
.footer-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.footer-sub {
  font-size: 0.82rem;
  color: #6b7280;
  margin-bottom: 6px;
}
.footer-note { font-size: 0.75rem; color: #4b5563; }


/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1.2fr; gap: 56px; }
  .about-img-placeholder { max-width: 100%; }
}

@media (max-width: 900px) {
  :root { --section-pad: 80px; }

  /* Nav: always white on mobile, hamburger-driven */
  #nav {
    background: rgba(255,255,255,0.97) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 10px 0 !important;
    box-shadow: 0 1px 0 rgba(0,0,0,0.08) !important;
  }
  #nav .nav-logo { color: var(--grey-900) !important; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-hamburger span { background: var(--grey-600) !important; }
  .nav-sep { display: none !important; }

  /* Slide-down mobile menu */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--grey-200);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    flex-direction: column;
    gap: 0;
    padding: 6px 0 10px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    color: var(--grey-700) !important;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 13px 24px;
  }
  .nav-links a:hover { color: var(--grey-900) !important; background: var(--off-white); }
  .nav-mobile-cta { display: block; border-top: 1px solid var(--grey-200); margin-top: 4px; padding-top: 4px; }
  .nav-mobile-cta a { color: var(--blue) !important; font-weight: 700 !important; }

  /* Layout */
  .subjects-grid      { grid-template-columns: repeat(2, 1fr); }
  .subject-card:nth-child(n) { grid-column: auto; }
  .programs-grid      { grid-template-columns: 1fr; gap: 48px; }
  .flexibility-grid   { grid-template-columns: 1fr; }
  .process-grid       { grid-template-columns: repeat(2, 1fr); }
  .about-grid         { grid-template-columns: 1fr; gap: 48px; }
  .about-img-wrap     { aspect-ratio: 3/2; max-width: 100%; }
  .about-img          { transform: none; } /* zoom is desktop-only */
  .about-img-badge    { right: 0; }
  .tutor-area-grid    { grid-template-columns: 1fr; gap: 40px; }
  #tutor-map          { height: 320px; }
  .pricing-grid       { gap: 14px; }
  .price-amount       { font-size: 3.2rem; }
  .contact-grid       { grid-template-columns: 1fr; gap: 48px; }
  .cred               { padding: 12px 28px; }
}

/* ── MOBILE (≤600px) ─────────────────────────────
   More desktop-like on phones: side-by-side elements,
   smaller type, more compact, less screen-filling. */
@media (max-width: 600px) {
  :root { --section-pad: 52px; }
  .container { padding: 0 18px; }

  /* Hero: fills the screen so the About section sits below the fold */
  .hero { min-height: 100vh; min-height: 100svh; padding: 92px 22px 56px; }
  .hero-avatar { width: 119px; height: 119px; margin-bottom: 20px; }
  .hero-eyebrow { font-size: 0.62rem; margin-bottom: 18px; }
  .hero-title { font-size: 2.1rem; margin-bottom: 16px; }
  .hero-sub { font-size: 0.88rem; line-height: 1.65; margin-bottom: 30px; }
  .hero-chips { margin-top: 22px; }
  .hero-actions { flex-direction: column; align-items: center; }

  /* Section headings: smaller + centered */
  .section-head { margin-bottom: 34px; }
  .section-head h2 { font-size: 1.55rem; }
  .section-sub { font-size: 0.88rem; }

  /* Credentials strip: hidden on mobile (still shown on desktop) */
  .creds { display: none; }

  /* About: smaller type, centered */
  .about-body { text-align: center; }
  .about-body h2 { font-size: 1.5rem; margin-bottom: 18px; }
  .about-body p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 14px; }
  /* Badge: smaller, straddling the top-right edge (¾ inside, ¼ above the image) */
  .about-img-badge { left: auto; right: 10px; top: 0; bottom: auto; transform: translateY(-25%); padding: 12px 14px; }
  .about-img-badge strong { font-size: 0.7rem; }
  .about-img-badge span { font-size: 0.6rem; }
  /* 96 / 96 / 99.25 stay in a row of three */
  .about-results { gap: 8px; margin-top: 26px; justify-content: center; }
  .about-result { flex: 1; min-width: 0; padding: 12px 8px; text-align: center; }
  .about-result strong { font-size: 1.3rem; }
  .about-result span { font-size: 0.62rem; line-height: 1.35; }

  /* Subjects: 2 across, blurbs hidden (title + bold tagline only) */
  .subjects-grid { grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; }
  .subject-card { padding: 20px 15px 18px; }
  .subject-num { width: 34px; height: 34px; margin-bottom: 12px; }
  .subject-card h3 { font-size: 0.9rem; margin-bottom: 0; }
  .subject-card p { font-size: 0.78rem; line-height: 1.5; margin-top: 8px; }
  .subject-card p strong { color: var(--blue); }
  .subject-blurb { display: none; }

  /* Flexibility cards: horizontal (icon left, text right) */
  .flexibility-grid { grid-template-columns: 1fr; gap: 12px; }
  .approach-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    column-gap: 14px;
    row-gap: 2px;
    align-items: center;
    padding: 18px;
  }
  .approach-icon { grid-row: 1 / span 2; align-self: center; margin-bottom: 0; }
  .approach-card h3 { font-size: 0.95rem; margin-bottom: 2px; align-self: end; }
  .approach-card p { grid-column: 2; font-size: 0.8rem; line-height: 1.55; }

  /* Process steps: horizontal (number left, text right) */
  .process-grid { grid-template-columns: 1fr; gap: 12px; }
  .process-step {
    display: grid;
    grid-template-columns: 36px 1fr;
    column-gap: 14px;
    row-gap: 2px;
    align-items: center;
    padding: 18px;
  }
  .step-num { grid-row: 1 / span 2; align-self: center; margin-bottom: 0; }
  .process-step h3 { font-size: 0.95rem; margin-bottom: 2px; align-self: end; }
  .process-step p { grid-column: 2; font-size: 0.8rem; line-height: 1.55; }

  /* Programs */
  .programs-text h2 { font-size: 1.5rem; }
  .programs-text > p { font-size: 0.88rem; line-height: 1.7; }
  .program-card { padding: 22px 18px 20px; }

  /* Pricing: 3 side-by-side, blurb removed for a cleaner card */
  .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 100%; }
  .price-card { padding: 24px 8px 22px; border-radius: 16px; }
  .price-level { font-size: 0.6rem; letter-spacing: 0.06em; margin-bottom: 12px; }
  .price-display { margin-bottom: 12px; }
  .price-currency { font-size: 1rem; margin-top: 6px; }
  .price-amount { font-size: 2.4rem; }
  .price-per { font-size: 0.7rem; margin-bottom: 6px; }
  .price-duration { font-size: 0.6rem; padding: 4px 8px; margin-bottom: 0; }
  .price-note { display: none; }

  /* Tutor area / map */
  #tutor-map { height: 260px; }
  .tutor-area-text h2 { font-size: 1.5rem; }
  .tutor-area-text > p { font-size: 0.88rem; }

  /* Contact */
  .contact-left h2 { font-size: 1.5rem; }
  .contact-left > p { font-size: 0.9rem; margin-bottom: 28px; }
  .form-row { grid-template-columns: 1fr; }

  /* FAQ */
  .faq-item summary { font-size: 0.88rem; padding: 15px 18px; }
  .faq-item p { font-size: 0.84rem; padding: 0 18px 16px; }
}

/* Extra squeeze for very narrow phones */
@media (max-width: 380px) {
  .price-amount { font-size: 2.1rem; }
}

/* ── THANK-YOU PAGE ──────────────────────────────── */
.ty-page-nav {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.ty-page-nav .nav-logo  { color: var(--grey-900); }
.ty-page-nav .nav-sep   { background: var(--grey-200); }
.ty-page-nav .nav-links a { color: var(--grey-600); }
.ty-page-nav .nav-links a:hover { color: var(--grey-900); }

html.ty-page, html.ty-page body { height: 100%; }
html.ty-page body { display: flex; flex-direction: column; }

.ty-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 32px 80px;
}

.ty-inner { max-width: 520px; text-align: center; }

.ty-check {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #eff6ff;
  border: 2px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  box-shadow: 0 0 0 10px rgba(37,99,235,0.06);
  animation: popIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.ty-check svg {
  width: 36px;
  height: 36px;
  stroke: var(--blue);
}

.ty-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--grey-900);
  line-height: 1.1;
  margin-bottom: 16px;
  animation: fadeUp 0.45s 0.1s ease-out both;
}

.ty-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 44px;
  animation: fadeUp 0.45s 0.18s ease-out both;
}

.ty-next {
  background: var(--off-white);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  text-align: left;
  margin-bottom: 36px;
  animation: fadeUp 0.45s 0.26s ease-out both;
}
.ty-next-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}

.ty-steps { display: flex; flex-direction: column; gap: 14px; }
.ty-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--grey-600);
  line-height: 1.55;
}
.ty-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.ty-back { animation: fadeUp 0.45s 0.34s ease-out both; }

@keyframes popIn {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes fadeUp {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
