/*
Author: David Quintana
MSU Denver login name: dquint32@msudenver.edu
Date Created: 11/02/2025
Date Due: 12/01/2024
Modified: 12/08/2025 (Single-Line Horizontal Header Toolbar)
Modified: 12/09/2025 (Hero Image Object Position adjustment)
Filename: style.css
Purpose: Global stylesheet for all Tienda Salvadoreña pages - nostalgic, cultural theme with unified header and navigation.
Editor: Notepad
*/

/* ========================================
   ROOT VARIABLES - Color Palette & Tokens
   ======================================== */
:root {
  --cobalt-blue: #0F47AF;   /* 🇸🇻 El Salvador Blue */
  --bright-white: #FFFFFF;  /* 🇸🇻 White */
  --golden-accent: #FFCC00; /* 🇸🇻 Gold */

  --terracotta: #C1552D;
  --brick-red: #8B3A26;
  --soft-cream: #F5F1E8;
  --warm-beige: #E8DCC4;
  --muted-green: #8B9B7E;
  --deep-ink: #111827;
  --muted-gray: #6B7280;
  --light-gray: #E5E7EB;
  --card-white: #FFFFFF;
  --page-background: #f7f3ea;

  --radius: 8px;
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 6px 16px rgba(0,0,0,0.12);

  --max-page: 1200px;
  --max-container: 1100px;
  
  /* Responsive spacing tokens */
  --spacing-xs: clamp(0.25rem, 0.5vw, 0.5rem);
  --spacing-sm: clamp(0.5rem, 1vw, 0.75rem);
  --spacing-md: clamp(0.75rem, 1.5vw, 1rem);
  --spacing-lg: clamp(1rem, 2vw, 1.5rem);
  --spacing-xl: clamp(1.5rem, 3vw, 2rem);
}

/* ========================================
   GLOBAL RESETS & BASE STYLES
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: 'Poppins', 'Open Sans', 'Lato', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: var(--page-background);
  color: var(--deep-ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow-x: hidden;
  width: 100%;
}

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

a { 
  color: var(--cobalt-blue); 
  text-decoration: underline; 
  transition: color 0.3s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

a:hover { color: var(--brick-red); }

/* Focus-visible for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--golden-accent);
  outline-offset: 2px;
}

/* Utilities */
.container { 
  max-width: var(--max-container); 
  margin: 0 auto; 
  padding: 0 clamp(0.75rem, 3vw, 1rem);
  width: 100%;
}

.text-center { text-align: center; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.hidden { display: none !important; }
.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;
}

/* ========================================
   TYPOGRAPHY - Fully Responsive
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--deep-ink);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h1 { 
  font-size: clamp(1.5rem, 5vw, 2.25rem); 
  color: var(--cobalt-blue); 
}

h2 { 
  font-size: clamp(1.25rem, 4vw, 1.875rem); 
  color: var(--brick-red); 
}

h3 { 
  font-size: clamp(1.125rem, 3vw, 1.5rem); 
  color: var(--cobalt-blue); 
}

h4 { 
  font-size: clamp(1rem, 2.5vw, 1.25rem); 
}

p { 
  margin-bottom: 1rem; 
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

em { font-style: italic; color: var(--muted-gray); }
strong { font-weight: 600; color: var(--deep-ink); }

/* ========================================
   SINGLE-LINE HORIZONTAL HEADER TOOLBAR
   [ LOGO | Store Name | Nav Links | ES | EN ]
   ======================================== */
.site-header {
  background-color: var(--cobalt-blue);
  color: var(--bright-white);
  padding: clamp(0.75rem, 1.5vw, 1rem) clamp(0.75rem, 3vw, 1.5rem);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  width: 100%;
}

/* Main Toolbar Container */
.header-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  max-width: var(--max-page);
  margin: 0 auto;
  width: 100%;
}

/* Left Section: Logo + Store Name */
.header-left {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1rem);
  flex-shrink: 0;
}

.brand-logo {
  height: clamp(40px, 6vw, 60px);
  width: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.brand-name {
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: 'Merriweather', Georgia, serif;
  color: var(--bright-white);
  white-space: nowrap;
  margin: 0;
}

/* Center Section: Navigation Links */
.header-center {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 1vw, 0.75rem);
  flex: 1;
  justify-content: center;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 1vw, 0.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  color: var(--bright-white);
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(0.8rem, 1.8vw, 0.9rem);
  padding: clamp(0.4rem, 1vw, 0.5rem) clamp(0.5rem, 1.5vw, 0.75rem);
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.main-nav a:hover {
  background-color: var(--golden-accent);
  color: var(--cobalt-blue);
}

.main-nav a[aria-current="page"],
.main-nav a.active {
  background-color: var(--bright-white);
  color: var(--cobalt-blue);
  font-weight: 600;
}

/* Right Section: Language Buttons */
.header-right {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 0.75vw, 0.5rem);
  flex-shrink: 0;
}

.lang-button {
  background: transparent;
  border: 1px solid var(--bright-white);
  color: var(--bright-white);
  padding: clamp(0.4rem, 1vw, 0.5rem) clamp(0.5rem, 1.5vw, 0.75rem);
  border-radius: 999px;
  font-size: clamp(0.75rem, 1.8vw, 0.85rem);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  min-height: 36px;
  min-width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.lang-button:hover,
.lang-button.active,
.lang-button[aria-pressed="true"] {
  background-color: var(--bright-white);
  color: var(--cobalt-blue);
  font-weight: 600;
}

/* ========================================
   MOBILE RESPONSIVE HEADER
   ======================================== */

/* Tablet: Slightly compress spacing */
@media (max-width: 1024px) {
  .main-nav a {
    padding: 0.4rem 0.6rem;
  }
  
  .brand-name {
    font-size: clamp(0.85rem, 2vw, 1rem);
  }
}

/* Mobile: Stack or compress further */
@media (max-width: 768px) {
  .header-toolbar {
    flex-wrap: wrap;
    gap: clamp(0.5rem, 1.5vw, 0.75rem);
  }
  
  .header-left {
    order: 1;
    flex: 0 0 auto;
  }
  
  .header-right {
    order: 2;
    flex: 0 0 auto;
  }
  
  .header-center {
    order: 3;
    flex: 1 0 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }
  
  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Extra Small Mobile: Minimal view */
@media (max-width: 480px) {
  .site-header {
    padding: 0.5rem 0.75rem;
  }
  
  .brand-logo {
    height: 35px;
  }
  
  .brand-name {
    font-size: 0.85rem;
  }
  
  .main-nav a {
    font-size: 0.75rem;
    padding: 0.35rem 0.5rem;
  }
  
  .lang-button {
    font-size: 0.7rem;
    padding: 0.35rem 0.5rem;
    min-width: 35px;
  }
}

/* ========================================
   LEGACY SUPPORT (for old HTML structure)
   ======================================== */
/* If your HTML still has the old structure, these will help */
.top-lang-bar,
.brand-row,
.brand-text,
.brand-tagline {
  /* Hidden - use new structure instead */
  display: none;
}

/* ========================================
   MAIN CONTENT CONTAINER
   ======================================== */
main {
  max-width: var(--max-page);
  margin: var(--spacing-lg) auto;
  padding: 0 clamp(0.75rem, 3vw, 1.5rem);
  flex: 1;
  width: 100%;
}

/* ========================================
   DYNAMIC HERO SECTIONS - Enhanced Mobile
   ======================================== */
.hero {
  text-align: center;
  padding: var(--spacing-xl) clamp(0.75rem, 3vw, 1.5rem);
  background: var(--soft-cream);
  border-radius: var(--radius);
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  width: 100%;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xl);
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.hero__content {
  text-align: center;
  padding: 0;
  max-width: 600px;
  width: 100%;
}

.hero__title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin-bottom: 0.5rem;
  word-wrap: break-word;
}

.hero__subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--muted-gray);
  margin-bottom: 1rem;
}

.hero__note {
  font-style: italic;
  font-size: clamp(0.875rem, 2vw, 0.95rem);
  color: var(--brick-red);
  margin-bottom: 1.5rem;
}

.hero__image {
  width: 100%;
  max-width: 100%;
}

.hero__image img {
  width: 100%;
  max-width: 450px;
  height: auto;
  object-fit: cover;
  /* FIX: Aligns the image content to the bottom of the frame */
  object-position: 50% 100%; 
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 4px solid var(--light-gray);
  margin: 0 auto;
}

/* Hero Themes */
.hero--cobalt .hero__title { color: var(--cobalt-blue); }
.hero--cobalt .btn-primary {
  background-color: var(--cobalt-blue);
  box-shadow: 0 4px 8px rgba(15, 71, 175, 0.4);
}
.hero--cobalt .btn-primary:hover {
  background-color: var(--brick-red);
  box-shadow: var(--shadow-lg);
}
.hero--cobalt .hero__image img { border-color: var(--cobalt-blue); }

.hero--tangerine { background: var(--soft-cream); } /* FIXED: Background is now soft-cream (white/cream) */
.hero--tangerine .hero__title { color: var(--cobalt-blue); } /* FIXED: Title is now cobalt-blue */
.hero--tangerine .btn-primary {
  background-color: var(--terracotta);
  box-shadow: 0 4px 8px rgba(193, 85, 45, 0.4);
}
.hero--tangerine .btn-primary:hover {
  background-color: var(--brick-red);
  box-shadow: var(--shadow-lg);
}
.hero--tangerine .hero__image img { border-color: var(--terracotta); }

/* Responsive adjustments for Dynamic Hero */
@media (min-width: 768px) {
  .hero__inner {
    flex-direction: row;
    text-align: left;
    gap: clamp(2rem, 4vw, 3rem);
  }
  .hero__content {
    text-align: left;
    flex: 1;
  }
  .hero__image {
    flex: 0 0 40%;
  }
  .hero__image img {
    max-width: none;
    width: 100%;
  }
  .hero--tangerine .hero__inner {
    flex-direction: row-reverse;
  }
}

/* ========================================
   BUTTONS - Enhanced Touch Targets
   ======================================== */
.btn,
.btn-primary,
#btnToItems {
  padding: clamp(0.625rem, 1.5vw, 0.75rem) clamp(1rem, 2.5vw, 1.5rem);
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 600;
  color: var(--card-white);
  background-color: var(--cobalt-blue);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(15, 71, 175, 0.3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 44px;
  min-width: 100px;
}

.btn:hover,
.btn-primary:hover,
#btnToItems:hover {
  background-color: var(--brick-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ========================================
   CARDS & GENERIC SECTIONS
   ======================================== */
.card,
.clipping-card,
.highlight-card {
  background-color: var(--card-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-lg);
  border: 1px solid var(--light-gray);
  width: 100%;
}

.card:hover,
.clipping-card:hover {
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s ease;
}

/* ========================================
   HOME PAGE - HIGHLIGHTS
   ======================================== */
.highlights { padding: var(--spacing-xl) 0; }
.highlights h2 { text-align: center; margin-bottom: var(--spacing-lg); }

.highlight-card {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.highlight-card img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.highlight-card ul { list-style: none; padding: 0; margin-top: 1rem; }
.highlight-card li { margin-bottom: 0.5rem; }

.highlight-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--soft-cream);
  color: var(--cobalt-blue);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
  min-height: 44px;
}

.highlight-card a:hover {
  background-color: var(--cobalt-blue);
  color: var(--card-white);
}

/* ========================================
   FEATURED CATEGORIES / PRODUCT CARDS
   ======================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: var(--spacing-lg);
  padding: var(--spacing-lg) 0;
  width: 100%;
}

.product-card {
  background: var(--card-white);
  border-radius: var(--radius);
  padding: var(--spacing-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  display: block;
  border: 1px solid var(--light-gray);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.product-image {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}

.product-title {
  font-size: clamp(0.95rem, 2.5vw, 1rem);
  margin: 0.75rem 0 0.25rem;
  color: var(--deep-ink);
}

.product-text {
  font-size: clamp(0.85rem, 2vw, 0.9rem);
  margin: 0;
  line-height: 1.5;
  color: var(--muted-gray);
}

/* ========================================
   ITEMS PAGE - INTRO & FILTERS
   ======================================== */
.items-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  margin-bottom: var(--spacing-xl);
  width: 100%;
}

@media (min-width: 768px) {
  .items-intro { grid-template-columns: 2fr 1fr; }
}

.intro-text h1 { margin-bottom: 0.5rem; }
.intro-note { 
  font-style: italic; 
  color: var(--muted-gray); 
  font-size: clamp(0.95rem, 2vw, 1.05rem); 
}
.intro-image { text-align: center; }
.cartoon-cameo { 
  max-width: 100%; 
  height: auto; 
  border-radius: var(--radius); 
  box-shadow: var(--shadow-md); 
}

/* Filters - Mobile Friendly */
.filter-section,
.category-bar {
  background-color: var(--soft-cream);
  padding: var(--spacing-lg);
  border-radius: var(--radius);
  margin-bottom: var(--spacing-xl);
  text-align: center;
  width: 100%;
}

.button-group,
.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
  margin-top: var(--spacing-md);
}

.filter-btn,
.category-btn {
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  font-weight: 500;
  color: var(--deep-ink);
  background-color: var(--card-white);
  border: 2px solid var(--light-gray);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filter-btn:hover,
.category-btn:hover {
  background-color: var(--cobalt-blue);
  color: var(--card-white);
  border-color: var(--cobalt-blue);
}

.filter-btn.active,
.category-btn.active {
  background-color: var(--cobalt-blue);
  color: var(--card-white);
  border-color: var(--cobalt-blue);
  font-weight: 600;
}

/* Product Gallery Grid - Mobile Optimized */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  width: 100%;
}

.gallery-grid .product-card {
  overflow: hidden;
  cursor: pointer;
}

.gallery-grid .product-card img {
  width: 100%;
  height: clamp(180px, 30vw, 220px);
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-grid .product-card:hover img { 
  transform: scale(1.05); 
}

.gallery-grid .product-card h3 {
  padding: var(--spacing-md) var(--spacing-md) var(--spacing-sm);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--cobalt-blue);
  margin: 0;
}

.gallery-grid .product-card p {
  padding: 0 var(--spacing-md) var(--spacing-md);
  color: var(--muted-gray);
  font-size: clamp(0.875rem, 2vw, 0.95rem);
  margin-bottom: 0;
}

/* ========================================
   HISTORY PAGE - STORY & HERITAGE
   ======================================== */
.real-story,
.cultural-context { 
  max-width: 900px; 
  margin: var(--spacing-xl) auto; 
  width: 100%;
}

/* Two-column layout for story + image on larger screens (900px+) */
.story-with-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  align-items: start; /* Align items to the top */
  margin: var(--spacing-xl) 0;
}

@media (min-width: 900px) {
  .story-with-feature {
    grid-template-columns: 2fr 1fr; /* Text on left (2/3), Image on right (1/3) */
  }
}

.story {
  background-color: var(--soft-cream);
  padding: var(--spacing-xl);
  border-radius: var(--radius);
  border-left: 5px solid var(--golden-accent);
  margin-bottom: var(--spacing-lg);
}

.story p { 
  font-size: clamp(0.95rem, 2vw, 1.05rem); 
  line-height: 1.8; 
  text-align: justify; 
}

/* Feature Image styles adapted for the new grid */
.feature-image { 
  text-align: center; 
  width: 100%;
  margin: 0; /* Remove existing margin-top/bottom when inside the grid */
}

.feature-image figure { 
  display: inline-block; 
  max-width: 100%; 
  width: 100%;
}

.feature-image img { 
  max-width: 100%; 
  height: auto; 
  border-radius: var(--radius); 
  box-shadow: var(--shadow-md); 
  width: 100%; /* Ensure image fills its column on desktop */
}

.feature-image figcaption { 
  margin-top: 0.75rem; 
  font-style: italic; 
  color: var(--muted-gray); 
  font-size: clamp(0.85rem, 2vw, 0.95rem); 
}

.story-highlights {
  background-color: var(--card-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius);
  border: 2px solid var(--cobalt-blue);
}

.story-highlights ul { list-style: none; padding-left: 0; }
.story-highlights li { 
  padding: var(--spacing-sm) 0; 
  border-bottom: 1px dashed var(--light-gray); 
}
.story-highlights li:last-child { border-bottom: none; }

.heritage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
  width: 100%;
}

.heritage-item { text-align: center; }
.heritage-item img {
  max-width: 100%; 
  height: auto; 
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm); 
  margin-bottom: 0.75rem;
}

.heritage-item figcaption { 
  font-size: clamp(0.85rem, 2vw, 0.9rem); 
  color: var(--muted-gray); 
  font-style: italic; 
}

.heritage-accent { 
  display: flex; 
  gap: var(--spacing-md); 
  align-items: center; 
  justify-content: center; 
  margin-top: var(--spacing-lg);
  flex-wrap: wrap;
}

.heritage-accent img { 
  max-height: clamp(60px, 10vw, 80px); 
  display: block; 
}

.purpose {
  background-color: var(--warm-beige);
  padding: var(--spacing-lg);
  border-radius: var(--radius);
  margin-top: var(--spacing-xl);
  border-left: 5px solid var(--brick-red);
}

/* ========================================
   PRESS PAGE - CLIPPINGS & QUOTES
   ======================================== */
.lead { 
  font-size: clamp(1rem, 2.5vw, 1.125rem); 
  color: var(--muted-gray); 
  text-align: center; 
  margin-bottom: var(--spacing-lg); 
}

.clippings {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
  width: 100%;
}

@media (min-width: 800px) {
  .clippings { grid-template-columns: 2fr 1fr; }
}

.clipping-card img { 
  width: 100%; 
  height: auto; 
  border-radius: 6px; 
  display: block; 
  margin-bottom: 1rem; 
}

.quote {
  border-left: 4px solid var(--golden-accent);
  padding: var(--spacing-md);
  background-color: var(--soft-cream);
  margin: var(--spacing-md) 0;
  border-radius: 6px;
}

.quote p { 
  margin: 0; 
  font-style: italic; 
  font-size: clamp(0.95rem, 2vw, 1.05rem); 
  line-height: 1.7; 
}

.quote cite { 
  display: block; 
  margin-top: 0.75rem; 
  color: var(--muted-gray); 
  font-style: normal; 
  font-size: clamp(0.85rem, 2vw, 0.9rem); 
}

.quote a { color: var(--cobalt-blue); font-weight: 500; }
.credits { 
  font-size: clamp(0.8rem, 2vw, 0.875rem); 
  color: var(--muted-gray); 
  margin-top: 0.5rem; 
  font-style: italic; 
}

.media-list { 
  list-style: none; 
  padding: 0; 
  margin: var(--spacing-md) 0; 
  display: flex; 
  flex-direction: column; 
  gap: var(--spacing-sm); 
}

.media-list li { 
  padding-left: var(--spacing-md); 
  position: relative; 
}

.media-list li::before { 
  content: "→"; 
  position: absolute; 
  left: 0; 
  color: var(--cobalt-blue); 
  font-weight: bold; 
}

.media-list a { 
  color: var(--cobalt-blue); 
  text-decoration: underline; 
  font-weight: 500; 
}

.media-list a:hover { color: var(--brick-red); }

/* ========================================
   CONTACT PAGE - MAP & HOURS
   ======================================== */
.grid { 
  display: grid; 
  gap: var(--spacing-lg); 
  grid-template-columns: 1fr; 
  width: 100%;
}

@media (min-width: 900px) { 
  .grid { grid-template-columns: 1fr 360px; } 
}

.address p { 
  margin: 0 0 0.75rem 0; 
  font-size: clamp(0.9rem, 2vw, 1rem); 
}

.address a { color: var(--cobalt-blue); font-weight: 500; }

/* Mobile-Friendly Table */
.hours {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.hours table { 
  width: 100%; 
  border-collapse: collapse; 
  margin: var(--spacing-md) 0;
  min-width: 280px;
}

.hours th, .hours td { 
  text-align: left; 
  padding: var(--spacing-sm) var(--spacing-xs); 
  border-bottom: 1px solid var(--light-gray);
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.hours th { font-weight: 600; color: var(--deep-ink); }
.hours td { color: var(--muted-gray); }
.hours tr:nth-child(even) { background-color: rgba(229,231,235,0.35); }

.map {
  width: 100%;
  height: clamp(250px, 50vw, 350px);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-md);
}

.call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--spacing-md);
  padding: var(--spacing-md) clamp(1rem, 2vw, 1.25rem);
  background-color: var(--cobalt-blue);
  color: var(--card-white);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(15, 71, 175, 0.3);
  min-height: 44px;
  min-width: 150px;
}

.call-btn:hover {
  background-color: var(--brick-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.social { 
  display: flex; 
  gap: var(--spacing-sm); 
  align-items: center; 
  margin-top: var(--spacing-md); 
  flex-wrap: wrap; 
}

.social a, .social-link {
  display: inline-flex; 
  align-items: center; 
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md); 
  border-radius: 6px; 
  text-decoration: none;
  background-color: var(--card-white); 
  border: 2px solid var(--light-gray);
  color: var(--cobalt-blue); 
  font-weight: 500; 
  transition: all 0.3s ease;
  min-height: 44px;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.social a:hover, .social-link:hover {
  background-color: var(--cobalt-blue); 
  color: var(--card-white); 
  border-color: var(--cobalt-blue);
  transform: translateY(-2px);
}

.social img { 
  width: 20px; 
  height: 20px; 
  flex-shrink: 0;
}

.social-icons { 
  display: flex; 
  gap: var(--spacing-md); 
  justify-content: center; 
  margin: var(--spacing-md) 0; 
  flex-wrap: wrap;
}

/* Form Styles - Mobile Friendly */
label { 
  display: block; 
  font-weight: 600; 
  margin: var(--spacing-sm) 0 var(--spacing-xs); 
  font-size: clamp(0.9rem, 2vw, 1rem);
}

input, select, textarea {
  width: 100%; 
  padding: var(--spacing-sm) var(--spacing-md); 
  border: 1px solid var(--light-gray);
  border-radius: 6px; 
  font: inherit; 
  color: var(--deep-ink); 
  background: var(--card-white);
  font-size: clamp(0.9rem, 2vw, 1rem);
  min-height: 44px;
}

textarea { 
  min-height: 120px;
  resize: vertical;
}

/* ========================================
   FOOTER
   ======================================== */
footer,
.site-footer,
.footer-content {
  background-color: var(--card-white);
  border-top: 2px solid var(--light-gray);
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
  color: var(--muted-gray);
  margin-top: clamp(2rem, 4vw, 3rem);
  width: 100%;
}

footer p,
.site-footer p,
.footer-line,
.footer-note {
  margin: var(--spacing-sm) 0;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}

footer a,
.site-footer a { 
  color: var(--cobalt-blue); 
  text-decoration: underline; 
}

footer a:hover,
.site-footer a:hover { color: var(--brick-red); }

.disclaimer { 
  font-size: clamp(0.8rem, 1.8vw, 0.875rem); 
  font-style: italic; 
  margin-top: var(--spacing-md); 
  color: var(--muted-gray); 
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .site-header,
  .header-toolbar,
  .button-group,
  .category-bar,
  .filter-section,
  footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .card,
  .product-card {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
  
  a {
    text-decoration: underline;
    color: #000;
  }
  
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}

/* ========================================
   ACCESSIBILITY ENHANCEMENTS
   ======================================== */

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

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .btn,
  .btn-primary,
  .filter-btn,
  .category-btn {
    border: 2px solid currentColor;
  }
  
  .card,
  .product-card {
    border: 2px solid currentColor;
  }
}

/* ========================================
   END OF SINGLE-LINE HEADER TOOLBAR CSS
   ======================================== */
