*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --teal: #0abfa3;
  --teal-dark: #089e88;
  --teal-light: #e6faf7;
  --coral: #ff5c5c;
  --coral-light: #fff0f0;
  --navy: #0d1b2a;
  --navy-mid: #1a2e42;
  --text: #0d1b2a;
  --text-muted: #5a6a7a;
  --text-light: #8a9bab;
  --border: #e2eaf0;
  --bg: #ffffff;
  --bg-soft: #f4f9fc;
  --gold: #f5a623;
  --gold-light: #fff8ec;
  --green: #00c48c;
  --green-light: #e6faf4;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-pill: 100px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 2.5rem;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.2px;
  color: var(--navy);
  text-decoration: none;
}
.logo .flip {
  color: var(--teal);
}
.logo .grade {
  color: var(--coral);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--teal);
}

.nav-cta {
  background: linear-gradient(135deg, var(--teal) 0%, #07a98f 100%);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Source Sans 3", sans-serif;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s;
  box-shadow: 0 4px 14px rgba(10, 191, 163, 0.3);
}
.nav-cta:hover {
  opacity: 0.88;
}

/* ── HERO ── */
.hero-wrap {
  background: linear-gradient(160deg, #f0fdfb 0%, #fafeff 50%, #fff5f5 100%);
  border-bottom: 1px solid var(--border);
}

.hero {
  text-align: center;
  padding: 88px 2rem 72px;
  max-width: 780px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-dark);
  background: var(--teal-light);
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 54px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.3px;
  color: var(--navy);
}
.hero h1 .accent-teal {
  color: var(--teal);
}
.hero h1 .accent-coral {
  color: var(--coral);
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2.25rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, #07a98f 100%);
  color: #fff;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: "Source Sans 3", sans-serif;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 6px 20px rgba(10, 191, 163, 0.32);
  transition:
    opacity 0.2s,
    transform 0.15s;
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: "Source Sans 3", sans-serif;
  border: 2px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ── STATS ── */
.stats-wrap {
  padding: 2.5rem 2rem;
  max-width: 680px;
  margin: 0 auto;
}

.stats-row {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.stat {
  flex: 1;
  text-align: center;
  padding: 1.6rem 1rem;
  border-right: 1px solid var(--border);
}
.stat:last-child {
  border-right: none;
}

.stat-num {
  font-family: "Playfair Display", serif;
  font-size: 34px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* ── SECTIONS ── */
.section {
  max-width: 980px;
  margin: 0 auto;
  padding: 64px 2rem;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--teal-light);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.section h2 {
  font-family: "Playfair Display", serif;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 2.5rem;
}

/* ── ACCORDIONS ── */
.accordions-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.accordion {
  border-bottom: 1px solid var(--border);
}
.accordion:last-child {
  border-bottom: none;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.75rem 3rem;
  background: var(--bg);
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: "Source Sans 3", sans-serif;
  transition: background 0.2s;
}
.accordion-trigger:hover {
  background: var(--bg-soft);
}
.accordion-trigger[aria-expanded="true"] {
  background: var(--bg-soft);
}

.accordion-header-content {
  flex: 1;
}
.accordion-header-content .section-tag {
  margin-bottom: 0.75rem;
}
.accordion-header-content h2 {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.accordion-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0;
}

.accordion-chevron {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.3s,
    border-color 0.2s,
    background 0.2s;
  position: relative;
  background: var(--bg);
}
.accordion-chevron::before,
.accordion-chevron::after {
  content: "";
  position: absolute;
  background: var(--navy);
  border-radius: 2px;
  transition:
    transform 0.3s,
    background 0.2s;
}
/* horizontal bar */
.accordion-chevron::before {
  width: 14px;
  height: 2px;
}
/* vertical bar (forms + cross, rotates to hide on open) */
.accordion-chevron::after {
  width: 2px;
  height: 14px;
}

.accordion-trigger[aria-expanded="true"] .accordion-chevron {
  border-color: var(--teal);
  background: var(--teal-light);
}
.accordion-trigger[aria-expanded="true"] .accordion-chevron::before,
.accordion-trigger[aria-expanded="true"] .accordion-chevron::after {
  background: var(--teal-dark);
}
.accordion-trigger[aria-expanded="true"] .accordion-chevron::after {
  transform: rotate(90deg) scaleY(0);
}

.accordion-body {
  overflow: hidden;
}
/* animate open/close via max-height when not using `hidden` */
.accordion-body:not([hidden]) {
  animation: accordion-open 0.3s ease forwards;
}

@keyframes accordion-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.accordion-inner {
  padding: 2rem 3rem 3rem;
}

/* ── SUBJECT CARDS ── */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 16px;
}

.subject-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
.subject-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(10, 191, 163, 0.12);
}

.subject-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}

.subject-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--navy);
}
.subject-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

.level-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
}
.gcse-badge {
  background: var(--green-light);
  color: #007a5c;
}
.alevel-badge {
  background: #eef2ff;
  color: #3730a3;
}
.med-badge {
  background: var(--gold-light);
  color: #a0680a;
}

/* ── STEPS ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.step-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 1.6rem;
  border: 1px solid transparent;
  transition: border-color 0.2s;
}
.step-card:hover {
  border-color: var(--teal);
}

.step-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.step-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--navy);
}
.step-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── TUTORS CAROUSEL ── */
.tutors-section {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.tutors-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 10% 60%,
      rgba(10, 191, 163, 0.13) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 90% 20%,
      rgba(255, 92, 92, 0.07) 0%,
      transparent 45%
    );
  pointer-events: none;
}

.tutors-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 64px 2rem;
}

.section-tag--light {
  background: rgba(10, 191, 163, 0.15);
  color: var(--teal);
}

.tutors-heading {
  font-family: "Playfair Display", serif;
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.tutors-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

/* Slides */
.carousel-slide {
  display: none;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
}
.carousel-slide.active {
  display: grid;
  animation: carousel-fade 0.35s ease;
}

@keyframes carousel-fade {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.carousel-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.carousel-subjects {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.03em;
}
.carousel-name {
  font-family: "Playfair Display", serif;
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.1;
}
.carousel-role {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}
.carousel-bio {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Nav */
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    border-color 0.2s;
  line-height: 1;
}
.carousel-btn:hover {
  background: rgba(10, 191, 163, 0.2);
  border-color: var(--teal);
}

.carousel-dots {
  display: flex;
  gap: 10px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  padding: 0;
  transition:
    background 0.2s,
    transform 0.2s;
}
.carousel-dot.active {
  background: var(--teal);
  transform: scale(1.35);
}

/* ── TESTIMONIALS ── */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.testi-card {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}
.testi-card::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  right: 16px;
  font-family: "Playfair Display", serif;
  font-size: 100px;
  color: rgba(10, 191, 164, 0.75);
  line-height: 1;
}

.stars {
  color: var(--gold);
  font-size: 14px;
  margin-bottom: 12px;
}

.testi-card p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.testi-author {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.testi-detail {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
}

/* ── PRICING ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.price-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow 0.2s;
}
.price-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
}
.price-card.featured {
  border: 2.5px solid var(--teal);
  box-shadow: 0 8px 32px rgba(10, 191, 163, 0.15);
}

.price-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.price-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  font-family: "Playfair Display", serif;
}

.popular-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--teal-light);
  color: var(--teal-dark);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
}

.price-tag {
  font-family: "Playfair Display", serif;
  font-size: 44px;
  font-weight: 800;
  color: var(--navy);
  margin: 14px 0 2px;
}
.price-period {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.price-card ul {
  list-style: none;
}
.price-card ul li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 7px 0;
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--border);
}
.price-card ul li:first-child {
  border-top: none;
}

.check {
  color: var(--green);
  font-size: 17px;
  font-weight: 700;
  flex-shrink: 0;
}

.price-btn {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 13px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: "Source Sans 3", sans-serif;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  text-decoration: none;
}
.price-btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--navy);
}
.price-btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.price-btn-filled {
  background: linear-gradient(135deg, var(--teal) 0%, #07a98f 100%);
  border: none;
  color: #fff;
  box-shadow: 0 6px 18px rgba(10, 191, 163, 0.3);
}
.price-btn-filled:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ── CONTACT ── */
.contact-section {
  background: var(--navy);
  padding: 72px 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 20% 50%,
      rgba(10, 191, 163, 0.15) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 80% 50%,
      rgba(255, 92, 92, 0.1) 0%,
      transparent 60%
    );
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.contact-section h2 {
  font-family: "Playfair Display", serif;
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}
.contact-section h2 span {
  color: var(--teal);
}
.contact-section p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2.5rem;
}

.contact-cards {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  text-decoration: none;
  color: #fff;
  min-width: 220px;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.contact-card:hover {
  background: rgba(10, 191, 163, 0.15);
  border-color: var(--teal);
  transform: translateY(-3px);
}

.contact-icon {
  font-size: 28px;
}
.contact-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
.contact-value {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

/* ── FOOTER ── */
footer {
  background: #060e17;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.75rem 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}
.footer-logo .flip {
  color: var(--teal);
}
.footer-logo .grade {
  color: var(--coral);
}
.footer-logo .rest {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--teal);
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .hero h1 {
    font-size: 38px;
  }
  .nav-links {
    display: none;
  }
  .stats-row {
    flex-direction: column;
  }
  .stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .stat:last-child {
    border-bottom: none;
  }
  .accordion-trigger {
    padding: 2rem 1.5rem;
  }
  .accordion-header-content h2 {
    font-size: 24px;
  }
  .accordion-inner {
    padding: 0 1.5rem 2rem;
  }
  .tutors-heading {
    font-size: 28px;
  }
  .carousel-slide.active {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .carousel-name {
    font-size: 26px;
  }
  .section h2 {
    font-size: 28px;
  }
  .contact-section h2 {
    font-size: 28px;
  }
  .contact-cards {
    flex-direction: column;
    align-items: center;
  }
  .contact-card {
    width: 100%;
    max-width: 320px;
  }
}
