/* ============================================================
   Richmond Local — Homepage Styles
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --rl-red:    #C41E3A;
  --rl-navy:   #1B2A4A;
  --rl-gold:   #D4A017;
  --rl-cream:  #FAF7F2;
  --rl-light:  #F0EDE8;
  --rl-white:  #FFFFFF;
  --rl-dark:   #0D1520;
  --rl-text:   #2C2C2C;
  --rl-muted:  #6B7280;
  --rl-radius: 16px;
  --rl-shadow: 0 4px 24px rgba(0,0,0,0.10);
  --rl-shadow-hover: 0 12px 40px rgba(0,0,0,0.18);
  --rl-transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ---------- Global Resets for This Theme ---------- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1, h2, h3, .richmond-heading {
  font-family: 'Playfair Display', Georgia, serif;
}

/* ---------- HERO SECTION ---------- */
.richmond-hero {
  position: relative;
  overflow: hidden;
}

.richmond-hero .wp-block-cover__image-background {
  transition: transform 8s ease-out;
  transform-origin: center center;
}

.richmond-hero:hover .wp-block-cover__image-background {
  transform: scale(1.04);
}

.richmond-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 160, 23, 0.15);
  border: 1px solid rgba(212, 160, 23, 0.4);
  border-radius: 50px;
  padding: 6px 20px !important;
  margin-bottom: 16px !important;
  backdrop-filter: blur(8px);
  letter-spacing: 2px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: #D4A017 !important;
}

.richmond-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem) !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.richmond-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem) !important;
  line-height: 1.8 !important;
  color: rgba(220, 230, 242, 0.9) !important;
  max-width: 600px;
  margin: 0 auto 40px !important;
}

/* Scroll indicator at bottom of hero */
.richmond-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  animation: scrollBounce 2s infinite;
}

.richmond-scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* Hero buttons */
.richmond-hero .wp-block-button__link {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  letter-spacing: 0.3px;
  transition: all var(--rl-transition) !important;
}

.richmond-btn-primary .wp-block-button__link {
  background: var(--rl-red) !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: 16px 38px !important;
  border: 2px solid var(--rl-red) !important;
  box-shadow: 0 4px 20px rgba(196, 30, 58, 0.4) !important;
}

.richmond-btn-primary .wp-block-button__link:hover {
  background: #a01530 !important;
  border-color: #a01530 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196, 30, 58, 0.5) !important;
}

.richmond-btn-outline .wp-block-button__link {
  background: transparent !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: 14px 36px !important;
  border: 2px solid rgba(255,255,255,0.65) !important;
  backdrop-filter: blur(4px);
}

.richmond-btn-outline .wp-block-button__link:hover {
  background: rgba(255,255,255,0.15) !important;
  border-color: #fff !important;
  transform: translateY(-2px);
}

/* ---------- STATS BAR ---------- */
.richmond-stats-bar {
  background: var(--rl-red) !important;
}

.richmond-stat-item {
  text-align: center;
  padding: 32px 16px !important;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.richmond-stat-item:last-child {
  border-right: none;
}

.richmond-stat-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: 6px;
}

.richmond-stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ---------- SECTION HEADER (reusable) ---------- */
.richmond-section-tag {
  display: inline-block;
  background: rgba(196, 30, 58, 0.1);
  color: var(--rl-red) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 2.5px !important;
  text-transform: uppercase !important;
  padding: 6px 18px !important;
  border-radius: 50px;
  border: 1px solid rgba(196, 30, 58, 0.25);
  margin-bottom: 16px !important;
}

.richmond-section-heading {
  font-family: 'Playfair Display', serif !important;
  font-size: clamp(2rem, 4vw, 3rem) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  color: var(--rl-navy) !important;
  margin-bottom: 16px !important;
}

.richmond-section-heading-white {
  color: #FFFFFF !important;
}

.richmond-section-sub {
  font-size: 1.1rem !important;
  color: var(--rl-muted) !important;
  line-height: 1.75 !important;
  max-width: 620px;
}

/* ---------- WHY SHOP LOCAL — Feature Cards ---------- */
.richmond-why-section {
  background-color: var(--rl-cream) !important;
}

.richmond-feature-card {
  background: #FFFFFF !important;
  border-radius: var(--rl-radius) !important;
  padding: 40px 32px !important;
  box-shadow: var(--rl-shadow) !important;
  transition: all var(--rl-transition) !important;
  border-top: 4px solid transparent !important;
  height: 100%;
}

.richmond-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--rl-shadow-hover) !important;
  border-top-color: var(--rl-red) !important;
}

.richmond-feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(196,30,58,0.12) 0%, rgba(27,42,74,0.08) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.richmond-feature-card h3 {
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  color: var(--rl-navy) !important;
  margin-bottom: 12px !important;
}

.richmond-feature-card p {
  color: var(--rl-muted) !important;
  font-size: 0.98rem !important;
  line-height: 1.75 !important;
  margin: 0 !important;
}

/* ---------- BROWSE CATEGORIES ---------- */
.richmond-categories-section {
  background: #FFFFFF !important;
}

.richmond-category-card {
  background: var(--rl-cream) !important;
  border-radius: var(--rl-radius) !important;
  padding: 32px 24px !important;
  text-align: center;
  cursor: pointer;
  transition: all var(--rl-transition) !important;
  border: 2px solid transparent !important;
  position: relative;
  overflow: hidden;
}

.richmond-category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--rl-red), var(--rl-navy));
  opacity: 0;
  transition: opacity var(--rl-transition);
  z-index: 0;
}

.richmond-category-card:hover::before {
  opacity: 1;
}

.richmond-category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rl-shadow-hover) !important;
}

.richmond-category-card > * {
  position: relative;
  z-index: 1;
}

.richmond-category-card:hover .richmond-cat-icon,
.richmond-category-card:hover .richmond-cat-name {
  color: #FFFFFF !important;
}

.richmond-cat-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 14px;
  transition: transform var(--rl-transition);
  line-height: 1;
}

.richmond-category-card:hover .richmond-cat-icon {
  transform: scale(1.15);
}

.richmond-cat-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rl-navy) !important;
  display: block;
  margin-bottom: 6px;
  transition: color var(--rl-transition);
}

.richmond-cat-count {
  font-size: 0.8rem;
  color: var(--rl-muted);
  letter-spacing: 0.5px;
  transition: color var(--rl-transition);
}

.richmond-category-card:hover .richmond-cat-count {
  color: rgba(255,255,255,0.8) !important;
}

.richmond-category-card a {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
  position: relative;
  z-index: 1;
}

/* ---------- OUR STORY / MISSION ---------- */
.richmond-mission-section {
  background: var(--rl-navy) !important;
  position: relative;
  overflow: hidden;
}

.richmond-mission-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(196,30,58,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.richmond-mission-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212,160,23,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.richmond-mission-text h2 {
  color: #FFFFFF !important;
  font-size: clamp(2rem, 3.5vw, 2.8rem) !important;
}

.richmond-mission-text .richmond-section-tag {
  background: rgba(212,160,23,0.15) !important;
  color: var(--rl-gold) !important;
  border-color: rgba(212,160,23,0.3) !important;
}

.richmond-mission-text p {
  color: rgba(200, 215, 232, 0.9) !important;
  font-size: 1.05rem !important;
  line-height: 1.85 !important;
}

.richmond-mission-values {
  list-style: none;
  margin: 24px 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.richmond-mission-values li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(220, 230, 242, 0.9) !important;
  font-size: 1rem !important;
}

.richmond-mission-values li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--rl-gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.richmond-mission-image {
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4) !important;
  position: relative;
}

.richmond-mission-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Decorative badge on mission image */
.richmond-image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--rl-red);
  color: #fff;
  border-radius: 14px;
  padding: 14px 20px;
  font-family: 'Playfair Display', serif;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(196,30,58,0.4);
}

.richmond-image-badge strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
}

.richmond-image-badge span {
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.9;
  letter-spacing: 0.5px;
}

/* ---------- CTA SECTION ---------- */
.richmond-cta-section {
  background: linear-gradient(135deg, var(--rl-red) 0%, #9B162D 100%) !important;
  position: relative;
  overflow: hidden;
}

.richmond-cta-section::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.richmond-cta-section::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 10%;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.richmond-cta-section h2 {
  color: #FFFFFF !important;
  font-size: clamp(2rem, 4vw, 3rem) !important;
  text-shadow: 0 2px 16px rgba(0,0,0,0.2);
}

.richmond-cta-section p {
  color: rgba(255,255,255,0.85) !important;
  font-size: 1.1rem !important;
}

.richmond-btn-white .wp-block-button__link {
  background: #FFFFFF !important;
  color: var(--rl-red) !important;
  border-radius: 50px !important;
  padding: 16px 40px !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  border: 2px solid #FFFFFF !important;
  transition: all var(--rl-transition) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}

.richmond-btn-white .wp-block-button__link:hover {
  background: transparent !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25) !important;
}

.richmond-btn-outline-white .wp-block-button__link {
  background: transparent !important;
  color: #FFFFFF !important;
  border-radius: 50px !important;
  padding: 14px 38px !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  border: 2px solid rgba(255,255,255,0.7) !important;
  transition: all var(--rl-transition) !important;
}

.richmond-btn-outline-white .wp-block-button__link:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: #fff !important;
  transform: translateY(-2px);
}

/* ---------- DIVIDER WAVE ---------- */
.richmond-wave {
  overflow: hidden;
  line-height: 0;
  display: block;
}

.richmond-wave svg {
  display: block;
  width: 100%;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .richmond-stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  .richmond-stat-item:last-child {
    border-bottom: none;
  }

  .richmond-feature-card {
    padding: 28px 24px !important;
  }

  .richmond-category-card {
    padding: 24px 16px !important;
  }

  .richmond-mission-section .wp-block-columns {
    flex-direction: column-reverse;
  }
}

@media (max-width: 480px) {
  .richmond-hero h1 {
    font-size: 2.4rem !important;
  }

  .richmond-hero .wp-block-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ---------- General utility classes ---------- */
.text-center { text-align: center; }
.text-white  { color: #FFFFFF !important; }
.mb-0        { margin-bottom: 0 !important; }
.relative    { position: relative; }
