/* =========================================================
   Learn with Ms Jay — Tutoring site stylesheet
   Palette: deep navy + warm gold + cream
   ========================================================= */

:root {
  --navy: #1e3a5f;
  --navy-dark: #14273f;
  --navy-light: #2d537f;
  --gold: #c9a961;
  --gold-dark: #a8883f;
  --cream: #faf7f1;
  --cream-2: #f3ede0;
  --ink: #1f2a37;
  --ink-soft: #4b5563;
  --line: #e5dfd0;
  --white: #ffffff;
  --shadow: 0 6px 24px rgba(30, 58, 95, 0.08);
  --shadow-lg: 0 12px 40px rgba(30, 58, 95, 0.14);
  --radius: 10px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--navy); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--gold-dark); }

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

/* ---------- Top bar / navigation ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  color: var(--navy);
  font-weight: 700;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-tagline {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.65rem;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}
.footer-brand .brand-tagline { color: rgba(255, 255, 255, 0.55); }
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.97rem;
  color: var(--ink);
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}
.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 18px !important;
  border-radius: var(--radius);
  border: none !important;
  font-weight: 600;
}
.nav-cta:hover { background: var(--navy-dark); color: var(--white) !important; }

/* mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--navy);
  font-size: 1.1rem;
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    gap: 14px;
  }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform .1s ease, background .15s ease, color .15s ease;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-dark); color: var(--white); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-dark); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 80px;
  background:
    radial-gradient(1000px 400px at 85% -10%, rgba(201,169,97,0.18), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 14px;
}
.hero p.lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 28px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 34px;
  position: relative;
  border: 1px solid var(--line);
}
.hero-card h3 { margin-top: 0; }
.hero-card ul { padding-left: 20px; margin: 0; color: var(--ink-soft); }
.hero-card li { margin-bottom: 8px; }
.hero-card .badge {
  position: absolute;
  top: -14px; left: 28px;
  background: var(--gold);
  color: var(--navy-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .hero { padding: 60px 0 50px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section-head p { font-size: 1.05rem; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .icon {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  background: var(--cream-2);
  color: var(--gold-dark);
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1;
}
.card h3 { margin-top: 0; }
.card p { margin-bottom: 0; }

/* ---------- Alternating section background ---------- */
.band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Pricing tiers ---------- */
.tier {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.tier.featured {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
}
.tier.featured::before {
  content: "Most popular";
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tier.coming-soon {
  border-style: dashed;
  border-color: var(--gold);
}
.tier.coming-soon::before {
  content: "Coming Soon";
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tier h3 { margin-top: 0; }
.tier .price {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.4rem;
  color: var(--navy);
  font-weight: 700;
  margin: 8px 0 4px;
}
.tier .price small {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 400;
  font-family: "Inter", sans-serif;
}
.tier ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
  flex-grow: 1;
}
.tier ul li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
  padding-left: 26px;
  position: relative;
}
.tier ul li:last-child { border-bottom: none; }
.tier ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-weight: 700;
}

/* ---------- Testimonials ---------- */
.quote {
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 28px 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.quote blockquote {
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 0 18px;
  font-style: italic;
  line-height: 1.6;
  flex-grow: 1;
}
.quote blockquote::before { content: "\201C"; font-family: "Playfair Display", serif; font-size: 2.8rem; color: var(--gold); line-height: 0; vertical-align: -0.35em; margin-right: 6px; }
.quote cite {
  font-style: normal;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}
.quote cite small { display: block; color: var(--ink-soft); font-weight: 400; margin-top: 2px; }

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: start;
}
.portrait {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 3.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(201,169,97,0.2), transparent 60%);
}
.credentials-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.credentials-heading {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
  margin: 0 0 12px;
}
.credentials {
  list-style: none;
  padding: 0;
  margin: 0;
}
.credentials li {
  padding: 10px 0 10px 30px;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--ink-soft);
}
.credentials li::before {
  content: "★";
  position: absolute;
  left: 4px;
  color: var(--gold);
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .portrait { max-width: 260px; margin: 0 auto; }
}

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}
.contact-info { padding-top: 10px; }
.contact-info .info-block { margin-bottom: 24px; }
.contact-info .info-block strong { color: var(--navy); display: block; margin-bottom: 4px; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-info .info-block span { color: var(--ink); font-size: 1.05rem; }

form.booking {
  background: var(--white);
  border-radius: 14px;
  padding: 34px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
form.booking label {
  display: block;
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 6px;
}
form.booking input,
form.booking select,
form.booking textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--cream);
  margin-bottom: 18px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
form.booking input:focus,
form.booking select:focus,
form.booking textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,97,0.2);
  background: var(--white);
}
form.booking textarea { min-height: 120px; resize: vertical; }
form.booking .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
form.booking button { width: 100%; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  form.booking .row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Page header (non-home pages) ---------- */
.page-head {
  padding: 70px 0 40px;
  background: linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.page-head h1 { margin-bottom: 12px; }
.page-head p { max-width: 640px; margin: 0 auto; font-size: 1.08rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 70px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 90% 10%, rgba(201,169,97,0.25), transparent 60%);
  pointer-events: none;
}
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 24px; font-size: 1.05rem; }
.cta-banner .btn-gold { font-size: 1.02rem; padding: 14px 28px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.8);
  padding: 50px 0 26px;
  font-size: 0.95rem;
}
.site-footer a { color: var(--gold); }
.site-footer a:hover { color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 {
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-brand .brand-mark { background: var(--gold); color: var(--navy-dark); }
.footer-brand p { color: rgba(255,255,255,0.7); margin-top: 14px; max-width: 36ch; }
.footer-bottom {
  padding-top: 20px;
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff !important;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35), 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 100;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  text-decoration: none;
}
.wa-float:hover {
  background: #1da851;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.5), 0 3px 12px rgba(0, 0, 0, 0.2);
  color: #fff !important;
}
.wa-float:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.wa-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
  display: block;
}
.wa-float .wa-label {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy-dark);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.wa-float .wa-label::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--navy-dark);
}
.wa-float:hover .wa-label,
.wa-float:focus-visible .wa-label { opacity: 1; }

@media (max-width: 600px) {
  .wa-float { width: 54px; height: 54px; bottom: 18px; right: 18px; }
  .wa-float svg { width: 28px; height: 28px; }
  .wa-float .wa-label { display: none; }
}
