/* ============================================================
   Section 1 — Hero (gulejaan.qd.je)
   ============================================================ */

.hero {
  position: relative;
  min-height: clamp(720px, calc(100svh - var(--gj-announcement-height) - var(--gj-header-height)), 920px);
  overflow: hidden;
  background: var(--gj-ivory);
  isolation: isolate;
}

/* ---------- Background image ---------- */

.hero__background {
  position: absolute;
  inset: 0;
  background-color: var(--gj-ivory);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-image: url("/assets/herobg-1600.webp");
  background-image: image-set(
    url("/assets/herobg-1600.avif") type("image/avif"),
    url("/assets/herobg-1600.webp") type("image/webp")
  );
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(255, 249, 239, 0.98) 0%,
    rgba(255, 249, 239, 0.92) 27%,
    rgba(255, 249, 239, 0.62) 42%,
    rgba(255, 249, 239, 0.08) 60%,
    rgba(255, 249, 239, 0) 72%
  );
  pointer-events: none;
}

/* ---------- Botanical line art ---------- */

.hero__botanical {
  position: absolute;
  z-index: 2;
  color: var(--gj-gold-600);
  pointer-events: none;
}

.hero__botanical--tl {
  top: 18px;
  left: 14px;
  width: clamp(90px, 9vw, 150px);
  opacity: 0.16;
}

.hero__botanical--bl {
  bottom: 10px;
  left: clamp(18px, 3vw, 60px);
  width: clamp(80px, 8vw, 130px);
  opacity: 0.13;
  transform: rotate(-8deg);
}

/* ---------- Content column ---------- */

.hero__content {
  position: absolute;
  top: clamp(74px, 10vh, 112px);
  left: clamp(72px, 7vw, 135px);
  z-index: 3;
  width: min(var(--gj-hero-content-max), 38vw);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 22px;
  font-family: var(--gj-font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gj-plum);
  animation: hero-fade-up 450ms var(--gj-ease) both;
}

.hero__eyebrow-line {
  width: 54px;
  height: 1px;
  background: var(--gj-gold-600);
  flex-shrink: 0;
}

.hero__title {
  margin: 0;
  max-width: 550px;
  font-family: var(--gj-font-display);
  font-size: clamp(4.5rem, 6.4vw, 7rem);
  font-weight: 500;
  line-height: 0.84;
  letter-spacing: -0.035em;
  color: var(--gj-mehroon-700);
  animation: hero-fade-up 650ms var(--gj-ease) 60ms both;
}

.hero__title-line {
  display: block;
}

.hero__title-line--accent {
  font-style: italic;
  font-weight: 500;
  color: var(--gj-ochre);
}

.hero__body {
  max-width: 420px;
  margin: 28px 0 0;
  font-family: var(--gj-font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--gj-rose-ink);
  animation: hero-fade-up 600ms var(--gj-ease) 180ms both;
}

.hero__cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 32px;
  animation: hero-fade-up 600ms var(--gj-ease) 240ms both;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding-inline: 30px;
  border-radius: 28px;
  background: var(--gj-mehroon-700);
  color: var(--gj-ivory);
  font-family: var(--gj-font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 220ms var(--gj-ease), transform 220ms var(--gj-ease),
    box-shadow 220ms var(--gj-ease);
}

.hero__btn:hover {
  background: var(--gj-mehroon-800);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(73, 22, 24, 0.22);
}

.hero__btn svg {
  transition: transform 220ms var(--gj-ease);
}

.hero__btn:hover svg {
  transform: translateX(4px);
}

.hero__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 6px;
  font-family: var(--gj-font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gj-mehroon-700);
  white-space: nowrap;
}

.hero__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gj-gold-600);
  transform-origin: left;
  transition: transform 220ms var(--gj-ease);
}

.hero__link:hover::after {
  transform: scaleX(0.55);
}

/* ---------- Info cards (right) ---------- */

.hero__reviews {
  position: absolute;
  top: 70px;
  right: clamp(50px, 6vw, 110px);
  z-index: 4;
  display: none;
  flex-direction: column;
  gap: 18px;
  width: 290px;
}

@media (min-width: 1280px) {
  .hero__reviews {
    display: flex;
  }
}

.hero-card {
  min-height: 130px;
  padding: 20px 22px;
  background: rgba(255, 249, 239, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--gj-gold-soft);
  border-radius: 20px;
  box-shadow: var(--gj-shadow-card);
  animation: hero-card-in 550ms var(--gj-ease) both;
}

.hero-card:nth-child(1) { animation-delay: 450ms; }
.hero-card:nth-child(2) { animation-delay: 530ms; }
.hero-card:nth-child(3) { animation-delay: 610ms; }

.hero-card__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-family: var(--gj-font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gj-plum);
}

.hero-card__eyebrow svg {
  color: var(--gj-gold-600);
  flex-shrink: 0;
}

.hero-card__title {
  margin: 0 0 8px;
  font-family: var(--gj-font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--gj-mehroon-700);
}

.hero-card__copy {
  margin: 0;
  font-family: var(--gj-font-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--gj-rose-ink);
}

/* ---------- Feature strip ---------- */

.hero__features {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(920px, 68vw);
  min-height: 120px;
  padding: 16px 10px;
  background: rgba(255, 249, 239, 0.96);
  border: 1px solid rgba(184, 145, 53, 0.6);
  border-radius: 28px;
  box-shadow: var(--gj-shadow-card);
  animation: hero-strip-in 600ms var(--gj-ease) 620ms both;
}

.hero-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-inline: 8px;
  text-align: center;
}

.hero-feature + .hero-feature {
  border-left: 1px solid rgba(184, 145, 53, 0.22);
}

.hero-feature svg {
  color: var(--gj-gold-600);
}

.hero-feature span {
  font-family: var(--gj-font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gj-mehroon-700);
}

/* ---------- Entrance keyframes ---------- */

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-card-in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes hero-strip-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow,
  .hero__title,
  .hero__body,
  .hero__cta,
  .hero-card,
  .hero__features {
    animation: none !important;
  }
}

/* ============================================================
   Tablet 768–1023
   ============================================================ */

@media (max-width: 1023px) {
  .hero__background {
    background-position: 62% center;
  }

  .hero__overlay {
    background: linear-gradient(
      90deg,
      rgba(255, 249, 239, 0.98) 0%,
      rgba(255, 249, 239, 0.94) 32%,
      rgba(255, 249, 239, 0.78) 46%,
      rgba(255, 249, 239, 0.38) 58%,
      rgba(255, 249, 239, 0.06) 74%,
      rgba(255, 249, 239, 0) 84%
    );
  }

  .hero__content {
    width: min(560px, 55vw);
  }

  .hero__body {
    max-width: 360px;
  }

  .hero__title {
    font-size: clamp(56px, 7vw, 76px);
  }

  .hero__features {
    width: min(880px, 92vw);
    min-height: 112px;
    bottom: 24px;
  }
}

@media (max-width: 899px) {
  .hero__features {
    display: flex;
    left: 0;
    right: 0;
    bottom: 14px;
    width: auto;
    margin-inline: 16px;
    transform: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    animation-name: hero-fade-up;
    padding: 12px 6px;
    min-height: 92px;
  }

  .hero-feature {
    flex: 0 0 auto;
    width: clamp(150px, 42vw, 170px);
    scroll-snap-align: start;
    gap: 6px;
  }
}

/* ============================================================
   Mobile < 768  (custom composition — not a shrunken desktop)
   ============================================================ */

@media (max-width: 767px) {
  .hero {
    min-height: clamp(780px, calc(100svh - 60px), 850px);
  }

  .hero__background {
    background-size: auto 54%;
    background-position: 70% 100%;
    background-image: url("/assets/herobg-768.webp");
    background-image: image-set(
      url("/assets/herobg-768.avif") type("image/avif") 1x,
      url("/assets/herobg-768.webp") type("image/webp") 1x,
      url("/assets/herobg-1600.avif") type("image/avif") 2x,
      url("/assets/herobg-1600.webp") type("image/webp") 2x
    );
  }

  .hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(255, 249, 239, 1) 0%,
      rgba(255, 249, 239, 1) 34%,
      rgba(255, 249, 239, 0.92) 44%,
      rgba(255, 249, 239, 0.55) 56%,
      rgba(255, 249, 239, 0.08) 68%,
      rgba(255, 249, 239, 0) 80%
    );
  }

  .hero__content {
    position: relative;
    z-index: 3;
    top: auto;
    left: auto;
    width: auto;
    padding: 44px 22px 0;
  }

  .hero__eyebrow {
    font-size: 10.5px;
    letter-spacing: 0.22em;
    margin-bottom: 16px;
    gap: 12px;
  }

  .hero__eyebrow-line {
    width: 34px;
  }

  .hero__title {
    font-size: clamp(50px, 13.5vw, 58px);
    line-height: 0.88;
    max-width: 100%;
  }

  .hero__body {
    max-width: 340px;
    font-size: 14.5px;
    margin-top: 22px;
  }

  .hero__cta {
    gap: 18px;
    margin-top: 26px;
  }

  .hero__btn {
    height: 52px;
    padding-inline: 26px;
  }

  .hero__botanical--tl {
    width: 90px;
    top: 8px;
    left: 4px;
  }

  .hero__botanical--bl {
    display: none;
  }
}
