/* ========================================================================== 
   KATÉA Atelier — Cinematic Hero Upgrade
   Refined motion, premium navigation, responsive hero choreography.
   ========================================================================== */

:root {
  --hero-duration: 7.4s;
  --hero-ivory: #fffaf2;
  --hero-gold: #d8bd88;
  --hero-deep: #3a2b1b;
}

/* A subtle moving champagne sheen keeps the top service bar alive without
   distracting from the collection imagery. */
.announcement-bar {
  background-size: 220% 100%;
  animation: announcementSheen 14s ease-in-out infinite;
}

.announcement-bar::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 247, 236, .46), transparent);
  pointer-events: none;
}

.announcement-item.active {
  animation: announcementReveal .65s cubic-bezier(.16, 1, .3, 1) both;
}

.announcement-btn {
  position: relative;
}

.announcement-btn::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 1px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}

.announcement-btn:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-header {
  box-shadow: 0 1px 0 rgba(112, 79, 37, .05);
}

.site-header .header-container {
  transition: height .45s cubic-bezier(.16, 1, .3, 1), padding .45s cubic-bezier(.16, 1, .3, 1);
}

.site-header.scrolled {
  box-shadow: 0 12px 38px rgba(72, 51, 28, .08);
  border-bottom-color: rgba(201, 174, 121, .25);
}

.logo-text {
  transition: color .35s ease, letter-spacing .45s cubic-bezier(.16, 1, .3, 1), transform .35s ease;
}

.header-logo:hover .logo-text {
  letter-spacing: .245em;
  transform: translateY(-1px);
}

.header-whatsapp-cta {
  overflow: hidden;
  isolation: isolate;
}

.header-whatsapp-cta::before {
  content: "";
  position: absolute;
  inset: -2px auto -2px -45%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-18deg);
  transition: left .65s cubic-bezier(.16, 1, .3, 1);
  z-index: -1;
}

.header-whatsapp-cta:hover::before {
  left: 120%;
}

/* --------------------------------------------------------------------------
   Cinematic hero
   -------------------------------------------------------------------------- */
.hero-slider-section {
  --hero-parallax-x: 0px;
  --hero-parallax-y: 0px;
  position: relative;
  height: min(82svh, 860px);
  min-height: 610px;
  max-height: 900px;
  background: var(--hero-deep);
  isolation: isolate;
  outline: none;
}

.hero-slider-section:focus-visible {
  box-shadow: inset 0 0 0 2px var(--color-accent);
}

.hero-slider-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: .11;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 25%, rgba(255,255,255,.5) 0 .55px, transparent .7px),
    radial-gradient(circle at 75% 55%, rgba(255,255,255,.32) 0 .45px, transparent .65px);
  background-size: 5px 5px, 7px 7px;
  mix-blend-mode: soft-light;
}

.hero-slides-wrapper {
  isolation: isolate;
}

.hero-slide {
  z-index: 0;
  overflow: hidden;
  will-change: opacity;
  transition: opacity 1.15s cubic-bezier(.4, 0, .2, 1), visibility 1.15s;
}

.hero-slide.active {
  z-index: 2;
}

.hero-bg-image {
  width: calc(100% + 36px);
  height: calc(100% + 36px);
  inset: -18px;
  max-width: none;
  object-position: center 48%;
  scale: 1.01;
  translate: var(--hero-parallax-x) var(--hero-parallax-y);
  filter: saturate(.92) contrast(1.035) brightness(.96);
  will-change: scale, translate, filter;
  transition: translate .9s cubic-bezier(.16, 1, .3, 1), filter 1.15s ease;
}

.hero-slide.active .hero-bg-image {
  animation: heroCinematicZoom var(--hero-duration) linear both;
  filter: saturate(1) contrast(1.02) brightness(1);
}

.hero-overlay {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 43%, rgba(87, 60, 32, .04) 0%, rgba(58, 43, 27, .18) 47%, rgba(32, 23, 14, .48) 100%),
    linear-gradient(to bottom, rgba(37, 26, 16, .13) 0%, rgba(41, 29, 18, .23) 44%, rgba(35, 25, 16, .62) 100%);
}

.hero-slide[data-tone="rose"] .hero-overlay {
  background:
    radial-gradient(circle at 50% 42%, rgba(149, 102, 75, .03) 0%, rgba(86, 53, 38, .18) 52%, rgba(38, 27, 18, .52) 100%),
    linear-gradient(to bottom, rgba(50, 34, 23, .1) 0%, rgba(56, 39, 26, .24) 48%, rgba(38, 27, 18, .65) 100%);
}

.hero-light {
  position: absolute;
  z-index: 1;
  inset: -25%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 63% 36%, rgba(255, 239, 199, .23) 0%, rgba(255, 239, 199, .06) 16%, transparent 37%);
  mix-blend-mode: screen;
}

.hero-slide.active .hero-light {
  animation: heroLightDrift var(--hero-duration) ease-in-out both;
}

.hero-frame {
  position: absolute;
  z-index: 5;
  inset: 22px;
  border: 1px solid rgba(255, 250, 242, .2);
  pointer-events: none;
  opacity: .78;
}

.hero-frame::before,
.hero-frame::after {
  content: "";
  position: absolute;
  width: 46px;
  height: 46px;
  border-color: rgba(216, 189, 136, .72);
  pointer-events: none;
}

.hero-frame::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.hero-frame::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.hero-content {
  z-index: 6;
  width: min(900px, calc(100% - 120px));
  max-width: 900px;
  padding: 14px 28px 54px;
  text-shadow: 0 2px 24px rgba(22, 14, 8, .18);
  transform: translate3d(calc(var(--hero-parallax-x) * -.18), calc(var(--hero-parallax-y) * -.18), 0);
  transition: transform 1.1s cubic-bezier(.16, 1, .3, 1);
}

.hero-caption {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: auto;
  margin: 0 auto 18px;
  color: rgba(255, 248, 237, .88);
  letter-spacing: .38em;
  opacity: 0;
  transform: translateY(16px);
  transition: none;
}

.hero-caption::before,
.hero-caption::after {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 189, 136, .9));
}

.hero-caption::after {
  transform: rotate(180deg);
}

.hero-title {
  margin-bottom: 22px;
  color: var(--hero-ivory);
  font-size: clamp(3rem, 6.6vw, 6rem);
  line-height: .98;
  letter-spacing: .115em;
  text-shadow: 0 8px 38px rgba(26, 18, 11, .22);
  opacity: 0;
  transform: translateY(30px);
  clip-path: inset(0 0 100% 0);
  transition: none;
}

.hero-subtitle {
  max-width: 700px;
  margin-bottom: 32px;
  color: rgba(255, 250, 242, .9);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.7;
  letter-spacing: .01em;
  opacity: 0;
  transform: translateY(20px);
  transition: none;
}

.hero-actions {
  gap: 14px;
  opacity: 0;
  transform: translateY(18px);
  transition: none;
}

.hero-slide.active .hero-caption {
  animation: heroFadeUp .78s .18s cubic-bezier(.16, 1, .3, 1) both;
}

.hero-slide.active .hero-title {
  animation: heroTitleReveal 1.08s .3s cubic-bezier(.16, 1, .3, 1) both;
}

.hero-slide.active .hero-subtitle {
  animation: heroFadeUp .88s .56s cubic-bezier(.16, 1, .3, 1) both;
}

.hero-slide.active .hero-actions {
  animation: heroFadeUp .88s .72s cubic-bezier(.16, 1, .3, 1) both;
}

.hero-actions .btn {
  position: relative;
  min-width: 260px;
  min-height: 48px;
  padding: 14px 28px;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  font-family: var(--font-heading);
  font-size: .60rem;
  font-weight: 300;
  letter-spacing: .12em;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 10px 28px rgba(26, 18, 11, .14), 0 4px 14px rgba(26, 18, 11, .08);
  transition: transform .42s cubic-bezier(.16, 1, .3, 1), background .42s ease, color .42s ease, border-color .42s ease, box-shadow .42s ease;
}

.hero-actions .btn::after {
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: -48%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg);
  transition: left .72s cubic-bezier(.16, 1, .3, 1);
  pointer-events: none;
}

.hero-actions .btn:hover::after {
  left: 120%;
}

.hero-btn-primary {
  background: rgba(255, 250, 242, .96);
  border: 1px solid rgba(255, 250, 242, .95);
  color: #704f25;
  backdrop-filter: blur(10px);
}

.hero-btn-primary:hover {
  background: #d8bd88;
  border-color: #d8bd88;
  color: #3a2b1b;
  transform: translateY(-3px);
  box-shadow: 0 16px 42px rgba(26, 17, 9, .2);
}

.hero-btn-ghost {
  background: rgba(69, 48, 27, .2);
  border: 1px solid rgba(255, 250, 242, .55);
  color: #fffaf2;
  backdrop-filter: blur(10px);
}

.hero-btn-ghost:hover {
  background: rgba(255, 250, 242, .96);
  border-color: rgba(255, 250, 242, .96);
  color: #704f25;
  transform: translateY(-3px);
  box-shadow: 0 16px 42px rgba(26, 17, 9, .18);
}

/* Navigation arrows */
.hero-nav-btn {
  z-index: 8;
  width: 58px;
  height: 58px;
  background: rgba(69, 48, 27, .18);
  border-color: rgba(255, 250, 242, .42);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 0 rgba(255,255,255,.12);
}

.hero-nav-btn svg {
  width: 21px;
  height: 21px;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}

.hero-nav-btn:hover {
  background: rgba(255, 250, 242, .95);
  color: #704f25;
  border-color: rgba(255, 250, 242, .95);
  box-shadow: 0 10px 32px rgba(28, 18, 9, .15);
}

.hero-prev:hover svg { transform: translateX(-2px); }
.hero-next:hover svg { transform: translateX(2px); }

/* Bottom editorial UI: counter, progress, scroll cue */
.hero-footer-ui {
  position: absolute;
  z-index: 8;
  left: 54px;
  right: 54px;
  bottom: 38px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  pointer-events: none;
}

.hero-counter {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 250, 242, .78);
  font-size: .68rem;
  letter-spacing: .18em;
}

.hero-counter-current {
  color: #fffaf2;
}

.hero-counter-line {
  width: 30px;
  height: 1px;
  background: rgba(255, 250, 242, .45);
}

.hero-dots {
  position: static;
  transform: none;
  justify-self: center;
  gap: 9px;
  pointer-events: auto;
}

.hero-dot {
  position: relative;
  width: 42px;
  height: 2px;
  padding: 8px 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.hero-dot::before,
.hero-dot::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
}

.hero-dot::before {
  right: 0;
  background: rgba(255, 250, 242, .33);
}

.hero-dot::after {
  width: 0;
  background: #fffaf2;
}

.hero-dot.active {
  width: 52px;
  background: transparent;
}

.hero-dot.active::after {
  animation: heroProgress var(--hero-duration) linear forwards;
}

.hero-slider-section.is-paused .hero-dot.active::after {
  animation-play-state: paused;
}

.hero-scroll-cue {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 250, 242, .78);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  pointer-events: auto;
  transition: color .3s ease;
}

.hero-scroll-line {
  position: relative;
  width: 38px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 250, 242, .3);
}

.hero-scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fffaf2;
  transform: translateX(-105%);
  animation: heroScrollLine 2.1s ease-in-out infinite;
}

.hero-scroll-cue:hover {
  color: #fffaf2;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
@keyframes announcementSheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes announcementReveal {
  from { opacity: 0; transform: translateY(10px); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes heroCinematicZoom {
  0% { scale: 1.04; }
  100% { scale: 1; }
}

@keyframes heroLightDrift {
  0% { opacity: 0; transform: translate3d(-3%, 2%, 0) scale(.95); }
  22% { opacity: .82; }
  100% { opacity: .22; transform: translate3d(3%, -2%, 0) scale(1.08); }
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes heroTitleReveal {
  0% { opacity: 0; transform: translateY(36px); clip-path: inset(0 0 100% 0); letter-spacing: .16em; }
  100% { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); letter-spacing: .115em; }
}

@keyframes heroProgress {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes heroScrollLine {
  0% { transform: translateX(-105%); }
  55%, 100% { transform: translateX(105%); }
}

/* --------------------------------------------------------------------------
   Tablet / compact laptop
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero-slider-section {
    height: min(78svh, 780px);
    min-height: 560px;
  }

  .hero-frame { inset: 16px; }

  .hero-content {
    width: min(820px, calc(100% - 84px));
    padding-bottom: 48px;
  }

  .hero-title {
    font-size: clamp(2.8rem, 7.2vw, 5rem);
  }

  .hero-footer-ui {
    left: 38px;
    right: 38px;
    bottom: 28px;
  }

  .hero-nav-btn {
    width: 50px;
    height: 50px;
  }

  .hero-prev { left: 24px; }
  .hero-next { right: 24px; }
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .hero-slider-section {
    height: clamp(590px, 77svh, 720px);
    min-height: 590px;
  }

  .hero-frame {
    inset: 10px;
    border-color: rgba(255, 250, 242, .14);
  }

  .hero-frame::before,
  .hero-frame::after {
    width: 30px;
    height: 30px;
  }

  .hero-bg-image {
    width: calc(100% + 22px);
    height: calc(100% + 22px);
    inset: -11px;
    object-position: center center;
  }

  .hero-content {
    width: 100%;
    max-width: 620px;
    padding: 0 22px 76px;
    transform: none;
  }

  .hero-caption {
    gap: 9px;
    max-width: 100%;
    font-size: .64rem;
    letter-spacing: .2em;
  }

  .hero-caption::before,
  .hero-caption::after {
    width: 16px;
  }

  .hero-title {
    font-size: clamp(2.15rem, 10.3vw, 3.35rem);
    line-height: 1.04;
    letter-spacing: .075em;
    margin-bottom: 18px;
  }

  .hero-slide.active .hero-title {
    animation-name: heroTitleRevealMobile;
  }

  .hero-subtitle {
    max-width: 520px;
    font-size: .94rem;
    line-height: 1.62;
    margin-bottom: 32px;
  }

  .hero-actions {
    width: auto;
    margin: 0 auto;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .hero-actions .btn {
    width: auto;
    min-width: 300px;
    max-width: 360px;
    min-height: 44px;
    padding: 13px 28px;
    font-family: var(--font-heading);
    font-size: .48rem;
    font-weight: 300;
    letter-spacing: .10em;
    line-height: 1.4;
    white-space: nowrap;
    text-align: center;
    overflow: hidden;
    text-overflow: clip;
    border-width: 1px;
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(26, 18, 11, .16), 0 4px 14px rgba(26, 18, 11, .10);
  }
  .hero-actions .hero-btn-primary {
    background: rgba(255, 250, 242, .92);
  }
  .hero-actions .hero-btn-ghost {
    background: transparent;
    border-color: rgba(255, 250, 242, .45);
    backdrop-filter: blur(8px);
  }

  .hero-footer-ui {
    left: 28px;
    right: 28px;
    bottom: 22px;
    grid-template-columns: auto 1fr;
    gap: 20px;
  }

  .hero-counter {
    gap: 7px;
    font-size: .61rem;
  }

  .hero-counter-line { width: 20px; }

  .hero-dots {
    justify-self: end;
  }

  .hero-dot { width: 34px; }
  .hero-dot.active { width: 44px; }

  .hero-scroll-cue { display: none; }
}

@media (max-width: 430px) {
  .hero-slider-section {
    height: clamp(570px, 74svh, 680px);
    min-height: 570px;
  }

  .hero-caption {
    font-size: .58rem;
    letter-spacing: .16em;
  }

  .hero-caption::before,
  .hero-caption::after { display: none; }

  .hero-title {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .hero-subtitle {
    font-size: .88rem;
  }
}

@keyframes heroTitleRevealMobile {
  0% { opacity: 0; transform: translateY(30px); clip-path: inset(0 0 100% 0); letter-spacing: .105em; }
  100% { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); letter-spacing: .075em; }
}

/* Respect motion accessibility preferences. */
@media (prefers-reduced-motion: reduce) {
  .announcement-bar,
  .announcement-item.active,
  .hero-slide.active .hero-bg-image,
  .hero-slide.active .hero-light,
  .hero-slide.active .hero-caption,
  .hero-slide.active .hero-title,
  .hero-slide.active .hero-subtitle,
  .hero-slide.active .hero-actions,
  .hero-dot.active::after,
  .hero-scroll-line::after {
    animation: none !important;
  }

  .hero-caption,
  .hero-title,
  .hero-subtitle,
  .hero-actions {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
  }

  .hero-bg-image {
    scale: 1.03 !important;
    translate: 0 0 !important;
  }

  .hero-dot.active::after { width: 100%; }
}
