/* ============================
   Kerala Tigers – Global Styles
   Mobile-first, Pro Design
   ============================ */

:root {
  --primary: #f7931d;
  --primary-dark: #c56a00;
  --accent: #6b1b16;
  --bg: #05060a;
  --bg-elevated: #111827;
  --bg-soft: #0b0f19;
  --border-soft: #272b35;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --white: #ffffff;
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.7);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background: radial-gradient(circle at top, #111827 0, #020617 45%, #000 100%);
  color: var(--text-main);
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  display: block;
}

/* Layout helpers */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* ============================
   HEADER / NAV
   ============================ */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #020617 0, #020617dd 40%, #020617 100%);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(14px);
}

.nav-bar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid var(--primary);
  overflow: hidden;
  box-shadow: 0 0 16px rgba(247, 147, 29, 0.6);
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name span:first-child {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.brand-name span:last-child {
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Hamburger */
.hamburger {
  width: 32px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  border-radius: 999px;
  background: var(--text-main);
  transition: transform 0.18s ease-out, opacity 0.18s ease-out;
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Nav links - mobile */
.nav-links {
  position: fixed;
  inset: 64px 0 auto 0;
  height: 0;
  overflow: hidden;
  background: #020617f5;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: height 0.22s ease-out;
}

.nav-links.nav-open {
  height: 240px;
}

.nav-links a {
  padding: 0.88rem 1.4rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.nav-links a:hover {
  background: #111827;
  color: var(--text-main);
}

.nav-links a.active {
  color: var(--primary);
}

/* Desktop nav */
@media (min-width: 900px) {
  .hamburger {
    display: none;
  }

  .nav-links {
    position: static;
    height: auto !important;
    flex-direction: row;
    background: transparent;
    border-bottom: none;
    align-items: center;
    gap: 1.4rem;
  }

  .nav-links a {
    padding: 0;
    font-size: 0.8rem;
    position: relative;
  }

  .nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.18s ease-out;
  }

  .nav-links a:hover::after,
  .nav-links a.active::after {
    width: 100%;
  }
}

/* ============================
   HERO SECTIONS
   ============================ */

.hero {
  padding: 2.6rem 0 2.4rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 12px rgba(247, 147, 29, 0.85);
}

.hero-title {
  font-size: 2.15rem;
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0.95rem 0 0.5rem;
}

.hero-title span {
  color: var(--primary);
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 34rem;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn {
  border-radius: 999px;
  padding: 0.75rem 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #000;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
}

/* Hero meta */
.hero-meta {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
}


.hero-meta span strong {
  color: var(--primary);
}

/* Hero crest card */
.hero-card {
  background: radial-gradient(circle at top, rgba(247, 147, 29, 0.22), var(--bg-elevated));
  border-radius: 1.4rem;
  padding: 1.7rem 1.4rem 1.4rem;
  border: 1px solid var(--border-soft);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.hero-card h2 {
  margin-top: 0.8rem;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-card p {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Desktop hero layout */
@media (min-width: 900px) {
  .hero {
    padding: 3.4rem 0 3rem;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: center;
    gap: 2.4rem;
  }
  .hero-actions {
    flex-direction: row;
  }
  .hero-meta {
    grid-auto-flow: column;
    justify-content: flex-start;
  }
}

/* ============================
   SECTIONS / CARDS
   ============================ */

section.section {
  padding: 2.4rem 0;
}

.section-header {
  margin-bottom: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

.section-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-kicker span {
  color: var(--primary);
}

.section-title {
  font-size: 1.1rem;
}

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.card {
  background: var(--bg-elevated);
  border-radius: 1.1rem;
  padding: 1.2rem 1.1rem;
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.card-label {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.card-label--primary {
  border-color: rgba(247, 147, 29, 0.6);
  background: rgba(247, 147, 29, 0.12);
  color: var(--primary);
}

.card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

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

.card-meta {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Wider grids on desktop */
@media (min-width: 700px) {
  .card-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ============================
   ABOUT / STATS
   ============================ */

.about-grid {
  display: grid;
  gap: 1.3rem;
}

.about-main {
  background: var(--bg-elevated);
  border-radius: 1.1rem;
  padding: 1.3rem 1.2rem;
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 0.93rem;
}

.about-main h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-main);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.stat {
  background: var(--bg-elevated);
  border-radius: 1rem;
  padding: 0.9rem 0.9rem;
  border: 1px solid var(--border-soft);
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-note {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.2fr);
    align-items: stretch;
  }
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ============================
   CONTACT
   ============================ */

.contact-grid {
  display: grid;
  gap: 1.3rem;
}

.contact-card {
  background: var(--bg-elevated);
  border-radius: 1.1rem;
  padding: 1.3rem 1.2rem;
  border: 1px solid var(--border-soft);
}

.contact-card h3 {
  font-size: 0.98rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.contact-row {
  margin-top: 0.45rem;
}

.contact-label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-value {
  font-size: 0.95rem;
}

.contact-form {
  display: grid;
  gap: 0.7rem;
}

.field label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  display: block;
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 0.7rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border-soft);
  background: var(--bg-soft);
  color: var(--text-main);
  font-size: 0.9rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(247, 147, 29, 0.5);
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr);
  }
}

/* ============================
   FOOTER
   ============================ */

footer {
  border-top: 1px solid var(--border-soft);
  padding: 1.2rem 0 1.8rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.footer-links {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Center footer on small screens */
@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
