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

:root {
  /* Brand + Palette */
  --color-bg: #0A0A0A;
  --color-bg-alt: #0F0F0F;
  --color-bg-card: #141414;
  --color-text: #F5ECDA;
  --color-text-muted: #C8B69A;
  --color-text-on-primary: #0A0A0A;
  --color-border: rgba(255, 255, 255, 0.25);
  --color-shadow: rgba(0, 0, 0, 0.6);

  --color-primary: #D4AF37;   /* Gold */
  --color-primary-dark: #B8922A;
  --color-secondary: #B22222; /* Crimson / accent */
  --color-accent: #B22222;

  /* Radius / shapes */
  --radius: 12px;
  --radius-pill: 999px;

  /* Typography scale (mandatory) */
  --font-family: 'Exo 2', ui-sans-serif, system-ui;
  --line-height-base: 1.6;
  --line-height-tight: 1.2;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;

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

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

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
}

img { max-width: 100%; display: block; }

/* Base layout utilities */
.container {
  width: 100%;
  margin: 0 auto; /* required across breakpoints */
  padding: 0 1rem;
  box-sizing: border-box;
}

.section {
  padding: 2rem 0;
}

.section-title {
  font-size: var(--font-size-2xl);
  margin: 0 0 1rem;
  color: var(--color-text);
  font-weight: var(--font-weight-bold);
}

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

.card {
  display: flex;
  flex-direction: column; /* mandatory */
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.5);
}
.card img {
  width: 100%;
  aspect-ratio: 16 / 9; /* mandatory */
  object-fit: cover;     /* mandatory */
  display: block;          /* mandatory */
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}
.card-content {
  padding: 1rem;
}
.card-title {
  font-size: var(--font-size-lg);
  margin: 0 0 0.25rem;
  color: var(--color-text);
}
.card-desc {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  margin: 0;
}
.btn {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
  font-weight: var(--font-weight-medium);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.btn:focus { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.btn-primary {
  background: var(--color-primary);
  color: #000;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.25);
}
.btn-primary:hover {
  filter: brightness(0.92);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  transform: translateY(-1px);
}
.hero {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh; /* base, will scale with breakpoints */
  padding: 2rem 1rem;
  color: var(--color-text);
  background: linear-gradient(135deg, #0A0A0A 0%, #0D0D0D 40%, #D4AF37 100%);
  /* subtle glow */
  box-shadow: inset 0 0 0 1000px rgba(0,0,0,0.0);
}
.hero-inner {
  max-width: 1100px;
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: var(--font-size-hero);
  line-height: var(--line-height-tight);
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  text-decoration: none;
  font-weight: var(--font-weight-bold);
  transition: transform 0.2s ease, background 0.2s ease;
}
.hero-cta:hover { transform: translateY(-2px); background: rgba(255,255,255,0.16); }

/* Site header + navigation (mobile-first) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.92);
  min-height: 64px; /* required min-height (not fixed height) */
  overflow: visible; /* ensure logo not clipped */
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem; /* mobile padding as required */
  width: 100%;
  box-sizing: border-box;
}
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
  max-height: 52px;
  text-decoration: none;
}
.site-logo img {
  height: 44px;        /* mandatory exact height constraint */
  width: auto;
  max-width: 160px;    /* as specified */
  object-fit: contain; /* mandatory */
  display: block;        /* mandatory */
}
.nav-toggle-input {
  position: absolute;
  width: 0; height: 0;
  opacity: 0;
  pointer-events: none;
}
.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%;
  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;
}
.site-nav .nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
}
.nav-list { list-style: none; padding: 0; margin: 0; display: flex; }
.nav-item { position: relative; }
.nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--font-size-xs); /* mobile default must be xs */
  padding: 0.75rem 1rem;
  display: block;
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
}
.nav-link:hover { color: var(--color-primary); text-decoration: none; }
.nav-link:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  height: 2px;
  width: 0;
  background: var(--color-primary);
  transition: width 0.2s ease;
}
.nav-link:hover:after { width: 100%; }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; white-space: nowrap; padding: 0.75rem 1rem; display: inline-block; color: var(--color-text); text-decoration: none; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 200px;
  z-index: 9999;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  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);
}
@media (max-width: 767px) {
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem; /* indent under the toggle on mobile */
    display: none;
  }
  .nav-dropdown:focus-within > .nav-dropdown-menu {
    display: block;
  }
}
@media (min-width: 768px) {
  /* Tablet and up: show horizontal nav, hide hamburger toggle */
  .nav-toggle-label { display: none !important; }
  .site-nav { display: flex; position: static; width: auto; background: transparent; border-top: none; box-shadow: none; }
  .nav-list {
    display: flex !important;
    flex-direction: row !important; /* tablet/desktop horizontal nav */
    flex-wrap: nowrap;
    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; white-space: nowrap; }
  .site-nav .nav-list { padding: 0; }
}
@media (min-width: 768px) {
  /* Desktop/tablet: show nav by default, keep container centered */
  .site-header { overflow: visible; }
  .site-nav { display: flex; align-items: center; gap: 1rem; }
  .nav-toggle-input { display: none; }
}
@media (min-width: 1280px) {
  /* Desktop specific tweaks for P999 luxury vibe */
  .container { max-width: 1200px; padding: 0 2rem; }
  .hero { min-height: 70vh; }
  .hero h1 { font-size: var(--font-size-hero); }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
@media (max-width: 767px) {
  /* Mobile specific tweaks (375px baseline) */
  .container { padding: 0 1rem; margin: 0 auto; }
  .site-header .container { display: flex; align-items: center; gap: 1rem; padding: 0.5rem 1rem; }
  .hero { min-height: 50vh; }
  .card-grid { grid-template-columns: 1fr; }
  .nav-link { font-size: var(--font-size-xs); }
}
@media (min-width: 768px) {
  /* Tablet tweaks (≥768px) you requested complete tablet rules */
  .container { max-width: 960px; }
  .section { padding: 3rem 0; }
  .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
}

/* Sections: header typography helpers */
h1 { font-size: var(--font-size-3xl); margin: 0 0 0.5rem; }
h2 { font-size: var(--font-size-2xl); margin: 0 0 0.5rem; }
h3 { font-size: var(--font-size-xl); margin: 0 0 0.5rem; }
h4 { font-size: var(--font-size-lg); margin: 0 0 0.5rem; }

/* Site footer */
.site-footer {
  background: #0a0a0a;
  color: var(--color-text);
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* Forms */
label { display: block; margin-bottom: 0.25rem; font-size: var(--font-size-sm); color: var(--color-text); }
input,
textarea,
select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: #111;
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
}
button[type="submit"] {
  background: var(--color-primary);
  color: #000;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: var(--font-weight-bold);
  transition: transform 0.2s ease;
}
button[type="submit"]:hover { transform: translateY(-1px); }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.5rem; 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 !important; }

/* 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: "−"; transform: rotate(0.25turn); }
.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); }

/* Ensure all required classes have at least one rule (covered above) */
.site-header, .site-logo, .nav-toggle-input, .nav-toggle-label, .site-nav, .nav-list, .nav-link, .nav-item, .nav-dropdown, .nav-dropdown-toggle, .nav-dropdown-menu, .hero, .container, .section, .section-title, .card, .card-img, .card-grid, .btn, .btn-primary, .btn-secondary, .site-footer, .footer-inner, .faq-section, .faq-item, .faq-question, .faq-answer, form, table, th, td, .text-center, .mt-1, .mt-2, .mt-3, .mt-4, .hidden { /* ensured each has at least one rule via their dedicated blocks above */ }