/* ==========================================================================
   01. Base Styles
   ========================================================================== */
html {
  font-size: 100%; /* 16px */
   font-size: 16px;
  }
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
  background-color: #666;
  color: #f2f2f2;
  line-height: 1.6;
}

/* ==========================================================================
   02. Header Layout
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: #2e2e2e;
  height: 100px;
  display: flex;
  align-items: center;
  transition: height 0.3s ease, background-color 0.3s ease;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   03. Logo
   ========================================================================== */
.logo {
  height: 60px;
  transition: height 0.3s ease;
}
.site-header.scrolled .logo {
  height: 45px;
}

/* ==========================================================================
   04. Header Scroll Shrink
   ========================================================================== */
.site-header.scrolled {
  background-color: rgba(46, 46, 46, 0.9);
  backdrop-filter: blur(4px);
}
@media (min-width: 768px) {
  .site-header.scrolled {
    height: 80px;
  }
}

/* ==========================================================================
   05. Main Navigation (Desktop)
   ========================================================================== */
.main-nav {
  display: flex;
}
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
}
.main-nav li {
  display: flex;
  align-items: center;
}
.main-nav a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}
.main-nav a:hover {
  color: #81af3b;
}

/* ==========================================================================
   06. Mobile Overrides
   ========================================================================== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.menu-toggle.hidden {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 767px) {
  .menu-toggle {
    display: block;
  }
  .main-nav {
    display: none !important;
  }
  .site-header {
    height: 60px;
  }
  .site-header.scrolled {
    height: 60px;
  }
  .logo {
    height: 40px;
  }
  .site-header.scrolled .logo {
    height: 40px;
  }
}

/* ==========================================================================
   07. Fullscreen Mobile Navigation
   ========================================================================== */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: #2e2e2e;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.mobile-nav-overlay.open {
  transform: translateX(0%);
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}
.mobile-nav li {
  margin: 1rem 0;
}
.mobile-nav a {
  color: white;
  font-size: 1.5rem;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s ease;
}
.mobile-nav a:hover {
  color: #81af3b;
}

/* ==========================================================================
   08. Close Button
   ========================================================================== */
.close-nav {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: none;
  border: none;
  color: white;
  font-size: 2.25rem;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  padding: 0;
}
.close-nav:hover {
  color: #81af3b;
}

/* ==========================================================================
   09. Typography (Scoped to Main Content)
   ========================================================================== */
main {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

main h1, main h2, main h3, main h4 {
  font-family: 'Lora', serif;
  margin-top: 0;
  line-height: 1.2;
}

main h1 {
  font-size: 2.5rem; /* 40px */
}

main h2 {
  font-size: 2rem; /* 32px */
}

main h3 {
  font-size: 1.5rem; /* 24px */
}
main h4 {
  font-size: 1.5rem; /* 24px */
}

main p,
main li {
  font-size: 1rem;
  margin-bottom: 1rem;
}

main .small {
  font-size: 0.875rem;
}

