/* ============================================================
   VISVATHA Learning Centre — STYLESHEET
   ------------------------------------------------------------
   Organized in sections:
   1. Design tokens (edit colors/fonts here — changes apply everywhere)
   2. Reset & base
   3. Layout helpers
   4. Header & navigation
   5. Hero
   6. Stats strip
   7. About / Welcome
   8. Approach (why us)
   9. Programs
   10. Admissions steps
   11. Testimonials
   12. Contact + Map
   13. Footer
   14. Buttons, badges, dividers, reveal animation
   15. Responsive (mobile)
   ============================================================ */

/* ---------- 1. DESIGN TOKENS ---------- */
:root{
  /* Brand palette — pulled from the Visvatha logo (sun, hands, leaves) */
  --navy:        #1E4B5F;   /* deep teal-navy — header, footer, grounding */
  --navy-light:  #2C6478;
  --teal:        #3E9083;   /* leaf/growth green-teal — secondary accent */
  --teal-light:  #E5F2EE;
  --coral:       #F0834D;   /* warm coral — calls to action, energy */
  --coral-dark:  #D66B36;
  --sun:         #F4B942;   /* sunshine yellow — small highlight accents */
  --sky:         #6FA8C9;   /* soft sky blue — tertiary accent */

  --bg:          #FBF7F0;   /* warm cream page background (gentle, not stark white) */
  --bg-alt:      #F3EDE1;   /* slightly deeper cream for alternating sections */
  --card:        #FFFFFF;
  --ink:         #24313A;   /* primary text */
  --ink-soft:    #5B6B72;   /* secondary text */
  --border:      #E4DCCB;

  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body:    'Karla', system-ui, sans-serif;

  --radius-blob: 42% 58% 65% 35% / 45% 40% 60% 55%; /* organic blob shape */
  --radius-soft: 22px;
  --shadow-soft: 0 10px 30px -12px rgba(30, 75, 95, 0.25);
  --shadow-card: 0 4px 18px rgba(30, 75, 95, 0.08);

  --container: 1160px;
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
}
p{ margin: 0 0 1em; color: var(--ink-soft); }
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display:block; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor:pointer; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- 3. LAYOUT HELPERS ---------- */
.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section{ padding: 96px 0; }
.section-alt{ background: var(--bg-alt); }
.section-navy{ background: var(--navy); color: #fff; }
.section-navy p{ color: rgba(255,255,255,0.75); }
.section-navy h2, .section-navy h3{ color: #fff; }

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before{
  content:'';
  width: 18px; height: 3px;
  border-radius: 2px;
  background: var(--coral);
  display:inline-block;
}
.section-head{
  max-width: 640px;
  margin: 0 0 56px;
}
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size: clamp(28px, 3.6vw, 40px); }

/* ---------- 4. HEADER & NAV ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(251, 247, 240, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.scrolled{
  box-shadow: 0 6px 20px rgba(30,75,95,0.08);
  border-color: var(--border);
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand-mark{ width: 46px; height: 46px; flex-shrink:0; }
.brand-text{ font-family: var(--font-display); line-height:1.1; }
.brand-text strong{ display:block; font-size: 18px; color: var(--navy); }
.brand-text span{ display:block; font-size: 12px; color: var(--teal); letter-spacing:.04em; font-weight: 600;}

.nav-links{
  display:flex;
  align-items:center;
  gap: 34px;
}
.nav-links a{
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after{
  content:'';
  position:absolute;
  left:0; bottom:0;
  width:0; height:2px;
  background: var(--coral);
  transition: width .2s ease;
  border-radius: 2px;
}
.nav-links a:hover::after, .nav-links a.active::after{ width: 100%; }
.nav-links a.active{ color: var(--coral); }

.nav-cta{ display:flex; align-items:center; gap:16px; }
.nav-phone{
  display:flex; align-items:center; gap:8px;
  font-weight: 700; font-size: 14.5px; color: var(--navy);
}
.nav-phone svg{ width:18px; height:18px; color: var(--coral); }

.nav-toggle{
  display:none;
  background:none; border:none;
  width: 40px; height: 40px;
  position: relative;
}
.nav-toggle span{
  position:absolute; left:8px; right:8px; height:2.5px;
  background: var(--navy); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}
.nav-toggle span:nth-child(1){ top: 13px; }
.nav-toggle span:nth-child(2){ top: 19px; }
.nav-toggle span:nth-child(3){ top: 25px; }
.nav-toggle.open span:nth-child(1){ top:19px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ top:19px; transform: rotate(-135deg); }

/* ---------- 5. HERO ---------- */
.hero{
  position: relative;
  overflow: hidden;
  padding: 76px 0 110px;
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items:center;
}
.hero-badge{
  display:inline-flex; align-items:center; gap:8px;
  background: var(--teal-light); color: var(--teal);
  font-weight:700; font-size:13.5px;
  padding: 8px 16px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1{
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.01em;
}
.hero h1 .accent{ color: var(--coral); }
.hero-lede{
  font-size: 18px;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom: 36px;}
.hero-meta{
  display:flex; gap: 28px; flex-wrap:wrap;
}
.hero-meta div{ display:flex; align-items:center; gap:10px; font-weight:700; color:var(--navy); font-size:14.5px;}
.hero-meta svg{ width:20px;height:20px;color:var(--coral); flex-shrink:0;}

.hero-art{ position:relative; }
.hero-blob{
  position:relative;
  width: 100%;
  aspect-ratio: 1/1;
  max-width: 460px;
  margin: 0 auto;
  border-radius: var(--radius-blob);
  background: linear-gradient(150deg, var(--teal) 0%, var(--navy) 100%);
  display:flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow-soft);
  animation: blobMorph 12s ease-in-out infinite;
}
.hero-blob svg{ width: 62%; height: 62%; }
.hero-image{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    border-radius:inherit;
}
@keyframes blobMorph{
  0%,100%{ border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%; }
  50%{ border-radius: 58% 42% 40% 60% / 55% 60% 40% 45%; }
}
.hero-chip{
  position:absolute;
  background: #fff;
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-card);
  padding: 12px 16px;
  display:flex; align-items:center; gap:10px;
  font-weight:700; font-size: 13.5px; color: var(--navy);
}
.hero-chip svg{ width:22px; height:22px; color: var(--sun); }
.hero-chip.chip-1{ top: 6%; left: -4%; }
.hero-chip.chip-2{ bottom: 10%; right: -6%; }
.hero-decor{
  position:absolute; border-radius:50%; z-index:-1;
}
.hero-decor.d1{ width:220px;height:220px; background: var(--sun); opacity:.18; top:-60px; right: 8%; }
.hero-decor.d2{ width:160px;height:160px; background: var(--sky); opacity:.2; bottom:-40px; left: 2%; }

/* wavy divider used between sections */
.wave{ display:block; width:100%; line-height:0; }
.wave svg{ width:100%; height: 60px; display:block; }

/* ---------- 6. STATS STRIP ---------- */
.stats{
  background: var(--navy);
  padding: 44px 0;
}
.stats-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat{ text-align:center; color:#fff; }
.stat .num{
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  color: var(--sun);
  font-weight:600;
}
.stat .label{
  font-size: 13.5px; font-weight:600;
  color: rgba(255,255,255,.78);
  letter-spacing:.02em;
}

/* ---------- 7. ABOUT / WELCOME ---------- */
.about-grid{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items:center;
}
.about-art{ position:relative; }
.about-blob{
  border-radius: 58% 42% 40% 60% / 55% 60% 40% 45%;
  overflow:hidden;
  background: var(--teal-light);
  aspect-ratio: 4/4.6;
  display:flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow-card);

  .about-image{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    border-radius:inherit;
}
}
.about-blob svg{ width:70%; }
.value-row{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  margin-top: 32px;
}
.value-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-soft);
  padding: 22px 18px;
  text-align:center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.value-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-card); }
.value-card svg{ width:32px;height:32px; color:var(--coral); margin-bottom:10px; }
.value-card h4{ font-size:16px; margin-bottom:4px; }
.value-card p{ font-size: 13.5px; margin:0; }

/* ---------- 8. APPROACH / WHY US ---------- */
.approach-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.approach-card{
  background: var(--card);
  border-radius: var(--radius-soft);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--teal);
}
.approach-card:nth-child(2){ border-top-color: var(--coral); }
.approach-card:nth-child(3){ border-top-color: var(--sky); }
.approach-card:nth-child(4){ border-top-color: var(--sun); }
.approach-card:nth-child(5){ border-top-color: var(--teal); }
.approach-card:nth-child(6){ border-top-color: var(--coral); }
.approach-icon{
  width:52px; height:52px; border-radius: 16px;
  background: var(--teal-light); color: var(--teal);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 18px;
}
.approach-icon svg{ width:26px;height:26px; }
.approach-card h3{ font-size: 19px; margin-bottom:8px;}
.approach-card p{ font-size: 14.5px; margin:0;}

/* ---------- 9. PROGRAMS ---------- */
.programs-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.program-card{
  position:relative;
  background: var(--card);
  border-radius: var(--radius-soft);
  overflow:hidden;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease;
}
.program-card:hover{ transform: translateY(-6px); }
.program-top{
  height: 120px;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--teal), var(--navy));
}
.program-card:nth-child(2) .program-top{ background: linear-gradient(135deg, var(--coral), var(--coral-dark)); }
.program-card:nth-child(3) .program-top{ background: linear-gradient(135deg, var(--sky), var(--navy-light)); }
.program-card:nth-child(4) .program-top{ background: linear-gradient(135deg, var(--sun), var(--coral)); }
.program-card:nth-child(5) .program-top{ background: linear-gradient(135deg, var(--teal), var(--sky)); }
.program-card:nth-child(6) .program-top{ background: linear-gradient(135deg, var(--navy), var(--navy-light)); }
.program-top svg{ width:44px;height:44px;color:#fff; }
.program-body{ padding: 24px 22px 26px; }
.program-body h3{ font-size:18px; margin-bottom:8px; }
.program-body p{ font-size:14px; margin:0; }

/* ---------- 10. ADMISSIONS STEPS ---------- */
.steps{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.step{
  background: var(--card);
  border-radius: var(--radius-soft);
  padding: 28px 22px;
  box-shadow: var(--shadow-card);
  position:relative;
}
.step-num{
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--teal-light);
  -webkit-text-stroke: 1.5px var(--teal);
  font-weight: 600;
  margin-bottom: 10px;
}
.step h4{ font-size:16.5px; margin-bottom:6px; }
.step p{ font-size:13.5px; margin:0; }
.admissions-cta{
  margin-top: 48px;
  background: var(--teal-light);
  border-radius: var(--radius-soft);
  padding: 32px 36px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.admissions-cta h3{ margin-bottom:4px; font-size:20px; }
.admissions-cta p{ margin:0; }

/* ---------- 11. TESTIMONIALS ---------- */
.testimonial-track{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.testimonial-card{
  background: var(--card);
  border-radius: var(--radius-soft);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
}
.testimonial-quote{ color: var(--coral); margin-bottom: 12px; }
.testimonial-quote svg{ width: 28px; height: 28px; }
.testimonial-card p.msg{ font-style: italic; color: var(--ink); font-size: 15px; }
.testimonial-person{ display:flex; align-items:center; gap:12px; margin-top:18px; }
.avatar-circle{
  width:42px;height:42px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-family:var(--font-display); font-weight:600; color:#fff;
  background: var(--teal);
}
.testimonial-person strong{ display:block; font-size: 14px; color: var(--navy); }
.testimonial-person span{ font-size: 12.5px; color: var(--ink-soft); }

/* ---------- 12. CONTACT ---------- */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.contact-card{
  background: var(--card);
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-card);
  padding: 34px;
}
.contact-info-item{
  display:flex; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child{ border-bottom:none; }
.contact-info-item .ico{
  width:44px;height:44px;border-radius:12px;
  background: var(--teal-light); color:var(--teal);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.contact-info-item .ico svg{ width:22px;height:22px; }
.contact-info-item h4{ font-size:15px; margin-bottom:2px; color:var(--navy); }
.contact-info-item p{ margin:0; font-size:14.5px; }
.contact-info-item a{ color: var(--teal); font-weight:600; }
/* ---------- CONTACT SOCIAL BUTTONS ---------- */

.contact-social-buttons {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.contact-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.contact-social-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.contact-social-btn.whatsapp {
  background: #25D366;
  color: white;
}

.contact-social-btn.instagram {
  background: #E1306C;
  color: white;
}

.contact-social-btn.linkedin {
  background: #0A66C2;
  color: white;
}
/* Social button icons */
.contact-social-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (max-width: 500px) {
  .contact-social-buttons {
    flex-direction: column;
  }

  .contact-social-btn {
    width: 100%;
  }
}

.map-wrap{
  margin-top: 24px;
  border-radius: var(--radius-soft);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}
.map-wrap iframe{ width:100%; height: 240px; border:0; display:block; }

.form-group{ margin-bottom: 18px; }
.form-group label{
  display:block; font-weight:700; font-size:13.5px;
  color: var(--navy); margin-bottom:6px;
}
.form-group input, .form-group select, .form-group textarea{
  width:100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus{
  outline:none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-light);
}
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-note{ font-size: 12.5px; color: var(--ink-soft); margin-top: -6px; }
#formStatus{
  margin-top: 14px;
  font-weight: 700;
  font-size: 14px;
  display:none;
  padding: 12px 14px;
  border-radius: 10px;
}
#formStatus.success{ display:block; background: var(--teal-light); color: var(--teal); }
#formStatus.error{ display:block; background:#FBE7E2; color: var(--coral-dark); }

/* ---------- 13. FOOTER ---------- */
.site-footer{
  background: var(--navy);
  color: rgba(255,255,255,.8);
  padding: 70px 0 26px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand{ display:flex; gap:12px; align-items:center; margin-bottom:16px; }
.footer-brand strong{ color:#fff; font-family:var(--font-display); font-size:18px; }
.footer-col h5{
  color:#fff; font-family: var(--font-display); font-weight:600;
  font-size: 15px; margin-bottom: 18px; letter-spacing:.02em;
}
.footer-col ul li{ margin-bottom: 11px; }
.footer-col ul li a{ font-size: 14px; transition: color .2s; }
.footer-col ul li a:hover{ color: var(--sun); }
.footer-social{ display:flex; gap:10px; margin-top: 18px; }
.footer-social a{
  width:38px;height:38px;border-radius:50%;
  background: rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;
  transition: background .2s ease;
}
.footer-social a:hover{ background: var(--coral); }
.footer-social svg{ width:17px;height:17px; }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding-top: 24px; font-size:13px; flex-wrap:wrap; gap:10px;
}
.footer-bottom a{ color: rgba(255,255,255,.6); }
.footer-bottom a:hover{ color:#fff; }

/* ---------- 14. BUTTONS / BADGES / REVEAL ---------- */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: var(--coral); color:#fff;
  box-shadow: 0 10px 24px -8px rgba(240,131,77,.6);
}
.btn-primary:hover{ background: var(--coral-dark); box-shadow: 0 14px 28px -8px rgba(240,131,77,.7); }
.btn-outline{
  background: transparent; border-color: var(--navy); color: var(--navy);
}
.btn-outline:hover{ background: var(--navy); color:#fff; }
.btn-light{ background:#fff; color: var(--navy); }
.btn-light:hover{ background: var(--sun); }
.btn-block{ width:100%; justify-content:center; }

.reveal{
  opacity:0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view{ opacity:1; transform: translateY(0); }

/* ---------- 15. RESPONSIVE ---------- */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns:1fr; }
  .hero-art{ order:-1; max-width: 340px; margin: 0 auto 20px;}
  .about-grid{ grid-template-columns:1fr; }
  .approach-grid{ grid-template-columns: repeat(2,1fr); }
  .programs-grid{ grid-template-columns: repeat(2,1fr); }
  .steps{ grid-template-columns: repeat(2,1fr); }
  .testimonial-track{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .stats-grid{ grid-template-columns: repeat(2,1fr); gap: 32px 24px; }
}
@media (max-width: 720px){
  .nav-links, .nav-phone{ display:none; }
  .nav-toggle{ display:block; }
  .site-header.mobile-open .nav-links{
    display:flex;
    flex-direction:column;
    position:absolute;
    top:100%; left:0; right:0;
    background: var(--bg);
    padding: 22px 24px 30px;
    border-bottom: 1px solid var(--border);
    gap: 18px;
    box-shadow: var(--shadow-card);
  }
  .section{ padding: 64px 0; }
  .approach-grid, .programs-grid, .steps{ grid-template-columns: 1fr; }
  .value-row{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; gap: 30px; }
  .admissions-cta{ flex-direction:column; align-items:flex-start; }
  .hero-chip{ display:none; }
}
