/* ==========================================================================
   Lais Ester Studio de Beleza — página de links (bio do Instagram)
   Identidade tirada do Instagram e da placa do studio: creme e nude,
   dourado da placa, café nos textos e a onda de luz dourada da parede.
   ========================================================================== */

:root {
  /* Cores */
  --bg: #f7f2ec;
  --nude: #e9ddd0;
  --taupe: #b9a48f;
  --surface: #fffdf9;
  --surface-top: #ffffff;
  --line: rgba(43, 33, 28, 0.1);
  --text: #2b211c;
  --muted: #6b5a4e;
  --gold: #b8925a;
  --gold-light: #d8b98a;
  --gold-dark: #8c6a37;
  --gold-glow: #f3d18a;
  --gold-soft: rgba(184, 146, 90, 0.12);
  --gold-line: rgba(184, 146, 90, 0.38);

  /* Fontes */
  --font-brand: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 16px;
  --gutter: 20px;

  /* Foto da capa (opcional). Para usar uma foto, troque por:
     --cover-image: url("../assets/img/fotos/lais-no-studio.jpg"); */
  --cover-image: none;
}

/* Base ------------------------------------------------------------------- */

*,
*::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;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 50% -8%, rgba(216, 185, 138, 0.28), transparent 62%),
    radial-gradient(700px 420px at 50% 108%, rgba(185, 164, 143, 0.22), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Granulado bem leve por cima de tudo, para tirar o aspecto "chapado" */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Coluna central -------------------------------------------------------- */

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 var(--gutter) calc(36px + env(safe-area-inset-bottom));
}

/* Topo ------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: 112px;
  text-align: center;
}

/* Faixa de capa: o tom taupe da parede do studio com a onda de luz dourada,
   esmaecendo para o creme da página. */
.hero__cover {
  position: absolute;
  top: 0;
  left: calc(var(--gutter) * -1);
  right: calc(var(--gutter) * -1);
  height: 250px;
  overflow: hidden;
  background:
    var(--cover-image) center 30% / cover no-repeat,
    radial-gradient(420px 200px at 50% 20%, rgba(255, 255, 255, 0.35), transparent 70%),
    linear-gradient(170deg, #c9b8a5 0%, #b9a48f 55%, #c4b19c 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
}

.hero__onda {
  position: absolute;
  left: 0;
  top: 18px;
  width: 100%;
  height: 120px;
  overflow: visible;
}

.hero__onda path {
  fill: none;
  stroke-linecap: round;
}

.hero__onda-brilho {
  stroke: var(--gold-glow);
  stroke-width: 14;
  opacity: 0.45;
  filter: blur(6px);
}

.hero__onda-linha {
  stroke: #fff4d6;
  stroke-width: 2.5;
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: tracar 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s forwards;
}

@keyframes tracar {
  to {
    stroke-dashoffset: 0;
  }
}

/* Selo do logo */
.hero__badge {
  position: relative;
  width: 136px;
  height: 136px;
  margin: 0 auto 22px;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(
    from 200deg,
    var(--gold-dark),
    var(--gold-light),
    var(--gold),
    var(--gold-light),
    var(--gold-dark)
  );
  box-shadow:
    0 0 0 6px rgba(247, 242, 236, 0.9),
    0 22px 48px rgba(43, 33, 28, 0.22),
    0 0 60px rgba(243, 209, 138, 0.35);
}

.monogram {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #ffffff 0%, #faf5ef 45%, #eadfd2 100%);
  color: var(--gold-dark);
  object-fit: cover;
}

.monogram text {
  font-family: var(--font-serif);
  font-weight: 500;
  fill: currentColor;
}

.monogram__l {
  font-size: 64px;
}

.monogram__e {
  font-size: 54px;
  fill: var(--gold) !important;
}

.monogram__traco {
  fill: none;
  stroke: var(--gold);
  stroke-width: 0.8;
}

/* Nome */
.brand {
  margin: 0;
  font-weight: normal;
  line-height: 1;
}

.brand__name {
  display: block;
  /* o espaçamento entre letras deixa uma sobra à direita; o recuo compensa */
  padding-left: 0.14em;
  font-family: var(--font-brand);
  font-size: clamp(2.2rem, 10.5vw, 2.9rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand__kind {
  display: block;
  margin-top: 12px;
  padding-left: 0.5em;
  color: var(--gold-dark);
  font-family: var(--font-brand);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}

.tagline {
  margin: 18px auto 0;
  max-width: 22em;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
  text-wrap: balance;
}

/* Selo de especialidade */
.proof {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  padding: 7px 15px 7px 12px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.proof strong {
  color: var(--gold-dark);
  font-weight: 600;
}

.proof__icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--gold-dark);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

/* Divisor: linhas douradas com uma onda de luz no meio ---------------------- */

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 26px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
}

.divider::before {
  background: linear-gradient(90deg, transparent, var(--gold-line));
}

.divider::after {
  background: linear-gradient(90deg, var(--gold-line), transparent);
}

.divider__onda {
  flex: none;
  width: 64px;
  height: 12px;
  overflow: visible;
}

.divider__onda path {
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.divider__base {
  stroke: var(--gold-line);
}

.divider__luz {
  stroke: var(--gold);
  stroke-dasharray: 18 82;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 3px rgba(243, 209, 138, 0.9));
  animation: luz 2.6s linear infinite;
}

/* Um ponto de luz que corre pela onda, como a fita de LED da parede */
@keyframes luz {
  to {
    stroke-dashoffset: 0;
  }
}

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

.links {
  display: grid;
  gap: 12px;
}

.link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 12px 16px 12px 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-top), var(--surface));
  box-shadow: 0 6px 18px rgba(43, 33, 28, 0.05);
  color: var(--text);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.link:hover {
  transform: translateY(-2px);
  border-color: var(--gold-line);
  box-shadow: 0 14px 32px rgba(43, 33, 28, 0.12);
}

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

.link:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 3px;
}

.link__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-dark);
}

.link__icon svg,
.link__arrow {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link__icon svg {
  width: 21px;
  height: 21px;
}

.link__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  text-align: left;
}

.link__title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* O texto de baixo pode ocupar até 2 linhas (mais que isso é cortado com "…") */
.link__sub {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.link__arrow {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--taupe);
  transition:
    transform 0.25s ease,
    color 0.25s ease;
}

.link:hover .link__arrow {
  transform: translateX(3px);
  color: var(--gold-dark);
}

/* Botão principal: agendar */
.link--primary {
  min-height: 80px;
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  box-shadow: 0 14px 34px rgba(184, 146, 90, 0.35);
  color: #2b211c;
}

.link--primary:hover {
  border-color: transparent;
  box-shadow: 0 18px 42px rgba(184, 146, 90, 0.45);
}

.link--primary .link__icon {
  border-color: transparent;
  background: #2b211c;
  color: var(--gold-light);
}

.link--primary .link__title {
  font-family: var(--font-brand);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.link--primary .link__sub,
.link--primary .link__arrow,
.link--primary:hover .link__arrow {
  color: rgba(43, 33, 28, 0.82);
}

/* Brilho que passa devagar pelo botão principal */
.link--primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  animation: shine 5s ease-in-out 1.8s infinite;
}

@keyframes shine {
  0% {
    left: -60%;
  }
  28%,
  100% {
    left: 130%;
  }
}

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

.footer {
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.footer p {
  margin: 0;
}

.footer__brand {
  color: var(--text);
  font-family: var(--font-brand);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer address {
  margin-top: 6px;
  font-style: normal;
  letter-spacing: 0.02em;
}

.footer__ref {
  margin-top: 2px !important;
  color: var(--gold-dark);
  font-style: italic;
}

.footer__copy {
  margin-top: 14px !important;
  font-size: 0.72rem;
}

/* Entrada suave ------------------------------------------------------------
   Usa a propriedade "translate" (e não "transform") para não brigar com o
   efeito de passar o mouse nos botões. */

.reveal {
  opacity: 0;
  translate: 0 14px;
  animation: reveal 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms + 80ms);
}

@keyframes reveal {
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* Celulares estreitos (até 359px) ------------------------------------------ */

@media (max-width: 359px) {
  :root {
    --gutter: 14px;
  }

  .link {
    gap: 12px;
    padding: 10px 12px 10px 10px;
  }

  .link__icon {
    width: 40px;
    height: 40px;
  }

  .link__title {
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .link--primary .link__title {
    font-size: 1rem;
  }

  .link__arrow {
    width: 18px;
    height: 18px;
  }
}

/* Telas maiores ------------------------------------------------------------ */

@media (min-width: 640px) {
  .page {
    max-width: 500px;
    padding-top: 40px;
  }

  .hero__cover {
    left: 0;
    right: 0;
    border-radius: 24px 24px 0 0;
  }
}

/* Quem prefere menos movimento ------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    translate: none;
    animation: none;
  }

  .hero__onda-linha {
    stroke-dashoffset: 0;
    animation: none;
  }

  .divider__luz {
    display: none;
  }

  .link--primary::after {
    animation: none;
    display: none;
  }

  .link,
  .link__arrow {
    transition: none;
  }
}
