@import url('https://fonts.googleapis.com/css2?family=DM Sans:wght@400;500;700&display=swap');

:root {
  /* Radius & sizing */
  --radius: 12px;

  /* 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 weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold:   700;

  /* Color palette (EG333 – Dark luxury with gold/emerald accents) */
  /* Brand foundation (starting palette, adjusted for contrast) */
  --color-bg: #FFF8E7;                 /* vintage amber background ( LIGHT BG ) */
  --color-bg-alt: #F5E6CC;             /* secondary warm backdrop */
  --color-bg-card: #FFFFFF;             /* card surface (high contrast text) */
  --color-primary: #7B3A0A;             /* cognac */
  --color-accent: #B8880A;              /* gold */
  --color-secondary: #8A4A14;           /* deeper leather/burnished accent */
  --color-text: #1A1A1A;                /* default body text (light BG compliant) */
  --color-text-muted: #5A5A5A;          /* muted copy on light backgrounds */
  --color-text-on-primary: #FFFFFF;     /* text on dark primary */
  --color-border: #D3C3A0;                /* subtle borders */
  --color-shadow: rgba(123,58,10,0.25);  /* glow/shadow color for depth */

  /* Theme edges for hero behavior (ensured by contrast rules) */
  /* If hero bg is dark, hero text will be light via explicit rules below */
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'DM Sans', system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
}

/* CSS reset / base */
*, *::before, *::after { box-sizing: border-box; }

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

h1, h2, h3, h4 { margin: 0 0 0.5rem; color: inherit; font-weight: var(--font-weight-bold); }
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 { margin: 0 0 1rem; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Layout: container & sections */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  /* always centered across breakpoints as required */
}
.section { padding: 2rem 0; }
.section-title { font-size: var(--font-size-2xl); margin-bottom: 0.75rem; }

/* Utilities & helpers */
.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; }

/* Cards & grids */
.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 0 20px rgba(123,58,10,0.2); /* soft outer glow */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 28px rgba(123,58,10,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); /* mandatory rounding for top corners */
}
.card-content { padding: 1rem; color: var(--color-text); }

/* Card grid: auto-fill min 280px per card */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, rgba(123,58,10,0.95) 0%, rgba(0,0,0,0.65) 60%), var(--color-bg);
  color: #fff; /* hero text must contrast against dark hero bg */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  position: relative;
}
.hero-inner { text-align: center; max-width: 1100px; width: 100%; padding: 0 1rem; }
.hero h1 {
  font-size: var(--font-size-hero);
  line-height: 1.05;
  color: #fff;
}
.hero p { font-size: var(--font-size-md); color: #F8F5F0; opacity: 0.95; margin-top: 0.5rem; }

/* Hero extra variants (requested rule) */
.hero-inner--reverse { display:flex; align-items:center; gap:3rem; flex-direction: row-reverse; }
.hero-text { flex: 1 1 50%; }
.hero-media { flex: 1 1 45%; }
.hero-img { width: 100%; border-radius: var(--radius); object-fit: cover; max-height: 480px; display: block; }
.hero-badge { display: inline-block; background: var(--color-primary); color: var(--color-text-on-primary);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.9rem; border-radius: 999px; margin-bottom: 1rem; }

/* Nav & header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 64px; /* IMPORTANT: do not fix height, let content dictate */
  overflow: visible; /* allow logo to render without clipping */
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem; /* mobile padding as required */
  margin: 0 auto; /* CENTER content at all breakpoints */
}
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
  max-height: 52px;
  text-decoration: none;
}
.site-logo img {
  height: 44px;       /* mandatory height cap per spec */
  width: auto;
  max-width: 160px;     /* maintain aspect while preventing overflow */
  object-fit: contain;
  display: block;       /* mandatory for clean layout */
}
.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; /* HARD REQUIREMENT: 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%;
  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;
}
.nav-list {
  display: flex;
  flex-direction: column; /* mobile: vertical by default */
  gap: 0;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
}
.nav-item { width: 100%; }
.nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: var(--font-size-xs); /* mobile: smallest size per requirement */
  color: var(--color-text);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { text-decoration: none; background: withAlpha(var(--color-bg), 0.02); color: var(--color-text); }
@media (min-width: 768px) {
  /* Tablet/Desktop: horizontal nav, center the nav, keep links readable */
  .site-header .container {
    justify-content: flex-start; /* logo-left, nav-centered handling */
  }
  .nav-toggle-label { display: none; } /* hide hamburger on tablet+ */
  .site-nav { position: static; display: flex; flex: 1; background: transparent; border: none; box-shadow: none; }
  .nav-list {
    flex-direction: row !important; /* required: horizontal on tablet/desktop */
    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; }
}
@media (min-width: 768px) {
  /* Center nav horizontally within header when tablet+ */
  .site-nav { display: flex !important; justify-content: center; align-items: center; }
  .nav-list { justify-content: center; }
  /* Dropdown behavior always enabled for desktop */
}
@media (min-width: 1024px) {
  /* Desktop fine-tuning could live here if needed */
}

/* Dropdown navigation (CSS-only) */
.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,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) {
  /* Mobile: dropdown behaves as nested list under the toggle; indent under the toggle */
  .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 layout helpers (extra rules) */
.hero-inner--reverse { display:flex; align-items:center; gap:3rem; flex-direction: row-reverse; }
.hero-text { flex: 1 1 50%; }
.hero-media { flex: 1 1 45%; }
.hero-img { width: 100%; border-radius: var(--radius); object-fit: cover; max-height: 480px; display: block; }
.hero-badge { display: inline-block; background: var(--color-primary); color: var(--color-text-on-primary);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.9rem; border-radius: 999px; margin-bottom: 1rem; }

/* Sections and footer */
.site-footer {
  background: var(--color-bg-alt);
  padding: 2rem 0;
  color: var(--color-text);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
}
.faq-section { padding: 2rem 0; }

/* FAQ accordions (CSS-only) */
.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 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 */
label { display: block; font-size: var(--font-size-xs); margin-bottom: 0.25rem; color: var(--color-text); }
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(184,136,10,0.15);
}
button[type="submit"] { cursor: pointer; }

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

/* Helpers for accessibility & visibility */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Responsive rules (BASE mobile-first) */
@media (max-width: 767px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  .container { width: 100%; padding: 0 1rem; margin: 0 auto; }
  .site-header .container { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 1rem; }
  .site-logo img { height: 40px; width: auto; max-width: 140px; object-fit: contain; display: block; }
  .hero { padding: 3rem 1rem; }
  .hero-inner--reverse { flex-direction: column; }
  .hero-text { width: 100%; order: 1; }
  .hero-media { width: 100%; order: 2; }
  .hero-img { border-radius: var(--radius); max-height: 360px; }
  .nav-list { flex-direction: column; }
  .nav-link { font-size: var(--font-size-xs); padding: 0.75rem 1rem; }
  .site-nav { width: 100%; left: 0; top: 100%; }
  .card-grid { grid-template-columns: 1fr; }
  .section { padding: 2rem 0; }
  .hero h1 { font-size: var(--font-size-2xl); }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  table { display: block; overflow-x: auto; }
}
@media (min-width: 768px) {
  /* Tablet rules (logo-left, nav-centered) */
  .container { margin: 0 auto; } /* explicit centering kept */
  .site-header .container { justify-content: flex-start; }
  .site-nav { flex: 1; justify-content: center; display: flex; }
  .nav-list { justify-content: center; }
  .nav-link { font-size: var(--font-size-sm); }
  .hero { padding: 4rem 0; }
  .hero-inner { text-align: left; padding: 0; }
}
@media (min-width: 1024px) {
  .container { max-width: 1200px; padding: 0 2rem; }
  .hero { min-height: 70vh; }
  .hero h1 { font-size: var(--font-size-hero); }
  .section { padding: 4rem 0; }
}