
/* ── Tudo scoped dentro de #wse-root — não afeta nada fora ── */

#wse-root {
  --wse-card:       #fdf8f4;
  --wse-wine:       #6b2d2d;
  --wse-wine-deep:  #431a1a;
  --wse-wine-pale:  #f0e4e0;
  --wse-gold:       #b09268;
  --wse-rule:       rgba(67,26,26,0.13);
  --wse-dark:       #2a1a1a;
  --wse-mid:        #6e5453;
  --wse-muted:      #9c7c7c;
  --wse-shadow:     rgba(67,26,26,0.18);
  --wse-ease:       cubic-bezier(0.22, 0.72, 0.18, 1);

  /* quantos cards aparecem por vez (ajustado nos media queries) */
  --wse-per: 3;
  --wse-gap: 26px;

  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 16px 4px;
  background: radial-gradient(115% 78% at 50% 0%, #d3c7bf 0%, #c2b5ad 46%, #b2a49b 100%);
  font-family: 'Jost', sans-serif;
  color: var(--wse-dark);
  -webkit-font-smoothing: antialiased;
}

#wse-root *,
#wse-root *::before,
#wse-root *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#wse-root :focus-visible {
  outline: 2px solid var(--wse-wine-deep);
  outline-offset: 3px;
}

/* ── Cabeçalho ── */
#wse-root .wse-header {
  text-align: center;
  margin-bottom: 34px;
  padding-top: 54px;
}
#wse-root .wse-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}
#wse-root .wse-eyebrow i {
  display: block;
  width: clamp(28px, 8vw, 54px);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--wse-gold));
}
#wse-root .wse-eyebrow i + i { background: linear-gradient(to left, transparent, var(--wse-gold)); }
#wse-root .wse-eyebrow span {
  width: 6px; height: 6px;
  background: var(--wse-gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}
#wse-root .wse-title-sm {
  display: block;
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  color: var(--wse-wine-deep);
  line-height: 1;
}
#wse-root .wse-title-lg {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  color: var(--wse-wine-deep);
  line-height: 1;
  margin-top: 2px;
  letter-spacing: 0.005em;
}
#wse-root .wse-subtitle {
  display: block;
  font-weight: 300;
  font-size: clamp(0.64rem, 1.8vw, 0.76rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--wse-mid);
  margin-top: 16px;
  padding-left: 0.32em;
}

/* ── Palco ── */
#wse-root .wse-outer { width: 100%; max-width: 1240px; margin: 0 auto; }
#wse-root .wse-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}
#wse-root .wse-viewport {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}
#wse-root .wse-overflow {
  overflow: hidden;
  /* respiro para a sombra dos cards não ser cortada */
  padding: 6px 8px 30px;
  margin: -6px -8px -22px;
}
#wse-root .wse-track {
  display: flex;
  align-items: stretch;
  gap: var(--wse-gap);
  transition: transform 0.7s var(--wse-ease);
  will-change: transform;
}

/* ── Card ── */
#wse-root .wse-card {
  flex: 0 0 calc((100% - (var(--wse-per) - 1) * var(--wse-gap)) / var(--wse-per));
  min-width: 0;
  background: var(--wse-card);
  display: flex;
  flex-direction: column;
  border-radius: 3px 3px 20px 20px;
  overflow: hidden;
  box-shadow: 0 22px 50px -24px var(--wse-shadow), 0 3px 10px rgba(67,26,26,0.06);
  transition: box-shadow 0.5s var(--wse-ease);
}
#wse-root .wse-card:hover {
  box-shadow: 0 32px 62px -26px var(--wse-shadow), 0 4px 12px rgba(67,26,26,0.08);
}

/* Foto */
#wse-root .wse-photo {
  position: relative;
  flex: 1 1 auto;
  min-height: 270px;
  overflow: hidden;
  background: var(--wse-wine-pale);
}
#wse-root .wse-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transform: scale(1.02);
  filter: saturate(0.94);
  transition: transform 1.6s var(--wse-ease), filter 0.8s ease;
}
#wse-root .wse-card:hover .wse-photo img { transform: scale(1.06); filter: saturate(1); }
#wse-root .wse-photo-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(67,26,26,0.16) 0%,
    rgba(67,26,26,0) 26%,
    rgba(253,248,244,0) 62%,
    var(--wse-card) 100%);
}
/* Monograma quando não há foto */
#wse-root .wse-photo.wse-no-photo {
  background: linear-gradient(155deg, var(--wse-wine-pale), #e3d4cf);
  display: flex;
  align-items: center;
  justify-content: center;
}
#wse-root .wse-photo.wse-no-photo::before {
  content: attr(data-initials);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 4rem;
  letter-spacing: 0.1em;
  color: var(--wse-wine);
  opacity: 0.4;
  padding-left: 0.1em;
}

/* Corpo */
#wse-root .wse-body {
  padding: 4px 24px 30px;
  text-align: center;
  position: relative;
  z-index: 1;
  margin-top: -34px;
}
#wse-root .wse-role {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--wse-wine);
  padding-left: 0.3em;
  line-height: 1;
}
#wse-root .wse-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.05;
  color: var(--wse-wine-deep);
  margin-top: 8px;
}
#wse-root .wse-craft {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.98rem;
  font-weight: 400;
  font-style: italic;
  color: var(--wse-mid);
  margin-top: 6px;
}
#wse-root .wse-orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 6px;
}
#wse-root .wse-orn i {
  display: block;
  width: 34px; height: 1px;
  background: linear-gradient(to right, transparent, var(--wse-gold));
}
#wse-root .wse-orn i + i { background: linear-gradient(to left, transparent, var(--wse-gold)); }
#wse-root .wse-orn span {
  width: 5px; height: 5px;
  background: var(--wse-gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Lista de serviços — linhas com “+” */
#wse-root .wse-list { list-style: none; text-align: left; }
#wse-root .wse-list li {
  display: flex;
  align-items: baseline;
  gap: 11px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--wse-rule);
  font-size: 0.83rem;
  font-weight: 300;
  color: var(--wse-mid);
  line-height: 1.35;
}
#wse-root .wse-list li:first-child { border-top: 1px solid var(--wse-rule); }
#wse-root .wse-list li::before {
  content: '+';
  color: var(--wse-gold);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
}

/* Botão de agendamento */
#wse-root .wse-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  padding: 12px 26px;
  border: 1px solid var(--wse-gold);
  border-radius: 999px;
  background: transparent;
  color: var(--wse-wine-deep);
  font-family: 'Jost', sans-serif;
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding-left: 28px;
  transition: background 0.4s var(--wse-ease), color 0.4s, border-color 0.4s;
}
#wse-root .wse-cta:hover,
#wse-root .wse-cta:focus-visible {
  background: var(--wse-wine-deep);
  border-color: var(--wse-wine-deep);
  color: #fff;
}
#wse-root .wse-cta svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Entrada encadeada do slide ativo */
#wse-root .wse-body > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.75s var(--wse-ease), transform 0.75s var(--wse-ease);
}
#wse-root .wse-card.wse-is-active .wse-body > * { opacity: 1; transform: none; }
#wse-root .wse-card.wse-is-active .wse-role { transition-delay: 0.10s; }
#wse-root .wse-card.wse-is-active .wse-name { transition-delay: 0.16s; }
#wse-root .wse-card.wse-is-active .wse-craft { transition-delay: 0.20s; }
#wse-root .wse-card.wse-is-active .wse-orn  { transition-delay: 0.24s; }
#wse-root .wse-card.wse-is-active .wse-list { transition-delay: 0.28s; }
#wse-root .wse-card.wse-is-active .wse-cta  { transition-delay: 0.36s; }

/* ── Barra de progresso ── */
#wse-root .wse-progress {
  height: 1px;
  background: rgba(67,26,26,0.16);
  overflow: hidden;
  margin-top: 18px;
}
#wse-root .wse-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--wse-gold);
  transform: scaleX(0);
  transform-origin: left center;
}
#wse-root .wse-progress.wse-running span {
  animation: wse-fill var(--wse-delay, 7s) linear forwards;
}
@keyframes wse-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ── Setas ── */
#wse-root .wse-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(107,45,45,0.35);
  background: rgba(253,248,244,0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wse-wine-deep);
  flex-shrink: 0;
  transition: background 0.35s var(--wse-ease), color 0.35s, border-color 0.35s;
}
#wse-root .wse-btn:hover {
  background: var(--wse-wine-deep);
  border-color: var(--wse-wine-deep);
  color: #fff;
}
#wse-root .wse-btn svg { width: 15px; height: 15px; display: block; }

/* ── Marcadores ── */
#wse-root .wse-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
  padding-bottom: 58px;
}
#wse-root .wse-dots { display: flex; gap: 9px; align-items: center; }
#wse-root .wse-dot {
  width: 8px; height: 2px;
  border: none;
  padding: 0;
  background: var(--wse-wine);
  opacity: 0.25;
  cursor: pointer;
  display: block;
  transition: width 0.45s var(--wse-ease), opacity 0.45s, background 0.45s;
}
#wse-root .wse-dot:hover { opacity: 0.55; }
#wse-root .wse-dot.wse-active { width: 30px; opacity: 1; background: var(--wse-gold); }

/* ── Quantos cards por vez ── */
@media (max-width: 1120px) { #wse-root { --wse-per: 2; --wse-gap: 22px; } }
@media (max-width: 760px)  { #wse-root { --wse-per: 1; --wse-gap: 0px; } }

/* ── Telas estreitas: um card só, setas sobre a foto ── */
@media (max-width: 760px) {
  #wse-root { padding: 0 14px 4px; }
  #wse-root .wse-header { padding-top: 42px; margin-bottom: 26px; }
  #wse-root .wse-stage { gap: 0; }
  #wse-root .wse-viewport { max-width: 440px; margin: 0 auto; }
  #wse-root .wse-overflow { padding: 6px 6px 26px; margin: -6px -6px -20px; }
  #wse-root .wse-btn {
    position: absolute;
    top: 130px;
    width: 40px; height: 40px;
    background: rgba(253,248,244,0.82);
    border-color: rgba(253,248,244,0.9);
    box-shadow: 0 4px 14px rgba(67,26,26,0.18);
    z-index: 3;
  }
  #wse-root #wse-prev { left: 10px; }
  #wse-root #wse-next { right: 10px; }
  #wse-root .wse-name { font-size: 1.9rem; }
  #wse-root .wse-body { padding: 4px 22px 30px; }
  #wse-root .wse-photo { min-height: 260px; }
  #wse-root .wse-nav { padding-bottom: 44px; }
}

/* ── Movimento reduzido ── */
@media (prefers-reduced-motion: reduce) {
  #wse-root .wse-track,
  #wse-root .wse-body > *,
  #wse-root .wse-photo img { transition-duration: 0.01ms !important; }
  #wse-root .wse-progress { display: none; }
}
