/* ==========================================================================
   Editorial Hero Section Widget Styles - The Bio Edit / Rhode Style
   ========================================================================== */

.tbe-hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  box-sizing: border-box;
  background-color: #e6ded4;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Background Media Wrapper */
.tbe-hero-media-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.tbe-hero-picture {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.tbe-hero-media-wrapper video,
.tbe-hero-media-wrapper img,
.tbe-hero-img,
.tbe-hero-picture img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: var(--tbe-img-fit, cover);
  object-position: var(--tbe-img-pos, center center);
  transform: translate(var(--tbe-img-tx, 0%), var(--tbe-img-ty, 0%)) scale(var(--tbe-img-scale, 1));
  transform-origin: center center;
  display: block;
}

/* Subtle Vignettes & Overlays */
.tbe-hero-vignette-top {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.08) 14%, transparent 30%);
  pointer-events: none;
  z-index: 2;
}

.tbe-hero-vignette-bottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(230, 222, 212, 0) 0%, rgba(230, 222, 212, 0) 75%, rgba(230, 222, 212, 0.35) 88%, rgba(230, 222, 212, 0.85) 96%, rgba(230, 222, 212, 1) 100%);
  pointer-events: none;
  z-index: 2;
}

.tbe-hero-vignette-top,
.tbe-hero-vignette-bottom,
.tbe-hero-overlay {
  transition: opacity 0.3s ease;
}

.tbe-hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* Main Outer Container */
.tbe-hero-container {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8.5rem 4rem 4.5rem;
  box-sizing: border-box;
}

/* Left Content Column */
.tbe-hero-left-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 740px;
  width: 100%;
  z-index: 5;
  box-sizing: border-box;
}

.tbe-hero-top-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

/* Eyebrow Tagline */
.tbe-hero-eyebrow {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6b5a4b;
  font-weight: 600;
  margin: 0 0 1.25rem 0;
  line-height: 1.4;
}

/* Main Editorial Headline */
.tbe-hero-headline {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 5.8vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.025em;
  font-weight: 300;
  color: #251e18;
  margin: 0 0 1.85rem 0;
  max-width: 820px;
}

.tbe-hero-headline-main {
  display: block;
  font-weight: 300;
}

.tbe-hero-headline em,
.tbe-hero-headline-italic {
  display: block;
  font-style: italic;
  font-weight: 300;
}

/* Live Search Bar */
.tbe-hero-search-wrapper {
  margin-bottom: 0.9rem;
  max-width: 520px;
  width: 100%;
  position: relative;
}

.tbe-hero-search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 9999px;
  padding: 0.75rem 1.4rem;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.05);
  transition: all 250ms cubic-bezier(0.25, 1, 0.5, 1);
  box-sizing: border-box;
}

.tbe-hero-search-form:focus-within {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.80);
  box-shadow: 0 6px 36px rgba(0, 0, 0, 0.08);
}

.tbe-hero-search-icon {
  width: 18px;
  height: 18px;
  color: rgba(37, 30, 24, 0.65);
  margin-right: 0.85rem;
  flex-shrink: 0;
}

.tbe-hero-search-input,
.tbe-hero-search-form input[type="search"].tbe-hero-search-input {
  width: 100%;
  background: transparent !important;
  border: 0 !important;
  border-style: none !important;
  outline: 0 !important;
  box-shadow: none !important;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.88rem;
  color: #251e18;
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
  -webkit-appearance: none;
  appearance: none;
}

.tbe-hero-search-input:focus,
.tbe-hero-search-form input[type="search"].tbe-hero-search-input:focus {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.tbe-hero-search-input::placeholder {
  color: rgba(92, 82, 72, 0.80);
}

/* Search Sub-Tagline */
.tbe-hero-search-subtext {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: #5a4d42;
  margin: 0 0 2rem 0;
  line-height: 1.4;
}

/* Description (Optional) */
.tbe-hero-description {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.88rem;
  color: #59493c;
  line-height: 1.65;
  max-width: 500px;
  margin: 0 0 1.8rem 0;
}

/* Actions Row & Buttons */
.tbe-hero-actions-row {
  margin: 0;
  width: 100%;
}

.tbe-hero-buttons {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.tbe-hero-btn-primary {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: #251e18;
  border: 1px solid rgba(37, 30, 24, 0.70);
  padding: 0.8rem 1.8rem;
  background: transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 220ms ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.tbe-hero-btn-primary:hover {
  background: #251e18;
  color: #ffffff;
  border-color: #251e18;
}

.tbe-hero-btn-arrow {
  display: inline-block;
  font-size: 1.15em;
  line-height: 1;
  margin-left: 0.45rem;
  transition: transform 0.2s ease;
}

.tbe-hero-btn-primary:hover .tbe-hero-btn-arrow {
  transform: translateX(3px);
}

.tbe-hero-btn-secondary,
.tbe-hero-btn-tertiary {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: #251e18;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: opacity 180ms ease, color 180ms ease;
  white-space: nowrap;
}

.tbe-hero-btn-secondary:hover,
.tbe-hero-btn-tertiary:hover {
  opacity: 0.65;
}

/* Bottom Brand Accent Block */
.tbe-hero-bottom-accent {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 3.25rem;
}

.tbe-hero-accent-line {
  display: block;
  width: 34px;
  height: 1px;
  background-color: #251e18;
  margin-bottom: 0.85rem;
}

.tbe-hero-accent-overline {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: #251e18;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.tbe-hero-accent-text {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 400;
  color: #3F3934;
  line-height: 1.3;
}

/* Right Side Column & Media */
.tbe-hero-right-col {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
  pointer-events: none;
}

.tbe-hero-side-media {
  max-width: 480px;
  width: 100%;
}

.tbe-hero-side-media img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.12));
}

@keyframes tbeHeroFloat {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.tbe-hero-float-anim {
  animation: tbeHeroFloat 6s ease-in-out infinite;
}

/* ==========================================================================
   Responsive Styles (Tablet & Mobile Mode - Luxury Editorial Design)
   ========================================================================== */
@media (max-width: 1024px) {
  .tbe-hero-section {
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #dfcebe;
  }


  .tbe-hero-container {
    padding: clamp(4.25rem, 8.5vh, 5.25rem) 1.25rem 1.75rem;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
  }

  .tbe-hero-left-col {
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    box-sizing: border-box;
  }

  .tbe-hero-top-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  /* 1. Eyebrow Tagline */
  .tbe-hero-eyebrow {
    order: 1;
    font-size: clamp(0.62rem, 2.2vw, 0.72rem);
    letter-spacing: 0.14em;
    line-height: 1.4;
    max-width: 270px;
    margin-bottom: 0.65rem;
    color: #251e18;
    font-weight: 500;
  }

  /* 2. Headline */
  .tbe-hero-headline {
    order: 2;
    font-size: clamp(1.85rem, 6.5vw, 2.5rem);
    line-height: 1.06;
    letter-spacing: -0.015em;
    margin-bottom: 0.75rem;
    color: #1a1612;
  }

  .tbe-hero-headline-main {
    display: block;
    font-weight: 400;
  }

  .tbe-hero-headline-italic {
    display: block;
    font-style: italic;
    font-weight: 400;
  }

  /* 3. Search Bar */
  .tbe-hero-search-wrapper {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin-bottom: 0.65rem;
  }

  .tbe-hero-search-form {
    background: rgba(255, 255, 255, 0.48) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.75) !important;
    border-radius: 9999px !important;
    height: 44px;
    padding: 0 1rem;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03);
  }

  .tbe-hero-search-icon {
    color: #251e18;
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    flex-shrink: 0;
  }

  .tbe-hero-search-input {
    font-size: clamp(0.78rem, 2.5vw, 0.88rem);
    color: #251e18;
  }

  .tbe-hero-search-input::placeholder {
    color: #706256;
    opacity: 0.85;
  }

  /* 4. Action Button (Primary only with right arrow) */
  .tbe-hero-actions-row {
    order: 4;
    width: 100%;
    margin-bottom: 0.75rem;
  }

  .tbe-hero-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .tbe-hero-btn-primary {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 44px;
    padding: 0 1.25rem !important;
    background-color: rgba(243, 235, 226, 0.72) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid #251e18 !important;
    color: #251e18 !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.11em !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  }

  .tbe-hero-btn-primary .tbe-hero-btn-arrow {
    display: inline-block;
    font-size: 1.15rem;
    line-height: 1;
    margin-left: 0.45rem;
    font-weight: 400;
  }

  /* Hide secondary & tertiary buttons on tablet/mobile */
  .tbe-hero-btn-secondary,
  .tbe-hero-btn-tertiary {
    display: none !important;
  }

  /* 5. Sub-tagline below button with hairline separator */
  .tbe-hero-search-subtext {
    order: 5;
    width: 100%;
    font-size: clamp(0.58rem, 2vw, 0.68rem);
    letter-spacing: 0.15em;
    color: #45372d;
    font-weight: 500;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .tbe-hero-search-subtext::before {
    content: "";
    display: block;
    width: 32px;
    height: 1px;
    background-color: #251e18;
    opacity: 0.65;
    margin-bottom: 0.45rem;
  }

  /* 6. Spacing for 4 Vials in hero-mobile.png and Bottom Accent */
  .tbe-hero-bottom-accent {
    margin-top: auto !important;
    padding-top: 1rem;
    padding-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .tbe-hero-accent-line {
    display: block;
    width: 32px;
    height: 1px;
    background-color: #251e18;
    opacity: 0.65;
    margin-bottom: 0.65rem;
  }

  .tbe-hero-accent-overline {
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    font-weight: 600;
    color: #251e18;
    margin-bottom: 0.25rem;
  }

  .tbe-hero-accent-text {
    font-size: 1.25rem;
    font-style: italic;
    color: #251e18;
    line-height: 1.2;
  }

  /* Vignette & Media adjustments */
  .tbe-hero-vignette-bottom {
    opacity: 0.05 !important;
  }

  .tbe-hero-vignette-top {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08) 0%, transparent 20%);
  }

  .tbe-hero-right-col {
    display: none;
  }
}

@media (max-width: 480px) {
  .tbe-hero-container {
    padding: clamp(3.85rem, 7.5vh, 4.75rem) 1.15rem 1.25rem;
  }

  .tbe-hero-headline {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

}
