/* ==========================================================================
   ESPAÇO IRIS — HAUTE COIFFURE & ATELIER DE BELEZA
   Estilo Luxury Editorial inspirado no design Stitch
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Syne:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

:root {
  --bg: #fef9ef;
  --surface: #fef9ef;
  --surface-container: #f3ede4;
  --surface-container-high: #ede7df;
  --surface-container-highest: #e7e2d9;
  --surface-container-low: #f8f3ea;
  --surface-container-lowest: #ffffff;
  --secondary: #795830;
  --secondary-fixed: #ffddb9;
  --on-secondary-fixed: #2b1700;
  --gold: #C9A25E;
  --gold-dark: #9E7B36;
  --primary: #1d1b16;
  --on-surface: #1d1b16;
  --on-surface-variant: #444748;
  --border-subtle: rgba(29, 27, 22, 0.08);

  --font-display: 'Syne', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* Base resets & smooth transitions */
html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
}

body {
  background-color: var(--bg);
  color: var(--on-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Headings font inheritance */
h1, h2, h3, h4, .font-syne {
  font-family: var(--font-display);
}

/* Material Symbols sizing helper */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 350, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}
.material-symbols-outlined.fill-1 {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--surface-container-low);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* Luxury card hover effects */
.luxury-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}
.luxury-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(29, 27, 22, 0.10);
  border-color: rgba(121, 88, 48, 0.3);
}

/* ==========================================================================
   HERO BACKGROUND — FOTO DE ENTRADA COM DESFOQUE E DISSOLUÇÃO SUAVE
   ========================================================================== */

:root {
  --hero-blur: 2px;          /* Desfoque suave e discreto para manter a foto nítida e reconhecível */
  --hero-opacity: 0.85;      /* Visibilidade nítida da foto de fundo */
  --hero-position-y: 58%;    /* Enquadramento vertical: sobe a foto para destacar o rosto das mulheres */
  --hero-scale-start: 1.05;  /* Leve aproximação na transição */
  --hero-scale-end: 1.01;    /* Enquadramento final */
}

.hero-bg-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg-wrapper {
  position: absolute;
  /* Margem negativa para compensar o desfoque sutil nas extremidades */
  inset: -12px;
  overflow: hidden;
}

.hero-bg-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--hero-position-y, 58%);
  filter: blur(var(--hero-blur));
  opacity: 0;
  transform: scale(var(--hero-scale-start));
  /* Efeito de dissolução suave e cinematográfico na abertura da página */
  animation: heroDissolveIn 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
  will-change: opacity, transform, filter;
}

@keyframes heroDissolveIn {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: scale(var(--hero-scale-start));
  }
  100% {
    opacity: var(--hero-opacity);
    filter: blur(var(--hero-blur));
    transform: scale(var(--hero-scale-end));
  }
}

/* Before & After Interactive Slider */
.ba-slider-container {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  aspect-ratio: 4/5;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 16px 36px -12px rgba(29, 27, 22, 0.12);
  user-select: none;
  touch-action: pan-y;
}
.ba-slider-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-after-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  pointer-events: none;
  border-right: 2px solid #ffffff;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.25);
}
.ba-after-wrapper .ba-slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}
.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  z-index: 20;
  border: 2px solid var(--secondary);
}
.ba-handle::before, .ba-handle::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}
.ba-handle::before {
  left: 10px;
  border-width: 5px 6px 5px 0;
  border-color: transparent var(--secondary) transparent transparent;
}
.ba-handle::after {
  right: 10px;
  border-width: 5px 0 5px 6px;
  border-color: transparent transparent transparent var(--secondary);
}
.ba-badge {
  position: absolute;
  bottom: 18px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  backdrop-blur: 10px;
  z-index: 10;
}
.ba-badge-before {
  left: 18px;
  background: rgba(29, 27, 22, 0.7);
  color: #ffffff;
}
.ba-badge-after {
  right: 18px;
  background: rgba(121, 88, 48, 0.85);
  color: #ffffff;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(17, 15, 12, 0.92);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox-modal.active {
  display: flex;
  opacity: 1;
}
.lightbox-content {
  max-width: 90vw;
  max-height: 88vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 76vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  object-fit: contain;
}
.lightbox-caption {
  color: #ffffff;
  margin-top: 14px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}
.lightbox-close:hover {
  transform: scale(1.15);
  color: var(--secondary-fixed);
}

/* Floating WhatsApp Button */
.whatsapp-floating {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  group: 1;
}
.whatsapp-floating-bubble {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.whatsapp-floating-bubble:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45), 0 6px 16px rgba(0, 0, 0, 0.2);
}
.whatsapp-floating-bubble::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.4);
  animation: ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.whatsapp-tooltip {
  background: rgba(29, 27, 22, 0.92);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  white-space: nowrap;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
@media (max-width: 640px) {
  .whatsapp-tooltip {
    display: none;
  }
}

@keyframes ping {
  75%, 100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* ==========================================================================
   ANIMAÇÕES DE DISSOLUÇÃO DE TEXTO (EDITORIAL LUXURY DISSOLVE)
   ========================================================================== */

@keyframes textDissolve {
  0% {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Animação de dissolução executada na abertura da página */
.animate-dissolve {
  opacity: 0;
  animation: textDissolve 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: opacity, transform, filter;
}

/* Delays escalonados para entrada harmoniosa dos textos */
.animate-delay-1 {
  animation-delay: 0.15s;
}
.animate-delay-2 {
  animation-delay: 0.38s;
}
.animate-delay-3 {
  animation-delay: 0.6s;
}
.animate-delay-4 {
  animation-delay: 0.82s;
}
.animate-delay-5 {
  animation-delay: 1.05s;
}

/* Dissolução fluida ao rolar a página (Scroll Reveal) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(3px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .animate-dissolve,
  .reveal-on-scroll,
  .hero-bg-photo {
    animation: none !important;
    transition: none !important;
    opacity: var(--hero-opacity, 0.85) !important;
    transform: scale(var(--hero-scale-end, 1.01)) !important;
    filter: blur(var(--hero-blur, 2px)) !important;
  }
}

/* Touch & focus styles */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

/* Luxury Dropdown Menu for Subpages */
.dropdown-menu-wrapper {
  position: relative;
}
.dropdown-menu-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  background: rgba(254, 249, 239, 0.98);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(231, 226, 217, 0.95);
  border-radius: 1.25rem;
  box-shadow: 0 18px 40px -10px rgba(29, 27, 22, 0.14), 0 4px 12px rgba(29, 27, 22, 0.04);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
  z-index: 60;
}
.dropdown-menu-wrapper:hover .dropdown-menu-panel,
.dropdown-menu-wrapper.open .dropdown-menu-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu-wrapper:hover .dropdown-chevron,
.dropdown-menu-wrapper.open .dropdown-chevron {
  transform: rotate(180deg);
}

/* ==========================================================================
   VITRINE 3D VR (CANVAS INTERATIVO COM SCROLL DO MOUSE)
   ========================================================================== */
.vitrine-vr-container {
  overflow: hidden;
  position: relative;
  border-radius: 1.5rem;
  box-shadow: 0 16px 40px -15px rgba(29, 27, 22, 0.18);
  border: 1px solid rgba(121, 88, 48, 0.22);
  user-select: none;
  background-color: var(--surface-container);
  touch-action: pan-y;
  cursor: grab;
}

.vitrine-vr-container:active {
  cursor: grabbing;
}

#vitrine-vr-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
  transform-origin: center center;
  transition: opacity 0.3s ease;
}

/* Setas de navegação circulares elegantes (Glassmorphism de Luxo) */
.vitrine-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(29, 27, 22, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #F8F5EE;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.vitrine-nav-btn:hover {
  background: #795830;
  border-color: #D4AF37;
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.10);
  box-shadow: 0 6px 20px rgba(121, 88, 48, 0.5);
}

.vitrine-nav-btn:active {
  transform: translateY(-50%) scale(0.92);
}

.vitrine-nav-prev {
  left: 14px;
}

.vitrine-nav-next {
  right: 14px;
}

/* Dots indicadores de modelo */
.vitrine-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.vitrine-dot:hover {
  background: rgba(212, 175, 55, 0.85);
}

.vitrine-dot.is-active {
  width: 24px;
  background: #D4AF37;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
}

/* Centralização harmoniosa quando a aba Vitrine estiver filtrada */
.gallery-grid.is-vitrine-active {
  display: flex !important;
  justify-content: center !important;
}

.gallery-grid.is-vitrine-active .vitrine-card {
  max-width: 480px;
  width: 100%;
  flex: 0 0 480px !important;
}

/* ==========================================================================
   CARROSSEL HORIZONTAL DA GALERIA (TODAS AS FOTOS EM LINHA COM SETAS)
   ========================================================================== */
.gallery-carousel-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scroll-behavior: smooth !important;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 1.5rem !important;
}

.gallery-carousel-track .gallery-card {
  flex: 0 0 350px !important;
  width: 350px !important;
  max-width: 380px !important;
  scroll-snap-align: start;
}

@media (max-width: 768px) {
  .gallery-carousel-track .gallery-card {
    flex: 0 0 85vw !important;
    width: 85vw !important;
    max-width: 320px !important;
  }
}

/* Setas externas de navegação do carrossel da galeria */
.gallery-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: rgba(29, 27, 22, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #F8F5EE;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 35;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.gallery-arrow-btn:hover {
  background: #795830;
  border-color: #D4AF37;
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 8px 24px rgba(121, 88, 48, 0.55);
}

.gallery-arrow-btn:active {
  transform: translateY(-50%) scale(0.94);
}

.gallery-arrow-left {
  left: -22px;
}

.gallery-arrow-right {
  right: -22px;
}

@media (max-width: 1024px) {
  .gallery-arrow-left {
    left: 4px;
  }
  .gallery-arrow-right {
    right: 4px;
  }
}

/* Barra de Abas da Galeria: estritamente em linha horizontal única */
.gallery-tabs-bar {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  white-space: nowrap !important;
  width: fit-content !important;
  max-width: 100% !important;
  -webkit-overflow-scrolling: touch;
}

.gallery-tabs-bar button {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  letter-spacing: 0.08em !important;
}

/* Ocultar barra de rolagem nativa em overflows horizontais */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}


