/* ============================================================
   Expert Tutors Online — Design System v2
   Friendly kids' academy: brand navy + green, big rounded shapes,
   playful badges, wave dividers, owl mascot illustration.
   ============================================================ */
:root {
  --navy: #252e4d;
  --navy-light: #364167;
  --navy-70: rgba(37, 46, 77, 0.72);
  --navy-50: rgba(37, 46, 77, 0.5);
  --green: #74a637;
  --green-dark: #5f8a2c;
  --green-light: #eaf3df;
  --gold: #f2ab1d;
  --gold-light: #fdf1d6;
  --bg: #fbfaf5;
  --bg-alt: #eef4e6;
  --border: #e1e6d9;
  --paper: #ffffff;
  --text-dark: #263047;

  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; position: relative; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", sans-serif;
  line-height: 1.2; font-weight: 700; letter-spacing: -0.01em;
  color: var(--navy);
}
h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { color: var(--navy-70); }

.section { padding: 88px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.7); }
.section-header { max-width: 640px; margin: 0 auto 48px; }
.section-header.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-light); color: #a4700f;
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.04em;
  padding: 6px 16px; border-radius: 50px; margin-bottom: 16px;
}
.section-dark .eyebrow { background: rgba(242,171,29,0.16); color: var(--gold); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: 0.06s; }
.reveal-delay-2.in-view { transition-delay: 0.12s; }
.reveal-delay-3.in-view { transition-delay: 0.18s; }
.reveal-delay-4.in-view { transition-delay: 0.24s; }

/* ---------- Buttons (pill-shaped, playful) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 700; font-size: 0.96rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 10px 24px rgba(116,166,55,0.32); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(116,166,55,0.4); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-3px); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-light); transform: translateY(-3px); }
.btn-block { width: 100%; }
.btn-sm { padding: 11px 24px; font-size: 0.85rem; }

/* ---------- Icon badges (colorful circles instead of flat icons) ---------- */
.icon-badge {
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(37,46,77,0.1);
}
.icon-badge.badge-green { background: var(--green); }
.icon-badge.badge-navy { background: var(--navy); }
.icon-badge.badge-gold { background: var(--gold); }
.icon-badge.badge-sm { width: 44px; height: 44px; font-size: 1.2rem; }

/* ---------- Wave divider ---------- */
.wave-divider { line-height: 0; margin-top: -2px; }
.wave-divider svg { display: block; width: 100%; height: 64px; }

/* ---------- Floating decoration ---------- */
.floaty { animation: floaty 4.5s ease-in-out infinite; }
.floaty-slow { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.decor-star { position: absolute; z-index: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--bg);
  border-bottom: 3px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled { border-color: var(--green); box-shadow: 0 4px 16px rgba(37,46,77,0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.logo { display: flex; align-items: center; }
.logo-img { height: 46px; width: auto; }
.footer-logo { height: 42px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  position: relative;
  font-weight: 600; color: var(--navy-70); font-size: 0.93rem;
  padding: 9px 16px; border-radius: 50px;
  transition: color 0.2s ease, background 0.2s ease;
}
.site-nav a:not(.btn):hover { color: var(--navy); background: var(--bg-alt); }
.site-nav a.active:not(.btn) { color: var(--navy); background: var(--green-light); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 10; }
.nav-toggle span { width: 24px; height: 3px; border-radius: 2px; background: var(--navy); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 76px 0 0; overflow: visible; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding-bottom: 64px; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { color: var(--green-dark); position: relative; white-space: nowrap; }
.hero p.lead { font-size: 1.12rem; margin-bottom: 34px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 0; flex-wrap: wrap; }
.hero-stats div {
  flex: 1; min-width: 150px; background: var(--paper); border-radius: var(--radius-sm);
  padding: 16px 18px; margin-right: 14px; box-shadow: 0 8px 20px rgba(37,46,77,0.06);
}
.hero-stats strong { display: block; font-family: "Poppins", sans-serif; font-size: 1.7rem; font-weight: 700; color: var(--navy); }
.hero-stats span { font-size: 0.8rem; color: var(--navy-50); font-weight: 600; }

.hero-illustration { position: relative; display: flex; align-items: center; justify-content: center; min-height: 380px; }
.hero-blob { position: absolute; inset: 0; z-index: 0; }
.hero-blob svg { width: 100%; height: 100%; }
.mascot-owl { position: relative; z-index: 2; width: 78%; max-width: 320px; filter: drop-shadow(0 20px 30px rgba(37,46,77,0.18)); }
.hero-illustration .decor-star:nth-child(2) { top: 6%; left: 4%; }
.hero-illustration .decor-star:nth-child(3) { bottom: 10%; right: 2%; }
.hero-illustration .decor-star:nth-child(4) { top: 46%; right: -2%; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 60px 0 96px; background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; margin-bottom: 10px; font-size: clamp(1.9rem, 3.8vw, 2.6rem); }
.page-hero p { max-width: 560px; color: rgba(255,255,255,0.7); }
.page-hero .breadcrumbs { color: rgba(255,255,255,0.5); }
.page-hero .breadcrumbs a { color: rgba(255,255,255,0.7); }
.page-hero .breadcrumbs a:hover { color: var(--gold); }
.page-hero-mascot { position: absolute; right: 40px; bottom: -26px; width: 130px; opacity: 0.95; display: block; }
.breadcrumbs { font-size: 0.82rem; margin-bottom: 14px; }

/* ---------- Feature / icon grid ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.feature-card {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 18px 34px rgba(37,46,77,0.1); }
.feature-card .icon-badge { margin-bottom: 18px; }
.feature-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.feature-card p { font-size: 0.92rem; }

/* ---------- Subject cards ---------- */
.subject-card {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 22px; display: flex; gap: 16px; align-items: flex-start;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.subject-card:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: 0 14px 26px rgba(37,46,77,0.08); }
.subject-card h3 { font-size: 1rem; margin-bottom: 6px; }
.subject-card p { font-size: 0.88rem; }

/* ---------- Process steps ---------- */
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.step-item { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 28px; position: relative; }
.step-item .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--green-light); color: var(--green-dark);
  font-family: "Poppins", sans-serif; font-weight: 700; font-size: 0.95rem; margin-bottom: 18px;
}
.step-item h4 { margin-bottom: 10px; font-size: 1.05rem; }
.step-item p { font-size: 0.92rem; }

/* ---------- Pricing cards ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card { background: var(--paper); border: 2px solid var(--border); border-radius: var(--radius); padding: 34px 30px; display: flex; flex-direction: column; }
.price-card.highlight { border-color: var(--green); box-shadow: 0 20px 44px rgba(116,166,55,0.2); position: relative; }
.price-card.highlight::before {
  content: "⭐ Most Popular"; position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #fff; font-size: 0.72rem; font-weight: 700;
  padding: 7px 18px; border-radius: 50px; white-space: nowrap;
}
.price-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.price-card .price { font-family: "Poppins", sans-serif; font-size: 2.3rem; font-weight: 700; color: var(--navy); margin: 12px 0 2px; }
.price-card .price span { font-size: 1rem; font-weight: 500; color: var(--navy-50); }
.price-card .classes { font-size: 0.85rem; color: var(--green-dark); font-weight: 700; margin-bottom: 20px; }
.price-card ul { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; flex: 1; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--text-dark); }
.price-card li::before { content: "✓"; color: #fff; background: var(--green); border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; font-size: 0.68rem; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.price-card .best-for { font-size: 0.82rem; color: var(--navy-50); margin-bottom: 18px; font-style: italic; }

/* ---------- Team / teacher cards ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 24px; text-align: center; }
.team-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--green-light); border: 3px solid var(--green);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
  font-size: 1.9rem; font-weight: 700; color: var(--green-dark); font-family: "Poppins", sans-serif; overflow: hidden;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.team-card .role { font-size: 0.82rem; color: var(--green-dark); font-weight: 700; margin-bottom: 12px; }
.team-card p { font-size: 0.88rem; }
.team-more-card { background: var(--green-light); border: 2px dashed var(--green); border-radius: var(--radius); padding: 30px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.team-more-card .mascot-owl { width: 70px; }
.team-more-card p { font-size: 0.88rem; }

/* ---------- Testimonials ---------- */
.testimonial-note { background: var(--paper); border: 2px dashed var(--border); border-radius: var(--radius); padding: 32px; text-align: center; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.testimonial-note .mascot-owl { width: 80px; }
.testimonial-note p { font-size: 0.94rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { margin-bottom: 30px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ---------- Forms ---------- */
.form-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; max-width: 680px; margin: 0 auto; box-shadow: 0 20px 50px rgba(37,46,77,0.08); }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 0.84rem; color: var(--navy-70); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 13px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.95rem; font-family: inherit; color: var(--text-dark); background: var(--bg);
  transition: border-color 0.2s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--green); }
.form-row textarea { resize: vertical; min-height: 110px; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 0.85rem; color: var(--navy-50); margin-top: 12px; text-align: center; }
.honeypot-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; }

.alert { padding: 14px 18px; margin-bottom: 22px; font-size: 0.92rem; border: 2px solid; border-radius: var(--radius-sm); }
.alert-error { background: #fdf1ee; color: #9e3b1f; border-color: #f0c9bd; }
.alert-success { background: var(--green-light); color: var(--green-dark); border-color: var(--green); }

/* ---------- Contact info blocks ---------- */
.contact-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 40px; }
.contact-info-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; gap: 14px; align-items: center; }
.contact-info-card h4 { font-size: 0.95rem; margin-bottom: 2px; }
.contact-info-card p { font-size: 0.9rem; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 18px 34px rgba(37,46,77,0.1); }
.blog-cover { height: 140px; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; }
.blog-cover.cover-1 { background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); }
.blog-cover.cover-2 { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); }
.blog-cover.cover-3 { background: linear-gradient(135deg, var(--gold) 0%, #d68f0f 100%); }
.blog-card .blog-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card .blog-cat { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green-dark); margin-bottom: 10px; }
.blog-card h3 { font-size: 1.05rem; margin-bottom: 10px; line-height: 1.35; }
.blog-card p { font-size: 0.88rem; margin-bottom: 16px; flex: 1; }
.blog-card .blog-meta { font-size: 0.78rem; color: var(--navy-50); }
.blog-card .blog-read-more { font-size: 0.85rem; font-weight: 700; color: var(--green-dark); margin-top: 12px; display: inline-block; }

.post-hero { padding: 56px 0 40px; background: var(--navy); color: #fff; }
.post-hero .blog-cat { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); margin-bottom: 12px; }
.post-hero h1 { color: #fff; margin-bottom: 14px; }
.post-meta { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.post-body { max-width: 740px; margin: 0 auto; padding: 56px 24px; }
.post-body h2 { margin: 40px 0 16px; font-size: 1.5rem; }
.post-body h3 { margin: 28px 0 12px; }
.post-body p { margin-bottom: 18px; font-size: 1.02rem; color: var(--text-dark); opacity: 0.88; }
.post-body ul, .post-body ol { margin: 0 0 18px 22px; }
.post-body li { margin-bottom: 8px; color: var(--text-dark); opacity: 0.88; }
.post-body a { color: var(--green-dark); text-decoration: underline; }
.post-cta { background: var(--green-light); border: 2px dashed var(--green); border-radius: var(--radius); padding: 30px; text-align: center; margin: 40px 0; }
.post-cta .mascot-owl { width: 80px; margin: 0 auto 12px; }
.post-cta h3 { margin-bottom: 8px; }
.post-cta p { margin-bottom: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.6); padding: 68px 0 0; margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.9rem; max-width: 280px; }
.footer-col h4 { color: #fff; margin-bottom: 16px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.footer-col a { display: block; color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-bottom: 11px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { padding: 20px 0; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 300;
  width: 58px; height: 58px; background: #25D366; color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.06); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-illustration { order: -1; min-height: 300px; }
  .grid-4, .grid-3, .pricing-grid, .team-grid, .blog-grid, .contact-info-grid { grid-template-columns: 1fr 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .page-hero-mascot { width: 100px; }
}

@media (max-width: 860px) {
  .grid-2, .footer-inner { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 88px; left: 0; right: 0; background: var(--bg);
    flex-direction: column; align-items: stretch; padding: 20px 24px;
    border-bottom: 3px solid var(--green); gap: 4px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 16px; }
  .nav-cta { width: 100%; margin-left: 0; margin-top: 8px; text-align: center; }
  .hero { padding: 48px 0 0; }
  .section { padding: 56px 0; }
  .form-two, .contact-info-grid { grid-template-columns: 1fr; }
  .page-hero-mascot { display: none; }
}

@media (max-width: 620px) {
  .grid-4, .grid-3, .pricing-grid, .team-grid, .blog-grid { grid-template-columns: 1fr; }
  .hero-stats div { margin-right: 0; margin-bottom: 12px; flex: 1 1 100%; }
}
