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

:root {
  /* Brand / palette */
  --color-bg: #050F08;            /* Dark emerald background */
  --color-bg-alt: #0A1D12;
  --color-bg-card: #0C1F13;
  --color-primary: #00C853;        /* Emerald */
  --color-primary-dark: #0A8A44;
  --color-accent: #FFD700;           /* Gold */
  --color-text: #E8FFE8;             /* Near-white */
  --color-text-muted: #A0AFA0;        /* Muted */
  --color-text-on-primary: #1A1A1A;   /* Light text on primary (primary is dark) */
  --color-border: #1F3A1F;
  --color-shadow: rgba(0,0,0,0.5);

  --radius: 4px;
  --gap: 1.25rem;
  --shadow-elev: 0 6px 18px rgba(0,0,0,0.25);

  /* Typography scale (mandatory) */
  --font-family: 'Barlow Condensed', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto;
  --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;
  --font-weight-bolder: 800;
}

/* CSS Reset / Base */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
html, body { background: var(--color-bg); color: var(--color-text); font-family: var(--font-family); font-size: var(--font-size-base); line-height: var(--line-height-base); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, video, iframe { max-width: 100%; height: auto; display: block; }

.container { width: 100%; margin: 0 auto; padding: 0 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  min-height: 64px;
  overflow: visible;
  background: rgba(5,15,8,0.95);
  border-bottom: 1px solid rgba(240,240,240,0.05);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
}
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
  max-height: 52px;
}
.site-logo a { display: flex; align-items: center; 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%;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 4px 16px var(--color-shadow);
  padding: 0.25rem 0;
}
.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  flex-direction: column; /* mobile: vertical by default; see media queries for tablet/desktop */
}
.nav-link {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  text-decoration: none;
  padding: 0.75rem 1rem;
  display: block;
  transition: color 0.2s ease, transform 0.2s ease;
}
.nav-link:hover { color: var(--color-accent); text-decoration: underline; }
.nav-item { position: relative; }

/* Dropdowns (in header) */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; user-select: none; white-space: nowrap; padding: 0.75rem 1rem; display: block; color: var(--color-text); text-decoration: none; }
.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); }

/* Mobile-specific 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: none; }
  /* ensure indentation under toggle on mobile */
  .nav-list { flex-direction: column; }
  .site-nav { display: block; }
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  min-height: 50vh;
  background: linear-gradient(135deg, rgba(0,200,83,0.25) 0%, rgba(0,200,83,0.85) 60%), #050F08;
  color: #fff;
}
.hero h1 {
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-tight);
  margin: 0 0 0.5rem;
}
.hero p { font-size: var(--font-size-base); margin: 0 0 1rem; }

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

/* Card layout */
.card {
  display: flex;
  flex-direction: column;
  background: #0F1F12;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-elev);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.35); }
.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-body { padding: 1rem; display: flex; flex-direction: column; }

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.btn + .btn { margin-left: 0.5rem; }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { filter: brightness(0.92); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover { background: rgba(255,255,255,0.04); color: var(--color-text); }

/* Footer */
.site-footer {
  background: #0a160a;
  color: var(--color-text);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}
.footer-inner a { color: var(--color-accent); 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 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: 700;
  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);
  flex-shrink: 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); }

/* Forms */
label { display: block; font-size: var(--font-size-sm); margin: 0.25rem 0; color: var(--color-text); }
input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: #0a1a0e;
  color: var(--color-text);
  font-family: inherit;
  font-size: var(--font-size-sm);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus,
textarea:focus,
select:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(0,200,83,0.15); }

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

/* Utility classes */
.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; }

/* Responsive rules - mobile-first baseline implemented above; add breakpoints below */

/* Tablet / 768px and up - logo-left, nav-right, horizontal nav; center container; maintain centering */
@media (min-width: 768px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  .container { max-width: 960px; padding: 0 1.5rem; margin: 0 auto; }
  .site-header .container { display: flex; align-items: center; gap: 1rem; padding: 0.5rem 1rem; justify-content: space-between; }
  .nav-toggle-label { display: none !important; } /* hide hamburger on tablet+ */
  .site-nav { display: flex; position: static; background: transparent; border: 0; box-shadow: none; }
  .nav-list { flex-direction: row !important; flex-wrap: nowrap; align-items: center; justify-content: flex-end; padding: 0; margin: 0; }
  .nav-link { font-size: var(--font-size-sm); padding: 0.5rem 0.75rem; }
  .nav-dropdown-menu { top: 100%; left: 0; }
  .hero { min-height: 60vh; padding: 3rem 1rem; }
  .hero h1 { font-size: var(--font-size-3xl); }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .footer-inner { flex-direction: row; justify-content: center; text-align: left; }
  /* NAV LAYOUT rule for tablet+ (logo-left, nav-right) */
  .site-header .container { justify-content: space-between; }
  .site-nav { margin-left: auto; justify-content: flex-end; }
  .nav-list { justify-content: flex-end; }
  /* Ensure  :hover dropdowns still work on desktop */
  .nav-dropdown:hover > .nav-dropdown-menu { display: block; }
  .nav-dropdown:focus-within > .nav-dropdown-menu { display: block; }
  /* Ensure container margins persist center alignment at this breakpoint */
  .container { margin: 0 auto; }
  /* 2 animation examples */
  .nav-link { transition: color 0.2s ease, transform 0.2s ease; }
  .card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
  .card:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(0,0,0,0.35); }
}

/* Desktop / 1024px and up - tighten typography, maintain grid layout */
@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 nav remains horizontal and full width alignment across desktop */
  .nav-link { font-size: var(--font-size-sm); }
  .footer-inner { justify-content: space-between; text-align: left; }
}