:root {
  --emerald: #0b5d43;
  --emerald-dark: #074431;
  --emerald-soft: rgba(11, 93, 67, 0.08);
  --gold: #c8963e;
  --gold-soft: rgba(200, 150, 62, 0.14);
  --canvas: #f6f8f5;
  --surface: #ffffff;
  --ink: #111c18;
  --ink-muted: #52635c;
  --line: #dce4de;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Noto Sans Malayalam", system-ui, -apple-system, sans-serif;
  background-color: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Wordmark matching SSF KERALA lockup */
.brand-lockup {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  line-height: 1;
  white-space: nowrap;
}

.brand-ssf {
  font-family: "Cooper Black", "Fraunces", Georgia, serif;
  font-weight: 900;
  font-size: clamp(1.08rem, 2.5vw, 1.5rem);
  letter-spacing: -0.02em;
  color: var(--emerald);
}

.brand-division {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(0.95rem, 2.2vw, 1.32rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
}

.brand-lockup-light .brand-ssf,
.brand-lockup-light .brand-division {
  color: #ffffff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 248, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.nav-links a:hover {
  color: var(--emerald);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-muted);
  transition: all 0.2s ease;
}

.social-pill:hover {
  border-color: var(--emerald);
  color: var(--emerald);
  background: var(--emerald-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 1.05rem;
  border-radius: 12px;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-primary {
  background: var(--emerald);
  color: #ffffff;
  box-shadow: 0 8px 20px -8px rgba(11, 93, 67, 0.55);
}

.btn-primary:hover {
  background: var(--emerald-dark);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: #111c18;
}

.btn-gold:hover {
  filter: brightness(0.95);
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #073f2d 0%, #0b5d43 58%, #107354 100%);
  color: #ffffff;
  padding: 3.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.78rem;
  font-weight: 600;
  color: #f4d69c;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.hero-sub {
  margin: 1rem 0 1.65rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 560px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-campaign-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.jeevithamakkuka-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.25rem 0.5rem 0.5rem;
}

.campaign-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.72rem;
  border-radius: 999px;
  background: rgba(200, 150, 62, 0.18);
  border: 1px solid rgba(200, 150, 62, 0.42);
  color: #f6d99e;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.jeevithamakkuka-wrap img {
  max-width: 100%;
  max-height: 190px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
}

.malayalam-quote-card {
  margin-top: 1.35rem;
  padding: 1.35rem 1.5rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #f3f8f5 0%, #ffffff 100%);
  border: 1px solid rgba(11, 93, 67, 0.22);
  border-left: 5px solid var(--emerald);
}

.malayalam-quote-card h3 {
  margin: 0 0 0.55rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--emerald);
}

.malayalam-quote-card p {
  margin: 0;
  font-family: "Noto Sans Malayalam", "Inter", sans-serif;
  font-size: 0.96rem;
  line-height: 1.85;
  color: var(--ink);
}

.council-mini-box {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.council-mini-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.pill-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: 0.72rem;
  font-weight: 700;
}

.countdown-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
}

.cd-cell {
  background: #f0f4f1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.3rem;
  text-align: center;
}

.cd-num {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--emerald);
}

.cd-lbl {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Sections */
.section {
  padding: 3.75rem 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 680px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 0.4rem;
}

.section-head h2 {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0.6rem 0 0;
  color: var(--ink-muted);
  font-size: 0.96rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.section-alt .card {
  background: var(--canvas);
}

.card:hover {
  border-color: rgba(11, 93, 67, 0.35);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--emerald-soft);
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.stat-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem;
}

.stat-val {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--emerald);
}

.stat-lbl {
  font-size: 0.76rem;
  color: var(--ink-muted);
}

/* Video & Socials */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0d1512;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.social-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: all 0.2s ease;
}

.social-card:hover {
  border-color: var(--emerald);
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  background: #0e1915;
  color: rgba(255, 255, 255, 0.8);
  padding: 2.75rem 0 2rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom {
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.58);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(10, 18, 15, 0.64);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.28);
  animation: popIn 0.18s ease-out;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(6px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}

.modal-head h3 {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--canvas);
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}

.step-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.step-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem;
  border-radius: 12px;
  background: var(--canvas);
  border: 1px solid var(--line);
  font-size: 0.88rem;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--emerald);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sector-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.sector-chip {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--canvas);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1.2fr 0.9fr;
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}