/* ============================================================
   KOCOON JUNIOR CHILD DEVELOPMENT CENTER
   Master Stylesheet | Version 2.0
   Design: Enterprise-grade, SEO-optimised, Accessible
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary:       #1A2B6B;
  --primary-dark:  #0F1B4C;
  --primary-light: #2D45A0;
  --accent:        #F5C518;
  --accent-hover:  #D4A800;
  --teal:          #2D45A0;
  --green:         #16A34A;
  --bg:            #F0F4FF;
  --bg-white:      #FFFFFF;
  --bg-light:      #F8FAFC;
  --text:          #0F1B2D;
  --text-muted:    #64748B;
  --text-light:    #94A3B8;
  --border:        #E2E8F0;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow:        0 4px 16px rgba(26,43,107,.12);
  --shadow-lg:     0 10px 40px rgba(26,43,107,.18);
  --radius:        12px;
  --radius-lg:     20px;
  --radius-xl:     32px;
  --transition:    all .3s cubic-bezier(.4,0,.2,1);
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Plus Jakarta Sans', system-ui, sans-serif;
  --max-w:         1200px;
  --header-h:      72px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---- Scroll Progress Bar ---- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  z-index: 9999; width: 0%; transition: width .1s linear;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; }
p { color: var(--text-muted); line-height: 1.8; }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent); background: rgba(245,197,24,.15);
  padding: 6px 16px; border-radius: 100px; margin-bottom: 16px;
}
.section-title { color: var(--primary-dark); margin-bottom: 12px; }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; }

/* ---- Utility Classes ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-alt { background: var(--bg-light); }
.section-dark { background: var(--primary-dark); color: #fff; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .section-subtitle { margin: 0 auto; }
.text-center { text-align: center; }
.text-white { color: #fff !important; }
.text-accent { color: var(--accent) !important; }
.text-primary { color: var(--primary) !important; }
.flex { display: flex; }
.grid { display: grid; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 100px;
  font-weight: 700; font-size: .95rem; font-family: var(--font-body);
  transition: var(--transition); white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #0F1B4C;
  box-shadow: 0 4px 20px rgba(245,197,24,.4);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(245,197,24,.5); }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--bg-light); transform: translateY(-2px); }
.btn-sm { padding: 10px 22px; font-size: .85rem; }
.btn-lg { padding: 18px 44px; font-size: 1.05rem; }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
#site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  transition: box-shadow .3s;
}
#site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 6px rgba(26,43,107,0.15));
  transition: filter .3s;
}
.logo:hover img { filter: drop-shadow(0 3px 12px rgba(26,43,107,0.25)); }
.logo-text { display: flex; flex-direction: column; }
.logo-text strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--primary-dark); line-height: 1.2; }
.logo-text span { font-size: .7rem; color: var(--text-muted); letter-spacing: .06em; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: 8px;
  font-size: .875rem; font-weight: 600; color: var(--text);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--bg); }
.nav-link svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 260px; padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(-8px); transition: var(--transition);
  z-index: 100;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px;
  font-size: .85rem; font-weight: 500; color: var(--text);
  transition: var(--transition);
}
.dropdown-link:hover { background: var(--bg); color: var(--primary); }
.dropdown-link svg { color: var(--accent); flex-shrink: 0; }
.dropdown-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; min-width: 480px; }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone {
  display: flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 600; color: var(--primary);
  padding: 8px 12px; border-radius: 8px; background: var(--bg);
}
.header-phone svg { color: var(--accent); }

/* Language Switcher */
.lang-switcher { display: flex; gap: 4px; }
.lang-btn {
  padding: 5px 10px; border-radius: 6px;
  font-size: .75rem; font-weight: 700; color: var(--text-muted);
  transition: var(--transition); border: 1px solid var(--border);
}
.lang-btn.active, .lang-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Mobile Menu */
#hamburger {
  display: none; flex-direction: column; gap: 5px; padding: 8px;
  border-radius: 8px;
}
#hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; transition: var(--transition);
}
#hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
#hamburger.open span:nth-child(2) { opacity: 0; }
#hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

#mobile-menu {
  display: none; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: #fff; overflow-y: auto; padding: 24px;
  z-index: 999; flex-direction: column; gap: 8px;
}
#mobile-menu.open { display: flex; }
.mobile-nav-link {
  padding: 14px 16px; border-radius: 10px; font-weight: 600;
  color: var(--text); display: flex; justify-content: space-between; align-items: center;
  transition: var(--transition);
}
.mobile-nav-link:hover { background: var(--bg); color: var(--primary); }
.mobile-submenu { padding: 8px 16px 8px 32px; display: none; flex-direction: column; gap: 4px; }
.mobile-submenu.open { display: flex; }
.mobile-submenu a { padding: 10px 12px; font-size: .875rem; color: var(--text-muted); border-radius: 8px; display: block; }
.mobile-submenu a:hover { background: var(--bg); color: var(--primary); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  position: relative; overflow: hidden; padding: 80px 0 60px;
  min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15); color: #fff;
  padding: 8px 20px; border-radius: 100px; font-size: .8rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.2);
}
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 20px; }
.hero h1 em { color: #FCD34D; font-style: normal; }
.hero-desc { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 32px; max-width: 520px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,.2);
}
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 900; color: #FCD34D; }
.hero-stat span { font-size: .8rem; color: rgba(255,255,255,.8); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

.hero-visual { position: relative; }
.hero-card {
  background: rgba(255,255,255,.95); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,.3);
}
.hero-card img { width: 100%; height: 400px; object-fit: cover; }
.hero-card-footer {
  padding: 20px 24px; background: #fff;
  display: flex; align-items: center; justify-content: space-between;
}
.hero-card-footer .rating { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text); }
.hero-card-footer .stars { color: #F59E0B; font-size: .9rem; }
.hero-badge-float {
  position: absolute; top: -16px; right: -16px;
  background: var(--accent); color: #fff;
  padding: 12px 20px; border-radius: var(--radius); box-shadow: var(--shadow);
  font-size: .8rem; font-weight: 700; text-align: center; max-width: 140px;
}

/* Hero image fallback (when no image) */
.hero-img-placeholder {
  width: 100%; height: 400px; background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.05));
  border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center;
  border: 2px dashed rgba(255,255,255,.2);
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--primary-dark); padding: 20px 0; overflow: hidden;
}
.trust-bar-inner {
  display: flex; align-items: center; justify-content: center; gap: 48px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.8); font-size: .875rem; font-weight: 600;
}
.trust-item svg { color: var(--accent); flex-shrink: 0; }

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  background: var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.stat-card {
  background: #fff; padding: 40px 32px; text-align: center;
  transition: var(--transition);
}
.stat-card:hover { background: var(--bg); }
.stat-num {
  font-family: var(--font-display); font-size: 2.8rem; font-weight: 900;
  color: var(--primary); line-height: 1; margin-bottom: 8px;
}
.stat-num span { color: var(--accent); }
.stat-label { font-size: .875rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: #fff; border-radius: var(--radius-lg); padding: 36px 32px;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  opacity: 0; transition: opacity .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.service-card:hover::before { opacity: 1; }
.service-card:hover * { color: #fff !important; }
.service-card:hover .service-icon { background: rgba(255,255,255,.15) !important; }

.service-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; transition: var(--transition);
  position: relative; z-index: 1;
}
.service-icon svg { color: var(--primary); transition: var(--transition); }
.service-title {
  font-family: var(--font-body); font-size: 1rem; font-weight: 700;
  color: var(--text); margin-bottom: 10px; position: relative; z-index: 1;
}
.service-desc { font-size: .875rem; color: var(--text-muted); position: relative; z-index: 1; margin-bottom: 20px; }
.service-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .85rem; font-weight: 700; color: var(--primary);
  position: relative; z-index: 1; transition: var(--transition);
}
.service-link svg { transition: transform .2s; }
.service-card:hover .service-link { color: rgba(255,255,255,.9); }
.service-link:hover svg { transform: translateX(4px); }

/* All Services Grid */
.services-all-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card-mini {
  background: #fff; border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border); text-align: center;
  transition: var(--transition);
}
.service-card-mini:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card-mini .icon { width: 48px; height: 48px; background: var(--bg); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.service-card-mini h3 { font-family: var(--font-body); font-size: .875rem; font-weight: 700; color: var(--text); }

/* Service Detail Page */
.service-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 64px 0 80px; color: #fff;
}
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: rgba(255,255,255,.7); margin-bottom: 20px; }
.breadcrumb a { color: rgba(255,255,255,.7); transition: color .2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { color: rgba(255,255,255,.4); }

.service-content { padding: 64px 0; }
.service-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
.service-body h2 { font-size: 1.6rem; color: var(--primary-dark); margin: 32px 0 12px; }
.service-body p { margin-bottom: 16px; }
.service-body ul { padding-left: 20px; list-style: none; }
.service-body ul li { position: relative; padding-left: 24px; margin-bottom: 10px; color: var(--text-muted); }
.service-body ul li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

.sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.sidebar-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 24px; }
.sidebar-card h4 { color: var(--primary-dark); margin-bottom: 12px; font-size: .95rem; }
.cta-card { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; }
.cta-card h4 { color: #fff; font-size: 1rem; margin-bottom: 8px; }
.cta-card p { color: rgba(255,255,255,.8); font-size: .85rem; margin-bottom: 16px; }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.why-card {
  display: flex; gap: 20px; padding: 28px; background: #fff;
  border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.why-card:hover { box-shadow: var(--shadow); transform: translateX(4px); border-color: var(--teal); }
.why-icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  display: flex; align-items: center; justify-content: center;
}
.why-icon svg { color: #fff; }
.why-body h4 { color: var(--primary-dark); margin-bottom: 6px; }
.why-body p { font-size: .875rem; }

/* ============================================================
   PROCESS / HOW IT WORKS
   ============================================================ */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.process-steps::before {
  content: ''; position: absolute; top: 28px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, var(--border), var(--teal), var(--border));
  z-index: 0;
}
.process-step { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: #fff;
  box-shadow: 0 4px 20px rgba(26,43,107,.3);
}
.process-step h4 { color: var(--primary-dark); font-family: var(--font-body); font-size: .95rem; margin-bottom: 8px; }
.process-step p { font-size: .8rem; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial-card {
  background: #fff; border-radius: var(--radius-lg); padding: 32px;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  position: relative; transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.testimonial-card::before {
  content: '"'; position: absolute; top: 16px; right: 24px;
  font-family: var(--font-display); font-size: 5rem; color: var(--bg); line-height: 1;
  font-weight: 900;
}
.rating-stars { display: flex; gap: 3px; margin-bottom: 16px; }
.rating-stars svg { color: #F59E0B; }
.testimonial-text { font-style: italic; color: var(--text); font-size: .95rem; margin-bottom: 24px; line-height: 1.8; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.1rem;
}
.author-name { font-weight: 700; font-size: .9rem; color: var(--text); }
.author-child { font-size: .78rem; color: var(--text-muted); }

/* ============================================================
   LOCATIONS / BRANCHES
   ============================================================ */
.branches-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.branch-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.branch-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.branch-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 28px; color: #fff; text-align: center;
}
.branch-icon { width: 56px; height: 56px; background: rgba(255,255,255,.15); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.branch-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.branch-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.branch-info { display: flex; gap: 12px; align-items: flex-start; }
.branch-info svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.branch-info div strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); display: block; margin-bottom: 2px; }
.branch-info div span { font-size: .9rem; color: var(--text); }
.branch-actions { padding: 0 28px 28px; display: flex; gap: 10px; }
.branch-actions a { flex: 1; }

/* Contact Page */
.contact-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 64px 0; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.map-container { border-radius: var(--radius-lg); overflow: hidden; height: 400px; border: 1px solid var(--border); }
.map-container iframe { width: 100%; height: 100%; border: none; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--border);
  overflow: hidden; transition: var(--transition);
}
.faq-item.open { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; cursor: pointer; gap: 16px;
  font-weight: 700; color: var(--text); font-size: .95rem;
  transition: var(--transition); user-select: none;
}
.faq-q:hover { color: var(--primary); }
.faq-icon {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.faq-item.open .faq-icon { background: var(--primary); transform: rotate(180deg); }
.faq-icon svg { color: var(--primary); }
.faq-item.open .faq-icon svg { color: #fff; }
.faq-a {
  padding: 0 24px; max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .3s;
  color: var(--text-muted); font-size: .95rem; line-height: 1.8;
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 20px; }

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); transition: var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.blog-img { height: 200px; object-fit: cover; width: 100%; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.blog-body { padding: 24px; }
.blog-cat { display: inline-block; padding: 4px 12px; background: rgba(245,197,24,.15); color: var(--accent); border-radius: 100px; font-size: .75rem; font-weight: 700; text-transform: uppercase; margin-bottom: 12px; }
.blog-title { font-family: var(--font-display); font-size: 1.1rem; color: var(--text); margin-bottom: 10px; line-height: 1.4; }
.blog-card:hover .blog-title { color: var(--primary); }
.blog-meta { font-size: .78rem; color: var(--text-light); display: flex; gap: 12px; }

/* ============================================================
   CHATBOT
   ============================================================ */
#chatbot-fab {
  position: fixed; bottom: 90px; right: 24px; z-index: 9000;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  box-shadow: 0 4px 20px rgba(26,43,107,.4);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
#chatbot-fab:hover { transform: scale(1.1); }
#chatbot-fab svg { color: #fff; }

#chatbot-window {
  position: fixed; bottom: 160px; right: 24px; z-index: 9000;
  width: 340px; background: #fff; border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,.2); overflow: hidden;
  transform: scale(.8) translateY(20px); transform-origin: bottom right;
  opacity: 0; pointer-events: none; transition: var(--transition);
}
#chatbot-window.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }

.chat-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 16px 20px; display: flex; align-items: center; gap: 12px;
}
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.chat-header-info strong { color: #fff; font-size: .9rem; display: block; }
.chat-header-info span { color: rgba(255,255,255,.7); font-size: .75rem; }
.online-dot { width: 8px; height: 8px; background: #22C55E; border-radius: 50%; display: inline-block; margin-right: 5px; }
.chat-close { margin-left: auto; color: rgba(255,255,255,.7); padding: 4px; cursor: pointer; }

#chat-messages {
  height: 280px; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 12px; background: var(--bg-light);
}
.chat-msg {
  max-width: 85%; padding: 10px 14px; border-radius: 16px;
  font-size: .85rem; line-height: 1.6;
}
.chat-msg.bot { background: #fff; color: var(--text); border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-quick-replies { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 16px; }
.quick-reply {
  padding: 6px 14px; border-radius: 100px; border: 1px solid var(--primary);
  font-size: .78rem; font-weight: 600; color: var(--primary); cursor: pointer; transition: var(--transition);
}
.quick-reply:hover { background: var(--primary); color: #fff; }
.chat-input-area { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
#chat-input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: 100px;
  font-size: .85rem; outline: none; transition: border-color .2s;
}
#chat-input:focus { border-color: var(--primary); }
#chat-send {
  width: 38px; height: 38px; border-radius: 50%; background: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
#chat-send svg { color: #fff; }

/* WhatsApp FAB */
#whatsapp-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 9000;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; box-shadow: 0 4px 20px rgba(37,211,102,.4);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); text-decoration: none;
}
#whatsapp-fab:hover { transform: scale(1.1); background: #20BA5B; }
#whatsapp-fab svg { color: #fff; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--teal) 100%);
  padding: 80px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='%23ffffff' stroke-width='.5' stroke-opacity='.08'/%3E%3C/svg%3E");
}
.cta-section h2 { color: #fff; margin-bottom: 16px; position: relative; }
.cta-section p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 36px; position: relative; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #070F1A; color: rgba(255,255,255,.8); }
.footer-top { padding: 72px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; }
.footer-brand .logo img {
  height: 68px;
  width: auto;
  margin-bottom: 16px;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.35));
}
.footer-brand p { font-size: .875rem; line-height: 1.8; color: rgba(255,255,255,.6); margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7); transition: var(--transition);
}
.social-link:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.footer-col h5 { color: #fff; font-family: var(--font-body); font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .875rem; color: rgba(255,255,255,.6); transition: color .2s; display: flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--accent); }
.footer-links a::before { content: '→'; font-size: .7rem; color: var(--accent); opacity: 0; transition: opacity .2s; }
.footer-links a:hover::before { opacity: 1; }

.footer-contact-item { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.footer-contact-item svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.footer-contact-item div strong { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.5); margin-bottom: 3px; }
.footer-contact-item div span { font-size: .85rem; color: rgba(255,255,255,.8); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.5); margin: 0; }
.footer-bottom a { color: rgba(255,255,255,.6); font-size: .8rem; transition: color .2s; }
.footer-bottom a:hover { color: var(--accent); }

/* ============================================================
   LANGUAGES (i18n)
   ============================================================ */
[data-lang]:not([data-lang="en"]) { display: none; }
body.lang-hi [data-lang="en"], body.lang-gu [data-lang="en"] { display: none; }
body.lang-hi [data-lang="hi"] { display: revert; }
body.lang-gu [data-lang="gu"] { display: revert; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.slide-left { opacity: 0; transform: translateX(-24px); transition: opacity .6s ease, transform .6s ease; }
.slide-left.visible { opacity: 1; transform: translateX(0); }
.slide-right { opacity: 0; transform: translateX(24px); transition: opacity .6s ease, transform .6s ease; }
.slide-right.visible { opacity: 1; transform: translateX(0); }

/* Stagger children */
.stagger > *:nth-child(1) { transition-delay: .1s; }
.stagger > *:nth-child(2) { transition-delay: .2s; }
.stagger > *:nth-child(3) { transition-delay: .3s; }
.stagger > *:nth-child(4) { transition-delay: .4s; }
.stagger > *:nth-child(5) { transition-delay: .5s; }
.stagger > *:nth-child(6) { transition-delay: .6s; }

/* ============================================================
   INNER PAGE HERO (non-homepage)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 56px 0 64px; color: #fff; text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 600px; margin: 0 auto 20px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .service-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .section { padding: 56px 0; }
  .main-nav, .header-cta { display: none; }
  #hamburger { display: flex; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .services-all-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-steps::before { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .branches-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  #chatbot-window { width: calc(100vw - 48px); right: 24px; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
  .stat-num { font-size: 2rem; }
  .hero-ctas { flex-direction: column; }
  .cta-btns { flex-direction: column; align-items: center; }
  .dropdown-cols { grid-template-columns: 1fr; min-width: auto; }
  .services-all-grid { grid-template-columns: 1fr; }
  .branch-actions { flex-direction: column; }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  #site-header, #chatbot-fab, #whatsapp-fab, .hero-ctas .btn:last-child { display: none; }
  body { font-size: 12pt; }
  a { color: inherit; }
}
