/* ===================== VARIÁVEIS ===================== */
:root {
  --bg: #0F0D0C;
  --bg-soft: #17130F;
  --bg-card: rgba(255, 255, 255, 0.03);
  --text: #F5F0EB;
  --text-soft: rgba(245, 240, 235, 0.72);
  --text-mute: rgba(245, 240, 235, 0.5);
  --gold: #4A6FA5;
  --rose: #8B7E74;
  --line: rgba(255, 255, 255, 0.1);

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-script: "Parisienne", "Brush Script MT", cursive;
  --font-sans: "Georgia", system-ui, -apple-system, sans-serif;

  --radius: 12px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ===================== BASE ===================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-serif); font-weight: 500; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--gold); color: var(--bg); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2C2523; border-radius: 4px; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* Caligrafia: acento delicado usado nas palavras-chave */
.script {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 1.25em;
  color: var(--gold);
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0 0.04em;
}

/* ===================== BOTÕES ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.4s var(--ease), background 0.4s, border-color 0.4s, box-shadow 0.4s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(120deg, var(--gold), var(--rose));
  color: var(--bg);
  box-shadow: 0 12px 30px rgba(74, 111, 165, 0.3);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(74, 111, 165, 0.4);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.btn-ghost:hover { border-color: var(--gold); }

.btn-small {
  padding: 0.6rem 1.2rem;
  font-size: 0.7rem;
  background: rgba(226, 184, 135, 0.12);
  border-color: rgba(226, 184, 135, 0.35);
  color: var(--gold);
}
.btn-lg { padding: 1.1rem 2.4rem; font-size: 0.85rem; }

/* ===================== HEADER ===================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 1rem 0;
  backdrop-filter: blur(10px);
  background: rgba(15, 13, 12, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(15, 13, 12, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(226, 184, 135, 0.4);
  background: rgba(226, 184, 135, 0.08);
  color: var(--gold);
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav { display: flex; gap: 2rem; font-size: 0.85rem; color: var(--text-soft); }
.nav a { position: relative; transition: color 0.3s; }
.nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}
.nav a:hover { color: var(--gold); }
.nav a:hover::after { width: 100%; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7.5rem 0 2rem;
  overflow: hidden;
  perspective: 1200px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.1), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, 0.1), transparent 55%),
    linear-gradient(180deg, #0c0a09 0%, #17110d 70%, #0F0D0C 100%);
}

.hero-glow {
  position: absolute;
  top: 18%;
  left: 50%;
  width: min(900px, 120vw);
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(74, 111, 165, 0.2), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 30;
  text-align: center;
  max-width: 820px;
  padding: 0 1.25rem;
}

/* .badge removed */

.hero-title {
  margin-top: 1.4rem;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.hero-title .line { display: block; }
.hero-title .script { font-size: 1.15em; margin-right: 0.1em; }

.hero-sub {
  margin: 1.4rem auto 0;
  max-width: 560px;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

/* Galeria 3D */
.gallery {
  position: relative;
  width: min(1100px, 100%);
  height: clamp(380px, 52vh, 560px);
  margin-top: 1.5rem;
  transform-style: preserve-3d;
  will-change: transform;
}

.float-card {
  position: absolute;
  margin: 0;
  width: clamp(96px, 11vw, 150px);
  aspect-ratio: 3 / 4;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--z, 0px))) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
}
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(226, 184, 135, 0.08);
  background: #1a1310;
}
.card-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(0.85) contrast(1.05);
  transition: filter 0.6s ease, transform 0.8s var(--ease);
}
.card-inner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 13, 12, 0.85));
  pointer-events: none;
}
.card-inner figcaption {
  position: absolute;
  left: 0.5rem; right: 0.5rem; bottom: 0.5rem;
  z-index: 2;
  padding: 0.3rem 0.4rem;
  border-radius: 8px;
  text-align: center;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(15, 13, 12, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}
.float-card:hover .card-inner img { filter: brightness(0.95) saturate(1); transform: scale(1.05); }

/* Posições (estilo mosaico do vídeo: cards atrás e em volta da figura central) */
.f1 { left: 2%;  top: 6%;  --z: -90px;  --ry: 14deg;  --rx: -3deg; }
.f2 { left: 17%; top: 40%; --z: -40px;  --ry: 10deg; }
.f3 { left: 7%;  top: 62%; --z: -130px; --ry: 18deg;  --rx: 5deg; }
.f4 { left: 27%; top: 0%;  --z: -220px; --ry: 6deg; }
.f5 { right: 27%; top: 2%; --z: -200px; --ry: -6deg; }
.f6 { right: 17%; top: 38%; --z: -50px; --ry: -10deg; }
.f7 { right: 2%; top: 8%;  --z: -100px; --ry: -14deg; --rx: -2deg; }
.f8 { right: 6%; top: 62%; --z: -140px; --ry: -16deg; --rx: 6deg; }

/* Retrato central */
.portrait {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: clamp(240px, 30vw, 360px);
  aspect-ratio: 4 / 5;
  transform: translateX(-50%) translateZ(60px);
  z-index: 20;
  border-radius: 50% 50% 0 0 / 38% 38% 0 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 80px rgba(226, 184, 135, 0.12);
}
.portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  filter: brightness(0.95) contrast(1.05) sepia(0.08);
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}
.portrait::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 20%, rgba(226, 184, 135, 0.18), transparent 60%);
  pointer-events: none;
}

.hero-scroll {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 46px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  z-index: 40;
}
.hero-scroll span {
  position: absolute;
  top: -40%;
  left: 0;
  width: 1px;
  height: 40%;
  background: var(--gold);
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { top: -40%; }
  100% { top: 100%; }
}

/* ===================== SEÇÕES ===================== */
.section { padding: 7rem 0; position: relative; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-cta { background: var(--bg); }

.eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 500;
}

.section-title {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 400;
}
.section-sub {
  margin-top: 1rem;
  color: var(--text-soft);
  font-size: 0.98rem;
  max-width: 560px;
}
.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-head .section-sub { margin-left: auto; margin-right: auto; }

.lead {
  margin-top: 1.4rem;
  font-size: 1.1rem;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.5;
}
.about-grid p { color: var(--text-soft); margin-top: 1rem; }

/* Sobre */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}
.about-card {
  padding: 2.2rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(74, 111, 165, 0.05), rgba(74, 111, 165, 0.02));
  display: grid;
  gap: 1.6rem;
  transition: all 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(74, 111, 165, 0.1);
}
.about-item h3 { font-size: 1.35rem; color: var(--text); }
.about-item p { margin-top: 0.4rem; color: var(--text-soft); font-size: 0.92rem; }

/* Serviços */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.service {
  padding: 2rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: all 0.4s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  background: rgba(74, 111, 165, 0.05);
  box-shadow: 0 8px 15px rgba(74, 111, 165, 0.2);
}
.service-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.service-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--gold);
  background: rgba(74, 111, 165, 0.1);
  transition: all 0.3s ease;
}

.service:hover .service-icon {
  background: rgba(74, 111, 165, 0.2);
  color: var(--bg);
}
.service h3 { font-size: 1.4rem; color: var(--text); }
.service p { color: var(--text-soft); font-size: 0.9rem; }

/* Passos */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: none;
}
.step {
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  position: relative;
}
.step::before {
  content: "";
  position: absolute; top: -1px; left: 0;
  width: 60px; height: 1px;
  background: var(--gold);
}
.step-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
  font-weight: 400;
}
.step h3 { margin-top: 1rem; font-size: 1.6rem; color: var(--text); }
.step p { margin-top: 0.6rem; color: var(--text-soft); font-size: 0.95rem; }

/* ===================== AVALIAÇÕES ===================== */
.rating {
  margin: 2rem auto 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.6rem;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.rating-google { font-weight: 600; font-size: 1.05rem; letter-spacing: 0.02em; }
.g-blue { color: #4285F4; } .g-red { color: #EA4335; } .g-yellow { color: #FBBC05; } .g-green { color: #34A853; }
.rating-meta { display: flex; align-items: center; gap: 0.6rem; color: var(--text-soft); font-size: 0.9rem; }
.stars { color: var(--gold); letter-spacing: 0.15em; font-size: 0.95rem; }
.rating-link { color: var(--gold); font-size: 0.85rem; border-bottom: 1px solid rgba(226, 184, 135, 0.35); padding-bottom: 2px; transition: border-color 0.3s; }
.rating-link:hover { border-color: var(--gold); }

.reviews-wrap { position: relative; display: flex; align-items: center; gap: 1rem; }
.reviews-track {
  flex: 1;
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0.25rem 1.5rem;
  scrollbar-width: none;
}
.reviews-track::-webkit-scrollbar { display: none; }

.review {
  flex: 0 0 min(380px, 85%);
  scroll-snap-align: start;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(74, 111, 165, 0.05), rgba(74, 111, 165, 0.02));
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s ease;
}

.review:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(74, 111, 165, 0.1);
}
.review-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--text);
  font-style: italic;
  font-weight: 400;
}
.review-author { display: flex; align-items: center; gap: 0.8rem; margin-top: auto; }
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--line);
  font-size: 0.95rem;
}
.review-name { font-size: 0.92rem; font-weight: 500; color: var(--text); }
.review-date { font-size: 0.78rem; color: var(--text-mute); }

.reviews-nav {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
}
.reviews-nav:hover { border-color: var(--gold); color: var(--gold); transform: scale(1.05); }

.reviews-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.reviews-dots button {
  width: 8px; height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0;
  transition: width 0.4s var(--ease), background 0.3s;
}
.reviews-dots button.active { width: 24px; background: var(--gold); }

/* ===================== LOCALIZAÇÃO ===================== */
.location-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}
.info-list { margin: 1.8rem 0 2rem; display: grid; gap: 0.9rem; }
.info-list li { color: var(--text-soft); font-size: 0.95rem; display: flex; gap: 0.8rem; }
.info-list strong { color: var(--gold); font-weight: 500; min-width: 96px; }
.map {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  height: 420px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.map iframe {
  width: 100%; height: 100%;
  border: 0;
  filter: invert(0.92) hue-rotate(180deg) saturate(0.6) brightness(0.9);
}

/* ===================== CTA ===================== */
.cta {
  text-align: center;
  padding: 4.5rem 2rem;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(226, 184, 135, 0.14), transparent 65%),
    var(--bg-soft);
}
.cta .section-sub { margin-left: auto; margin-right: auto; }
.cta .btn { margin-top: 2rem; }

/* ===================== FOOTER ===================== */
.footer { border-top: 1px solid var(--line); padding: 2rem 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-mute);
}

/* ===================== REVEAL (estado inicial; GSAP anima) ===================== */
.reveal { opacity: 0; transform: translateY(30px); }

/* ===================== RESPONSIVO ===================== */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
}

@media (max-width: 860px) {
  .about-grid,
  .location-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .steps { grid-template-columns: 1fr; }
  .map { height: 340px; }
}

@media (max-width: 640px) {
  .section { padding: 5rem 0; }
  .services { grid-template-columns: 1fr; }
  .hero { padding-top: 6.5rem; }
  .hero-actions .btn { width: 100%; }
  .gallery { height: 420px; }
  .float-card { width: 84px; }
  .f1, .f7 { top: 0; }
  .f4, .f5, .f8, .f3 { display: none; }
  .f2 { left: 4%; top: 46%; }
  .f6 { right: 4%; top: 46%; }
  .portrait { width: 230px; }
  .review { flex-basis: 88%; }
  .cta { padding: 3rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
