:root {
  /* Color Palette */
  --color-base: #F5F5DC; /* Oatmeal */
  --color-secondary: #8A9A5B; /* Muted Sage */
  --color-accent: #CC7722; /* Burnt Terracotta */
  --color-text: #2D2D2A;
  --color-text-light: #5A5A50;
  --color-glass: rgba(255, 255, 255, 0.4);
  --color-glass-border: rgba(255, 255, 255, 0.6);
  
  /* Typography */
  --font-serif: 'Lora', serif;
  --font-sans: 'Inter', sans-serif;
  
  /* Spacing & Borders */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 48px;
  
  /* Transitions */
  --transition-smooth: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Global Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden }

body {
  background-color: var(--color-base);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

/* Grain Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  opacity: 0.03; pointer-events: none; z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; margin-bottom: var(--space-sm); }
p { margin-bottom: var(--space-sm); color: var(--color-text-light); }
a { text-decoration: none; color: inherit; transition: var(--transition-smooth); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; object-fit: cover; border-radius: var(--radius-sm); }

/* Centering Utility */
.center-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  text-align: center;
}

/* Header & Nav */
.site-header {
  position: relative;
  width: 100%;
  z-index: 1000;
  padding: var(--space-md) 0;
  background-color: transparent;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  z-index: 1002;
}

.nav-links {
  display: flex;
  gap: var(--space-md);
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
}

.nav-links a:hover { color: var(--color-accent); }

/* Burger Menu - Always in Header */
.burger-btn {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
}

.burger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  transition: var(--transition-smooth);
}

/* Nav Overlay */
.nav-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  background-color: var(--color-base);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 1001;
}

.nav-overlay.active { opacity: 1; visibility: visible; }

.nav-overlay ul { text-align: center; }
.nav-overlay a { font-family: var(--font-serif); font-size: 2.5rem; color: var(--color-text); }

/* Banner - Image UNDER text background */
.full-banner {
  width: 100vw;
  min-height: 80vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-left: calc(-50vw + 50%);
  background-color: var(--color-secondary);
}

.banner-image-wrap {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
}

.banner-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-lg);
  max-width: 800px;
  background: rgba(245, 245, 220, 0.85);
  backdrop-filter: blur(5px);
  border-radius: var(--radius-md);
  margin: var(--space-md);
}

.banner-content h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }

/* Sections & Grids */
.content-section { padding: var(--space-xl) 0; }

.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.card-item {
  background: var(--color-glass);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-glass-border);
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-item img {
  width: 100%;
  height: 200px;
  margin-bottom: var(--space-sm);
}

.card-item:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.03); }

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--color-accent);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
}

/* Legal Pages */
.legal-content {
  max-width: 800px;
  margin: var(--space-xl) auto;
  padding: 0 var(--space-md);
  text-align: left;
}

.legal-content h1 { text-align: center; margin-bottom: var(--space-lg); }
.legal-content img { display: none !important; } /* Strict rule: no images in legal */

/* Footer */
.site-footer {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-secondary);
  background-color: #fff;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.footer-nav a { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* Responsive Visibility */
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .burger-btn { display: flex; }
}

@media (min-width: 1024px) {
  .burger-btn { display: none !important; }
  .nav-overlay.active { opacity: 0; visibility: hidden; }
}

@media (max-width: 768px) {
  .full-banner { min-height: 60vh; }
  .grid-layout { grid-template-columns: 1fr; }
}
