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

:root {
  /* COLOR PALETTE / BRAND */
  --color-bg: #0A0A0A;             /* deep black base */
  --color-bg-alt: #111111;
  --color-bg-card: #141414;
  --color-border: rgba(255, 255, 255, 0.15);
  --color-shadow: rgba(0, 0, 0, 0.6);

  --color-primary: #D4AF37;         /* gold */
  --color-primary-dark: #B0862F;
  --color-accent: #B22222;          /* crimson */
  --color-text: #EDE6D0;
  --color-text-muted: #C8B8A0;
  --color-text-on-primary: #1a1a1a;

  /* RADIUS / SHAPES */
  --radius: 12px;
  --radius-pill: 999px;

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

  /* FONTS */
  --font-family-body: Lato, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-family-heading: "Playfair Display", serif;

  /* LAYOUT */
  --container-max: 1200px;
  --section-padding: 2rem 0;
}

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

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

ul,
ol { padding-left: 1.25rem; }

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

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  margin: 0 0 0.5rem 0;
  color: var(--color-text);
  line-height: var(--line-height-tight);
}
h1 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-3xl);
}
h2 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-2xl);
}
h3 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xl);
}
h4 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-md);
}
p { font-family: var(--font-family-body); font-size: var(--font-size-base); line-height: var(--line-height-base); color: var(--color-text); }

a { color: var(--color-primary); text-decoration: none; transition: color 0.2s ease, text-decoration 0.2s ease; }
a:hover, a:focus { color: #F7D77A; text-decoration: underline; }

/* LAYOUT / UTILITIES */
.container {
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}
.section { padding: var(--section-padding); }

/* CARD STYLES */
.card {
  display: flex;
  flex-direction: column; /* MANDATORY: vertical card layout */
  background: var(--color-bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(212,175,55,0.5); /* subtle gold frame */
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.55);
}
.card img {
  width: 100%;               /* MANDATORY: rectangle images */
  aspect-ratio: 16/9;          /* MANDATORY: 16:9 */
  object-fit: cover;           /* MANDATORY: cover */
  display: block;                /* MANDATORY: block */
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}
.card-content { padding: 1rem; color: var(--color-text); }

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

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-pill); /* pill style for all buttons by default */
  border: none;
  cursor: pointer;
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}
.btn:focus { outline: 2px solid #fff; outline-offset: 2px; }
.btn-primary {
  background: var(--color-primary);
  color: #1a1a1a;
  box-shadow: 0 0 0 0 rgba(212,175,55,0);
}
.btn-primary:hover {
  filter: brightness(0.92);
  box-shadow: 0 6px 14px rgba(212,175,55,0.55);
}
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 2px solid rgba(212,175,55,0.6);
}
.btn-secondary:hover {
  background: rgba(212,175,55,0.08);
  color: #fff;
}
.btn + .btn { margin-left: 0.5rem; }

/* HEADER / NAV BAR (HAMBURGER NAV) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  overflow: visible; /* required to avoid clipping logo inside header on scroll */
  background: rgba(10,10,10,0.92);
  backdrop-filter: saturate(1.2) blur(2px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem; /* mobile padding as required */
}

/* LOGO */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
  max-height: 52px;
}
.site-logo a { display: flex; align-items: center; text-decoration: none; color: inherit; }
.site-logo img {
  height: 44px;       /* MANDATORY: height 44px */
  width: auto;
  max-width: 160px;   /* MANDATORY: max width 160px */
  object-fit: contain;  /* MANDATORY: contain behavior */
  display: block;
}
.site-logo img { height: 44px; }

/* NAV TOGGLE (HAMBURGER) - MUST IMPLEMENT AS DOCUMENTED */
.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); /* visible on any header color */ 
  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 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;
}
.nav-list {
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.nav-item { }

/* MOBILE NAV (BASE) SHOWS WHEN CHECKED */
.nav-toggle-input:checked ~ .site-nav { display: block; }

/* NAV LINKS */
.nav-link {
  color: var(--color-text);
  text-decoration: none;
  display: block;
  padding: 0.75rem 1rem;
  font-size: var(--font-size-xs); /* mobile: smaller text */
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
}
.nav-link:hover, .nav-link:focus { color: #fff; text-decoration: underline; }

/* UNDERLINE SLIDE EFFECT FOR NAV LINKS */
.nav-link { position: relative; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease;
}
.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* TABLET / DESKTOP NAV BEHAVIOR */
@media (min-width: 768px) {
  /* show nav horizontally, keep the hamburger hidden */
  .nav-toggle-label { display: none; }

  .site-nav {
    display: block !important;
    position: static;
    width: auto;
    background: transparent;
    border-top: none;
    box-shadow: none;
  }

  .nav-list {
    display: flex;
    flex-direction: row;        /* tablet/desktop: horizontal nav */
    flex-wrap: nowrap;            /* NO wrap on tablet/desktop (Excess handled by dropdown) */
    gap: 1.5rem;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
  }

  .nav-item { list-style: none; }

  .nav-dropdown { position: relative; }

  .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.20);
    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 1rem;
    width: 100%;
    border-bottom: none;
  }

  /* Ensure dropdowns behave as separate blocks on tablet/desktop */
  .nav-dropdown:hover > .nav-dropdown-menu { opacity: 1; }

  /* Desktop-specific adjustments for large viewports can go here if needed */
}

/* DROPDOWN NAV (ALL BREAKPOINTS) */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; user-select: none; white-space: nowrap; padding: 0.5rem 0.75rem; }
.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);
}
.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: var(--color-text);
}
.nav-dropdown-menu .nav-link:hover { background: var(--color-bg-alt); }

/* MOBILE DROPDOWN INDENT */
@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,
  .nav-dropdown:hover > .nav-dropdown-menu {
    display: block;
  }
}

/* HERO */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 50vh; /* initial, adjusted in breakpoints */
  padding: 2rem 1rem;
  background: linear-gradient(135deg, rgba(10,10,10,1) 0%, rgba(15,12,12,1) 60%, rgba(0,0,0,0.95) 100%), 
              radial-gradient(circle at 20% -20%, rgba(212,175,55,0.25), transparent 40%);
  color: var(--color-text);
}
.hero h1 {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-hero);
  line-height: var(--line-height-tight);
  margin: 0;
  color: #FDEFD4;
  text-shadow: 0 2px 8px rgba(212,175,55,0.6);
}
.hero p { font-size: var(--font-size-lg); opacity: 0.95; }

/* FOOTER */
.site-footer {
  background: #0b0b0b;
  color: var(--color-text-muted);
  padding: 2rem 0;
}
.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; align-items: center; }
}

/* FAQ ACCORDION (CSS-ONLY) */
.faq-section { padding: var(--section-padding); }
.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 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); }

/* FORMS */
label { display: block; margin-bottom: 0.25rem; color: var(--color-text); font-weight: 500; font-family: var(--font-family-body); }
input,
textarea,
select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  background: #111;
  color: #f6f6f6;
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
}
input::placeholder, textarea::placeholder { color: #888; }

/* 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: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.hidden { display: none; }

/* RESPONSIVE BREAKPOINTS */

/* Mobile-first base styles already defined above for <= 767px */

/* Tablet / 768px and up */
@media (min-width: 768px) {
  /* NAV / header sizing */
  .site-header .container {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .site-logo { align-items: center; }

  /* Logo height according to branding in this breakpoint if needed (logo fixed by MANDATORY rules) */

  /* HERO adjustments */
  .hero { min-height: 60vh; }
  .hero h1 { font-size: var(--font-size-3xl); }

  /* NAV: ensure nowrap behavior and visible nav */
  .nav-list { flex-wrap: nowrap; }

  /* Tablet: nav links size */
  .nav-link { font-size: var(--font-size-sm); }

  /* Dropdown on tablet */
  .nav-dropdown-menu { min-width: 210px; }

  /* Section spacing in tablet */
  .section { padding: 3rem 0; }
}

/* Desktop / 1280px and up */
@media (min-width: 1280px) {
  :root {
    --section-padding: 4rem 0;
  }

  .container { max-width: var(--container-max); padding: 0 2rem; }

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

  .site-header { position: sticky; top: 0; }

  /* Larger header content alignment */
  .site-header .container { padding: 0.75rem 2rem; }

  /* Desktop nav sizing */
  .nav-link { font-size: var(--font-size-sm); }

  .section { padding: 4rem 0; }
}