:root {
  --navy: #1b3a8f;
  --navy-dark: #10255e;
  --green: #2e8b36;
  --green-dark: #23702b;
  --green-light: #9be08f;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --white: #ffffff;
  --bg-alt: #f3f7fc;
  --text: #1e293b;
  --muted: #5b6b82;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(27, 58, 143, 0.08);
  --shadow-lg: 0 18px 40px rgba(27, 58, 143, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .6em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px; font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, transform .15s, box-shadow .2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .5em 1.1em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); }
.btn-whatsapp { background: var(--whatsapp); color: #06331a; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid var(--green-light); outline-offset: 2px;
}

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green-light); margin-bottom: .8rem;
}
.eyebrow-dark { color: var(--green); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--white);
  border-bottom: 1px solid var(--border); box-shadow: 0 2px 10px rgba(27,58,143,.05);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; flex-shrink: 0; }
.brand img { height: 64px; width: auto; max-width: none; }
.brand-footer img {
  height: auto; width: 220px; background: var(--white);
  border-radius: 14px; padding: 10px 14px;
}

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.6rem); }
.site-nav a { white-space: nowrap; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 500; color: var(--navy); }
.site-nav a:not(.btn):hover { color: var(--green); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .2s; }

/* Hero */
.hero {
  background: radial-gradient(1200px 500px at 85% 0%, #2d5fc7 0%, transparent 60%), linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #dbe7f7; padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { color: var(--white); font-size: clamp(2rem, 4.4vw, 3.1rem); }
.hero .accent { color: var(--green-light); }
.hero p { font-size: 1.08rem; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0; }
.hero-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .92rem; }
.hero-badges li::before { content: "✓"; color: var(--green-light); font-weight: 700; margin-right: .4em; }
.hero-logo-card {
  background: var(--white); border-radius: var(--radius); box-shadow: 0 25px 60px rgba(0,0,0,.35);
  padding: clamp(1rem, 3vw, 2rem); display: flex; justify-content: center;
}
.hero-logo-card img { width: 100%; max-width: 460px; height: auto; }

/* Trademark symbol */
.tm { font-size: .45em; font-weight: 600; vertical-align: super; line-height: 0; margin-left: .05em; }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.6rem; }
.section-head p { color: var(--muted); }

.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.about-grid p { color: var(--muted); }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 1rem; text-align: center; box-shadow: var(--shadow);
}
.stat-num { display: flex; justify-content: center; font-size: 2rem; font-weight: 700; color: var(--green); line-height: 1.2; }
.stat-label { color: var(--navy); font-weight: 500; font-size: .92rem; }

.card-grid { display: grid; gap: 1.4rem; }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }

.feature, .service {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.7rem; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.feature:hover, .service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature p, .service p { color: var(--muted); margin: 0; font-size: .95rem; }
.icon {
  width: 52px; height: 52px; border-radius: 14px; background: #e8f5e6;
  display: grid; place-items: center; margin-bottom: 1rem;
}
.icon svg { width: 26px; height: 26px; fill: var(--green); }
.service { border-top: 4px solid var(--green); }

/* Branches */
.branch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.branch-card {
  background: var(--white); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.branch-media { position: relative; aspect-ratio: 16 / 9; background: var(--navy); }
.branch-media img { width: 100%; height: 100%; object-fit: cover; }
.branch-tag {
  position: absolute; left: 1rem; bottom: 1rem; background: var(--green); color: var(--white);
  font-weight: 600; font-size: .85rem; padding: .35em .9em; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.branch-body { padding: 1.7rem; display: flex; flex-direction: column; flex: 1; }
.branch-body h3 { font-size: 1.35rem; }
.branch-address { display: flex; gap: .6rem; color: var(--muted); min-height: 3.3em; }
.branch-address svg { width: 22px; height: 22px; fill: var(--green); flex-shrink: 0; margin-top: 2px; }
.branch-phones { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.branch-phones li {
  background: var(--bg-alt); border-radius: 12px; padding: .7rem 1rem; display: flex; flex-direction: column;
}
.branch-phones span { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.branch-phones a { font-weight: 700; font-size: 1.1rem; color: var(--navy); text-decoration: none; }
.branch-phones a:hover { color: var(--green); }
.branch-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: auto; }
.branch-actions .btn { padding: .75em .6em; font-size: .88rem; text-align: center; }
.branch-alt-actions { display: flex; justify-content: center; gap: 1.4rem; margin-top: 1rem; font-size: .85rem; }
.branch-alt-actions a { color: var(--navy); font-weight: 500; }
.branch-alt-actions a:hover { color: var(--green); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.contact-grid > div > p { color: var(--muted); }
.contact-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.contact-quick > div { background: var(--bg-alt); border-radius: var(--radius); padding: 1.2rem; }
.contact-quick h4 { margin-bottom: .4rem; }
.contact-quick a { display: block; color: var(--green-dark); font-weight: 600; text-decoration: none; }
.enquiry-form {
  background: var(--white); border: 1px solid var(--border); border-radius: 20px;
  padding: 2rem; box-shadow: var(--shadow-lg);
}
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 500; color: var(--navy); margin-bottom: .35rem; font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8em 1em; border: 1px solid #cbd5e1; border-radius: 10px;
  font: inherit; color: var(--text); background: var(--white);
}
.field textarea { resize: vertical; }
.form-error { color: #b91c1c; font-size: .9rem; }
.form-note { font-size: .82rem; color: var(--muted); text-align: center; margin: .8rem 0 0; }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 480px)); gap: 1.4rem; justify-content: center; }
.video-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.video-card h3 { font-size: 1.05rem; margin: 0; padding: 1rem 1.2rem 1.2rem; }
.video-facade, .video-card iframe {
  display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: #000;
}
.video-facade { position: relative; cursor: pointer; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.video-facade:hover img { opacity: 1; }
.video-play {
  position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%;
  background: rgba(255,255,255,.95); box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.video-play::after {
  content: ""; position: absolute; left: 27px; top: 21px;
  border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #e8590c;
}

.photo-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.4rem; max-width: 1120px; margin: 2.4rem auto 0;
}
.photo-card {
  margin: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
.photo-card figcaption { padding: .9rem 1.1rem 1.1rem; font-size: .92rem; color: var(--navy); font-weight: 500; }

.news-heading { text-align: center; margin: 3rem 0 1.2rem; }
.news-list { display: grid; gap: 1rem; max-width: 720px; margin: 0 auto; }
.news-card {
  display: grid; gap: .35rem; padding: 1.3rem 1.5rem; text-decoration: none;
  background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--green);
  border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.news-source { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.news-title { font-weight: 600; color: var(--navy); font-size: 1.05rem; line-height: 1.35; }
.news-summary { color: var(--muted); font-size: .92rem; }
.news-more { color: var(--green); font-weight: 600; font-size: .9rem; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #b8c7de; padding-top: 3.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; }
.site-footer h4 { color: var(--white); }
.site-footer a:not(.brand) { display: block; text-decoration: none; margin-bottom: .3rem; }
.site-footer a:hover { color: var(--green-light); }
.site-footer p { font-size: .92rem; margin-top: .8rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.2rem 0; font-size: .85rem; text-align: center; }

/* Responsive */
@media (max-width: 1000px) {
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .branch-actions { grid-template-columns: 1fr 1fr; }
  .branch-actions .btn-outline { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 76px; left: 0; right: 0; background: var(--white);
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 16px 1rem;
    border-bottom: 1px solid var(--border); box-shadow: 0 10px 20px rgba(27,58,143,.08);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--border); }
  .site-nav .btn { margin-top: .8rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .card-grid.three { grid-template-columns: repeat(2, 1fr); }
  .branch-grid { grid-template-columns: 1fr; }
  .branch-actions { grid-template-columns: repeat(3, 1fr); }
  .branch-actions .btn-outline { grid-column: auto; }
}

@media (max-width: 560px) {
  .card-grid.four, .card-grid.three { grid-template-columns: 1fr; }
  .branch-actions { grid-template-columns: 1fr; }
  .branch-phones, .contact-quick { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .branch-body, .enquiry-form { padding: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Generic Aadhaar franchise label */
.branch-franchise { display: inline-block; margin: -.2rem 0 .9rem; padding: .25rem .7rem; font-size: .8rem; font-weight: 600; color: var(--green-dark); background: #e8f5e9; border-radius: 999px; }
