/* =========================================================
   Farmácia Nossa Senhora da Penha — estilos (modelo do site da Casa dos Frios)
   Mobile primeiro. Cores e fontes nas variáveis abaixo.
   ========================================================= */

/* ---------- Fontes locais ---------- */
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-var.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Variáveis (troque aqui) ---------- */
:root {
  --amarelo: #ffc629;
  --amarelo-claro: #ffe07a;
  --laranja: #f7931e;
  --vermelho: #e0161b;      /* vermelho da marca, um tom abaixo do logo pra o texto branco ter leitura */
  --vermelho-escuro: #a50f13;
  --verde: #3f6b2a;
  --wa: #108a3e;
  --wa-hover: #0b7131;
  --tinta: #2a1215;
  --tinta-suave: #6a4a4c;
  --creme: #fff5f2;
  --branco: #ffffff;

  --f-display: "Figtree", "Trebuchet MS", system-ui, sans-serif;
  --f-texto: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --raio: 20px;
  --raio-sm: 12px;
  --sombra-quente: 0 18px 40px -18px rgba(120, 40, 10, .45);
  --nav-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
/* Barra de rolagem na cor do site: fina, trilho creme e pegador vermelho. */
html { scrollbar-width: thin; scrollbar-color: var(--vermelho) var(--creme); }
@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar { width: 10px; }
  ::-webkit-scrollbar-track { background: var(--creme); }
  ::-webkit-scrollbar-thumb { background: var(--vermelho); border-radius: 99px; border: 2px solid var(--creme); }
}
body {
  margin: 0;
  font: 400 1rem/1.6 var(--f-texto);
  color: var(--tinta);
  background: var(--branco);
  overflow-x: hidden;
}
[hidden] { display: none !important; }
main { overflow-x: clip; } /* segura a faixa inclinada sem criar rolagem lateral */
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 3px solid var(--vermelho); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 40px, 1180px); margin-inline: auto; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--tinta); color: var(--branco); padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: .85em 1.45em;
  border-radius: 999px; border: 2px solid transparent;
  font: 650 1rem/1.1 var(--f-texto); text-decoration: none; letter-spacing: -.005em;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, background-color .2s, color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 1.3em; height: 1.3em; flex: none; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn--wa { background: var(--wa); color: var(--branco); box-shadow: 0 10px 24px -10px rgba(16, 138, 62, .8); }
.btn--wa:hover { background: var(--wa-hover); box-shadow: 0 16px 30px -12px rgba(16, 138, 62, .9); }
.btn--ghost { border-color: currentColor; color: var(--tinta); }
.btn--ghost:hover { background: var(--tinta); color: var(--branco); border-color: var(--tinta); }
.btn--red { background: var(--vermelho); color: var(--branco); box-shadow: 0 10px 24px -12px rgba(214, 39, 24, .8); }
.btn--red:hover { background: var(--vermelho-escuro); }
.btn--light { background: var(--branco); color: var(--tinta); box-shadow: var(--sombra-quente); }
.btn--sm { min-height: 42px; padding: .6em 1.1em; font-size: .92rem; }
.btn--lg { min-height: 60px; padding: 1em 1.9em; font-size: 1.12rem; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: radial-gradient(90% 70% at 50% 40%, var(--amarelo-claro), var(--amarelo) 55%, var(--laranja));
}
.preloader__stage { display: grid; justify-items: center; gap: 22px; }
.preloader__logo { width: 120px; height: 120px; border-radius: 28px; box-shadow: var(--sombra-quente); }
.preloader__bar { width: 140px; height: 5px; border-radius: 99px; background: rgba(163, 22, 12, .18); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; background: var(--vermelho); transform-origin: left; transform: scaleX(0); }
.is-loaded .preloader { display: none; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  transition: background-color .35s, box-shadow .35s, transform .45s cubic-bezier(.2, .8, .2, 1), height .35s;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 8px 30px -18px rgba(60, 20, 5, .5);
  height: 60px;
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.15rem/1 var(--f-display); }
.nav__brand img { width: auto; height: 42px; }
@media (min-width: 860px) { .nav__brand img { height: 46px; } }
.nav__toggle {
  position: relative; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-content: center; gap: 6px; background: var(--tinta);
}
.nav__toggle span { display: block; width: 20px; height: 2px; background: var(--branco); border-radius: 2px; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* menu mobile: painel */
.nav__menu {
  position: fixed; inset: 0 0 auto; z-index: 1;
  padding: calc(var(--nav-h) + 16px) 20px 28px;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--branco);
  border-radius: 0 0 28px 28px;
  box-shadow: 0 30px 60px -30px rgba(60, 20, 5, .5);
  transform: translateY(-105%); visibility: hidden;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), visibility 0s .5s;
}
.nav__menu a:not(.btn) {
  padding: 14px 4px; text-decoration: none; font: 600 1.6rem/1.1 var(--f-display);
  border-bottom: 1px solid rgba(43, 19, 11, .08);
}
.nav__menu .btn { margin-top: 18px; }
.menu-open .nav__menu { transform: none; visibility: visible; transition-delay: 0s; }
.menu-open { overflow: hidden; }

@media (min-width: 960px) {
  .nav__toggle { display: none; }
  .nav__menu {
    position: static; transform: none; visibility: visible; padding: 0; background: none; box-shadow: none;
    flex-direction: row; align-items: center; gap: 6px; border-radius: 0; transition: none;
  }
  .nav__menu a:not(.btn) {
    position: relative; padding: 10px 14px; border: 0; font: 550 .96rem/1 var(--f-texto);
  }
  .nav__menu a:not(.btn)::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
    background: var(--vermelho); transform: scaleX(0); transform-origin: left;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  }
  .nav__menu a:not(.btn):hover::after, .nav__menu a.is-active::after { transform: scaleX(1); }
  .nav__menu .btn { margin: 0 0 0 10px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 28px) 0 64px;
  background: radial-gradient(120% 80% at 85% 0%, var(--amarelo-claro) 0%, var(--amarelo) 45%, var(--laranja) 100%);
}
.hero__sun {
  position: absolute; width: 130vw; aspect-ratio: 1; right: -60vw; top: 38%;
  border-radius: 50%; background: rgba(255, 255, 255, .22); pointer-events: none;
}
.hero__grid { position: relative; display: grid; gap: 44px; }
.hero__place {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px;
  padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, .55);
  font-weight: 600; font-size: .92rem;
}
.hero__place svg { width: 18px; height: 18px; color: var(--vermelho); }
.hero__title {
  font: 600 clamp(2.7rem, 10.5vw, 5.4rem)/1.02 var(--f-display);
  letter-spacing: -.025em; text-wrap: balance;
}
.hero__hl { position: relative; font-style: normal; color: var(--vermelho); white-space: nowrap; }
.hero__hl::after {
  content: ""; position: absolute; left: -2%; right: -3%; bottom: -.14em; height: .26em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 28' preserveAspectRatio='none'%3E%3Cpath d='M4 20C70 7 190 3 296 12' fill='none' stroke='%23ffc629' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  transform: scaleX(var(--u, 1)); transform-origin: left center;
}
.hero__lead { margin-top: 20px; max-width: 34ch; font-size: 1.1rem; line-height: 1.55; color: #4a2415; }
.hero__ctas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__ctas .btn { flex: 1 1 220px; }
.hero__chips { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__chips li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; background: var(--branco);
  font-size: .9rem; font-weight: 600; box-shadow: 0 8px 20px -14px rgba(120, 40, 10, .6);
}
.hero__chips svg { width: 18px; height: 18px; color: var(--vermelho); }

.hero__visual { position: relative; padding: 0 0 56px 24px; }
.hero__photo { margin: 0; overflow: hidden; background: var(--amarelo-claro); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--main {
  aspect-ratio: 4 / 3.4; border-radius: 32px; rotate: 2deg;
  box-shadow: 0 30px 60px -24px rgba(120, 30, 5, .55);
}
.hero__photo--side {
  position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 1;
  border-radius: 24px; border: 6px solid var(--branco); rotate: -5deg;
  box-shadow: 0 20px 40px -18px rgba(120, 30, 5, .6);
}
.hero__stamp {
  position: absolute; right: -6px; bottom: 10px; width: 112px; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; text-align: center; line-height: 1;
  background: var(--vermelho); color: var(--branco); rotate: -10deg;
  box-shadow: 0 16px 30px -12px rgba(163, 22, 12, .8);
  border: 3px dashed rgba(255, 255, 255, .55); outline: 6px solid var(--vermelho);
}
.hero__stamp span { font-size: .8rem; font-weight: 600; }
.hero__stamp strong { font: 600 1.35rem/1 var(--f-display); }

@media (min-width: 960px) {
  .hero { padding: calc(var(--nav-h) + 56px) 0 96px; min-height: min(100svh, 900px); display: flex; align-items: center; }
  .hero__grid { grid-template-columns: 1.08fr .92fr; align-items: center; gap: 56px; }
  .hero__ctas .btn { flex: 0 0 auto; }
  .hero__visual { padding: 0 0 70px 40px; }
  .hero__stamp { width: 136px; }
  .hero__stamp strong { font-size: 1.6rem; }
  .hero__sun { width: 70vw; right: -18vw; top: 10%; }
}

/* ---------- Faixa (marquee) ---------- */
.ribbon {
  position: relative; z-index: 2; overflow: hidden;
  background: var(--vermelho); color: var(--branco);
  padding: 16px 0; /* faixa reta (pedido do Felipe, 02/10) */
  box-shadow: 0 16px 30px -20px rgba(120, 20, 5, .8);
}
.ribbon__track { display: flex; align-items: center; gap: 26px; width: max-content; white-space: nowrap; }
.ribbon__track span { font: 600 1.45rem/1 var(--f-display); }
.ribbon__track svg { width: 22px; height: 22px; color: var(--amarelo); flex: none; }

/* ---------- Seções (padrão) ---------- */
.section { padding: 84px 0; }
.section__head { max-width: 640px; margin-bottom: 36px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title { font: 600 clamp(2.1rem, 7vw, 3.4rem)/1.05 var(--f-display); letter-spacing: -.02em; text-wrap: balance; }
.section__sub { margin-top: 14px; font-size: 1.08rem; color: var(--tinta-suave); max-width: 52ch; }
.section__head--center .section__sub { margin-inline: auto; }
.section__cta { margin-top: 40px; display: flex; justify-content: center; }
@media (min-width: 960px) { .section { padding: 120px 0; } .section__head { margin-bottom: 48px; } }

/* ---------- Produtos ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 14px; margin-bottom: 14px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters__btn {
  flex: none; min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 2px solid rgba(43, 19, 11, .14); font-weight: 600; background: var(--branco);
  transition: background-color .25s, color .25s, border-color .25s, transform .2s;
}
.filters__btn:hover { border-color: var(--tinta); }
.filters__btn:active { transform: scale(.96); }
.filters__btn.is-active { background: var(--tinta); border-color: var(--tinta); color: var(--branco); }

.cards { display: grid; gap: 16px; }
.card {
  display: grid; grid-template-columns: 38% 1fr; align-items: stretch;
  border-radius: var(--raio); overflow: hidden; background: var(--creme);
  transform-style: preserve-3d; will-change: transform;
  transition: box-shadow .35s;
}
.card:hover { box-shadow: 0 26px 46px -24px rgba(120, 40, 10, .55); }
.card.is-hidden { display: none; }
.card__media { min-height: 132px; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.card:hover .card__media img { transform: scale(1.07); }
.card__body { padding: 18px 18px 20px; align-self: center; }
.card__body h3 { font: 600 1.28rem/1.12 var(--f-display); }
.card__body p { margin-top: 6px; font-size: .95rem; line-height: 1.5; color: var(--tinta-suave); }
.card--art .card__media { display: grid; place-items: center; }
.card--art .card__media svg { width: 64px; height: 64px; }
.card--yellow .card__media { background: var(--amarelo); color: var(--vermelho); }
.card--green .card__media { background: var(--verde); color: #f3f7e8; }

@media (min-width: 620px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .card__media { aspect-ratio: 4 / 3; min-height: 0; }
  .card__body { align-self: start; padding: 22px 22px 26px; }
  /* destaque: ocupa 2 colunas, foto ao lado do texto (7 cards fecham a grade sem buraco) */
  .card:first-child { grid-column: span 2; grid-template-columns: 1.15fr 1fr; grid-template-rows: none; }
  .card:first-child .card__media { aspect-ratio: auto; min-height: 240px; }
  .card:first-child .card__body { align-self: center; padding: 28px; }
  .card:first-child .card__body h3 { font-size: 1.75rem; }
  .card:first-child .card__body p { font-size: 1.02rem; }
}
@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Por que aqui ---------- */
.why { background: var(--creme); }
.why__grid { display: grid; gap: 40px; }
.stats { margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat {
  padding: 18px 12px 16px; border-radius: var(--raio-sm); background: var(--branco);
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px;
  box-shadow: 0 10px 24px -20px rgba(120, 40, 10, .7);
}
.stat dt { font-size: .8rem; line-height: 1.3; color: var(--tinta-suave); font-weight: 500; }
.stat dd { margin: 0; display: flex; align-items: baseline; gap: 2px; font: 600 2.4rem/1 var(--f-display); color: var(--vermelho); }
.stat__star { width: 22px; height: 22px; color: var(--amarelo); align-self: center; margin-left: 4px; }

.why__list { display: grid; gap: 14px; counter-reset: why; }
.why__item {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start;
  padding: 22px; border-radius: var(--raio); background: var(--branco);
  border-left: 5px solid var(--amarelo);
}
.why__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--amarelo); color: var(--vermelho-escuro); }
.why__icon svg { width: 28px; height: 28px; }
.why__item h3 { font: 600 1.3rem/1.15 var(--f-display); }
.why__item p { margin-top: 6px; color: var(--tinta-suave); }

@media (min-width: 960px) {
  .why__grid { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
  .why__head { position: sticky; top: 110px; margin-bottom: 0; }
  .why__item { padding: 28px 30px; }
}

/* ---------- Casa de todo mundo ---------- */
.home { background: var(--vermelho); color: var(--branco); position: relative; overflow: hidden; }
.home .section__sub { color: rgba(255, 255, 255, .88); }
.home__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.home__card {
  padding: 22px 18px; border-radius: var(--raio);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  transition: background-color .3s, border-color .3s;
}
.home__card:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); }
.home__card svg { width: 34px; height: 34px; color: var(--amarelo); transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.home__card:hover svg { transform: translateY(-4px) rotate(-10deg) scale(1.12); }
.home__card h3 { margin-top: 14px; font: 600 1.15rem/1.15 var(--f-display); }
.home__card p { margin-top: 6px; font-size: .92rem; color: rgba(255, 255, 255, .95); }
.home__card--pride { position: relative; overflow: hidden; }
.home__card--pride::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 6px;
  background: linear-gradient(90deg, #e40303, #ff8c00, #ffed00, #008026, #004dff, #750787);
}
@media (min-width: 960px) {
  .home__grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .home__card { padding: 32px 26px; }
  .home__card h3 { font-size: 1.35rem; }
}

/* ---------- Como pedir ---------- */
.steps__list { position: relative; display: grid; gap: 26px; padding-left: 4px; }
.steps__list::before {
  content: ""; position: absolute; left: 31px; top: 30px; bottom: 30px; width: 3px;
  background: rgba(43, 19, 11, .1); border-radius: 3px;
}
.steps__line { position: absolute; left: 31px; top: 30px; bottom: 30px; width: 3px; background: var(--vermelho); border-radius: 3px; transform-origin: top; }
.step { position: relative; display: grid; grid-template-columns: 58px 1fr; column-gap: 18px; align-items: center; }
.step__num {
  grid-row: span 2; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--amarelo); color: var(--vermelho-escuro);
  font: 600 1.6rem/1 var(--f-display); box-shadow: 0 0 0 6px var(--branco);
}
.step h3 { font: 600 1.35rem/1.15 var(--f-display); align-self: end; }
.step p { color: var(--tinta-suave); align-self: start; margin-top: 4px; }
@media (min-width: 860px) {
  .steps__list { grid-template-columns: repeat(3, 1fr); gap: 36px; padding-left: 0; }
  .steps__list::before, .steps__line { left: 40px; right: 40px; top: 29px; bottom: auto; width: auto; height: 3px; }
  .steps__line { transform-origin: left; }
  .step { grid-template-columns: 1fr; row-gap: 14px; }
  .step__num { grid-row: auto; }
}

/* ---------- Onde fica ---------- */
.visit__grid { display: grid; gap: 36px; }
.open-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 9px 16px; border-radius: 999px; font-weight: 650; font-size: .95rem;
  background: #e7f6ec; color: #0b6b2f;
}
.open-badge::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(11, 107, 47, .18); }
.open-badge.is-closed { background: #fdeceb; color: var(--vermelho-escuro); }
.open-badge.is-closed::before { box-shadow: 0 0 0 4px rgba(163, 22, 12, .15); }
.visit__address { display: flex; gap: 12px; font-style: normal; font-size: 1.08rem; line-height: 1.55; }
.visit__address svg { width: 26px; height: 26px; flex: none; color: var(--vermelho); margin-top: 2px; }
.hours { margin-top: 26px; width: 100%; max-width: 420px; border-collapse: collapse; }
.hours caption { text-align: left; font: 600 1.2rem/1.2 var(--f-display); margin-bottom: 8px; }
.hours th, .hours td { padding: 12px 0; border-bottom: 1px dashed rgba(43, 19, 11, .18); text-align: left; font-weight: 500; }
.hours td { text-align: right; font-weight: 650; }
.visit__ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.visit__ctas .btn { flex: 1 1 230px; }

.map {
  position: relative; min-height: 340px; border-radius: 28px; overflow: hidden;
  background:
    repeating-linear-gradient(35deg, transparent 0 38px, rgba(255, 255, 255, .45) 38px 44px),
    repeating-linear-gradient(-55deg, transparent 0 60px, rgba(255, 255, 255, .35) 60px 64px),
    var(--amarelo);
  box-shadow: var(--sombra-quente);
}
.map__cover { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 24px; }
.map__pin { width: 56px; height: 56px; color: var(--vermelho); filter: drop-shadow(0 10px 10px rgba(120, 30, 5, .35)); }
.map__cover p { font-size: 1.05rem; background: rgba(255, 255, 255, .85); padding: 10px 16px; border-radius: 14px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 960px) {
  .visit__grid { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: stretch; }
  .map { min-height: 480px; }
}

/* ---------- CTA final ---------- */
.final {
  padding: 96px 0; text-align: center; overflow: hidden;
  background: radial-gradient(100% 120% at 50% 0%, var(--amarelo-claro), var(--amarelo) 50%, var(--laranja));
}
.final__inner { display: grid; justify-items: center; }
.final__title { font: 600 clamp(2.5rem, 9vw, 5rem)/1.02 var(--f-display); letter-spacing: -.025em; max-width: 14ch; text-wrap: balance; }
.final__sub { margin: 16px 0 32px; font-size: 1.15rem; color: #4a2415; }

/* ---------- Rodapé ---------- */
.footer { background: var(--tinta); color: rgba(255, 248, 235, .85); padding: 64px 0 110px; font-size: .95rem; }
.footer__grid { display: grid; gap: 30px; grid-template-columns: 1fr 1fr; }
.footer__brand, .footer__grid > div:nth-child(2) { grid-column: 1 / -1; }
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__brand img { width: 72px; height: 72px; border-radius: 18px; }
.footer__brand p { font: 600 1.3rem/1.2 var(--f-display); color: var(--creme); max-width: 20ch; }
.footer h3 { font: 700 .95rem/1 var(--f-texto); color: var(--amarelo); margin-bottom: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--amarelo); text-decoration: underline; }
.footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 248, 235, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .85rem; color: rgba(255, 248, 235, .6); }
@media (min-width: 960px) {
  .footer { padding-bottom: 48px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer__brand, .footer__grid > div:nth-child(2) { grid-column: auto; }
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: var(--branco);
  box-shadow: 0 14px 30px -10px rgba(16, 138, 62, .9);
  transition: background-color .2s; /* sem transition de transform: o GSAP anima a entrada */
}
.wa-float svg { width: 32px; height: 32px; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.wa-float:hover { background: var(--wa-hover); }
.wa-float:hover svg { transform: scale(1.15) rotate(-8deg); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa);
  animation: pulso 2.4s ease-out infinite;
}
@keyframes pulso { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ribbon__track { flex-wrap: wrap; width: auto; justify-content: center; row-gap: 10px; }
}

/* =========================================================
   Ajustes da farmácia (o que muda em relação ao modelo)
   ========================================================= */

/* Topo e chamada final em vermelho, como as artes da farmácia */
.preloader { background: radial-gradient(90% 70% at 50% 40%, #f2433f, var(--vermelho) 60%, var(--vermelho-escuro)); }
.preloader__logo { border-radius: 50%; box-shadow: 0 0 0 5px rgba(255, 255, 255, .92), var(--sombra-quente); }
.preloader__bar { background: rgba(255, 255, 255, .3); }
.preloader__bar span { background: var(--branco); }

.hero, .final {
  background: radial-gradient(120% 90% at 85% 0%, #f2433f 0%, var(--vermelho) 50%, var(--vermelho-escuro) 100%);
  color: var(--branco);
}
.hero :focus-visible, .final :focus-visible { outline-color: var(--amarelo); }
.hero__sun { background: rgba(255, 255, 255, .08); }
.hero__place { background: rgba(255, 255, 255, .18); }
.hero__place svg { color: var(--amarelo); }
.hero__title { font-size: clamp(2.5rem, 9.5vw, 4.6rem); }
.hero__hl { color: var(--amarelo); }
.hero__lead, .final__sub { color: rgba(255, 255, 255, .95); }
.hero .btn--ghost { color: var(--branco); }
.hero .btn--ghost:hover { background: var(--branco); color: var(--vermelho-escuro); border-color: var(--branco); }
.hero__chips li { color: var(--tinta); }
.hero__stamp { background: var(--amarelo); color: var(--tinta); outline-color: var(--amarelo); border-color: rgba(42, 18, 21, .35); }
.ribbon { background: var(--amarelo); color: var(--tinta); }
.ribbon__track svg { color: var(--vermelho); }

/* Marca no topo: logo redondo + nome (sobre o vermelho fica branco) */
.nav__brand { white-space: nowrap; color: var(--branco); }
.nav__brand img { border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
.nav.is-scrolled .nav__brand, .menu-open .nav__brand { color: var(--tinta); }
@media (min-width: 960px) {
  .nav:not(.is-scrolled) .nav__menu a:not(.btn) { color: var(--branco); }
  .nav:not(.is-scrolled) .nav__menu a:not(.btn)::after { background: var(--amarelo); }
}
.footer__brand img { border-radius: 50%; }

/* Topo sem foto: conversa de exemplo no lugar da foto grande, cruz da marca no lugar da pequena */
.chat { aspect-ratio: auto; background: #efe7dd; color: var(--tinta); }
.chat__top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--branco); border-bottom: 1px solid rgba(42, 18, 21, .08); }
.chat__top img { width: 42px; height: 42px; border-radius: 50%; }
.chat__top strong { display: block; font-size: .98rem; line-height: 1.2; }
.chat__top span { font-size: .8rem; color: #0b6b2f; }
.chat__msgs { display: grid; gap: 10px; padding: 18px 16px 8px; }
.chat__msg {
  justify-self: start; max-width: 84%; padding: 10px 14px; border-radius: 4px 16px 16px 16px;
  background: var(--branco); font-size: .95rem; line-height: 1.4; box-shadow: 0 1px 1px rgba(42, 18, 21, .1);
}
.chat__msg--cliente { justify-self: end; border-radius: 16px 4px 16px 16px; background: #d9fdd3; }
.chat__nota { padding: 4px 16px 16px; font-size: .75rem; text-align: center; color: var(--tinta-suave); }
.hero__cruz { display: grid; place-items: center; background: var(--vermelho); }
.hero__cruz svg { width: 62%; height: 62%; }

/* Categorias com ícone (a farmácia ainda não tem foto de produto) */
.card--red .card__media { background: var(--vermelho); color: var(--branco); }
.card--art .card__media svg { width: 72px; height: 72px; }
.aviso-receita {
  margin: 28px auto 0; max-width: 62ch; padding: 14px 18px; border-radius: var(--raio-sm);
  background: var(--creme); border-left: 5px solid var(--amarelo); font-size: .95rem; color: var(--tinta-suave);
}

/* Números: "R$ 0" não quebra */
.stat__num { white-space: nowrap; }

/* Horário ainda não informado */
.visit__nota { margin-top: 22px; max-width: 46ch; color: var(--tinta-suave); }
.visit__nota strong { color: var(--tinta); }
.map { background:
    repeating-linear-gradient(35deg, transparent 0 38px, rgba(255, 255, 255, .5) 38px 44px),
    repeating-linear-gradient(-55deg, transparent 0 60px, rgba(255, 255, 255, .4) 60px 64px),
    #ffd9d4; }

.footer__bottom a { text-decoration: underline; }

/* A cruz e o selo ficam sobre a parte de baixo da conversa: sobra espaço ali pra não cobrir mensagem */
.chat { padding-bottom: clamp(84px, 24%, 150px); }
.hero__cruz { width: 34%; }
