/* ==========================================================================
   Layout: header, hero, scrolling banner, promo band, footer
   ========================================================================== */

/* ----- Header ----- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
  background: var(--espresso);
  color: var(--cream);
}

.logo {
  font-size: 26px;
  color: inherit;
  text-decoration: none;
}

.logo span {
  color: var(--saffron);
}

.site-nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.site-nav a {
  color: var(--cream);
  opacity: 0.85;
  text-decoration: none;
}

.site-nav a:hover {
  opacity: 1;
  color: var(--saffron);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.currency-picker {
  padding: 6px 10px;
  border: 1px solid #5A4338;
  border-radius: 99px;
  background: var(--espresso);
  color: var(--cream);
  font: inherit;
}

.bag-button {
  padding: 8px 16px;
  border-radius: 99px;
  background: var(--saffron);
  color: var(--espresso);
  font-weight: 700;
}

.bag-button.is-bumping {
  animation: bump 0.4s;
}

/* ----- Hero ----- */

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 88px) clamp(56px, 6vw, 72px);
  background: var(--espresso);
  color: var(--cream);
}

.hero__title {
  position: relative;
  z-index: 2;
  max-width: 900px;
  font-size: clamp(64px, 10.5vw, 152px);
  line-height: 0.86;
}

.hero__title span {
  color: var(--saffron);
}

.hero__lede {
  position: relative;
  z-index: 2;
  max-width: 460px;
  margin-top: 28px;
  font-size: 18px;
  color: var(--text-on-dark);
}

.hero__actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Right-hand artwork: orange sun, floating product, spinning ring, price tag */
.hero__art {
  position: absolute;
  top: 20px;
  right: -40px;
  width: min(640px, 60vw);
  aspect-ratio: 1;
}

.hero__sun {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--saffron), var(--terracotta) 70%);
  animation: pulse 4s ease-in-out infinite;
}

.hero__product {
  position: absolute;
  top: 10%;
  left: 24%;
  width: 56%;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 24px 30px var(--shadow));
}

.hero__product .garment {
  width: 100%;
}

.hero__ring {
  position: absolute;
  top: 4%;
  left: -14%;
  width: 22%;
  animation: spin 10s linear infinite;
}

.hero__tag {
  position: absolute;
  right: 16%;
  bottom: 12%;
  z-index: 3;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--cream);
  color: var(--espresso);
  font-size: 13px;
  text-align: left;
  animation: float 4s ease-in-out infinite reverse;
}

/* ----- Scrolling banner ----- */

.marquee {
  overflow: hidden;
  padding-block: 14px;
  background: var(--terracotta);
  color: var(--cream);
  font-size: 20px;
  white-space: nowrap;
}

.marquee__track {
  display: inline-block;
  animation: marquee 18s linear infinite;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ----- Promo band ----- */

.promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 56px;
  background: var(--saffron);
}

.promo h2 {
  font-size: clamp(48px, 6vw, 80px);
  line-height: 0.9;
}

/* ----- Footer ----- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 36px;
  background: var(--espresso);
  color: var(--text-on-dark);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links button {
  color: var(--text-on-dark);
  text-decoration: underline;
}

.footer-links button:hover {
  color: var(--saffron);
}

/* ----- Responsive ----- */

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  /* Narrow screens: the artwork moves out from behind the headline and sits
     below the buttons as its own block, so the ring never overlaps text. */
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .hero__art {
    position: relative;
    top: auto;
    right: auto;
    order: 1;
    align-self: center;
    width: min(440px, 100%);
    margin-top: 40px;
  }

  .hero__ring {
    top: -2%;
    left: -2%;
    width: 26%;
  }

  .hero__tag {
    right: 4%;
    bottom: 6%;
  }
}

@media (max-width: 480px) {
  .currency-picker {
    display: none;
  }

  .hero__tag {
    font-size: 12px;
  }
}
