/* ==========================================================================
   ENITOR TUITION — stylesheet
   --------------------------------------------------------------------------
   Colours, fonts and spacing all live in the :root block just below.
   To re-brand the whole site, you only need to change the values there.
   ========================================================================== */

:root {
  /* ---- Brand colours (pulled from your logo) ---------------------------- */
  --navy:        #20304f;   /* main dark blue (headings, nav, text)          */
  --navy-deep:   #182338;   /* darker navy for strong contrast              */
  --gold:        #b08d4f;   /* logo gold — accents, buttons, dividers        */
  --gold-dark:   #977a42;   /* gold on hover                                 */
  --cream:       #f6f1e7;   /* page background (logo background colour)      */
  --cream-soft:  #efe7d7;   /* slightly deeper cream for banded sections     */
  --surface:     #ffffff;   /* cards                                         */
  --ink:         #263043;   /* body text                                     */
  --muted:       #6a7180;   /* secondary / caption text                      */
  --line:        #e3d9c4;   /* hairline borders                              */

  /* ---- Fonts ----------------------------------------------------------- */
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ---- Layout ---------------------------------------------------------- */
  --maxw: 1120px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(24, 35, 56, 0.08);
  --shadow-lg: 0 18px 50px rgba(24, 35, 56, 0.14);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--display); color: var(--navy); line-height: 1.12; font-weight: 600; }

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

/* Section rhythm */
.section { padding: 84px 0; }
.section--band { background: var(--cream-soft); }

.eyebrow {
  font-family: var(--body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 14px;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }

/* Signature motif: gold hairline with a centred diamond (echoes the logo) */
.divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px auto 0; max-width: 240px; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--gold); flex: 1; opacity: 0.6; }
.divider span { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 999px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--gold); color: #fff; }
.btn--primary:hover { background: var(--gold-dark); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--nav { padding: 9px 20px; font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand img { height: 42px; width: auto; }
.nav__brand-name { font-family: var(--display); font-size: 1.35rem; color: var(--navy); font-weight: 600; letter-spacing: 0.02em; }
.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav__links a { color: var(--navy); font-weight: 500; font-size: 0.95rem; }
.nav__links a:hover { color: var(--gold-dark); text-decoration: none; }

/* Mobile menu toggle */
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: 0.25s; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding: 76px 0 68px; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero__emblem { text-align: center; }
.hero__emblem img { margin: 0 auto; max-width: 380px; width: 100%; }
.hero h1 { font-size: clamp(2.6rem, 5.5vw, 4rem); font-weight: 600; }
.hero h1 .accent { color: var(--gold-dark); font-style: italic; }
.hero__lead { font-size: 1.15rem; color: var(--muted); margin: 22px 0 32px; max-width: 520px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Trust stats strip */
.stats { display: flex; gap: 40px; margin-top: 46px; flex-wrap: wrap; }
.stat__num { font-family: var(--display); font-size: 2.2rem; color: var(--navy); font-weight: 600; line-height: 1; }
.stat__label { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.04em; margin-top: 4px; }

/* --------------------------------------------------------------------------
   Tutors
   -------------------------------------------------------------------------- */
.tutor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 280px)); gap: 26px; justify-content: center; max-width: 1000px; margin: 0 auto; }

.tutor-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.tutor-card__photo { aspect-ratio: 1 / 1; background: #eef1f5; overflow: hidden; }
.tutor-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.tutor-card__body { padding: 20px 20px 24px; }
.tutor-card__name { font-size: 1.4rem; }
.tutor-card__subjects { display: flex; flex-wrap: wrap; gap: 6px; margin: 11px 0 13px; }
.tag {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.01em;
  color: var(--navy); background: var(--cream-soft);
  border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px;
}
.tutor-card__bio { color: var(--ink); font-size: 0.9rem; line-height: 1.6; }

/* --------------------------------------------------------------------------
   Classes (two equal "offer" cards, styled like the tutor profile)
   -------------------------------------------------------------------------- */
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; max-width: 900px; margin: 0 auto; }

.offer-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
/* Header band (the visual "top" of the card, like the tutor photo) */
.offer-card__head {
  background: var(--navy);
  color: #fff;
  padding: 28px 28px 24px;
  position: relative;
}
.offer-card__head h3 { color: #fff; font-size: 1.85rem; }
.offer-card__meta { color: var(--gold); font-weight: 600; font-size: 0.88rem; letter-spacing: 0.03em; margin-top: 4px; }
.offer-card__badge {
  display: inline-block; margin-bottom: 12px;
  background: var(--gold); color: #fff;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
/* Body */
.offer-card__body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.offer-list { list-style: none; margin-bottom: 22px; }
.offer-list li { position: relative; padding-left: 26px; margin-bottom: 11px; color: var(--ink); font-size: 0.97rem; }
.offer-list li::before {
  content: ""; position: absolute; left: 3px; top: 9px;
  width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg);
}
.offer-card__price { font-family: var(--display); font-size: 1.45rem; color: var(--navy); font-weight: 600; margin: auto 0 20px; }
.offer-card .btn { width: 100%; }

.coming-soon {
  margin-top: 30px; text-align: center;
  border: 1px dashed var(--gold); border-radius: var(--radius);
  padding: 22px; color: var(--muted); background: rgba(176,141,79,0.05);
  max-width: 900px; margin-left: auto; margin-right: auto;
}
.coming-soon strong { color: var(--navy); }

/* Group card gets the spotlight as the main offering */
.offer-card--feature { border: 2px solid var(--gold); box-shadow: var(--shadow-lg); }
.offer-card--feature .offer-card__head { background: var(--navy-deep); }

.classes-lead { text-align: center; max-width: 620px; margin: -30px auto 44px; color: var(--muted); font-size: 1.02rem; }

/* --------------------------------------------------------------------------
   Student results
   -------------------------------------------------------------------------- */
.results { background: var(--navy); }
.results .section-head h2 { color: #fff; }
.results .section-head p { color: #b9c2d4; }
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 940px; margin: 0 auto; }
.result-card {
  text-align: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 34px 24px;
}
.result-card__num { font-family: var(--display); font-size: 3rem; color: var(--gold); font-weight: 600; line-height: 1; }
.result-card__label { color: #dbe1ec; margin-top: 12px; font-size: 0.98rem; }
.results-note { text-align: center; color: #8592a8; font-size: 0.82rem; margin-top: 30px; }

/* --------------------------------------------------------------------------
   Perks / offers (classes page)
   -------------------------------------------------------------------------- */
.perks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 900px; margin: 0 auto; }
.perk {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 30px; box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}
.perk__tag {
  display: inline-block; margin-bottom: 14px;
  background: var(--cream-soft); color: var(--gold-dark);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line);
}
.perk h3 { font-size: 1.5rem; margin-bottom: 8px; }
.perk p { color: var(--muted); font-size: 0.98rem; }
.perk .btn { margin-top: 18px; }

/* Simple page header for the standalone Tutors / Classes pages */
.page-head { padding: 60px 0 8px; text-align: center; }
.page-head .eyebrow { text-align: center; }

/* --------------------------------------------------------------------------
   Reviews
   -------------------------------------------------------------------------- */
.reviews-grid { columns: 3 300px; column-gap: 26px; }
.review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  margin-bottom: 26px;
  break-inside: avoid;
  box-shadow: var(--shadow);
}
.review__stars { color: var(--gold); letter-spacing: 2px; font-size: 0.95rem; }
.review__text { margin: 12px 0 16px; color: var(--ink); font-size: 0.98rem; }
.review__foot { display: flex; align-items: center; justify-content: space-between; }
.review__name { font-weight: 600; color: var(--navy); }
.review__src { font-size: 0.72rem; color: var(--muted); border: 1px solid var(--line); padding: 3px 9px; border-radius: 6px; }

/* --------------------------------------------------------------------------
   Enquiry form
   -------------------------------------------------------------------------- */
.enquire-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: start; }
.enquire-info h2 { font-size: clamp(2rem, 4vw, 2.7rem); }
.enquire-info p { color: var(--muted); margin: 14px 0 26px; }
.contact-list { list-style: none; }
.contact-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--ink); }
.contact-list .ico { width: 20px; height: 20px; flex: 0 0 20px; color: var(--gold-dark); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--body); font-size: 0.98rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--cream); transition: border 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,141,79,0.15); background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; }
.form-card .btn { width: 100%; margin-top: 4px; }

.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: 0.95rem; display: none; }
.form-status.is-success { display: block; background: #e9f3ea; color: #256b34; border: 1px solid #bcdcc0; }
.form-status.is-error { display: block; background: #fbeaea; color: #a12b2b; border: 1px solid #e6c2c2; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--navy-deep); color: #cdd5e2; padding: 56px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer__brand img { height: 40px; background: var(--cream); border-radius: 8px; padding: 4px; }
.footer__brand span { font-family: var(--display); font-size: 1.4rem; color: #fff; }
.footer p { color: #9aa6ba; font-size: 0.92rem; max-width: 320px; }
.footer h4 { color: #fff; font-family: var(--body); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a, .footer ul span { color: #cdd5e2; font-size: 0.93rem; }
.footer ul a:hover { color: var(--gold); text-decoration: none; }
.footer__social { display: flex; gap: 12px; margin-top: 4px; }
.footer__social a { width: 38px; height: 38px; border: 1px solid #37425c; border-radius: 50%; display: grid; place-items: center; color: #cdd5e2; }
.footer__social a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.footer__bar { border-top: 1px solid #2b3550; padding-top: 22px; text-align: center; color: #8592a8; font-size: 0.85rem; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__emblem { order: -1; }
  .hero__emblem img { max-width: 260px; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__cta, .stats { justify-content: center; }
  .offer-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .perks-grid { grid-template-columns: 1fr; }
  .enquire-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }

  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px 24px 20px; display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav__links li:last-child { padding-top: 12px; }
  .nav__links .btn--nav { padding: 11px 20px; }
}

@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .stats { gap: 26px; }
}

/* Accessibility: respect reduced-motion + keyboard focus */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
