/* ===================== Design tokens ===================== */
:root {
  --green-900: #0d3b20;
  --green-800: #124a29;
  --green-700: #14532d;
  --green-600: #1c6b3a;
  --green-100: #eaf5ec;
  --green-50: #f4faf5;
  --gold-500: #f4b400;
  --gold-600: #d69c00;
  --red-600: #c0392b;
  --ink-900: #16241c;
  --ink-600: #4a5a4f;
  --ink-400: #78897e;
  --paper: #ffffff;
  --line: #e2ece3;
  --shadow-sm: 0 2px 8px rgba(13, 59, 32, 0.08);
  --shadow-md: 0 10px 30px rgba(13, 59, 32, 0.12);
  --shadow-lg: 0 20px 50px rgba(13, 59, 32, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .5em; color: var(--green-900); line-height: 1.2; }
p { margin: 0 0 1em; color: var(--ink-600); }

body.lang-kn { font-family: 'Noto Sans Kannada', var(--font-body); }
body.lang-kn h1, body.lang-kn h2, body.lang-kn h3, body.lang-kn h4 {
  font-family: 'Noto Sans Kannada', var(--font-display);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-accent {
  background: var(--gold-500);
  color: var(--green-900);
  box-shadow: 0 10px 24px rgba(244, 180, 0, 0.35);
}
.btn-accent:hover { background: var(--gold-600); }
.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn-ghost:hover { background: rgba(255,255,255,0.18); }
.btn-primary {
  background: var(--green-700);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--green-800); }
.btn-outline-light {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
  background: transparent;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.15); }

/* ===================== Top bar ===================== */
.topbar {
  background: var(--green-900);
  color: #cfe4d4;
  font-size: 0.82rem;
}
.topbar-inner {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  padding: 7px 24px;
  flex-wrap: wrap;
}
.topbar-item { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar-hours { color: var(--gold-500); font-weight: 500; }

.lang-switch {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 3px;
  margin-left: auto;
}
.lang-btn {
  border: none;
  background: transparent;
  color: #cfe4d4;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
  font-family: 'Noto Sans Kannada', var(--font-body);
}
.lang-btn.is-active { background: var(--gold-500); color: var(--green-900); }
.lang-btn:not(.is-active):hover { background: rgba(255,255,255,0.16); }

/* ===================== Header ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-badge { border-radius: 50%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--green-900); }
.brand-sub { font-size: 0.72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-400); font-weight: 600; }

.main-nav { display: flex; gap: 30px; }
.main-nav a {
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--ink-900);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold-500);
  transition: width .2s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .btn-outline-light { border-color: var(--green-700); color: var(--green-800); }
.header-cta .btn-outline-light:hover { background: var(--green-50); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span { display: block; height: 2px; background: var(--green-900); border-radius: 2px; }

/* ===================== Hero ===================== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--green-900) 0%, var(--green-700) 55%, var(--green-600) 100%);
  color: #fff;
  padding: 96px 0 84px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}
.blob-1 { width: 420px; height: 420px; background: var(--gold-500); top: -160px; right: -120px; opacity: 0.22; }
.blob-2 { width: 340px; height: 340px; background: #ffffff; bottom: -180px; left: -100px; opacity: 0.08; }
.hero-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.10) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: 0.5;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  text-align: center;
  margin: 0 auto;
}
.hero-logo {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 24px;
  box-shadow: 0 0 0 5px rgba(244, 180, 0, 0.25), var(--shadow-lg);
}
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: .05em;
  color: var(--gold-500);
  background: rgba(244, 180, 0, 0.12);
  border: 1px solid rgba(244, 180, 0, 0.35);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  margin-bottom: 18px;
}
.hero-lede {
  color: #dcecdf;
  font-size: 1.08rem;
  max-width: 620px;
  margin: 0 auto 32px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-500);
  margin: 0;
}

/* ===================== Stats strip ===================== */
.stats-strip {
  background: var(--green-50);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 34px 24px;
}
.stat-card {
  text-align: center;
  padding: 10px 16px;
  border-left: 1px solid var(--line);
}
.stat-card:first-child { border-left: none; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--green-700);
}
.stat-label { font-size: 0.85rem; color: var(--ink-600); margin-top: 4px; }

/* ===================== Sections ===================== */
.section { padding: 84px 0; }
.section-alt { background: var(--green-50); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-kicker {
  color: var(--gold-600);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-sub { color: var(--ink-600); }

/* ===================== Scheme cards ===================== */
.scheme-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.scheme-row-3 { grid-template-columns: repeat(3, 1fr); }

.scheme-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.scheme-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.scheme-card-compact { display: flex; flex-direction: column; }

.scheme-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.scheme-card-head h3 { margin: 0; font-size: 1.2rem; }
.scheme-badge {
  background: var(--green-700);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.scheme-note { font-size: 0.87rem; color: var(--ink-400); margin-bottom: 18px; }

.fact-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.fact-list li {
  background: var(--green-50);
  border-left: 3px solid var(--gold-500);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
  color: var(--ink-900);
}
.fact-list strong { color: var(--green-800); }

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
thead th {
  background: var(--green-700);
  color: #fff;
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
  white-space: nowrap;
}
thead th:first-child { border-radius: 8px 0 0 0; }
thead th:last-child { border-radius: 0 8px 0 0; }
tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-900);
}
tbody tr:nth-child(even) { background: var(--green-50); }
tbody tr:last-child td { border-bottom: none; }
tbody td:not(:first-child) { color: var(--red-600); font-weight: 600; }
.table-tight th, .table-tight td { padding: 9px 10px; font-size: 0.86rem; }

.disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-400);
  max-width: 720px;
  margin: 8px auto 0;
}

/* ===================== Facilities ===================== */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.facility-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 26px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.facility-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.facility-icon { font-size: 1.8rem; margin-bottom: 10px; }
.facility-card h4 { font-family: var(--font-body); font-size: 0.88rem; font-weight: 600; color: var(--ink-900); margin: 0; }
.facility-card h4 span { display: block; font-weight: 400; font-size: 0.74rem; color: var(--ink-400); margin-top: 3px; }
.facility-highlight { background: var(--green-700); border-color: var(--green-700); }
.facility-highlight h4 { color: #fff; }

.subsection-head { text-align: center; margin: 56px 0 28px; }
.subsection-head h3 { font-size: 1.25rem; }
.facilities-grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ===================== Leadership ===================== */
.leader-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 620px;
  margin: 0 auto 28px;
}
.leader-card-featured {
  background: var(--green-700);
  border-color: var(--green-700);
}
.leader-card-featured h4 { color: #fff; }
.leader-card-featured .leader-title { color: var(--gold-500); }

.leader-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.leader-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.leader-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.leader-card h4 { font-family: var(--font-body); font-size: 0.92rem; font-weight: 600; color: var(--ink-900); margin: 0 0 4px; }
.leader-avatar { font-size: 1.7rem; margin-bottom: 8px; }
.leader-title { font-size: 0.76rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--green-700); }

/* ===================== About ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-reg {
  font-size: 0.82rem;
  color: var(--ink-400);
  background: var(--green-50);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: 8px;
}
.about-hours {
  background: var(--green-900);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
}
.about-hours h3 { color: var(--gold-500); font-size: 1.1rem; }
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  font-size: 0.92rem;
}
.hours-row:last-of-type { border-bottom: none; }
.hours-row span { color: #cfe4d4; }
.hours-note { font-size: 0.8rem; color: #b7cdbd; margin-top: 14px; }

/* ===================== Contact ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.contact-card h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-card p { margin-bottom: 18px; }
.contact-card a { color: var(--green-700); font-weight: 600; }
.map-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  min-height: 320px;
}
.map-card iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ===================== Footer ===================== */
.site-footer { background: var(--green-900); color: #cfe4d4; padding-top: 56px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-logo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; }
.footer-brand .brand-title { color: #fff; display: block; font-size: 1.15rem; }
.footer-brand .brand-sub { color: var(--gold-500); }
.footer-tagline { font-family: var(--font-display); font-style: italic; color: var(--gold-500); margin-top: 12px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: #cfe4d4; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--gold-500); }
.footer-contact p { color: #b7cdbd; font-size: 0.88rem; }
.footer-bottom { text-align: center; font-size: 0.8rem; color: #9fb8a6; padding: 18px 0; }

/* ===================== Back to top ===================== */
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .25s ease;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--green-800); }

/* ===================== Reveal animation ===================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===================== Responsive ===================== */
@media (max-width: 980px) {
  .scheme-row, .scheme-row-3 { grid-template-columns: 1fr; }
  .facilities-grid, .facilities-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .stat-card:nth-child(3) { border-left: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .leader-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-hours { display: none; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 320px; }
  .main-nav a { padding: 16px 24px; border-top: 1px solid var(--line); }
  .header-cta .btn-outline-light { display: none; }
  .nav-toggle { display: flex; }
  .facilities-grid, .facilities-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .leader-row { grid-template-columns: 1fr; }
  .leader-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero { padding: 72px 0 60px; }
  .section { padding: 60px 0; }
  .scheme-card { padding: 20px; }
}
