/* ==========================================================
   Lupãê Bakery — Links da bio do Instagram
   Mesma identidade da landing page principal (cores, fontes, botões).
   ========================================================== */

:root {
  /* Cores da marca (fundo igual ao da logo para integração perfeita) */
  --cream: #fef9e3;
  --cream-deep: #f8efd2;
  --white: #ffffff;
  --pink: #c8325a;
  --pink-hover: #ad2549;
  --pink-soft: #fbe6e9;
  --teal: #168487;
  --teal-hover: #10696b;
  --teal-soft: #e3f1ef;
  --brown: #4b3935;
  --brown-soft: #7a645d;
  --line: #eadfc4;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --shadow-sm: 0 1px 2px rgba(75, 57, 53, 0.06), 0 2px 8px rgba(75, 57, 53, 0.05);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--cream); /* creme sólido: a logo tem o mesmo fundo e se integra sem bordas */
  color: var(--brown);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Conteúdo ---------- */

.page {
  flex: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro {
  text-align: center;
  animation: rise 0.5s ease both;
}

.logo {
  width: min(220px, 60vw);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  object-fit: contain;
}

.title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 7vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--brown);
}

.title em {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: var(--pink);
}

.subtitle {
  max-width: 22rem;
  margin: 12px auto 0;
  color: var(--brown-soft);
  font-size: 1rem;
}

/* ---------- Botões ---------- */

.links {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  min-height: calc(3 * 60px + 2 * 14px); /* reserva o espaço dos botões e evita "pulo" */
}

.links li {
  animation: rise 0.5s ease both;
}

.links li:nth-child(1) {
  animation-delay: 0.08s;
}
.links li:nth-child(2) {
  animation-delay: 0.16s;
}
.links li:nth-child(3) {
  animation-delay: 0.24s;
}

.link-btn {
  --btn-bg: var(--white);
  --btn-fg: var(--brown);
  --btn-border: var(--line);
  --icon-bg: var(--cream-deep);
  --icon-fg: var(--teal);

  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 8px 22px 8px 8px;
  border: 1.5px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 700 1.05rem/1.2 var(--font-body);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.link-btn__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--icon-bg);
  color: var(--icon-fg);
}

.link-btn__text {
  flex: 1;
  text-align: center;
}

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-btn__arrow {
  width: 18px;
  height: 18px;
  flex: none;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Cardápio — caminho verde-azulado, como na landing principal */
.link-btn--teal {
  --btn-bg: var(--teal);
  --btn-fg: var(--white);
  --btn-border: var(--teal);
  --icon-bg: rgba(255, 255, 255, 0.16);
  --icon-fg: var(--white);
  box-shadow: 0 8px 20px -10px rgba(22, 132, 135, 0.6);
}

/* Orçamentos — caminho rosa, como na landing principal */
.link-btn--pink {
  --btn-bg: var(--pink);
  --btn-fg: var(--white);
  --btn-border: var(--pink);
  --icon-bg: rgba(255, 255, 255, 0.16);
  --icon-fg: var(--white);
  box-shadow: 0 8px 20px -10px rgba(200, 50, 90, 0.6);
}

@media (hover: hover) {
  .link-btn:hover {
    transform: translateY(-2px);
  }
  .link-btn:hover .link-btn__arrow {
    transform: translateX(3px);
    opacity: 1;
  }
  .link-btn--outline:hover {
    --btn-border: var(--teal);
  }
  .link-btn--teal:hover {
    --btn-bg: var(--teal-hover);
    --btn-border: var(--teal-hover);
  }
  .link-btn--pink:hover {
    --btn-bg: var(--pink-hover);
    --btn-border: var(--pink-hover);
  }
}

/* Toque no celular: leve "afundar" do botão */
.link-btn:active {
  transform: scale(0.98);
}
.link-btn--outline:active {
  --btn-bg: var(--teal-soft);
}
.link-btn--teal:active {
  --btn-bg: var(--teal-hover);
}
.link-btn--pink:active {
  --btn-bg: var(--pink-hover);
}

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

.footer {
  padding: 16px 20px max(20px, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.85rem;
  color: var(--brown-soft);
}

.footer p {
  margin: 0;
}

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

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

@media (prefers-reduced-motion: reduce) {
  .intro,
  .links li {
    animation: none;
  }
  .link-btn,
  .link-btn__arrow {
    transition: none;
  }
}

@media (min-width: 768px) {
  .logo {
    width: 240px;
  }
}
