/* Freedom Aparelhos Auditivos — landing page
   Paleta: vermelho escurecido a pedido do cliente (antes #C8102E / #9E0C24). */
:root {
  --red: #A80D27;
  --red-hover: #820A1E;
  --red-text: #820A1E;
  --red-rgb: 168, 13, 39;
  --ink: #141414;
  --black: #111112;
  --bg: #E9E5DE;
  --card: #F4F1EC;
  --muted: #2f2f2f;
  --muted-light: #e4e4e4;
  --green: #25D366;
  --display: 'Bricolage Grotesque', sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red); text-decoration: none; transition: background-color .2s, color .2s, transform .2s; }
a:hover { color: var(--red-hover); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
img { max-width: 100%; }

/* ---------- Animações ---------- */
@keyframes fl-float { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(2deg); } }
@keyframes fl-pr { 0% { box-shadow: 0 0 0 0 rgba(var(--red-rgb), .65); } 100% { box-shadow: 0 0 0 22px rgba(var(--red-rgb), 0); } }
@keyframes fl-pw { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 100% { box-shadow: 0 0 0 22px rgba(255,255,255,0); } }
@keyframes fl-pg { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.65); } 100% { box-shadow: 0 0 0 24px rgba(37,211,102,0); } }
@keyframes fl-marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 7px)); } }
@keyframes fl-ring { 0% { transform: scale(.55); opacity: .7; } 100% { transform: scale(1.25); opacity: 0; } }

.pulse-red { animation: fl-pr 1.8s infinite; }
.pulse-white { animation: fl-pw 1.8s infinite; }
.pulse-green { animation: fl-pg 1.8s infinite; }

/* ---------- Layout ---------- */
.page { padding: 12px; display: flex; flex-direction: column; gap: 12px; overflow-x: hidden; }
.panel { border-radius: 40px; scroll-margin-top: 12px; }
.panel--dark { background: var(--black); color: #fff; }
.panel--red { background: var(--red); color: #fff; }
.panel--white { background: #fff; }
.inner { max-width: 1160px; margin: 0 auto; padding: clamp(40px,6vw,72px) var(--gutter); }
.strip { position: relative; max-width: 1160px; margin: 0 auto; padding: clamp(28px,4vw,40px) var(--gutter); display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }

.display { font-family: var(--display); font-weight: 800; }
.h2 { margin: 0; font-family: var(--display); font-size: clamp(32px,5vw,56px); line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.accent { color: var(--red); }
.eyebrow { color: var(--red-text); font-weight: 800; font-size: 15px; letter-spacing: .14em; }
.section-head { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: end; justify-content: space-between; margin-bottom: 32px; }
.label { font-size: 16px; font-weight: 600; }
.panel--dark .label { color: var(--muted-light); }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; border-radius: 999px; padding: 18px 32px; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-hover); color: #fff; }
.btn--black { background: var(--black); color: #fff; }
.btn--black:hover { background: #fff; color: #111; }
.btn--white { background: #fff; color: #111; }
.btn--white:hover { background: #111; color: #fff; }
.btn--outline { border: 2px solid #111; color: #111; padding: 13px 26px; }
.btn--outline:hover { background: #111; color: #fff; }

.phone { font-family: var(--display); font-weight: 800; color: #fff; letter-spacing: -.03em; font-size: clamp(30px,4.4vw,48px); }
.panel--dark .phone:hover { color: var(--red); }
.panel--red .phone:hover { color: #111; }

/* ---------- Header ---------- */
.header { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 50; width: min(1100px, calc(100% - 32px)); background: rgba(17,17,17,.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 8px 8px 8px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.header__logo { display: grid; place-items: center; background: #fff; border-radius: 999px; padding: 6px 16px; }
.header__logo img { display: block; height: 34px; width: auto; }
.header .btn { font-size: 15px; padding: 12px 22px; gap: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__grid { position: relative; max-width: 1160px; margin: 0 auto; padding: clamp(104px,12vw,140px) var(--gutter) clamp(40px,6vw,72px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,420px), 1fr)); gap: 36px; align-items: center; }
.hero__copy { position: relative; z-index: 2; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.22); border-radius: 22px; padding: 6px 16px 6px 10px; font-size: 15px; font-weight: 600; line-height: 1.3; }
.hero__badge svg { flex: none; }
.hero h1 { font-family: var(--display); font-size: clamp(38px,6vw,72px); line-height: 1; font-weight: 800; letter-spacing: -.04em; margin: 20px 0; }
.hero__gift { display: inline-flex; align-items: center; gap: 10px; background: var(--red); color: #fff; font-weight: 800; font-size: clamp(17px,2vw,20px); padding: 10px 20px; border-radius: 16px; transform: rotate(-1.5deg); }
.hero__lead { font-size: clamp(18px,2vw,20px); color: var(--muted-light); margin: 20px 0 26px; max-width: 480px; }
.hero__cta { gap: 12px; font-size: clamp(17px,2.4vw,20px); padding: 20px 34px; }
.hero__cta:hover { transform: translateY(-3px); }
.hero__note { margin: 16px 0 0; font-size: 16px; font-weight: 600; color: var(--muted-light); }
.hero__visual { position: relative; display: grid; place-items: center; min-height: 400px; }
.hero__ring { position: absolute; width: 420px; height: 420px; border: 2px solid var(--red); border-radius: 50%; animation: fl-ring 4s linear infinite; }
.hero__ring:nth-child(2) { animation-delay: 1.33s; }
.hero__ring:nth-child(3) { animation-delay: 2.66s; }
.hero__device { position: relative; width: min(100%, 460px); height: auto; animation: fl-float 7s ease-in-out infinite; filter: drop-shadow(0 40px 40px rgba(0,0,0,.55)); }
.hero__seal { position: absolute; left: 0; bottom: 12%; background: rgba(255,255,255,.1); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.2); border-radius: 18px; padding: 10px 16px; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }

/* ---------- Contato ---------- */
.contato h2 { margin: 0; flex: 1 1 320px; font-family: var(--display); font-size: clamp(24px,3vw,34px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.contato__actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.contato .phone { font-size: clamp(26px,3vw,34px); letter-spacing: 0; }
.contato .btn { padding: 16px 28px; }

/* ---------- Serviços ---------- */
.servicos .h2 { max-width: 640px; }
.cards { display: flex; flex-wrap: wrap; gap: 14px; }
.card { background: var(--card); border-radius: 30px; padding: 28px; transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.12); }
.card--lg { flex: 1 1 460px; padding: 30px; display: flex; gap: 20px; align-items: flex-start; }
.card--sm { flex: 1 1 300px; }
.card--dark { background: var(--black); color: #fff; }
.card--dark:hover { box-shadow: 0 20px 40px rgba(var(--red-rgb), .3); }
.card h3 { margin: 0 0 8px; font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.card--lg h3 { font-size: 26px; }
.card p { margin: 0; color: var(--muted); }
.card--dark p { color: var(--muted-light); }
.card__icon { flex: none; width: 56px; height: 56px; border-radius: 18px; background: #fff; display: grid; place-items: center; margin-bottom: 16px; }
.card--lg .card__icon { width: 60px; height: 60px; border-radius: 20px; margin-bottom: 0; }
.card--dark .card__icon { background: var(--red); }

/* ---------- Faixas de agendamento ---------- */
.deco { position: absolute; opacity: .5; pointer-events: none; }
.agendar { position: relative; overflow: hidden; }
.agendar-final .phone { font-size: clamp(34px,5.4vw,60px); letter-spacing: -.04em; }
.agendar-final .strip { padding: clamp(40px,6vw,64px) var(--gutter); }
.agendar-final .btn { font-size: 19px; padding: 22px 38px; }

/* ---------- ReSound + galeria ---------- */
.resound .section-head { align-items: center; gap: 20px 32px; }
.resound .h2 { flex: 1 1 400px; }
.resound__logo { display: block; height: 96px; width: auto; border-radius: 12px; }
.gallery { overflow: hidden; margin: 0 calc(-1 * var(--gutter)); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.gallery__track { display: flex; gap: 14px; width: max-content; animation: fl-marquee 42s linear infinite; }
.gallery:hover .gallery__track { animation-play-state: paused; }
.gallery__item { flex: none; width: clamp(230px,26vw,320px); aspect-ratio: 4 / 5; border-radius: 30px; overflow: hidden; background: #ece8e1; }
.gallery__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item img:hover { transform: scale(1.06); }
@media (max-width: 700px) { .gallery__track { animation-duration: 22s; } }
.pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.pill { display: flex; align-items: center; gap: 10px; background: var(--black); color: #fff; border-radius: 999px; padding: 10px 20px 10px 12px; font-weight: 700; }

/* ---------- WhatsApp ---------- */
.whatsapp { position: relative; overflow: hidden; text-align: center; }
.whatsapp__waves { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); opacity: .18; pointer-events: none; }
.whatsapp__inner { position: relative; max-width: 960px; margin: 0 auto; padding: clamp(48px,7vw,88px) var(--gutter); }
.whatsapp h2 { margin: 0 0 28px; font-family: var(--display); font-size: clamp(32px,5.4vw,60px); line-height: 1; font-weight: 800; letter-spacing: -.04em; text-wrap: balance; }
.whatsapp .label { font-size: 18px; }
.whatsapp .phone { display: block; letter-spacing: 0; margin: 0 0 22px; }

/* ---------- Unidades ---------- */
.units { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,320px), 1fr)); gap: 14px; }
.unit { background: var(--black); color: #fff; border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; padding: 10px; }
.unit iframe { border: 0; width: 100%; height: 190px; display: block; background: #2b2b2e; border-radius: 22px; }
.unit__body { padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.unit__title { display: flex; align-items: center; gap: 12px; }
.unit__pin { flex: none; width: 42px; height: 42px; border-radius: 14px; background: var(--red); display: grid; place-items: center; }
.unit h3 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.unit p { margin: 0; color: var(--muted-light); flex: 1; }
.unit .btn { align-self: flex-start; gap: 8px; padding: 11px 22px; }
.unit .btn--white:hover { background: var(--red); color: #fff; }
.unidades .section-head { margin-bottom: 28px; }

/* ---------- Sobre ---------- */
.sobre__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,420px), 1fr)); gap: 36px; align-items: center; }
.video { position: relative; aspect-ratio: 16 / 10; border-radius: 32px; overflow: hidden; background: var(--black); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; cursor: pointer; padding: 0; display: grid; place-items: center; background: repeating-linear-gradient(135deg, #232325 0 16px, #2b2b2e 16px 32px); }
.video__thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video__play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.6)); }
.video__btn { position: relative; z-index: 1; width: 92px; height: 92px; border-radius: 50%; background: var(--red); display: grid; place-items: center; transition: transform .2s; }
.video__play:hover .video__btn { transform: scale(1.06); }
.video__caption { position: absolute; z-index: 1; bottom: 16px; left: 20px; color: #fff; font-family: var(--display); font-weight: 800; font-size: 22px; }
.sobre .h2 { margin: 6px 0 16px; }
.sobre p { margin: 0 0 24px; color: var(--muted); }

/* ---------- Rodapé ---------- */
.footer { padding: 28px var(--gutter) 96px; font-size: 16px; color: var(--muted); }
.footer__grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,230px), 1fr)); gap: 28px; }
.footer__logo { display: block; height: 56px; width: auto; margin-bottom: 8px; }
.footer__phone { color: #111; font-weight: 800; font-size: 20px; }
.footer strong { display: block; color: #111; font-weight: 800; margin-bottom: 4px; }
.footer a { color: #111; }
.footer a:hover { color: var(--red); }
.footer__nav { max-width: 1160px; margin: 22px auto 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; font-weight: 600; }
.footer__bottom { max-width: 1160px; margin: 18px auto 0; padding-top: 18px; border-top: 1px solid #c9c4ba; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; font-size: 15px; }
.footer__legal { display: flex; gap: 22px; }
.footer__legal a { text-decoration: underline; }

/* ---------- WhatsApp flutuante ---------- */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 64px; height: 64px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.fab:hover { transform: scale(1.08); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse-red, .pulse-white, .pulse-green, .hero__ring, .hero__device { animation: none; }
  .gallery__track { animation-duration: 120s; }
}
