/* ===================================================================
   The Tutor Lyfe — Global Stylesheet
   Color palette pulled from the brand logo
   =================================================================== */

:root {
  /* Brand colors (from logo) */
  --cream:        #EAE8D8;   /* logo background */
  --cream-deep:   #DEDCCB;
  --green:        #2C7A38;   /* "tutor" green */
  --green-dark:   #1F5B28;
  --green-soft:   #E7F0E4;
  --charcoal:     #2D2D2D;   /* "the" + "LYFE" text */
  --charcoal-soft:#4A4A4A;
  --yellow:       #EAB94F;   /* pencil body */
  --yellow-soft:  #F7E9C4;
  --coral:        #F2827E;   /* eraser */
  --blue:         #A9C9F2;   /* pencil band */
  --white:        #FFFFFF;

  /* Functional */
  --text:         #2D2D2D;
  --text-muted:   #5C5C57;
  --bg:           #F4F3EA;
  --card-bg:      #FFFFFF;
  --border:       #E0DED0;
  --shadow:       0 10px 30px rgba(45, 45, 45, 0.08);
  --shadow-lg:    0 24px 60px rgba(45, 45, 45, 0.14);

  --radius:       18px;
  --radius-sm:    12px;
  --maxw:         1140px;

  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;
  --font-hand: 'Caveat', cursive;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--charcoal); line-height: 1.15; font-weight: 700; }
ul { list-style: none; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  padding: 14px 28px; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(44,122,56,.28); }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-secondary { background: var(--yellow); color: var(--charcoal); box-shadow: 0 8px 20px rgba(234,185,79,.32); }
.btn-secondary:hover { background: #e0ac38; color: var(--charcoal); }
.btn-ghost { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-ghost:hover { background: var(--charcoal); color: #fff; }
.btn-lg { padding: 16px 34px; font-size: 17px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 243, 234, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { height: 52px; width: auto; border-radius: 10px; }
.nav-brand .brand-text { font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--charcoal); letter-spacing: -.5px; }
.nav-brand .brand-text .lyfe { color: var(--green); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-family: var(--font-head); font-weight: 500; font-size: 16px; color: var(--charcoal); }
.nav-links a:hover, .nav-links a.active { color: var(--green); }
.nav-cta { margin-left: 8px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--charcoal); border-radius: 2px; margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(234,185,79,.25), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(44,122,56,.12), transparent 55%),
    var(--cream);
  padding: 80px 0 90px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-soft); color: var(--green-dark);
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(38px, 5vw, 60px); letter-spacing: -1.5px; margin-bottom: 8px; }
.hero h1 .accent { color: var(--green); }
.hero .hand {
  font-family: var(--font-hand); color: var(--green); font-size: clamp(34px, 4.4vw, 50px);
  font-weight: 700; display: block; margin-bottom: 18px; transform: rotate(-2deg);
}
.hero p.lead { font-size: 19px; color: var(--text-muted); max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 28px; display: flex; gap: 26px; flex-wrap: wrap; }
.hero-trust div { display: flex; align-items: center; gap: 9px; font-weight: 600; color: var(--charcoal); font-size: 15px; }
.hero-trust .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }

.hero-visual { position: relative; }
.hero-visual .photo {
  border-radius: 26px; box-shadow: var(--shadow-lg); width: 100%;
  border: 6px solid #fff; object-fit: cover; aspect-ratio: 4/5;
}
.hero-badge {
  position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
}
.hero-badge .emoji { font-size: 26px; }
.hero-badge strong { display: block; font-family: var(--font-head); font-size: 16px; color: var(--charcoal); }
.hero-badge span { font-size: 13px; color: var(--text-muted); }
.hero-badge.b1 { top: 26px; left: -26px; }
.hero-badge.b2 { bottom: 26px; right: -22px; }

/* ---------- Section basics ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--white); }
.section.cream { background: var(--cream); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head .kicker {
  font-family: var(--font-head); font-weight: 600; color: var(--green);
  text-transform: uppercase; letter-spacing: 2px; font-size: 13px; margin-bottom: 12px; display: block;
}
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -1px; margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 18px; }

/* ---------- Feature cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  font-size: 28px; margin-bottom: 18px; background: var(--green-soft);
}
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 16px; }

/* ---------- About / split ---------- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.split.reverse { grid-template-columns: 1.1fr .9fr; }
.split-photo { border-radius: 24px; box-shadow: var(--shadow-lg); border: 6px solid #fff; width: 100%; object-fit: cover; }
.split h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -1px; margin-bottom: 18px; }
.split p { color: var(--text-muted); margin-bottom: 16px; }
.cred-list { display: flex; flex-direction: column; gap: 14px; margin: 22px 0 28px; }
.cred-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--charcoal); }
.cred-list .tick {
  flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--green);
  color: #fff; display: grid; place-items: center; font-size: 14px; margin-top: 1px;
}

/* ---------- Grade / programs strip ---------- */
.grades { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.grade-pill {
  background: #fff; border: 2px solid var(--border); border-radius: 14px;
  padding: 18px 24px; text-align: center; min-width: 120px; transition: .2s; box-shadow: var(--shadow);
}
.grade-pill:hover { border-color: var(--green); transform: translateY(-4px); }
.grade-pill .g { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--green); }
.grade-pill .lbl { font-size: 13px; color: var(--text-muted); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { text-align: center; padding: 10px; }
.step .num {
  width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--yellow); color: var(--charcoal); font-family: var(--font-head);
  font-weight: 700; font-size: 22px; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(234,185,79,.32);
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 16px; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: 40px; color: var(--green); letter-spacing: -1px; }
.stat .lbl { color: var(--text-muted); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green); border-radius: 28px; padding: 60px 48px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 100% 0%, rgba(234,185,79,.35), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 12px; letter-spacing: -1px; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 18px; margin-bottom: 28px; max-width: 560px; margin-inline: auto; }

/* ---------- Testimonials (placeholder-ready) ---------- */
.quote-card { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.quote-card .stars { color: var(--yellow); font-size: 18px; margin-bottom: 12px; letter-spacing: 2px; }
.quote-card p { font-size: 17px; color: var(--charcoal); margin-bottom: 18px; }
.quote-card .who { font-family: var(--font-head); font-weight: 600; color: var(--charcoal); font-size: 15px; }
.quote-card .who span { display: block; font-weight: 400; color: var(--text-muted); font-size: 13px; }

/* ---------- Contact / Form ---------- */
.form-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.form-side h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -1px; margin-bottom: 16px; }
.form-side p { color: var(--text-muted); margin-bottom: 24px; }
.contact-info { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.contact-info li { display: flex; gap: 14px; align-items: center; }
.contact-info .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft); display: grid; place-items: center; font-size: 20px; }
.contact-info strong { font-family: var(--font-head); display: block; font-size: 15px; color: var(--charcoal); }
.contact-info span { font-size: 14px; color: var(--text-muted); }

.lead-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--charcoal); display: block; margin-bottom: 7px; }
.field label .req { color: var(--coral); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font-family: var(--font-body); font-size: 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: #fafaf6;
  color: var(--text); transition: border .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(44,122,56,.12); background: #fff;
}
.field textarea { resize: vertical; min-height: 96px; }
.form-note { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.lead-form .btn { width: 100%; justify-content: center; margin-top: 6px; }

.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; display: none; font-size: 15px; }
.form-status.show { display: block; }
.form-status.success { background: var(--green-soft); color: var(--green-dark); border: 1px solid #bfe0c4; }
.form-status.error { background: #fdecec; color: #b13b37; border: 1px solid #f6c9c7; }
.btn[disabled] { opacity: .65; cursor: not-allowed; transform: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 14px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 20px 24px; font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--charcoal); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .plus { color: var(--green); font-size: 22px; transition: transform .25s ease; flex-shrink: 0; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 24px 20px; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #d7d7cf; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 40px; }
.footer-brand img { height: 56px; border-radius: 10px; margin-bottom: 16px; background: var(--cream); padding: 4px; }
.footer-brand p { color: #b3b3aa; font-size: 15px; max-width: 280px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { color: #c9c9c0; font-size: 15px; }
.site-footer ul a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid #444; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #9a9a90; font-size: 14px; }
.footer-bottom a { color: #c9c9c0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { background: var(--cream); padding: 60px 0 56px; text-align: center; }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 50px); letter-spacing: -1.4px; margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); font-size: 19px; max-width: 620px; margin: 0 auto; }
.breadcrumb { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .split, .split.reverse, .form-wrap { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-photo { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; top: 76px; left: 0; right: 0; background: var(--cream);
    flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border); transform: translateY(-150%); transition: transform .3s ease; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2, .steps, .stats { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 26px; }
  .hero-badge.b1 { left: 8px; }
  .hero-badge.b2 { right: 8px; }
}
