/* ============================================
   Chemistry Distilled — Style Sheet
   Earthy organic academic palette
   ============================================ */

:root {
  /* Earthy Organic Palette */
  --cream:       #FAF6F0;
  --stone:       #EDE8E0;
  --sand:        #D8D0C4;
  --bark:        #2C2418;
  --walnut:      #4A3C2C;
  --sage:        #5B7553;
  --sage-light:  #7A9A70;
  --sage-dark:   #3E5438;
  --terracotta:  #B86B42;
  --terra-light: #D4895E;
  --copper:      #A0522D;
  --gold:        #B8923A;
  --gold-light:  #D4B06A;
  --moss:        #6B7F5E;
  --parchment:   #F5F0E8;

  /* Typography */
  --font-serif:  'Crimson Pro', Georgia, 'Times New Roman', serif;
  --font-sans:   'Source Sans 3', 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --section-pad: 100px;
  --container-width: 1200px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--bark);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--sage);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
a:hover { color: var(--terracotta); }

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

.section {
  padding: var(--section-pad) 0;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--bark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--walnut);
  max-width: 640px;
  margin-bottom: 48px;
}

.hidden { display: none !important; }

.page-top-spacer {
  padding-top: 100px;
}

/* Active nav link */
.nav-active {
  color: var(--terracotta) !important;
}
.nav-active::after {
  width: 100% !important;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
}

.btn-primary {
  background: var(--sage);
  color: #fff;
}
.btn-primary:hover {
  background: var(--sage-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(91, 117, 83, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--sage);
  border: 2px solid var(--sage);
}
.btn-secondary:hover {
  background: var(--sage);
  color: #fff;
}

.btn-block {
  width: 100%;
  text-align: center;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s var(--ease);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(250, 246, 240, 0.95);
  backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 1px 20px rgba(44, 36, 24, 0.08);
}

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

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.4s var(--ease);
}

.navbar.scrolled .nav-logo {
  color: var(--bark);
}

.logo-icon {
  font-size: 1.5rem;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s var(--ease);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--terracotta);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

.navbar.scrolled .nav-links a {
  color: var(--walnut);
}
.navbar.scrolled .nav-links a:hover {
  color: var(--sage);
}

.nav-cta {
  background: var(--terracotta) !important;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 5px;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--copper) !important;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s var(--ease);
}
.navbar.scrolled .nav-toggle span {
  background: var(--bark);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1a2e1a 0%, #2a3f28 30%, #1e3028 60%, #162418 100%);
  overflow: hidden;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 100vh;
}

.hero-molecule {
  flex: 0 0 28%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60vh;
  max-height: 520px;
}

.hero-molecule canvas {
  width: 100%;
  height: 100%;
}

.molecule-label {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 2px;
  margin-top: 8px;
}

.hero-content {
  flex: 0 1 44%;
  text-align: center;
  padding: 0 32px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 300;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-light);
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--terra-light);
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .btn-secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

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

.about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: start;
}

.about-image-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(44, 36, 24, 0.12);
  position: relative;
}

.about-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 12px;
  border: 1px solid rgba(44, 36, 24, 0.08);
}

.about-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.qualifications {
  margin-top: 32px;
  background: var(--stone);
  border-radius: 12px;
  padding: 28px;
}

.qualifications h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--bark);
}

.qualifications ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qualifications li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.qual-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.qualifications li div {
  display: flex;
  flex-direction: column;
}

.qualifications li strong {
  font-size: 0.95rem;
  color: var(--bark);
}

.qualifications li span {
  font-size: 0.85rem;
  color: var(--walnut);
}

.qual-detail {
  font-style: italic;
  font-size: 0.82rem !important;
  color: var(--moss) !important;
}

.about-text-col p {
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: var(--walnut);
}

.experience-badges {
  display: flex;
  gap: 24px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--sand);
}

.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
}

.badge-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--sage);
  line-height: 1;
}

.badge-label {
  font-size: 0.8rem;
  color: var(--walnut);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   Services / Pricing
   ============================================ */
.services {
  background: var(--stone);
}

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

.pricing-card {
  background: var(--cream);
  border-radius: 12px;
  padding: 32px 24px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(44, 36, 24, 0.06);
  transition: all 0.3s var(--ease);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(44, 36, 24, 0.1);
}

.pricing-card.popular {
  border: 2px solid var(--sage);
  box-shadow: 0 8px 32px rgba(91, 117, 83, 0.15);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sage);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-header {
  text-align: center;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--sand);
}

.pricing-header h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--bark);
  margin-bottom: 12px;
}

.pricing-amount {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--sage);
}

.pricing-per {
  font-size: 0.85rem;
  color: var(--terracotta);
  font-weight: 500;
}

.pricing-body {
  flex: 1;
}

.pricing-body p {
  font-size: 0.92rem;
  color: var(--walnut);
  margin-bottom: 16px;
}

.pricing-body ul {
  list-style: none;
  margin-bottom: 24px;
}

.pricing-body li {
  font-size: 0.88rem;
  color: var(--walnut);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.pricing-body li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 700;
}

/* ============================================
   Oxbridge
   ============================================ */
.oxbridge {
  background: var(--cream);
  position: relative;
}

.oxbridge::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(91, 117, 83, 0.03) 100%);
  pointer-events: none;
}

.oxbridge-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}

.oxbridge-intro {
  font-size: 1.15rem;
  color: var(--walnut);
  margin-bottom: 16px;
  line-height: 1.8;
}

.oxbridge-text > p {
  color: var(--walnut);
  margin-bottom: 24px;
}

.oxbridge-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.oxbridge-features li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  color: var(--terracotta);
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 6px;
}

.oxbridge-features strong {
  display: block;
  font-size: 1rem;
  color: var(--bark);
  margin-bottom: 2px;
}

.oxbridge-features p {
  font-size: 0.92rem;
  color: var(--walnut);
  margin: 0;
}

.oxbridge-price-card {
  background: linear-gradient(160deg, #2a3f28 0%, #1e3028 50%, #1a2818 100%);
  color: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  position: sticky;
  top: 100px;
  box-shadow: 0 24px 64px rgba(44, 36, 24, 0.2);
}

.oxbridge-crest {
  font-size: 2.5rem;
  margin-bottom: 16px;
  opacity: 0.7;
}

.oxbridge-price-card h4 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--gold-light);
}

.oxbridge-price {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.oxbridge-sessions {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  display: block;
  margin-bottom: 20px;
}

.oxbridge-price-card > p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
  line-height: 1.6;
}

.oxbridge-price-card .btn-primary {
  background: var(--terracotta);
}
.oxbridge-price-card .btn-primary:hover {
  background: var(--terra-light);
  box-shadow: 0 4px 16px rgba(184, 107, 66, 0.4);
}

.oxbridge-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 16px;
  font-style: italic;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials {
  background: var(--stone);
}

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

.testimonial-card {
  background: var(--cream);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid rgba(44, 36, 24, 0.06);
  transition: all 0.3s var(--ease);
}

.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(44, 36, 24, 0.08);
}

.testimonial-stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-card blockquote {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-style: italic;
  color: var(--walnut);
  line-height: 1.7;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
}

.testimonial-author strong {
  font-size: 0.95rem;
  color: var(--bark);
}

.testimonial-author span {
  font-size: 0.82rem;
  color: var(--moss);
}

/* ============================================
   Contact
   ============================================ */
.contact {
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-info p {
  color: var(--walnut);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--bark);
  margin-bottom: 2px;
}

.contact-item span,
.contact-item a {
  font-size: 0.92rem;
  color: var(--walnut);
}

.contact-item a:hover {
  color: var(--terracotta);
}


/* ---- Forms ---- */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--bark);
  background: var(--parchment);
  border: 1px solid var(--sand);
  border-radius: 6px;
  transition: all 0.3s var(--ease);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(91, 117, 83, 0.1);
}

.form-group textarea {
  resize: vertical;
}

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

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--bark);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 32px;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-brand strong {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #fff;
}

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

.footer-brand .logo-icon {
  font-size: 1.8rem;
  color: var(--sage-light);
  margin-bottom: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-links a:hover {
  color: var(--gold-light);
}

.footer-copy p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   Payment Modal
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(44, 36, 24, 0.6);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--cream);
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 32px 80px rgba(44, 36, 24, 0.25);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s var(--ease);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-small {
  max-width: 420px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: var(--stone);
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  color: var(--walnut);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
  z-index: 10;
}

.modal-close:hover {
  background: var(--sand);
  color: var(--bark);
}

.modal-header {
  padding: 32px 32px 0;
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--bark);
  margin-bottom: 12px;
}

.modal-package {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--stone);
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.modal-package span {
  font-size: 0.95rem;
  color: var(--walnut);
}

.modal-package strong {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--sage);
}

.modal-body {
  padding: 24px 32px 32px;
}

.payment-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--moss);
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.lock-icon { font-size: 0.85rem; }

/* Confirmation */
.confirmation {
  text-align: center;
  padding-top: 40px;
}

.confirmation h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--bark);
  margin-bottom: 12px;
}

.confirmation p {
  color: var(--walnut);
  margin-bottom: 16px;
}

.confirmation-email {
  font-size: 0.9rem;
  color: var(--moss);
}

/* Success Checkmark Animation */
.success-checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

.check-icon {
  width: 80px;
  height: 80px;
  position: relative;
  border-radius: 50%;
  display: block;
}

.icon-circle {
  position: absolute;
  top: 0; left: 0;
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid var(--sage);
  animation: circleAnim 0.4s ease-in-out 0.1s forwards;
  opacity: 0;
}

.icon-line {
  display: block;
  position: absolute;
  height: 3px;
  background: var(--sage);
  border-radius: 2px;
}

.line-tip {
  top: 46px;
  left: 14px;
  width: 25px;
  transform: rotate(45deg);
  animation: tipAnim 0.3s ease-in-out 0.4s forwards;
  opacity: 0;
}

.line-long {
  top: 38px;
  left: 28px;
  width: 40px;
  transform: rotate(-45deg);
  animation: longAnim 0.3s ease-in-out 0.5s forwards;
  opacity: 0;
}

@keyframes circleAnim {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes tipAnim {
  from { opacity: 0; width: 0; }
  to   { opacity: 1; width: 25px; }
}

@keyframes longAnim {
  from { opacity: 0; width: 0; }
  to   { opacity: 1; width: 40px; }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .oxbridge-grid {
    grid-template-columns: 1fr;
  }

  .oxbridge-price-card {
    position: static;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 64px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 0;
    box-shadow: -8px 0 32px rgba(44, 36, 24, 0.15);
    transition: right 0.4s var(--ease);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    color: var(--bark) !important;
    font-size: 1rem;
    padding: 12px 0;
    display: block;
  }

  .nav-cta {
    text-align: center;
    margin-top: 16px;
  }

  .hero-layout {
    flex-direction: column;
    gap: 16px;
    padding-top: 80px;
    padding-bottom: 60px;
  }

  .hero-molecule {
    flex: none;
    width: 55%;
    height: 28vh;
    max-height: 220px;
  }

  .hero-content {
    flex: none;
    padding: 0 16px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-wrapper {
    max-width: 300px;
    margin: 0 auto;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-title {
    font-size: 2rem;
  }

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

  .modal-body,
  .modal-header {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 480px) {
  .hero-molecule {
    width: 65%;
    height: 22vh;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .experience-badges {
    flex-direction: column;
    align-items: center;
  }
}

/* ---- Scroll reveal animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
