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

:root {
  /* 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 (bd1111 variant: warm amber, cognac, gold) */
  --color-bg: #FFF8E7;           /* light warm ivory */
  --color-bg-alt: #FDEFD8;        /* subtle warm alternate */
  --color-bg-card: #FFFFFF;       /* high-contrast card surface */
  --color-primary: #7B3A0A;        /* cognac brand color (dark) */
  --color-secondary: #B8880A;      /* gold accent */
  --color-accent: #D4A537;         /* additional gold tone */
  --color-text: #1A1A1A;            /* body text on light bg */
  --color-text-muted: #5A5A5A;      /* muted text on light bg */
  --color-text-on-primary: #FFFFFF;  /* text on dark primary button */
  --color-border: #D6C3A6;
  --color-shadow: rgba(0,0,0,0.25);

  /* BORDERS / RADIUS */
  --radius: 4px;

  /* SPACING / SHADOWS */
  --shadow-soft: 0 2px 8px rgba(0,0,0,.12);
  --shadow-card: 0 4px 14px rgba(0,0,0,.15);
  --shadow-strong: 0 6px 22px rgba(0,0,0,.25);
}

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

html, body {
  margin: 0;
  padding: 0;
  height: auto;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family-body, "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  line-height: var(--line-height-base);
  font-size: var(--font-size-base);
}

html, body {
  max-width: 100%;
}

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

.container {
  width: 100%;
  margin: 0 auto; /* MUST be centered at all breakpoints */
  padding: 0 1rem;
  box-sizing: border-box;
}

.section {
  padding: 2rem 0;
}

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

.hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, rgba(123,58,10,.85), rgba(123,58,10,.95)), var(--color-bg);
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 50vh;
  box-shadow: inset 0 0 0 rgba(0,0,0,0);
}
.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:.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; }

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--color-bg);
  min-height: 64px;
  overflow: visible;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  justify-content: space-between; /* mobile: logo-left, nav-right; tablet/desktop overridden in media queries */
  width: 100%;
  margin: 0 auto;
}
.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;
  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,.45);
  border: 1.5px solid rgba(255,255,255,.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;
  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,.18);
  z-index: 500;
}
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
}
.nav-item { }
.nav-link {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  padding: 0.75rem 1rem;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
.nav-link:hover {
  color: var(--color-accent);
  text-decoration: none;
}
.nav-link:focus { outline: none; }

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

.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; 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,.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) {
  /* NAV LAYOUT: logo-left, nav-right on tablet+ */
  .container { max-width: 960px; padding: 0 1.5rem; margin: 0 auto; }
  .site-header .container {
    justify-content: space-between;
  }

  /* Hamburger hidden on tablet+; nav visible */
  .nav-toggle-label { display: none !important; }
  .nav-toggle-input { display: none; } /* keep in DOM but irrelevant */

  .site-nav {
    display: flex;
    align-items: center;
    position: static;
    background: transparent;
    border-top: none;
    box-shadow: none;
  }
  .nav-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    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 { margin-left: auto; justify-content: flex-end; }
  .nav-dropdown-menu { min-width: 210px; }

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

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

  .footer-inner { display: flex; justify-content: space-between; align-items: center; }
  .container { margin: 0 auto; }
  .nav-dropdown-menu { padding-left: 0; }

  /* HERO LAYOUT: override hero text color for dark gradient if needed */
  .hero { color: #fff; }
}

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

/* Fallbacks for mobile baseline to ensure content never overflows on 375px */

@media (max-width: 767px) {
  .hero { padding: 2rem 1rem; }
  .hero-ticker { display:block; }
  .nav-dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 1rem; }
  .nav-list { flex-direction: column; }
  .nav-link { padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border); }
  .section { padding: 2rem 0; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-inner { text-align: center; flex-direction: column; gap: 0.5rem; }
  .hero-content { padding-top: 1.5rem; }
  .hero-cta { justify-content: center; }
}

/* CARD SYSTEM */
.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}
.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-content { padding: 1rem; }
.card h3 {
  font-family: "Playfair Display", serif;
  font-size: var(--font-size-lg);
  margin: 0.25rem 0 0.5rem;
  color: var(--color-text);
}
.card p { margin: 0; color: var(--color-text-muted); }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  font-family: "Lato", sans-serif;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.btn:hover { filter: brightness(0.95); transform: translateY(-1px); }
.btn-primary { background: var(--color-primary); color: var(--color-text-on-primary); border-color: rgba(0,0,0,.15); }
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn:focus { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* FOOTER */
.site-footer {
  background: var(--color-bg-alt);
  padding: 2rem 0;
  color: var(--color-text);
}
.footer-inner {
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 1rem;
}
@media (max-width: 767px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* FORMS (inputs, textarea, select, label, button[type=submit]) */
input,
textarea,
select {
  font-family: inherit;
  font-size: var(--font-size-base);
  padding: .6rem .8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  background: #fff;
}
label { display: block; font-size: var(--font-size-xs); margin-bottom: .25rem; color: var(--color-text-muted); }

/* TABLES */
table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}
th, td {
  padding: .6rem;
  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: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.hidden { display: none; }

/* INTERACTION + ACCESSIBILITY */
a, button, [role="button"] { cursor: pointer; transition: color 0.2s ease, background 0.2s ease; }
a:hover, button:hover { text-decoration: none; }

/* END OF STYLES */