/* ═══════════════════════════════════════════════════════════
   Siterara — Salão Rara | Folha de Estilos Principal
   Paleta: Rosé Gold (#c9a26e, #e8c9a0) + Off-white (#faf7f4) + Escuro (#1a1a1a)
   Tipografia: Playfair Display (títulos) + Lato (texto)
   ═══════════════════════════════════════════════════════════ */

/* ── Fontes ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

/* ── Variáveis CSS ──────────────────────────────────────── */
:root {
  --gold: #c9a26e;
  --gold-light: #e8c9a0;
  --gold-dark: #a07844;
  --rose: #d4a5a5;
  --bg: #faf7f4;
  --bg-dark: #f0ebe4;
  --dark: #1a1a1a;
  --dark-soft: #333333;
  --white: #ffffff;
  --text: #444444;
  --text-light: #888888;
  --whatsapp: #25d366;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.18);
  --radius: 12px;
  --radius-lg: 24px;
  --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset & Base ───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── Utilitários ────────────────────────────────────────── */
.container {
  width: 92%;
  max-width: 1140px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--dark);
  text-align: center;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.gold-line {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 0.6rem auto 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--white);
  box-shadow: 0 6px 24px rgba(201, 162, 110, 0.45);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(201, 162, 110, 0.6);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── Scroll Reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 8px 0;
  transition: var(--transition);
  background-color: #1a1a1a;
}

.navbar.scrolled {
  background-color: rgba(26, 26, 26, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  padding: 6px 0;
}

.navbar.scrolled::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: inherit;
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 90px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  transition: var(--transition);
  opacity: 1;
}

.navbar.scrolled .nav-logo img {
  height: 72px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-light);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/salao/salaofrente.png');
  background-size: cover;
  background-position: center 20%;
  transform: scale(1.06);
  transition: transform 8s ease;
}

.hero-bg.loaded {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(26, 26, 26, 0.72) 0%,
      rgba(26, 26, 26, 0.45) 60%,
      rgba(201, 162, 110, 0.15) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 640px;
}

.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
  font-weight: 300;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

.hero-title span {
  color: var(--gold-light);
  font-style: italic;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  margin-bottom: 2.4rem;
  opacity: 0.9;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  animation: bounce 2.2s infinite;
}

.hero-scroll svg {
  width: 20px;
  height: 20px;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ═══════════════════════════════════════════════════════════
   SERVIÇOS
   ═══════════════════════════════════════════════════════════ */
#servicos {
  padding: 100px 0;
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: default;
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 162, 110, 0.06), rgba(232, 201, 160, 0.06));
  opacity: 0;
  transition: opacity 0.35s;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-light);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.7rem;
  box-shadow: 0 4px 16px rgba(201, 162, 110, 0.35);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.12) rotate(6deg);
}

.service-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.service-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   ANTES E DEPOIS
   ═══════════════════════════════════════════════════════════ */
#antes-depois {
  padding: 100px 0;
  background: linear-gradient(160deg, var(--dark) 0%, #2a2020 100%);
}

#antes-depois .section-title {
  color: var(--white);
}

#antes-depois .section-subtitle {
  color: var(--gold-light);
}

#antes-depois .gold-line {
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
}

.ba-hint {
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  margin-top: -1.8rem;
  margin-bottom: 2.5rem;
}

.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.ba-slider {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: ew-resize;
  user-select: none;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3/4;
}

.ba-after {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-before-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  width: 50%;
}

.ba-before {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  pointer-events: none;
  display: block;
  min-width: 100vw;
  /* will be overridden by JS */
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: var(--white);
  cursor: ew-resize;
  z-index: 10;
}

.ba-handle-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  font-size: 1rem;
  color: var(--gold);
}

.ba-labels {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
  z-index: 5;
}

.ba-label {
  background: rgba(26, 26, 26, 0.7);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}

/* ── Informações ── */
#endereco {
  padding: 100px 0;
  background: var(--bg-dark);
}

.address-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
}

.address-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.address-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.address-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(201, 162, 110, 0.3);
}

.address-item-icon.whatsapp-brand {
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-clickable .address-item .address-item-text span {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
  display: block;
}

.address-item-icon.instagram-brand {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  box-shadow: 0 4px 12px rgba(214, 36, 159, 0.3);
}

.address-item-instagram-clickable .address-item .address-item-text span {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
  display: block;
}

.waze-item-clickable {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.waze-item-clickable:hover {
  transform: translateX(5px);
}

.waze-item-clickable .address-item-text span {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
  display: block;
}


.address-item-icon svg {
  display: block;
}

.address-item-text strong {
  display: block;
  color: var(--dark);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.address-item-text span {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.address-item-text a {
  color: var(--gold);
  font-weight: 700;
}

.address-item-text a:hover {
  color: var(--gold-dark);
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ═══════════════════════════════════════════════════════════
   GALERIA (CTA Instagram)
   ═══════════════════════════════════════════════════════════ */
#galeria {
  padding: 100px 0;
  background: var(--white);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.galeria-item {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.galeria-item:hover img {
  transform: scale(1.08);
}

.galeria-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.35);
  opacity: 0;
  transition: opacity 0.35s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.galeria-item:hover .galeria-overlay {
  opacity: 1;
}

.galeria-overlay svg {
  color: var(--white);
  width: 36px;
  height: 36px;
}

.galeria-cta {
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  height: 56px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(1.15);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-family: 'Playfair Display', serif;
  color: var(--gold-light);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-links a {
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  color: rgba(255, 255, 255, 0.75);
}

.social-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ═══════════════════════════════════════════════════════════
   FLOATING WHATSAPP BUTTON
   ═══════════════════════════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  width: 62px;
  height: 62px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
  transition: var(--transition);
  animation: waPulse 2.8s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.7);
  animation: none;
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: var(--white);
}

@keyframes waPulse {

  0%,
  100% {
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
  }

  50% {
    box-shadow: 0 6px 36px rgba(37, 211, 102, 0.85);
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVO
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .address-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 26, 0.97);
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 1000;
    font-size: 1.4rem;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  /* Logo centralizado no mobile */
  .nav-logo {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .nav-logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
  }

  .hamburger {
    position: absolute;
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
  }


  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .ba-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════════════ */
.galeria-item {
  cursor: pointer;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 20px;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: fixed;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10001;
}

.lightbox-close:hover {
  color: var(--gold-light);
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
  }
}