@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700;800&display=swap');

:root {
  /* BRANDING / COLOR PALETTE */
  --color-bg: #08141f;            /* DARK BG base (ACE365 storm) */
  --color-bg-alt: #0f1b2a;
  --color-bg-card: #0e1620;       /* card surface on dark bg */
  --color-border: #2a3240;
  --color-shadow: rgba(0,0,0,.35);

  --color-primary: #FFD600;        /* lightning yellow */
  --color-primary-dark: #E6C100;
  --color-accent: #1E88E5;          /* storm blue accent */

  --color-text: #F6F6F6;            /* default on dark bg (4.5:1+) */
  --color-text-muted: #A0A0A0;       /* accessible muted on dark bg */

  --color-text-on-primary: #111111;  /* contrast for light primary color */

  /* TYPOGRAPHY SCALE (MANDATORY) */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.75rem;
  --font-size-hero: 3.5rem;

  --line-height-tight: 1.2;
  --line-height-base: 1.6;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;

  /* RADIUS / SPACING (reused) */
  --radius: 12px;

  /* UTILITIES */
  --gap: 1rem;
}

/* RESET / BASE */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Exo 2', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
video,
iframe { max-width: 100%; height: auto; display: block; }

* { box-sizing: border-box; }

/* LAYOUT UTILITIES */
.container { width: 100%; margin: 0 auto; padding: 0 1rem; }

/* HEADER / NAV STRUCTURE */
.site-header { position: sticky; top: 0; min-height: 64px; overflow: visible; background: rgba(8,20,32,0.98); z-index: 100; }
.site-header .container { display: flex; align-items: center; gap: 1rem; padding: 0.5rem 1rem; }

/* LOGO */
.site-logo { display: flex; align-items: center; flex-shrink: 0; overflow: hidden; max-height: 52px; text-decoration: none; }
.site-logo img { height: 44px; width: auto; max-width: 160px; object-fit: contain; display: block; }

/* Hamburger (mobile only rules will be in base/mobile section) */
.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.nav-toggle-label { display: flex; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer;
  margin-left: auto; padding: 0.4rem 0.6rem; z-index: 200;
  border-radius: 6px; background: rgba(0,0,0,0.45);
  border: 1.5px solid rgba(255,255,255,0.7);
}
.nav-toggle-label span { display: block; width: 24px; height: 2px; background-color: #ffffff; border-radius: 2px; transition: 0.2s ease; }

/* RIGHT NAV AREA */
.site-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; z-index: 500;
  background: var(--color-bg); border-top: 1px solid var(--color-border);
  box-shadow: 0 4px 16px var(--color-shadow);
}
.nav-toggle-input:checked ~ .site-nav { display: block; }

/* NAV LIST / LINKS (mobile: vertical; tablet/desktop: horizontal) */
.nav-list { display: flex; flex-direction: column; gap: 0; padding: 0.5rem 0; margin: 0; list-style: none; }
.nav-link { display: block; padding: 0.75rem 1rem; font-size: var(--font-size-sm); color: var(--color-text); text-decoration: none;
  border-bottom: 1px solid var(--color-border); transition: color 0.2s ease, transform 0.2s ease;
}
.nav-link:hover { color: var(--color-accent); text-decoration: none; }

/* DROPDOWN NAV */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; white-space: nowrap; padding: 0.5rem 1rem; display: inline-block; }
.nav-dropdown-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; z-index: 9999;
  list-style: none; margin: 0; padding: 0.5rem 0; background: var(--color-bg-card);
  border: 1px solid var(--color-border); border-radius: var(--radius, 6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18); white-space: nowrap;
}
.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown:focus-within > .nav-dropdown-menu { display: block; }

.nav-dropdown-menu .nav-link { display: block; padding: 0.5rem 1.25rem; width: 100%; border-bottom: none; }
.nav-dropdown-menu .nav-link:hover { background: var(--color-bg-alt); }

/* MOBILE INDENT FOR DROPDOWN under nav when in mobile column layout */
@media (max-width: 767px) {
  .nav-dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 1rem; }

  .nav-dropdown:focus-within > .nav-dropdown-menu { display: block; }
}

/* HERO */
.hero { width: 100%; background: linear-gradient(135deg, rgba(14,22,38,1) 0%, rgba(8,16,32,1) 60%), var(--color-bg); color: #fff; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; min-height: 50vh; position: relative; overflow: hidden;
  text-align: center;
}
.hero-ticker { overflow: hidden; background: var(--color-primary); padding: 0.5rem 0; width: 100%; }
.hero-ticker-inner { display: inline-block; white-space: nowrap; color: var(--color-text-on-primary);
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; animation: ticker-scroll 28s linear infinite; padding-left: 100%; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hero-content { text-align: center; padding-top: 2.5rem; }
.hero-media { max-width: 680px; margin: 1.5rem auto; }
.hero-img { width: 100%; border-radius: var(--radius); object-fit: cover; display: block; }
.hero-cta { justify-content: center; display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* TEXT INSIDE HERO */
.hero h1 { font-size: var(--font-size-hero); margin: 0 0 0.25rem; line-height: var(--line-height-tight); text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.hero p { margin: 0; font-size: var(--font-size-base); color: #F0F5FF; }

/* CARDS */
.card { display: flex; flex-direction: column; border: 1px solid var(--color-border);
  border-radius: var(--radius); overflow: hidden; background: var(--color-bg-card);
  transition: transform 0.2s ease; }
.card:hover { transform: translateY(-2px); }
.card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
  border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }

/* CARD GRID (AUTO-FILL) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }

/* SECTIONS */
.section { padding: 2rem 0; }
.section-title { font-size: var(--font-size-2xl); }

/* FOOTER */
.site-footer { background: #0b111a; color: var(--color-text); padding: 2rem 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }

/* FORMS / TYPED INPUTS */
label { display: block; margin-bottom: 0.25rem; font-size: var(--font-size-sm); color: var(--color-text); }
input, textarea, select { font-family: inherit; font-size: var(--font-size-base); color: var(--color-text); background: #0e1a28;
  border: 1px solid var(--color-border); padding: 0.5rem 0.75rem; border-radius: 6px; width: 100%; }

/* BUTTONS */
.btn { display: inline-block; padding: 0.5rem 1rem; border-radius: 6px; border: 1px solid var(--color-border);
  background: transparent; color: var(--color-text); font-size: var(--font-size-sm); font-weight: var(--font-weight-medium);
  text-decoration: none; transition: transform 0.2s ease, background 0.2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--color-primary); color: var(--color-text-on-primary); border: 1px solid rgba(0,0,0,.2);
  transition: filter 0.2s ease; }
.btn-primary:hover { filter: brightness(0.9); }
.btn-secondary { background: transparent; color: var(--color-text); border: 1px solid var(--color-border); }

/* TABLES */
table { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid var(--color-border); padding: 0.5rem 0.75rem; text-align: left; }

/* UTILITIES */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; }

/* VISUAL HACKS / ACCESSIBILITY */
.hidden { display: none !important; }

/* RESPONSES (RESPONSIVE REQUIREMENTS) */
/* MOBILE-FIRST BASE (≤767px) rules implemented above as part of base styles for mobile defaults. Ensure overflow prevention and fluid containers. */

/* TABLET VIEWPORT (≥768px) – "logo-left nav-centered" */
@media (min-width: 768px) {
  /* CENTERED NAV + FLEX LAYOUT IN HEADER */
  .container { max-width: 960px; padding: 0 1.5rem; margin: 0 auto; }
  /* NAV HAMBURGER HIDDEN, NAV SHOWN AS MAIN ROW */
  .nav-toggle-label { display: none !important; }
  .site-nav { display: flex !important; position: static; width: auto; background: transparent; border-top: none; box-shadow: none; }
  .nav-list { flex-direction: row !important; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 1.5rem; padding: 0; margin: 0; list-style: none; }
  .nav-link { font-size: var(--font-size-sm); padding: 0.4rem 0.75rem; border-bottom: none; }
  /* NAV LAYOUT RULES */
  .site-header .container { justify-content: flex-start; }
  .site-nav { flex: 1; justify-content: center; display:flex; }
  .nav-list { justify-content: center; }
  /* HERO adjustments for tablet */
  .hero { min-height: 60vh; }
  .hero h1 { font-size: var(--font-size-3xl); }
  /* CARDS / GRID adjustments */
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  /* FOOTER layout for tablet */
  .footer-inner { flex-direction: row; text-align: left; }
  /* NAV DROPDOWN behavior on tablet for horizontal menu */
  .nav-dropdown-menu { /* default desktop behavior remains; nothing extra needed here */ }
}

/* DESKTOP VIEWPORT (≥1024px) */
@media (min-width: 1024px) {
  .container { max-width: 1200px; padding: 0 2rem; }
  .site-header { /* maintain header look */ }
  .hero { min-height: 70vh; }
  .hero h1 { font-size: var(--font-size-hero); }
  .section { padding: 4rem 0; }
}