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

:root {
  /* Radius and typography scale */
  --radius: 12px;
  --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;

  /* Color palette (Desert sun, dark luxury) */
  --color-bg: #0F0A05;          /* DARK: very dark warm brown */
  --color-bg-alt: #0B0704;       /* DARK: darker alternate */
  --color-bg-card: #15110F;      /* DARK: card background */
  --color-text: #E8E8E8;         /* LIGHT text for dark bg (WCAG AA) */
  --color-text-muted: #A0A0A0;    /* Muted text on dark bg (>=3:1) */
  --color-border: #2B1F18;        /* Borders on dark surfaces */
  --color-shadow: rgba(0,0,0,0.6);

  --color-primary: #E8650A;       /* burnt orange (brand) */
  --color-secondary: #B0632A;
  --color-accent: #D4A853;        /* sand gold */
  --color-text-on-primary: #111111; /* contrast on primary (primary is light) */

  /* Hero handling helper (text on dark hero) */
  --hero-text: #FFFFFF;
  --hero-text-muted: #F0F0F0;

  /* Base brand tokens for CSS composition (non-color) */
  --shadow-1: 0 4px 6px var(--color-shadow);
  --shadow-2: 0 10px 15px rgba(0,0,0,0.25);
}

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

html, body {
  height: 100%;
  overflow-x: hidden;
  max-width: 100%;
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  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; }

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

@media (min-width: 768px) {
  :root {
    --radius: 12px;
  }
}

/* Global layout helpers */
.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}
.section {
  padding: 2rem 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}
.section-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}
.hero {
  background: linear-gradient(135deg, #0f0a05 0%, #1a0f05 60%, #2b1006 100%), radial-gradient(circle at 10% 0%, rgba(232,101,10,0.15), transparent 40%);
  color: var(--hero-text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
  min-height: 50vh;
  position: relative;
  overflow: hidden;
}
.hero h1 {
  font-size: var(--font-size-hero);
  line-height: var(--line-height-tight);
  font-weight: 900;
  margin: 0 0 0.5rem;
  color: var(--hero-text);
}
.hero p {
  font-size: var(--font-size-base);
  color: var(--hero-text);
  margin: 0;
}
.hero .btn {
  margin-top: 1rem;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-card);
  box-shadow: 0 4px 6px rgba(0,0,0,0.35), 0 10px 15px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.5), 0 14px 20px 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, .card > :not(img) {
  padding: 1rem 1.25rem;
}
.card h3, .card h4 { margin-top: 0; margin-bottom: 0.5rem; }
.card p { margin: 0; line-height: var(--line-height-base); color: var(--color-text-muted); }

/* FAQ accordion (CSS-only) */
.faq-section { padding: 2rem 0; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  background: var(--color-bg-card);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.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;
  color: var(--color-text);
}
.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.0001deg); }
.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); }

/* Hamburger nav (mobile navigation) */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 999;
  background: rgba(15, 10, 5, 0.98);
  min-height: 64px;
  overflow: visible;
}
.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;
  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 rgba(0,0,0,0.18);
  z-index: 500;
}
.nav-toggle-input:checked ~ .site-nav { display: block; }
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
}
.nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: var(--font-size-xs);
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-item { }

.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  cursor: pointer;
  user-select: none;
  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);
  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); }

/* Desktop/tablet layout for nav list (horizontal) */
@media (min-width: 768px) {
  /* Layout adjustments: logo-left / nav-right style */
  .site-header .container {
    justify-content: space-between;
    width: 100%;
  }
  .nav-toggle-label { display: none; }
  .site-nav { display: flex; align-items: center; position: static; background: transparent; border-top: none; box-shadow: none; }
  .nav-list { display: flex; flex-direction: row !important; flex-wrap: nowrap; align-items: center; gap: 1.5rem; padding: 0; margin: 0; list-style: none; justify-content: flex-end; }
  .nav-link { font-size: var(--font-size-sm); }

  /* Dropdown behavior on desktop/tablet */
  .nav-dropdown:hover > .nav-dropdown-menu { display: block; }
  .nav-dropdown:focus-within > .nav-dropdown-menu { display: block; }
  .site-header .container { justify-content: space-between; }
  .site-nav { margin-left: auto; justify-content: flex-end; }
  .nav-link { color: var(--color-text); }
  .hero { min-height: 60vh; }
  .card-grid { gap: 1rem; }
  .hero h1 { font-size: var(--font-size-2xl); }
  .section { padding: 4rem 0; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .footer-inner { display: flex; justify-content: space-between; align-items: center; }
  .container { margin: 0 auto; }
}

/* Desktop 1024px+ adjustments (additional desktop density) */
@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; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .site-logo img { height: 44px; }
  .site-header { overflow: visible; }
}

/* Mobile baseline specifics (375px and up) */
@media (max-width: 767px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  .site-header .container { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 1rem; }
  .site-nav { display: none; }
  .nav-list { flex-direction: column; gap: 0; padding: 0.5rem 0; }
  .nav-link { font-size: var(--font-size-xs); padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border); }
  .hero { padding: 2rem 1rem; min-height: 50vh; }
  .hero h1 { font-size: var(--font-size-2xl); }
  .card-grid { grid-template-columns: 1fr; }
  .container { margin: 0 auto; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
  .hero-headline { text-align: center; }
  .hero-cta { justify-content: center; }
}

/* Forms */
input,
textarea,
select {
  font-family: inherit;
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
}
label { display: inline-block; margin-bottom: 0.25rem; font-weight: 500; color: var(--color-text); }

/* Submit button styling (basic) */
button[type="submit"] {
  font-family: inherit;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-on-primary);
  background: var(--color-primary);
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}
button[type="submit"]:hover { filter: brightness(0.95); transform: translateY(-1px); }

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

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

/* Hero text card exception (if stacked-banner layout used) */
.hero-text-card {
  color: var(--color-text);
}
.hero-text-card h1,
.hero-text-card p { color: var(--color-text); }

/* Accessibility helpers for high-contrast focus */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}