/*
 * Autor: Marcelo
 * Projeto: Bella Vida Presell
 * Descrição: Visual da presell de uma dobra e do widget de WhatsApp.
 */

:root {
  --amber: #ffb000;
  --blue: #1863dc;
  --blue-deep: #124eae;
  --ink: #1c140c;
  --cream: #fff6ea;
  --wa: #25d366;
  --wa-deep: #128c7e;
  --wa-head: #075e54;
  --shadow: 0 16px 40px rgba(20, 10, 0, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--cream);
  background: #120d09;
}

.fold {
  position: relative;
  height: 100dvh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding:
    0
    max(18px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
  overflow: hidden;
}

.fold__media,
.fold__shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.fold__media {
  background: url("../assets/hero.jpg") center 38% / cover no-repeat;
  transform: scale(1.02);
}

.fold__shade {
  background:
    linear-gradient(180deg, rgba(10, 16, 28, 0.12) 0%, rgba(10, 16, 28, 0.02) 24%, rgba(18, 10, 4, 0.18) 48%, rgba(14, 8, 3, 0.72) 74%, rgba(10, 6, 2, 0.92) 100%),
    linear-gradient(90deg, rgba(12, 8, 4, 0.28) 0%, rgba(12, 8, 4, 0) 46%);
}

.top,
.hero {
  position: relative;
  z-index: 1;
}

.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin:
    0
    calc(-1 * max(18px, env(safe-area-inset-right)))
    0
    calc(-1 * max(18px, env(safe-area-inset-left)));
  padding:
    max(10px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    10px
    max(18px, env(safe-area-inset-left));
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 10, 0, 0.12);
}

.brand {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.logo {
  display: block;
  width: min(420px, 62vw);
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.live {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f4f4f4;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1faa4a;
  box-shadow: 0 0 0 0 rgba(31, 170, 74, 0.55);
  animation: pulse 1.8s ease-out infinite;
}

.hero {
  width: min(820px, 100%);
  padding-bottom: 4px;
}

.kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffe3a3;
}

h1 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: min(5.7rem, 9.2vw, 13vh);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--amber);
  text-shadow: 0 2px 0 rgba(90, 40, 0, 0.25), 0 14px 30px rgba(0, 0, 0, 0.35);
}

.lead {
  margin: 14px 0 0;
  max-width: 38rem;
  font-size: clamp(0.98rem, 1.5vw, 1.15rem);
  line-height: 1.45;
  color: rgba(255, 246, 234, 0.94);
}

.facts {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 226, 170, 0.92);
}

.btn-site {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, #3d82f0 0%, var(--blue) 55%, var(--blue-deep) 100%);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 26px rgba(18, 70, 170, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  pointer-events: auto;
  cursor: pointer;
}

.btn-site svg {
  width: 20px;
  height: 20px;
}

.btn-site:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 30px rgba(18, 70, 170, 0.48);
}

.phone {
  margin: 12px 0 0;
  font-size: 14px;
}

.phone a {
  color: rgba(255, 246, 234, 0.86);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.phone a:hover {
  color: #fff;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #ffe08a;
  outline-offset: 3px;
}

.wa {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 20;
  width: 64px;
  height: 64px;
  pointer-events: none;
}

.wa__btn {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 10px 24px rgba(16, 90, 40, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease;
  pointer-events: auto;
}

.wa__btn svg {
  width: 34px;
  height: 34px;
  display: block;
  margin: 0 auto;
}

.wa__btn:hover {
  transform: scale(1.06);
}

.wa__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  box-shadow: 0 4px 10px rgba(180, 20, 20, 0.35);
}

.wa.is-open .wa__badge {
  display: none;
}

.wa__panel {
  position: absolute;
  right: 0;
  bottom: calc(64px + 12px);
  width: min(360px, calc(100vw - 32px));
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  color: #243028;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
}

.wa.is-open .wa__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.wa__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  background: linear-gradient(90deg, var(--wa-head), var(--wa-deep));
  color: #fff;
}

.wa__mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  flex: 0 0 auto;
}

.wa__mark svg {
  width: 22px;
  height: 22px;
}

.wa__id {
  min-width: 0;
  flex: 1;
}

.wa__id strong {
  display: block;
  font-size: 16px;
  letter-spacing: 0.01em;
}

.wa__id span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
}

.wa__id i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7dffb0;
}

.wa__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.wa__close svg {
  width: 18px;
  height: 18px;
}

.wa__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.wa__msgs {
  padding: 14px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.7), transparent 28%),
    linear-gradient(180deg, #f6f3ee, #efeae3);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wa__bubble {
  align-self: flex-start;
  max-width: 92%;
  padding: 10px 12px 8px;
  border-radius: 12px 12px 12px 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(40, 30, 10, 0.08);
}

.wa__bubble p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #243028;
}

.wa__bubble time {
  display: block;
  margin-top: 4px;
  text-align: right;
  font-size: 11px;
  color: #8a918c;
}

.wa__foot {
  padding: 12px 14px 14px;
  background: #fff;
}

.wa__go {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 999px;
  background: var(--wa);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 16px rgba(20, 120, 60, 0.25);
}

.wa__go svg {
  width: 18px;
  height: 18px;
}

.wa__go:hover {
  filter: brightness(1.05);
}

.wa__foot p {
  margin: 8px 0 0;
  text-align: center;
  font-size: 12px;
  color: #7d8680;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 170, 74, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(31, 170, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 170, 74, 0); }
}

@media (min-width: 900px) {
  .fold {
    padding-left: max(56px, env(safe-area-inset-left));
    padding-right: max(48px, env(safe-area-inset-right));
    padding-bottom: max(36px, env(safe-area-inset-bottom));
  }

  .hero {
    padding-right: 0;
    padding-bottom: 8px;
  }
}

@media (max-width: 720px) {
  .logo {
    width: min(280px, 68vw);
  }

  .live {
    padding: 6px 9px;
    font-size: 10px;
    letter-spacing: 0.03em;
  }
}

@media (max-width: 420px) {
  .btn-site {
    width: calc(100% - 76px);
  }
}

@media (max-height: 700px) {
  .logo {
    width: min(240px, 62vw);
  }

  .lead {
    margin-top: 8px;
    font-size: 0.95rem;
  }

  .facts {
    margin-top: 8px;
  }

  .btn-site {
    margin-top: 12px;
    min-height: 48px;
  }

  .phone {
    margin-top: 8px;
  }
}

@media (max-height: 560px) {
  .facts,
  .phone {
    display: none;
  }

  .lead {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
