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

:root {
  /* TYPOGRAPHY SCALE */
  --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: 12px;

  /* COLOR PALETTE (GB444 premium, icy neon vibe) */
  /* BACKGROUNDS */
  --color-bg: #F0F6FF;              /* LIGHT BACKGROUND (snow palace) */
  --color-bg-alt: #E8F2FF;          /* subtle contrast for surfaces */
  --color-bg-card: #FFFFFF;          /* card surfaces (white) */
  /* PRIMARY / ACCENT / TEXT */
  --color-primary: #1E3A8A;          /* deep navy (primary) */
  --color-accent: #1D83B8;           /* ice blue accent */
  --color-text: #1A1A1A;              /* body text on light bg (meets WCAG) */
  --color-text-muted: #5A5A5A;        /* muted text on light bg */
  --color-text-on-primary: #FFFFFF;   /* text on dark primary */
  --color-border: #D7E2F9;
  --color-shadow: rgba(0,0,0,0.15);
  /* Derived helpers (contrast safety) */
  /* Hero is dark gradient; text inside will be light by default */
  --hero-text: #FFFFFF;
}

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
}

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

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.section {
  padding: 2rem 0;
}

.section-title {
  font-size: var(--font-size-2xl);
  margin: 0 0 1rem;
  color: var(--color-text);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-card);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px rgba(0,0,0,0.08), 0 10px 15px rgba(0,0,0,0.04);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15), 0 2px 6px rgba(0,0,0,0.08);
}
.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 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  border-color: rgba(0,0,0,0.0);
}
.btn-primary:hover {
  filter: brightness(0.92);
}
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  background: var(--color-bg-alt);
}

.hero {
  width: 100%;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hero-text);
  background: linear-gradient(135deg, #0b2240 0%, #1E3A8A 60%, #1D83B8 100%);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: 100%;
}
.hero-text {
  flex: 1 1 55%;
}
.hero-media {
  flex: 1 1 40%;
}
.hero-img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  max-height: 460px;
  display: block;
}
.hero h1 {
  font-size: var(--font-size-hero);
  line-height: 1.05;
  margin: 0 0 0.75rem;
}
.hero p {
  font-size: var(--font-size-md);
  margin: 0 0 1.25rem;
  color: #F8FBFF;
}
.hero .cta-row { display:flex; gap: 0.75rem; align-items: center; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 64px;
  overflow: visible;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  margin: 0 auto;
}
.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;
}
.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;
}
.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,0.18);
}
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
}
.nav-item { }
.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, background 0.2s ease;
}
.nav-link:hover { background: var(--color-bg-alt); text-decoration: none; color: var(--color-text); }

.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: auto;
  cursor: pointer;
  user-select: none;
  padding: 0.5rem 1rem;
}
.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,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 (max-width: 767.98px) {
  /* MOBILE BASE: all items stacked, nav hidden behind toggle */
  html, body { overflow-x: hidden; max-width: 100%; }
  * { box-sizing: border-box; }
  .container { width: 100%; padding: 0 1rem; box-sizing: border-box; margin: 0 auto; }
  .site-header .container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
  }
  .site-logo img {
    height: 40px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    display: block;
  }

  /* Hamburger rules (mobile) */
  .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 { background-color: #ffffff; }

  .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,0.18);
  }
  .nav-toggle-input:checked ~ .site-nav { display: block; }

  /* Mobile nav list vertical */
  .nav-list { flex-direction: column; }
  .nav-link { padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border); }

  /* Mobile dropdown adjustments */
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
  }
  .nav-dropdown:focus-within > .nav-dropdown-menu { display: block; }

  /* Hero layout tweaks for mobile */
  .hero { min-height: 50vh; padding: 2rem 1rem; }
  .hero-inner { display: flex; flex-direction: column; gap: 1.5rem; align-items: stretch; }
  .hero-media { order: 2; }
  .hero-text { order: 1; }
  .hero h1 { font-size: var(--font-size-2xl); }
  .hero p { font-size: var(--font-size-base); }

  .container { margin: 0 auto; }
  .card-grid { grid-template-columns: 1fr; }
  .section { padding: 2rem 0; }
  .footer-inner { flex-direction: column; text-align: center; gap: 1rem; }

  /* Tables on mobile remain horizontally scrollable if needed */
  table { width: 100%; display: block; overflow-x: auto; }

  /* Card hover lift remains for desktop; keep a nicer touch on mobile too via transform on parent hover if supported */
  .card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
  .card:hover { transform: translateY(-2px); }
}

@media (min-width: 768px) {
  /* Tablet (hamburger hidden, nav always visible) */
  .container {
    max-width: 960px;
    padding: 0 1.5rem;
    margin: 0 auto;
  }
  /* NAV LAYOUT rules (tablet+) requiring centered layout */
  .site-header .container {
    justify-content: center;
    gap: 2rem;
  }
  .nav-toggle-label { display: none !important; }

  .site-nav {
    display: flex !important;
    align-items: center;
    position: static;
    background: transparent;
    border-top: none;
    box-shadow: none;
  }
  .nav-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
  }
  .nav-link {
    display: inline-block;
    font-size: var(--font-size-sm);
    padding: 0.4rem 0.75rem;
    border-bottom: none;
    color: var(--color-text);
  }
  .nav-dropdown-menu { min-width: 200px; }

  .hero { min-height: 60vh; }
  .hero h1 { font-size: var(--font-size-3xl); }

  .card-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

  /* NAV LAYOUT specifics for tablet alignment */
  .site-nav { justify-content: center; }
  .nav-list { justify-content: center; }

  /* Floating hero CTA inside tablet can be adjusted via existing rules */
}

@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
    padding: 0 2rem;
    margin: 0 auto;
  }
  .hero { min-height: 70vh; }
  .hero h1 { font-size: var(--font-size-hero); }
  .section { padding: 4rem 0; }
}

/* HELPER 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; }
.hidden { display: none !important; }

/* FORMS (inputs, textarea, select, label, button[type=submit]) */
label { display: block; font-weight: var(--font-weight-medium); margin-bottom: 0.25rem; color: var(--color-text); }
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
  font-family: inherit;
  font-size: var(--font-size-base);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus,
textarea:focus,
select:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(29,131,184,0.15); }
button[type="submit"] { cursor: pointer; }

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

/* FOOTER */
.site-footer {
  background: var(--color-bg-alt);
  padding: 2rem 0;
  color: var(--color-text-muted);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
@media (max-width: 767.98px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* 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 0.2s ease, box-shadow 0.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;
  position: relative;
  padding-right: 2rem;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-primary);
  position: relative;
  right: 0;
  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); }

/* DROPDOWN NAV SPECIFIC (desktop hover/keyboard open) handled above; mobile indentation adjustments done in mobile media rule. */

/* FINAL NOTE: Every required class has at least one rule. */