/* =========================================
   VisalKalvi — Global / Shared Styles
   ========================================= */

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

/* ---------- CSS Variables ---------- */
:root {
  --blue:        #2563EB;
  --blue-dark:   #1D4ED8;
  --purple:      #7C3AED;
  --purple-dark: #6D28D9;
  --gradient:    linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  --gradient-h:  linear-gradient(135deg, #1D4ED8 0%, #6D28D9 100%);
  --white:       #ffffff;
  --beige:       #ffffff;
  --beige-dark:  #f0f4ff;
  --bg:          #ffffff;
  --text:        #1a1a2e;
  --text-light:  #4a5568;
  --border:      #e0e7ff;
  --shadow:      0 4px 24px rgba(37, 99, 235, 0.10);
  --shadow-lg:   0 8px 40px rgba(124, 58, 237, 0.15);
  --glow:        0 0 20px rgba(99, 102, 241, 0.4);
  --radius:      16px;
  --radius-lg:   24px;
  --radius-pill: 999px;
  --transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', 'Montserrat', sans-serif;
  background: #ffffff;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  padding-top: 72px;
}

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

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover {
  background: var(--gradient-h);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.45);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--blue);
  padding: 11px 27px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--blue);
  transition: var(--transition);
}
.btn-outline:hover {
  background: var(--gradient);
  color: var(--white);
  border-color: transparent;
  transform: translateY(-3px);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--purple);
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 48px;
}

/* Universal Glow Card Hover */
.card,
.why-card,
.program-card,
.testi-card,
.stat-card,
.mvv-card,
.goal-item,
.prog-full-card,
.benefit-card,
.contact-extra-card {
  transition: var(--transition);
}
.card:hover,
.why-card:hover,
.program-card:hover,
.testi-card:hover,
.stat-card:hover,
.mvv-card:hover,
.goal-item:hover,
.prog-full-card:hover,
.benefit-card:hover,
.contact-extra-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 20px rgba(99,102,241,0.4), 0 16px 40px rgba(37,99,235,0.15);
  border-color: rgba(99,102,241,0.4) !important;
}

/* ---------- Section spacing ---------- */
.section { padding: 80px 0; background: var(--beige); }
.section-sm { padding: 48px 0; background: var(--beige); }
.section-alt { padding: 80px 0; background: var(--beige-dark); }

/* Page hero sections */
.page-hero {
  background: var(--gradient);
  padding: 64px 0 56px;
  text-align: center;
  color: white;
}
.page-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.page-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: white;
  line-height: 1.2;
}
.page-hero h1 .gradient-text {
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  max-width: 560px;
}
.page-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e0e7ff;
  box-shadow: 0 2px 16px rgba(37, 99, 235, 0.08);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 24px;
  max-width: 1200px;
  margin-inline: auto;
  height: 72px;
  gap: 16px;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-motto {
  font-size: 0.62rem;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Nav */
.header-nav { display: flex; align-items: center; gap: 4px; justify-content: center; }
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  position: relative;
}
.nav-link:hover { color: var(--blue); background: rgba(37,99,235,0.08); }
.nav-link.active {
  background: var(--gradient);
  color: var(--white);
  -webkit-text-fill-color: var(--white);
  font-weight: 600;
}

/* Right CTA */
.header-right { display: flex; justify-content: flex-end; }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient);
  color: var(--white);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(37,99,235,0.25);
  white-space: nowrap;
}
.header-cta:hover {
  background: var(--gradient-h);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #ffffff;
  border-top: 1px solid #e0e7ff;
  padding: 16px 24px 20px;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link { display: block; border-radius: 10px; }
.mobile-nav .header-cta { margin-top: 8px; text-align: center; justify-content: center; }

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: #0f1729;
  color: rgba(255,255,255,0.8);
  padding: 64px 0 0;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr 1.6fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Footer logo image */
.footer-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(124,58,237,0.35));
}
.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .logo-name { -webkit-text-fill-color: unset; background: none; color: #fff; font-size: 1.3rem; }
.footer-brand .logo-motto { color: rgba(255,255,255,0.5); font-size: 0.68rem; }
.footer-tagline {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin-top: 14px;
  line-height: 1.7;
  max-width: 260px;
}

.footer-col-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 32px; height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover { color: var(--white); padding-left: 6px; }
.footer-links a::before { content: '›'; color: var(--blue); font-size: 1.1rem; }

.footer-contact-list { display: flex; flex-direction: column; gap: 14px; }
.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
}
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; fill: var(--blue); }
.footer-contact-item a { color: rgba(255,255,255,0.6); }
.footer-contact-item a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 8px;
}

/* =========================================
   WHATSAPP FLOATING BUTTON
   position: fixed — independent of all page sections
   z-index: 9999 — always above all content
   ========================================= */

/* Pulse ring keyframe */
@keyframes wa-pulse-ring {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* Bounce-in keyframe on page load */
@keyframes wa-bounce-in {
  0%   { transform: scale(0) translateY(20px); opacity: 0; }
  60%  { transform: scale(1.15) translateY(-4px); opacity: 1; }
  80%  { transform: scale(0.95) translateY(2px); }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Container */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  animation: wa-bounce-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s both;
}

/* Anchor button */
.whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  box-shadow:
    0 4px 16px rgba(37, 211, 102, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.12);
  position: relative;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease;
  text-decoration: none;
}

/* Hover: scale up + brighter shadow */
.whatsapp-float a:hover {
  transform: scale(1.14) translateY(-3px);
  box-shadow:
    0 8px 28px rgba(37, 211, 102, 0.65),
    0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Active / tap feedback */
.whatsapp-float a:active {
  transform: scale(0.96);
}

/* WhatsApp icon */
.whatsapp-float a svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* Pulse ring element */
.wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0;
  animation: wa-pulse-ring 2.2s ease-out infinite;
  pointer-events: none;
}

/* Tooltip */
.wa-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: #1a1a2e;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
/* Tooltip arrow */
.wa-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #1a1a2e;
}
/* Show tooltip on hover */
.whatsapp-float a:hover .wa-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}


/* =========================================
   RESPONSIVE — HEADER & FOOTER
   ========================================= */
@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    height: 64px;
  }
  .header-nav { display: none; }
  .header-right { display: none; }
  .menu-toggle { display: flex; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand .footer-tagline { max-width: 100%; }

  /* WhatsApp button — slightly smaller and repositioned on mobile */
  .whatsapp-float {
    bottom: 20px;
    right: 16px;
  }
  .whatsapp-float a {
    width: 54px;
    height: 54px;
  }
  .whatsapp-float a svg {
    width: 28px;
    height: 28px;
  }
  /* Hide tooltip on touch screens (no hover state) */
  .wa-tooltip { display: none; }
}

.contact-social{
    display:flex;
    align-items:center;
    gap:12px;
    margin-top:12px;
}

.contact-social a{
    width:34px;
    height:34px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#f5f5f5;
    color:#333;
    font-size:16px;
    text-decoration:none;
    transition:0.3s ease;
}

.contact-social a:hover{
    background:#0077ff;
    color:#fff;
    transform:translateY(-2px);
}
.footer-contact-item{
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact-item i{
    font-size: 16px;
    color: #6C63FF; /* Change to your theme color */
    width: 18px;
    text-align: center;
}

.footer-contact-item a{
    text-decoration: none;
    color: inherit;
}

.footer-contact-item a:hover{
    color: #6C63FF;
}