/* ===========================
   Karnataka Vijaya Sena — Global Styles
   =========================== */

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

:root {
  /* Brand — Deep Navy + Saffron + Gold */
  --navy:         #0F2167;
  --navy-dark:    #091444;
  --navy-mid:     #1B3A8C;
  --navy-light:   #2A4FA8;
  --saffron:      #FF6D00;
  --saffron-light:#FF9240;
  --saffron-pale: #FFF3EB;
  --gold:         #FFB800;
  --gold-light:   #FFD966;
  --gold-pale:    #FFFBEB;

  /* Neutral */
  --white:        #ffffff;
  --off-white:    #F4F6FF;
  --slate-100:    #f1f5f9;
  --slate-200:    #e2e8f0;
  --slate-300:    #cbd5e1;
  --slate-400:    #94a3b8;
  --slate-500:    #64748b;
  --slate-700:    #334155;
  --slate-900:    #0A0F2E;

  /* Radii */
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    32px;

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(15,33,103,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:    0 4px 16px rgba(15,33,103,.12), 0 1px 4px rgba(0,0,0,.06);
  --shadow-lg:    0 12px 40px rgba(15,33,103,.16), 0 4px 12px rgba(0,0,0,.08);
  --shadow-saffron: 0 4px 20px rgba(255,109,0,.30);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Noto Sans', 'DM Sans', system-ui, sans-serif;

  --transition:   0.22s cubic-bezier(.4,0,.2,1);
}

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

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--slate-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  padding: 0 5vw;
  height: 70px;
  background: rgba(9,20,68,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,109,0,.18);
}

.nav-logo {
  display: flex; align-items: center; gap: .65rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-emblem {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--gold) 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--navy-dark);
  box-shadow: 0 0 0 2px rgba(255,184,0,.4);
  flex-shrink: 0;
}
.nav-logo-text {
  display: flex; flex-direction: column; line-height: 1.1;
}
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .01em;
}
.nav-logo-abbr {
  font-size: .7rem;
  font-weight: 500;
  color: var(--saffron-light);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
  display: flex; gap: 1.75rem;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,.80);
  font-size: .92rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--saffron-light); }

.nav-cta {
  display: flex; align-items: center; gap: .75rem;
  margin-left: 1.5rem;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-light) 100%);
  color: var(--white);
  padding: .65rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .93rem;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: var(--shadow-saffron);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--saffron-light) 0%, var(--gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,109,0,.40);
}
.btn-primary.btn-lg { padding: .9rem 2.2rem; font-size: 1rem; border-radius: var(--radius-lg); }

.btn-outline {
  display: inline-block;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.45);
  padding: .83rem 1.8rem;
  border-radius: var(--radius-lg);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(255,255,255,.10);
  border-color: var(--saffron-light);
  color: var(--saffron-light);
}

.btn-ghost {
  display: inline-block;
  color: rgba(255,255,255,.75);
  padding: .65rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: .93rem;
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}
.btn-ghost:hover { color: var(--white); background: rgba(255,255,255,.10); }

.btn-navy {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: .65rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .93rem;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
}
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-1px); }
.btn-navy.btn-lg { padding: .9rem 2.2rem; font-size: 1rem; border-radius: var(--radius-lg); }

/* ── Section shared ── */
.section-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: .75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1rem;
}
.section-title em {
  font-style: italic;
  color: var(--saffron);
}
.section-sub {
  font-size: 1.05rem;
  color: var(--slate-500);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 3rem;
}

/* ── Footer ── */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.70);
  padding: 5rem 8vw 2.5rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.10);
  margin-bottom: 2rem;
}
.footer-brand p {
  font-size: .9rem;
  margin-top: .75rem;
  max-width: 220px;
  line-height: 1.6;
  color: rgba(255,255,255,.55);
}
.footer-col h5 {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--saffron-light);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  margin-bottom: .5rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.45); text-decoration: none; transition: color var(--transition); }
.footer-bottom a:hover { color: var(--saffron-light); }
.footer-flag {
  display: flex; align-items: center; gap: .5rem;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}
.flag-stripe {
  display: flex; flex-direction: column;
  gap: 2px; width: 24px;
}
.flag-stripe span { height: 4px; border-radius: 2px; }
.flag-stripe span:nth-child(1) { background: #FF6D00; }
.flag-stripe span:nth-child(2) { background: #fff; }
.flag-stripe span:nth-child(3) { background: #138808; }

/* ── Hamburger Mobile ── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--white);
  margin-left: auto;
  padding: .25rem;
}

@media (max-width: 860px) {
  .hamburger { display: block; }
  .nav-links, .nav-cta { display: none; }

  .nav.nav-open .nav-links,
  .nav.nav-open .nav-cta {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--navy-dark);
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(255,109,0,.2);
    z-index: 99;
  }
  .nav.nav-open .nav-cta { top: auto; border-bottom: none; }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
