/* ===== Restart Tuition: design tokens ===== */
:root {
  --teal: #177098;
  --teal-dark: #0F5476;
  --teal-tint: #EAF4F8;
  --green: #8CC53F;
  --green-dark: #6B992E;
  --green-tint: #F1F9E7;
  --ink: #22313F;
  --grey: #5B6B76;
  --cream: #F7FAFC;
  --white: #FFFFFF;
  --radius: 16px;
  --radius-lg: 24px;
  --max-width: 1120px;
  --shadow: 0 10px 30px rgba(23, 112, 152, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  color: var(--teal-dark);
}

h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--teal); }

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

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

section, .section { padding: 64px 0; }

.section-alt { background: var(--cream); }

.text-center { text-align: center; }

.lede {
  font-size: 1.15rem;
  color: var(--grey);
  max-width: 640px;
}

.section-intro {
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal-dark);
  color: #fff;
  padding: 12px 20px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 30px;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--teal-dark); outline-offset: 2px; }

.btn-primary {
  background: var(--green);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(140, 197, 63, 0.45);
}
.btn-primary:hover { background: var(--green-dark); color: var(--ink); }

.btn-secondary {
  background: #fff;
  color: var(--teal-dark);
  border: 2px solid var(--teal);
}

.btn-lg { font-size: 1.1rem; padding: 16px 36px; }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Header / Nav ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #E7EEF2;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  max-width: 1320px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--teal-dark);
}
.brand img { height: 44px; width: 44px; object-fit: contain; }
.brand span { font-weight: 800; font-size: 1.1rem; }

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle-label span {
  width: 26px;
  height: 3px;
  background: var(--teal-dark);
  border-radius: 2px;
  display: block;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  border-radius: 999px;
}
.nav-link:hover { background: var(--teal-tint); color: var(--teal-dark); }
.nav-link.active { color: var(--teal-dark); background: var(--teal-tint); }
.nav-link.btn-nav { padding: 10px 22px; font-size: 0.95rem; }
.nav-link.btn-nav.active { color: var(--ink); background: var(--green); }

.nav-folder {
  position: relative;
}
.nav-folder-title {
  display: inline-block;
  padding: 10px 14px;
  font-weight: 700;
  cursor: default;
  color: var(--ink);
  border-radius: 999px;
}
.site-nav .nav-folder-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #E7EEF2;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  min-width: 200px;
  list-style: none;
  margin: 4px 0 0;
  z-index: 30;
}
.nav-folder:hover .nav-folder-content,
.nav-folder:focus-within .nav-folder-content {
  display: block;
}
.nav-folder-content li { display: block; }
.nav-folder-content .nav-link { display: block; white-space: nowrap; }
.nav-folder:hover .nav-folder-title { background: var(--teal-tint); color: var(--teal-dark); }

@media (max-width: 900px) {
  .nav-toggle-label { display: flex; }
  .site-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav .nav-folder-content {
    position: static;
    box-shadow: none;
    border: none;
    display: block;
    padding: 0 0 0 16px;
  }
  .nav-folder-title { display: block; padding: 10px 14px; }
  .header-inner { flex-wrap: wrap; }
  .nav-toggle:checked ~ .site-nav { display: block; }
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(160deg, rgba(23,112,152,0.88) 0%, rgba(15,84,118,0.92) 100%),
    url("/assets/images/hero-matt-tutoring.jpg") center / cover no-repeat;
  color: #fff;
  padding: 80px 0 90px;
}
.hero-inner { max-width: 680px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero .lede { color: #E7F3F8; margin-bottom: 32px; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.page-hero {
  background: linear-gradient(160deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: #E7F3F8; max-width: 680px; margin: 0 auto; }

/* ===== Benefit / feature cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 760px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}
.card-grid.cols-2 { grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}

.venn-diagram {
  max-width: 460px;
  margin: 0 auto 36px;
}
.venn-diagram svg { width: 100%; height: auto; display: block; }

.pricing-card {
  background: #fff;
  border: 2px solid #E7EEF2;
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.pricing-card h3 { margin-bottom: 4px; }
.pricing-card .pricing-subtitle {
  color: var(--grey);
  font-size: 0.92rem;
  margin: 0;
  min-height: 2.6em;
}
.pricing-card .price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--teal-dark);
  margin: 10px 0 6px;
}
.pricing-card .price small {
  font-size: 1rem;
  font-weight: 700;
  color: var(--grey);
}
.pricing-card p.pricing-note { color: var(--grey); font-size: 0.92rem; margin: 0; }

.benefit-card {
  background: linear-gradient(180deg, var(--teal-tint) 0%, #DEF0F6 100%);
  border: 1px solid #CFE7EF;
  border-radius: var(--radius);
  padding: 30px 26px;
}
.benefit-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 18px;
}
.benefit-card h3 { margin-bottom: 10px; }
.benefit-card p { color: var(--grey); margin: 0; }

/* ===== Step timeline ===== */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  counter-reset: step;
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(5, 1fr); }
}
.step {
  background: #fff;
  border: 2px solid #E7EEF2;
  border-radius: var(--radius);
  padding: 26px 20px;
  position: relative;
}
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: var(--ink);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.05rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--grey); font-size: 0.95rem; margin: 0; }

/* ===== Testimonials ===== */
.testimonial-panel {
  background: linear-gradient(160deg, var(--teal-dark), #0B3E58);
  color: #fff;
}
.testimonial-panel h2 { color: #fff; }
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}
@media (min-width: 760px) {
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}
.testimonial-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 26px;
}
.testimonial-card blockquote {
  margin: 0 0 14px;
  font-size: 1.02rem;
  line-height: 1.6;
}
.testimonial-card blockquote::before {
  content: "\201C";
  font-size: 2.2rem;
  color: var(--green);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
  font-family: Georgia, serif;
}
.testimonial-card cite {
  font-style: normal;
  font-weight: 700;
  color: #CFE7EF;
  font-size: 0.9rem;
}

.testimonial-group h3 {
  color: var(--teal-dark);
  margin: 48px 0 20px;
}
.testimonial-group:first-child h3 { margin-top: 0; }

.review-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.review-links a {
  background: var(--teal-tint);
  color: var(--teal-dark);
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}
.review-links a:hover { background: var(--teal); color: #fff; }

/* ===== Generic content blocks ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 800px) {
  .two-col { grid-template-columns: 1fr 1fr; }
}
.two-col img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: center 30%;
}

.tool-preview {
  position: relative;
  padding: 22px;
}
.tool-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--teal-tint), var(--green-tint));
  border-radius: 32px;
  transform: rotate(-2deg);
}
.tool-preview img {
  position: relative;
  display: block;
  width: 100%;
  max-height: none;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px rgba(15, 84, 118, 0.28);
  transform: rotate(1deg);
  transition: transform 0.2s ease;
}
.tool-preview:hover img { transform: rotate(0deg) scale(1.015); }

.list-check {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list-check li {
  padding-left: 34px;
  position: relative;
  margin-bottom: 14px;
}
.list-check li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  background: var(--green);
  color: var(--ink);
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.resource-card {
  background: #fff;
  border: 1px solid #E7EEF2;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.resource-card h3 { margin-bottom: 8px; }
.resource-links {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.resource-links a {
  background: var(--cream);
  border: 1px solid #E7EEF2;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 0.92rem;
}
.resource-links a:hover { background: var(--teal-tint); }

table.formula-table { border-collapse: collapse; width: 100%; margin: 16px 0; }
table.formula-table th, table.formula-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid #E7EEF2;
}

/* ===== CTA band ===== */
.cta-band {
  background: var(--green-tint);
  text-align: center;
  padding: 56px 0;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { max-width: 560px; margin: 0 auto 28px; color: var(--grey); }

/* ===== Enquiry form embed ===== */
.enquiry-embed-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #E7EEF2;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: #C9D6DC;
  padding: 56px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 760px) {
  .footer-inner { grid-template-columns: 1.2fr 1fr 1fr; }
}
.footer-brand img { margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-social { display: flex; gap: 16px; margin-top: 10px; }
.footer-social a { color: #fff; font-weight: 700; text-decoration: none; }
.footer-social a:hover { color: var(--green); }

.footer-nav ul, .footer-legal { list-style: none; margin: 0; padding: 0; }
.footer-nav ul li { margin-bottom: 8px; }
.footer-nav a, .footer-legal a { color: #C9D6DC; text-decoration: none; }
.footer-nav a:hover, .footer-legal a:hover { color: var(--green); }
.footer-legal p { margin: 0 0 10px; }
.copyright { color: #7C8A92; font-size: 0.85rem; margin-top: 20px; }
