/* =====================================================
   BIXENMAN FAMILY FARM - WESTERN KANSAS
   Est. by Mary & John Bixenman
   "Rooted in the Prairie, Growing for Generations"
   ===================================================== */

/* ========================================
   DESIGN TOKENS - Heritage Edition
   ======================================== */

:root {
  /* Brand Colors (Steiger & Farm Palette) */
  --steiger-green: #4A7C3F;
  --steiger-green-dark: #3A6232;
  --ih-red: #B91C1C;
  --wheat-gold: #F5C542;
  --wheat-gold-light: #FCE588;
  --prairie-tan: #C4A35A;

  /* Neutrals - Warm Farmhouse Tones */
  --dusty-white: #F7F4F0;
  --cream: #FDF8F3;
  --parchment: #F5EFE6;
  --slate: #3B4252;
  --charcoal: #2E3440;
  --barn-wood: #5D4E37;

  /* Cab/Interior Colors */
  --leather-tan: #8B5E3C;
  --gauge-green: #2B5233;
  --amber-caution: #EAB308;

  /* Heritage Accents */
  --worn-chrome: #A0A0A0;
  --faded-decal-red: #D44D4D;
  --rust: #8B4513;
  --aged-brass: #B5A642;

  /* Quiet Heritage Theme (Default) */
  --bg-primary: var(--cream);
  --bg-secondary: var(--parchment);
  --bg-accent: var(--dusty-white);
  --text-primary: var(--barn-wood);
  --text-secondary: #6B5D4D;
  --text-heading: var(--slate);
  --accent: var(--wheat-gold);
  --accent-hover: #D9AC35;
  --border-color: #E0D6C8;
  --border-dark: #C4B8A5;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-heading: 'Merriweather', Georgia, serif;
  --font-body: 'Open Sans', system-ui, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows - Soft, warm shadows */
  --shadow-sm: 0 2px 4px rgba(93, 78, 55, 0.08);
  --shadow-md: 0 4px 16px rgba(93, 78, 55, 0.1);
  --shadow-lg: 0 8px 32px rgba(93, 78, 55, 0.12);
  --shadow-xl: 0 16px 48px rgba(93, 78, 55, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
}

/* ========================================
   DARK MODE (Night Cab Theme)
   ======================================== */

[data-theme="dark"] {
  --bg-primary: #1a1d23;
  --bg-secondary: #252a33;
  --bg-accent: #2d333d;
  --text-primary: var(--dusty-white);
  --text-secondary: #B8B0A5;
  --text-heading: var(--dusty-white);
  --accent: var(--amber-caution);
  --accent-hover: #D19F07;
  --border-color: #3d4452;
  --border-dark: #4d5462;
}

/* ========================================
   BASE RESET & TYPOGRAPHY
   ======================================== */

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

::selection {
  background-color: var(--wheat-gold);
  color: var(--barn-wood);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--text-heading);
}

h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  position: relative;
}

h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

a {
  color: var(--steiger-green);
  text-decoration: none;
  transition: color var(--transition-fast);
}

[data-theme="dark"] a {
  color: var(--amber-caution);
}

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

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

/* ========================================
   DECORATIVE ELEMENTS
   ======================================== */

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.section-divider::before,
.section-divider::after {
  content: '';
  height: 1px;
  width: 100px;
  background: linear-gradient(90deg, transparent, var(--border-dark), transparent);
}

.section-divider .divider-icon {
  color: var(--wheat-gold);
  font-size: 1.5rem;
}

.wheat-decoration {
  display: inline-block;
  color: var(--wheat-gold);
  margin: 0 var(--space-sm);
}

.vintage-frame {
  position: relative;
  padding: var(--space-xl);
  border: 2px solid var(--border-dark);
  background-color: var(--bg-accent);
}

.vintage-frame::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--border-color);
  pointer-events: none;
}

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

/* ========================================
   LAYOUT CONTAINERS
   ======================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-wide {
  max-width: 1400px;
}

.container-narrow {
  max-width: 800px;
}

.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-secondary);
}

.section-dark {
  background-color: var(--charcoal);
  color: var(--dusty-white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--dusty-white);
}

.section-dark p {
  color: #B0B5BD;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.logo-mark {
  position: relative;
  width: 52px;
  height: 52px;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1;
}

.logo-tagline {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav-link {
  color: var(--text-primary);
  font-weight: 500;
  padding: var(--space-sm) 0;
  position: relative;
  font-size: 0.95rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--wheat-gold);
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--text-heading);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.mobile-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
  border-radius: 1px;
}

/* Theme Toggle */
.theme-toggle {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.theme-toggle:hover {
  border-color: var(--wheat-gold);
  background-color: var(--bg-accent);
}

/* ========================================
   HERO SECTION - Epic Farmhouse Style
   ======================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--steiger-green) 0%, var(--gauge-green) 50%, var(--steiger-green-dark) 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(245, 197, 66, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding-top: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 50px;
  margin-bottom: var(--space-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge span {
  color: var(--dusty-white);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.hero-section h1 {
  color: var(--dusty-white);
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-accent {
  color: var(--wheat-gold);
  display: block;
}

.hero-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: var(--space-2xl);
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.hero-illustration {
  position: absolute;
  right: -5%;
  bottom: -10%;
  width: 50%;
  max-width: 600px;
  opacity: 0.15;
  z-index: 1;
}

.hero-illustration img {
  width: 100%;
  filter: brightness(0) invert(1);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-2xl);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--wheat-gold);
  color: var(--barn-wood);
  border-color: var(--wheat-gold);
}

.btn-primary:hover {
  background-color: var(--wheat-gold-light);
  border-color: var(--wheat-gold-light);
  color: var(--barn-wood);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(245, 197, 66, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--dusty-white);
  border-color: var(--dusty-white);
}

.btn-secondary:hover {
  background-color: var(--dusty-white);
  color: var(--steiger-green);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-heading);
  border-color: var(--border-dark);
}

.btn-outline:hover {
  border-color: var(--wheat-gold);
  background-color: var(--wheat-gold);
  color: var(--barn-wood);
}

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: 1.1rem;
}

/* ========================================
   CARDS - Vintage Style
   ======================================== */

.card {
  background-color: var(--bg-accent);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-normal);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--steiger-green), var(--wheat-gold));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px);
  border-color: var(--wheat-gold);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 72px;
  height: 72px;
  margin-bottom: var(--space-lg);
  position: relative;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: sepia(20%) saturate(80%);
  transition: filter var(--transition-normal);
}

.card:hover .card-icon img {
  filter: sepia(0%) saturate(100%);
}

.card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.35rem;
}

.card p {
  margin-bottom: 0;
  line-height: 1.7;
}

/* ========================================
   FEATURES GRID
   ======================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   HERITAGE SECTION - Vintage Layout
   ======================================== */

.heritage-section {
  background-color: var(--bg-secondary);
  position: relative;
}

.heritage-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.heritage-image-frame {
  position: relative;
  padding: var(--space-lg);
  background-color: var(--bg-accent);
  border: 3px solid var(--border-dark);
  box-shadow: var(--shadow-lg);
}

.heritage-image-frame::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid var(--border-color);
  pointer-events: none;
}

.heritage-image-inner {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--steiger-green) 0%, var(--gauge-green) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.heritage-image-inner img {
  width: 60%;
  opacity: 0.9;
  filter: brightness(0) invert(1);
}

.heritage-text h2 {
  position: relative;
  display: inline-block;
}

.heritage-text h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--wheat-gold), transparent);
}

/* Timeline - Enhanced */
.timeline {
  margin-top: var(--space-2xl);
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--wheat-gold), var(--steiger-green));
}

.timeline-item {
  display: flex;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  position: relative;
}

.timeline-dot {
  width: 32px;
  height: 32px;
  background-color: var(--bg-primary);
  border: 3px solid var(--wheat-gold);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--wheat-gold);
  z-index: 1;
}

.timeline-content {
  padding-top: 4px;
}

.timeline-content h4 {
  color: var(--steiger-green);
  margin-bottom: var(--space-xs);
  font-size: 1.1rem;
}

[data-theme="dark"] .timeline-content h4 {
  color: var(--amber-caution);
}

.timeline-content p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ========================================
   STATS SECTION - Farmhouse Counter Style
   ======================================== */

.stats-section {
  background: linear-gradient(135deg, var(--charcoal) 0%, #1a1d23 100%);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.stat-item {
  padding: var(--space-2xl);
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2), transparent);
}

.stat-item:last-child::after {
  display: none;
}

.stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-lg);
  opacity: 0.9;
}

.stat-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1) sepia(100%) saturate(300%) hue-rotate(5deg);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--wheat-gold);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ========================================
   GALLERY - Masonry Style
   ======================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-normal);
}

.gallery-item:hover {
  border-color: var(--wheat-gold);
  transform: scale(1.02);
}

.gallery-item img,
.gallery-item-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img,
.gallery-item:hover .gallery-item-bg {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(46, 52, 64, 0.95) 0%, rgba(46, 52, 64, 0.4) 40%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-xl);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: var(--dusty-white);
  font-weight: 600;
  font-size: 1.1rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact-form {
  background-color: var(--bg-accent);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  color: var(--text-heading);
  font-size: 0.95rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--wheat-gold);
  box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.2);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-info h3 {
  margin-bottom: var(--space-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--wheat-gold);
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: sepia(30%);
}

.contact-details h4 {
  margin-bottom: var(--space-xs);
  font-size: 1rem;
}

.contact-details p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ========================================
   FOOTER - Heritage Style
   ======================================== */

.footer {
  background-color: var(--charcoal);
  color: var(--dusty-white);
  padding: var(--space-4xl) 0 var(--space-xl);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--steiger-green), var(--wheat-gold), var(--steiger-green));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand .logo-name {
  color: var(--dusty-white);
}

.footer-brand p {
  color: #9BA3AF;
  margin-top: var(--space-lg);
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-animals {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.footer-animals img {
  width: 32px;
  height: 32px;
  opacity: 0.6;
  filter: brightness(0) invert(1);
  transition: opacity var(--transition-fast);
}

.footer-animals img:hover {
  opacity: 1;
}

.footer h4 {
  color: var(--wheat-gold);
  margin-bottom: var(--space-lg);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-family: var(--font-body);
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: #9BA3AF;
  transition: all var(--transition-fast);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--wheat-gold);
  padding-left: var(--space-sm);
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: #6B7280;
  margin: 0;
  font-size: 0.9rem;
}

.footer-crest {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.footer-crest img {
  width: 40px;
  height: 40px;
  opacity: 0.5;
  filter: brightness(0) invert(1);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }
.mb-5 { margin-bottom: var(--space-2xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }
.mt-5 { margin-top: var(--space-2xl); }

.hidden { display: none; }

/* Focus states */
*:focus-visible {
  outline: 3px solid var(--wheat-gold);
  outline-offset: 2px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }

  .hero-section h1 {
    font-size: 3rem;
  }

  .heritage-content {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .hero-section {
    min-height: auto;
    padding: calc(80px + var(--space-3xl)) 0 var(--space-3xl);
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-illustration {
    display: none;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    flex-direction: column;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.mobile-open {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-color);
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.7s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   SPECIAL PAGE STYLES
   ======================================== */

.page-hero {
  background: linear-gradient(135deg, var(--steiger-green) 0%, var(--gauge-green) 100%);
  color: var(--dusty-white);
  padding: calc(80px + var(--space-3xl)) 0 var(--space-3xl);
  text-align: center;
  position: relative;
}

.page-hero h1 {
  color: var(--dusty-white);
  margin-bottom: var(--space-md);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.15rem;
}

/* Founders tribute badge */
.founders-tribute {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  background-color: var(--bg-secondary);
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  margin-top: var(--space-2xl);
}

.founders-tribute img {
  width: 40px;
  height: 40px;
  filter: sepia(30%);
}

.founders-tribute-text {
  text-align: left;
}

.founders-tribute-text strong {
  display: block;
  color: var(--text-heading);
  font-family: var(--font-display);
}

.founders-tribute-text span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
