:root {
  --ink: #17211f;
  --muted: #5f6f6a;
  --line: #dce7e2;
  --paper: #fbf8f1;
  --surface: #ffffff;
  --mist: #edf7f4;
  --teal: #106b61;
  --teal-dark: #0a4a44;
  --coral: #e9684a;
  --gold: #f1b84b;
  --shadow: 0 24px 70px rgba(20, 42, 39, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(251, 248, 241, 0.92);
  border-bottom: 1px solid rgba(220, 231, 226, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  width: 230px;
  height: auto;
  object-fit: contain;
}

.site-footer .brand-logo {
  width: 240px;
  height: auto;
  padding: 5px;
  background: #ffffff;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 30px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a {
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--teal);
}

.nav-cta {
  color: #ffffff !important;
  background: var(--teal);
  padding: 10px 16px;
  border-radius: var(--radius);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100svh - 126px);
  display: grid;
  align-items: stretch;
  overflow: hidden;
  background: #f5f0e6;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(251, 248, 241, 0.98) 0%, rgba(251, 248, 241, 0.88) 34%, rgba(251, 248, 241, 0.18) 68%),
    linear-gradient(180deg, rgba(251, 248, 241, 0) 72%, var(--paper) 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  padding: clamp(42px, 6vw, 68px) 0 clamp(22px, 3vw, 34px);
  margin-left: clamp(18px, 5vw, 72px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2.35rem, 4.35vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 590px;
  margin: 20px 0 0;
  color: #344440;
  font-size: clamp(1.04rem, 1.6vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #ffffff;
  background: var(--teal);
  box-shadow: 0 12px 28px rgba(16, 107, 97, 0.24);
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
}

.class-card,
.teacher-card,
.steps article,
.subject-panel,
.faq-item,
.testimonial-card,
.enquiry-form {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(220, 231, 226, 0.86);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(20, 42, 39, 0.08);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1120px, calc(100% - 36px));
  margin: -26px auto 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.trust-strip div {
  min-height: 106px;
  padding: 22px;
  background: var(--surface);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  font-size: 0.98rem;
}

.trust-strip span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 118px) 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 570px;
  margin-bottom: 0;
}

.section-heading p:not(.eyebrow),
.teacher-focus p,
.outcomes-copy p,
.demo-copy p,
.enquiry > div p {
  color: var(--muted);
  font-size: 1.04rem;
}

.teacher-focus {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(28px, 6vw, 74px);
  align-items: start;
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.teacher-card {
  min-height: 232px;
  padding: 24px;
}

.teacher-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 34px;
  color: var(--teal);
  background: var(--mist);
  border: 1px solid #cce4dd;
  border-radius: 8px;
  font-weight: 800;
}

.teacher-card p {
  margin-bottom: 0;
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.class-card {
  min-height: 270px;
  padding: 24px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 32px;
  color: var(--teal);
  background: var(--mist);
  border: 1px solid #cce4dd;
  border-radius: 8px;
  font-weight: 800;
}

.class-card p,
.steps p,
.faq-item p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: clamp(28px, 6vw, 74px);
  align-items: start;
}

.subject-panel {
  padding: 8px;
}

.subject-row {
  display: grid;
  grid-template-columns: 0.65fr 1fr;
  gap: 16px;
  align-items: center;
  min-height: 76px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
}

.subject-row:last-child {
  border-bottom: 0;
}

.subject-row span {
  font-weight: 800;
}

.subject-row strong {
  color: var(--muted);
  font-size: 0.94rem;
}

.muted {
  width: 100%;
  max-width: none;
  padding-right: clamp(18px, 5vw, 72px);
  padding-left: clamp(18px, 5vw, 72px);
  background: #eaf4f1;
}

.muted .section-heading,
.muted .steps {
  width: min(1120px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.steps article {
  min-height: 258px;
  padding: 24px;
}

.steps span {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--coral);
  font-weight: 800;
}

.outcomes {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(26px, 6vw, 70px);
  align-items: center;
}

.outcome-list {
  display: grid;
  gap: 12px;
}

.outcome-list div {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  min-height: 88px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.outcome-list span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #ffffff;
  background: var(--coral);
  border-radius: 50%;
  font-weight: 800;
}

.outcome-list p {
  margin: 0;
  color: #344440;
  font-weight: 700;
}

.demo-cta {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(34px, 5vw, 54px);
  color: #ffffff;
  background: var(--teal-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.demo-cta .eyebrow {
  color: var(--gold);
}

.demo-copy h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.demo-copy p {
  max-width: 620px;
  color: #cde3dd;
}

.demo-actions {
  display: grid;
  gap: 12px;
}

.demo-actions .button.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.demo-points {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.demo-points span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dbeee8;
  font-weight: 700;
}

.demo-points span::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--gold);
  border-radius: 50%;
}

.testimonials {
  padding-top: clamp(72px, 10vw, 118px);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 26px;
}

.testimonial-card.featured {
  color: #ffffff;
  background: var(--teal-dark);
  border-color: rgba(255, 255, 255, 0.18);
}

.quote-mark {
  color: var(--gold);
  font-size: 4rem;
  line-height: 0.8;
  font-weight: 800;
}

.testimonial-card p {
  margin: 22px 0 34px;
  color: #344440;
  font-size: 1.02rem;
}

.testimonial-card.featured p {
  color: #dbeee8;
}

.testimonial-card footer {
  display: grid;
  gap: 5px;
  margin-top: auto;
}

.testimonial-card strong {
  font-size: 1rem;
}

.testimonial-card span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.testimonial-card.featured span {
  color: #add1c9;
}

.faq-section {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: clamp(28px, 6vw, 74px);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  width: 100%;
  padding: 20px;
  color: inherit;
}

.faq-item summary {
  display: grid;
  grid-template-columns: 1fr 28px;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary span {
  font-weight: 800;
}

.faq-item strong {
  display: grid;
  place-items: center;
  color: var(--teal);
  font-size: 1.3rem;
}

.faq-item p {
  margin: 12px 40px 0 0;
}

.faq-item[open] strong {
  transform: rotate(45deg);
}

.enquiry {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: clamp(30px, 6vw, 74px);
  align-items: start;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto clamp(72px, 10vw, 118px);
  padding: clamp(38px, 6vw, 62px);
  background: var(--teal-dark);
  color: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.enquiry .eyebrow {
  color: var(--gold);
}

.enquiry > div p {
  color: #cde3dd;
}

.enquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  color: var(--ink);
  box-shadow: none;
}

.enquiry-form label {
  display: grid;
  gap: 7px;
  color: #31413d;
  font-size: 0.9rem;
  font-weight: 800;
}

.enquiry-form .full {
  grid-column: 1 / -1;
}

.hidden-field {
  display: none;
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #cbd9d4;
  border-radius: 8px;
  outline: none;
}

.enquiry-form textarea {
  resize: vertical;
}

.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(16, 107, 97, 0.15);
}

.form-note {
  grid-column: 1 / -1;
  min-height: 24px;
  margin: 0;
  color: var(--teal);
  font-weight: 800;
}

.thank-you-main {
  display: grid;
  min-height: calc(100vh - 74px);
  place-items: center;
  padding: clamp(48px, 10vw, 96px) 18px;
}

.thank-you-card {
  width: min(620px, 100%);
  padding: clamp(30px, 6vw, 54px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.thank-you-card h1 {
  margin: 14px 0 12px;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 0.98;
}

.thank-you-card p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 72px);
  color: #cde3dd;
  background: #12231f;
}

.site-footer p {
  max-width: 430px;
  margin: 14px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 800;
}

@media (max-width: 940px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-media {
    position: relative;
    height: 42svh;
    min-height: 300px;
    order: -1;
  }

  .hero-media::after {
    background: linear-gradient(180deg, rgba(251, 248, 241, 0) 58%, var(--paper) 100%);
  }

  .hero-content {
    width: min(760px, calc(100% - 36px));
    padding-top: 28px;
    margin: 0 auto;
  }

  .trust-strip,
  .teacher-grid,
  .class-grid,
  .testimonial-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-strip {
    margin-top: 24px;
  }

  .split,
  .teacher-focus,
  .outcomes,
  .demo-cta,
  .faq-section,
  .enquiry {
    grid-template-columns: 1fr;
  }

  .section-heading.compact {
    max-width: none;
    margin-bottom: 24px;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 68px;
  }

  .brand-logo {
    width: 178px;
    height: auto;
  }

  .site-nav {
    top: 68px;
  }

  .hero-content {
    padding-bottom: 22px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .trust-strip,
  .teacher-grid,
  .class-grid,
  .testimonial-grid,
  .steps,
  .enquiry-form {
    grid-template-columns: 1fr;
  }

  .trust-strip div {
    min-height: auto;
  }

  .class-card,
  .teacher-card,
  .testimonial-card,
  .steps article {
    min-height: auto;
  }

  .subject-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .enquiry {
    width: min(100% - 24px, 1120px);
    padding: 26px 16px;
  }

  .demo-cta {
    width: min(100% - 24px, 1120px);
    padding: 26px 16px;
  }

  .site-footer {
    flex-direction: column;
  }
}
