@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #2e4169;
  --navy-deep: #1b2944;
  --navy-ink: #121a2c;
  --red: #b73235;
  --red-hot: #c93c3f;
  --text: #f5f7fa;
  --font: "Outfit", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bio-pad-x: clamp(12px, 4vw, 20px);
  --bio-gap: clamp(10px, 2.4vh, 26px);
  --bio-btn-h: clamp(42px, 6.4vh, 54px);
  --bio-btn-gap: clamp(6px, 1.15vh, 11px);
  --bio-btn-pad-y: clamp(8px, 1.15vh, 13px);
  --bio-btn-pad-x: clamp(12px, 3.5vw, 18px);
  --bio-btn-radius: clamp(12px, 2.2vh, 18px);
  --bio-btn-font: clamp(0.84rem, 2.35vh, 0.96rem);
  --bio-logo: clamp(132px, 22vmin, 200px);
}

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

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--navy-deep);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  touch-action: manipulation;
}

.bio {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding:
    max(10px, env(safe-area-inset-top, 0px))
    max(var(--bio-pad-x), env(safe-area-inset-right, 0px))
    max(12px, env(safe-area-inset-bottom, 0px))
    max(var(--bio-pad-x), env(safe-area-inset-left, 0px));
  overflow: hidden;
}

.bio-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(183, 50, 53, 0.34), transparent 58%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(46, 65, 105, 0.55), transparent 55%),
    radial-gradient(ellipse 55% 40% at 0% 70%, rgba(201, 60, 63, 0.12), transparent 50%),
    linear-gradient(165deg, #16233a 0%, var(--navy-deep) 45%, var(--navy-ink) 100%);
}

.bio-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
  opacity: 0.7;
}

.bio-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--bio-gap);
  min-height: 0;
}

.bio-brand {
  flex: 0 0 auto;
  text-align: center;
  animation: bio-rise 0.7s var(--ease) both;
}

.bio-logo {
  display: block;
  width: var(--bio-logo);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.bio-hours {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  max-width: 100%;
  margin: clamp(6px, 1.2vh, 12px) 0 0;
  padding: clamp(5px, 0.9vh, 8px) clamp(10px, 2.8vw, 14px);
  font-size: clamp(0.7rem, 1.9vh, 0.78rem);
  font-weight: 500;
  color: rgba(245, 247, 250, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
}

.bio-hours-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.2);
}

.bio-hours[data-open="true"] {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.12);
}

.bio-hours[data-open="true"] .bio-hours-dot {
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.22);
}

.bio-hours[data-open="false"] .bio-hours-dot {
  background: #fb7185;
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.2);
}

.bio-hours-status {
  font-weight: 650;
  letter-spacing: -0.01em;
}

.bio-hours-sep {
  opacity: 0.45;
}

.bio-hours-schedule {
  opacity: 0.78;
}

.bio-links {
  width: 100%;
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--bio-btn-gap);
  list-style: none;
  margin: 0;
  padding: 0;
}

.bio-links li {
  animation: bio-rise 0.65s var(--ease) both;
  min-width: 0;
}

.bio-links li:nth-child(1) { animation-delay: 0.06s; }
.bio-links li:nth-child(2) { animation-delay: 0.1s; }
.bio-links li:nth-child(3) { animation-delay: 0.14s; }
.bio-links li:nth-child(4) { animation-delay: 0.18s; }
.bio-links li:nth-child(5) { animation-delay: 0.22s; }
.bio-links li:nth-child(6) { animation-delay: 0.26s; }

.bio-btn {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.5vw, 14px);
  width: 100%;
  min-height: var(--bio-btn-h);
  height: var(--bio-btn-h);
  padding: var(--bio-btn-pad-y) var(--bio-btn-pad-x);
  text-decoration: none;
  color: var(--text);
  font-size: var(--bio-btn-font);
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--bio-btn-radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.2s var(--ease),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.bio-btn:hover,
.bio-btn:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
  outline: none;
}

.bio-btn:active {
  transform: translateY(0) scale(0.985);
}

.bio-btn-primary {
  background: linear-gradient(135deg, var(--red-hot), var(--red));
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(183, 50, 53, 0.38);
}

.bio-btn-primary:hover,
.bio-btn-primary:focus-visible {
  background: linear-gradient(135deg, #d44548, var(--red-hot));
  border-color: transparent;
}

.bio-ico {
  width: clamp(18px, 2.4vh, 22px);
  height: clamp(18px, 2.4vh, 22px);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.bio-ico svg {
  width: 100%;
  height: 100%;
  display: block;
}

.bio-btn-label {
  flex: 1;
  min-width: 0;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bio-btn-chevron {
  width: clamp(14px, 2vh, 16px);
  height: clamp(14px, 2vh, 16px);
  opacity: 0.55;
  flex-shrink: 0;
}

.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;
}

@keyframes bio-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Telas baixas (muitos Androids / notch + barras) */
@media (max-height: 720px) {
  :root {
    --bio-logo: clamp(120px, 18vmin, 168px);
    --bio-gap: clamp(8px, 1.8vh, 16px);
    --bio-btn-h: clamp(40px, 5.8vh, 48px);
  }
}

@media (max-height: 640px) {
  :root {
    --bio-logo: clamp(108px, 16vmin, 148px);
    --bio-gap: clamp(6px, 1.4vh, 12px);
    --bio-btn-h: clamp(38px, 5.4vh, 44px);
    --bio-btn-gap: clamp(5px, 0.9vh, 8px);
  }

  .bio-hours-sep,
  .bio-hours-schedule {
    display: none;
  }
}

/* Landscape: grade 2 colunas para caber sem scroll */
@media (orientation: landscape) and (max-height: 520px) {
  :root {
    --bio-logo: clamp(96px, 18vmin, 140px);
    --bio-gap: 10px;
    --bio-btn-h: clamp(36px, 12vh, 44px);
    --bio-btn-gap: 6px;
  }

  .bio-shell {
    width: min(100%, 720px);
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 3vw, 24px);
  }

  .bio-brand {
    flex: 0 0 auto;
    max-width: 180px;
  }

  .bio-hours {
    margin-top: 8px;
  }

  .bio-hours-sep,
  .bio-hours-schedule {
    display: none;
  }

  .bio-links {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bio-brand,
  .bio-links li {
    animation: none;
  }

  .bio-btn {
    transition: none;
  }
}
