/* 
  MHARI Story Page Redesign 
  Strictly scoped to the Story page to avoid global conflicts
*/

:root {
  --sr-cream: #FDFBF7;
  --sr-ivory: #FAF9F6;
  --sr-burgundy: #5C1A1B;
  --sr-rosewood: #3A0F10;
  --sr-blush: #F4EBE6;
  --sr-beige: #E6DCD3;
  --sr-white: #FFFFFF;
  --sr-serif: 'Cormorant Garamond', serif;
  --sr-sans: 'Poppins', sans-serif;
  --sr-spacing-xl: 120px;
  --sr-spacing-lg: 80px;
  --sr-spacing-md: 60px;
  --sr-spacing-sm: 40px;
}

/* Base resets for story main container */
.sr-main {
  font-family: var(--sr-serif);
  background-color: var(--sr-cream);
  color: var(--sr-rosewood);
  overflow-x: hidden;
}

/* Sections */
.sr-section {
  position: relative;
  width: 100%;
}

.sr-bg-cream { background-color: var(--sr-cream); }
.sr-bg-ivory { background-color: var(--sr-ivory); }
.sr-bg-blush { background-color: var(--sr-blush); }

.sr-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--sr-spacing-xl) 24px;
}

.sr-text-center { text-align: center; }
.sr-color-burgundy { color: var(--sr-burgundy); }
.sr-color-white { color: var(--sr-white); }
.sr-italic { font-style: italic; }

.sr-mb-2 { margin-bottom: 8px; }
.sr-mb-4 { margin-bottom: 24px; }
.sr-mb-6 { margin-bottom: 40px; }
.sr-mt-2 { margin-top: 8px; }
.sr-mt-4 { margin-top: 24px; }

/* Typography */
.sr-kicker {
  font-family: var(--sr-sans);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 400;
}

.sr-title-xlarge {
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1.1;
  font-weight: 400;
}

.sr-title-large {
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.1;
  font-weight: 400;
}

.sr-title-medium {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.2;
  font-weight: 400;
}

.sr-body-large {
  font-family: var(--sr-sans);
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.sr-body {
  font-family: var(--sr-sans);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.7;
  font-weight: 300;
}

/* Animations */
.sr-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sr-fade-in {
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sr-fade-up.visible, .sr-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section */
.sr-hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sr-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.sr-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: srHeroZoom 20s ease-out forwards;
}

@keyframes srHeroZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.sr-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.4) 100%);
  z-index: 2;
}

.sr-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--sr-white);
  padding: 0 24px;
}

/* Intro Section */
.sr-intro {
  padding: var(--sr-spacing-xl) 0;
}

/* Split Section (Image + Text) */
.sr-split {
  padding: var(--sr-spacing-lg) 24px;
}

.sr-split-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 80px;
}

.sr-split-reverse .sr-split-inner {
  flex-direction: row-reverse;
}

.sr-split-image {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.sr-split-image img {
  width: 100%;
  height: 100%;
  max-height: 800px;
  object-fit: cover;
  transition: transform 1.5s ease;
}

.sr-split-image:hover img {
  transform: scale(1.03);
}

.sr-split-text {
  flex: 1;
  max-width: 500px;
}

/* CTA Section */
.sr-final-cta {
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sr-final-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.sr-final-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sr-final-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.25);
  z-index: 2;
}

.sr-final-content {
  position: relative;
  z-index: 3;
  color: var(--sr-white);
}

.sr-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--sr-sans);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sr-white);
  text-decoration: none;
  padding: 14px 32px;
  border: 1px solid var(--sr-white);
  transition: all 0.4s ease;
}

.sr-btn:hover {
  background-color: var(--sr-white);
  color: var(--sr-burgundy);
}

.sr-arrow {
  margin-left: 12px;
  transition: transform 0.3s ease;
}

.sr-btn:hover .sr-arrow {
  transform: translateX(5px);
}

/* Mobile Responsiveness */
@media (max-width: 1023px) {
  .sr-split-inner, .sr-split-reverse .sr-split-inner {
    flex-direction: column;
    gap: 40px;
  }
  
  .sr-split-text {
    max-width: 100%;
    text-align: center;
  }
  
  .sr-split {
    padding: var(--sr-spacing-md) 24px;
  }
  
  .sr-container {
    padding: var(--sr-spacing-md) 24px;
  }
  
  .sr-split-image img {
    max-height: 60vh;
  }
}

@media (max-width: 767px) {
  .sr-hero {
    min-height: 80vh;
  }
  
  .sr-final-cta {
    height: 70vh;
  }
}

/* ==========================================================================
   SURGICAL HEADER CORRECTION (STORY PAGE ONLY)
   ========================================================================== */

/* 1. Ensure navigation text is Burgundy on light backgrounds (nav-light) */
#navbar.nav-light .nav-link,
#navbar.nav-light .nav-icon-btn,
#navbar.nav-light .nav-icon-btn svg,
#navbar.nav-light .cart-count {
    color: var(--maroon) !important;
}

#navbar.nav-light .hamburger span {
    background-color: var(--maroon) !important;
}

/* 2. Fix missing logo by converting the white logo image to Burgundy (#6f1026) */
#navbar.nav-light .site-logo {
    /* brightness(0) turns the white image black. The rest tint it to maroon. */
    filter: brightness(0) invert(11%) sepia(68%) saturate(5412%) hue-rotate(334deg) brightness(87%) contrast(98%) !important;
    opacity: 1 !important;
    visibility: visible !important;
}
