/* ═══════════════════════════════════════════════════════════════
   LINK NA BIO · Imigra Judah (Judah Immigration Services)
   Mesma estrutura do link da bio Zonta, na marca Judah:
   azul-marinho Old Glory (#0A1B3F / #12295C) + vermelho (#B22234) + branco.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --ink: #071431;
  --night: #0A1B3F;
  --night-2: #12295C;
  --navy: #0E2350;
  --red: #B22234;
  --red-deep: #8E1A29;
  --red-soft: #F2B8C0;
  --white: #FFFFFF;
  --ivory: #F4F6FB;
  --muted: rgba(244, 246, 251, .7);
  --faint: rgba(244, 246, 251, .45);
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .22);
  --glass: rgba(255, 255, 255, .045);
  --glass-hover: rgba(255, 255, 255, .09);
  --wa: #25d366;
  --radius: 22px;
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
::selection { background: var(--red); color: var(--white); }

/* ---------- Atmosfera: céu noturno com estrelas ---------- */
.atmos { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: var(--night); }
.atmos::before {
  content: ""; position: absolute; inset: -10%;
  background-image:
    radial-gradient(1.4px 1.4px at 20px 30px, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 90px 120px, rgba(255,255,255,.4), transparent),
    radial-gradient(1.2px 1.2px at 160px 60px, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 230px 170px, rgba(255,255,255,.35), transparent);
  background-size: 260px 220px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
  animation: drift 60s linear infinite;
}
@keyframes drift { to { transform: translate3d(0, -220px, 0); } }

/* ---------- Monograma ---------- */
.mono { width: var(--s, 30px); height: var(--s, 30px); display: grid; place-items: center; }
.mono img { width: 100%; height: auto; }

/* ---------- Layout ---------- */
.stage {
  position: relative; z-index: 2;
  min-height: 100dvh;
  display: grid; place-items: start center;
  padding: 20px 16px 40px;
}
@media (min-width: 980px) {
  .stage {
    grid-template-columns: minmax(0, 440px) 300px;
    justify-content: center; align-items: start; gap: 56px;
    padding: 56px 32px;
  }
}
.card { width: 100%; max-width: 440px; }

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 16px; }
.topbar .brand img.wordmark { height: 40px; width: auto; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: var(--glass);
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.icon-btn:hover { background: var(--glass-hover); border-color: var(--white); }
.icon-btn:active { transform: scale(.94); }

/* ---------- Hero (logo no lugar do retrato) ---------- */
.hero {
  position: relative; border-radius: 28px; overflow: hidden;
  background: var(--white); color: var(--navy);
  isolation: isolate;
}
.hero-chip {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 10px; border-radius: 999px;
  background: var(--ivory);
  font-size: 12px; font-weight: 600; color: var(--navy);
}
.hero-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 3px rgba(37, 211, 102, .22); animation: pulse 2.4s infinite; }
.hero-logo { padding: 64px 36px 6px; }
.hero-logo img { width: 100%; max-width: 330px; margin: 0 auto; transform: scale(.94); opacity: 0; animation: settle 1.2s .25s var(--ease) forwards; }
.hero-body { padding: 18px 24px 26px; text-align: center; }
.name { font-weight: 800; font-stretch: 80%; font-size: clamp(34px, 10vw, 44px); letter-spacing: -.02em; line-height: 1; color: var(--navy); }
.tagline { margin: 10px auto 0; max-width: 30ch; font-size: 15.5px; color: #2B3A5C; }
.meta { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; }
.oab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: 8px;
  background: var(--red); color: var(--white);
  font-size: 12.5px; font-weight: 700;
}
.area { font-size: 13px; color: #44527A; font-weight: 500; }
.stripes { position: relative; display: grid; grid-template-rows: repeat(7, 7px); }
.stripes::before {
  content: ""; position: absolute; left: 0; top: 0; z-index: 1; width: 34%; height: 28px;
  background-color: var(--navy);
  background-image: radial-gradient(circle, #fff 1.1px, transparent 1.6px);
  background-size: 11px 9px; background-position: 3px 1px;
  transform: scaleX(0); transform-origin: left; animation: wipe .8s .45s var(--ease) forwards;
}
.stripes i { display: block; transform-origin: left; transform: scaleX(0); animation: wipe 1s var(--ease) forwards; }
.stripes i:nth-child(odd) { background: var(--red); }
.stripes i:nth-child(even) { background: var(--white); }
.stripes i:nth-child(1) { animation-delay: .5s } .stripes i:nth-child(2) { animation-delay: .56s }
.stripes i:nth-child(3) { animation-delay: .62s } .stripes i:nth-child(4) { animation-delay: .68s }
.stripes i:nth-child(5) { animation-delay: .74s } .stripes i:nth-child(6) { animation-delay: .8s }
.stripes i:nth-child(7) { animation-delay: .86s }

@keyframes settle { to { transform: none; opacity: 1; } }
@keyframes wipe { to { transform: none; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(37, 211, 102, 0); } }

/* ---------- Ações ---------- */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.quick a {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 8px 14px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--muted);
  transition: all .35s var(--ease);
}
.quick a svg { color: var(--white); transition: transform .35s var(--ease); }
.quick a:hover { background: var(--glass-hover); border-color: var(--line-strong); color: var(--white); transform: translateY(-2px); }
.quick a:hover svg { transform: scale(1.1); }
.quick a.wa svg { color: var(--wa); }

.save {
  position: relative; overflow: hidden;
  margin-top: 10px; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 20px; border-radius: 18px;
  background: var(--red);
  color: var(--white); font-size: 15px; font-weight: 700; letter-spacing: .01em;
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.save::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: sheen 5s 2s var(--ease) infinite;
}
.save:hover { transform: translateY(-2px); background: #C42A3E; }
.save:active { transform: scale(.98); }
@keyframes sheen { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* ---------- Seções ---------- */
.section { margin-top: 30px; }
.section-head { display: flex; align-items: center; gap: 12px; margin: 0 4px 12px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--white); }
.section-head::before { content: ""; width: 14px; height: 14px; flex: none; background: var(--red); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }

.list { border-radius: var(--radius); background: var(--glass); overflow: hidden; }
.row {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 16px; position: relative;
  transition: background .3s var(--ease);
}
.row + .row { border-top: 1px solid var(--line); }
.row:hover { background: var(--glass-hover); }
.row .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--white); }
.row .ico.wa { color: var(--wa); }
.row .txt { flex: 1; min-width: 0; display: grid; }
.row .lbl { font-size: 12.5px; color: var(--faint); }
.row .val { font-size: 15.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .arrow { color: var(--faint); transition: transform .35s var(--ease), color .3s; }
.row:hover .arrow { transform: translate(3px, -3px); color: var(--white); }

/* Links principais */
.links { display: grid; gap: 10px; }
.link {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 20px;
  background: var(--glass); border: 1px solid var(--line);
  transition: all .35s var(--ease);
}
.link:hover { background: var(--glass-hover); border-color: var(--line-strong); transform: translateY(-2px); }
.link .ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.08); color: var(--white); }
.link .txt { flex: 1; min-width: 0; display: grid; }
.link .t { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.link .s { font-size: 13px; color: var(--muted); margin-top: 2px; }
.link .arrow { color: var(--faint); transition: transform .35s var(--ease), color .3s; }
.link:hover .arrow { transform: translate(3px, -3px); color: var(--white); }
.link.feat { background: var(--white); color: var(--navy); border-color: var(--white); }
.link.feat .ico { background: var(--red); color: var(--white); }
.link.feat .s { color: #44527A; }
.link.feat .arrow { color: var(--red); }
.link.feat:hover { background: var(--white); }

/* Bento institucional */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  padding: 16px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--line);
  min-height: 132px;
  transition: all .4s var(--ease);
}
.tile:hover { border-color: var(--line-strong); transform: translateY(-2px); background: var(--glass-hover); }
.tile .t-top { display: flex; justify-content: space-between; align-items: flex-start; color: var(--faint); }
.tile .t-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.tile .t-name { display: block; font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.tile .t-sub { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.tile.site {
  grid-column: 1 / -1; min-height: 120px; flex-direction: row; align-items: flex-end; gap: 16px;
  background:
    linear-gradient(0deg, rgba(10, 27, 63, .92), rgba(10, 27, 63, .25)),
    url("../assets/img/bandeira.webp") center 40% / cover;
}
.tile.site .t-ico { background: var(--red); color: var(--white); }
.tile.site .t-body { flex: 1; }
.tile.site .arrow { color: var(--white); }
.tile.ig .t-ico { background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af); }
.tile.gg .t-ico { background: #fff; }

/* Unidades */
.units { display: grid; gap: 8px; }
.unit {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass);
  transition: all .3s var(--ease);
}
.unit:hover { background: var(--glass-hover); border-color: var(--line-strong); }
.unit .uf {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-size: 14px; font-weight: 800; color: var(--white); background: rgba(255,255,255,.08);
}
.unit.home .uf { background: var(--red); }
.unit .city { font-size: 17.5px; font-weight: 700; letter-spacing: -.015em; line-height: 1.05; display: flex; align-items: center; gap: 8px; }
.unit .tag { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.12); color: var(--white); }
.unit .addr { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 3px; }
.unit .arrow { color: var(--faint); }

/* Rodapé */
.foot { margin-top: 40px; text-align: center; }
.foot img { width: 200px; margin: 0 auto 16px; }
.foot p { font-size: 12px; color: var(--faint); }
.foot .motto { font-size: 17px; font-weight: 600; color: var(--white); margin-bottom: 18px; }
.foot .legal { margin-top: 10px; font-size: 11.5px; line-height: 1.55; max-width: 380px; margin-inline: auto; }

/* ---------- Painel lateral (desktop) ---------- */
.aside { display: none; }
@media (min-width: 980px) {
  .aside { display: block; position: sticky; top: 56px; }
}
.qr-card { border-radius: 28px; padding: 26px; background: var(--night-2); }
.qr-card h3 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 8px; }
.qr-card p { font-size: 14px; color: var(--muted); }
.qr-box {
  margin: 22px 0 18px; padding: 16px; border-radius: 20px; background: #fff;
  display: grid; place-items: center; position: relative;
}
.qr-box > div canvas, .qr-box > div img { width: 100% !important; height: auto !important; }
.qr-box .mono { position: absolute; --s: 52px; background: #fff; padding: 5px; border-radius: 10px; }
.ghost {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px; border-radius: 14px; border: 1px solid var(--line-strong);
  font-size: 14px; font-weight: 600;
  transition: all .3s var(--ease);
}
.ghost:hover { background: var(--glass-hover); border-color: var(--white); }
.ghost + .ghost { margin-top: 8px; }

/* ---------- Modal QR (mobile) ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: end center;
  background: rgba(4, 10, 26, .7);
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
.sheet.open { opacity: 1; pointer-events: auto; }
.sheet .qr-card {
  width: 100%; max-width: 440px; border-radius: 28px 28px 0 0; background: var(--night);
  padding-bottom: calc(26px + env(safe-area-inset-bottom));
  transform: translateY(40px); transition: transform .45s var(--ease);
}
.sheet.open .qr-card { transform: none; }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: -8px auto 16px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  transform: translate(-50%, 20px); opacity: 0;
  padding: 12px 18px; border-radius: 999px; background: var(--white); color: var(--navy);
  font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  transition: all .4s var(--ease); pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Entrada escalonada ---------- */
.reveal { opacity: 0; transform: translateY(16px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 80ms + 120ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
:focus-visible { outline: 2px solid var(--red-soft); outline-offset: 3px; border-radius: 12px; }

/* ---------- Idiomas ---------- */
.lang { display: flex; gap: 2px; margin-left: auto; margin-right: 10px; }
.lang a { padding: 7px 9px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--muted); transition: background .25s var(--ease), color .25s; }
.lang a:hover { color: var(--white); background: var(--glass-hover); }
.lang a[aria-current] { background: var(--white); color: var(--navy); }
