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

:root {
  --radius: 12px;

  /* Typography scale */
  --font-size-xs:   0.75rem;   /* captions, labels */
  --font-size-sm:   0.875rem;  /* nav links, small text */
  --font-size-base:  1rem;      /* body text */
  --font-size-md:    1.125rem;  /* lead paragraphs */
  --font-size-lg:    1.25rem;   /* sub-headings, card titles */
  --font-size-xl:    1.5rem;    /* h3 */
  --font-size-2xl:   2rem;      /* h2, section titles */
  --font-size-3xl:   2.75rem;   /* h1 on desktop */
  --font-size-hero:  3.5rem;    /* hero headline on desktop */
  --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 / TK11) */
  --color-bg: #0F0A05;                /* very dark brown */
  --color-bg-alt: #1A1410;
  --color-bg-card: #171010;
  --color-primary: #E8650A;            /* burnt orange */
  --color-secondary: #D4A853;          /* sand gold */
  --color-accent: #F3C56B;             /* lighter gold */
  --color-text: #E8E8E8;                /* very light on dark BG (required) */
  --color-text-muted: #A0A0A0;
  --color-text-on-primary: #1A1A1A;      /* contrast on primary (dark primary) */
  --color-border: #2b1f14;
  --color-shadow: rgba(0, 0, 0, 0.5);
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: Lato, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* base rule to prevent horizontal scroll on mobile as per responsive requirements */
  max-width: 100%;
}

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { margin: 0; padding: 0; list-style: none; }

/* 3. Layout base */
.container {
  width: 100%;
  padding: 0 1rem;
  margin: 0 auto; /* Must be centered at every breakpoint */
  box-sizing: border-box;
  max-width: none;
}
.section { padding: 2rem 0; }

/* 4. Typography usage */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 64px;
  display: block;
  width: 100%;
  background: transparent;
  overflow: visible;
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  /* Will be overridden at breakpoints for layout */
}

.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; /* MANDATORY to prevent overflow */
}
.site-header .container > * { align-items: center; }

.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 for bars */
  border-radius: 2px;
  transition: 0.2s ease;
}
.site-nav {
  display: none; /* mobile hidden by default; shown on tablet+ or when toggled on mobile */
  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;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
}
.nav-item { }

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

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: inline-flex; align-items: center; padding: 0.5rem 1rem; cursor: pointer; text-decoration: none; color: var(--color-text); }
.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, 6px);
  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;
  color: inherit;
}
.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;
    display: none;
  }
  .nav-dropdown:focus-within > .nav-dropdown-menu {
    display: block;
  }
}

/* 6. Hero with extra layout rules (provided) */
.hero {
  width: 100%;
  background: linear-gradient(135deg, rgba(232,101,10,0.15) 0%, rgba(0,0,0,0.25) 100%), var(--color-bg);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  padding: 2rem 1rem;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: 100%;
  max-width: 1200px;
}
.hero-text { flex: 1 1 55%; }
.hero-media { flex: 1 1 40%; }
.hero-img {
  width: 100%;
  border-radius: var(--radius, 12px);
  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) {
  /* Tablet+ adjustments for hero text size */
  .hero h1 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: var(--font-size-hero); margin: 0 0 0.5rem; }
}
.hero h1 { font-family: 'Playfair Display', serif; font-weight: 700; color: #fff; font-size: var(--font-size-hero); line-height: var(--line-height-tight); margin: 0 0 0.75rem; }
.hero p { color: #fff; margin: 0; }

/* 6. Cards & 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,0.25), 0 10px 15px rgba(0,0,0,0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.35), 0 12px 20px rgba(0,0,0,0.18);
}
.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 h3 { font-size: var(--font-size-lg); margin: 0 0 0.5rem; font-family: 'Playfair Display', serif; font-weight: 700; color: var(--color-text); }
.card p { margin: 0; color: var(--color-text-muted); }

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

/* 6. Buttons */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.btn-primary:hover { filter: brightness(0.9); }
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn:focus { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* 6. Footer */
.site-footer {
  background: var(--color-bg);
  color: var(--color-text);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
}
.footer-inner a { color: var(--color-text); }

/* 6. FAQ accordion (CSS-only) */
.faq-section { padding: 2rem 0; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius, 8px);
  margin-bottom: 0.75rem;
  background: var(--color-bg-card);
  overflow: hidden;
  transition: 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); }

/* 7. Forms */
input,
textarea,
select {
  font-family: inherit;
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: #1A1410;
  border: 1px solid var(--color-border);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  outline: none;
}
label { display: inline-block; font-size: var(--font-size-xs); color: var(--color-text-muted); margin-bottom: 0.25rem; }
button[type="submit"] { cursor: pointer; }

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

/* 9. 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 !important; }

/* 10. Responsive rules (mobile-first) */
@media (min-width: 768px) {
  /* NAV LAYOUT — logo-left, nav-right */
  .container { max-width: 960px; padding: 0 1.5rem; margin: 0 auto; }

  .site-header .container {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  /* Hamburger visible only on mobile; hidden on tablet+ */
  .nav-toggle-label { display: flex; }

  /* Desktop/tablet: show nav; horizontal layout */
  .site-nav { display: flex; align-items: center; position: static; background: transparent; border-top: none; box-shadow: none; }
  .nav-list { flex-direction: row !important; flex-wrap: nowrap; align-items: center; padding: 0; margin: 0; }
  .nav-link { font-size: var(--font-size-sm); padding: 0.4rem 0.75rem; border-bottom: none; }

  /* NAV LAYOUT adjustments for tablet+ */
  .site-header .container { justify-content: space-between; }
  .site-nav { margin-left: auto; justify-content: flex-end; }
  .nav-list { justify-content: flex-end; }
  .hero { min-height: 60vh; }

  /* Hero heading scale on tablet/desktop */
  .hero h1 { font-size: var(--font-size-3xl); }

  /* Card grid on tablet/desktop */
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .footer-inner { flex-direction: row; text-align: left; }
}

@media (min-width: 1024px) {
  .container { max-width: 1200px; padding: 0 2rem; }
  .site-nav { /* maintain desktop visibility if needed */ display: flex; }
  .hero { min-height: 70vh; }
  .hero h1 { font-size: var(--font-size-hero); }
  .section { padding: 4rem 0; }
}