/* =========================================================
   Mili — Link na Bio
   Design system elegante e minimalista
   Paleta extraída da arte da marca
   ========================================================= */

:root {
  /* Cores da marca (espelham o CONFIG.theme do main.js) */
  --wine:  #5C2A38;   /* bordô — texto, bordas, marca   */
  --cream: #F4EADC;   /* creme acetinado — fundo         */
  --peach: #F4A47F;   /* pêssego/coral — acento da flor  */
  --plum:  #84566B;   /* ameixa/mauve — pétalas          */
  --gold:  #CDA06E;   /* dourado suave — ramos           */

  /* Derivados */
  --wine-soft: #7a3a4c;
  --cream-deep: #ece0cf;
  --ink: #3d2730;

  /* Tipografia */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script:  "Great Vibes", cursive;
  --font-ui:      "Montserrat", system-ui, -apple-system, sans-serif;

  /* Espaçamento / formas */
  --radius-pill: 999px;
  --radius-card: 28px;
  --maxw: 460px;
  --shadow-soft: 0 18px 40px -20px rgba(92, 42, 56, .45);
}

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

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

body {
  min-height: 100dvh;
  font-family: var(--font-ui);
  color: var(--wine);
  background:
    radial-gradient(120% 80% at 50% -10%, #fbf4ea 0%, var(--cream) 55%, var(--cream-deep) 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px) 16px;
  position: relative;
  overflow-x: hidden;
}

/* ---------- Fundo decorativo: orbs/swirl acetinado sutil ---------- */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .28;
  will-change: transform;
}
.orb--1 { width: 50vmax; height: 50vmax; top: -18vmax; left: -14vmax;
          background: radial-gradient(circle, var(--peach), transparent 70%);
          animation: drift 22s ease-in-out infinite; }
.orb--2 { width: 42vmax; height: 42vmax; bottom: -16vmax; right: -12vmax;
          background: radial-gradient(circle, var(--plum), transparent 70%);
          animation: drift 28s ease-in-out infinite reverse; }
.orb--3 { width: 30vmax; height: 30vmax; top: 40%; right: -8vmax;
          background: radial-gradient(circle, var(--gold), transparent 70%);
          opacity: .18;
          animation: drift 34s ease-in-out infinite; }

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(2vmax, 3vmax, 0) scale(1.08); }
}

/* ---------- Card principal ---------- */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  background: rgba(255, 252, 247, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(92, 42, 56, .10);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 0 0 22px;
  overflow: hidden;
}

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  animation: kenburns 18s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.04) translateY(0); }
  to   { transform: scale(1.12) translateY(-2%); }
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
              rgba(92,42,56,.05) 0%,
              rgba(92,42,56,0) 40%,
              rgba(244,234,220,.85) 92%,
              var(--cream) 100%);
}

/* Logo sobreposta */
.brand {
  position: relative;
  margin-top: -54px;
  display: flex;
  justify-content: center;
}
.brand__logo {
  width: 150px;
  min-height: 90px;
  display: grid;
  place-items: center;
  padding: 8px 14px;
}
.brand__logo img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(92,42,56,.20));
}
/* Fallback em texto, caso a logo.png ainda não exista */
.brand__logo.is-fallback { width: auto; }
.brand__fallback {
  font-family: var(--font-script);
  font-size: 64px;
  line-height: 1;
  color: var(--wine);
  text-shadow: 0 6px 14px rgba(92,42,56,.18);
}

/* ---------- Tagline ---------- */
.tagline {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(15px, 4vw, 18px);
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--wine-soft);
  margin: 6px 24px 26px;
}

/* ---------- Vídeo de boas-vindas ---------- */
.video {
  margin: 0 22px 24px;
}
.video:empty { display: none; }

.video__facade,
.video__iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
}

.video__facade {
  position: relative;
  padding: 0;
  cursor: pointer;
  background: var(--cream-deep);
  box-shadow: 0 14px 30px -18px rgba(92, 42, 56, .55);
  outline-offset: 4px;
}
.video__facade:focus-visible { outline: 3px solid var(--peach); }

.video__thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease, filter .5s ease;
}
.video__facade::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(92,42,56,.45), rgba(92,42,56,0) 55%);
}
.video__facade:hover .video__thumb { transform: scale(1.05); filter: saturate(1.05); }

.video__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  color: var(--wine);
  background: rgba(255, 252, 247, .92);
  box-shadow: 0 8px 22px rgba(92,42,56,.4);
  transition: transform .3s ease, background-color .3s ease, color .3s ease;
}
.video__play::before {
  content: "";
  position: absolute; inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255,252,247,.7);
  animation: pulse 2.2s ease-out infinite;
}
.video__play svg { width: 26px; height: 26px; margin-left: 3px; }
.video__facade:hover .video__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--wine); color: #fff;
}
@keyframes pulse {
  0%   { transform: scale(.85); opacity: .9; }
  100% { transform: scale(1.4); opacity: 0; }
}

.video__label {
  position: absolute;
  left: 14px; bottom: 12px;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600;
  letter-spacing: .02em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

/* ---------- Links ---------- */
.links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 22px;
}

.link-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 14px 22px;
  border: 1.6px solid var(--wine);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--wine);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  overflow: hidden;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.8,.2,1),
              box-shadow .35s ease,
              background-color .35s ease,
              color .35s ease;
}
.link-btn__label { position: relative; z-index: 1; }
.link-btn__icon {
  position: relative; z-index: 1;
  display: inline-flex;
  width: 20px; height: 20px;
  flex: 0 0 auto;
}
.link-btn__icon svg { width: 100%; height: 100%; }

/* Brilho/sheen que cruza o botão no hover */
.link-btn::before {
  content: "";
  position: absolute;
  top: 0; left: -130%;
  width: 70%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-18deg);
  transition: left .7s ease;
}
.link-btn:hover {
  transform: translateY(-3px);
  background: var(--wine);
  color: #fff;
  box-shadow: 0 16px 28px -14px rgba(92,42,56,.65);
}
.link-btn:hover::before { left: 130%; }
.link-btn:active { transform: translateY(-1px) scale(.99); }
.link-btn:focus-visible {
  outline: 3px solid var(--peach);
  outline-offset: 3px;
}

/* CTA em destaque (WhatsApp) */
.link-btn--highlight {
  background: var(--wine);
  color: #fff;
  border-color: var(--wine);
  box-shadow: 0 12px 26px -16px rgba(92,42,56,.7);
}
.link-btn--highlight:hover {
  background: var(--wine-soft);
  border-color: var(--wine-soft);
}

/* ---------- Unidades (Google Meu Negócio) ---------- */
.units {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 22px;
  margin-top: 30px;
}
.units:empty { display: none; }

.units__title {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 5vw, 22px);
  letter-spacing: .04em;
  color: var(--wine);
  margin-bottom: 4px;
  position: relative;
}
.units__title::after {
  content: "";
  display: block;
  width: 46px; height: 2px;
  margin: 8px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.unit {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1.4px solid rgba(92, 42, 56, .22);
  border-radius: 20px;
  background: rgba(255, 252, 247, .7);
  color: var(--wine);
  text-decoration: none;
  transition: transform .35s cubic-bezier(.2,.8,.2,1),
              box-shadow .35s ease, border-color .35s ease;
}
.unit:hover {
  transform: translateY(-3px);
  border-color: var(--wine);
  box-shadow: 0 16px 30px -18px rgba(92,42,56,.55);
}
.unit:focus-visible { outline: 3px solid var(--peach); outline-offset: 3px; }

.unit__pin {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(132, 86, 107, .12);
  color: var(--plum);
}
.unit__pin svg { width: 22px; height: 22px; }

.unit__body { flex: 1 1 auto; min-width: 0; }

.unit__city {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .02em;
}
.unit__badge {
  font-family: var(--font-ui);
  font-size: 10px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--peach);
  padding: 3px 9px; border-radius: 999px;
}
.unit__addr {
  display: block;
  font-size: 12.5px; line-height: 1.45;
  color: var(--wine-soft);
  margin-top: 3px;
}
.unit__rating {
  display: flex; align-items: center; gap: 7px;
  margin-top: 8px;
}
.unit__stars { display: inline-flex; color: var(--gold); }
.unit__stars svg { width: 14px; height: 14px; }
.unit__reviews {
  font-size: 12px; font-weight: 600;
  letter-spacing: .02em; color: var(--wine);
}
.unit__g { display: inline-flex; width: 15px; height: 15px; }
.unit__g svg { width: 100%; height: 100%; }

.unit__cta {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 20px; height: 20px;
  color: var(--wine-soft);
  opacity: .6;
  transition: transform .3s ease, opacity .3s ease;
}
.unit:hover .unit__cta { opacity: 1; transform: translateX(2px); }

/* ---------- Redes sociais ---------- */
.socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
  padding: 0 22px;
}
.socials:empty { display: none; }
.social-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: var(--wine);
  border: 1.4px solid rgba(92,42,56,.35);
  transition: transform .3s ease, background-color .3s ease, color .3s ease;
}
.social-btn svg { width: 20px; height: 20px; }
.social-btn:hover {
  transform: translateY(-3px) scale(1.06);
  background: var(--wine); color: #fff;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 26px;
  text-align: center;
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--wine-soft);
  opacity: .8;
}
.footer .heart { color: var(--peach); }

/* ---------- Animações de entrada (stagger) ---------- */
.reveal,
.link-btn,
.unit {
  opacity: 0;
  transform: translateY(16px);
}
.is-ready .reveal {
  animation: rise .7s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: var(--delay, 0ms);
}
.is-ready .link-btn,
.is-ready .unit {
  animation: rise .6s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: var(--delay, 0ms);
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsivo ---------- */
@media (min-width: 600px) {
  .hero__media { aspect-ratio: 16 / 11; }
}

/* ---------- Acessibilidade: movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  .orb, .hero__img, .video__play::before { animation: none !important; }
  .reveal, .link-btn, .unit { opacity: 1 !important; transform: none !important; animation: none !important; }
  .link-btn::before { display: none; }
  * { transition-duration: .01ms !important; }
}
