﻿/* =================================================================
   Modern Responsive CSS for Trail Ridge Road - Colorado 2025
   Colorado-inspired design with mobile-first approach
   Based on recoleta-ba.com structure but customized for Colorado
   ================================================================= */

/* ===== CSS VARIABLES - Colorado-Inspired Colors ===== */
:root {
  /* Colorado Flag-Inspired Colors (Softened for Web) */
  --colorado-navy: #2C5F7C;
  --colorado-gold: #D4AF37;
  --colorado-red: #A0353A;
  --colorado-white: #FFFFFF;
  --forest-green: #2D5016;
  --sky-blue: #87CEEB;
  
  /* Extended Palette */
  --primary-blue: var(--colorado-navy);
  --accent-gold: var(--colorado-gold);
  --accent-red: var(--colorado-red);
  --text-dark: #2C3E50;
  --text-light: #6C757D;
  --white: var(--colorado-white);
  --background-light: #F8F9FA;
  --border-light: #E9ECEF;
  --success-green: var(--forest-green);
  
  /* Typography */
  --font-primary: 'Raleway', '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(--colorado-navy) 100%); */
  color: var(--white);
  position: relative;
  overflow: hidden;
}

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

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg, 
    rgba(44, 95, 124, 0.8) 0%, 
    rgba(45, 80, 22, 0.7) 100%
  );
}

.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;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 300;
  text-align: center;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* ===== 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;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.site-logo:hover {
  color: var(--accent-gold);
}

.site-logo .logo-line2 {
  font-size: 0.8rem;
  font-weight: 300;
  display: block;
  margin-top: -0.2rem;
}

/* Desktop Navigation */
.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;
  text-transform: capitalize;
}

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

/* Mobile Menu Button */
.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  position: relative;
  z-index: 10001;
  margin-right: 1rem;
  margin-top: 1rem;
}

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

/* Mobile Menu Overlay */
.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.push-body {
  left: 0;
}

.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;
  text-transform: capitalize;
}

.mobile-nav-menu a:hover {
  background-color: var(--background-light);
  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;
}

/* Content Grid Layout */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.content-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  padding: 1.5rem;
  border-top: 3px solid var(--primary-blue);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  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;
}

h1 .boldheadfont {
  font-weight: 900;
  text-transform: uppercase;
}

h1 .fontlight {
  font-weight: 300;
  color: var(--text-light);
}

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(--primary-blue);
}

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

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

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

a:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

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

li {
  margin-bottom: 0.5rem;
}

/* ===== 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 {
  margin-top: 0;
  margin-bottom: 1rem;
}

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

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

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

.callout-tips h3 {
  color: var(--accent-gold);
}

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

.callout-warning h3 {
  color: var(--accent-red);
}

/* Success/Nature Callouts */
.callout-nature {
  background: linear-gradient(135deg, #E8F5E8 0%, #F8F9FA 100%);
  border-left: 4px solid var(--success-green);
}

.callout-nature h3 {
  color: var(--success-green);
}

/* Cultural/Historical Callouts */
.callout-cultural {
  background: linear-gradient(135deg, #F3E5F5 0%, #F8F9FA 100%);
  border-left: 4px solid var(--colorado-red);
}

.callout-cultural h3 {
  color: var(--colorado-red);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: var(--font-primary);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--colorado-navy) 100%);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  color: var(--white);
  text-decoration: none;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #B8860B 100%);
  color: var(--white);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  color: var(--white);
  text-decoration: none;
}

/* ===== 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-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-nav a {
  color: var(--white);
  text-decoration: none;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

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

.footer-copyright {
  font-size: 0.9rem;
  color: var(--text-light);
  opacity: 0.8;
}

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

/* Mobile Content Spacing */
@media (max-width: 767px) {
  .main-content {
    padding-left: var(--mobile-padding);
    padding-right: var(--mobile-padding);
  }

  .content-wrapper {
    padding-left: var(--mobile-padding);
    padding-right: var(--mobile-padding);
  }

  /* Allow images to go to screen edge but keep text centered */
  .full-width-mobile {
    margin-right: calc(-1 * var(--mobile-padding));
}

  .hero-section {
    background-attachment: scroll; /* Better mobile performance */
  }
}

/* Tablet */
@media (min-width: 768px) {
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .mobile-menu-toggle {
    display: none;
  }
  
  .nav-menu {
    display: flex;
  }
  
  .content-wrapper {
    padding: 0 2rem;
  }
  
  .callout-box {
    padding: 2rem;
  }
}

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

  .content-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .content-grid.four-col {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

/* ===== LEGACY COMPATIBILITY ===== */
/* Keep some old class names for backward compatibility during transition */
.boldheadfont {
  font-weight: 900;
}

.fontlight {
  font-weight: 300;
  color: var(--text-light);
}

.thickBorderOverBox {
  border-top: 3px solid var(--primary-blue);
  margin-bottom: 1rem;
}

/* ===== PRINT STYLES ===== */
@media print {
  .mobile-menu-toggle,
  .mobile-menu-overlay,
  .mobile-menu-backdrop,
  .main-navigation {
    display: none !important;
  }
  
  .hero-section {
    background: none !important;
    color: black !important;
    min-height: auto !important;
  }
  
  .hero-section::before {
    display: none !important;
  }
  
  a {
    color: black !important;
    text-decoration: underline !important;
  }
  
  .callout-box {
    border: 1px solid #000 !important;
    background: none !important;
  }
}