/* Instabio solo — página de links estática. Sem dependências externas. */

/* Tema "vitrine à noite" (lojas): preto e branco, vidro fosco e feixes de luz. */
.theme-noir {
  --bg: #000;
  --text: #f5f5f7;
  --muted: rgba(245, 245, 247, 0.64);
  --faint: rgba(245, 245, 247, 0.4);
  --glass: rgba(255, 255, 255, 0.065);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --stroke: rgba(255, 255, 255, 0.12);
  --stroke-top: rgba(255, 255, 255, 0.26);
  --spot: rgba(255, 255, 255, 0.16);
  --icon: #f5f5f7;
  --cta-bg: #f5f5f7;
  --cta-text: #000;
  --cta-glow: 0 10px 40px rgba(255, 255, 255, 0.18);
  --orb-1: rgba(214, 220, 232, 0.34);
  --orb-2: rgba(255, 255, 255, 0.22);
  --orb-3: rgba(150, 160, 180, 0.28);
  --ok: #34c759;
  --closed: #ff453a;
  --grain-opacity: 0.09;
  color-scheme: dark;
}

/* Tema "fim de tarde" (corretores): branco, preto e laranja. */
.theme-sunset {
  --bg: #fff;
  --text: #1d1d1f;
  --muted: #5f5f66;
  --faint: #8e8e93;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.8);
  --stroke: rgba(29, 29, 31, 0.07);
  --stroke-top: rgba(255, 255, 255, 1);
  --spot: rgba(29, 29, 31, 0.05);
  --icon: #e8590c;
  --accent: #e8590c;
  --accent-ink: #c2410c;
  --cta-bg: linear-gradient(180deg, #ff7a1a 0%, #e8590c 100%);
  --cta-text: #fff;
  --cta-glow: 0 8px 22px rgba(232, 89, 12, 0.22);
  --orb-1: rgba(0, 0, 0, 0);
  --orb-2: rgba(0, 0, 0, 0);
  --orb-3: rgba(0, 0, 0, 0);
  --ok: #1f9d55;
  --closed: #d70015;
  --grain-opacity: 0.05;
  color-scheme: light;
}

:root {
  --radius: 20px;
  --radius-lg: 26px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* Fundo vivo: focos de luz desfocados + grão ------------------------------------ */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.orb-1 { width: 70vmax; height: 70vmax; max-width: 620px; max-height: 620px; left: -22%; top: -18%; background: radial-gradient(circle, var(--orb-1), transparent 65%); animation: drift-1 34s ease-in-out infinite alternate; }
.orb-2 { width: 60vmax; height: 60vmax; max-width: 520px; max-height: 520px; right: -26%; top: 18%; background: radial-gradient(circle, var(--orb-2), transparent 62%); animation: drift-2 40s ease-in-out infinite alternate; }
.orb-3 { width: 80vmax; height: 80vmax; max-width: 700px; max-height: 700px; left: -10%; bottom: -40%; background: radial-gradient(circle, var(--orb-3), transparent 64%); animation: drift-3 46s ease-in-out infinite alternate; }
@keyframes drift-1 { to { transform: translate(18%, 14%) scale(1.08); } }
@keyframes drift-2 { to { transform: translate(-22%, 10%) scale(0.92); } }
@keyframes drift-3 { to { transform: translate(14%, -18%) scale(1.06); } }
.ambient::after {
  content: ""; position: absolute; inset: -50%; opacity: var(--grain-opacity); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.page { position: relative; z-index: 1; max-width: 460px; margin: 0 auto; padding: 0 0 36px; }
.section { padding: 0 16px; margin-top: 18px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.space-lg { margin-top: 36px; }
.heading { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin: 0 4px 12px; }

/* Vidro --------------------------------------------------------------------------- */
.glass {
  position: relative; isolation: isolate;
  background: var(--glass);
  border: 1px solid var(--stroke);
  box-shadow: inset 0 1px 0 var(--stroke-top);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
          backdrop-filter: blur(22px) saturate(160%);
}
.theme-sunset { --glass: #f5f5f7; --glass-strong: #ececef; }
.theme-sunset .glass { -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
/* Feixe de luz que segue o dedo/mouse (variáveis --x/--y definidas pelo script). */
[data-spot]::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(220px circle at var(--x, 50%) var(--y, 50%), var(--spot), transparent 65%);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
[data-spot]:hover::before, [data-spot].is-pressed::before { opacity: 1; }

/* Hero --------------------------------------------------------------------------- */
.hero { text-align: center; }
.hero-cover { margin: 0; border-radius: 0 0 28px 28px; overflow: hidden; aspect-ratio: 5 / 2; background: var(--glass-strong); position: relative; }
.hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.hero-cover::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--stroke); border-radius: inherit; }
.hero-avatar {
  position: relative; z-index: 2;
  width: 148px; height: 148px; margin: 36px auto 0; border-radius: 50%; overflow: hidden; background: var(--bg);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--stroke), 0 14px 34px rgba(0, 0, 0, 0.3);
}
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero-body { padding: 12px 20px 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hero-name { font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; margin: 0; }
.hero-role { font-size: 15px; font-weight: 600; color: var(--accent-ink, var(--muted)); margin: 0; }
.hero-bio { font-size: 16px; color: var(--muted); margin: 0; max-width: 32ch; text-wrap: balance; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--accent-ink, var(--text)); background: var(--glass-strong); border: 1px solid var(--stroke); }
.status {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 10px; padding: 9px 16px; min-height: 38px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--text);
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; position: relative; }
.status[data-state="open"] .status-dot { background: var(--ok); }
.status[data-state="open"] .status-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; animation: ping 2.4s var(--ease) infinite; }
.status[data-state="closed"] .status-dot { background: var(--closed); }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(1.7); opacity: 0; } }

/* Esteira de marcas ---------------------------------------------------------------- */
.brands { margin-top: 24px; position: relative; overflow: hidden; padding: 10px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); }
.brands-track { display: flex; width: max-content; animation: marquee var(--marquee-duration, 34s) linear infinite; }
.brands:hover .brands-track { animation-play-state: paused; }
.brands-group { display: flex; align-items: center; gap: 44px; padding-right: 44px; }
.brand { height: 32px; display: flex; align-items: center; flex: none; }
.brand img { height: 24px; width: auto; max-width: 112px; object-fit: contain; opacity: 0.86; }
.theme-noir .brand img { filter: brightness(0) invert(1); }
.theme-sunset .brand img { filter: grayscale(1); }
.brand-word { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); opacity: 0.72; white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Banner promocional ----------------------------------------------------------------- */
.promo { display: block; position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--glass-strong); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }

.promo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.promo:hover img { transform: scale(1.03); }
.promo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--stroke); pointer-events: none; }
.promo-label {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px 12px 16px; border-radius: 16px; color: #fff;
  background: rgba(20, 20, 22, 0.42); border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
}
.promo-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.promo-go { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: #fff; color: #000; white-space: nowrap; }

/* Botões de link ----------------------------------------------------------------------- */
.link {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 72px; padding: 14px 16px 14px 18px;
  border-radius: var(--radius); text-align: left; cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.link:hover { background: var(--glass-strong); }
.link:active, .link.is-pressed { transform: scale(0.98); }
.link-icon { flex: none; width: 28px; height: 28px; display: grid; place-items: center; color: var(--icon); }
.link-icon svg { width: 26px; height: 26px; }
.link-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.link-title { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.link-desc { font-size: 14px; color: var(--muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-chevron { flex: none; width: 18px; height: 18px; color: var(--faint); transition: transform 0.25s var(--ease); }
.link:hover .link-chevron { transform: translateX(3px); }

/* Carrossel --------------------------------------------------------------------------- */
.carousel { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 6px; scroll-padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.carousel::-webkit-scrollbar { display: none; }
.carousel-item { flex: 0 0 80%; scroll-snap-align: start; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--glass-strong); position: relative; }
.carousel-item::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--stroke); pointer-events: none; }
.carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; }
.dot { width: 7px; height: 7px; border-radius: 999px; background: var(--faint); opacity: 0.5; border: 0; padding: 0; cursor: pointer; transition: width 0.3s var(--ease), opacity 0.3s var(--ease); }
.dot[aria-current="true"] { width: 22px; opacity: 1; background: var(--accent, var(--text)); }

/* Horários ---------------------------------------------------------------------------- */
.card { border-radius: var(--radius-lg); padding: 20px 20px 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.card-title { font-size: 18px; font-weight: 700; margin: 0; letter-spacing: -0.02em; }
.card .status { white-space: nowrap; flex: none; margin: 0; padding: 6px 12px; min-height: 32px; font-size: 13px; background: var(--glass-strong); border: 1px solid var(--stroke); }
.hours { width: 100%; border-collapse: collapse; font-size: 16px; }
.hours th { text-align: left; font-weight: 400; color: var(--muted); padding: 10px 0; }
.hours td { text-align: right; padding: 10px 0; font-variant-numeric: tabular-nums; color: var(--muted); }
.hours tr + tr th, .hours tr + tr td { border-top: 1px solid var(--stroke); }
.hours tr[data-today] th, .hours tr[data-today] td { color: var(--text); font-weight: 600; }
.hours tr[data-today] th::after { content: "hoje"; margin-left: 8px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--stroke); vertical-align: 2px; }
.hours-note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

/* CTA --------------------------------------------------------------------------------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  min-height: 60px; padding: 16px 22px; border-radius: 999px; cursor: pointer;
  background: var(--cta-bg); color: var(--cta-text); font-size: 17px; font-weight: 600; letter-spacing: -0.015em;
  box-shadow: var(--cta-glow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cta svg { width: 22px; height: 22px; }
.cta:active { transform: scale(0.98); }
/* Reflexo que atravessa o botão uma vez ao abrir e ao passar o mouse. */
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-120%); animation: sheen 1.6s var(--ease) 1.2s 1 both;
}
.theme-noir .cta::after { background: linear-gradient(105deg, transparent 35%, rgba(160, 160, 170, 0.45) 50%, transparent 65%); }
.cta:hover::after { animation: sheen 1.1s var(--ease) 1 both; }
@keyframes sheen { to { transform: translateX(120%); } }
.cta-note { text-align: center; font-size: 13px; color: var(--muted); margin: 12px 0 0; }

/* Redes e rodapé ------------------------------------------------------------------- */
.social { display: flex; justify-content: center; gap: 14px; }
.social a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; transition: transform 0.25s var(--ease); }
.social a:hover { transform: translateY(-2px); }
.social svg { width: 24px; height: 24px; color: var(--icon); }
.footer { margin-top: 26px; text-align: center; font-size: 13px; color: var(--faint); }
.footer a { color: var(--text); font-weight: 600; }

/* Cards de categoria (corretores) ---------------------------------------------- */
.cat-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 18px 18px 0; border-radius: 14px; background: var(--accent); color: #fff; }
.cat-icon svg { width: 28px; height: 28px; }
.cat-card { flex: 0 0 64%; scroll-snap-align: start; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s var(--ease); }
.cat-card:active, .cat-card.is-pressed { transform: scale(0.985); }
.cat-media { aspect-ratio: 4 / 3; overflow: hidden; }
.cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.cat-card:hover .cat-media img { transform: scale(1.04); }
.cat-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cat-title { font-size: 20px; font-weight: 700; margin: 0; letter-spacing: -0.02em; }
.cat-desc { font-size: 15px; color: var(--muted); margin: 0; flex: 1; }
.cat-action { align-self: flex-start; margin-top: 12px; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; color: var(--accent-ink, var(--text)); background: #fff; }

/* Sobre --------------------------------------------------------------------------- */
.about { border-radius: var(--radius-lg); overflow: hidden; }
.about-media { aspect-ratio: 4 / 5; overflow: hidden; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-body { padding: 20px 20px 22px; }
.about-title { font-size: 24px; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 12px; line-height: 1.15; }
.about-text { font-size: 16px; line-height: 1.55; color: var(--muted); margin: 0; }
.about-text + .about-text { margin-top: 12px; }

/* Folha de escolha (unidades) ---------------------------------------------------- */
.sheet { border: 0; padding: 0; width: min(460px, 100%); max-width: 100%; margin: auto auto 0; border-radius: 28px 28px 0 0; color: var(--text);
  background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(30px) saturate(160%); backdrop-filter: blur(30px) saturate(160%);
  border-top: 1px solid var(--stroke-top); box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.4); }
.sheet::backdrop { background: rgba(0, 0, 0, 0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@media (min-width: 560px) { .sheet { margin: auto; border-radius: 28px; } }
.sheet[open] { animation: sheet-in 0.4s var(--ease); }
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-inner { padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); }
.sheet-grip { width: 38px; height: 5px; border-radius: 999px; background: var(--faint); opacity: 0.6; margin: 0 auto 16px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sheet-title { font-size: 22px; font-weight: 700; margin: 0; letter-spacing: -0.02em; }
.sheet-sub { font-size: 15px; color: var(--muted); margin: 2px 0 0; }
.sheet-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--stroke); background: var(--glass-strong); cursor: pointer; display: grid; place-items: center; flex: none; }
.sheet-close svg { width: 18px; height: 18px; }
.sheet-options { display: flex; flex-direction: column; gap: 10px; }
.unit { border-radius: var(--radius); padding: 16px; background: var(--glass); border: 1px solid var(--stroke); box-shadow: inset 0 1px 0 var(--stroke-top); }
.unit-name { font-size: 17px; font-weight: 600; margin: 0; letter-spacing: -0.015em; }
.unit-meta { font-size: 14px; color: var(--muted); margin: 3px 0 12px; }
.unit-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.unit-btn { flex: 1 1 0; min-width: 120px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--cta-bg); color: var(--cta-text); font-size: 15px; font-weight: 600; }
.unit-btn.secondary { background: var(--glass-strong); color: var(--text); border: 1px solid var(--stroke); }
.unit-btn svg { width: 18px; height: 18px; }

/* Entrada: uma única sequência ao abrir ------------------------------------------- */
.reveal { animation: rise 0.8s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .orb, .reveal, .cta::after, .status-dot::after, .sheet[open] { animation: none !important; }
  .brands { -webkit-mask-image: none; mask-image: none; }
  .brands-track { animation: none; width: auto; }
  .brands-group { flex-wrap: wrap; justify-content: center; gap: 14px 28px; padding: 0 20px; }
  .brands-group[aria-hidden="true"] { display: none; }
  .link, .cta, .promo img, .cat-media img, .cat-card { transition: none; }
}
@media (min-width: 560px) { .page { padding-top: 24px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
