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

:root {
  --color-primary: #4A1A00;
  --color-secondary: #C6A344;
  --color-accent: #707070;

  --color-bg: #FFFFF0;
  --color-bg-alt: #FFFCE9;
  --color-bg-card: #F5F2E8;

  --color-text: #1A0800;
  --color-text-muted: #6A4030;
  --color-text-on-primary: #FFFFFF;

  --color-border: #D6C6AA;
  --color-shadow: rgba(0, 0, 0, 0.25);

  --radius: 12px;
  --gap: 1.5rem;

  --font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

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

/* 3. RESET / BASE */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
html { -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-normal);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, video, iframe { max-width: 100%; height: auto; display: block; }

/* 4. TYPOGRAPHY */
h1, h2, h3, h4 { margin: 0 0 0.5rem; font-family: var(--font-family); color: var(--color-text); }
h1 { font-weight: 900; font-size: var(--font-size-hero); line-height: var(--line-height-tight); }
h2 { font-weight: 700; font-size: var(--font-size-2xl); }
h3 { font-weight: 700; font-size: var(--font-size-xl); }
h4 { font-weight: 700; font-size: var(--font-size-lg); }
p { margin: 0 0 1rem; color: var(--color-text); }
strong { font-weight: var(--font-weight-bold); }
em { font-style: italic; }

/* 5. LAYOUT UTILITIES / BASICS */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}
.section { padding: 4rem 0; }

/* 6. MUST-SYLE COMPONENTS (CORE) */

/* Header / Branding */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 64px;
  overflow: visible;
  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;
}
.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;
}
.site-logo a { text-decoration: none; }

/* Logo wrapper ensures logo does not overflow header */
.site-header .container { align-items: center; }

/* Hamburger Nav (CSS-only) */
.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; }

/* Nav list (base mobile) - must use this selector
   Important: keep as ".nav-list" for overrides in media queries. */
.nav-list {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-item { list-style: none; }

/* Nav links */
.nav-link {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  text-decoration: none;
  padding: 0.5rem 1rem;
  display: inline-block;
  position: relative;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--color-text); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 2px;
  width: 0;
  background: var(--color-primary);
  transition: width 0.2s ease;
}
.nav-link:hover::after { width: 100%; }

/* Dropdown navigation */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; white-space: nowrap; }

/* Dropdown panel */
.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); }

/* Mobile dropdown adjustments */
@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 { display: block; }
  .site-nav { width: 100%; }
  .nav-list { flex-direction: column; }
  .nav-link { padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border); }
  .nav-dropdown-menu { padding-left: 1rem; }
}
@media (min-width: 768px) {
  /* Tablet / Desktop nav behavior (HAMBURGER hidden, full nav visible) */
  .container {
    display: flex;
    justify-content: center;
    gap: 2rem;
  }
  .nav-toggle-label { display: none !important; }

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

  .nav-list { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; justify-content: center; gap: 1.5rem; padding: 0; margin: 0; align-items: center; }

  .nav-link { font-size: var(--font-size-sm); padding: 0.4rem 0.75rem; white-space: nowrap; }

  /* Section layout tweaks for tablet/desktop are handled in the media queries below */
}
@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; }
  /* Desktop section color alternation control */
  .section:nth-child(odd) { background: var(--color-bg); border-top: 0; }
  .section:nth-child(even) { background: var(--color-bg-card); border-top: 2px solid var(--color-primary); }
  .footer-inner { flex-direction: row; text-align: left; }
}

/* 7. HERO SPECIAL EXTRA (EXACTLY as requested) */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
  min-height: 50vh;
  background: linear-gradient(135deg, #4A1A00 0%, #1E0D00 60%), var(--color-bg);
  color: #FFFFFF; /* HERO ON DARK BG: enforce light text on hero since bg is dark */
  position: relative;
}
.hero-banner { width: 100%; overflow: hidden; max-height: 360px; }
.hero-banner-img { width: 100%; height: 360px; object-fit: cover; display: block; }
.hero-text-card {
  background: var(--color-bg-card);
  color: var(--color-text);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 700px;
  margin: -3.5rem auto 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.hero-cta { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.25rem; }

/* Responsive for hero text card on small screens */
@media (max-width: 767px) {
  .hero-text-card { margin-top: -1.5rem; padding: 1.5rem; }
}

/* 8. FORM ELEMENTS */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  font-family: inherit;
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(74,26,0,0.15);
}
label { display: block; font-weight: 500; margin-bottom: 0.25rem; }

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

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

/* 11. RESPONSIVE ADDITIONS (ensured across breakpoints) */
/* Base mobile-first adjustments are above. The tablet/desktop refinements live in the media queries already declared. */

/* 12. DUTY CHECK: ALTERNATING SECTIONS (odd/even) FOR LIGHT BG SITE */
/* Odd sections use --color-bg; Even sections use --color-bg-card with a 2px top border in --color-primary. This is enforced in the min-width:1024px block above. On mobile/tablet, ensure the same rhythm is preserved by the same nth-child rules where applicable. */