/* Paleta oficial — Juliana Cavalcanti Nails */
:root {
  --color-background: #FFF9F8;
  --color-surface: #F4E5E6;
  --color-accent: #D7A6AD;
  --color-secondary: #8F5965;
  --color-primary: #35282D;
  --color-text: #35282D;
  --color-white: #FFFFFF;

  --text-muted: rgba(53, 40, 45, .62);
  --glass: rgba(255, 255, 255, .66);
  --glass-line: rgba(215, 166, 173, .5);

  /* Tipografia padrão do projeto: Manrope nos títulos, Inter nas descrições */
  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-page: 32px;
  --radius-card: 22px;
  --gutter: clamp(18px, 5vw, 36px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
}

/* Atmosfera do hero do site: blush + brilhos rosé (camada fixa, funciona no iOS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 85% 10%, rgba(215, 166, 173, .55), transparent 70%),
    radial-gradient(ellipse 55% 50% at 10% 95%, rgba(143, 89, 101, .16), transparent 70%),
    linear-gradient(180deg, #FBEFEF, var(--color-surface));
}

img, svg { display: block; max-width: 100%; }

em {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--color-secondary);
}

/* ---------- Página ---------- */

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding:
    max(clamp(16px, 5vh, 48px), env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(clamp(16px, 5vh, 48px), env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

.profile {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 249, 248, .82);
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--radius-page);
  box-shadow: 0 40px 90px -40px rgba(53, 40, 45, .45);
  padding: clamp(32px, 6vh, 52px) var(--gutter) clamp(24px, 4vh, 36px);
  display: flex;
  flex-direction: column;
}

/* ---------- Cabeçalho ---------- */

.profile__header {
  text-align: center;
  margin-bottom: clamp(26px, 4.5vh, 36px);
}

.profile__logo {
  width: clamp(104px, 30vw, 136px);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto clamp(16px, 2.8vh, 22px);
  border-radius: 50%;
  box-shadow:
    0 0 0 6px var(--color-background),
    0 0 0 7px var(--glass-line),
    0 18px 40px -14px rgba(53, 40, 45, .5);
  animation: rise .7s var(--ease) both;
}

.profile__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 7vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--color-primary);
  animation: rise .7s .05s var(--ease) both;
}

.profile__eyebrow {
  margin: 8px 0 0;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .48em;
  padding-left: .48em; /* compensa o letter-spacing para centralizar */
  text-transform: uppercase;
  color: var(--color-secondary);
  animation: rise .7s .1s var(--ease) both;
}

.profile__tagline {
  margin: 16px auto 0;
  max-width: 34ch;
  text-wrap: balance;
  font-size: clamp(.95rem, 3.8vw, 1.02rem);
  line-height: 1.5;
  color: var(--text-muted);
  animation: rise .7s .15s var(--ease) both;
}
.profile__tagline em { font-size: 1.08em; }

/* ---------- Cards de link ---------- */

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

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  padding: 16px 16px 16px 16px;
  border-radius: var(--radius-card);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: 0 14px 30px -24px rgba(53, 40, 45, .55);
  color: var(--color-primary);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease), color .45s var(--ease);
  animation: rise .7s calc(.22s + var(--i, 0) * .08s) var(--ease) both;
  -webkit-tap-highlight-color: transparent;
}

/* Camada vinho sólida que entra no hover */
a.link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-primary);
  opacity: 0;
  transition: opacity .45s var(--ease);
}

a.link-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 24px 40px -22px rgba(53, 40, 45, .7);
}
a.link-card:hover::before { opacity: 1; }
a.link-card:active { transform: translateY(-1px) scale(.99); }

a.link-card:focus-visible,
.pill:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
}

.link-card__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(215, 166, 173, .22);
  transition: background-color .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease);
}
.link-card__icon svg { width: 24px; height: 24px; }

a.link-card:hover .link-card__icon {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(215, 166, 173, .18);
}

.link-card__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.link-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.12rem, 4.4vw, 1.25rem);
  line-height: 1.2;
  letter-spacing: -.01em;
}

.link-card__sub {
  font-size: clamp(.82rem, 3.3vw, .88rem);
  line-height: 1.4;
  color: var(--text-muted);
  transition: color .45s var(--ease);
}
a.link-card:hover .link-card__sub { color: rgba(244, 229, 230, .72); }

.link-card__arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-line);
  color: var(--color-secondary);
  transition: transform .45s var(--ease), border-color .45s var(--ease), color .45s var(--ease);
}
.link-card__arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
a.link-card:hover .link-card__arrow {
  transform: rotate(45deg);
  border-color: rgba(215, 166, 173, .5);
  color: var(--color-accent);
}

/* Card de endereço: dois destinos (Maps / Waze) */
.link-card--address { align-items: flex-start; }

.link-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--color-primary);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.pill:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* ---------- Rodapé ---------- */

.profile__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 12px;
  margin-top: clamp(26px, 4.5vh, 36px);
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

.profile__footer .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ---------- Animação ---------- */

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Responsivo ---------- */

/* Celular: a página inteira vira o cartão, sobre a mesma atmosfera */
@media (max-width: 540px) {
  .page { padding: 0; }

  .profile {
    max-width: none;
    min-height: 100vh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    padding-top: max(40px, env(safe-area-inset-top) + 24px);
    padding-bottom: max(24px, env(safe-area-inset-bottom) + 16px);
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
  }

  body::before {
    background:
      radial-gradient(ellipse 90% 45% at 90% 0%, rgba(215, 166, 173, .5), transparent 70%),
      radial-gradient(ellipse 80% 40% at 0% 100%, rgba(143, 89, 101, .14), transparent 70%),
      linear-gradient(180deg, var(--color-background), #FBEFEF);
  }

  .profile__footer { margin-top: auto; padding-top: 28px; }

  /* Maps e Waze lado a lado mesmo no celular */
  .pill { padding: 0 14px; letter-spacing: .08em; }
}

/* Telas muito estreitas */
@media (max-width: 360px) {
  .link-card { gap: 12px; padding: 14px 12px; }
  .link-card__icon { width: 46px; height: 46px; }
  .link-card__icon svg { width: 21px; height: 21px; }
  .link-card__arrow { width: 32px; height: 32px; }
  .pill { padding: 0 14px; }
}

/* Celular deitado / telas baixas: compacta o cabeçalho */
@media (max-height: 520px) and (orientation: landscape) {
  .profile__logo { width: 84px; }
  .profile__tagline { margin-top: 8px; }
}

/* Toque: sem estado de hover preso depois do toque */
@media (hover: none) {
  a.link-card:hover { transform: none; color: var(--color-primary); border-color: var(--glass-line); box-shadow: 0 14px 30px -24px rgba(53, 40, 45, .55); }
  a.link-card:hover::before { opacity: 0; }
  a.link-card:hover .link-card__sub { color: var(--text-muted); }
  a.link-card:hover .link-card__icon { background: var(--color-primary); color: var(--color-accent); }
  a.link-card:hover .link-card__arrow { transform: none; color: var(--color-secondary); border-color: var(--glass-line); }
}

/* ---------- Tipografia (Manrope títulos · Inter descrições) ---------- */

em { font-style: normal; font-weight: 600; }

.profile__name { font-weight: 800; letter-spacing: -.04em; }
.profile__eyebrow,
.pill,
.profile__footer { font-family: var(--font-display); font-weight: 600; }
.link-card__title { font-size: clamp(1rem, 4vw, 1.08rem); font-weight: 700; letter-spacing: -.015em; }
