/* Página pública — temas, blocos e botões. Mobile-first. */

:root {
  --accent: #22c55e;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --btn-radius: 16px;

  --bg: #0b0d10;
  --bg-image: none;
  --fg: #eef1f6;
  --muted: #9aa1b1;
  --card: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .12);
  --btn-fg: #fff;
  --shadow: 0 10px 30px rgba(0, 0, 0, .28);
  --glow-strength: 28%;
}

[data-theme="light"] {
  --bg: #f6f6f4;
  --fg: #16181d;
  --muted: #676d7a;
  --card: rgba(0, 0, 0, .04);
  --border: rgba(0, 0, 0, .1);
  --shadow: 0 10px 30px rgba(0, 0, 0, .1);
  --glow-strength: 20%;
}

[data-theme="midnight"] {
  --bg: #070b1a;
  --bg-image: radial-gradient(120% 80% at 50% -10%, #1b2a6b 0%, transparent 60%), linear-gradient(180deg, #070b1a 0%, #0b1330 100%);
  --fg: #e9edff;
  --muted: #9aa4cc;
  --card: rgba(255, 255, 255, .07);
  --border: rgba(255, 255, 255, .14);
}

[data-theme="sunset"] {
  --bg: #1a0b12;
  --bg-image: radial-gradient(110% 70% at 50% -5%, #ff7a45 0%, transparent 55%), linear-gradient(180deg, #2a0f1c 0%, #140a12 100%);
  --fg: #fff3ec;
  --muted: #e0b3a3;
  --card: rgba(255, 255, 255, .09);
  --border: rgba(255, 255, 255, .16);
}

[data-theme="neon"] {
  --bg: #05060a;
  --bg-image: radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, var(--accent) 30%, transparent) 0%, transparent 60%);
  --fg: #f2f6ff;
  --muted: #8e97b5;
  --card: rgba(255, 255, 255, .05);
  --border: color-mix(in srgb, var(--accent) 45%, transparent);
  --shadow: 0 0 24px color-mix(in srgb, var(--accent) 35%, transparent);
  --glow-strength: 40%;
}

[data-theme="clean"] {
  --bg: #ffffff;
  --fg: #101114;
  --muted: #6b7280;
  --card: #f4f4f5;
  --border: #e4e4e7;
  --shadow: none;
  --glow-strength: 0%;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  background-image: var(--bg-image);
  background-attachment: fixed;
  color: var(--fg);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 16px calc(40px + env(safe-area-inset-bottom));
  position: relative;
  overflow-x: hidden;
}

.glow {
  position: fixed;
  inset: -30% 50% auto -30%;
  width: 160%;
  height: 55vh;
  background: radial-gradient(60% 60% at 50% 0%, color-mix(in srgb, var(--accent) var(--glow-strength), transparent), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------------- capa --- */
.cover {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: -56px;
  aspect-ratio: 16 / 7;
  box-shadow: var(--shadow);
}
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* -------------------------------------------------------------- cabeça --- */
.head { text-align: center; margin-bottom: 26px; }
.head.with-cover { padding-top: 4px; }

.avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: var(--shadow);
  display: block;
  margin: 0 auto 14px;
  background: var(--card);
}
.avatar.shape-circle { border-radius: 50%; }
.avatar.shape-rounded { border-radius: 24px; }
.avatar.shape-square { border-radius: 4px; }

.avatar-fallback {
  display: grid;
  place-items: center;
  font-size: 46px;
  font-weight: 700;
  background: color-mix(in srgb, var(--accent) 22%, var(--card));
}

h1 { font-size: clamp(22px, 6vw, 27px); margin: 0 0 6px; letter-spacing: -.015em; }
.subtitle { margin: 0; color: var(--muted); font-size: 15px; }
.bio { margin: 10px 0 0; font-size: 14px; color: var(--muted); }

/* -------------------------------------------------------------- blocos --- */
.links { display: flex; flex-direction: column; gap: 12px; }

.block-heading {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin: 14px 0 -2px;
  font-weight: 700;
}
.block-text { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.block-divider { border: 0; border-top: 1px solid var(--border); margin: 10px 0; width: 100%; }

.btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border-radius: var(--btn-radius);
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow);
  transition: transform .14s ease, filter .14s ease, box-shadow .14s ease;
}
.btn:active { transform: scale(.98); }
@media (hover: hover) {
  .btn:hover { filter: brightness(1.08); transform: translateY(-2px); }
}

.style-outline .btn {
  background: transparent;
  color: var(--fg);
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
  box-shadow: none;
}
.style-glass .btn {
  background: var(--card);
  color: var(--fg);
  border-color: var(--border);
  backdrop-filter: blur(12px);
}
[data-theme="neon"] .btn { box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 35%, transparent); }

.btn-icon { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; }
.btn-icon svg { width: 23px; height: 23px; fill: currentColor; }
.btn-icon .link-logo, .link-logo { width: 26px; height: 26px; object-fit: contain; border-radius: 6px; }
.btn-label { flex: 1; min-width: 0; }
.btn-chevron { opacity: .5; font-size: 22px; line-height: 1; }
.btn-hint { font-size: 12px; opacity: .75; font-weight: 500; }

.location-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--btn-radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.location-title { display:flex; gap:12px; align-items:flex-start; padding:16px; }
.location-title strong { display:block; margin-bottom:4px; }
.location-title p { margin:0; color:var(--fg); font-size:14px; line-height:1.45; }
.location-title small { display:block; margin-top:4px; color:var(--muted); }
.location-map { display:block; width:100%; height:210px; border:0; background:var(--border); }
.location-hours { margin:0; padding:12px 16px 0; color:var(--muted); font-size:13px; }
.location-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:12px; }
.location-actions a, .location-actions button { display:flex; align-items:center; justify-content:center; min-height:42px; border:1px solid var(--border); border-radius:10px; background:transparent; color:var(--fg); font:inherit; font-size:13px; font-weight:650; text-decoration:none; cursor:pointer; }
.location-actions button { grid-column:1 / -1; }
.location-actions a:hover, .location-actions button:hover { border-color:var(--accent); }

/* ----------------------------------------------------------- ferramentas - */
.tools {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.tool {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  padding: 9px 15px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}
.tool svg { width: 15px; height: 15px; fill: currentColor; }
@media (hover: hover) { .tool:hover { color: var(--fg); border-color: var(--accent); } }

.footer-note { text-align: center; color: var(--muted); font-size: 12px; margin: 20px 0 0; }

/* ------------------------------------------------------ whatsapp float --- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  z-index: 20;
}
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ------------------------------------------------------------- dialogo --- */
.qr-dialog {
  border: 0;
  border-radius: 20px;
  padding: 20px;
  background: #fff;
  color: #111;
  text-align: center;
  max-width: 320px;
}
.qr-dialog::backdrop { background: rgba(0, 0, 0, .65); }
.qr-dialog svg { width: 100%; height: auto; display: block; }
.qr-url { font-size: 12px; color: #666; word-break: break-all; margin: 12px 0; }
.qr-dialog button {
  font: inherit;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #111;
  color: #fff;
  cursor: pointer;
}

/* --------------------------------------------------------------- toast --- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: #101317;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 30;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------ animacao --- */
.anim-fade .item { animation: fade .5s ease both; animation-delay: var(--d, 0ms); }
.anim-slide .item { animation: slide .5s cubic-bezier(.2, .7, .3, 1) both; animation-delay: var(--d, 0ms); }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .item { animation: none !important; }
  * { transition: none !important; }
}

@media (min-width: 640px) {
  body { padding-top: 56px; }
}
