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

:root {
  /* COLOR PALETTE (brand: jeetbuz - dark luxury desert theme) */
  --color-bg: #0F0A05;            /* dark desert background */
  --color-bg-alt: #1A120D;
  --color-bg-card: #171111;
  --color-border: #2B180F;
  --color-shadow: rgba(0,0,0,0.25);

  --color-primary: #E8650A;        /* burnt orange */
  --color-secondary: #D4A853;      /* sand gold */
  --color-accent: #C28A3F;

  --color-text: #F8F0E0;            /* warm off-white body text (WCAG) */
  --color-text-muted: #B09070;      /* muted, accessible on dark bg */
  --color-text-on-primary: #111111; /* contrast for text on primary (primary is light) */

  --radius: 12px;

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

  /* UTILITIES */
  --container-gap-mobile: 1rem;
  --card-gap: 1.25rem;
}

*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: 'Exo 2', sans-serif; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Exo 2', sans-serif;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* will be overridden in responsive if needed */
}
img, video, iframe { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  padding: 0 1rem;
  margin: 0 auto; /* MUST be present at all breakpoints to center content */
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 64px; /* NOT fixed height; content can dictate height */
  overflow: visible;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  width: 100%;
  margin: 0 auto;
}

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

/* Mobile Nav (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;
  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 per spec */
  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);
}
.site-nav ul { margin: 0; padding: 0; list-style: none; }
.nav-list {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--font-size-sm); /* tablet/desktop */
  line-height: 1.5;
  padding: 0.25rem 0;
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
}
.nav-item { display: list-item; }

/* Dropdown Nav (desktop & mobile) */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; text-decoration: none; color: var(--color-text); font-weight: var(--font-weight-bold); padding: 0.25rem 0; }
.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 UNDER 768px: indent dropdown menu under toggle */
@media (max-width: 767px) {
  .nav-dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 1rem; display: none; }
  .nav-item .nav-dropdown:focus-within > .nav-dropdown-menu { display: block; }
  .site-nav { display: none; } /* will be toggled by checkbox */
}

.hero {
  width: 100%;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, rgba(232,104,10,0.15) 0%, rgba(15,10,5,0.95) 60%), var(--color-bg);
  color: var(--color-text);
}
.hero h1 {
  font-size: var(--font-size-hero);
  line-height: 1.05;
  margin: 0 0 0.75rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.hero p { font-size: var(--font-size-base); color: rgba(248,240,224,0.95); margin: 0 0 1rem; }

.section { padding: 2rem 0; }

/* Section Title */
.section-title {
  font-size: var(--font-size-2xl);
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

/* Cards */
.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(232,104,10,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-content { padding: 1rem; }
.card h3 { font-size: var(--font-size-lg); margin: 0 0 0.5rem; color: var(--color-text); }
.card p { color: var(--color-text-muted); margin: 0; }

/* Card Grid (responsive) */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--card-gap);
  align-items: stretch;
  padding: 0;
}

/* Buttons */
.btn { display: inline-block; padding: 0.6rem 1rem; border-radius: 6px; border: none; cursor: pointer; font-family: inherit; font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); text-decoration: none; transition: all 0.2s ease; }
.btn-primary { background: var(--color-accent); color: var(--color-text-on-primary); }
.btn-secondary { background: transparent; color: var(--color-text); border: 1px solid var(--color-border); }

/* Hover & focus states */
.btn:hover { filter: brightness(0.95); transform: translateY(-1px); }

/* Footer */
.site-footer { background: #0b0906; color: var(--color-text); padding: 2rem 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }

/* 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: all 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);
  flex-shrink: 0;
  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); }

/* Forms */
.input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  color: #111;
  outline: none;
}
label { display: block; font-size: var(--font-size-sm); margin-bottom: 0.25rem; color: var(--color-text); }
input:focus, textarea:focus, select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(232,101,10,0.25);
}

/* 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: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.hidden { display: none; }

/* RESPONSIVE: MOBILE FIRST (≤767px) */
@media (max-width: 767px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  img, video, iframe { max-width: 100%; height: auto; display: block; }
  /* container is full-width with padding already defined; ensure center by default */
  .site-header .container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
  }
  /* Logo sizing constrained for mobile */
  .site-logo img { height: 40px; width: auto; max-width: 140px; object-fit: contain; display: block; }

  /* Hamburger nav shown on mobile */
  .nav-toggle-label { display: flex; }
  .site-nav { display: none; }

  /* Desktop nav rules mirror for mobile: vertical list when opened (no open state here) */
  .nav-list { flex-direction: column; width: 100%; padding: 0; margin: 0; }
  .nav-link { padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border); font-size: var(--font-size-xs); }
  .nav-dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 1rem; display: none; }
  .hero { min-height: 50vh; padding: 2rem 1rem; }
  .hero h1 { font-size: var(--font-size-2xl); }
  .card-grid { grid-template-columns: 1fr; }
  .section { padding: 2rem 0; }
  .section-title { font-size: var(--font-size-xl); }
  .footer-inner { flex-direction: column; text-align: center; }
  /* Hamburger navigation is controlled via the input checkbox in HTML; show/hide handled there */
  .container { max-width: 100%; }
  /* Ensure margins center content on mobile */
  .site-header .container { justify-content: center; gap: 0.75rem; }
  /* Nav layout adjustments for mobile: keep content centered; specifics handled in subsequent breakpoints */
  /* Menu remains collapsed until toggle is activated via checkbox in HTML */
}

/* RESPONSIVE: TABLET (≥768px) — "all-centered" rules and horizontal nav */
@media (min-width: 768px) {
  .container { max-width: 960px; padding: 0 1.5rem; margin: 0 auto; }

  /* NAV LAYOUT: all-centered rules */
  .site-header .container { justify-content: center; gap: 2rem; }

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

  .nav-list { justify-content: center; flex-direction: row !important; flex-wrap: nowrap; align-items: center; gap: 1.5rem; padding: 0; margin: 0; }

  .nav-link { font-size: var(--font-size-sm); }

  /* Hamburger hidden on tablet+ */
  .nav-toggle-label { display: none !important; }

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

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

  .footer-inner { flex-direction: row; text-align: left; }

  /* Align nav layout per NAV LAYOUT instruction further */
  /* The container remains centered via margins; content inside is centered by flex rules above */
}

/* RESPONSIVE: DESKTOP (≥1024px) */
@media (min-width: 1024px) {
  .container { max-width: 1200px; padding: 0 2rem; }
  .hero { min-height: 70vh; }
  .section { padding: 4rem 0; }
  .section-title { font-size: var(--font-size-2xl); }

  /* Nav link sizing at desktop stays as tablet rule above (var(--font-size-sm)) */
  /* Additional desktop-specific tweaks could live here */
}