/* ===========================================
   HOME PAGE HERO - SPLIT LAYOUT
   Desktop: Split hero with image left, content right
   Mobile: Full image background with overlay
   =========================================== */

/* ── Split Hero Container ── */
.hero--split {
  position: relative;
  min-height: auto;
  display: block;
  background: var(--white);
  padding: 0;
}

/* ── Left column container (image + quote) ── */
.hero__left-column {
  float: left;
  width: 40%;
  margin: 0 2rem 1rem 0;
}

/* ── Left Side: Image (4:5 aspect ratio) ── */
.hero__image-side {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.hero__image-side::after {
  display: none;
}

.hero__image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ── Quote below image ── */
.hero__quote-below-image {
  background: var(--section-bg);
  padding: 2.5rem 2rem 2rem 3rem;
  border-left: 4px solid var(--gold);
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero__quote-below-image::before {
  content: '\201C';
  position: absolute;
  top: 0;
  left: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 8rem;
  color: var(--navy);
  line-height: 1;
}

.hero__quote-below-image::after {
  content: '\201D';
  position: absolute;
  bottom: 2rem;
  right: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 6rem;
  color: var(--navy);
  line-height: 1;
}

.hero__quote-below-image blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-style: italic;
  color: var(--navy);
  margin: 0 0 1rem 0;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.hero__quote-below-image .quote-author {
  color: var(--text-light);
  font-size: 0.95rem;
  text-align: right;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ── Right Side: Content (clean split, no wrapping) ── */
.hero__content-side {
  width: 55%;
  padding: 2rem 4rem 2rem 2rem;
  background: var(--white);
  overflow: visible;
  float: right;
}

.hero__content-wrapper {
  max-width: none;
  margin: 0;
}

.hero__content-side h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--navy);
  line-height: 1.3;
}

.hero__content-side p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  color: var(--text);
  text-align: justify;
}

/* ── Name Banner (outside image, both desktop and mobile) ── */
.hero__name-banner {
  background: rgba(0, 0, 0, 0.95);
  padding: 1rem 4rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  position: relative;
  z-index: 3;
}

.hero__name-banner .hero__title {
  font-size: 1.5rem;
  color: var(--white);
  margin: 0;
  line-height: 1.2;
}

.hero__name-banner .hero__dates {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* ── Quote on left side below hero ── */
.hero__quote-side {
  width: 50%;
  padding: 3rem;
  background: var(--white);
  border-right: 1px solid var(--border-light);
}

.hero__quote-side blockquote {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--navy);
  margin: 0 0 1rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--gold);
}

.hero__quote-side .quote-author {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-left: 1.5rem;
}

/* ── Content continues on right side below hero ── */
.hero__content-continue {
  width: 50%;
  padding: 3rem;
  background: var(--white);
}

/* ── MOBILE VIEW ── */
@media (max-width: 1024px) {
  /* Name banner hidden on mobile - shown inside hero overlay instead */
  .hero__name-banner {
    display: none !important;
  }

  /* Make hero section full width and first thing visible */
  .hero--split {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding: 0;
    width: 100%;
    margin-top: 60px; /* Push down below fixed navigation */
  }

  /* Left column on mobile - only show image, not quote */
  .hero__left-column {
    float: none;
    width: 100%;
    margin: 0;
    display: block;
    order: 1;
  }

  /* Hide the desktop quote below image on mobile */
  .hero__quote-below-image {
    display: none;
  }

  /* Full screen hero with image background - covers full mobile width */
  .hero__image-side {
    width: 100%;
    min-height: 100vh;
    position: relative;
    float: none;
  }

  .hero__image-side img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Full black overlay over entire hero image for mobile */
  .hero__image-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
    pointer-events: none;
  }

  /* Hide desktop overlay on mobile */
  .hero__desktop-overlay {
    display: none !important;
  }

  /* Mobile overlay content - positioned over image */
  .hero__mobile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0;
    z-index: 2;
    color: var(--white);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  /* Forever in our hearts - positioned above subtitle */
  .hero__mobile-overlay .hero__eyebrow {
    color: var(--gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0 0 0.75rem 0;
    padding: 0;
    background: none;
    font-style: italic;
  }

  /* Bottom content container - positioned at very bottom of hero */
  .hero__bottom-content {
    width: 100%;
    padding: 1.5rem;
    position: relative;
    z-index: 2;
  }

  .hero__mobile-overlay .hero__subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    padding: 0;
    background: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  }

  .hero__mobile-overlay .hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    background: none;
    margin-bottom: 1rem;
  }

  /* Mobile name banner strip - positioned between image and content */
  .hero__name-banner-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
    padding: 1rem 1.5rem;
    width: 100%;
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
  }

  .hero__name-banner-mobile .hero__title {
    font-size: 1.25rem;
    color: var(--white);
    margin: 0;
    line-height: 1.2;
    font-family: 'Playfair Display', serif;
    text-align: center;
    white-space: nowrap;
  }

  .hero__name-banner-mobile .hero__dates {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0.5rem 0 0 0;
    text-align: center;
  }

  /* Content side becomes full width on mobile */
  .hero__content-side {
    display: none;
  }

  /* Newspaper layout for mobile content */
  .hero__newspaper-layout {
    column-count: 1;
  }

  .hero__newspaper-layout p {
    text-align: justify;
    hyphens: auto;
  }

  /* Float image for newspaper effect - wrapped beside paragraph */
  .hero__inline-image--wrapped {
    float: left;
    width: 50%;
    max-width: 180px;
    margin: 0 1rem 0.5rem 0;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 4px;
  }

  .hero__inline-image--wrapped img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 4px;
  }

  /* Right-floated variant */
  .hero__inline-image--wrapped.hero__inline-image--right {
    float: right;
    margin: 0 0 0.5rem 1rem;
  }

  /* Regular inline image (fallback) */
  .hero__inline-image:not(.hero__inline-image--wrapped) {
    float: none;
    width: 100%;
    margin: 1.5rem 0;
    text-align: center;
  }

  .hero__inline-image:not(.hero__inline-image--wrapped) img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
  }

  /* Hide desktop quote/content split on mobile */
  .hero__below-fold {
    display: none;
  }

  .hero__mobile-content {
    display: block;
    padding: 2rem 1.5rem;
    background: var(--white);
  }

  .hero__mobile-content h2 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
    line-height: 1.3;
  }

  .hero__mobile-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
  }

  /* Quote section for mobile - styled to match desktop */
  .hero__mobile-quote {
    background: var(--section-bg);
    padding: 2.5rem 1.5rem 2rem 2.5rem;
    margin: 0;
    border-left: 4px solid var(--gold);
    position: relative;
    overflow: hidden;
  }

  .hero__mobile-quote::before {
    content: '\201C';
    position: absolute;
    top: 0;
    left: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    color: var(--navy);
    line-height: 1;
    opacity: 0.8;
  }

  .hero__mobile-quote::after {
    content: '\201D';
    position: absolute;
    bottom: 1.5rem;
    right: 1rem;
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--navy);
    line-height: 1;
    opacity: 0.8;
  }

  .hero__mobile-quote blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--navy);
    margin: 0 0 1rem 0;
    line-height: 1.6;
    position: relative;
    z-index: 1;
  }

  .hero__mobile-quote .quote-author {
    color: var(--text-light);
    font-size: 0.95rem;
    text-align: right;
    margin: 0;
    position: relative;
    z-index: 1;
  }

  /* Mobile content starts after quote */
  .hero__mobile-content {
    display: block;
    padding: 2rem 1.5rem;
    background: var(--white);
  }
}

/* ── STRICT MOBILE BREAKPOINT (matches style.css) ── */
@media (max-width: 768px) {
  /* Force single column layout */
  .hero--split {
    display: flex !important;
    flex-direction: column !important;
  }
  
  .hero__left-column {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
  }
  
  .hero__image-side {
    width: 100% !important;
    float: none !important;
  }
  
  .hero__content-side {
    display: none !important;
  }
  
  .hero__quote-below-image {
    display: none !important;
  }
  
  .hero__name-banner {
    display: none !important;
  }
  
  /* Show mobile name banner strip */
  .hero__name-banner-mobile {
    display: flex !important;
  }
}

/* ── DESKTOP BELOW-FOLD LAYOUT ── */
@media (min-width: 1025px) {
  .hero__mobile-overlay,
  .hero__mobile-content,
  .hero__mobile-quote,
  .hero__name-banner-mobile {
    display: none;
  }

  /* Desktop overlay at 65% height of image */
  .hero__desktop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0;
    z-index: 2;
    color: var(--white);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  /* Name banner at top - blackish background - now separate from image */
  .hero__name-banner {
    background: rgba(0, 0, 0, 0.95);
    padding: 1rem 1.5rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    z-index: 3;
  }

  .hero__name-banner .hero__title {
    font-size: 1.5rem;
    color: var(--white);
    margin: 0;
    line-height: 1.2;
  }

  .hero__name-banner .hero__dates {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
  }

  /* Forever in our hearts - positioned above subtitle */
  .hero__desktop-overlay .hero__eyebrow {
    color: var(--gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0 0 0.75rem 0;
    padding: 0;
    background: none;
    font-style: italic;
  }

  /* Bottom content container - unified black background at bottom */
  .hero__desktop-overlay .hero__bottom-content {
    margin-top: auto;
    width: 100%;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.85);
    position: relative;
  }

  /* Gradient fade above the bottom content */
  .hero__desktop-overlay .hero__bottom-content::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.85) 100%
    );
    pointer-events: none;
  }

  .hero__desktop-overlay .hero__subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    padding: 0;
    background: none;
  }

  .hero__desktop-overlay .hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    background: none;
  }

  .hero__below-fold {
    display: flex;
    clear: both;
    background: var(--white);
    min-height: auto;
    padding: 2rem 4rem;
    margin-top: 0;
  }

  .hero__quote-side {
    width: 40%;
    padding: 2rem;
    background: var(--section-bg);
    border-right: 1px solid var(--border-light);
    margin-top: 1.25rem;
    position: relative;
    z-index: 2;
  }

  .hero__content-continue {
    width: 60%;
    padding: 0 0 0 2rem;
    background: var(--white);
  }

  .hero__content-continue {
    width: 60%;
    padding: 0 0 0 2rem;
    background: var(--white);
  }

  /* Desktop inline images matching mobile styling */
  .hero__desktop-images {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: flex-start;
    margin-left: 1rem;
  }

  .hero__desktop-images .hero__inline-image--wrapped {
    width: 45%;
    max-width: 150px;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 4px;
  }

  .hero__desktop-images .hero__inline-image--wrapped img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 4px;
  }

  /* Ensure text clears the float properly */
  .hero--split::after {
    content: '';
    display: table;
    clear: both;
  }
}

/* ── Additional styling for the intro quote in intro section ── */
.intro__quote {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--navy);
  margin: 0 0 1rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--gold);
}

.intro__quote-author {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-left: 1.5rem;
}
