/* =========================================================
   Página Bio Mobile - Mapper Logística
   Arquivo: style.css
   Foco: abrir bem em telas de dispositivos móveis
   ========================================================= */

:root {
  --primary: #E41616;
  --primary-dark: #62140A;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.86);
  --button-bg: #ffffff;
  --button-text: #292525;
  --button-border: rgba(255, 255, 255, 0.60);
  --shadow: rgba(0, 0, 0, 0.22);
  --max-width: 430px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: 'Montserrat', Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(145deg, #62140A 0%, #E41616 45%, #8b1b13 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.bio-page {
  width: 100%;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 18px 14px;
}

.bio-card {
  width: 100%;
  max-width: var(--max-width);
  min-height: calc(100svh - 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: max(28px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(160deg, rgba(98, 20, 10, 0.94) 0%, rgba(228, 22, 22, 0.88) 48%, rgba(98, 20, 10, 0.94) 100%);
  box-shadow: 0 20px 45px var(--shadow);
  isolation: isolate;
}

.bio-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 14%, rgba(255, 255, 255, 0.18), transparent 24%),
    radial-gradient(circle at 85% 70%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent);
  z-index: -1;
}

.brand {
  text-align: center;
  padding-top: 8px;
  margin-bottom: 24px;
}

.brand-logo-wrap {
  width: 104px;
  height: 104px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: #ffffff;
  display: grid;
  place-items: center;
  padding: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.brand-logo {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brand h1 {
  font-size: clamp(1.35rem, 6vw, 1.72rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.brand p {
  max-width: 320px;
  margin: 0 auto;
  font-size: clamp(0.86rem, 3.5vw, 0.98rem);
  line-height: 1.45;
  color: var(--text-muted);
  font-weight: 500;
}

.links {
  display: grid;
  gap: 12px;
  width: 100%;
  margin: auto 0;
}

.link-button {
  min-height: 58px;
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--button-border);
  background: var(--button-bg);
  color: var(--button-text);
  font-size: 0.96rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.link-button::after {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  justify-self: end;
  opacity: 0.35;
}

.link-button:hover,
.link-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  outline: none;
}

.link-button:active {
  transform: translateY(0) scale(0.99);
}

.link-button.featured {
  background: var(--primary-dark);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.link-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(228, 22, 22, 0.10);
  color: var(--primary);
  font-size: 1rem;
}

.link-button.featured .link-icon {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.link-text {
  display: block;
  overflow-wrap: anywhere;
}

.bio-footer {
  margin-top: 28px;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  line-height: 1.4;
}

/* Melhor ajuste para celulares muito pequenos */
@media (max-width: 360px) {
  .bio-page {
    padding: 10px;
  }

  .bio-card {
    border-radius: 22px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand-logo-wrap {
    width: 86px;
    height: 86px;
  }

  .link-button {
    min-height: 54px;
    font-size: 0.88rem;
    padding: 10px 13px;
  }
}

/* Em telas maiores, mantém aparência centralizada de landing page */
@media (min-width: 768px) {
  .bio-page {
    align-items: center;
  }

  .bio-card {
    min-height: 780px;
    max-height: 900px;
  }
}
