/* ==========================================================================
   HERO SPLIT-REVEAL — Premium Editorial Hero
   Uses #hero-reveal ID for high specificity to beat Flatsome defaults.
   ========================================================================== */

/* Fix WordPress wpautop adding <br> and <p> wrappers */
#hero-reveal br {
  display: none !important;
}

#hero-reveal>p:not([class]) {
  margin: 0 !important;
  padding: 0 !important;
  display: contents !important;
}

#hero-reveal .qbs-hero-reveal__content>p:not([class]) {
  margin: 0 !important;
  padding: 0 !important;
  display: contents !important;
}

/* ==========================================================================
   CONTAINER
   ========================================================================== */
#hero-reveal.qbs-hero-reveal {
  background-color: var(--bg-secondary);
  background-size: cover !important;
  background-position: center !important;
  min-height: 70vh;
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: relative !important;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100vw !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

/* Subtle film grain texture — premium feel */
#hero-reveal.qbs-hero-reveal::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ==========================================================================
   OVERLAY — Cinematic gradient
   ========================================================================== */
#hero-reveal .qbs-hero-reveal__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(15, 15, 12, 0.15) 0%,
      rgba(15, 15, 12, 0.05) 40%,
      rgba(15, 15, 12, 0.35) 75%,
      rgba(15, 15, 12, 0.55) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ==========================================================================
   CONTENT
   ========================================================================== */
#hero-reveal .qbs-hero-reveal__content {
  text-align: center;
  padding: 0 var(--container-padding);
  max-width: 960px;
  position: relative;
  z-index: 2;
  animation: qbs-hero-fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

/* ==========================================================================
   HEADING — High specificity to beat Flatsome h1 defaults
   ========================================================================== */
#hero-reveal h1.qbs-hero-reveal__heading,
#hero-reveal .qbs-hero-reveal__heading {
  font-family: 'Playfair Display', var(--font-heading), serif !important;
  font-size: clamp(2.5rem, 7vw, 6rem) !important;
  font-weight: var(--fw-medium) !important;
  letter-spacing: 0.12em !important;
  line-height: 1.15 !important;
  text-transform: uppercase !important;
  text-align: center !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--text-on-dark) !important;
  -webkit-text-fill-color: var(--text-on-dark) !important;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.18);
  border: none !important;
  background: none !important;
}

#hero-reveal .qbs-hero-reveal__line {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
}

/* ==========================================================================
   GOLD ACCENT LINE
   ========================================================================== */
#hero-reveal .qbs-hero-reveal__accent {
  width: 64px;
  height: 1px;
  background: var(--brand-primary) !important;
  margin: var(--space-xl) auto !important;
  animation: qbs-accent-grow 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

/* ==========================================================================
   SUBTITLE + DESCRIPTION
   ========================================================================== */
#hero-reveal .qbs-hero-reveal__subtitle {
  font-family: var(--font-heading) !important;
  font-size: 1.25rem !important;
  color: rgba(255, 255, 255, 0.9) !important;
  letter-spacing: 0.08em;
  margin: 0 0 var(--space-xs) !important;
  text-shadow: none;
  font-style: italic;
}

#hero-reveal .qbs-hero-reveal__desc {
  font-family: var(--font-label) !important;
  font-size: 11px !important;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.55) !important;
  margin: 0 !important;
}

/* ==========================================================================
   CTA BUTTON — Premium glass style
   ========================================================================== */
#hero-reveal .qbs-hero-reveal__cta {
  display: inline-flex !important;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-2xl) !important;
  padding: 1em 2.75em !important;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light)) !important;
  color: var(--text-on-primary) !important;
  border: none !important;
  border-radius: 0 !important;
  font-family: var(--font-label) !important;
  font-size: 11px !important;
  font-weight: var(--fw-medium) !important;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-decoration: none !important;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep on CTA */
#hero-reveal .qbs-hero-reveal__cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.15) 50%,
      transparent 100%);
  animation: qbs-shimmer 4s ease-in-out infinite 2s;
}

#hero-reveal .qbs-hero-reveal__cta:hover {
  box-shadow: 0 8px 30px rgba(184, 134, 11, 0.25);
  filter: brightness(1.1);
  color: var(--text-on-primary) !important;
  transform: translateY(-2px);
}

#hero-reveal .qbs-hero-reveal__arrow {
  display: inline-block;
  transition: transform var(--transition-base);
  position: relative;
  z-index: 1;
}

#hero-reveal .qbs-hero-reveal__cta:hover .qbs-hero-reveal__arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   SCROLL INDICATOR
   ========================================================================== */
#hero-reveal .qbs-hero-reveal__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  z-index: 2;
  align-items: center;
  gap: 6px;
}

#hero-reveal .qbs-hero-reveal__scroll-line {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.3);
  animation: qbs-scroll-pulse 2s ease-in-out infinite;
}

#hero-reveal .qbs-hero-reveal__scroll-text {
  font-family: var(--font-label);
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   CORNER MARKS
   ========================================================================== */
#hero-reveal .qbs-hero-reveal__corner {
  position: absolute;
  width: 16px;
  height: 16px;
  z-index: 2;
}

#hero-reveal .qbs-hero-reveal__corner::before,
#hero-reveal .qbs-hero-reveal__corner::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
}

#hero-reveal .qbs-hero-reveal__corner--tr {
  top: 32px;
  right: 32px;
}

#hero-reveal .qbs-hero-reveal__corner--tr::before {
  top: 0;
  right: 0;
  width: 16px;
  height: 1px;
}

#hero-reveal .qbs-hero-reveal__corner--tr::after {
  top: 0;
  right: 0;
  width: 1px;
  height: 16px;
}

#hero-reveal .qbs-hero-reveal__corner--bl {
  bottom: 32px;
  left: 32px;
}

#hero-reveal .qbs-hero-reveal__corner--bl::before {
  bottom: 0;
  left: 0;
  width: 16px;
  height: 1px;
}

#hero-reveal .qbs-hero-reveal__corner--bl::after {
  bottom: 0;
  left: 0;
  width: 1px;
  height: 16px;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes qbs-scroll-pulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(1);
  }

  50% {
    opacity: 0.6;
    transform: scaleY(1.3);
  }
}

@keyframes qbs-hero-fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes qbs-accent-grow {
  from {
    transform: scaleX(0);
    opacity: 0;
  }

  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes qbs-shimmer {
  0% {
    left: -100%;
  }

  30% {
    left: 100%;
  }

  100% {
    left: 100%;
  }
}

/* ==========================================================================
   RESPONSIVE — Tablet
   ========================================================================== */
@media (max-width: 1279px) {

  #hero-reveal h1.qbs-hero-reveal__heading,
  #hero-reveal .qbs-hero-reveal__heading {
    font-size: clamp(2.2rem, 7vw, 4.5rem) !important;
  }
}

/* ==========================================================================
   RESPONSIVE — Mobile — Premium editorial bottom-aligned layout
   ========================================================================== */
@media (max-width: 768px) {

  /* Compact mobile hero — 60vh */
  #hero-reveal.qbs-hero-reveal {
    min-height: 60svh;
    min-height: 60vh;
    /* fallback */
    align-items: flex-end !important;
    justify-content: flex-end !important;
  }

  /* Stronger bottom gradient for text readability on mobile */
  #hero-reveal .qbs-hero-reveal__overlay {
    background: linear-gradient(to bottom,
        rgba(10, 10, 8, 0.0) 0%,
        rgba(10, 10, 8, 0.0) 30%,
        rgba(10, 10, 8, 0.25) 55%,
        rgba(10, 10, 8, 0.60) 75%,
        rgba(10, 10, 8, 0.78) 100%);
  }

  /* Content pinned to bottom with safe area padding */
  #hero-reveal .qbs-hero-reveal__content {
    text-align: left;
    padding: 0 var(--space-lg) calc(env(safe-area-inset-bottom, 0px) + 28px) !important;
    max-width: 100%;
    animation-delay: 0.3s;
  }

  /* Refined mobile heading — smaller, elegant */
  #hero-reveal h1.qbs-hero-reveal__heading,
  #hero-reveal .qbs-hero-reveal__heading {
    font-size: clamp(1.6rem, 8vw, 2.4rem) !important;
    letter-spacing: 0.08em !important;
    line-height: 1.2 !important;
    text-align: left !important;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  }

  /* Accent line — left aligned on mobile */
  #hero-reveal .qbs-hero-reveal__accent {
    width: 40px;
    margin: var(--space-md) 0 !important;
  }

  /* Subtitle */
  #hero-reveal .qbs-hero-reveal__subtitle {
    font-size: var(--fs-body) !important;
    text-align: left;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.85) !important;
  }

  /* Description — show on mobile as a subtle tagline */
  #hero-reveal .qbs-hero-reveal__desc {
    display: block !important;
    text-align: left;
    font-size: 10px !important;
    color: rgba(255, 255, 255, 0.45) !important;
    margin-top: var(--space-2xs) !important;
  }

  /* CTA — full width, glass-morphism style */
  #hero-reveal .qbs-hero-reveal__cta {
    width: 100%;
    justify-content: center;
    margin-top: var(--space-lg) !important;
    padding: 1.1em 2em !important;
    border-radius: var(--radius-sm) !important;
    font-size: 10px !important;
    letter-spacing: 0.22em;
    background: linear-gradient(135deg,
        rgba(184, 134, 11, 0.9),
        rgba(212, 160, 23, 0.85)) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  /* Hide scroll indicator & corners on mobile */
  #hero-reveal .qbs-hero-reveal__scroll,
  #hero-reveal .qbs-hero-reveal__corner {
    display: none;
  }
}

/* ==========================================================================
   RESPONSIVE — Small phones (≤ 380px)
   ========================================================================== */
@media (max-width: 380px) {

  #hero-reveal h1.qbs-hero-reveal__heading,
  #hero-reveal .qbs-hero-reveal__heading {
    font-size: 1.5rem !important;
    letter-spacing: 0.06em !important;
  }

  #hero-reveal .qbs-hero-reveal__subtitle {
    font-size: 0.9rem !important;
  }

  #hero-reveal .qbs-hero-reveal__cta {
    padding: 1em 1.5em !important;
    font-size: 9px !important;
  }
}