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

:root {
  --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 (TK11 - dark luxury desert theme) */
  --color-bg: #0F0A05;            /* very dark desert background (DARK) */
  --color-bg-alt: #14120F;
  --color-bg-card: #1A1410;        /* card background (dark for premium feel) */

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

  /* Text & contrast (DARK BG requires light text) */
  --color-text: #F8F0E0;             /* warm off-white body text (meets contrast on dark) */
  --color-text-muted: #B09070;       /* muted text (desert sand) */
  --color-text-on-primary: #111111;  /* text on primary (bright primary -> dark text) */

  --color-border: #2A1C13;
  --color-shadow: rgba(0,0,0,.55);

  /* Hero & surface */
  --color-bg-hero: var(--color-bg);
}

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

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100%;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: 'Lato', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

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

.container {
  width: 100%;
  padding: 0 1rem;
  margin: 0 auto; /* mandatory per layout requirements */
  box-sizing: border-box;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 64px;
  overflow: visible;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.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;
  text-decoration: none;
}
.site-logo img {
  height: 44px;
  width: auto;
  max-height: 52px;
  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; /* mandatory white bars */
  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,.18);
}
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
}
.nav-link {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  text-decoration: none;
  padding: 0.75rem 1rem;
  transition: color 0.2s ease, background 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,.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 adjustments and layout */
@media (min-width: 768px) {
  /* Logo-left, nav-right layout */
  .container { max-width: 960px; padding: 0 1.5rem; margin: 0 auto; }
  .nav-toggle-label { display: none; } /* hide hamburger on tablet+ */
  .site-nav {
    display: flex;
    align-items: center;
    position: static;
    background: transparent;
    border-top: none;
    box-shadow: none;
  }
  /* nav on one row; never vertical on tablet/desktop */
  .nav-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    justify-content: flex-end;
  }
  .nav-link {
    font-size: var(--font-size-sm);
  }

  .site-header .container {
    justify-content: space-between;
  }

  /* Dropdown on desktop remains hover/focus-within */
  .nav-dropdown-menu {
    position: absolute;
  }
  .hero { min-height: 60vh; }
  .hero-inner { display: flex; align-items: center; gap: 3rem; }
  .hero-text { flex: 1 1 55%; }
  .hero-media { flex: 1 1 40%; }
  .hero-img { width: 100%; border-radius: var(--radius); object-fit: cover; max-height: 460px; display: block; }
  .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; margin: 0 auto; }
  .hero { min-height: 70vh; }
  .hero h1 { font-size: var(--font-size-hero); }
  .section { padding: 4rem 0; }
  .section-title { font-family: 'Playfair Display', serif; font-size: var(--font-size-2xl); }
}

 /* HERO LAYOUT EXTENSIONS (required by prompt) */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, rgba(0,0,0,.5), rgba(0,0,0,.25)), var(--color-bg);
}
.hero-inner { display: flex; align-items: center; gap: 3rem; width: 100%; max-width: 1100px; }
.hero-text { flex: 1 1 55%; }
.hero-media { flex: 1 1 40%; display: flex; justify-content: center; }

.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) {
  .hero-inner { flex-direction: row; }
  .hero-text { text-align: left; }
  .hero-media { alignment-baseline: central; }
}
@media (min-width: 768px) {
  .site-header .container { justify-content: space-between; }
  .nav-list { justify-content: flex-end; }
  .nav-toggle-label { display: none; }
}
@media (max-width: 767px) {
  /* Mobile navigation & sections that require column demo */
  .nav-list { flex-direction: column; }
  .nav-dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 1rem; }
  .site-nav { display: none; }
  .nav-item { width: 100%; }
  .nav-link { padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border); }
  .hero { padding: 2.5rem 1rem; }
  .section { padding: 2rem 0; }
  .card-grid { grid-template-columns: 1fr; }
}
@media (min-width: 768px) {
  /* Tablet adjustments for nav and container centering (ensured by rules above) */
  .container { margin: 0 auto; }
}
@media (min-width: 1024px) {
  /* Desktop-specific hero sizing already set in previous blocks */
  .hero { padding: 5rem 0; }
}

/* SECTION + TYPOGRAPHY STRUCTURE */
.section { padding: 2rem 0; }
.section-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: var(--font-size-2xl); margin: 0 0 0.5rem; color: var(--color-text); }

/* CARD GRID & CARDS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.card {
  display: flex;
  flex-direction: column; /* MANDATORY */
  background: var(--color-bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,.4), 0 10px 15px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,.45), 0 16px 22px rgba(0,0,0,.25); }
.card img {
  width: 100%;
  aspect-ratio: 16/9; /* mandatory: rectangle */
  object-fit: cover;
  display: block;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}
.card .card-content { padding: 1rem; color: var(--color-text); }

/* BUTTONS */
.btn { display: inline-block; padding: 0.6rem 1rem; border-radius: 8px; border: none; cursor: pointer; font-family: inherit; font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); text-decoration: none; transition: filter 0.2s ease, transform 0.2s ease; }
.btn:hover { filter: brightness(0.95); }
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
}
.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-primary); outline-offset: 2px; }

/* HEADER TEXT LINKS (NAV) */
.nav-link { color: var(--color-text); text-decoration: none; }

/* FOOTER */
.site-footer { background: var(--color-bg-card); padding: 2rem 0; color: var(--color-text); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; 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: transform .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;
  background: transparent;
}
.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 */
label { display: block; font-size: var(--font-size-sm); margin-bottom: .25rem; color: var(--color-text); }
input, textarea, select {
  width: 100%; padding: .75rem .9rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-family: inherit;
  font-size: var(--font-size-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(232,101,10,.25);
}

/* TABLES */
table { width: 100%; border-collapse: collapse; }
th, td { padding: .5rem; border-bottom: 1px solid var(--color-border); text-align: left; }
th { font-family: 'Playfair Display', serif; font-weight: 700; }

/* UTILITIES */
.text-center { text-align: center; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.hidden { display: none !important; }

/* Ensure content remains centered across breakpoints (mandatory) */
@media (min-width: 768px) {
  /* Tablet-specific adjustments ensure content remains centered via container margins */
  .container { margin: 0 auto; }
}

/* Accessibility & hover enhancements for premium feel */
a:hover, .nav-link:hover { text-decoration: underline; color: var(--color-text-muted); }

/* H1/H2/H3 adjustments for brand typography using Playfair Display for headings */
h1, h2, h3, h4 {
  color: var(--color-text);
  margin: 0 0 .5rem;
  line-height: 1.1;
}
h1 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: var(--font-size-3xl); }
h2 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: var(--font-size-2xl); }
h3 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: var(--font-size-xl); }
h4 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: var(--font-size-lg); }

/* Ensure hero text contrast on dark backgrounds (as per requirements) */
.hero, .hero h1, .hero p, .hero .btn {
  color: #fff;
}