/* ============================================
   ELIAS SHOES — Main Stylesheet
   Family-owned comfort shoe store, Murrieta CA
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Warm, earthy palette — premium but inviting */
  --color-espresso: #3C2415;
  --color-leather: #8B5E3C;
  --color-warm: #C4956A;
  --color-sand: #E8D5C0;
  --color-cream: #FAF6F1;
  --color-white: #FFFFFF;
  --color-charcoal: #2D2D2D;
  --color-text: #3A3A3A;
  --color-text-light: #6B6B6B;
  --color-accent: #B8860B;
  --color-accent-hover: #9A7209;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1200px;
  --header-height: 80px;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(60,36,21,0.08);
  --shadow-md: 0 4px 16px rgba(60,36,21,0.1);
  --shadow-lg: 0 8px 32px rgba(60,36,21,0.12);
  --transition: 0.3s ease;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-leather); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--color-espresso); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); font-weight: 600; }

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

/* --- Utility --- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(250,246,241,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(60,36,21,0.06);
  transition: box-shadow var(--transition);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  width: auto;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-espresso);
  letter-spacing: -0.02em;
}

.logo-text span { color: var(--color-leather); }

.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--color-leather);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--color-espresso); }

.nav-cta {
  background: var(--color-espresso) !important;
  color: var(--color-white) !important;
  padding: 10px 24px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta:hover {
  background: var(--color-leather) !important;
  transform: translateY(-1px) !important;
}

.nav-cta::after { display: none !important; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-espresso);
  margin: 6px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-sand) 50%, var(--color-warm) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 80vw; height: 80vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,149,106,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
}

.hero-text { position: relative; z-index: 1; }

.hero-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-leather);
  margin-bottom: 20px;
  padding: 6px 16px;
  background: rgba(139,94,60,0.1);
  border-radius: 50px;
}

.hero-title {
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-title em {
  font-style: italic;
  color: var(--color-leather);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-light);
  margin-bottom: 40px;
  max-width: 480px;
  line-height: 1.8;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--color-espresso);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-leather);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-espresso);
  border: 2px solid var(--color-espresso);
}

.btn-secondary:hover {
  background: var(--color-espresso);
  color: var(--color-white);
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-leather) 0%, var(--color-espresso) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-sand);
  font-family: var(--font-display);
  padding: 40px;
  text-align: center;
}

.hero-image-placeholder .placeholder-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.6;
}

.hero-image-placeholder p {
  font-size: 0.9rem;
  opacity: 0.7;
}

.hero-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--color-white);
  padding: 16px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.hero-badge .badge-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-leather);
  line-height: 1;
}

.hero-badge .badge-label {
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* --- Trust Bar --- */
.trust-bar {
  background: var(--color-white);
  padding: 40px 0;
  border-bottom: 1px solid rgba(60,36,21,0.06);
}

.trust-items {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.trust-item svg {
  width: 24px;
  height: 24px;
  color: var(--color-leather);
  flex-shrink: 0;
}

/* --- Section Base --- */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 16px auto 0;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-leather);
  margin-bottom: 12px;
}

/* --- Story Section --- */
.story-section { background: var(--color-white); }

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.story-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.story-image img {
  width: 100%;
  height: auto;
  display: block;
}

.story-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-sand) 0%, var(--color-warm) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-espresso);
  padding: 40px;
  text-align: center;
}

.story-image-placeholder .placeholder-icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.5; }
.story-image-placeholder p { font-size: 0.85rem; opacity: 0.6; }

.story-content h2 { margin-bottom: 24px; }

.story-content p {
  margin-bottom: 16px;
  color: var(--color-text-light);
  font-size: 1.05rem;
}

.story-content p:last-of-type { margin-bottom: 32px; }

.story-highlight {
  background: var(--color-cream);
  border-left: 4px solid var(--color-leather);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 32px 0;
}

.story-highlight p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-espresso);
  margin: 0;
}

/* --- Services / What We Do --- */
.services-section { background: var(--color-cream); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--color-white);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--color-cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.service-card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.service-card p { color: var(--color-text-light); font-size: 0.95rem; }

/* --- Brands Section --- */
.brands-section { background: var(--color-white); }

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.brand-chip {
  background: var(--color-cream);
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-espresso);
  text-align: center;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.brand-chip:hover {
  border-color: var(--color-leather);
  background: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.brand-chip.featured {
  background: var(--color-espresso);
  color: var(--color-white);
  font-weight: 600;
}

.brand-chip.featured:hover {
  background: var(--color-leather);
  border-color: var(--color-leather);
}

.brands-note {
  text-align: center;
  margin-top: 32px;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* --- Testimonials --- */
.testimonials-section {
  background: linear-gradient(135deg, var(--color-espresso) 0%, var(--color-leather) 100%);
  color: var(--color-white);
}

.testimonials-section .section-tag { color: var(--color-warm); }
.testimonials-section h2 { color: var(--color-white); }
.testimonials-section .section-header p { color: var(--color-sand); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.1);
}

.testimonial-stars {
  color: var(--color-accent);
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-sand);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-white);
}

.testimonial-source {
  font-size: 0.8rem;
  color: var(--color-warm);
  margin-top: 2px;
}

/* --- Visit / CTA Section --- */
.visit-section { background: var(--color-cream); }

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.visit-info h2 { margin-bottom: 24px; }

.visit-details {
  list-style: none;
  margin-bottom: 32px;
}

.visit-details li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(60,36,21,0.08);
  align-items: flex-start;
}

.visit-details li:last-child { border-bottom: none; }

.visit-details .detail-icon {
  width: 40px;
  height: 40px;
  background: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.visit-details .detail-content { flex: 1; }
.visit-details .detail-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  font-weight: 600;
}

.visit-details .detail-value {
  font-size: 1rem;
  color: var(--color-espresso);
  font-weight: 500;
}

.visit-details .detail-note {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 2px;
}

.visit-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}

.visit-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 1rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-espresso);
  color: var(--color-sand);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo { color: var(--color-white); font-size: 1.4rem; margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; color: var(--color-warm); line-height: 1.6; max-width: 300px; }

.footer-column h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 10px; }
.footer-column a {
  color: var(--color-warm);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-column a:hover { color: var(--color-white); }

.footer-social { display: flex; gap: 12px; margin-top: 16px; }

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-warm);
  transition: all var(--transition);
  font-size: 1.1rem;
}

.footer-social a:hover {
  background: var(--color-leather);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--color-warm);
}

/* --- Responsive --- */
@media (max-width: 968px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-image-wrapper { max-width: 360px; }
  .hero-badge { bottom: -10px; left: 50%; transform: translateX(-50%); }

  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-image { max-height: 400px; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }

  .visit-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --header-height: 64px; }

  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(250,246,241,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
    z-index: 999;
  }

  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 1.2rem; }
  .menu-toggle { display: block; }

  .hero { min-height: auto; padding-top: calc(var(--header-height) + 40px); padding-bottom: 40px; }
  .hero-image-wrapper { max-width: 280px; aspect-ratio: 1; }

  .section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }

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

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
