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

:root {
  /* COLOR PALLETES & TYPOGRAPHY */
  --color-bg: #FAFAF8;
  --color-bg-alt: #F0ECE5;
  --color-bg-card: #FFFFFF;

  --color-text: #1A1205;
  --color-text-muted: #6B5B35;
  --color-text-on-primary: #1A1A1A;

  --color-border: #D6CEC0;
  --color-shadow: 0 4px 12px rgba(0,0,0,0.25);

  --color-primary: #9A6F00;
  --color-secondary: #C08600;
  --color-accent: #C19A60;

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

  --radius: 4px;
  --gap: 1rem;
}

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

html, body {
  height: 100%;
}

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

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

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

ul, ol { margin: 0; padding: 0; list-style: none; }

/* LAYOUT: CONTAINER & SECTIONS */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  /* max-width controlled at breakpoints below to satisfy mobile/desktop density */
}

.section {
  padding: 2rem 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: var(--font-size-2xl);
  margin: 0 0 0.75rem;
  color: var(--color-text);
}

/* TYPOGRAPHY RULES (heading/body/link) */
h1, h2, h3, h4 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: var(--color-text);
}

h1 { font-size: var(--font-size-3xl); line-height: var(--line-height-tight); margin: 0 0 0.5rem; }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }

p { font-size: var(--font-size-base); color: var(--color-text); margin: 0 0 1rem; }

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

.btn, .btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  color: var(--color-text);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn:hover, .btn:focus { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

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

/* CARD GRID & CARDS (MANDATORY) */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-card);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  color: var(--color-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.12); }

.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 1.25rem; }

.card > :not(img) { padding: 1rem 1.25rem; }

.card h3, .card h4 { margin-top: 0; margin-bottom: 0.5rem; }

.card p { margin: 0; line-height: var(--line-height-base); color: var(--color-text-muted); }

/* HERO (DARK BRAND-INSPIRED BACKDROP) */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  min-height: 50vh;
  padding: 2rem 1rem;
  /* DARK gradient to satisfy hero text rule */
  background: linear-gradient(135deg, #0b0b0b 0%, #1a1a1a 60%, #141414 100%);
  color: #FFFFFF;
}
.hero-ticker { overflow: hidden; background: var(--color-primary); padding: 0.5rem 0; width: 100%; }
.hero-ticker-inner {
  display: inline-block;
  white-space: nowrap;
  color: var(--color-text-on-primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  animation: ticker-scroll 28s linear infinite;
  padding-left: 100%;
}
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hero-content { text-align: center; padding-top: 2.5rem; }
.hero-media { max-width: 680px; margin: 1.5rem auto; }
.hero-img { width: 100%; border-radius: var(--radius); object-fit: cover; display: block; }
.hero-cta { justify-content: center; display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* NAV & HEADER (HAMBURGER NAV TAILORED) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 64px;
  width: 100%;
  background: var(--color-bg);
  overflow: visible;
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  width: 100%;
  margin: 0 auto;
  /* responsive max-widths are handled in media queries */
}
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
  max-height: 52px;
  text-decoration: none;
}
.site-logo img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}
.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;
  border-radius: 2px;
  transition: 0.2s ease;
}

.site-nav {
  display: none;
  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 {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
}
.nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  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; display: inline-block; padding: 0.75rem 1rem; }

.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 (min-width: 768px) {
  /* Tablet rules: logo-left, nav-centered */
  .site-header .container { justify-content: flex-start; }
  .site-nav { flex: 1; display: flex; justify-content: center; align-items: center; }
  .nav-list { justify-content: center; }
  .nav-toggle-label { display: none !important; }
}
@media (min-width: 768px) {
  /* Tablet+ open horizontal nav */
  .site-nav { display: flex; align-items: center; position: static; background: transparent; border-top: none; box-shadow: none; }
  .nav-list { flex-direction: row !important; flex-wrap: nowrap; 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: 1024px) {
  /* Desktop extra tweaks */
  .container { max-width: 1260px; padding: 0 2rem; }
  .hero { min-height: 70vh; }
  .hero h1 { font-size: var(--font-size-hero); }
  .section { padding: 4rem 0; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .footer-inner { display: flex; flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 1280px) {
  /* Extra wide polish (optional fine-tune if needed) */
  .container { padding: 0 2.5rem; }
}

/* HERO LAYOUT ADDITIONS (EXACT EXTRA RULES) */
.hero-ticker { overflow: hidden; background: var(--color-primary); padding: 0.5rem 0; }
.hero-ticker-inner { display: inline-block; white-space: nowrap; color: var(--color-text-on-primary); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; animation: ticker-scroll 28s linear infinite; padding-left: 100%; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hero-content { text-align: center; padding-top: 2.5rem; }
.hero-media { max-width: 680px; margin: 1.5rem auto; }
.hero-img { width: 100%; border-radius: var(--radius); object-fit: cover; display: block; }
.hero-cta { justify-content: center; display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* RESPONSIVE BASELINE (MOBILE-FIRST) */
html, body, #root { overflow-x: hidden; max-width: 100%; }
img, video, iframe { max-width: 100%; height: auto; display: block; }
*, *::before, *::after { box-sizing: border-box; }

/* MOBILE SPECIFIC DEFAULTS (<= 767px) */
@media (max-width: 767px) {
  .container { padding: 0 1rem; }
  .site-header .container { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 1rem; }
  .site-nav { display: none; 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); }
  .nav-list { flex-direction: column; padding: 0.5rem 0; }
  .nav-link { padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border); font-size: var(--font-size-xs); }
  .nav-dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 1rem; }
  .hero { padding: 2.5rem 1rem; min-height: 50vh; }
  .hero h1 { font-size: var(--font-size-2xl); }
  .card-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .hero-ticker { display: block; }
  .site-logo img { height: 40px; width: auto; max-width: 140px; object-fit: contain; }
  /* Ensure logo-left + nav-centering behavior on small screens remains intact via desktop rules later */
}
@media (min-width: 768px) {
  /* Tablet specifics: hamburger hidden, nav centered, content balanced */
  .site-header .container { justify-content: flex-start; }
  .site-nav { flex: 1; display: flex; justify-content: center; align-items: center; }
  .nav-list { justify-content: center; }
}
@media (min-width: 1024px) {
  /* Desktop specifics: content density and spacing tuned */
  .container { max-width: 1260px; padding: 0 2rem; }
  .hero h1 { font-size: var(--font-size-hero); }
  .section { padding: 4rem 0; }
}