/* =====================================================================
   BARBEARIA SR. BARBOSA — estilos
   Identidade: preto, dourado e branco (baseada na logo original)
   ===================================================================== */

:root {
  --black: #000;
  --ink: #0a0a0a;
  --ink-2: #121212;
  --ink-3: #1a1a1a;
  --line: rgba(217, 171, 69, 0.22);
  --gold: #d9ab45;
  --gold-light: #f6d77c;
  --gold-dark: #9a7124;
  --gold-grad: linear-gradient(135deg, #f6d77c 0%, #d9ab45 45%, #a87b26 100%);
  --white: #f7f4ee;
  --muted: #a8a39a;

  --font-script: "Kaushan Script", cursive;
  --font-classic: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; margin-top: 2.5rem; }

.ic { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Tipografia ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-script);
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  color: var(--white);
  margin-bottom: 0.35rem;
}

.title {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--white);
}
.title em {
  font-style: normal;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section { padding: clamp(4.5rem, 10vw, 7.5rem) 0; position: relative; }
.section__head { text-align: center; margin-bottom: clamp(2.5rem, 6vw, 4rem); }

.divider {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 1.1rem; color: var(--gold);
}
.divider::before,
.divider::after { content: ""; height: 1px; width: 56px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider::after { transform: scaleX(-1); }
.divider svg { width: 46px; height: 19px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s, color 0.35s, border-color 0.35s;
  white-space: nowrap;
}
.btn--lg { padding: 1.05rem 2rem; font-size: 0.85rem; }
.btn--block { width: 100%; }
.btn--gold {
  background: var(--gold-grad);
  color: #111;
  box-shadow: 0 10px 30px -12px rgba(217, 171, 69, 0.65);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(217, 171, 69, 0.85); }
.btn--ghost { border-color: rgba(247, 244, 238, 0.35); color: var(--white); background: rgba(0,0,0,.25); backdrop-filter: blur(4px); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-2px); }

.link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--gold); font-weight: 500; font-size: 0.92rem;
  transition: gap 0.3s var(--ease), color 0.3s;
}
.link:hover { gap: 0.7rem; color: var(--gold-light); }

/* ---------- Menu ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  transition: background 0.4s, box-shadow 0.4s, height 0.4s;
}
.nav.is-scrolled {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav__logo { position: relative; z-index: 2; }
.nav__logo img {
  height: 56px; width: auto;
  mix-blend-mode: lighten; /* o fundo preto da logo some sobre fotos */
  opacity: 0; transform: translateY(-6px);
  transition: opacity 0.4s, transform 0.4s var(--ease);
}
.nav.is-scrolled .nav__logo img,
.nav.is-open .nav__logo img { opacity: 1; transform: none; }

.nav__menu { display: flex; align-items: center; gap: 2rem; }
.nav__menu a:not(.btn) {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(247, 244, 238, 0.85);
  position: relative; padding: 0.3rem 0;
  transition: color 0.3s;
}
.nav__menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--gold); transform: scaleX(0); transition: transform 0.35s var(--ease);
}
.nav__menu a:not(.btn):hover,
.nav__menu a.is-active { color: var(--gold-light); }
.nav__menu a:not(.btn):hover::after,
.nav__menu a.is-active::after { transform: scaleX(1); }
.nav__cta { padding: 0.65rem 1.3rem; font-size: 0.72rem; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  position: relative; z-index: 2;
}
.nav__toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--white);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; right: 16px; }
.nav.is-open .nav__toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 21px; right: 10px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 1rem) 0 5rem;
}
.hero__bg,
.cta__bg {
  position: absolute; inset: 0;
  background-color: var(--ink);
  background-size: cover; background-position: center;
}
.hero__bg { transform: scale(1.08); animation: heroZoom 14s var(--ease) forwards; }
.hero__bg::after,
.cta__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,.55) 0%, rgba(0,0,0,.85) 70%, #000 100%),
    linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.2) 40%, #000 100%);
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero__content { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero__logo {
  width: min(560px, 88vw); height: auto;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,.6));
  animation: fadeUp 1.2s var(--ease) 0.15s both;
}
.hero__tagline {
  margin-top: 0.5rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: rgba(247, 244, 238, 0.85);
  animation: fadeUp 1.2s var(--ease) 0.45s both;
}
.hero__actions {
  margin-top: 2.2rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
  animation: fadeUp 1.2s var(--ease) 0.7s both;
}
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; translate: -50% 0;
  width: 26px; height: 42px; border: 1.5px solid rgba(247,244,238,.45); border-radius: 20px;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 3px; background: var(--gold);
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- Faixa ---------- */
.ticker {
  background: var(--gold-grad);
  color: #111;
  overflow: hidden;
  padding: 0.95rem 0;
  border-block: 1px solid var(--gold-dark);
}
.ticker__track {
  display: flex; align-items: center; gap: 1.6rem;
  width: max-content;
  animation: ticker 32s linear infinite;
}
.ticker span {
  font-family: var(--font-serif); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.18em; font-size: 0.95rem; white-space: nowrap;
}
.ticker svg { width: 34px; height: 14px; flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sobre ---------- */
.about__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center;
}
.about__media { margin: 0; position: relative; }
.frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--ink-3);
}
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transition: transform 1.2s var(--ease), opacity .4s ease; }
.frame img.is-swapping { opacity: 0; }
.frame__switch {
  position: absolute; left: 50%; bottom: 14px; translate: -50% 0; z-index: 1;
  display: flex; gap: 4px; padding: 4px;
  border-radius: 999px;
  background: rgba(0,0,0,.6); border: 1px solid var(--line);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.frame__switch button {
  border: 0; cursor: pointer; font: inherit;
  font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--white); background: transparent;
  padding: .45rem .8rem; border-radius: 999px;
  transition: background .3s, color .3s;
  white-space: nowrap;
}
.frame__switch button:hover { color: var(--gold-light); }
.frame__switch button.is-active { background: var(--gold-grad); color: #111; }
.about__media:hover .frame img { transform: scale(1.04); }
.about__media::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px;
  border: 1px solid var(--gold); border-radius: var(--radius); opacity: .6;
}

.about__text p { color: var(--muted); font-size: 1.05rem; margin: 1.4rem 0 2rem; max-width: 30rem; }
.about__copy { margin: 1.4rem 0 2rem; }
.about__copy p { margin: 0 0 .9rem; }
.about__copy .about__highlight {
  margin: 1.2rem 0 0;
  font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; color: var(--gold);
}
.pillars { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.85rem; }
.pillars li {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(217,171,69,.07), transparent 60%);
  transition: border-color .35s, transform .35s var(--ease);
}
.pillars li:hover { border-color: var(--gold); transform: translateX(6px); }
.pillars svg { width: 26px; height: 26px; color: var(--gold); flex: none; }
.pillars span { font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem; }

/* ---------- Serviços ---------- */
.services { background: linear-gradient(180deg, #000 0%, var(--ink-2) 50%, #000 100%); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service {
  position: relative;
  display: flex; flex-direction: column;
  padding: 2rem 1.75rem 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--ink-3), #0b0b0b);
  border: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
  transition: transform .45s var(--ease), border-color .45s, box-shadow .45s;
}
.service::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.service:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: 0 24px 50px -25px rgba(217,171,69,.35); }
.service:hover::before { transform: scaleX(1); }
.service--featured { border-color: var(--line); background: linear-gradient(160deg, #1d1810, #0b0b0b); }
.service__tag {
  position: absolute; top: 1.1rem; right: 1.1rem;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: #111; background: var(--gold-grad); padding: 0.3rem 0.65rem; border-radius: 999px;
}
.service__icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--gold);
  margin-bottom: 1.25rem;
}
.service__icon svg { width: 24px; height: 24px; }
.service h3 { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; }
.service p { color: var(--muted); font-size: 0.92rem; margin-top: 0.45rem; flex: 1; }
.service__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.07);
}
.service__price {
  transition: opacity .18s ease, transform .18s ease;
  font-family: var(--font-serif); font-weight: 800; font-size: 1.7rem; white-space: nowrap;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.service__price.is-changing { opacity: 0; transform: translateY(-6px); }
.service__book {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--white);
  transition: color .3s, gap .3s var(--ease);
}
.service__book:hover { color: var(--gold-light); gap: .7rem; }
.service__book svg { width: 16px; height: 16px; flex: none; }

/* ---------- Portfólio ---------- */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 12px;
}
/* Foto principal vertical em destaque + carrossel de cortes abaixo */
.portfolio__grid.is-showcase { display: flex; flex-direction: column; align-items: center; gap: 2.75rem; }
.shot--main { width: min(460px, 100%); aspect-ratio: 916 / 1280; flex: none; }

/* Faixa de cortes: desliza sozinha, sem parar, em loop */
.marquee {
  --per-view: 4;
  --m-gap: 14px;
  width: 100%; max-width: 1000px;
  overflow: hidden; border-radius: 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  container-type: inline-size;
}
.marquee__track {
  display: flex; width: max-content;
  will-change: transform; /* movida por JS (js/main.js), sempre ativa */
}
.marquee .shot {
  flex: none;
  width: calc((100cqw - (var(--per-view) - 1) * var(--m-gap)) / var(--per-view));
  aspect-ratio: 1;
  margin-right: var(--m-gap); /* margem (e não gap) para o loop fechar exato */
}
.shot {
  position: relative; overflow: hidden; border-radius: 10px; margin: 0;
  background: var(--ink-3); cursor: zoom-in;
  border: 0; padding: 0; color: inherit; font: inherit;
}
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: grayscale(.25) contrast(1.05); }
.shot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.85));
  opacity: 0; transition: opacity .5s;
}
.shot figcaption {
  position: absolute; left: 1rem; bottom: .9rem; z-index: 1;
  font-family: var(--font-classic); font-weight: 600; font-size: 1.05rem; letter-spacing: .08em;
  opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s var(--ease);
}
.shot:hover img,
.shot:focus-visible img { transform: scale(1.07); filter: none; }
.shot:hover::after,
.shot:hover figcaption,
.shot:focus-visible::after,
.shot:focus-visible figcaption { opacity: 1; transform: none; }

/* Imagem que não carregou: bloco elegante com o bigode */
.is-broken { background: radial-gradient(circle at center, #1d1810, #0b0b0b 70%); }
.is-broken img { display: none; }
.is-broken::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 70px; height: 28px;
  background: var(--gold); opacity: .5;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40'%3E%3Cpath d='M50 15C45 5 31 2 22 9c-6 5-13 8-20 3 2 13 15 23 30 19 9-2 14-7 18-11 4 4 9 9 18 11 15 4 28-6 30-19-7 5-14 2-20-3C69 2 55 5 50 15Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40'%3E%3Cpath d='M50 15C45 5 31 2 22 9c-6 5-13 8-20 3 2 13 15 23 30 19 9-2 14-7 18-11 4 4 9 9 18 11 15 4 28-6 30-19-7 5-14 2-20-3C69 2 55 5 50 15Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Avaliações (Google) ---------- */
.reviews { background: linear-gradient(180deg, #000, var(--ink-2)); }
.reviews__panel { max-width: 1100px; margin: 0 auto; min-height: 220px; }
.reviews__summary {
  display: flex; align-items: center; justify-content: center; gap: 1.1rem;
  margin-bottom: 2rem;
}
.reviews__score {
  font-family: var(--font-serif); font-weight: 800; font-size: 3.4rem; line-height: 1;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.reviews__summary .stars { margin-bottom: .3rem; }
.reviews__summary .stars svg { width: 20px; height: 20px; }
.reviews__count { display: block; color: var(--muted); font-size: .85rem; }
.reviews__list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem;
}
.reviews__list .review { flex: 1 1 300px; max-width: 352px; }
.review {
  display: flex; flex-direction: column; gap: .9rem;
  padding: 1.75rem 1.6rem; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--ink-3), #0b0b0b);
  border: 1px solid rgba(255,255,255,.06);
  position: relative;
  animation: fadeUp .7s var(--ease) both;
  transition: border-color .35s, transform .35s var(--ease);
}
.review:hover { border-color: var(--line); transform: translateY(-4px); }
.review::before {
  content: "\201C"; position: absolute; top: .4rem; right: 1.2rem;
  font-family: var(--font-serif); font-size: 5rem; line-height: 1; color: var(--gold); opacity: .2;
}
.review__head { display: flex; align-items: center; gap: .8rem; }
.review__avatar {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none;
  border: 1px solid var(--line);
}
.review__avatar--letter {
  display: grid; place-items: center;
  background: var(--gold-grad); color: #111; font-weight: 700; font-size: 1.1rem;
}
.review__name { display: block; font-weight: 600; color: var(--white); }
a.review__name:hover { color: var(--gold-light); }
.review__time { display: block; font-size: .78rem; color: var(--muted); }
.review p {
  color: rgba(247,244,238,.85); font-size: .95rem;
  display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden;
}

.stars { position: relative; display: inline-flex; color: var(--gold); }
.stars__base, .stars__fill { display: flex; gap: 3px; }
.stars__base { color: rgba(217,171,69,.25); }
.stars__fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; }
.stars svg { width: 16px; height: 16px; flex: none; }

.reviews__empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px dashed var(--line); border-radius: var(--radius);
}
.reviews__empty .stars { margin-bottom: 1rem; }
.reviews__empty .stars svg { width: 26px; height: 26px; }
.reviews__empty p { color: var(--muted); margin: 0; }
.reviews__loading { display: flex; align-items: center; justify-content: center; gap: .75rem; padding: 3rem 0; color: var(--muted); }
.reviews__loading span {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--gold);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.reviews__cta { text-align: center; margin-top: 2rem; }
.reviews__cta .btn { white-space: normal; max-width: 100%; text-align: center; }
.reviews__source { text-align: center; margin-top: .9rem; font-size: .75rem; color: var(--muted); }

/* Abas segmentadas por unidade (Serviços e Avaliações) */
.seg-tabs {
  display: flex; justify-content: center; gap: 6px;
  width: fit-content; max-width: 100%;
  margin: -1rem auto 2.5rem; padding: 6px;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.seg-tabs[hidden] { display: none; }
.seg-tabs button {
  display: flex; flex-direction: column; align-items: center; gap: .1rem;
  padding: .7rem 1.6rem; border-radius: 999px; border: 0; cursor: pointer;
  background: transparent; color: var(--muted);
  font: inherit; font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  transition: background .35s, color .35s;
}
.seg-tabs button small { font-size: .66rem; font-weight: 500; letter-spacing: .02em; text-transform: none; opacity: .8; }
.seg-tabs button:hover { color: var(--white); }
.seg-tabs button.is-active { background: var(--gold-grad); color: #111; box-shadow: 0 10px 26px -12px rgba(217,171,69,.7); }

/* ---------- Chamada ---------- */
.cta { position: relative; padding: clamp(5rem, 12vw, 8rem) 0; text-align: center; overflow: hidden; }
.cta__bg { background-attachment: fixed; }
.cta__bg::after { background: rgba(0,0,0,.78); }
.cta__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.cta__icon { width: 90px; height: 36px; color: var(--gold); }

/* ---------- Unidades ---------- */
.units__tabs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 1rem;
  max-width: 780px; margin: 0 auto 2rem;
}
.unit-tab {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: .2rem;
  padding: 1.35rem 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--ink-3);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  font: inherit; cursor: pointer; text-align: center;
  overflow: hidden;
  transition: border-color .4s, background .4s, color .4s, transform .4s var(--ease), box-shadow .4s;
}
.unit-tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--gold-grad); transform: scaleX(0); transition: transform .5s var(--ease);
}
.unit-tab:hover { border-color: var(--line); color: var(--white); transform: translateY(-2px); }
.unit-tab.is-active {
  background: linear-gradient(160deg, #1d1810, #0b0b0b);
  border-color: var(--gold); color: var(--white);
  box-shadow: 0 20px 40px -24px rgba(217,171,69,.55);
}
.unit-tab.is-active::after { transform: scaleX(1); }
.unit-tab__brand { font-family: var(--font-script); font-size: 1rem; }
.unit-tab__name {
  font-family: var(--font-serif); font-weight: 800; font-size: clamp(1.25rem, 3vw, 1.7rem);
  text-transform: uppercase; letter-spacing: .04em;
}
.unit-tab.is-active .unit-tab__name {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.unit-tab__area { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; letter-spacing: .04em; }
.unit-tab__area svg { width: 14px; height: 14px; color: var(--gold); }

.unit {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  grid-template-areas: "gallery info" "map map";
  gap: 1.25rem;
  animation: unitIn .6s var(--ease);
}
.unit[hidden] { display: none; }
@keyframes unitIn { from { opacity: 0; transform: translateY(14px); } }

.unit__gallery { grid-area: gallery; display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.unit__main {
  position: relative; display: block; width: 100%;
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: var(--ink-3); border: 0; padding: 0; cursor: zoom-in;
}
.unit__main img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); animation: fade .5s ease; }
.unit__main:hover img { transform: scale(1.04); }
.unit__main.is-empty { cursor: default; display: grid; place-items: end center; padding-bottom: 1.25rem; }
.unit__main.is-empty span { font-family: var(--font-script); font-size: 1.2rem; color: var(--muted); position: relative; }
.unit__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .6rem; }
.unit__thumb {
  position: relative;
  aspect-ratio: 1; border-radius: 10px; overflow: hidden; padding: 0; cursor: pointer;
  background: var(--ink-3); border: 2px solid transparent; opacity: .55;
  transition: opacity .3s, border-color .3s;
}
.unit__thumb img { width: 100%; height: 100%; object-fit: cover; }
.unit__thumb:hover { opacity: .9; }
.unit__thumb.is-active { opacity: 1; border-color: var(--gold); }
.unit__thumb.is-broken::before { width: 34px; height: 14px; }

.unit__info {
  grid-area: info;
  display: flex; flex-direction: column; gap: 1.5rem;
  padding: 2rem; border-radius: var(--radius);
  background: var(--ink-3); border: 1px solid rgba(255,255,255,.06);
}
.unit__title { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; line-height: 1.3; }
.unit__title em { font-style: normal; color: var(--gold); white-space: nowrap; }
.unit__actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.unit__actions .btn { padding-inline: 1rem; }

.unit__map {
  grid-area: map;
  border-radius: var(--radius); overflow: hidden; height: 340px;
  border: 1px solid var(--line); background: var(--ink-3);
}
.unit__map iframe {
  width: 100%; height: 100%; border: 0; display: block;
  filter: grayscale(1) invert(.92) contrast(.9) sepia(.15);
}
.units__insta { margin-top: 2rem; display: flex; align-items: center; justify-content: center; gap: .5rem; color: var(--gold); }

.info { display: flex; gap: 1.1rem; }
.info__ic { width: 26px; height: 26px; color: var(--gold); flex: none; margin-top: 2px; }
.info h3,
.info h4 { font-family: var(--font-serif); font-size: 1.05rem; margin: 0 0 .35rem; }
.info p { color: var(--muted); margin-bottom: .2rem; }
.hours { margin: 0; display: grid; grid-template-columns: auto auto; gap: .3rem 1.5rem; color: var(--muted); font-size: .95rem; }
.hours dd { margin: 0; color: var(--white); text-align: right; }
.hours dd.closed { color: var(--muted); }

/* ---------- Escolha de unidade (janela) ---------- */
.picker {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  padding: 1rem;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fade .3s ease;
}
.picker[hidden] { display: none; }
.picker__box {
  position: relative;
  width: min(680px, 100%);
  padding: 2.5rem 2rem 2rem;
  border-radius: 18px;
  background: linear-gradient(170deg, #17140e, #050505 70%);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(217,171,69,.05);
  text-align: center;
  animation: pickerIn .5s var(--ease);
}
@keyframes pickerIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes sheetIn { from { transform: translateY(100%); } }
.picker__close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: 0; color: var(--muted); font-size: 2rem; line-height: 1; cursor: pointer; padding: .25rem .5rem;
  transition: color .3s;
}
.picker__close:hover { color: var(--gold); }
.picker__icon { width: 64px; height: 26px; color: var(--gold); margin: 0 auto .75rem; display: block; }
.picker__title {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(1.3rem, 3.6vw, 1.75rem); color: var(--white);
  margin-bottom: 1.75rem;
}
.picker__options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.picker__option {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: 1.5rem 1.1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  transition: border-color .35s, transform .35s var(--ease);
}
.picker__option:hover { border-color: var(--gold); transform: translateY(-3px); }
.picker__label {
  font-family: var(--font-serif); font-weight: 800; font-size: 1.35rem;
  text-transform: uppercase; letter-spacing: .06em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.picker__area { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; text-align: center; color: var(--muted); font-size: .85rem; }
.picker__area svg { width: 14px; height: 14px; color: var(--gold); flex: none; }
.picker__handle { color: var(--white); font-weight: 500; }
.picker__option > .picker__area:last-of-type { margin-bottom: 1rem; }
.picker__icon--insta { width: 34px; height: 34px; }
.picker__option .btn { margin-top: auto; padding-inline: .9rem; font-size: .72rem; letter-spacing: .08em; }

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--line); padding: 3rem 0 6rem; text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.footer img { height: 70px; width: auto; }
.footer__social { display: flex; gap: .75rem; }
.footer__social a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); color: var(--gold);
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.footer__social a:hover { background: var(--gold); color: #111; transform: translateY(-3px); }
.footer__social svg { width: 20px; height: 20px; }
.footer p { color: var(--muted); font-size: .8rem; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: .6rem;
  height: 60px; padding: 0 18px;
  border-radius: 999px;
  background: #25d366; color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid #25d366; animation: pulse 2.4s ease-out infinite;
}
.wa-float svg { width: 28px; height: 28px; flex: none; }
.wa-float__label { font-weight: 600; font-size: .85rem; letter-spacing: .04em; white-space: nowrap; }
.wa-float:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 40px -10px rgba(37, 211, 102, .8); }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.94);
  display: grid; place-items: center;
  padding: 4rem 1rem;
  animation: fade .35s ease;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-height: 78vh; max-width: min(1000px, 92vw); border-radius: 8px; margin-inline: auto; }
.lightbox figcaption { margin-top: 1rem; font-family: var(--font-classic); font-weight: 600; font-size: 1.15rem; letter-spacing: .08em; color: var(--gold); }
.lightbox button { position: absolute; background: none; border: 0; color: var(--white); cursor: pointer; transition: color .3s; }
.lightbox button:hover { color: var(--gold); }
.lightbox__close { top: 14px; right: 18px; font-size: 2.6rem; line-height: 1; padding: .25rem .5rem; }
.lightbox__nav { top: 50%; translate: 0 -50%; font-size: 3.4rem; padding: 1rem; line-height: 1; }
.lightbox__prev { left: 4px; }
.lightbox__next { right: 4px; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Animações de entrada ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .unit { grid-template-columns: 1fr; grid-template-areas: "gallery" "info" "map"; }
}

@media (max-width: 860px) {
  :root { --nav-h: 68px; }

  .nav__toggle { display: block; }
  .nav__logo img { height: 48px; }
  .nav__menu {
    /* tamanho explícito: o header com backdrop-filter vira o bloco de contenção */
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh;
    flex-direction: column; justify-content: center; gap: 1.8rem;
    background: rgba(0,0,0,.97);
    backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden;
    transition: opacity .45s var(--ease), visibility .45s;
  }
  .nav__menu a:not(.btn) { font-family: var(--font-serif); font-size: 1.6rem; letter-spacing: .06em; transform: translateY(16px); transition: transform .5s var(--ease), color .3s; }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; }
  .nav.is-open .nav__menu a { transform: none; }
  .nav__cta { margin-top: 1rem; padding: 1rem 2.2rem; font-size: .85rem; }

  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 480px; margin-inline: auto; width: calc(100% - 14px); margin-left: 14px; }
  .about__text { text-align: center; }
  .about__text p { margin-inline: auto; }

  .cta__bg { background-attachment: scroll; }
}

@media (max-width: 600px) {
  .services__grid { grid-template-columns: 1fr; }
  .portfolio__grid { grid-auto-rows: 160px; gap: 8px; }
  .marquee { --per-view: 2.5; --m-gap: 10px; }
  .seg-tabs button { padding: .65rem 1.1rem; font-size: .72rem; }
  .shot figcaption { opacity: 1; transform: none; font-size: .9rem; left: .7rem; bottom: .5rem; }
  .shot::after { opacity: .9; }

  .hero__actions { flex-direction: column; width: 100%; max-width: 340px; }
  .hero__actions .btn { width: 100%; }
  .units__tabs { gap: .6rem; }
  .unit-tab { padding: 1rem .5rem .95rem; }
  .unit-tab__brand { font-size: .85rem; }
  .unit-tab__area { font-size: .7rem; }
  .unit__info { padding: 1.6rem 1.3rem; }
  .unit__actions { grid-template-columns: 1fr; }
  .unit__map { height: 280px; }

  .picker { place-items: end center; padding: 0; }
  .picker__box { border-radius: 22px 22px 0 0; padding: 2.25rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom)); animation-name: sheetIn; }
  .picker__options { grid-template-columns: 1fr; gap: .75rem; }
  .picker__option { padding: 1.1rem 1rem 1rem; }
  .picker__option .btn { margin-top: 0; }
  .picker__option > .picker__area:last-of-type { margin-bottom: .7rem; }

  .wa-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 58px; height: 58px; padding: 0; justify-content: center; }
  .wa-float__label { display: none; }
}

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