*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #1a1a2e;
  --ink-soft: #4a4a6a;
  --cream: #faf8f3;
  --cream-dark: #f0ede4;
  --gold: #c8963e;
  --gold-light: #f0d9a8;
  --teal: #2a6b6b;
  --teal-light: #e8f4f4;
  --white: #ffffff;
  --serif: 'Lora', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --radius: 4px;
  --section-pad: 5rem 2rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.7;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2.5rem;
  background: rgba(250,248,243,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(200,150,62,0.15);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}

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

.nav-links a {
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-cta {
  background: var(--teal) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--radius) !important;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: #1f5050 !important; color: var(--white) !important; }

/* Hamburger toggle – hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
  flex-shrink: 0;
}

/* ── PAGE HEADER ── */
.page-header {
  padding: 9rem 2rem 4rem;
  text-align: center;
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
}

.page-header .section-label { margin-bottom: 0.5rem; }

.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ink);
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 auto;
  font-weight: 300;
}

/* ── SECTIONS ── */
section { padding: var(--section-pad); }

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 580px;
  font-weight: 300;
  margin-bottom: 3rem;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--teal);
  color: var(--white);
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
}

.btn-primary:hover { background: #1f5050; transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--teal);
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1.5px solid var(--teal);
  transition: all 0.2s;
  display: inline-block;
}

.btn-secondary:hover { background: var(--teal-light); }

/* ── SUBJECTS GRID ── */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.subject-card {
  background: var(--cream);
  border-radius: 6px;
  padding: 1.75rem;
  border: 1px solid var(--cream-dark);
  transition: border-color 0.2s, transform 0.2s;
}

.subject-card:hover { border-color: var(--gold-light); transform: translateY(-2px); }

.subject-icon { font-size: 1.6rem; margin-bottom: 1rem; display: block; }

.subject-card h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.subject-card p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; }

/* ── PRICING ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 6px;
  padding: 2rem;
  position: relative;
}

.pricing-card.featured { border-color: var(--teal); border-width: 2px; }

.featured-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-card h3 { font-family: var(--serif); font-size: 1.1rem; margin-bottom: 0.5rem; }

.pricing-price {
  font-size: 2.2rem;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--gold);
  margin: 1rem 0 0.25rem;
}

.pricing-price span { font-size: 1rem; color: var(--ink-soft); font-family: var(--sans); font-weight: 300; }

.pricing-desc { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 1.5rem; }

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.pricing-features li { font-size: 0.9rem; color: var(--ink-soft); display: flex; gap: 0.6rem; }
.pricing-features li::before { content: '✓'; color: var(--teal); font-weight: 500; flex-shrink: 0; }

/* ── CONTACT FORM (shared) ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--teal); }

.contact-form textarea { resize: vertical; min-height: 120px; }

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.3rem;
  display: block;
}

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

/* ── FOOTER ── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
}

footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
footer a:hover { color: var(--gold-light); }
footer nav { position: static; background: none; border: none; justify-content: center; gap: 2rem; padding: 0 0 1rem; flex-wrap: wrap; }
footer nav a { font-size: 0.85rem; color: rgba(255,255,255,0.55); }
footer nav a:hover { color: var(--gold-light); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav {
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
    align-items: center;
  }
  .nav-logo {
    font-size: 0.9rem;
    white-space: nowrap;
    flex: 1;
  }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 0.5rem 0 0.25rem;
    border-top: 1px solid var(--cream-dark);
    margin-top: 0.75rem;
  }
  nav.nav-open .nav-links { display: flex; }
  .nav-links li { display: flex !important; }
  .nav-links a {
    padding: 0.75rem 0.25rem;
    display: block;
    width: 100%;
    font-size: 1rem;
  }
  .nav-cta {
    white-space: nowrap;
    display: inline-block !important;
    margin-top: 0.25rem;
    width: auto !important;
  }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 3rem 1.5rem; }
  .page-header { padding: 7rem 1.5rem 3rem; }
}
