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

:root {
  --radius: 12px;

  /* COLOR PALETTE (Emerald VIP) */
  --color-bg: #050F08;
  --color-bg-alt: #0A1A0F;
  --color-bg-card: rgba(255, 255, 255, 0.04);

  --color-primary: #00C853;           /* Emerald brand color */
  --color-secondary: #FFD700;         /* Gold accent */
  --color-accent: #FFD700;

  --color-text: #E8FFE8;               /* near-white for dark bg */
  --color-text-muted: #A0A0A0;
  --color-text-on-primary: #1A1A1A;     /* contrast on primary (dark emerald -> white) */

  --color-border: rgba(255, 255, 255, 0.25);
  --color-shadow: rgba(0, 0, 0, 0.5);

  /* TYPOGRAPHY */
  --font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  --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;
}

/* RESET / BASE */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
html, body { font-family: var(--font-family); color: var(--color-text); background: var(--color-bg); }
a { color: var(--color-primary); text-decoration: none; transition: color 0.2s ease; }
strong { font-weight: 700; }
em { font-style: italic; }
ul, ol { margin: 0 0 1rem 1.25rem; padding: 0; }

/* TYPOGRAPHY SCALE USAGE */
body { font-size: var(--font-size-base); line-height: var(--line-height-base); font-weight: var(--font-weight-normal); }

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

/* SECTION/CARD STRUCTURES */
.section { padding: 3.5rem 0; }
/* Alternating section backgrounds */
.section:nth-child(odd) { background: var(--color-bg); }
.section:nth-child(even) { background: var(--color-bg-alt); }

/* HERO DEFAULTS */
.hero { display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem 1rem; min-height: 40vh; color: #fff;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.25), rgba(0,0,0,0.65)), var(--color-bg);
}
.hero h1 { font-size: var(--font-size-hero); font-weight: 900; margin: 0; line-height: var(--line-height-tight); color: #fff; }

/* HERO LAYOUT EXTRA (variants from instruction) */
.hero-banner { width: 100%; overflow: hidden; max-height: 360px; }
.hero-banner-img { width: 100%; height: 360px; object-fit: cover; display: block; }

.hero-text-card {
  background: var(--color-bg-card);
  color: var(--color-text);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 700px;
  margin: -3.5rem auto 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.hero-cta { display:flex; justify-content:center; gap: 1rem; flex-wrap: wrap; margin-top: 1.25rem; }

/* NAV BAR (HEADER) */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  min-height: 64px; overflow: visible;
  background: rgba(5,15,8, 0.95);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container {
  display:flex; align-items:center; gap: 1rem;
  padding: 0.5rem 1rem;
  box-sizing: border-box;
  width: 100%;
}
.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;
}
.site-logo a { text-decoration: none; color: inherit; }

/* MOBILE NAV TOGGLE (MANDATORY) */
.nav-toggle-input {
  position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none;
}
.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; }

/* MOBILE SITE NAV (hidden by default) */
.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; }

/* NAV LIST (mobile) */
.nav-list { display: flex; flex-direction: column; gap: 0; padding: 0.5rem 0; margin: 0; list-style: none; }

/* NAV LINKS (mobile) */
.nav-link { display: block; padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border);
  font-size: var(--font-size-sm); color: var(--color-text); text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.nav-item { }

/* DROPDOWN NAV (mobile & desktop) */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; white-space: nowrap; }
.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: dropdown adjustments */
@media (max-width: 767px) {
  .nav-dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 1rem; display: none; }
  .nav-dropdown:focus-within > .nav-dropdown-menu { display: block; }
  /* Ensure dropdown stays indented under the toggle on mobile */
  .section { padding: 3.5rem 0; }
  /* hero variations for mobile */
  .hero { padding: 1.5rem 1rem; }
  .hero-banner { max-height: none; }
  .hero-text-card { margin: 0; padding: 1.5rem; border-radius: 8px; }
}

/* TABLET + DESKTOP NAV LAYOUT (MANDATORY) */
@media (min-width: 768px) {
  /* NAV LAYOUT: logo-left, nav-centered, centered nav */
  .site-header .container { justify-content: flex-start; }
  .site-nav { display: flex; flex: 1; justify-content: center; 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; }

  /* HAMBURGER hidden on tablet/desktop */
  .nav-toggle-label { display: none; }

  /* NAV items sizing on tablet/desktop */
  .nav-link { font-size: var(--font-size-sm); padding: 0.4rem 0.75rem; border-bottom: none; white-space: nowrap; }

  /* HERO adjustments for tablet/desktop */
  .hero { min-height: 60vh; }
  .hero h1 { font-size: var(--font-size-3xl); }

  /* Cards layout desktop/tablet */
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

  /* Container centering width at tablet */
  .container { margin: 0 auto; }
}

/* DESKTOP WIDE 1024px+ */
@media (min-width: 1024px) {
  .container { max-width: 1200px; padding: 0 2rem; }
  .hero { min-height: 70vh; }
  .hero h1 { font-size: var(--font-size-hero); }
  .section { padding: 4rem 0; }
  /* Ensure text contrast remains readable on hero if used there */
  .hero, .hero * { color: #fff; }
}

/* CARD COMPONENTS (MANDATORY) */
.card {
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--color-primary);
  background: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--color-text);
}
.card:hover {
  transform: translateY(-4px);
  background: rgba(0,0,0,0.04);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.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 h3, .card h4 { margin-top: 0; margin-bottom: 0.5rem; font-weight: 700; }
.card p { margin: 0; line-height: var(--line-height-base); color: var(--color-text-muted); }
.card-body { padding: 1rem 1.25rem; }

/* Ensure padding on non-img content when no .card-body wrapper exists */
.card > :not(img) { padding: 1rem 1.25rem; }

/* If card has explicit headline/body within, ensure breathing room */
.card h3 { font-size: var(--font-size-lg); }
.card h4 { font-size: var(--font-size-md); }

/* CARD GRID */
.card-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card-grid > .card { /* ensuring cards stretch evenly within grid items */ }

/* FORM ELEMENTS */
input, textarea, select, button[type="submit"] {
  font-family: inherit;
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}
label { display: block; font-size: var(--font-size-xs); color: var(--color-text-muted); margin-bottom: 0.25rem; }
button[type="submit"] {
  cursor: pointer;
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  transition: filter 0.2s ease;
}
button[type="submit"]:hover { filter: brightness(0.95); }

/* BUTTONS (BASE / PRIMARY / SECONDARY) */
.btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-family);
  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); background: rgba(255,255,255,0.04); }
.btn-primary { background: var(--color-primary); color: var(--color-text-on-primary); border: none; }
.btn-primary:hover { filter: brightness(0.92); }
.btn-secondary { background: transparent; color: var(--color-text); border: 1px solid var(--color-border); }

/* TABLES */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.75rem; border-bottom: 1px solid var(--color-border); 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: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.hidden { display: none !important; }

/* FAQ ACCORDION (CSS-ONLY) */
.faq-section { padding: 3.5rem 0; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius, 8px);
  margin-bottom: 0.75rem;
  background: var(--color-bg-card);
  overflow: hidden;
  transition: 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;
  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: "−"; }
.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); }

/* HOVER TRANSITIONS FOR NAV LINKS */
.site-header .nav-link:hover,
.site-header .nav-link:focus {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-header .nav-link { transition: color 0.2s ease, transform 0.2s ease; }

/* REQUIRED: ensure logo never clips in header on any width */
.site-header { box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset; }

/* Ensure image/video fallback behavior across breakpoints */
img, video, iframe { max-width: 100%; height: auto; display: block; }

/* DARK/BRAND SAFE TEXT VISIBILITY CHECKS (informational comments only; CSS handles values above) */

/* END OF STYLES */