/* ==========================================================================
   COMPONENTES — botões, mídia, cards, filtros, lightbox, WhatsApp flutuante
   ========================================================================== */

/* Botões ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.1rem;
  padding: 0.85rem 1.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  isolation: isolate; /* o brilho fica atrás do texto, mas acima do fundo */
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 22px -14px rgba(36, 20, 13, 0.6); }
.btn:active { transform: translateY(0) scale(0.97); box-shadow: none; transition-duration: 0.12s; }

/* Micro-interação: faixa de brilho que atravessa o botão no hover */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(120%); transition: transform 0.9s var(--ease); }

.btn--primary { background: var(--wood-600); color: var(--ivory); }
.btn--primary:hover { background: var(--wood-800); }

.btn--outline { border-color: var(--wood-600); color: var(--wood-700); }
.btn--outline:hover { background: var(--wood-600); color: var(--ivory); }

.btn--light { background: var(--ivory); color: var(--wood-800); }
.btn--light:hover { background: var(--beige); }

.btn--ghost-light { border-color: rgba(251, 248, 243, 0.55); color: var(--ivory); }
.btn--ghost-light:hover { background: rgba(251, 248, 243, 0.12); border-color: var(--ivory); }

.btn--sm { min-height: 2.6rem; padding: 0.6rem 1.25rem; font-size: 0.72rem; }
.btn--lg { min-height: 3.5rem; padding-inline: 2.2rem; }
.btn--xl { min-height: 4rem; padding-inline: 2.8rem; font-size: 0.85rem; }
.btn--block { width: 100%; }
.btn .icon { width: 1.35em; height: 1.35em; }

/* Mídia: foto ou espaço reservado ---------------------------------------- */
.media {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--beige);
}
.media__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }

.media__ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--grain-light), var(--beige);
  color: var(--wood-600);
  text-align: center;
}
.media__ph::before {
  content: '';
  position: absolute;
  inset: 0.7rem;
  border: 1px dashed rgba(90, 54, 35, 0.32);
  pointer-events: none;
}
.media__ph .icon { width: 1.75rem; height: 1.75rem; opacity: 0.75; stroke-width: 1.3; }
.media__ph-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.5;
  text-transform: uppercase;
}

.media--dark { background: var(--wood-700); }
.media--dark .media__ph { background: var(--grain-light), var(--wood-600); color: var(--gold-soft); }
.media--dark .media__ph::before { border-color: rgba(211, 189, 148, 0.4); }

/* Antes e depois */
.media--split { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.media__half { position: relative; overflow: hidden; }
.media__tag {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  z-index: 2;
  padding: 0.2rem 0.6rem;
  background: rgba(46, 27, 18, 0.72);
  color: var(--ivory);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Cards (serviços e produtos) -------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  border: 1px solid var(--line);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.6s var(--ease), opacity 0.9s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); border-color: rgba(179, 146, 98, 0.55); }
.card:hover .media__img { transform: scale(1.05); }

.card__media { position: relative; }
.card__body { display: flex; flex: 1; flex-direction: column; gap: 0.6rem; padding: 1.6rem 1.6rem 1.8rem; }
.card__title { color: var(--wood-800); }
.card__text { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.6; }
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.card--product .card__body { gap: 0.55rem; }
.card--product .price { margin: 0.4rem 0 0.7rem; }
.card--product .btn { margin-top: auto; }

/* Preço */
.price { display: flex; flex-direction: column; line-height: 1.15; }
.price__from { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); }
.price__value { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--wood-600); }
.price--ph .price__value { color: var(--ink-soft); }

/* Selo de disponibilidade */
.badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 2;
  padding: 0.3rem 0.75rem;
  background: rgba(251, 248, 243, 0.94);
  color: var(--wood-700);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.badge--soldout { background: rgba(46, 27, 18, 0.85); color: var(--ivory); }

/* Filtros da galeria ------------------------------------------------------ */
.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: -1rem 0 2.5rem;
}
.chip {
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease);
}
.chip:hover { border-color: var(--wood-500); color: var(--wood-700); }
.chip[aria-pressed='true'] { background: var(--wood-700); border-color: var(--wood-700); color: var(--ivory); }

/* Depoimentos ------------------------------------------------------------- */
.quote {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 2.2rem 2rem;
  background: var(--cream);
  border: 1px solid var(--line);
}
.quote__stars { display: flex; gap: 0.2rem; color: var(--gold); }
.quote__stars .icon { width: 1.05rem; height: 1.05rem; fill: currentColor; stroke-width: 1; }
.quote__text { font-family: var(--font-display); font-size: 1.35rem; font-style: italic; line-height: 1.45; color: var(--wood-800); }
.quote__author { margin-top: auto; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }

/* Diferenciais ------------------------------------------------------------ */
.feature {
  padding: 2.4rem 1.75rem;
  border: 1px solid var(--line-dark);
  text-align: center;
  transition: border-color 0.5s var(--ease), background 0.5s var(--ease), opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.feature:hover { border-color: var(--gold); background: rgba(251, 248, 243, 0.04); }
.feature__icon {
  display: inline-grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.4rem;
  border: 1px solid rgba(211, 189, 148, 0.55);
  border-radius: 50%;
  color: var(--gold-soft);
}
.feature__icon .icon { width: 1.6rem; height: 1.6rem; stroke-width: 1.3; }
.feature__title { font-size: 1.5rem; }
.feature__text { margin-top: 0.7rem; color: var(--on-dark-soft); font-size: 0.98rem; }

/* Contato ----------------------------------------------------------------- */
.contact-list { display: grid; gap: 1.6rem; }
.contact-item { display: flex; gap: 1.1rem; align-items: flex-start; }
.contact-item__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--wood-600);
}
.contact-item__icon .icon { width: 1.2rem; height: 1.2rem; }
.contact-item__label { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); }
.contact-item__value { margin-top: 0.15rem; color: var(--wood-800); }
.contact-item__value a { border-bottom: 1px solid var(--line); transition: border-color 0.3s; }
.contact-item__value a:hover { border-color: var(--wood-600); }

.hours li { display: flex; gap: 0.75rem; }
.hours__day { min-width: 8.5rem; }

/* Mapa (espaço reservado) */
.map-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  height: 100%;
  min-height: 22rem;
  padding: 2rem;
  background: var(--grain-light), var(--beige);
  color: var(--wood-600);
  text-align: center;
}
.map-ph .icon { width: 2rem; height: 2rem; stroke-width: 1.3; }
.map-ph__title { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.24em; }
.map-ph__hint { max-width: 20rem; font-size: 0.9rem; color: var(--ink-soft); }

/* Lightbox ---------------------------------------------------------------- */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(36, 20, 13, 0.94);
  color: var(--ivory);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 4.5rem 1rem 2rem; animation: enter 0.4s var(--ease); }
.lightbox::backdrop { background: rgba(36, 20, 13, 0.7); }

.lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: 1rem; width: min(100%, 44rem); }
.lightbox__slot { width: 100%; max-height: 78dvh; display: flex; justify-content: center; }
.lightbox__slot .media { max-height: 78dvh; background: transparent; }
.lightbox__slot .media__img { width: auto; max-width: 100%; max-height: 78dvh; margin-inline: auto; object-fit: contain; }
.lightbox__caption { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--on-dark-soft); }

.lightbox__btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: transparent;
  color: var(--ivory);
  transition: background 0.3s, border-color 0.3s;
}
.lightbox__btn:hover { background: rgba(251, 248, 243, 0.12); border-color: var(--ivory); }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; }
@media (max-width: 640px) {
  .lightbox[open] { padding-inline: 0.5rem; gap: 0.25rem; }
  .lightbox__btn { width: 2.6rem; height: 2.6rem; }
}

/* WhatsApp flutuante ------------------------------------------------------ */
.wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  height: 3.75rem;
  min-width: 3.75rem;
  padding-inline: 1.05rem;
  border: 1px solid rgba(211, 189, 148, 0.55);
  border-radius: 999px;
  background: var(--wood-700);
  color: var(--ivory);
  box-shadow: 0 14px 30px -12px rgba(36, 20, 13, 0.6);
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}
.wa-float:hover { background: var(--wood-900); transform: translateY(-3px); }
.wa-float .icon { width: 1.75rem; height: 1.75rem; }
.wa-float__label { display: none; padding-right: 0.4rem; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
@media (min-width: 900px) {
  .wa-float__label { display: inline; }
}

/* Abertura (logo + cortina) ---------------------------------------------- */
.intro { display: none; }
.js .intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: block;
  pointer-events: none;
  animation: intro-done 0.01s linear calc(var(--intro) + 1.1s) forwards;
}
@keyframes intro-done { to { visibility: hidden; } }
.intro__panel { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--grain-dark), var(--wood-800); }
.intro__panel--top { top: 0; animation: intro-up 1.1s cubic-bezier(0.76, 0, 0.24, 1) var(--intro) forwards; }
.intro__panel--bottom { bottom: 0; animation: intro-down 1.1s cubic-bezier(0.76, 0, 0.24, 1) var(--intro) forwards; }
@keyframes intro-up { to { transform: translateY(-100%); } }
@keyframes intro-down { to { transform: translateY(100%); } }

.intro__brand {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ivory);
  text-align: center;
  animation: intro-brand-out 0.55s var(--ease) calc(var(--intro) - 0.35s) forwards;
}
@keyframes intro-brand-out { to { opacity: 0; transform: scale(0.94); filter: blur(4px); } }
.intro__emblem { position: relative; display: grid; place-items: center; width: 7.5rem; height: 7.5rem; margin-bottom: 1.4rem; }
.intro__mark { width: 5.4rem; height: 5.4rem; border-radius: 50%; animation: intro-mark 1.1s var(--ease) 0.1s both; }
@keyframes intro-mark { from { opacity: 0; transform: scale(0.6) rotate(-25deg); filter: blur(8px); } }
.intro__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.intro__ring circle {
  fill: none;
  stroke: var(--gold-soft);
  stroke-width: 1;
  stroke-dasharray: 352;
  stroke-dashoffset: 352;
  animation: intro-ring 1.3s cubic-bezier(0.65, 0, 0.35, 1) 0.15s forwards;
}
@keyframes intro-ring { to { stroke-dashoffset: 0; } }
.intro__name {
  font-family: var(--font-brand);
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  animation: intro-name 1.2s var(--ease) 0.35s both;
}
@keyframes intro-name { from { opacity: 0; letter-spacing: 0.6em; filter: blur(6px); } }
.intro__tag {
  margin-top: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-soft);
  animation: enter 0.9s var(--ease) 0.7s both;
}
