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

:root {
  --radius: 8px;

  /* Typography scale */
  --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 (666D branding - Cinematic dark) */
  --color-bg: #111111;               /* DARK bg */
  --color-bg-alt: #1a1a1a;
  --color-bg-card: #181818;

  --color-primary: #D97706;          /* Gold brand */
  --color-secondary: #b58900;

  --color-text: #EEEEEE;              /* body text on dark bg (white-ish) */
  --color-text-muted: #A0A0A0;         /* MUTED on dark bg (meets contrast) */
  --color-text-on-primary: #111111;    /* contrast on primary */

  --color-border: #2a2a2a;
  --color-shadow: rgba(0,0,0,0.35);

  /* Hero handling */
  --hero-gradient: linear-gradient(135deg, rgba(17,17,17,0.95) 0%, rgba(26,26,26,0.95) 60%), #111;

  /* Shadows / glow */
  --card-glow: 0 0 20px rgba(217,119,6,0.2);
  --shadow-soft: 0 6px 20px rgba(0,0,0,0.25);
}

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

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

:root {}

* { box-sizing: border-box; }

h1, h2, h3, h4 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 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); }

p { font-family: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: var(--font-size-base); color: var(--color-text); margin: 0 0 1rem; }

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

strong { font-weight: var(--font-weight-bold); }
em { font-style: italic; }

ul, ol { margin: 0 0 1rem 1.25rem; padding: 0; }

.container {
  width: 100%;
  margin: 0 auto; /* CENTER CONTENT AT ALL BREAKPOINTS */
  padding: 0 1rem;
}

/* Reset / base sizing for header, sections, cards, etc. (mobile-first) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 64px;
  overflow: visible;
  width: 100%;
  background: rgba(0,0,0,0.0);
  box-shadow: none;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem; /* mobile padding */
  width: 100%;
}
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
  text-decoration: none;
}
.site-logo img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}
.site-nav {
  display: none; /* mobile hidden by default; revealed on toggle */
}
.nav-list {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item { position: relative; }

.nav-link {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  position: relative;
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
}
.nav-link:hover { color: #fff; }

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--color-primary);
  transition: width 0.2s ease;
}
.nav-link:hover::after { width: 100%; }

.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%;
  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-toggle-input:checked ~ .site-nav { display: block; }

/* Dropdown navigation (CSS-only) */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; user-select: none; white-space: nowrap; display: inline-flex; align-items: center; padding: 0.25rem 0.5rem; }
.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 adjustments (≥768px) */
@media (min-width: 768px) {
  .container { max-width: 960px; padding: 0 1.5rem; margin: 0 auto; }

  /* Hamburger hidden, full nav visible on tablet/desktop */
  .nav-toggle-label { display: none; }
  .site-nav { display: flex !important; align-items: center; position: static; width: auto; background: transparent; border-top: none; box-shadow: none; }
  .nav-list { display: flex !important; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 1.5rem; justify-content: flex-end; padding: 0; margin: 0; }
  .nav-link { font-size: var(--font-size-sm); padding: 0.25rem 0.5rem; border-bottom: none; white-space: nowrap; }

  /* Dropdown behavior on desktop */
  .nav-dropdown-menu { position: absolute; top: 100%; left: 0; min-width: 200px; padding: 0; }
  .nav-dropdown:hover > .nav-dropdown-menu { display: block; }
  .nav-dropdown:focus-within > .nav-dropdown-menu { display: block; }

  .hero { min-height: 60vh; }
  .hero h1 { font-size: var(--font-size-hero); }

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

  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
  /* Ensure logo remains aligned in header on tablet/desktop */
  .site-header .container { gap: 1rem; }
  
  /* Ensure nav items align in a single row (tablet/desktop) */
  .nav-link { /* already set to tablet/desktop above */ }
}

@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-size: var(--font-size-2xl); }

  /* Footer alignment for desktop */
  .footer-inner { align-items: center; }
}

/* Base hero styling (mobile-first) */
.hero {
  width: 100%;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: var(--hero-gradient);
}
.hero-content {
  max-width: 860px;
}
.hero h1 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}
.hero p {
  color: #f5f5f5;
  max-width: 60ch;
  margin: 0 auto 1rem;
}
.hero .btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  border: none;
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  cursor: pointer;
  transition: filter 0.2s ease;
}
.hero .btn:hover { filter: brightness(0.95); }

/* Section base */
.section {
  padding: 2rem 0;
}
.section-title {
  font-family: "Playfair Display", serif;
  font-size: var(--font-size-2xl);
  color: var(--color-text);
  margin-bottom: 1rem;
}

/* Card system (mandatory card structure) */
.card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(217,119,6,0.25);
}
.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 {
  padding: 1rem;
}
.card h4 { margin: 0 0 0.5rem; font-size: var(--font-size-lg); }
.card p { margin: 0 0 0.75rem; color: var(--color-text-muted); }

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

/* Buttons (base + variants) */
.btn {
  display: inline-block;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  border: none;
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
}
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

/* Footer */
.site-footer {
  background: #0b0b0b;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 2rem 0;
  color: var(--color-text);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-inner a { color: var(--color-text); }

/* 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 0.2s ease, box-shadow 0.2s ease;
}
.faq-item[open] {
  border-color: var(--color-primary);
  box-shadow: 0 2px 12px rgba(217,119,6,0.25);
}
.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); }

/* Forms (inputs, labels, selects, textarea, button submit) */
label { display: block; font-size: var(--font-size-xs); color: var(--color-text); margin-bottom: .25rem; }
input,
textarea,
select {
  font-family: inherit;
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: #141414;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  width: 100%;
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(217,119,6,0.15); }

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

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

/* Accessibility helpers for keyboard nav (optional enhancement) */
:focus { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* Ensure content is centered on small screens where appropriate */
@media (max-width: 767px) {
  .site-nav { width: 100%; }
  .nav-list { flex-direction: column; padding: 0.5rem 0; }
  .nav-item { width: 100%; }
  .nav-link { padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border); width: 100%; display: block; }
  .hero { padding: 2.5rem 1rem; }
}