/* =================================================================
   Modern Responsive CSS for Barber Park, Boise - Idaho River Recreation
   Idaho-inspired design with mobile-first approach
   ================================================================= */

/* ===== CSS VARIABLES - Idaho Colors & River Theme ===== */
:root {
  /* Idaho Flag & Nature Colors */
  --idaho-blue: #4A89DC;
  --idaho-dark-blue: #2C5AA0;
  --idaho-gold: #F6C64F;
  --idaho-deep-gold: #E6B846;
  
  /* River & Nature Palette */
  --river-blue: #5DADE2;
  --forest-green: #52C41A;
  --sage-green: #7FB069;
  --earth-brown: #8B6F47;
  --stone-gray: #566573;
  
  /* Extended Palette */
  --primary-blue: var(--idaho-blue);
  --accent-gold: var(--idaho-gold);
  --text-dark: #2C3E50;
  --text-light: #6C757D;
  --white: #FFFFFF;
  --background-light: #F8F9FA;
  --background-river: #EBF8FF;
  --border-light: #E9ECEF;
  
  /* Typography */
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-secondary: Georgia, 'Times New Roman', serif;
  
  /* Spacing */
  --container-max-width: 1200px;
  --mobile-padding: 1.5rem;
  --section-padding: 2rem 0;
  --border-radius: 8px;
  
  /* Shadows */
  --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-medium: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-strong: 0 8px 16px rgba(0,0,0,0.2);
}

/* ===== RESET & BASE STYLES ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== LAYOUT STRUCTURE ===== */
.site-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  flex: 1;
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--mobile-padding);
}

/* ===== HEADER & HERO SECTION ===== */
.site-header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--idaho-dark-blue) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-section {
  background-image: url('images/5164583156_9bfb530419_o.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
}

/* Mild overlay for better text contrast */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg, 
    rgba(76, 137, 220, 0.2) 0%, 
    rgba(44, 90, 160, 0.3) 100%
  );
  /* Mild desaturation filter */
  backdrop-filter: saturate(0.8);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: var(--section-padding);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  /* Background behind text for readability */
  background: rgba(44, 90, 160, 0.85);
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
  border: 2px solid rgba(246, 198, 79, 0.3);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 300;
  margin-bottom: 2rem;
  background: rgba(44, 90, 160, 0.75);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  backdrop-filter: blur(5px);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
  color: #ffffff;
  border: 1px solid rgba(246, 198, 79, 0.2);
}

/* ===== NAVIGATION ===== */
.main-navigation {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-light);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--mobile-padding);
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.site-logo:hover {
  color: var(--idaho-dark-blue);
}

/* Desktop Navigation - Hidden on Mobile */
.nav-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  display: inline-block;
  margin-left: 2rem;
}

.nav-menu a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--primary-blue);
  border-bottom-color: var(--accent-gold);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  /* Ensure adequate padding from top-right edge */
  margin-top: 1rem;
  margin-right: 1rem;
}

.mobile-menu-toggle:hover {
  background-color: var(--background-light);
  color: var(--primary-blue);
}

/* Mobile Menu Overlay - Sliding Panel */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background: var(--white);
  box-shadow: var(--shadow-strong);
  z-index: 9999;
  transition: left 0.3s ease;
  overflow-y: auto;
}

.mobile-menu-overlay.active {
  left: 0;
}

.mobile-menu-header {
  padding: 1.5rem;
  background: var(--primary-blue);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-nav-menu {
  list-style: none;
  padding: 1rem 0;
}

.mobile-nav-menu li {
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav-menu a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.mobile-nav-menu a:hover {
  background-color: var(--background-river);
  color: var(--primary-blue);
  padding-left: 2rem;
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  padding: var(--section-padding);
  flex: 1;
}

.content-section {
  margin-bottom: 3rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  border-bottom: 3px solid var(--accent-gold);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: var(--idaho-dark-blue);
}

h4 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
}

p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Links */
a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--idaho-dark-blue);
  text-decoration: underline;
}

/* Lists */
ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
}

/* ===== SEMANTIC CALLOUT BOXES ===== */
.callout-box {
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  position: relative;
}

.callout-box h3, .callout-box h4 {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Info Callouts */
.callout-info {
  background: linear-gradient(135deg, var(--background-river) 0%, #F0F8FF 100%);
  border-left: 4px solid var(--primary-blue);
}

.callout-info h3, .callout-info h4 {
  color: var(--primary-blue);
}

/* Tip Callouts */
.callout-tip {
  background: linear-gradient(135deg, #F0FFF0 0%, #E8F8E8 100%);
  border-left: 4px solid var(--forest-green);
}

.callout-tip h3, .callout-tip h4 {
  color: var(--forest-green);
}

/* Warning Callouts */
.callout-warning {
  background: linear-gradient(135deg, #FFF8E1 0%, #FFFBF0 100%);
  border-left: 4px solid var(--accent-gold);
}

.callout-warning h3, .callout-warning h4 {
  color: var(--earth-brown);
}

/* Fact Callouts */
.callout-fact {
  background: linear-gradient(135deg, #F3E5F5 0%, #F8F0FA 100%);
  border-left: 4px solid var(--sage-green);
}

.callout-fact h3, .callout-fact h4 {
  color: var(--sage-green);
}

/* Success/Adventure Callouts */
.callout-adventure {
  background: linear-gradient(135deg, #E8F5E8 0%, #F0FFF0 100%);
  border-left: 4px solid var(--forest-green);
}

.callout-adventure h3, .callout-adventure h4 {
  color: var(--forest-green);
}

/* River/Outdoor Callouts */
.callout-river {
  background: linear-gradient(135deg, var(--background-river) 0%, #E3F2FD 100%);
  border-left: 4px solid var(--river-blue);
}

.callout-river h3, .callout-river h4 {
  color: var(--river-blue);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 2rem 0 1rem;
  margin-top: auto;
}

.footer-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--mobile-padding);
  text-align: center;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 1rem;
}

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

/* Mobile Content Spacing */
@media (max-width: 767px) {
  .main-content {
    padding-left: var(--mobile-padding);
    padding-right: var(--mobile-padding);
  }
  
  /* Images can extend to screen edge on mobile */
  .hero-section {
    margin-left: calc(-1 * var(--mobile-padding));
    margin-right: calc(-1 * var(--mobile-padding));
  }
  
  .callout-box {
    padding: 1rem;
    margin: 1.5rem 0;
  }
}

/* Tablet */
@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
  
  .nav-menu {
    display: flex;
  }
  
  .content-wrapper {
    padding: 0 2rem;
  }
  
  .callout-box {
    padding: 2rem;
  }
  
  .hero-section {
    min-height: 75vh;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  :root {
    --mobile-padding: 3rem;
  }
  
  .hero-section {
    min-height: 80vh;
  }
  
  .content-wrapper {
    padding: 0 3rem;
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .content-wrapper {
    padding: 0;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-section {
    background-attachment: scroll;
  }
}

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

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== PRINT STYLES ===== */
@media print {
  .mobile-menu-toggle,
  .mobile-menu-overlay,
  .mobile-menu-backdrop {
    display: none !important;
  }
  
  .hero-section {
    background: none !important;
    color: black !important;
  }
  
  a {
    color: black !important;
    text-decoration: underline !important;
  }
}