/* ==========================================================================
   A Cuppa English — site styles
   Edit colours and fonts in the :root block below; everything else follows.
   ========================================================================== */

:root {
  /* Brand colours */
  --blue-50: #f2f9ff;      /* main brand baby blue (page background) */
  --blue-100: #e3f1fd;
  --blue-200: #cfe5fa;
  --blue-300: #a9cdf0;
  --blue-500: #4f86c6;
  --pink: #e32451;         /* main accent */
  --pink-dark: #c01a42;    /* hover */
  --pink-100: #fde4eb;     /* baby pink */
  --pink-50: #fff3f6;
  --navy: #1d2d4f;         /* headings */
  --ink: #36445f;          /* body text */
  --cream: #fffaf7;
  --white: #ffffff;
  --line: #d9e7f5;

  /* Fonts */
  --font-head: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape */
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px rgba(41, 83, 140, 0.08);
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--blue-50);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--pink); text-underline-offset: 3px; }
a:hover { color: var(--pink-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.3rem, 6vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .4em; }
li::marker { color: var(--pink); }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.section { padding: clamp(2.5rem, 7vw, 5rem) 0; }
.section--white { background: var(--white); }
.section--pink { background: var(--pink-50); }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--ink); max-width: 38em; }
.center .lead { margin-inline: auto; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: .8rem;
}
.accent { color: var(--pink); }
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: 700 1rem/1 var(--font-body);
  padding: 1rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--pink); color: #fff; box-shadow: 0 8px 20px rgba(227, 36, 81, .28); }
.btn--primary:hover { background: var(--pink-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--blue-300); }
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn--small { padding: .7rem 1.2rem; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }
.center .btn-row { justify-content: center; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 249, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--navy); }
.brand img { width: 42px; height: 42px; }
.brand span { font-family: var(--font-head); font-size: 1.45rem; line-height: 1; }
.nav { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.nav a:not(.btn) {
  color: var(--navy); text-decoration: none; font-weight: 500;
  padding: .5rem .85rem; border-radius: 999px;
}
.nav a:not(.btn):hover { background: var(--blue-100); }
.nav a[aria-current="page"]:not(.btn) { background: var(--pink-100); color: var(--pink-dark); font-weight: 700; }
.nav .btn { margin-left: .4rem; }
.nav-toggle {
  display: none; background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; padding: .55rem .8rem; font: 600 .95rem var(--font-body); color: var(--navy); cursor: pointer;
}

@media (max-width: 1180px) {
  .js .nav-toggle { display: inline-block; }
  .js .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--blue-50); border-bottom: 1px solid var(--line);
    padding: .8rem 1rem 1.2rem;
  }
  .js .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: .8rem 1rem; }
  .nav .btn { margin: .5rem 0 0; }
  .header-inner { position: relative; }
  .nav { justify-content: flex-end; }
  .brand span { font-size: 1.25rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 8vw, 5.5rem) 0 clamp(2.5rem, 7vw, 4.5rem); }
.hero::before {
  content: ""; position: absolute; right: -140px; top: -160px; width: 520px; height: 520px;
  background: var(--blue-200); border-radius: 50%; opacity: .6; z-index: 0;
}
.hero::after {
  content: ""; position: absolute; left: -120px; bottom: -150px; width: 360px; height: 360px;
  background: var(--pink-100); border-radius: 50%; opacity: .75; z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.25fr .75fr; } }
.hero-art { max-width: 320px; margin-inline: auto; }
.tagline-script { font-style: italic; color: var(--blue-500); font-weight: 500; }
.hero--page { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.hero--page::before { width: 380px; height: 380px; right: -120px; top: -150px; }
.hero--page::after { display: none; }
.breadcrumb { font-size: .92rem; margin-bottom: 1rem; }
.breadcrumb a { color: var(--blue-500); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.4rem; }
@media (min-width: 760px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--white); border-radius: var(--radius); padding: 1.8rem;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.card--cream { background: var(--cream); }
.card--blue { background: var(--blue-100); border-color: var(--blue-200); box-shadow: none; }
.card--pink { background: var(--pink-50); border-color: var(--pink-100); box-shadow: none; }
.card h3 { margin-bottom: .4em; }
.card ul:last-child, .card p:last-child { margin-bottom: 0; }

.icon-circle {
  width: 64px; height: 64px; border-radius: 50%; background: var(--pink-100);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.icon-circle svg { width: 32px; height: 32px; }
.icon-circle--blue { background: var(--blue-200); }

/* Programme cards (clickable) */
.programme-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.programme-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(41, 83, 140, .14); color: var(--ink); }
.programme-card h3 { color: var(--pink); font-size: 1.6rem; }
.programme-card .tag { font-weight: 700; color: var(--navy); margin-bottom: .6rem; }
.programme-card .more { margin-top: auto; padding-top: 1rem; font-weight: 700; color: var(--pink); }
.programme-card:hover .more { text-decoration: underline; }
.programme-card--soon { background: var(--blue-100); border: 2px dashed var(--blue-300); box-shadow: none; }
.programme-card--soon:hover { transform: none; box-shadow: none; }
.programme-card--soon h3 { color: var(--navy); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--white); border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue-500); color: #fff; font: 700 1.05rem var(--font-body); margin-bottom: 1rem;
}
.step:nth-child(even)::before { background: var(--pink); }
.step h3 { font-size: 1.2rem; }
.step p { margin: 0; }

/* Numbered section headings on programme pages */
.num-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }
.num-head .num {
  flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-500); color: #fff;
  display: grid; place-items: center; font: 700 1rem var(--font-body);
}
.num-head.pink .num { background: var(--pink); }
.num-head h2 { margin: 0; font-size: clamp(1.5rem, 3.5vw, 2rem); }

.pill {
  display: inline-block; background: var(--blue-200); color: var(--navy);
  font-weight: 700; font-size: .95rem; padding: .35rem 1rem; border-radius: 999px; margin-bottom: .9rem;
}
.pill--pink { background: var(--pink-100); }

.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .6em; width: 9px; height: 9px; border-radius: 50%;
  background: var(--pink);
}
.ticks--blue li::before { background: var(--blue-300); }

/* Phases */
.phases { display: grid; gap: 1rem; }
@media (min-width: 760px) { .phases { grid-template-columns: repeat(4, 1fr); } }
.phase { background: var(--white); border-radius: var(--radius-sm); padding: 1.3rem; border-top: 5px solid var(--blue-300); border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.phase:nth-child(2) { border-top-color: var(--pink-100); }
.phase:nth-child(3) { border-top-color: var(--blue-500); }
.phase:nth-child(4) { border-top-color: var(--pink); }
.phase h3 { font-size: 1.25rem; margin-bottom: .3em; }
.phase p { font-size: .98rem; margin: 0; }

/* Pricing */
.price-grid { display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .price-grid { grid-template-columns: 1fr 1fr; } }
.price-card { background: var(--white); border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--line); box-shadow: var(--shadow); }
.price-card h3 { text-align: center; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .8rem 1rem; background: var(--blue-50); border-radius: 12px; margin-top: .6rem; }
.price-card--pink .price-row { background: var(--pink-50); }
.price-row b { font-family: var(--font-head); font-weight: 400; font-size: 1.5rem; color: var(--pink); }
.price-row small { color: var(--ink); font-size: .85rem; }
.note-row { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.2rem; }
.note-row span { background: var(--white); border: 1px solid var(--pink-100); border-radius: 999px; padding: .35rem 1rem; font-size: .92rem; }

/* About */
.about-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 860px) { .about-grid { grid-template-columns: .8fr 1.2fr; } }
.portrait { border-radius: var(--radius); overflow: hidden; background: var(--blue-200); box-shadow: var(--shadow); max-width: 380px; margin-inline: auto; }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.facts { display: grid; gap: .8rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.facts li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin: 0; }
.facts b { color: var(--navy); }

/* Contact */
.contact-grid { display: grid; gap: 1.4rem; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: 1.1fr .9fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin: 0; padding: .9rem 0; border-bottom: 1px solid var(--line); display: flex; gap: .8rem; align-items: baseline; flex-wrap: wrap; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .label { min-width: 6.5rem; font-weight: 700; color: var(--navy); }
.contact-list li::marker { content: none; }

/* CTA band with skyline */
.cta-band { position: relative; background: var(--blue-100); overflow: hidden; padding: clamp(3rem, 8vw, 5rem) 0 0; }
.cta-band .inner { padding-bottom: clamp(7rem, 20vw, 11rem); position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); }
.cta-band .skyline { position: absolute; right: 0; bottom: 0; width: min(760px, 100%); z-index: 0; opacity: .95; }
.cta-plain { text-align: center; padding: clamp(2.5rem, 6vw, 4rem) 0; background: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #d6e2f5; padding: 2.8rem 0 1.6rem; font-size: .98rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: 1.8rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .brand { color: #fff; margin-bottom: .6rem; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.copyright { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1.2rem; font-size: .88rem; color: #9fb4d6; }

/* 404 */
.notfound { text-align: center; padding: 5rem 0; }
.notfound img { width: 120px; margin: 0 auto 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

[hidden] { display: none !important; }

.brand span { white-space: nowrap; }

/* Wider header so the full menu fits on one line */
.site-header .container { width: min(100% - 2rem, 1240px); }
.nav a:not(.btn) { padding: .5rem .65rem; }
.nav .btn { margin-left: .2rem; }
@media (max-width: 1180px) { .nav a:not(.btn) { padding: .8rem 1rem; } .nav .btn { margin-left: 0; } }

/* ---------- Student reviews ---------- */
.reviews { display: grid; gap: 1.1rem; margin-top: 1.8rem; }
@media (min-width: 760px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .reviews--3 { grid-template-columns: repeat(3, 1fr); } }
.review { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
.review blockquote { margin: 0; }
.review blockquote p { margin: 0; font-size: 1.02rem; }
.review figcaption { font-size: .92rem; color: var(--ink); display: flex; flex-wrap: wrap; gap: .3rem .7rem; align-items: center; }
.review figcaption b { color: var(--navy); }
.review figcaption span { background: var(--blue-100); color: var(--navy); border-radius: 999px; padding: .1rem .65rem; font-size: .8rem; font-weight: 600; }

.footer-social { display: flex; gap: 1.1rem; margin-top: .8rem; }
.footer-social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.12); }
.footer-social a:hover { background: var(--pink); text-decoration: none; }
.footer-social [hidden] { display: none; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; max-width: 780px; margin: 2rem auto 0; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.3rem; font-weight: 700; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; line-height: 1; color: var(--pink); }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { color: var(--pink-dark); }
.faq .answer { padding: 0 1.3rem 1.2rem; }
.faq .answer p { margin: 0 0 .7rem; }
.faq .answer p:last-child { margin-bottom: 0; }

@media (min-width: 760px) { .review--wide { grid-column: 1 / -1; } }
