@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap');

:root {
  /* COLOR PALETTE - TK11 Desert Sun inspired */
  --color-bg: #0F0A05;           /* dark desert ground (main bg) - DARK BG */
  --color-bg-alt: #1A1410;        /* slightly lighter for contrast edges */
  --color-bg-card: #141010;       /* card background (elevated) */
  --color-primary: #E8650A;        /* burnt orange brand color (primary) */
  --color-accent: #D4A853;         /* sand gold accent */
  --color-text: #F8F0E0;            /* warm off-white body text (for dark bg) */
  --color-text-muted: #B09070;      /* muted text */
  --color-text-on-primary: #111111;  /* text on primary (dark primary) */
  --color-border: #2A1F12;
  --color-shadow: rgba(0,0,0,0.5);

  /* TYPOGRAPHY + SPACING */
  --container-max-width: 1100px;
  --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;
}

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

html, body {
  height: 100%;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Lato', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  overflow-x: hidden; /* RESPONSIVE REQUIREMENT: prevent horizontal scroll on mobile */
  max-width: 100%;
  line-height: var(--line-height-base);
}

@font-face {
  font-family: 'Lato';
  src: local('Lato'), local('Lato-Regular');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Headings use Playfair Display for elegant contrast (700) */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--color-text); margin: 0 0 .5rem; }
h1 { font-size: var(--font-size-3xl); line-height: var(--line-height-tight); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-md); }

/* Base typography for body and links */
p { font-size: var(--font-size-base); line-height: var(--line-height-base); color: var(--color-text); margin: 0 0 1rem; }
a { color: var(--color-primary); text-decoration: none; position: relative; }
a:hover { text-decoration: underline; }

/* List defaults */
ul, ol { margin: 0 0 1rem 1.25rem; padding: 0; }

/* Utility: simple underline slide for nav links */
.nav-link { font-family: 'Lato', sans-serif; font-size: var(--font-size-xs); color: var(--color-text); padding: 0.25rem 0; position: relative; display: inline-block; }
.nav-link:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--color-accent);
  transition: width 0.2s ease;
}
.nav-link:hover:after { width: 100%; }

/* Layout utilities / containers */
.container { width: 100%; max-width: var(--container-max-width); margin: 0 auto; padding: 0 1rem; }

/* Section blocks */
.section { padding: 2rem 0; }

/* Section title styling */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: var(--font-size-2xl);
  margin: 0 0 0.75rem;
  color: var(--color-text);
}

/* Cards and card grid */
.card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,.28), 0 10px 15px rgba(0,0,0,.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,.28), 0 14px 20px rgba(0,0,0,.22);
}
.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; color: var(--color-text); }

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

/* Hero section */
.hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
  background: linear-gradient(135deg, rgba(232,101,10,.25), rgba(212,168,83,.25)), var(--color-bg);
  color: #fff;
}
.hero-inner { display:flex; align-items:center; gap: 3rem; width: 100%; max-width: var(--container-max-width); padding: 0 1rem; }
.hero-text { flex: 1 1 55%; }
.hero-media { flex: 1 1 40%; display:flex; align-items:center; justify-content:center; }
.hero-img { width: 100%; border-radius: var(--radius); object-fit: cover; max-height: 460px; display: block; }

@media (max-width: 767px) {
  .hero-inner { flex-direction: column; }
  .hero-media { width: 100%; }
}
@media (min-width: 768px) {
  /* Hero text sizing on larger screens */
}
@media (min-width: 768px) {
  .hero h1 { font-size: var(--font-size-hero); }
}

/* Footer */
.site-footer { background: #0b0a07; padding: 2rem 0; color: var(--color-text); }
.footer-inner { display:flex; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 0 1rem; 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: 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: "−"; }
.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); }

/* Hamburger navigation (mobile) under system prompt rules */
.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; /* MANDATORY: white bars */
  border-radius: 2px;
  transition: 0.2s ease;
}
.site-nav {
  display: none; /* mobile hidden by default */
  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,.18);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.site-nav .nav-list {
  flex-direction: column;
  padding: 0.5rem 0;
}
.nav-list { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; }

.nav-item { }

@media (min-width: 768px) {
  /* NAV LAYOUT: logo-left nav-right for tablet+ */
  .site-header .container { justify-content: space-between; }

  .site-nav {
    display: flex;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    opacity: 1;
  }

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

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

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

  .site-nav { margin-left: auto; justify-content: flex-end; }

  /* Dropdowns on desktop stay visible via hover/focus-within rules in base */
  .nav-dropdown-menu { min-width: 200px; }

  /* Hero sizing for tablet/desktop */
  .hero { min-height: 60vh; }

  /* Ensure container stays centered */
}

@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; }
}

/* NAV dropdown (desktop/mobile consistent rules) */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; user-select: none; white-space: nowrap; color: inherit; 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,.18);
  white-space: nowrap;
}
.nav-dropdown:hover > .nav-dropdown-menu { display: block; }
.nav-dropdown:focus-within > .nav-dropdown-menu { display: block; }

/* Dropdown items in menu */
.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;
  }
  .nav-list { flex-direction: column; }
  .nav-link { padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border); }
  .site-nav { display: none; }
  .site-header .container { align-items: center; }
  .nav-dropdown:focus-within > .nav-dropdown-menu { display: block; }
  /* ensure mobile nav remains functional with the checkbox pattern */
  .site-nav { display: none; opacity: 1; }
  .nav-toggle-input:checked ~ .site-nav {
    display: block;
    opacity: 1;
  }
}

/* Mobile-specific hero text sizing for small screens (optional fine-tune) */
@media (max-width: 767px) {
  h1 { font-size: var(--font-size-xl); }
  .hero { padding: 2rem 1rem; }
}

/* Form elements */
label { display: block; font-size: var(--font-size-xs); margin-bottom: .25rem; color: var(--color-text); }
input, textarea, select {
  width: 100%;
  padding: .75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #181010;
  color: var(--color-text);
  font-family: inherit;
}
textarea { resize: vertical; min-height: 120px; }

/* Submit button form style */
button[type="submit"] { font-family: inherit; }

/* Buttons (base + variants) */
.btn {
  display: inline-block;
  padding: .75rem 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
  font-family: inherit;
  font-size: var(--font-size-sm);
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  text-shadow: none;
}
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary:hover { filter: brightness(0.95); }

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