/* ============================================================
   2 Steps Ahead Tutoring

   Taking the cues from the logo rather than from a template:
     - two pastels, lilac and mint, used together and in equal measure,
       the way they are in the mark
     - rounded, soft geometry (the footprints and the badge are all curves),
       so cards are generously rounded and buttons are pills
     - a chunky, friendly sans at heavy weights, matching the logo's ring
       text. A literary serif fought the mark; this agrees with it.

   The pastels appear as soft washes and fills behind dark text, never as a
   saturated stripe behind a headline.
   ============================================================ */

:root {
  /* Brand, straight off the logo */
  --lilac:      #D9ABF8;
  --lilac-mid:  #C98DF3;
  --lilac-soft: #F3E8FD;
  --mint:       #BFE2C0;
  --mint-mid:   #A6D4A8;
  --mint-soft:  #E7F3E7;

  /* Ink leans very slightly plum so it sits with the lilac rather than
     fighting it. */
  --ink:      #332E3A;
  --ink-soft: #67606F;

  --paper:   #FFFDFE;
  --raised:  #FFFFFF;

  --rule:       #EBE4EF;
  --rule-mid:   #D6CCDC;
  --rule-input: #8F8797;   /* 3:1 on white — control boundaries, WCAG 1.4.11 */
  --star:       #B8760D;

  --r-card: 18px;
  --r-soft: 12px;

  --maxw:  1100px;
  --nav-h: 76px;

  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

/* Heavy and a little tight — the logo's lettering is bold and closely set. */
h1, h2, h3 { margin: 0 0 .5rem; font-weight: 700; line-height: 1.14; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -.028em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: -.022em; }
h3 { font-size: 1.1rem; letter-spacing: -.012em; line-height: 1.35; margin-bottom: .3rem; }
p  { margin: 0 0 1rem; }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }

.section { padding: clamp(60px, 7.5vw, 100px) 0; }
.section--lilac { background: var(--lilac-soft); }
.section--mint  { background: var(--mint-soft); }

.lede { font-size: 1.18rem; line-height: 1.55; max-width: 50ch; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
/* Pills, to echo the circular badge. The primary button is brand lilac with
   dark text — the mark's own colour doing the work. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: 1rem; font-weight: 600;
  padding: 13px 28px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.btn--solid { background: var(--lilac); color: var(--ink); border-color: var(--lilac-mid); }
.btn--solid:hover { background: var(--lilac-mid); border-color: var(--lilac-mid); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--rule-mid); }
.btn--line:hover { border-color: var(--ink); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(255, 253, 254, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 100%; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.brand b { font-size: 1.04rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }

.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; color: var(--ink-soft); font-size: .97rem; font-weight: 600;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.is-active { color: var(--ink); border-bottom-color: var(--lilac); }

.nav-end { display: flex; align-items: center; gap: 18px; }
.nav-tel { text-decoration: none; color: var(--ink); font-weight: 700; font-size: .97rem; white-space: nowrap; }
.nav-tel:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-end .btn { padding: 10px 22px; font-size: .95rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: none; border: 2px solid var(--rule-mid); border-radius: 999px; cursor: pointer;
}
.nav-toggle i { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); margin: 4px auto; }

/* ---------- Hero ---------- */
/* The logo carries the hero. It is the friendliest thing the brand owns, so
   it gets to be big rather than being hidden at 40px in the corner. */
.hero {
  background: linear-gradient(160deg, var(--mint-soft) 0%, var(--lilac-soft) 100%);
  border-bottom: 1px solid var(--rule);
  padding: clamp(56px, 7vw, 92px) 0;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 15ch; margin-bottom: .4em; }
.hero .lede { max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 0; padding: 0; list-style: none;
}
/* Soft brand pills rather than a bordered feature row. */
.hero-facts li {
  background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px; padding: 7px 16px; font-size: .93rem; font-weight: 600;
}
.hero-logo { width: 100%; max-width: 320px; margin-inline: auto; height: auto; }

/* ---------- Section headings ---------- */
.head { max-width: 56ch; margin-bottom: 44px; }
.head h2 { margin-bottom: .28em; }
.head .muted { margin: 0; font-size: 1.06rem; }

/* ---------- Services ---------- */
/* Rounded cards washed alternately in the two brand pastels, so the pair
   reads the way it does in the mark. */
.svc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.svc {
  padding: 26px 26px 28px; border-radius: var(--r-card);
  background: var(--mint-soft); border: 1px solid rgba(51, 46, 58, .05);
}
/* Row-major over 2 columns, so 4n+2 / 4n+3 gives a true checker rather than
   one colour per column. */
.svc:nth-child(4n + 2), .svc:nth-child(4n + 3) { background: var(--lilac-soft); }
.svc p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

.svc-foot { margin-top: 40px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about h2 { margin-bottom: .32em; }
.about-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.about-list li {
  background: var(--raised); border-radius: var(--r-soft);
  padding: 15px 18px 15px 46px; position: relative; font-weight: 500;
}
/* A rounded brand dot, alternating, instead of a tick glyph. */
.about-list li::before {
  content: ""; position: absolute; left: 18px; top: 50%; margin-top: -6px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--mint);
}
.about-list li:nth-child(even)::before { background: var(--lilac); }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review {
  margin: 0; padding: 24px; background: var(--raised);
  border: 1px solid var(--rule); border-radius: var(--r-card);
}
.review[hidden] { display: none; }
.review .stars { color: var(--star); letter-spacing: 2px; font-size: .85rem; }
.review blockquote { margin: 10px 0 14px; font-size: 1.02rem; line-height: 1.55; }
.review cite { font-style: normal; font-weight: 700; font-size: .92rem; color: var(--ink-soft); }

.reviews-foot { margin-top: 36px; }
.reviews-foot[hidden] { display: none; }

/* ---------- Contact ---------- */
/* Tightened so the section lands inside a laptop window; checked at
   1280x720 and up against the sticky 76px header. */
#contact { padding: clamp(36px, 4.4vw, 62px) 0; }
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-details { margin: 24px 0 0; }
.contact-details dt { font-size: .84rem; font-weight: 700; color: var(--ink-soft); margin-top: 18px; }
.contact-details dd { margin: 1px 0 0; font-size: 1.06rem; }
.contact-details a { color: var(--ink); text-decoration: none; font-weight: 700; }
.contact-details a:hover { text-decoration: underline; text-underline-offset: 3px; }

.form { background: var(--raised); border: 1px solid var(--rule); border-radius: var(--r-card); padding: clamp(18px, 2vw, 24px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 11px; }
.field label { display: block; font-size: .92rem; font-weight: 600; margin-bottom: 5px; }
/* --rule-input, not --rule: at ~1.3:1 the field boundaries were invisible on
   the one section the whole page funnels into. */
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  padding: 10px 14px; border: 1.5px solid var(--rule-input); border-radius: 10px;
}
.field textarea { min-height: 72px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink);
}
.form-note { font-size: .87rem; color: var(--ink-soft); margin: 0 0 14px; }
.form button { width: 100%; }
.form-status { margin-top: 14px; font-size: .95rem; font-weight: 600; display: none; }
.form-status.show { display: block; }
.form-status.err { color: #A32B2B; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #CFC8D5; padding: 58px 0 26px; font-size: .97rem; }
.site-footer a { color: #CFC8D5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 40px; }
.site-footer h4 { margin: 0 0 14px; color: #fff; font-size: .9rem; font-weight: 700; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.footer-brand { display: flex; align-items: center; gap: 11px; color: #fff; font-weight: 700; }
.footer-brand img { width: 40px; height: 40px; background: #fff; border-radius: 50%; padding: 3px; }
.footer-bottom {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: .88rem; color: #968EA0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  /* Logo above the words on narrow screens — it introduces the brand faster
     than the headline does. */
  .hero-logo { order: -1; max-width: 200px; margin-inline: 0; }
  .svc-list { grid-template-columns: 1fr; }
  .svc:nth-child(4n + 2), .svc:nth-child(4n + 3) { background: var(--mint-soft); }
  .svc:nth-child(even) { background: var(--lilac-soft); }
  .about, .contact { grid-template-columns: 1fr; gap: 36px; }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0; display: none;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: 6px 26px 14px;
    box-shadow: 0 14px 26px rgba(51, 46, 58, .10);
  }
  .nav-links.open { display: flex; }
  /* display:block is load-bearing: as inline elements the vertical padding
     added no layout height, so rows overlapped and the tap target was only as
     wide as the word. */
  .nav-links a { display: block; padding: 13px 0; border-bottom: 1px solid var(--rule); color: var(--ink); }
  .nav-links a.is-active { border-bottom-color: var(--rule); }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-tel { display: none; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .reviews { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  /* The wordmark stays: hiding it left only the pale 40px mark, whose ring
     text is unreadable at that size, so the page had no legible name on a
     phone. Room comes from the logo and the gaps instead. */
  .container { padding: 0 20px; }
  .nav { gap: 10px; }
  .brand { gap: 8px; }
  .brand img { width: 34px; height: 34px; }
  /* 13ch wraps the name to two lines rather than three, with room to spare
     beside the CTA and toggle. */
  .brand b { font-size: .92rem; max-width: 13ch; }
  .nav-end { gap: 10px; }
  .nav-end .btn { padding: 9px 16px; font-size: .92rem; }
  .hero-actions .btn { width: 100%; }
}

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