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

:root {
  /* Typography scale */
  --font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --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: 4px;
  --gap: 1rem;

  /* Color palette (Dark tropical neon) */
  --color-bg: #091210;               /* DARK BG */
  --color-bg-alt: #0a1a14;
  --color-bg-card: #0f1b14;

  --color-text: #E8F8E8;             /* near-white for dark BG */
  --color-text-muted: #A0A0A0;        /* muted on dark BG ( WCAG AA) */
  --color-text-on-primary: #1A1A1A;   /* on primary (white for dark primary) */

  --color-border: #1f2a23;
  --color-shadow: rgba(0, 0, 0, 0.6);

  --color-primary: #39D353;           /* vivid lime brand color */
  --color-secondary: #FF4D4D;         /* supporting red accent (logo-ish) */
  --color-accent: #FFA500;            /* electric amber accent */

  /* Button & UI accents */
  --primary-cta-shadow: 0 6px 16px rgba(0,0,0,.4);

  /* Accessibility helpers (ensure contrast for hero on dark) */
  /* If hero uses dark background, keep text light by default (handled in rules) */
  --color-border-soft: rgba(255,255,255,0.08);
}

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: var(--line-height-base);
}

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

/* Layout base */
.container {
  width: 100%;
  padding: 0 1rem;
  margin: 0 auto; /* ALWAYS center at every breakpoint */
  box-sizing: border-box;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 64px;
  background: var(--color-bg);
  color: var(--color-text);
  overflow: visible;
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem; /* mobile padding guideline */
  width: 100%;
  box-sizing: border-box;
}

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

/* Navigation (mobile hamburger) */
.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; /* push to right on mobile row */
  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; /* mandatory white bars on all headers */
  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;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}
.nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--font-size-xs); /* mobile default per contract */
  padding: 0.75rem 1rem;
  display: block;
}
.nav-item {
  position: relative;
}
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  cursor: pointer;
}
.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) {
  /* Tablet & up: hamburger hidden, nav visible horizontally */
  .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 {
    display: flex; /* horizontal layout on tablet/desktop */
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: 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;
    white-space: nowrap;
  }
  .nav-dropdown-menu {
    position: absolute;
    left: 0;
  }
  /* Ensure dropdowns render in horizontal nav on desktop nicely */
}
@media (min-width: 1280px) {
  /* Desktop-specific tweaks if needed later, keep centered container style */
}

/* Hero */
.hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, rgba(0,0,0,0.45), rgba(0,0,0,0.65)),
              radial-gradient(circle at 10% 10%, rgba(57,211,83,0.25), transparent 40%),
              var(--color-bg);
}
.hero-inner {
  max-width: 1200px;
}
.hero h1 {
  color: #fff;
  font-weight: 900;
  margin: 0 0 0.75rem;
  line-height: 1.05;
  letter-spacing: 0.5px;
  font-size: var(--font-size-hero);
}
.hero p {
  color: #F2F7F2;
  font-size: var(--font-size-lg);
  margin: 0 0 1rem;
}
.hero .btn {
  margin-top: 0.25rem;
}
@media (max-width: 767px) {
  .hero {
    min-height: 52vh;
  }
  .hero h1 {
    font-size: var(--font-size-2xl);
  }
}
@media (min-width: 768px) {
  .hero h1 {
    font-size: var(--font-size-3xl);
  }
}
@media (min-width: 1280px) {
  .hero h1 {
    font-size: var(--font-size-hero);
  }
}

/* Section & titles */
.section {
  padding: 2rem 0;
}
.section-title {
  font-size: var(--font-size-2xl);
  margin: 0 0 1rem;
  color: var(--color-text);
}
.section p {
  color: var(--color-text-muted);
}

/* Card grid & cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}
.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--color-bg-card);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0,0,0,.5);
}
.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 .content {
  padding: 1rem;
}
.card h3 {
  margin: 0 0 .5rem;
  font-size: var(--font-size-lg);
  color: var(--color-text);
  font-weight: 700;
}
.card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.5;
}
.card-actions {
  margin-top: auto;
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
}
.card a, .card button {
  text-decoration: none;
  color: var(--color-text-on-primary);
}
.card .btn {
  padding: 0.5rem 0.75rem;
  font-size: var(--font-size-sm);
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,.15);
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  box-shadow: var(--primary-cta-shadow);
}
.card .btn.secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  box-shadow: none;
}
.card .btn:hover {
  filter: brightness(0.95);
}
.card:hover .btn {
  transform: translateY(-1px);
}

/* Footer */
.site-footer {
  background: #0a1410;
  padding: 2rem 0;
  color: var(--color-text);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* 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);
  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);
  line-height: var(--line-height-base);
}

/* Forms */
label {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--color-text);
  margin-bottom: 0.25rem;
}
input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: #0b1b14;
  color: var(--color-text);
  font-size: var(--font-size-base);
  outline: none;
}
textarea {
  min-height: 120px;
  resize: vertical;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(57,211,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;
}
th {
  font-weight: 700;
  color: var(--color-text);
}
td {
  color: var(--color-text-muted);
}

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

/* Hover/transition baseline for all interactive elements */
a:hover, .nav-link:hover, .btn:hover, .card:hover {
  transition: all 0.2s ease;
  text-decoration: underline;
}

/* RESPONSIVE REQUIREMENTS IMPLEMENTATION */

/* Base styles for mobile (≤767px) — already above, ensure mobile defaults */
@media (max-width: 767px) {
  html, body {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* Logo sizing for mobile ensures not overflowing header */
  .site-logo img {
    height: 40px;
    max-width: 140px;
  }

  /* Hamburger navigation defaults (mobile) */
  .site-nav {
    display: none;
  }
  .nav-list {
    flex-direction: column;
  }
  .nav-link {
    font-size: var(--font-size-xs);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
  }

  /* Dropdown behavior on mobile (static/indented) */
  .nav-dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
  }
  .nav-dropdown:focus-within > .nav-dropdown-menu,
  .nav-dropdown:hover > .nav-dropdown-menu {
    display: block;
  }

  .hero {
    padding: 2rem 1rem;
  }
  .hero h1 {
    font-size: var(--font-size-2xl);
  }
  .section { padding: 2rem 0; }
  .card-grid { grid-template-columns: 1fr; }
  table { display: block; overflow-x: auto; }
  .container { margin: 0 auto; padding: 0 1rem; }
  .footer-inner { flex-direction: column; align-items: center; }
}

/* Tablet (768px and up) — nav horizontal, hamburger hidden, container centered */
@media (min-width: 768px) {
  /* Centering constraint for all breakpoints */
  .container { margin: 0 auto; }

  .site-nav {
    display: flex;
    align-items: center;
    position: static;
    width: auto;
    background: transparent;
    border-top: none;
    box-shadow: none;
  }

  .nav-list {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1.5rem;
  }

  .nav-link {
    font-size: var(--font-size-sm);
    padding: 0.4rem 0.75rem;
  }

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

/* Desktop (1280px and up) — emphasize grid & typography */
@media (min-width: 1280px) {
  .container {
    max-width: 1200px;
    padding: 0 2rem;
  }
  .site-header .container {
    padding: 0.75rem 1rem;
  }
  .hero {
    min-height: 70vh;
  }
  .section { padding: 4rem 0; }
  .section-title { font-size: var(--font-size-2xl); }
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  .footer-inner { flex-direction: row; justify-content: space-between; }
}