/**
 * Vientos Website — Production CSS
 * Mobile-first, portrait-first design
 */

/* ============================================
   Typography (Google Fonts) - Must be first
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@400;600;700&family=Open+Sans:wght@400;600&family=Playfair+Display:wght@700&display=swap');

/* ============================================
   CSS Variables (Color Palettes)
   ============================================ */

:root {
  /* Band Palette */
  --band-primary: #8B0000;
  --band-secondary: #CD5C5C;
  --band-accent: #FF8C00;
  --band-bg: #FFF5F5;
  
  /* Trio Palette (90% similar to Band, slight variation) */
  --trio-primary: #A02020; /* Slightly lighter red */
  --trio-secondary: #D87070; /* Slightly lighter secondary */
  --trio-accent: #FFA500; /* Slightly brighter orange */
  --trio-bg: #FFF8F8; /* Slightly lighter background */
  
  /* Sowing Seeds Palette */
  --seeds-primary: #2aa90a; /* old FFD700 */
  --seeds-secondary: #156b00;
  --seeds-accent: #fff585;
  --seeds-bg: #fffddb;
  
  /* Pueblo Palette */
  --pueblo-primary: #F5F5DC;
  --pueblo-secondary: #90EE90;
  --pueblo-accent: #DEB887;
  --pueblo-bg: #8b5732;
  
  /* Shared */
  --text-dark: #2C2C2C;
  --text-light: #FFFFFF;
  --torn-edge-color: #8B4513;
  
  /* Universal/Shared Colors (derived from Band theme) */
  --body-bg: #361400; /* Dark brown - matches current body background */
  --text-muted: #666666;
  --border-light: rgba(44, 44, 44, 0.1);
  --bg-highlight: #FFF9E6;
  --bg-disabled: #F0F0F0;
  --text-disabled: #999999;
  --border-disabled: #DDDDDD;
  
  /* RGB values for rgba() usage */
  --band-primary-rgb: 139, 0, 0;
  --band-secondary-rgb: 205, 92, 92;
  --band-accent-rgb: 255, 140, 0;
  --band-bg-rgb: 255, 245, 245;
  --trio-primary-rgb: 160, 32, 32;
  --trio-secondary-rgb: 216, 112, 112;
  --trio-accent-rgb: 255, 165, 0;
  --trio-bg-rgb: 255, 248, 248;
  --seeds-primary-rgb: 42, 169, 10;
  --seeds-secondary-rgb: 21, 107, 0;
  --seeds-accent-rgb: 255, 245, 133;
  --seeds-bg-rgb: 255, 253, 219;
  --pueblo-primary-rgb: 245, 245, 220;
  --pueblo-secondary-rgb: 144, 238, 144;
  --pueblo-accent-rgb: 222, 184, 135;
  --pueblo-bg-rgb: 139, 87, 50;
  --text-dark-rgb: 44, 44, 44;
  --text-light-rgb: 255, 255, 255;
  
  /* Typography */
  --font-header: 'Lexend', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --font-logo: 'Playfair Display', serif;
  
  /* Layout */
  --header-height: 80px;
  --header-height-scrolled: 60px;
  --scroll-threshold: 100px;
}

/* ============================================
   Base Styles (Mobile-First)
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--body-bg);
  overflow-x: hidden;
}

/* Main container - narrower width for more side space */
main {
  max-width: 960px; /* ~50% of 1920px */
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
}

@media (min-width: 1920px) {
  main {
    max-width: 960px;
  }
}

@media (max-width: 1919px) {
  main {
    max-width: 85%;
  }
}

@media (max-width: 767px) {
  main {
    max-width: 100%;
    padding: 0 1rem; /* Minimal padding for readability */
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.8;
  color: var(--band-secondary); /* Secondary color on hover for links */
}

a:focus {
  outline: 2px solid var(--band-accent); /* Accent color for focus outline */
  outline-offset: 2px;
}

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

/* ============================================
   Header (with scroll behavior)
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, var(--band-primary), var(--band-secondary));
  color: var(--text-light);
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  height: var(--header-height);
}

.site-header.scrolled {
  height: var(--header-height-scrolled);
  background: rgba(var(--band-primary-rgb), 0.95);
  backdrop-filter: blur(10px);
}

.header-container {
  max-width: 960px; /* Match main container */
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.site-header:not(.scrolled) .header-container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.site-header.scrolled .header-container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.header-center {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  transition: all 0.3s ease;
}

.site-header.scrolled .header-center {
  position: static;
  transform: none;
  left: auto;
}

.header-section-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.site-header.scrolled .header-section-nav {
  opacity: 1;
  visibility: visible;
}

.header-right {
  display: flex;
  align-items: center;
  margin-left: auto;
  position: relative;
  z-index: 2;
}

.site-logo {
  font-family: var(--font-logo);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.site-header.scrolled .site-logo {
  font-size: 1.5rem;
}

.header-tagline {
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.95;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.site-header.scrolled .header-tagline {
  display: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap; /* Prevent wrapping - JS will shrink items to fit */
  justify-content: flex-end;
}


.header-nav.instagram-breaks-line {
  justify-content: center;
}

.nav-item {
  display: inline-flex;
  align-items: center;
}

.nav-group {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}


.nav-text-link {
  font-family: var(--font-body);
  font-size: var(--nav-font-size, 0.9rem);
  font-weight: 400;
  text-decoration: none;
  color: var(--text-light);
  transition: opacity 0.3s ease, font-size 0.2s ease;
  opacity: 0.9;
}

.nav-text-link:hover {
  opacity: 1;
  text-decoration: none;
  color: var(--pueblo-secondary);
}

.nav-separator {
  color: rgba(var(--text-light-rgb), 0.5);
  font-weight: 300;
  margin: 0 0.25rem;
}

.nav-icon-link {
  display: inline-flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.nav-icon-link:hover {
  opacity: 1;
}

.nav-icon {
  width: var(--nav-icon-size, 1.2rem);
  height: var(--nav-icon-size, 1.2rem);
  display: block;
  transition: width 0.2s ease, height 0.2s ease;
}

.nav-section-link {
  padding: 0.5rem 1rem;
  border: 2px solid rgba(var(--text-light-rgb), 0.4);
  border-radius: 6px;
  background: rgba(var(--text-light-rgb), 0.05);
  color: var(--text-light);
  text-decoration: none;
  font-family: var(--font-header);
  font-weight: 600;
  font-size: var(--nav-section-font-size, 0.85rem);
  transition: all 0.3s ease, font-size 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  white-space: nowrap;
}

.nav-section-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(var(--text-light-rgb), 0.2), transparent);
  transition: left 0.5s ease;
}

.nav-section-link:hover::before {
  left: 100%;
}

.nav-section-link:hover {
  border-color: rgba(var(--text-light-rgb), 0.7);
  background: rgba(var(--text-light-rgb), 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.nav-section-link.active {
  border-color: rgba(var(--text-light-rgb), 0.9);
  background: rgba(var(--text-light-rgb), 0.25);
  box-shadow: 0 4px 12px rgba(var(--text-light-rgb), 0.3), inset 0 1px 2px rgba(var(--text-light-rgb), 0.2);
  font-weight: 700;
}

/* Regal decorative borders */
.nav-section-link::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 1px solid rgba(var(--text-light-rgb), 0.2);
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-section-link:hover::after,
.nav-section-link.active::after {
  opacity: 1;
}

/* ============================================
   Hero Banner
   ============================================ */

.hero-banner {
  position: relative;
  width: 100%;
  max-height: 35vh;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--band-primary), var(--band-secondary));
  color: var(--text-light);
  overflow: hidden;
  margin-top: var(--header-height);
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/about/hero.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: 0;
}

@media (max-width: 767px) {
  .hero-banner::before {
    background-image: url('../images/about/hero-mobile.jpg');
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}

.hero-logo {
  font-family: var(--font-logo);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.hero-segment {
  display: inline;
}

.hero-separator {
  display: inline;
  white-space: pre;
}

.hero-tagline {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.hero-projects {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-project-emoji {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero-project-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ============================================
   Project Preview Section (50/50 alternating)
   ============================================ */

.project-preview {
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.preview-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-height: 45vh;
  min-height: 350px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .preview-container {
    grid-template-columns: 1fr 1fr;
  }
}

.preview-media {
  position: relative;
  overflow: hidden;
  height: 100%;
  max-height: 45vh;
}

.preview-media img,
.preview-media video,
.preview-media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-media iframe {
  border: none;
}

.preview-content {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  max-height: 45vh;
}

.preview-content.band {
  background: var(--band-bg);
  color: var(--band-primary);
}

.preview-content.seeds {
  background: var(--seeds-bg);
  color: var(--seeds-primary);
}

.preview-content.pueblo {
  background: var(--pueblo-bg);
  color: var(--pueblo-primary);
}

.preview-content h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.preview-content .tagline {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.preview-content p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Alternating layout */
.preview-container.media-left .preview-media {
  order: 1;
}

.preview-container.media-left .preview-content {
  order: 2;
}

.preview-container.media-right .preview-media {
  order: 2;
}

.preview-container.media-right .preview-content {
  order: 1;
}

@media (max-width: 767px) {
  .preview-container.media-left .preview-media,
  .preview-container.media-right .preview-media {
    order: 1;
  }
  
  .preview-container.media-left .preview-content,
  .preview-container.media-right .preview-content {
    order: 2;
  }
}

/* ============================================
   Project Sections (50/50 alternating)
   ============================================ */

.project-section {
  padding: 0;
  position: relative;
}

.project-section.band {
  background: var(--band-bg);
}

.project-section.seeds {
  background: var(--seeds-bg);
}

.project-section.pueblo {
  background: var(--pueblo-bg);
}

/* 50/50 alternating sections */
.project-subsection {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 350px;
  overflow: hidden;
  align-items: stretch; /* Ensure both columns match height */
}

@media (min-width: 768px) {
  .project-subsection {
    grid-template-columns: 1fr 1fr;
  }
}

.subsection-media {
  position: relative;
  overflow: hidden;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* Theme-colored backgrounds for dead space when media doesn't fill */
.project-section.band .subsection-media {
  background-color: var(--band-bg);
}

.project-section.seeds .subsection-media {
  background-color: var(--seeds-bg);
}

.project-section.pueblo .subsection-media {
  background-color: var(--pueblo-bg);
}

.subsection-media img,
.subsection-media video,
.subsection-media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subsection-media iframe {
  border: none;
}

.subsection-content {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Removed overflow-y: auto and max-height to prevent scrolling */
}

.subsection-content.band {
  background: var(--band-bg);
  color: var(--band-primary);
}

.subsection-content.seeds {
  background: var(--seeds-bg);
  color: var(--seeds-primary);
}

.subsection-content.pueblo {
  background: var(--pueblo-bg);
  color: var(--pueblo-primary);
}

.subsection-content h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

/* .subsection-content h3 span, .subsection-content h4 span {
  filter: brightness(50%);
  opacity: 0.7;
} */

.subsection-content.band h3 span, .subsection-content.band h4 span {
  color: var(--band-secondary);
}

.subsection-content.seeds h3 span, .subsection-content.seeds h4 span {
  color: var(--seeds-secondary);
}

.subsection-content.pueblo h3 span, .subsection-content.pueblo h4 span {
  color: var(--pueblo-secondary);
}

.subsection-content .quote {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.4;
  font-weight: 400;
}

.subsection-content.band .quote span {
  background-color:var(--band-primary);
  color:var(--band-bg);
}

.subsection-content.seeds .quote span {
  background-color:var(--seeds-primary);
  color:var(--seeds-bg);
}

.subsection-content.pueblo .quote span {
  background-color:var(--pueblo-primary);
  color:var(--pueblo-bg);
}

.quote b {
  font-size: 1.2em;font-style: normal;
}

.subsection-content p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

/* Alternating layout */
.project-subsection.media-left .subsection-media {
  order: 1;
}

.project-subsection.media-left .subsection-content {
  order: 2;
}

.project-subsection.media-right .subsection-media {
  order: 2;
}

.project-subsection.media-right .subsection-content {
  order: 1;
}

@media (max-width: 767px) {
  .project-subsection.media-left .subsection-media,
  .project-subsection.media-right .subsection-media {
    order: 1;
  }
  
  .project-subsection.media-left .subsection-content,
  .project-subsection.media-right .subsection-content {
    order: 2;
  }
}

.project-hero {
  max-width: 1200px;
  margin: 0 auto 4rem;
  text-align: center;
}

.project-hero-image {
  width: 100%;
  max-width: 800px;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.project-hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.project-hero.band h2 {
  color: var(--band-primary);
}

.project-hero.seeds h2 {
  color: var(--seeds-primary);
}

.project-hero.pueblo h2 {
  color: var(--pueblo-primary);
}

.project-hero .tagline {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Variations in tabs or wider boxes */
.variations-container {
  padding: 1rem 0;
}

.variation-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.variation-tab {
  padding: 0.6rem 1.2rem;
  border: 2px solid currentColor;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-header);
  font-weight: 600;
  border-radius: 6px;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.variation-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(var(--text-light-rgb), 0.1);
  transition: left 0.3s ease;
}

.variation-tab:hover::before {
  left: 0;
}

.variation-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  background: rgba(var(--band-primary-rgb), 0.1); /* Subtle background on hover */
}

.variation-tab.band:hover {
  background: rgba(var(--band-secondary-rgb), 0.15); /* Secondary tint on hover */
}

.variation-tab.seeds:hover {
  background: rgba(var(--seeds-secondary-rgb), 0.15);
}

.variation-tab.pueblo:hover {
  background: rgba(var(--pueblo-secondary-rgb), 0.15);
}

.variation-tab.active {
  background: currentColor;
  color: var(--text-light);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.variation-tab.band {
  border-color: var(--band-primary);
  color: var(--band-primary);
}

.variation-tab.band.active {
  background: var(--band-primary);
  color: var(--band-bg);
  border-color: var(--band-accent); /* Accent color for active border */
}

.variation-tab.band:hover {
  border-color: var(--band-secondary); /* Secondary on hover */
}

.variation-tab.seeds {
  border-color: var(--seeds-primary);
  color: var(--seeds-primary);
}

.variation-tab.seeds.active {
  background: var(--seeds-primary);
  color: var(--seeds-bg);
  border-color: var(--seeds-accent); /* Accent color for active border */
}

.variation-tab.seeds:hover {
  border-color: var(--seeds-secondary); /* Secondary on hover */
}

.variation-tab.pueblo {
  border-color: var(--pueblo-primary);
  color: var(--pueblo-primary);
}

.variation-tab.pueblo.active {
  background: var(--pueblo-primary);
  color: var(--pueblo-bg);
  border-color: var(--pueblo-accent); /* Accent color for active border */
}

.variation-tab.pueblo:hover {
  border-color: var(--pueblo-secondary); /* Secondary on hover */
}

.variation-panel {
  display: none;
}

.variation-panel.active {
  display: block;
}

.variation-panel h4 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.variation-panel p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.variation-stats {
  list-style: none;
  margin-top: 1rem;
}

.variation-stats li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  font-size: 0.95rem;
}

.variation-stats li:last-child {
  border-bottom: none;
}

.variation-stats strong {
  display: inline-block;
  min-width: 100px;
  font-weight: 600;
}

.pueblostats strong {
  min-width: 160px !important;
}

/* Video/Media embeds */
.video-embed {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

/* Booking Button */
.booking-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  margin: 1.5rem 0 0 0;
  max-width: 250px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.booking-button.band {
  background: var(--band-primary);
  color: var(--band-bg);
}

.booking-button.band:hover {
  background: var(--band-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(var(--band-accent-rgb), 0.3); /* Accent in shadow */
}

.booking-button.band:active {
  background: var(--band-accent); /* Accent on active/click */
}

.booking-button.seeds {
  background: var(--seeds-primary);
  color: var(--seeds-bg);
}

.booking-button.seeds:hover {
  background: var(--seeds-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(var(--seeds-accent-rgb), 0.3); /* Accent in shadow */
}

.booking-button.seeds:active {
  background: var(--seeds-accent); /* Accent on active/click */
}

.booking-button.pueblo {
  background: var(--pueblo-primary);
  color: var(--text-light);
}

.booking-button.pueblo:hover {
  background: var(--pueblo-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(var(--pueblo-accent-rgb), 0.3); /* Accent in shadow */
}

.booking-button.pueblo:active {
  background: var(--pueblo-accent); /* Accent on active/click */
}

/* ============================================
   Torn Edge Dividers
   ============================================ */

.torn-edge-divider {
  width: 100%;
  height: 120px;
  margin-top: -30px; /* Negative margin to overlap previous section - reduced for subtler effect */
  margin-bottom: 0;
  position: relative;
  overflow: visible; /* Allow overflow for overlap effect */
  line-height: 0;
  z-index: 10; /* Ensure it sits above previous section content */
  pointer-events: none; /* Allow clicks to pass through to content below */
}

.torn-edge-divider svg,
.torn-edge-divider img {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 1;
}

/* SVG fill colors match next section background for seamless transition */
/* No background-color on container - SVG fill provides the color */

/* Ensure project sections have proper stacking context */
.project-section {
  position: relative;
  z-index: 1;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--body-bg);
  background-image: url('../images/wide/texture.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-light);
  padding: 1rem 1rem;
  text-align: center;
}

.footer-content {
  max-width: 960px; /* Match main container */
  margin: 0 auto;
}

.footer-content p {
  margin-bottom: 1rem;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 767px) {
  /* Disable scroll behavior on mobile - keep header consistent */
  .site-header {
    height: auto !important;
    min-height: var(--header-height);
  }
  
  .site-header.scrolled {
    height: auto !important;
    min-height: var(--header-height);
  }
  
  /* Header - Two Row Layout (consistent pre and post scroll) */
  .header-container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    height: auto;
    align-items: center;
    justify-content: space-between;
  }
  
  .site-header:not(.scrolled) .header-container,
  .site-header.scrolled .header-container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-between;
  }
  
  /* Row 1: Logo/Tagline (left) + Page Links + Anchor Links (right, all on one line) */
  .header-center {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    order: 1;
    gap: 0.5rem;
    position: static;
    transform: none;
    left: auto;
    flex-shrink: 0;
  }
  
  .site-header:not(.scrolled) .header-center,
  .site-header.scrolled .header-center {
    position: static;
    transform: none;
    left: auto;
  }
  
  .header-tagline {
    font-size: 0.7rem;
    display: block !important; /* Keep tagline visible on scroll */
    white-space: nowrap;
  }
  
  /* Prevent logo size change on scroll */
  .site-header.scrolled .site-logo {
    font-size: 2rem; /* Keep same size as non-scrolled */
  }
  
  /* Combine page links and anchor links on one line (right side) */
  .header-right {
    order: 2;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    flex-shrink: 1;
    min-width: 0;
  }
  
  /* Center navigation links on about page (mobile only) */
  body.about-page .header-right {
    justify-content: center;
    width: 100%;
  }
  
  .header-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    flex-wrap: nowrap; /* Prevent wrapping - JS will shrink items to fit */
    justify-content: flex-end;
  }
  
  .header-nav.instagram-breaks-line {
    justify-content: center;
  }
  
  .nav-text-link {
    font-size: var(--nav-font-size, 0.85rem);
    padding: 0;
    border: none;
    background: none;
    text-decoration: underline;
    font-weight: 400;
    white-space: nowrap;
  }
  
  .nav-separator {
    margin: 0 0.25rem;
    font-size: 0.85rem;
  }
  
  .nav-icon {
    width: var(--nav-icon-size, 1rem);
    height: var(--nav-icon-size, 1rem);
  }
  
  /* Move section nav to same row as page links - appears right after header-right */
  .header-section-nav {
    order: 2;
    width: auto;
    margin: 0;
    opacity: 1 !important;
    visibility: visible !important;
    gap: 0.5rem;
    flex-wrap: nowrap;
    display: flex;
    align-items: center;
  }
  
  .site-header:not(.scrolled) .header-section-nav,
  .site-header.scrolled .header-section-nav {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex;
  }
  
  .nav-section-link {
    padding: 0.35rem 0.6rem;
    font-size: var(--nav-section-font-size, 0.7rem);
    white-space: nowrap;
  }
  
  /* Hero Banner - Reduced Height */
  .hero-banner {
    max-height: 30vh;
    min-height: 100px;
    padding-top: 1.5rem;
  }
  
  .hero-logo {
    font-size: 1.25rem; /* Half of 2.5rem */
  }
  
  .hero-tagline {
    font-size: 0.75rem; /* Proportionally reduced */
  }
  
  .project-hero h2 {
    font-size: 2rem;
  }

  .subsection-content {
    padding-top: 1rem;
  }
  
  .variation-cards {
    grid-template-columns: 1fr;
  }
  
  /* Variation Tabs - Max 33% Width Each */
  .variation-tabs {
    flex-wrap: nowrap; /* Prevent wrapping */
    gap: 0.25rem; /* Reduced gap */
  }
  
  .variation-tab {
    flex: 0 0 calc(33.333% - 0.167rem); /* Account for gaps */
    max-width: calc(33.333% - 0.167rem);
    padding: 0.5rem 0.5rem; /* Reduced padding */
    font-size: 0.75rem; /* Reduced font size */
    border-width: 1px; /* Thinner border */
    box-sizing: border-box;
    text-align: center;
  }
  
  /* Variation Stats - Flex Structure for Indentation */
  .variation-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .variation-stats li {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }
  
  .variation-stats strong {
    flex: 0 0 100px;
    min-width: 100px;
    max-width: 100px;
  }
  
  .variation-stats li > *:not(strong) {
    flex: 1 1 auto;
    min-width: 0;
  }
  
  .pueblostats strong {
    flex: 0 0 140px;
    min-width: 140px;
    max-width: 140px;
  }
  
  /* Hide torn-edge SVG dividers on mobile - they're too complex to align properly */
  .torn-edge-divider {
    display: none;
  }
  
  /* Add simple spacing between sections instead */
  .project-section {
    margin-top: 2rem;
  }
  
  .project-section:first-of-type {
    margin-top: 0;
  }
}

