/* ==========================================================================
   IDA Kerala — Design Tokens & Component Styles
   Base: Tailwind CSS (CDN, utility classes) + this file for tokens,
   typography, custom components and motion that Tailwind utilities alone
   don't express cleanly.
   ========================================================================== */

:root {
  --navy-950: #061a30;
  --navy-900: #0a2540;
  --navy-800: #0e3a63;
  --navy-700: #124a7d;
  --navy-600: #175c9c;
  --navy-500: #1f6fb8;
  --gold-300: #f8d888;
  --gold-400: #f5c451;
  --gold-500: #edb02f;
  --gold-600: #d89a1d;
  --magenta-600: #c2255c;
  --magenta-50: #fdf1f6;
  --teal-500: #0d9488;
  --bg-soft: #f5f8fb;
  --ring-focus: #1f6fb8;

  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-script: "Caveat", cursive;

  --shadow-card: 0 1px 2px rgba(10, 37, 64, 0.06), 0 8px 24px -8px rgba(10, 37, 64, 0.12);
  --shadow-card-hover: 0 4px 10px rgba(10, 37, 64, 0.08), 0 20px 40px -12px rgba(10, 37, 64, 0.22);
  --shadow-pop: 0 20px 60px -12px rgba(6, 26, 48, 0.35);
}

/* ---------------------------------- base --------------------------------- */

* { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: #16233a;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, .font-display {
  font-family: var(--font-display);
}

.font-script {
  font-family: var(--font-script);
}

::selection { background: var(--gold-400); color: var(--navy-950); }

/* Consistent, visible focus ring for keyboard users on every interactive element */
a, button, input, select, textarea, summary, [tabindex] {
  outline-offset: 2px;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--ring-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--navy-900);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* thin custom scrollbar for horizontal scrollers */
.scroll-thin::-webkit-scrollbar { height: 6px; }
.scroll-thin::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }

/* ------------------------------ utilities -------------------------------- */

.container-ida {
  width: 100%;
  max-width: 80rem; /* 1280px */
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 1024px) { .container-ida { padding-inline: 2rem; } }

.text-gradient-gold {
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg-navy-gradient {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-700);
}
.section-eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--gold-500);
  display: inline-block;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ------------------------------- buttons --------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  padding: 0.875rem 1.5rem;
  border-radius: 0.6rem;
  min-height: 44px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-gold {
  background: var(--gold-500);
  color: var(--navy-950);
  box-shadow: 0 8px 20px -8px rgba(237, 176, 47, 0.6);
}
.btn-gold:hover { background: var(--gold-400); box-shadow: 0 10px 24px -6px rgba(237, 176, 47, 0.7); }

.btn-navy {
  background: var(--navy-800);
  color: #fff;
}
.btn-navy:hover { background: var(--navy-700); }

.btn-outline {
  background: transparent;
  color: var(--navy-900);
  border: 1.5px solid #cbd5e1;
}
.btn-outline:hover { border-color: var(--navy-800); background: rgba(14, 58, 99, 0.04); }

.btn-outline-invert {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.btn-outline-invert:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }

.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.8125rem; min-height: 38px; }

/* --------------------------------- cards ---------------------------------- */

.card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #eef2f6;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card-hover:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--navy-800);
  transition: gap 0.2s ease, color 0.2s ease;
}
.link-arrow:hover { gap: 0.6rem; color: var(--gold-600); }
.link-arrow .icon { width: 1rem; height: 1rem; }

/* ------------------------------ top utility bar --------------------------- */

.topbar-link {
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.15s ease;
}
.topbar-link:hover { color: #fff; }

.social-btn {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}
.social-btn:hover { background: var(--gold-500); color: var(--navy-950); transform: translateY(-2px); }
.social-btn .icon { width: 15px; height: 15px; }

/* ---------------------------------- header --------------------------------- */

header#site-header {
  transition: box-shadow 0.25s ease, padding 0.25s ease;
}
header#site-header.is-scrolled {
  box-shadow: 0 8px 24px -12px rgba(10, 37, 64, 0.25);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #1f2c3d;
  padding: 0.5rem 0.1rem;
  white-space: nowrap;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-link:hover::after, .nav-link[aria-expanded="true"]::after { transform: scaleX(1); }
.nav-link:hover { color: var(--navy-900); }
.nav-link .icon { width: 0.9rem; height: 0.9rem; transition: transform 0.2s ease; }
.nav-link[aria-expanded="true"] .icon { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translate(-50%, 6px);
  min-width: 15rem;
  background: #fff;
  border-radius: 0.85rem;
  border: 1px solid #eef2f6;
  box-shadow: var(--shadow-pop);
  padding: 0.6rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 50;
}
.nav-item.is-open .nav-dropdown,
.nav-dropdown:focus-within {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav-dropdown a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-dropdown a:hover { background: var(--bg-soft); color: var(--navy-900); }

/* mobile drawer */
#mobile-drawer {
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateX(100%);
}
#mobile-drawer.is-open { transform: translateX(0); }
#mobile-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
#mobile-overlay.is-open { opacity: 1; pointer-events: auto; }

.mobile-accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.28s ease; }
.mobile-accordion.is-open + .mobile-accordion-panel { max-height: 20rem; }
.mobile-accordion .icon { transition: transform 0.2s ease; }
.mobile-accordion.is-open .icon { transform: rotate(180deg); }

/* search flyout */
#search-panel {
  transform-origin: top right;
  transform: scaleY(0.95) translateY(-6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
#search-panel.is-open { opacity: 1; transform: scaleY(1) translateY(0); pointer-events: auto; }

/* ---------------------------------- hero ----------------------------------- */

.hero-shape {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--navy-950) 0%, rgba(10, 37, 64, 0.92) 32%, rgba(10, 37, 64, 0.45) 58%, rgba(10, 37, 64, 0.08) 78%, transparent 92%);
}

.hero-badge-quick {
  box-shadow: var(--shadow-pop);
}

.quick-link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  padding: 1.1rem 0.5rem;
  border-radius: 0.85rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.quick-link-item:hover { background: var(--bg-soft); transform: translateY(-2px); }
.quick-link-icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(140deg, #e9f1fb, #dbe9f8);
  color: var(--navy-800);
}

/* ------------------------------- event cards -------------------------------- */

.event-date-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  background: rgba(10, 37, 64, 0.92);
  color: #fff;
  border-radius: 0.6rem;
  padding: 0.4rem 0.6rem;
  text-align: center;
  min-width: 3.4rem;
  backdrop-filter: blur(4px);
}
.event-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-700);
  background: #e7f0fa;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

/* ------------------------------- feature icons -------------------------------- */

.feature-icon {
  width: 3.25rem;
  height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: linear-gradient(145deg, #eef4fb, #dde8f6);
  color: var(--navy-800);
}

/* ---------------------------------- FAQ -------------------------------------- */

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-weight: 600;
  color: #16233a;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-icon {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--navy-800);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--navy-800); color: #fff; }
.faq-item .faq-body {
  padding-bottom: 1.1rem;
  color: #4b5b71;
  font-size: 0.9375rem;
  line-height: 1.65;
}
.faq-item {
  border-bottom: 1px solid #e6ebf1;
}
.faq-item:last-child { border-bottom: none; }

/* ---------------------------------- leadership -------------------------------------- */

.leader-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 4px solid #fff;
  outline: 1px solid #eef2f6;
}
.leader-photo img {
  object-position: 50% 12%;
}

/* ------------------------------- back to top --------------------------------- */

#back-to-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
#back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ------------------------------- scroll reveal --------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* stagger helper */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ---------------------------------- misc --------------------------------- */

.divider-dot { width: 4px; height: 4px; border-radius: 999px; background: #cbd5e1; display: inline-block; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

/* input styling */
.input-field {
  width: 100%;
  border: 1.5px solid #dde3ea;
  border-radius: 0.6rem;
  padding: 0.85rem 1rem 0.85rem 2.6rem;
  font-size: 0.9375rem;
  min-height: 48px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-field:focus { border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(23, 92, 156, 0.12); outline: none; }

.form-toast {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
