@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap');

:root {
  /* Branding / typography */
  --font-family: 'Nunito', ui-system, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 12px;
  --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;

  /* Color palette (ice arena mood) */
  --color-bg: #060A12;            /* DARK BG */
  --color-bg-alt: #0A1A2A;
  --color-bg-card: #0F1F2E;
  --color-text: #E8E8E8;           /* DARK BG => light text per contrast mandate */
  --color-text-muted: #A0A6AD;
  --color-text-on-primary: #111111;
  --color-primary: #E8F4FF;         /* glacial white (light primary) */
  --color-accent: #7EC8E3;          /* ice blue */
  --color-border: #1E2A38;
  --color-shadow: rgba(0, 0, 0, 0.5);
  --shadow: 0 6px 18px rgba(0,0,0,.3);

  /* helpers */
  --container-padding-mobile: 1rem;
  --container-padding-tablet: 1.5rem;
  --container-padding-desktop: 2rem;
}

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  max-width: 100%;
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-bg);
}

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

:root { color-scheme: dark; }

:focus { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.container {
  width: 100%;
  padding: 0 var(--container-padding-mobile);
  margin: 0 auto;
  box-sizing: border-box;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 64px;
  overflow: visible;
  background: rgba(0,0,0,0); /* transparent; content behind can show but header sits atop */
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem; /* mobile padding */
  width: 100%;
}
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
  max-height: 52px;
}
.site-logo img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}
.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; /* ALWAYS white bars as per requirement */
  border-radius: 2px;
  transition: 0.2s ease;
}
.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 rgba(0,0,0,.18);
}
.nav-list {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-item { list-style: none; }

/* Nav links & dropdowns */
.nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--font-size-xs);
  transition: color .2s ease;
  position: relative;
}
.nav-link:hover { color: var(--color-accent); text-decoration: none; }

/* underline-ish hover effect */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  background: var(--color-accent);
  transition: width .2s ease;
}
.nav-link:hover::after { width: 100%; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; user-select: none; white-space: nowrap; color: var(--color-text); text-decoration: none; padding: 0.75rem 1rem; display: 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);
  box-shadow: 0 8px 24px rgba(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);
}
@media (min-width: 768px) {
  .nav-toggle-label { display: none; }
  .site-nav { display: flex !important; position: static; width: auto; background: transparent; border-top: none; box-shadow: none; align-items: center; }
  .nav-list { display: flex !important; flex-direction: row !important; flex-wrap: nowrap; align-items: 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; white-space: nowrap; }
  .nav-dropdown-menu { position: absolute; }
}
@media (min-width: 1280px) {
  .container { max-width: 1200px; padding: 0 2rem; margin: 0 auto; }
  .nav-list { gap: 2rem; }
}
@media (min-width: 768px) and (max-width: 1279px) {
  /* Tablet specifics */
  .container { max-width: 960px; padding: 0 1.5rem; margin: 0 auto; }
  .site-header .container { padding: 0.5rem 1.25rem; }
  .hero { min-height: 70vh; }
  .hero h1 { font-size: var(--font-size-2xl); }
}
@media (min-width: 1280px) {
  .hero { min-height: 75vh; }
  .hero h1 { font-size: var(--font-size-hero); }
}
@media (max-width: 767px) {
  /* Mobile base (≤767px) rules */
  html, body { overflow-x: hidden; max-width: 100%; }
  .site-nav { display: none; }
  .nav-list { flex-direction: column; padding: 0.5rem 0; }
  .nav-link { font-size: var(--font-size-xs); padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border); }
  .nav-dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 1rem; display: none; }
  .nav-dropdown:focus-within > .nav-dropdown-menu { display: block; }
  .hero { padding: 2rem 1rem; min-height: 50vh; }
  .hero h1 { font-size: calc(var(--font-size-hero) * 0.6); }
}
@media (min-width: 1280px) {
  /* Desktop specifics */
  .site-header { background: rgba(0, 0, 0, 0.0); }
  .footer-inner { display:flex; align-items:center; justify-content:space-between; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Hero section */
.hero {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
  color: #fff;
  /* Gradient / brand color background for strong visual impact */
  background: linear-gradient(135deg, rgba(15,22,35,.95), rgba(6,10,18,.95));
  background-color: #060A12;
}
.hero h1 {
  font-size: var(--font-size-hero);
  margin: 0 0 0.5rem;
  line-height: var(--line-height-tight);
  color: #FFFFFF;
}
.hero p { font-size: var(--font-size-base); color: var(--color-text); opacity: 0.95; }

/* Section / layout utilities */
.section { padding: 2rem 0; }
.section-title {
  font-size: var(--font-size-2xl);
  margin: 0 0 0.75rem;
  color: var(--color-text);
}
.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; }

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.card {
  display: flex;
  flex-direction: column; /* MANDATORY per contract */
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,.4);
}
.card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;             /* MANDATORY for rectangle images */
  display: block;
  /* border-radius applied via container to top corners only on image */
  border-radius: var(--radius) var(--radius) 0 0;
}
.card-body { padding: 1rem; }
.card h4 { font-size: var(--font-size-lg); margin: 0.25rem 0; color: var(--color-text); }
.card p { color: var(--color-text-muted); margin: 0 0 0.75rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 999px; /* pill */
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  transition: transform .2s ease, filter .2s ease;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-on-primary); /* ensure contrast on primary */
}
.btn-primary:hover { filter: brightness(0.95); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn + .btn { margin-left: .5rem; }

/* Footer */
.site-footer {
  background: var(--color-bg-card);
  padding: 2.5rem 0;
  color: var(--color-text);
  border-top: 1px solid var(--color-border);
}
.footer-inner {
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.footer-inner a { color: var(--color-text); text-decoration: none; }

/* FAQ accordion (CSS-only) */
.faq-section { padding: 2rem 0; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--color-bg-card);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] { border-color: var(--color-primary); box-shadow: 0 2px 12px var(--color-shadow); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-md);
  list-style: none;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-primary);
  transition: transform 0.2s ease;
}
.faq-item[open] > .faq-question::after { content: "−"; transform: rotate(0.25turn); }
.faq-answer {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--color-border);
}
.faq-answer p { margin: 0.75rem 0 0; color: var(--color-text-muted); line-height: var(--line-height-base); }

/* Forms */
label { display: block; font-size: var(--font-size-xs); color: var(--color-text); margin-bottom: .25rem; }
input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #0a2030;
  color: var(--color-text);
  font-family: inherit;
  font-size: var(--font-size-base);
}
input:focus,
textarea:focus,
select:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(126,200,227,.25); outline: none; }

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

/* Utilities (additional) */
.text-center { text-align: center; }
.hidden { display: none !important; }
.mt-5 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }