:root {
  --cream: #f7f3ea;
  --cream-dark: #efe6d5;
  --ink: #0f172a;
  --muted: #526077;
  --line: #e5dfd3;
  --white: #ffffff;
  --teal: #32BFC5;
  --amber: #d97706;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(247, 243, 234, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  letter-spacing: -0.08em;
}

.brand strong {
  display: block;
  font-size: 1.12rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-logo {
  display: block;
  width: min(290px, 38vw);
  height: auto;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 440px;
}

.footer-logo {
  display: block;
  width: min(320px, 100%);
  height: auto;
}

.footer-copy {
  color: #cbd5e1;
  font-size: 0.96rem;
  line-height: 1.7;
}

.footer-meta {
  margin-left: auto;
  text-align: right;
}

footer {
  background: var(--ink);
  color: #dbe4f0;
  border-top: none;
  align-items: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 700;
  color: #334155;
}

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

.nav-button {
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--white);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 1.3rem;
  cursor: pointer;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
}

.hero {
  display: grid;
  align-items: center;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 64px;
  min-height: calc(100vh - 86px);
}

.eyebrow,
.section-label {
  display: inline-block;
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #32BFC5;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
}

h1 {
  max-width: 790px;
  font-size: clamp(3.2rem, 7vw, 6.7rem);
}

h2 {
  font-size: clamp(2.3rem, 4vw, 4.5rem);
}

h3 {
  font-size: 1.55rem;
}

.hero-text {
  max-width: 670px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 25px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.button.primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

.button.primary:hover {
  background: #25324a;
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.wide {
  width: 100%;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 650px;
  margin-top: 44px;
}

.stats div {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.stats strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-card {
  position: relative;
  padding: 16px;
  border-radius: 40px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(38px);
}

.hero-card::before {
  width: 190px;
  height: 190px;
  top: -38px;
  left: -46px;
  background: rgba(217, 119, 6, 0.23);
}

.hero-card::after {
  width: 250px;
  height: 250px;
  right: -45px;
  bottom: -45px;
  background: rgba(20, 184, 166, 0.22);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 52% 38%;
  border-radius: 28px;
}

.profile-panel {
  margin-top: 14px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.94);
  color: var(--white);
}

.profile-panel p {
  margin: 0 0 5px;
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-panel h2 {
  font-family: Inter, system-ui, sans-serif;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.profile-panel span {
  display: block;
  margin-top: 8px;
  color: #e2e8f0;
  font-size: 0.95rem;
}

.about,
.session-list {
  padding: 56px;
  border-radius: 38px;
  background: var(--white);
  box-shadow: 0 14px 50px rgba(15, 23, 42, 0.06);
}

.two-column {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 54px;
}

.about-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.12rem, 0.7vw, 0.42rem);
  margin: 0;
  min-height: clamp(430px, 43vw, 560px);
  line-height: 0.92;
  max-width: 8.3ch;
}

.about-heading span {
  display: block;
}

.copy p,
.centred p,
.dark p,
.contact p {
  color: var(--muted);
  font-size: 1.08rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill-row span {
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--cream);
  color: #334155;
  font-weight: 800;
  font-size: 0.9rem;
}

.centred {
  max-width: 770px;
  margin: 0 auto 42px;
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--white);
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.11);
}

.icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 22px;
  border-radius: 22px;
  background: var(--ink);
  font-size: 1.55rem;
}

.card p {
  color: var(--muted);
}

.dark {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  width: 100%;
  max-width: none;
  padding: 90px max(20px, calc((100vw - 1180px) / 2));
  background: var(--ink);
  color: var(--white);
}

.dark p {
  color: #cbd5e1;
}

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

.check-grid div {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-weight: 700;
}

.list-grid span {
  padding: 18px;
  border-radius: 20px;
  background: var(--cream);
  color: #334155;
  font-weight: 800;
}

.contact {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  overflow: hidden;
  border-radius: 38px;
  background: var(--ink);
  box-shadow: var(--shadow);
  color: var(--white);

  align-items: center;
}

.contact-main {
  padding: 56px;
}

.contact-main p {
  color: #cbd5e1;
}

.contact-options {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.contact-line {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-weight: 800;
}

.enquiry-box {
  margin: 18px;
  padding: 40px;
  border-radius: 28px;
  background: var(--cream);
  color: var(--ink);

  align-self: center;
  height: auto;
}

.enquiry-box ul {
  margin: 20px 0 28px;
  padding-left: 20px;
  color: #334155;
  font-weight: 700;
}

.enquiry-box li + li {
  margin-top: 12px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 30px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

footer p {
  margin: 0;
}

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

  .nav {
    position: absolute;
    top: 86px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 14px;
    border-radius: 16px;
  }

  .hero,
  .two-column,
  .dark,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .hero-card {
    max-width: 520px;
    margin: 0 auto;
  }

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

  .check-grid,
  .list-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .about,
  .session-list,
  .contact-main,
  .enquiry-box {
    padding: 30px;
  }

  .dark {
    padding: 70px 20px;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand small {
    display: none;
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 62px 0;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.35rem;
  }

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

  .about-heading {
    max-width: none;
    gap: 0.12em;
    line-height: 0.92;
  }

  .hero-card img {
    aspect-ratio: 1 / 1.08;
  }
}


.about .two-column {
  align-items: center;
}

/* About heading final override */

.about-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.12rem, 0.7vw, 0.42rem);
  margin: 0;
  min-height: clamp(430px, 43vw, 560px);
  line-height: 0.92;
  max-width: 8.3ch;
}

.about-heading span {
  display: block;
}

.about .two-column {
  align-items: center;
}

@media (max-width: 900px) {
  .about-heading {
    min-height: auto;
    max-width: 8.5ch;
    gap: 0.18rem;
    line-height: 0.94;
  }

  .about .two-column {
    align-items: start;
  }
}

/* Contact enquiry box spacing fix */

@media (max-width: 900px) {
  .contact {
    align-items: stretch;
  }

  .enquiry-box {
    align-self: stretch;
  }
}


.expanded-cards {
  grid-template-columns: repeat(3, 1fr);
}

.wide-card {
  grid-column: span 1;
}

.tutoring-options {
  padding: 56px;
  border-radius: 38px;
  background: var(--white);
  box-shadow: 0 14px 50px rgba(15, 23, 42, 0.06);
}

.price-line {
  color: var(--ink) !important;
  font-weight: 900;
  font-size: 1.18rem !important;
}

@media (max-width: 900px) {
  .expanded-cards {
    grid-template-columns: 1fr;
  }

  .wide-card {
    grid-column: span 1;
  }

  .tutoring-options {
    padding: 30px;
  }
}


.safety {
  padding: 56px;
  border-radius: 38px;
  background: var(--white);
  box-shadow: 0 14px 50px rgba(15, 23, 42, 0.06);
}

.safety-intro {
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.08rem;
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.standards-grid div {
  padding: 18px;
  border-radius: 20px;
  background: var(--cream);
  color: #334155;
  font-weight: 800;
}

@media (max-width: 900px) {
  .safety {
    padding: 30px;
  }

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

/* Final mobile tidy-up */
@media (max-width: 900px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section {
    width: min(100% - 32px, 1180px);
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .hero {
    gap: 36px;
    padding-top: 44px;
  }

  .hero-content,
  .copy,
  .contact-main,
  .enquiry-box {
    max-width: 100%;
  }

  h1 {
    font-size: clamp(2.75rem, 13vw, 4.25rem);
    line-height: 0.98;
  }

  h2 {
    font-size: clamp(2.15rem, 10vw, 3.6rem);
    line-height: 0.98;
  }

  h3 {
    font-size: 1.35rem;
  }

  .hero-text,
  .copy p,
  .centred p,
  .dark p,
  .contact p,
  .safety-intro {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-actions {
    gap: 12px;
  }

  .button {
    width: 100%;
    padding-left: 18px;
    padding-right: 18px;
    text-align: center;
  }

  .stats {
    gap: 12px;
  }

  .stats div,
  .card,
  .about,
  .session-list,
  .tutoring-options,
  .safety,
  .contact-main,
  .enquiry-box {
    border-radius: 26px;
  }

  .card,
  .about,
  .session-list,
  .tutoring-options,
  .safety {
    padding: 28px;
  }

  .two-column {
    gap: 28px;
  }

  .about-heading {
    min-height: auto !important;
    max-width: 8.6ch;
    line-height: 0.94;
    gap: 0.1em;
  }

  .hero-card {
    padding: 12px;
    border-radius: 30px;
  }

  .hero-card img {
    border-radius: 22px;
  }

  .profile-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .profile-panel h2 {
    font-size: 1.55rem;
  }

  .check-grid,
  .list-grid,
  .standards-grid,
  .expanded-cards {
    grid-template-columns: 1fr !important;
  }

  .wide-card {
    grid-column: span 1 !important;
  }

  .dark {
    padding-left: 16px;
    padding-right: 16px;
    gap: 30px;
  }

  .contact {
    width: min(100% - 32px, 1180px);
    border-radius: 28px;
    align-items: stretch;
  }

  .contact-line {
    overflow-wrap: anywhere;
    line-height: 1.45;
  }

  .enquiry-box {
    margin: 14px;
  }

  footer {
    padding-left: 18px;
    padding-right: 18px;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .brand strong {
    font-size: 1rem;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 15px;
  }

  .section {
    width: min(100% - 28px, 1180px);
  }

  .card,
  .about,
  .session-list,
  .tutoring-options,
  .safety {
    padding: 24px;
  }

  .hero-content .eyebrow {
    max-width: 90%;
  }

  .pill-row {
    gap: 8px;
  }

  .pill-row span {
    font-size: 0.82rem;
  }
}


@media (max-width: 900px) {
  .brand-logo {
    width: min(240px, 58vw);
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-meta {
    margin-left: 0;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .brand-logo {
    width: min(210px, 62vw);
  }

  .footer-logo {
    width: min(250px, 100%);
  }
}

/* Final requested layout refinements */
:root {
  --teal: #32BFC5;
}

.about-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.27rem, 1.575vw, 0.95rem);
  margin: 0;
  min-height: clamp(430px, 43vw, 560px);
  line-height: 0.92;
  max-width: 8.9ch;
}

.about-heading span {
  display: block;
}

.pill-row {
  flex-wrap: nowrap;
  gap: 8px;
}

.pill-row span {
  white-space: nowrap;
  padding: 8px 11px;
  font-size: 0.82rem;
}

.expanded-cards {
  grid-template-columns: repeat(3, 1fr);
}

.wide-card {
  grid-column: span 1;
}

.brand-logo {
  display: block;
  width: min(290px, 38vw);
  height: auto;
}

.footer-logo {
  display: block;
  width: min(320px, 100%);
  height: auto;
}

@media (max-width: 900px) {
  .about-heading {
    min-height: auto !important;
    max-width: 8.9ch;
    gap: 0.28em;
    line-height: 0.94;
  }

  .pill-row {
    flex-wrap: wrap;
  }

  .pill-row span {
    font-size: 0.82rem;
    padding: 8px 11px;
  }

  .expanded-cards {
    grid-template-columns: 1fr !important;
  }

  .brand-logo {
    width: min(240px, 58vw);
  }
}

@media (max-width: 520px) {
  .brand-logo {
    width: min(210px, 62vw);
  }

  .footer-logo {
    width: min(250px, 100%);
  }
}

/* Header, section spacing and About heading refinements */
.site-header {
  padding: 9px clamp(16px, 5vw, 36px);
}

.brand-logo {
  width: min(145px, 19vw);
  height: auto;
}

.nav {
  gap: 24px;
}

.nav-button {
  padding: 9px 18px;
}

main > .section {
  margin-top: 42px;
  margin-bottom: 42px;
}

.hero.section {
  margin-top: 0;
}

.about-heading {
  gap: clamp(0.18rem, 1.05vw, 0.64rem);
  max-width: 9.8ch;
  line-height: 0.92;
}

.about-heading span {
  display: block;
}

.about-heading span:nth-child(4) {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .site-header {
    padding: 8px 16px;
  }

  .brand-logo {
    width: min(125px, 46vw);
  }

  .nav {
    top: 72px;
  }

  main > .section {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .about-heading {
    gap: 0.32em;
    max-width: 9.8ch;
    line-height: 0.94;
  }
}

@media (max-width: 520px) {
  .brand-logo {
    width: min(112px, 48vw);
  }

  main > .section {
    margin-top: 24px;
    margin-bottom: 24px;
  }
}

/* Final About heading grouped sentence layout */
.about-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  margin: 0;
  min-height: clamp(430px, 43vw, 560px);
  line-height: 0.9;
  max-width: 10.2ch;
}

.about-heading .about-sentence {
  display: block;
  margin: 0 0 clamp(0.48rem, 1.6vw, 1.08rem);
}

.about-heading .about-sentence-tight {
  display: block;
  margin-bottom: 0;
}

.about-heading .about-sentence-tight span {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0.82;
}

@media (max-width: 900px) {
  .about-heading {
    min-height: auto !important;
    max-width: 10.2ch;
    line-height: 0.92;
  }

  .about-heading .about-sentence {
    margin-bottom: 0.42em;
  }

  .about-heading .about-sentence-tight span {
    line-height: 0.84;
  }
}
