/* =========================================================
   NAGHAM PERFUME — hero, rebuilt (split layout)
   ========================================================= */

@property --shimmer-x {
  syntax: "<percentage>";
  inherits: false;
  initial-value: -20%;
}

@property --stat {
  syntax: "<integer>";
  inherits: false;
  initial-value: 0;
}

/* ---------- Shell ---------- */
.hero {
  position: relative;
  background: var(--cream);
  overflow: clip;
}

/* ---------- Layout grid ----------
   Art column FULL-BLEEDS to the viewport's left edge — no container cap.
   Copy column keeps a container-aligned inset on the right so text
   never touches the viewport edge.
   NOTE: dir="rtl" → inline-start = RIGHT, inline-end = LEFT.        */
.hero__inner {
  max-inline-size: none;
  margin-inline: 0;
  /* Right side (text): keep the classic container inset */
  padding-inline-start: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  /* Left side (image): 0 → bleeds to the viewport edge */
  padding-inline-end: 0;
  padding-block-start: calc(var(--header-h) + clamp(1rem, 3vh, 2rem));
  padding-block-end: clamp(2rem, 6vh, 4rem);
  min-block-size: 100dvb;
  display: grid;
  /* NOTE: copy is first in DOM so it takes the FIRST fraction.
     Give copy 1fr (contained), art 2.4fr (huge, cinematic).       */
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.0fr);
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.4rem);
}

/* ---------- Copy column (right in RTL) ---------- */
.hero__copy {
  display: grid;
  gap: clamp(1.2rem, 2.6vh, 2rem);
  justify-items: start;
  text-align: start;
}

/* ---------- Art column (left) ---------- */
.hero__art {
  position: relative;
  display: grid;
  place-items: center start; /* align image to the left edge */
  translate: var(--px, 0) var(--py, 0);
  transition: translate 0.6s var(--ease-out-expo);
  margin-inline-start: 0;
}

/* Image fills the full art column, exactly */
.hero__art img {
  inline-size: 100%;
  max-inline-size: none;
  block-size: auto;
  display: block;
  animation: art-in 1.4s var(--ease-out-expo) both;
}

@keyframes art-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Eyebrow badge ---------- */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding-block: 0.5rem;
  padding-inline: 1.1rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: var(--gold-deep);
  border: 1px solid color-mix(in srgb, var(--gold) 38%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--gold-light) 7%, transparent);
}

.hero-eyebrow__dot {
  inline-size: 6px;
  block-size: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent);
}

/* ---------- Headline — restore original large size ---------- */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 1rem + 4.5vw, 5.2rem);
  line-height: 1.22;
  letter-spacing: 0;
  text-wrap: balance;
  display: grid;
  gap: 0.08em;
}

.line { display: block; }

.line--ink {
  color: var(--ink);
  font-weight: 500;
}

.line--gold {
  --shimmer-x: -20%;
  padding-block: 0.18em;
  padding-inline: 0.1em;
  margin-block: -0.18em;
  margin-inline: -0.1em;
  font-weight: 600;
  background: linear-gradient(
      100deg,
      var(--gold-deep) 0%,
      var(--gold) calc(var(--shimmer-x) - 12%),
      var(--gold-light) var(--shimmer-x),
      var(--gold) calc(var(--shimmer-x) + 12%),
      var(--gold-deep) 100%
    );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s var(--ease-luxe) 1.4s infinite;
}

@keyframes shimmer {
  0%, 55%   { --shimmer-x: -20%; }
  85%, 100% { --shimmer-x: 120%; }
}

/* ---------- Lead ---------- */
.hero-lead {
  font-size: var(--fs-lead);
  font-weight: 400;
  color: color-mix(in srgb, var(--ink) 78%, var(--ink-soft));
  line-height: 1.9;
  max-inline-size: 27rem;
  border-inline-start: 2px solid color-mix(in srgb, var(--gold) 55%, transparent);
  padding-inline-start: 1.1rem;
}

/* ---------- Actions — both buttons side by side always ---------- */
.hero-actions {
  display: flex;
  flex-direction: row;      /* force side by side */
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;        /* never stack them */
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding-block: 1.05rem;
  padding-inline: 2rem 1.5rem;
  background: var(--ink);
  color: var(--cream);
  font-size: 1rem;
  font-weight: 500;
  border-radius: 12px;
  overflow: clip;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--cream) 16%, transparent);
  transition: transform 0.35s var(--ease-out-expo),
              box-shadow 0.35s var(--ease-out-expo);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    color-mix(in srgb, var(--gold-light) 55%, transparent) 50%,
    transparent 70%
  );
  transform: translateX(-110%);
  transition: transform 0.8s var(--ease-luxe);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--cream) 16%, transparent),
              0 14px 34px -12px color-mix(in srgb, var(--ink) 55%, transparent),
              0 0 0 1px color-mix(in srgb, var(--gold) 40%, transparent);
}

.cta:hover::before { transform: translateX(110%); }
.cta:active { transform: translateY(0); }

.cta__label { position: relative; }

.cta__arrow {
  position: relative;
  display: grid;
  place-items: center;
  inline-size: 22px;
  color: var(--gold-light);
  transition: translate 0.35s var(--ease-out-expo);
}

.cta__arrow svg:dir(rtl) { transform: scaleX(-1); }
.cta:hover .cta__arrow { translate: -6px 0; }
.cta:hover .cta__arrow:dir(ltr) { translate: 6px 0; }

.cta-ghost {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding-block: 1rem;
  padding-inline: 1.5rem;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink-soft);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  border-radius: 12px;
  transition: color 0.3s var(--ease-luxe),
              background-color 0.3s var(--ease-luxe),
              border-color 0.3s var(--ease-luxe);
}

.cta-ghost:hover {
  color: #fff;
  background: var(--gold-deep);
  border-color: var(--gold-deep);
}

/* ---------- Stats strip ---------- */
.hero-stats {
  display: flex;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  margin: 0;
  margin-block-start: clamp(0.4rem, 1.6vh, 1rem);
}

.stat {
  display: grid;
  gap: 0.15rem;
  padding-inline-start: 1.1rem;
  border-inline-start: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
}

.stat dd {
  margin: 0;
  font-size: clamp(1.45rem, 1rem + 1.1vw, 1.8rem);
  font-weight: 600;
  color: var(--gold-deep);
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
}

.stat__plus { font-size: 0.7em; color: var(--gold); }

.stat dt {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.stat__n::after { content: attr(data-n); }

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .stat__n {
      --stat: 0;
      counter-reset: n var(--stat);
      animation: count-up 1.8s var(--ease-out-expo) 0.9s both;
    }
    .stat__n::after { content: counter(n); }
  }
}

@keyframes count-up {
  from { --stat: 0; }
  to   { --stat: var(--target); }
}

/* ---------- Scroll cue ---------- */
.scroll-cue {
  position: absolute;
  z-index: 3;
  inset-block-end: clamp(1rem, 3vh, 2rem);
  inset-inline-start: 50%;
  translate: -50% 0;
  inline-size: 28px;
  block-size: 48px;
  display: grid;
  justify-items: center;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.scroll-cue:hover { opacity: 1; }

.scroll-cue__line {
  inline-size: 1.5px;
  block-size: 100%;
  background: linear-gradient(to bottom, transparent, var(--gold-deep));
  animation: cue-drop 2.2s var(--ease-luxe) infinite;
  transform-origin: top;
}

@keyframes cue-drop {
  0%   { transform: scaleY(0); }
  45%  { transform: scaleY(1); transform-origin: top; }
  46%  { transform-origin: bottom; }
  90%, 100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Entrance choreography ---------- */
.hero__copy > * {
  animation: rise-in 1s var(--ease-out-expo) both;
  animation-delay: var(--d, 0s);
}

.hero-eyebrow  { --d: 0.15s; }
.hero-title    { --d: 0.28s; }
.hero-lead     { --d: 0.42s; }
.hero-actions  { --d: 0.56s; }
.hero-stats    { --d: 0.7s; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

/* =========================================================
   MOBILE ≤ 900px — single centered column
   ========================================================= */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    min-block-size: auto;
    gap: 0;
    padding-inline: var(--gutter); /* restore symmetric gutter on mobile */
    padding-block-start: calc(var(--header-h) + 1.5rem);
    padding-block-end: 3rem;
    justify-items: center;
  }

  .hero__copy {
    display: contents;
  }

  .hero-eyebrow  { order: 1; }
  .hero-title    { order: 2; margin-block-start: 1.1rem; text-align: center; }
  .hero__art     { order: 3; margin-block-start: clamp(1.2rem, 4vw, 2rem); }
  .hero-lead     { order: 4; margin-block-start: clamp(1.2rem, 4vw, 2rem); }
  .hero-actions  { order: 5; margin-block-start: 1.6rem; justify-content: center; flex-wrap: wrap; }
  .hero-stats    { order: 6; margin-block-start: 1.6rem; flex-wrap: wrap; justify-content: center; }

  .hero-title { font-size: clamp(2rem, 1rem + 5.5vw, 3rem); }

  .hero__art { inline-size: min(94vw, 560px); margin-inline-start: 0; }
  .hero__art img { inline-size: 100%; max-inline-size: 100%; }

  .hero-lead {
    text-align: center;
    border-inline-start: none;
    padding-inline-start: 0;
    max-inline-size: 34rem;
    padding-inline: var(--gutter);
  }

  .hero__inner > .hero-eyebrow,
  .hero__inner > .hero-title,
  .hero__inner > .hero-lead,
  .hero__inner > .hero-actions,
  .hero__inner > .hero-stats {
    animation: rise-in 1s var(--ease-out-expo) both;
    animation-delay: var(--d, 0s);
  }

  .scroll-cue { display: none; }
}

/* Small phones */
@media (max-width: 400px) {
  .hero-title { font-size: 1.9rem; }
  .hero-actions { gap: 0.7rem; }
  .cta { padding-inline: 1.3rem 1rem; font-size: 0.9rem; }
  .cta-ghost { padding-inline: 1.1rem; font-size: 0.9rem; }
}

/* Short desktop (laptop) */
@media (max-height: 780px) and (min-width: 901px) {
  .hero__inner { padding-block-start: calc(var(--header-h) + 1rem); }
  .hero__copy { gap: clamp(0.9rem, 2vh, 1.5rem); }
  .hero-title { font-size: clamp(2.4rem, 1rem + 3.8vw, 4rem); }
  .scroll-cue { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .line--gold {
    animation: none;
    background: linear-gradient(100deg, var(--gold-deep), var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
  }
  .hero__art img { animation: none; }
  .hero__copy > *,
  .hero__inner > * { animation: none; }
  .scroll-cue__line { animation: none; transform: scaleY(1); }
}
