/* ============================================================
   BrightSpark Science — shared stylesheet
   ------------------------------------------------------------
   EASY-EDIT ZONE: change brand colours, fonts and contact-ish
   values in the :root block below. Everything else inherits.
   ============================================================ */

:root {
  /* --- Brand colours --- */
  --ink:        #16242e;   /* main text / dark navy            */
  --ink-soft:   #44565f;   /* secondary text                  */
  --paper:      #fbfaf5;   /* warm off-white page background   */
  --card:       #ffffff;   /* card surfaces                    */
  --line:       #e7e3d8;   /* hairline borders                 */

  --teal:       #0e9384;   /* primary brand colour             */
  --teal-deep:  #0a6c61;
  --coral:      #f86247;   /* accent / call-to-action          */
  --coral-deep: #d8472f;
  --amber:      #f4a623;   /* warm highlight                   */
  --mint:       #e9f5f1;   /* soft tinted background           */

  /* --- Subject colours (used on the subject cards) --- */
  --physics:    #f4a623;
  --chemistry:  #0e9384;
  --biology:    #4aa86a;
  --alevel:     #3a7d5c;

  /* --- Type --- */
  --display: "Fraunces", Georgia, serif;
  --body:    "Plus Jakarta Sans", -apple-system, sans-serif;

  /* --- Shape & depth --- */
  --radius:   18px;
  --radius-sm:12px;
  --shadow:   0 18px 40px -20px rgba(22,36,46,.28);
  --shadow-sm:0 6px 18px -10px rgba(22,36,46,.30);

  --maxw: 1140px;
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* faint dotted science grid behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(14,147,132,.10) 1px, transparent 1px);
  background-size: 26px 26px;
  z-index: -2;
  pointer-events: none;
}

/* ---------- layout helpers ---------- */
.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.section   { padding: 92px 0; }
.section--tint { background: var(--mint); }

.eyebrow {
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 700; color: var(--teal-deep);
  display: inline-flex; align-items: center; gap: .5rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--coral); display: inline-block; }

h1,h2,h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; color: var(--ink); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-top: .6rem; }
h3 { font-size: 1.3rem; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--body); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 100px; cursor: pointer;
  border: 2px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn--primary { background: var(--coral); color: #fff; box-shadow: 0 12px 24px -12px var(--coral-deep); }
.btn--primary:hover { background: var(--coral-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--teal-deep); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(251,250,245,.82);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand span b { color: var(--teal-deep); }
.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav__links a { font-weight: 600; font-size: .98rem; color: var(--ink-soft); transition: color .15s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--teal-deep); }
.nav__cta { padding: .6rem 1.15rem !important; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 84px 0 96px; overflow: hidden; }
.hero::after { /* soft colour wash */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(40% 55% at 82% 18%, rgba(244,166,35,.20), transparent 70%),
    radial-gradient(45% 60% at 12% 12%, rgba(14,147,132,.16), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
.hero h1 .hl { color: var(--teal-deep); position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .28em;
  background: var(--amber); opacity: .45; border-radius: 4px; z-index: -1;
}
.hero .lead { margin: 1.4rem 0 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__trust { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .55rem; }
.pill {
  font-size: .85rem; font-weight: 600; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--line); padding: .4rem .9rem; border-radius: 100px;
}

/* hero visual card */
.hero__visual { position: relative; }
.orbit { position: absolute; inset: -6% -8% auto auto; width: 78%; aspect-ratio: 1; z-index: 0; opacity: .9; }
.hero__card {
  position: relative; z-index: 1; background: var(--card); border: 1px solid var(--line);
  border-radius: 24px; padding: 26px; box-shadow: var(--shadow);
}
.hero__card h3 { font-family: var(--body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.subj-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.subj-row:first-of-type { border-top: 0; }
.subj-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.subj-row b { font-family: var(--display); font-weight: 600; }
.subj-row small { margin-left: auto; color: var(--ink-soft); font-weight: 600; }

/* ============================================================
   SUBJECT CARDS
   ============================================================ */
.head-block { max-width: 640px; margin-bottom: 48px; }
.head-block.center { margin-inline: auto; text-align: center; }
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card__tag { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; margin-bottom: 16px; font-weight: 800; font-family: var(--display); font-size: 1.2rem; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.card__levels { margin-top: 14px; font-size: .85rem; font-weight: 600; color: var(--teal-deep); }

.card--feature { grid-column: span 3; display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; background: var(--ink); border: 0; color: #fff; }
.card--feature h3, .card--feature p { color: #fff; }
.card--feature p { opacity: .8; }
.card--feature .card__tag { background: var(--amber); color: var(--ink); margin: 0; }
.card--feature .badge { background: rgba(255,255,255,.12); padding: .4rem .9rem; border-radius: 100px; font-weight: 700; font-size: .85rem; }

/* ============================================================
   FEATURES / HOW IT WORKS
   ============================================================ */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 34px; }
.feature { }
.feature__num { font-family: var(--display); font-size: 2.4rem; color: var(--coral); line-height: 1; }
.feature h3 { margin: .5rem 0; }
.feature p { color: var(--ink-soft); font-size: .98rem; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.t-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.t-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px;
}
.t-card.feature-wide { grid-column: span 2; background: var(--teal); border: 0; color: #fff; }
.t-card.feature-wide .t-quote, .t-card.feature-wide .t-name { color: #fff; }
.t-card.feature-wide .t-role { color: rgba(255,255,255,.8); }
.stars { color: var(--amber); letter-spacing: 2px; font-size: 1.05rem; }
.feature-wide .stars { color: #ffe49a; }
.t-quote { font-family: var(--display); font-size: 1.12rem; line-height: 1.45; color: var(--ink); }
.t-meta { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.t-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--mint); color: var(--teal-deep); display: grid; place-items: center; font-weight: 800; flex: none; }
.feature-wide .t-avatar { background: rgba(255,255,255,.2); color: #fff; }
.t-name { font-weight: 700; line-height: 1.2; }
.t-role { font-size: .85rem; color: var(--ink-soft); }

/* ============================================================
   AVAILABILITY CALENDAR
   ============================================================ */
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 22px; font-size: .9rem; font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 16px; height: 16px; border-radius: 5px; display: inline-block; }
.swatch-av  { background: var(--mint); border: 1.5px solid var(--teal); }
.swatch-bk  { background: #f3eee4; border: 1.5px solid var(--line); }
.swatch-no  { background: repeating-linear-gradient(45deg,#f3eee4,#f3eee4 5px,#eae4d6 5px,#eae4d6 10px); border: 1.5px solid var(--line); }

.cal-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); }
table.cal { width: 100%; border-collapse: collapse; min-width: 680px; }
.cal th, .cal td { padding: 14px 10px; text-align: center; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.cal th:last-child, .cal td:last-child { border-right: 0; }
.cal thead th { background: var(--ink); color: #fff; font-weight: 700; font-size: .92rem; }
.cal thead th:first-child { background: var(--ink); }
.cal tbody th { background: var(--mint); font-weight: 700; text-align: left; white-space: nowrap; font-size: .9rem; color: var(--ink); }
.cal .slot { font-weight: 700; font-size: .85rem; border-radius: 8px; }
/* EDIT SLOTS: change the class to available / booked / unavailable */
.slot.available  { background: var(--mint); color: var(--teal-deep); }
.slot.booked     { background: #f3eee4; color: #9c9382; }
.slot.unavailable{ background: repeating-linear-gradient(45deg,#f6f2e9,#f6f2e9 6px,#efe9dc 6px,#efe9dc 12px); color: #b3aa97; }
.cal-note { margin-top: 18px; color: var(--ink-soft); font-size: .95rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ink);
  padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,147,132,.15);
}
.field textarea { resize: vertical; min-height: 130px; }
.form .btn { width: 100%; justify-content: center; margin-top: 6px; }

.contact-side { display: flex; flex-direction: column; gap: 18px; }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.info-card h3 { font-family: var(--body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.info-card a, .info-card p { font-family: var(--display); font-size: 1.25rem; color: var(--teal-deep); font-weight: 600; word-break: break-word; }
.info-card.dark { background: var(--ink); border: 0; }
.info-card.dark h3 { color: rgba(255,255,255,.6); }
.info-card.dark p, .info-card.dark a { color: #fff; }
.info-card.dark .hours { font-family: var(--body); font-size: .95rem; font-weight: 500; opacity: .85; }

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-head { padding: 70px 0 10px; text-align: center; }
.page-head h1 { font-size: clamp(2.2rem,4.5vw,3.2rem); }
.page-head p { margin: .8rem auto 0; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { background: var(--ink); color: #fff; border-radius: 26px; padding: 56px; text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(50% 80% at 80% 0%, rgba(244,166,35,.28), transparent 60%), radial-gradient(50% 80% at 12% 100%, rgba(14,147,132,.32), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 50ch; margin: .8rem auto 1.8rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 56px 0 34px; border-top: 1px solid var(--line); margin-top: 20px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer .brand { font-size: 1.15rem; }
.footer__col h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; }
.footer__col a { display: block; color: var(--ink-soft); font-weight: 600; font-size: .95rem; padding: 4px 0; }
.footer__col a:hover { color: var(--ink); }
.footer__links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer__bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; color: var(--ink-soft); font-size: .85rem; }

/* ============================================================
   ENTRANCE ANIMATION (CSS only)
   ============================================================ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal { animation: fadeUp .7s cubic-bezier(.2,.7,.3,1) both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .16s; }
.d3 { animation-delay: .24s; } .d4 { animation-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; } html { scroll-behavior: auto; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .orbit { display: none; }
  .cards, .feature-grid, .t-grid { grid-template-columns: 1fr 1fr; }
  .card--feature { grid-column: span 2; grid-template-columns: 1fr; text-align: center; }
  .card--feature .card__tag { margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav__links.open { max-height: 420px; }
  .nav__links li { width: 100%; border-top: 1px solid var(--line); }
  .nav__links a { display: block; padding: 16px 20px; }
  .nav__links .nav__cta { margin: 14px 20px; }
  .nav__toggle { display: block; }
  .cards, .feature-grid, .t-grid { grid-template-columns: 1fr; }
  .card--feature, .t-card.feature-wide { grid-column: span 1; }
  .cta-band { padding: 40px 24px; }
  .feature-grid { gap: 26px; }
}
