/* ============================================================
   Impact Institute — shared stylesheet
   Plain CSS, mobile-first, no frameworks.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --primary: #0d47a1;
  --primary-dark: #09357a;
  --primary-light: #e3f2fd;
  --accent: #ff6f00;
  --accent-dark: #e65100;
  --success: #2e7d32;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-soft: #555555;
  --border: #e1e6ee;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.14);
  --maxw: 1200px;
  --header-h: 70px;
  --font-head: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { color: var(--text-soft); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
section { padding: 64px 0; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head .eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.section-head p { margin-top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 13px 24px; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { background: #fff; color: var(--primary); border-color: var(--border); }
.btn-ghost:hover { box-shadow: var(--shadow); color: var(--primary); }
.btn-block { width: 100%; }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; color: var(--text); }
.brand img { height: 42px; width: auto; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand .brand-text small { font-size: .68rem; font-weight: 500; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--text-soft); font-weight: 500; padding: 8px 14px; border-radius: 8px;
  font-family: var(--font-head); font-size: .95rem; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--primary-light); color: var(--primary); }
.nav a.active { color: var(--primary); background: var(--primary-light); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.call-now { white-space: nowrap; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--text); border-radius: 3px; transition: .25s; }

/* Mobile drawer */
.nav-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 80%; max-width: 320px;
  background: var(--surface); box-shadow: var(--shadow-lg); z-index: 200;
  transform: translateX(100%); transition: transform .3s ease;
  padding: 24px; display: flex; flex-direction: column; gap: 6px;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer .drawer-close { align-self: flex-end; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--text-soft); }
.nav-drawer a { padding: 14px 12px; border-radius: 8px; font-family: var(--font-head); font-weight: 600; color: var(--text); }
.nav-drawer a:hover, .nav-drawer a.active { background: var(--primary-light); color: var(--primary); }
.nav-drawer .call-now { margin-top: 14px; }
.overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 150;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.overlay.show { opacity: 1; pointer-events: auto; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--primary-dark); color: #cfe0f5; padding: 56px 0 0; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin: 0 0 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr 1fr; gap: 30px; }
.site-footer a { color: #cfe0f5; }
.site-footer a:hover { color: #fff; }
.footer-brand img { height: 48px; margin-bottom: 12px; }
.footer-brand p { color: #b9cdea; }
.footer-links li, .footer-contact li { list-style: none; margin: 8px 0; }
.footer-links ul, .footer-contact ul { padding: 0; margin: 0; }
.footer-social a { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; text-align: center; padding: 18px 0; color: #9fb8db; font-size: .9rem; }

/* ============================================================
   Generic components
   ============================================================ */
.cards-grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.icon-card { text-align: center; }
.icon-card img { width: 64px; height: 64px; margin: 0 auto 14px; }
.icon-card h3 { margin: 6px 0 8px; }
.icon-card p { margin: 0; font-size: .95rem; }

.tag { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: .78rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; }

.cta-banner {
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
  color: #fff; border-radius: 18px; padding: 44px 36px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #dbe7fb; }
.cta-banner .cta-actions { margin-top: 22px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Home — Hero
   ============================================================ */
.hero { background: linear-gradient(135deg, #eef4ff 0%, #f7f9fc 60%); padding: 72px 0; position: relative; overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(8px); z-index: 0; pointer-events: none;
}
.hero::before { width: 320px; height: 320px; top: -120px; right: -80px; background: radial-gradient(circle, rgba(255,111,0,.18), transparent 70%); }
.hero::after { width: 360px; height: 360px; bottom: -160px; left: -120px; background: radial-gradient(circle, rgba(13,71,161,.14), transparent 70%); }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero .eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; }
.hero h1 { margin: 12px 0; }
.hero p.lead { font-size: 1.1rem; max-width: 540px; }
.hero .hero-cta { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-img { border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.hero-img img { width: 100%; height: auto; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.stat { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; text-align: center; }
.stat .num { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; color: var(--primary); }
.stat .label { font-size: .85rem; color: var(--text-soft); }

/* Subjects strip */
.subject-card { display: flex; align-items: center; gap: 14px; }
.subject-card img { width: 54px; height: 54px; }
.subject-card h3 { margin: 0; }
.subject-card span { font-size: .85rem; color: var(--text-soft); }

/* Spotlight banner */
.spotlight {
  background: linear-gradient(120deg, var(--accent), var(--accent-dark));
  color: #fff; border-radius: 18px; padding: 36px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap; box-shadow: var(--shadow-lg);
}
.spotlight h3 { color: #fff; margin: 0 0 6px; font-size: 1.45rem; }
.spotlight p { color: #fff3e0; margin: 0; max-width: 560px; }

/* Testimonials */
.testimonials { background: var(--surface); }
.carousel { position: relative; max-width: 760px; margin: 0 auto; }
.carousel-track { overflow: hidden; border-radius: var(--radius); }
.slide { display: none; padding: 34px; text-align: center; }
.slide.active { display: block; animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.slide .quote { font-size: 1.15rem; color: var(--text); font-style: italic; }
.slide .who { margin-top: 14px; font-weight: 600; color: var(--primary); }
.slide .who small { display: block; color: var(--text-soft); font-weight: 400; }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.carousel-nav button { background: var(--primary); color: #fff; border: 0; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots .dot { width: 11px; height: 11px; border-radius: 50%; background: #c5d2e8; border: 0; cursor: pointer; }
.carousel-dots .dot.active { background: var(--primary); }

/* Toppers */
.topper-card { text-align: center; }
.topper-card .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; margin: 0 auto 12px; font-size: 1.4rem; }
.topper-card .score { color: var(--success); font-weight: 700; }

/* FAQ accordion */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 20px 22px; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-q .chev { transition: transform .25s ease; color: var(--primary); font-size: 1.3rem; line-height: 1; }
.faq-item.open .faq-q .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 22px 20px; margin: 0; }

/* ============================================================
   About
   ============================================================ */
.founder-grid { display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: center; }
.founder-photo { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); }
.founder-photo img { width: 100%; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mission-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.tick-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; }
.tick-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text); }
.tick-list .tick { color: var(--success); font-weight: 700; flex: none; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.timeline .milestone { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; text-align: center; border-top: 4px solid var(--accent); }
.timeline .year { font-family: var(--font-head); font-weight: 700; color: var(--primary); font-size: 1.3rem; }

/* ============================================================
   Courses
   ============================================================ */
.course-card { display: flex; flex-direction: column; }
.course-card .course-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.course-card .course-head img { width: 50px; height: 50px; }
.course-card .course-desc { font-size: .95rem; flex: 1; }
.course-card .meta { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 6px; }
.course-toggle { background: none; border: 0; color: var(--primary); font-family: var(--font-head); font-weight: 600; cursor: pointer; padding: 6px 0; }
.course-detail { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.course-detail-inner { padding: 8px 0 14px; border-top: 1px dashed var(--border); margin-top: 8px; }
.course-detail-inner p { margin: 6px 0; }
.course-detail-inner strong { color: var(--text); }

/* ============================================================
   Chemistry Lab page
   ============================================================ */
.lab-hero { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; position: relative; overflow: hidden; }
.lab-hero::before, .lab-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.lab-hero::before { width: 360px; height: 360px; top: -140px; right: -100px; background: radial-gradient(circle, rgba(255,111,0,.28), transparent 70%); }
.lab-hero::after { width: 300px; height: 300px; bottom: -140px; left: -90px; background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%); }
.lab-hero .container { position: relative; z-index: 1; }
.lab-hero h1 { color: #fff; }
.lab-hero p { color: #dbe7fb; }
.lab-hero .lab-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; }

/* Periodic table */
.ptable-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.ptable-filters button { border: 2px solid var(--border); background: #fff; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-family: var(--font-head); font-weight: 600; color: var(--text-soft); }
.ptable-filters button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.ptable { display: grid; grid-template-columns: repeat(18, 1fr); gap: 5px; overflow-x: auto; padding-bottom: 8px; }
.ptile { aspect-ratio: 1; min-width: 42px; border: 0; border-radius: 8px; cursor: pointer; color: #fff; font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2px; transition: transform .12s ease; }
.ptile:hover, .ptile:focus { transform: scale(1.12); outline: 2px solid var(--text); }
.ptile .sym { font-size: .9rem; line-height: 1; }
.ptile .num { font-size: .58rem; opacity: .85; }
.cat-metal { background: #5c6bc0; }
.cat-nonmetal { background: #26a69a; }
.cat-metalloid { background: #8d6e63; }
.cat-noble { background: #ab47bc; }
.cat-alkali { background: #ef5350; }
.cat-other { background: #78909c; }
.ptile.hidden { display: none; }

/* element modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: none; align-items: center; justify-content: center; z-index: 300; padding: 20px; }
.modal-overlay.show { display: flex; }
.modal { background: #fff; border-radius: 16px; max-width: 420px; width: 100%; padding: 28px; box-shadow: var(--shadow-lg); position: relative; }
.modal h3 { margin: 0 0 4px; }
.modal .modal-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--text-soft); }
.modal .cat-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--primary-light); color: var(--primary); font-size: .78rem; font-weight: 600; margin: 8px 0; }

/* Reaction visualizer */
.reaction { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; margin-bottom: 22px; }
.reaction-stage { height: 160px; background: var(--bg); border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 18px; position: relative; overflow: hidden; margin: 14px 0; }
.mol { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .8rem; transition: all .6s ease; flex: none; }
.mol.acid { background: #ef5350; }
.mol.base { background: #42a5f5; }
.mol.salt { background: #66bb6a; }
.mol.fuel { background: #8d6e63; }
.mol.o2 { background: #26c6da; }
.mol.co2 { background: #78909c; }
.mol.metal { background: #5c6bc0; }
.mol.metal-ion { background: #ab47bc; }
.plus, .arrow { font-family: var(--font-head); font-weight: 700; color: var(--text-soft); }
.reaction.combining .mol { animation: merge .8s ease forwards; }
@keyframes merge { to { transform: translateX(60px) scale(.9); opacity: .2; } }
.reaction-products { display: flex; gap: 18px; justify-content: center; opacity: 0; transition: opacity .5s ease .4s; }
.reaction-products.show { opacity: 1; }

/* Flip cards */
.flip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.flip-card { perspective: 1000px; height: 200px; cursor: pointer; }
.flip-inner { position: relative; width: 100%; height: 100%; transition: transform .6s; transform-style: preserve-3d; }
.flip-card:hover .flip-inner, .flip-card.flipped .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back { position: absolute; inset: 0; backface-visibility: hidden; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.flip-front { background: var(--primary); color: #fff; }
.flip-front h3 { color: #fff; }
.flip-front .hint { margin-top: auto; font-size: .8rem; opacity: .8; }
.flip-back { background: var(--accent); color: #fff; transform: rotateY(180deg); }
.flip-back .trick { font-weight: 700; font-family: var(--font-head); margin-bottom: 8px; }

/* Mini lab */
.minilab { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.minilab-steps { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.minilab-step { border: 2px solid var(--border); background: #fff; border-radius: 10px; padding: 12px 16px; cursor: pointer; font-family: var(--font-head); font-weight: 600; color: var(--text-soft); }
.minilab-step.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.minilab-step.done { border-color: var(--success); color: var(--success); }
.minilab-tube { height: 120px; border-radius: 0 0 40px 40px; border: 3px solid var(--text-soft); border-top: 0; width: 90px; margin: 0 auto; display: flex; align-items: flex-end; justify-content: center; background: rgba(255,255,255,.4); overflow: hidden; }
.minilab-liquid { width: 100%; height: 0; transition: height .5s ease, background .5s ease; background: #42a5f5; }
.minilab-status { text-align: center; margin-top: 14px; font-weight: 600; color: var(--primary); min-height: 1.4em; }

/* Resource buttons */
.resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.resource-btn { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); font-family: var(--font-head); font-weight: 600; color: var(--primary); cursor: pointer; }
.resource-btn:hover { border-color: var(--primary); transform: translateY(-2px); }

/* ============================================================
   Gallery
   ============================================================ */
.gallery-filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.gallery-filters button { border: 2px solid var(--border); background: #fff; padding: 9px 18px; border-radius: 999px; cursor: pointer; font-family: var(--font-head); font-weight: 600; color: var(--text-soft); }
.gallery-filters button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; position: relative; }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; font-size: .85rem; }
.gallery-item.hidden { display: none; }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: none; align-items: center; justify-content: center; z-index: 400; padding: 30px; }
.lightbox.show { display: flex; }
.lightbox img { max-width: 90%; max-height: 86%; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox .lb-close { position: absolute; top: 20px; right: 26px; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; }

/* ============================================================
   Location
   ============================================================ */
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.loc-info .info-row { display: flex; gap: 12px; margin-bottom: 16px; }
.loc-info .info-row .ic { color: var(--primary); font-size: 1.3rem; flex: none; }
.rating-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--success); color: #fff; padding: 8px 14px; border-radius: 10px; font-weight: 600; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: start; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-family: var(--font-head); font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-control { width: 100%; padding: 12px 14px; border: 2px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: 1rem; background: #fff; }
.form-control:focus { outline: none; border-color: var(--primary); }
.form-group.error .form-control { border-color: #d32f2f; }
.error-msg { color: #d32f2f; font-size: .82rem; margin-top: 5px; display: none; }
.form-group.error .error-msg { display: block; }
.contact-side { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.contact-side .side-actions { display: flex; gap: 12px; margin: 18px 0; }
.contact-side .side-actions .btn { flex: 1; }
.whatsapp { background: #25d366 !important; color: #fff !important; }
.quick-links { list-style: none; padding: 0; margin: 10px 0 0; }
.quick-links li { margin: 6px 0; }

/* ============================================================
   Page banner (inner pages)
   ============================================================ */
.page-banner { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 48px 0; }
.page-banner h1 { color: #fff; margin: 0; }
.page-banner p { color: #dbe7fb; margin: 8px 0 0; }

/* ============================================================
   Floating WhatsApp + Call buttons
   ============================================================ */
.fab-group {
  position: fixed; right: 18px; bottom: 18px; z-index: 500;
  display: flex; flex-direction: column; gap: 14px; align-items: flex-end;
}
.fab {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); cursor: pointer; border: 0; color: #fff;
  transition: transform .18s ease, box-shadow .18s ease; position: relative;
}
.fab:hover { transform: translateY(-3px) scale(1.05); }
.fab svg { width: 26px; height: 26px; fill: #fff; }
.fab-call { background: var(--accent); }
.fab-wa { background: #25d366; }
.fab-wa::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366;
  animation: fab-pulse 2s ease-out infinite;
}
@keyframes fab-pulse {
  0% { transform: scale(1); opacity: .7; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
.fab .fab-label {
  position: absolute; right: 68px; top: 50%; transform: translateY(-50%);
  background: #1a1a1a; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  padding: 7px 12px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .18s ease;
}
.fab:hover .fab-label { opacity: 1; }
@media (max-width: 480px) {
  .fab { width: 52px; height: 52px; }
  .fab .fab-label { display: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1280px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .flip-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .founder-grid, .loc-grid, .contact-grid, .lab-hero .lab-hero-grid { grid-template-columns: 1fr; }
  .mission-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .call-now { display: none; }
  .grid-3, .resource-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .tick-list { grid-template-columns: 1fr; }
  .ptable { grid-template-columns: repeat(18, 40px); }
}
@media (max-width: 480px) {
  section { padding: 44px 0; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .flip-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
  .spotlight { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
}
