/* ═══════════════════════════════════════════════════════════════════
   TUQANO Hero — Full-width composited hero with parallax scroll
   Prefix: .tuqano-hero__ (fully isolated from all other theme CSS)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Design tokens (scoped to this component) ──────────────────── */
.tuqano-hero {
  --th-bg:            #F5EEF6;
  --th-purple:        #6B5A86;
  --th-purple-soft:   rgba(107, 90, 134, 0.72);
  --th-purple-light:  rgba(107, 90, 134, 0.18);
  --th-max:           1680px;
}

/* ── Hide the regular site header on front page ─────────────────── */
.home .site-header,
.home .hdr { display: none !important; }

/* ── Hero shell ─────────────────────────────────────────────────── */
.tuqano-hero {
  position: relative;
  overflow: hidden;
  background: var(--th-bg);
  isolation: isolate;
  height: clamp(760px, 56vw, 940px);
}

/* ── Stage (inner max-width wrapper) ────────────────────────────── */
.tuqano-hero__stage {
  position: relative;
  width: 100%;
  max-width: var(--th-max);
  height: 100%;
  margin: 0 auto;
}

/* ── Layer 2: Amazon background (static, centred vignette) ──────── */
.tuqano-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.tuqano-hero__bg-img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 1400px);
  height: auto;
  pointer-events: none;
  /* Soft left/right fade so background reads as central vignette */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,.9) 12%,
    rgba(0,0,0,1) 38%,
    rgba(0,0,0,1) 62%,
    rgba(0,0,0,.9) 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,.9) 12%,
    rgba(0,0,0,1) 38%,
    rgba(0,0,0,1) 62%,
    rgba(0,0,0,.9) 88%,
    transparent 100%
  );
}

/* ── Layer 3: Script texts ──────────────────────────────────────── */
.tuqano-hero__script {
  position: absolute;
  color: var(--th-purple);
  font-family: 'Great Vibes', 'Allura', cursive;
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.03em;
  pointer-events: none;
  white-space: nowrap;
  z-index: 3;
  opacity: 0.68;
  user-select: none;
}

.tuqano-hero__script--viva {
  left: 5vw;
  top: 41%;
  font-size: clamp(110px, 15vw, 270px);
  transform: translateY(-50%);
}

.tuqano-hero__script--amazonia {
  right: 7vw;
  top: 42%;
  font-size: clamp(105px, 13vw, 235px);
  transform: translateY(-50%);
}

.tuqano-hero__script--elevated {
  left: 50%;
  bottom: 5%;
  font-size: clamp(58px, 6vw, 110px);
  transform: translateX(-50%);
}

/* ── Layers 4–5: Birds ──────────────────────────────────────────── */
.tuqano-hero__bird {
  position: absolute;
  margin: 0;
  z-index: 5;
  will-change: transform;
  pointer-events: none;
  filter: drop-shadow(0 12px 24px rgba(107, 90, 134, 0.13));
}

.tuqano-hero__bird img {
  width: 100%;
  height: auto;
  display: block;
}

.tuqano-hero__bird--left {
  left: 27%;
  top: 19%;
  width: clamp(160px, 17vw, 330px);
  transform: translate(-50%, -50%);
}

.tuqano-hero__bird--right {
  right: 27%;
  top: 19%;
  width: clamp(160px, 17vw, 330px);
  transform: translate(50%, -50%);
}

/* ── Layer 6: Bottle ─────────────────────────────────────────────── */
.tuqano-hero__bottle {
  position: absolute;
  left: 50%;
  top: 17%;
  width: clamp(150px, 12vw, 230px);
  margin: 0;
  z-index: 6;
  transform: translate3d(-50%, 0, 0);
  will-change: transform;
  pointer-events: none;
  filter: drop-shadow(0 32px 44px rgba(107, 90, 134, 0.20));
}

.tuqano-hero__bottle img {
  width: 100%;
  height: auto;
  display: block;
}

/* Subtle glow reflection below bottle */
.tuqano-hero__bottle::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 24%;
  background: radial-gradient(ellipse at 50% 0, var(--th-purple-light), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}

/* ── Navigation ──────────────────────────────────────────────────── */
.tuqano-hero__nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 clamp(16px, 3vw, 48px);
}

.tuqano-hero__nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 12px;
  max-width: var(--th-max);
  margin: 0 auto;
  padding-top: 24px;
}

/* Left cell: search button (auto-aligns left) */
.tuqano-hero__nav > .tuqano-hero__nav-inner > .tuqano-hero__nav-btn:first-child {
  justify-self: start;
}

.tuqano-hero__nav-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.tuqano-hero__wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
}

.tuqano-hero__logo-text {
  font-family: var(--font-serif, 'Fraunces', serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--th-purple);
  line-height: 1;
}

.tuqano-hero__logo-img {
  max-height: 42px;
  width: auto;
  display: block;
}

.tuqano-hero__logo-sub {
  font-size: 8.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--th-purple-soft);
  font-family: var(--font-sans, 'DM Sans', sans-serif);
  font-weight: 500;
}

.tuqano-hero__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(18px, 2.8vw, 44px);
}

.tuqano-hero__menu li { margin: 0; }

.tuqano-hero__menu a {
  font-family: var(--font-sans, 'DM Sans', sans-serif);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--th-purple);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.22s;
}

.tuqano-hero__menu a:hover { opacity: 1; }

.tuqano-hero__nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--th-purple);
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.22s;
  line-height: 1;
}

.tuqano-hero__nav-btn:hover { opacity: 1; }

.tuqano-hero__nav-btn svg {
  width: 19px;
  height: 19px;
  display: block;
}

.tuqano-hero__nav-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
  padding-top: 2px;
}

/* Cart badge */
.tuqano-hero__cart { position: relative; }

.tuqano-hero__cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--th-purple);
  color: #fff;
  font-size: 7.5px;
  font-weight: 700;
  line-height: 1;
  min-width: 14px;
  height: 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  font-family: var(--font-sans, sans-serif);
  pointer-events: none;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .tuqano-hero__bird--left  { left: 23%; }
  .tuqano-hero__bird--right { right: 23%; }
}

@media (max-width: 767px) {
  .tuqano-hero {
    height: clamp(620px, 120vw, 820px);
  }

  .tuqano-hero__bird {
    width: clamp(90px, 30vw, 160px);
  }

  .tuqano-hero__bird--left  { left: 16%; top: 25%; }
  .tuqano-hero__bird--right { right: 16%; top: 25%; }

  .tuqano-hero__bottle {
    width: clamp(110px, 26vw, 170px);
    top: 24%;
  }

  /* Script texts fade back a little on mobile so they're decorative, not intrusive */
  .tuqano-hero__script--viva,
  .tuqano-hero__script--amazonia { opacity: 0.3; }

  .tuqano-hero__script--viva    { font-size: clamp(70px, 22vw, 140px); }
  .tuqano-hero__script--amazonia { font-size: clamp(65px, 20vw, 130px); }
  .tuqano-hero__script--elevated { font-size: clamp(40px, 10vw, 72px); }

  /* Simplify nav on mobile */
  .tuqano-hero__nav-inner {
    grid-template-columns: 36px 1fr 36px;
    padding-top: 14px;
  }

  .tuqano-hero__menu { display: none; }
}

/* ── Prefers reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .tuqano-hero__bird,
  .tuqano-hero__bottle {
    will-change: auto !important;
    transform: none !important;
  }

  .tuqano-hero__bird--left  { transform: translate(-50%, -50%) !important; }
  .tuqano-hero__bird--right { transform: translate(50%,  -50%) !important; }
  .tuqano-hero__bottle       { transform: translate3d(-50%, 0, 0) !important; }
}
