*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #1a1a1a;
  line-height: 1.6;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 2.5rem; }

/* ── NAV ── */
.nav {
  display: flex;
  align-items: center;
  padding: 0.85rem 2.5rem;
  border-bottom: 1.5px solid #e8e8e8;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon { display: flex; align-items: center; }
.logo-text-block {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: #1a1a1a;
}
.logo-sub {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #999;
  text-transform: uppercase;
}
.logo-tagline {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tg-green  { color: #4CAF50; }
.tg-blue   { color: #2196F3; }
.tg-yellow { color: #FFC107; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #444;
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: #ff3e00; }

.btn-book {
  background: #ff3e00;
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 0.65rem 1.4rem;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.btn-book:hover { opacity: 0.85; }

/* ── HERO ── */
.hero {
  background: #fdfcf8;
  padding: 4rem 2.5rem 0;
  overflow: hidden;
}
.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  padding-bottom: 3.5rem;
}

/* Kicker */
.hero-kicker-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 1.5rem;
  position: relative;
}
.hero-kicker {
  display: inline-block;
  background: #ffe600;
  color: #1a1a1a;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.4rem 1rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.deco-line {
  height: 4px;
  flex: 1;
  min-width: 60px;
}
.deco-line.blue  { background: #00b4ff; }
.deco-line.yellow { background: #ffe600; }

/* Heading */
.hero-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.2rem, 6vw, 6.2rem);
  font-weight: 900;
  line-height: 1.0;
  color: #1a1a1a;
  margin-bottom: 0;
  position: relative;
}
.hero-heading em {
  font-style: italic;
  font-weight: 900;
  color: #1a1a1a;
}
.hl-red {
  background: #ff3e00;
  color: #fff;
  padding: 0 0.12em;
  display: inline;
}
.hero-heading .deco-line {
  display: block;
  margin: 0.4rem 0;
  width: 55%;
  min-width: 0;
  flex: none;
}

.hero-sub {
  font-size: 0.95rem;
  color: #666;
  max-width: 380px;
  line-height: 1.7;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

/* CTA buttons */
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-dark {
  background: #1a1a1a;
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-dark:hover { opacity: 0.8; }
.btn-blue {
  background: #00b4ff;
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-blue:hover { opacity: 0.85; }

/* Stats sticky-note grid */
.hero-right { flex-shrink: 0; }
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  width: 320px;
}
.stat-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 120px;
  gap: 0.25rem;
  position: relative;
}
.stat-card::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.2;
}
.stat-card.yellow { background: #ffe600; transform: rotate(-1.2deg); }
.stat-card.red    { background: #ff3e00; transform: rotate(1deg); }
.stat-card.blue   { background: #00b4ff; transform: rotate(0.8deg); }
.stat-card.green  { background: #00c566; transform: rotate(-0.7deg); }

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1;
}
.stat-card.red .stat-num,
.stat-card.blue .stat-num { color: #fff; }
.stat-card.green .stat-num { color: #1a1a1a; }
.stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(0,0,0,0.72);
  letter-spacing: 0.02em;
  line-height: 1.45;
}
.stat-card.red .stat-label,
.stat-card.blue .stat-label { color: rgba(255,255,255,0.75); }

/* Rainbow strip */
.rainbow-strip {
  display: flex;
  height: 10px;
  margin: 0 -2.5rem;
}
.rb { flex: 1; }
.rb.red    { background: #e40303; }
.rb.orange { background: #ff8c00; }
.rb.yellow { background: #ffe600; }
.rb.green  { background: #008026; }
.rb.blue   { background: #004dff; }
.rb.purple { background: #750787; }

/* ── SECTION TAG ── */
.section-tag {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: #00B4FF;
  color: #fff;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.75rem;
}
.results .section-tag,
.testimonials .section-tag,
.contact .section-tag {
  background: #1a1a1a;
}

/* ── TUITION ── */
.tuition {
  padding: 5rem 0;
  background: #f0f0ee;
}
.section-header { margin-bottom: 0; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr);
  gap: 3rem;
  align-items: stretch;
}
.about-grid > p {
  font-size: 1rem;
  line-height: 1.85;
  max-width: 720px;
}
.photo-space {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 12px;
}
.subjects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.subject {
  padding: 2.25rem 2rem 2rem;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.18);
  position: relative;
}
.s-yellow { background: #FFE600; }
.s-red    { background: #FF4136; }
.s-blue   { background: #00B4FF; }
.s-green  { background: #59E817; }

.subject h3 {
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}
.subject p {
  font-size: 0.9rem;
  color: #1a1a1a;
  margin-bottom: 1.25rem;
  line-height: 1.55;
  opacity: 0.8;
}
.enquire-link {
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: underline;
  letter-spacing: 0.04em;
}
.enquire-link:hover { opacity: 0.65; }

/* ── RESULTS ── */
.results {
  padding: 5rem 0;
  background: #fdfcf8;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  margin-top: 0.5rem;
}
.result-card {
  border-top: 5px solid #ff3e00;
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.result-grade {
  font-family: 'Playfair Display', serif;
  font-size: 2.75rem;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1;
}
.result-subject {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #555;
}

/* ── TESTIMONIALS ── */
.testimonials {
  padding: 5rem 0;
  background: #fff;
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.testi-card {
  border: 2px solid #1a1a1a;
  padding: 2rem;
  position: relative;
}
.testi-card::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: #ffe600;
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  line-height: 1;
}
.testi-card p {
  font-size: 0.93rem;
  color: #333;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1rem;
  padding-top: 2rem;
}
.first-students-panel {
  max-width: 900px;
  border-width: 3px;
  border-left: 12px solid #ffe600;
}
.first-students-panel::before { content: none; }
.first-students-panel p {
  padding-top: 0;
  margin-bottom: 0;
  font-style: normal;
  font-size: 1rem;
}
cite {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ff3e00;
  font-style: normal;
  letter-spacing: 0.04em;
}

/* ── CONTACT ── */
.contact {
  padding: 6rem 0;
  background: #1a1a1a;
}
.contact-inner {
  max-width: 640px;
}
.contact-kicker {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #ffe600;
  margin-bottom: 1rem;
}
.contact h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.75rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.contact > .contact-inner > p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2rem;
}
.pricing-copy {
  margin: 0 0 2rem;
}
.pricing-copy p {
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.btn-contact {
  display: inline-block;
  background: #ff3e00;
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 1rem 2rem;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-contact:hover { opacity: 0.85; }
.contact-email {
  display: block;
  margin-top: 1.25rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}

/* ── FOOTER ── */
.footer {
  background: #111;
  padding: 2rem 2.5rem;
  border-top: 1px solid #2a2a2a;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}
.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.footer-socials a {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  color: #ffe600;
  border: 1px solid #333;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, transform 0.2s, background-color 0.2s;
}
.footer-socials a:hover {
  color: #111;
  background: #ffe600;
  border-color: #ffe600;
  transform: translateY(-2px);
}
.footer-socials a:focus-visible {
  outline: 2px solid #00b4ff;
  outline-offset: 3px;
}
.footer-socials svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.footer-socials .social-icon-fill {
  fill: currentColor;
  stroke: none;
}
.footer p {
  font-size: 0.78rem;
  color: #555;
  letter-spacing: 0.05em;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .stats-grid { width: 100%; max-width: 340px; }
  .subjects { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .results-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer-inner { flex-wrap: wrap; gap: 1.25rem 2rem; }
  .footer-socials { order: 3; flex-basis: 100%; }
}
@media (max-width: 580px) {
  .about-grid { grid-template-columns: 1fr; }
  .photo-space { min-height: 280px; }
  .subjects { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .footer { padding-inline: 1.5rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-socials { order: initial; flex-basis: auto; }
}
