/* ============================================================
   STYLE.CSS — Global Design System
   Sarhad Shauryathon / Kargil Marathon
   Font: Outfit (headings + UI) + Inter (body prose)
   Colors: Navy · Gold · Orange brand palette
   ============================================================ */

/* Google Fonts are loaded via <link> tags in header.php — see partials/header.php */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* — Brand colors (Shouryathon logo palette) — */
  --navy:    #0F1A2E;       /* deep navy — primary dark */
  --navy2:   #182236;       /* mid navy — surfaces */
  --gold:    #F0B429;       /* warm gold — accent / highlight */
  --gold2:   #D99F1C;       /* darker gold — hover state */
  --orange:  #E84C1E;       /* brand orange — primary CTA */
  --orange2: #C73D12;       /* darker orange — hover state */
  --sky:     #4A9ACB;       /* sky blue — secondary accent */

  /* — UI neutrals — */
  --bg:      #F6F7FB;       /* page background */
  --card:    #FFFFFF;       /* card / panel surface */
  --text:    #1A2438;       /* body text */
  --muted:   #5A6B85;       /* secondary / muted text */
  --subtle:  rgba(15, 26, 46, 0.06);

  /* — Borders & shadows — */
  --border:  rgba(15, 26, 46, 0.12);
  --shadow:  0 8px 28px rgba(15, 26, 46, 0.10);
  --shadow2: 0 20px 50px rgba(15, 26, 46, 0.14);
  --radius:  16px;
  --radius2: 12px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  font-family: 'Inter', 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-weight: 800;
  line-height: 1.18;
  color: var(--navy);
  margin: 0 0 0.6em;
  letter-spacing: -0.3px;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1em; line-height: 1.75; color: var(--muted); }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-main { min-height: 60vh; }

.section { padding: 64px 0; }
.section.alt {
  /* Plain background — gradient washes removed sitewide (kept only on hero/buttons) */
  background: #F6F7FB;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius2);
  border: 1.5px solid transparent;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--orange), #ff6b3d);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(232, 76, 30, 0.30);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--orange2), var(--orange));
  box-shadow: 0 10px 28px rgba(232, 76, 30, 0.38);
}

.btn-ghost {
  background: var(--card);
  color: var(--navy);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

/* ============================================================
   PAGE HERO (inner pages) — flat background; banner.php drives imagery
   ============================================================ */
.page-hero {
  padding: 48px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   TOPBAR (event date banner)
   ============================================================ */
.topbar {
  background: linear-gradient(90deg, var(--navy), #0c1828);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
}
.topbar-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}
.badge {
  background: rgba(240, 180, 41, 0.18);
  border: 1px solid rgba(240, 180, 41, 0.35);
  color: var(--gold);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.3px;
}
.muted { color: rgba(255, 255, 255, 0.72); }
.toplink { opacity: 0.88; color: rgba(255,255,255,0.88); }
.toplink:hover { opacity: 1; text-decoration: underline; color: #fff; }

/* ============================================================
   NAVWRAP (fallback — used when header.css absent)
   ============================================================ */
.navwrap {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.navrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 42px; height: auto; object-fit: contain; }
.brand-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--navy);
}
.brand-sub { font-size: 12px; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  font-family: 'Outfit', sans-serif;
  padding: 8px 12px;
  border-radius: var(--radius2);
  font-weight: 600;
  color: var(--navy);
  font-size: 14px;
}
.nav-link:hover { background: var(--subtle); text-decoration: none; }

.nav-dd { position: relative; }
.dd-btn { background: none; border: none; cursor: pointer; }
.dd-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow2);
  border-radius: var(--radius);
  padding: 8px;
  display: none;
}
.dd-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius2);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 14px;
}
.dd-menu a:hover { background: var(--subtle); text-decoration: none; }
.nav-dd.open .dd-menu { display: block; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius2);
  background: #fff;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: #fff;
  margin-top: 48px;
}
.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 36px 0;
}
.footer-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  margin-bottom: 12px;
  font-size: 15px;
  letter-spacing: 0.3px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 10px 0; }
.footer-links a { color: rgba(255, 255, 255, 0.80); font-size: 14px; }
.footer-links a:hover { color: var(--gold); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 14px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
  text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 16px; right: 16px; top: 72px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: var(--shadow2);
  }
  .nav.open { display: flex; }
  .dd-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: 1px solid var(--border);
    margin-top: 6px;
  }
  .footer-grid { grid-template-columns: 1fr; }
}
