/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-900: #0f172a;
  --blue-800: #1e293b;
  --blue-700: #334155;
  --blue-600: #1e40af;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --teal-500: #0d9488;
  --teal-400: #14b8a6;
  --amber-400: #fbbf24;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-600: #475569;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.08);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--blue-900);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
  color: white;
  border-radius: 10px;
  font-size: 1.25rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--blue-700);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--blue-500);
}

.nav-cta {
  background: var(--blue-600) !important;
  color: white !important;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--blue-500) !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue-800);
  border-radius: 2px;
  transition: 0.2s;
}

/* ===== Hero ===== */
.hero {
  padding: 4.5rem 0 5rem;
  background: linear-gradient(160deg, #f0f7ff 0%, #f0fdfa 45%, #ffffff 100%);
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-500);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--blue-900);
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--blue-600);
  color: white;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: var(--blue-500);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--blue-700);
  border: 1.5px solid var(--gray-300);
}

.btn-secondary:hover {
  border-color: var(--blue-400);
  color: var(--blue-600);
}

.full-width {
  width: 100%;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-900);
}

.stat span {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* Hero visual card */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  width: 100%;
  max-width: 340px;
  text-align: center;
  position: relative;
}

.formula {
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--blue-600);
  margin-bottom: 0.65rem;
  opacity: 0.9;
}

.formula.secondary {
  color: var(--teal-500);
  font-size: 1.2rem;
}

.formula.tertiary {
  color: var(--blue-700);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}

.hero-card-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--blue-800);
  line-height: 1.5;
}

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--gray-600);
  font-size: 1.05rem;
}

.section-header.light .eyebrow,
.section-header.light h2,
.section-header.light .section-sub {
  color: white;
}

.section-header.light .eyebrow {
  color: var(--teal-400);
}

/* Meet the tutor / About Me */
.tutor {
  background: linear-gradient(160deg, #f8fafc 0%, var(--white) 55%);
}

.tutor-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.75rem;
  align-items: center;
}

.tutor-photo-wrap {
  display: flex;
  justify-content: center;
}

.tutor-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-lg);
  border: 4px solid white;
}

.tutor-text .eyebrow {
  margin-bottom: 0.5rem;
}

.tutor-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.tutor-text p {
  color: var(--gray-600);
  font-size: 1.02rem;
  margin-bottom: 0.9rem;
}

.tutor-credentials {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.tutor-credentials li {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--blue-800);
}

.tutor-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  color: var(--blue-800);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}

/* About */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.about-card {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.about-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.about-card .icon {
  font-size: 1.75rem;
  margin-bottom: 0.85rem;
}

.about-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.about-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
}

/* Subjects */
.subjects {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  max-width: 800px;
  margin: 0 auto;
}

.subject-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.subject-card.accent {
  border-color: var(--teal-400);
  background: linear-gradient(160deg, #f0fdfa 0%, white 60%);
}

.subject-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1.15rem;
  color: var(--blue-800);
}

.subject-card.accent h3 {
  color: var(--teal-500);
}

.subject-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.subject-card li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.98rem;
  color: var(--blue-800);
}

.subject-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal-500);
  font-weight: 700;
}

.subjects-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--gray-500);
}

/* How it works */
.how {
  background: white;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.75rem;
}

.step {
  text-align: center;
  padding: 1.25rem 1rem;
}

.step-num {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
  color: white;
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.95rem;
  color: var(--gray-600);
}

/* Booking */
.book {
  background: linear-gradient(160deg, var(--blue-800) 0%, var(--blue-900) 100%);
  color: white;
}

.booking-box {
  max-width: 640px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  color: var(--blue-900);
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--gray-500);
  font-size: 0.9rem;
}

.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gray-300);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-800);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

.hidden {
  display: none;
}

/* CTA band */
.cta-band {
  padding: 3.5rem 0;
  background: linear-gradient(135deg, var(--teal-500), var(--blue-600));
  text-align: center;
  color: white;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.cta-band p {
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.cta-band .btn-primary {
  background: white;
  color: var(--blue-700);
  box-shadow: none;
}

.cta-band .btn-primary:hover {
  background: var(--gray-100);
  transform: translateY(-1px);
}

/* Footer */
.footer {
  background: var(--blue-900);
  color: var(--gray-300);
  padding-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-brand .logo-icon {
  margin-bottom: 0.35rem;
}

.footer-brand strong {
  color: white;
  font-size: 1.1rem;
}

.footer-brand p {
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.footer-bottom {
  border-top: 1px solid var(--blue-800);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .tutor-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.75rem;
  }

  .tutor-badges {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-card {
    max-width: 300px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-links {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }
}

@media (max-width: 680px) {
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1.25rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    gap: 1rem;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3rem 0 3.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .booking-box {
    padding: 1.5rem 1.15rem;
  }

  .hero-stats {
    gap: 1.25rem;
  }
}
