/* CoreTech Academy — site styles. Brand colours sampled from the logo. */
:root {
  --navy: #0b2230;
  --navy-2: #12354a;
  --ink: #1d3442;
  --muted: #4f6573;
  --teal: #00a098;        /* logo teal — decorative only (3.2:1 on white) */
  --teal-dark: #007a72;   /* buttons/links — 5.4:1 with white */
  --teal-darker: #00635c;
  --green: #18c050;       /* logo green — accents only */
  --soft: #eef8f7;
  --line: #d9e8e6;
  --gold: #ffd23c;
  --radius: 16px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section.soft { background: var(--soft); }
.section-head { max-width: 640px; margin: 0 0 32px; }
.section-head p { color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 12px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--teal-dark); color: #fff;
  font-weight: 700; font-size: 1.05rem; text-decoration: none;
  padding: 15px 26px; border-radius: 999px;
  border: 0; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--teal-darker); transform: translateY(-1px); }
.btn.small { padding: 10px 18px; font-size: .95rem; }
.btn.light { background: #fff; color: var(--navy); }
.btn.light:hover { background: var(--soft); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(150%) blur(6px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo img { width: 150px; }

/* Hero */
.hero {
  background: radial-gradient(1200px 500px at 85% 20%, rgba(0, 160, 152, .35), transparent 60%),
              linear-gradient(160deg, var(--navy) 0%, #0f2c3e 55%, #14304a 100%);
  color: #dcecef;
  padding: 56px 0 64px;
  overflow: hidden;
}
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: #4fe0a0; }
.hero .eyebrow { color: #7fe3dc; }
.hero .lead { font-size: 1.15rem; color: #cfe2e6; max-width: 34em; }
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 24px; }
.reassure { font-size: .95rem; color: #a9c5cc; }
.rating { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: .95rem; color: #cfe2e6; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1.05rem; }

.showcase { justify-self: center; text-align: center; }
.phone {
  width: 250px;
  border: 10px solid #05121a;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 20px 60px rgba(0, 0, 0, .45), 0 0 80px rgba(0, 160, 152, .35);
  margin: 0 auto;
}
.showcase figcaption { font-size: .9rem; color: #a9c5cc; margin-top: 14px; max-width: 280px; }
.showcase figcaption strong { color: #fff; }

/* Cards */
.grid { display: grid; gap: 18px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--soft); color: var(--teal-dark);
  font-size: 1.3rem; margin-bottom: 14px;
}
.section.soft .card { border-color: transparent; box-shadow: 0 1px 2px rgba(11, 34, 48, .06); }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding-left: 64px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal-dark); color: #fff;
  font-weight: 800; display: grid; place-items: center;
}
.steps p { color: var(--muted); }

/* Pricing */
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--teal); }
.price { font-size: 2.4rem; font-weight: 800; color: var(--navy); line-height: 1; margin: 6px 0 4px; }
.price span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 8px; color: var(--ink); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-dark); font-weight: 800; }
.tag {
  align-self: flex-start;
  background: var(--soft); color: var(--teal-dark);
  font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.note { color: var(--muted); margin-top: 20px; }

/* Tutor */
.tutor { display: grid; gap: 24px; align-items: start; }
.avatar {
  width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--green));
  color: #fff; font-size: 2.2rem; font-weight: 800;
  display: grid; place-items: center;
}

/* FAQ */
.faq details {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 0 20px; margin-bottom: 12px; background: #fff;
}
.faq summary {
  cursor: pointer; list-style: none;
  font-weight: 700; color: var(--navy);
  padding: 18px 28px 18px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 14px;
  font-size: 1.5rem; color: var(--teal-dark); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* Final CTA */
.final {
  background: linear-gradient(140deg, var(--teal-dark), #0b5f6d);
  color: #e6f6f4; text-align: center; padding: 64px 0;
}
.final h2 { color: #fff; }
.final p { max-width: 520px; margin: 0 auto 24px; }

/* Footer */
.site-footer { padding: 32px 0 40px; font-size: .95rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Mobile sticky booking bar */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(11, 34, 48, .08);
}
.mobile-cta .btn { width: 100%; }
body.has-mobile-cta { padding-bottom: 76px; }

/* Plain text pages (privacy) */
.prose { max-width: 720px; padding: 48px 20px 64px; margin: 0 auto; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose li { margin-bottom: 6px; }

@media (min-width: 720px) {
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .steps li { padding-left: 0; padding-top: 60px; }
  .tutor { grid-template-columns: 88px 1fr; }
  .logo img { width: 170px; }
}

@media (min-width: 900px) {
  .section { padding: 88px 0; }
  .hero { padding: 72px 0 88px; }
  .hero .wrap { grid-template-columns: 1.25fr 1fr; gap: 56px; }
  .phone { width: 280px; }
  .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .mobile-cta { display: none; }
  body.has-mobile-cta { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
