/* Cores tiradas da logo da Farmácia Mar Aberto */
:root {
  --marinho: #072F64;
  --marinho-escuro: #04203F;
  --agua: #14A09A;          /* verde-água da logo (cruz e onda) */
  --agua-forte: #0A716C;    /* versão mais escura para botões com texto branco */
  --folha: #198D70;
  --mar: #166E90;
  --agua-clara: #E6F3F3;    /* fundo suave, a partir de #D1E6E9 */
  --agua-borda: #D1E6E9;
  --texto: #1B2A3A;
  --texto-suave: #4A5A6B;
  --branco: #FFFFFF;
  --exemplo: #B54708;

  --raio: 18px;
  --raio-pequeno: 12px;
  --sombra: 0 10px 30px rgba(7, 47, 100, .10);
  --largura: 1140px;
  --fonte: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--fonte);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--texto);
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--marinho); text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
h1 { font-weight: 800; }
h2 { font-weight: 600; font-size: clamp(1.6rem, 4.5vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-weight: 600; font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--largura)); margin-inline: auto; }
.estreito { width: min(100% - 2.5rem, 780px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: 1rem; top: -100px; background: var(--marinho); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.pular:focus { top: 1rem; }
::selection { background: var(--agua); color: #fff; }
html { scrollbar-color: var(--agua) var(--agua-clara); accent-color: var(--agua-forte); caret-color: var(--agua-forte); }
:focus-visible { outline: 3px solid var(--agua); outline-offset: 3px; }

.exemplo { color: var(--exemplo); font-weight: 600; font-size: .85em; }
.secao--escura .exemplo, .chamada .exemplo, .rodape .exemplo { color: #FFC58A; }

/* Botões */
.botoes { display: flex; flex-wrap: wrap; gap: .75rem; }
.botoes--centro { justify-content: center; }
.centro { text-align: center; margin-top: 2.5rem; }
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .8rem 1.5rem;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--fonte); text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.botao svg { width: 22px; height: 22px; flex: none; }
.botao:hover { transform: translateY(-2px); }
.botao--whats { background: var(--agua-forte); color: #fff; box-shadow: 0 8px 20px rgba(10, 113, 108, .35); }
.botao--whats:hover { background: #085C58; box-shadow: 0 12px 26px rgba(10, 113, 108, .4); }
.botao:active { transform: translateY(0); }
.botao--claro { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.75); }
.botao--claro:hover { background: #fff; color: var(--marinho); }
.botao--pequeno { min-height: 42px; padding: .5rem 1.2rem; font-size: .95rem; background: var(--agua-forte); color: #fff; }

/* Cabeçalho */
.cabecalho {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.cabecalho::before { content: ""; position: absolute; inset: 0 0 -30px; z-index: -1; background: linear-gradient(180deg, rgba(4,32,63,.55), rgba(4,32,63,0)); transition: opacity .3s; pointer-events: none; }
.cabecalho.rolou::before, .cabecalho.aberto::before { opacity: 0; }
.cabecalho.rolou, .cabecalho.aberto { background: rgba(255,255,255,.97); box-shadow: 0 2px 16px rgba(7,47,100,.08); }
.cabecalho__linha { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.marca { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.marca img { border-radius: 12px; background: #fff; padding: 2px; }
.marca__texto { display: flex; flex-direction: column; font-weight: 800; font-size: 1.2rem; line-height: 1; color: #fff; letter-spacing: .01em; }
.marca__texto small { font-weight: 600; font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; margin-bottom: .25rem; color: #BFEDEA; }
.rolou .marca__texto, .aberto .marca__texto { color: var(--marinho); }
.rolou .marca__texto small, .aberto .marca__texto small { color: var(--agua-forte); }

.menu-botao { display: none; }
.menu { display: flex; align-items: center; gap: 1.6rem; }
.menu a:not(.botao) { color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.menu a:not(.botao):hover { border-color: var(--agua); }
.rolou .menu a:not(.botao) { color: var(--marinho); }

@media (max-width: 860px) {
  .menu-botao {
    display: grid; place-items: center; width: 48px; height: 48px;
    border: 0; border-radius: 12px; background: rgba(255,255,255,.15); cursor: pointer;
  }
  .rolou .menu-botao, .aberto .menu-botao { background: var(--agua-clara); }
  .menu-botao__barras, .menu-botao__barras::before, .menu-botao__barras::after {
    content: ""; display: block; width: 22px; height: 2px; border-radius: 2px; background: #fff; position: relative; transition: transform .25s ease, background-color .25s;
  }
  .menu-botao__barras::before { position: absolute; top: -7px; }
  .menu-botao__barras::after { position: absolute; top: 7px; }
  .rolou .menu-botao__barras, .rolou .menu-botao__barras::before, .rolou .menu-botao__barras::after,
  .aberto .menu-botao__barras::before, .aberto .menu-botao__barras::after { background: var(--marinho); }
  .aberto .menu-botao__barras { background: transparent; }
  .aberto .menu-botao__barras::before { transform: translateY(7px) rotate(45deg); }
  .aberto .menu-botao__barras::after { transform: translateY(-7px) rotate(-45deg); }

  .menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: .5rem 1.25rem 1.25rem; box-shadow: 0 16px 30px rgba(7,47,100,.12);
    display: none;
  }
  .aberto .menu { display: flex; }
  .menu a:not(.botao) { color: var(--marinho); padding: .9rem 0; border-bottom: 1px solid var(--agua-borda); font-size: 1.05rem; }
  .menu .botao { margin-top: 1rem; min-height: 50px; }
}

/* Topo */
.topo {
  position: relative; isolation: isolate;
  min-height: 100svh; display: flex; align-items: center;
  padding: 7rem 0 4rem; color: #fff; overflow: hidden;
}
.topo__foto, .topo__foto img { position: absolute; inset: 0; width: 100%; height: 100% !important; z-index: -2; }
.topo__foto img { object-fit: cover; object-position: 70% center; }
.topo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(4,32,63,.94) 0%, rgba(7,47,100,.85) 38%, rgba(7,47,100,.35) 68%, rgba(7,47,100,.1) 100%);
}
@media (max-width: 700px) {
  .topo::before { background: linear-gradient(180deg, rgba(4,32,63,.78) 0%, rgba(4,32,63,.88) 45%, rgba(7,47,100,.95) 100%); }
  .topo__foto img { object-position: 30% center; }
}
.topo::after { /* onda suave no rodapé do topo */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; z-index: -1;
  background: var(--marinho);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30c180 25 360 25 540 5s360-35 540-15 270 30 360 20V60H0z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30c180 25 360 25 540 5s360-35 540-15 270 30 360 20V60H0z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.topo__conteudo { max-width: 620px; margin-left: max(1.25rem, calc((100% - var(--largura)) / 2)); }
@media (min-width: 1141px) { .topo__conteudo { margin-left: calc((100vw - var(--largura)) / 2); } }
.topo h1 { color: #fff; font-size: clamp(2.2rem, 7vw, 3.6rem); letter-spacing: -.02em; margin-bottom: .45em; }
.topo h1 span { color: #7FE0D8; }
.topo__texto { font-size: clamp(1.02rem, 2.4vw, 1.2rem); color: #E3EEF7; max-width: 34em; margin-bottom: 2rem; }
.topo__fatos { list-style: none; padding: 0; margin: 2.5rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: .9rem; color: #CFE0EE; }
.topo__fatos strong { display: block; color: #fff; font-size: 1.05rem; font-weight: 600; }
.topo__fatos li { padding-left: 1.7rem; line-height: 1.35; position: relative; }
.topo__fatos li::before { content: ""; position: absolute; left: 0; top: .15rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--agua) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/62% no-repeat; }

.selo-status {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .85rem; font-weight: 600; padding: .35rem .9rem; border-radius: 999px;
  background: rgba(4,32,63,.72); border: 1px solid rgba(255,255,255,.25); margin-bottom: 1.2rem; color: #fff;
}
.selo-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #F59E0B; }
.selo-status.aberta::before { background: #34D399; box-shadow: 0 0 0 4px rgba(52,211,153,.25); }

.topo__conteudo > * { animation: subir .9s cubic-bezier(.16, 1, .3, 1) both; }
.topo__conteudo > :nth-child(2) { animation-delay: .08s; }
.topo__conteudo > :nth-child(3) { animation-delay: .16s; }
.topo__conteudo > :nth-child(4) { animation-delay: .24s; }
.topo__conteudo > :nth-child(5) { animation-delay: .32s; }
.topo__foto img { animation: aproximar 1.6s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes subir { from { opacity: 0; transform: translateY(18px); } }
@keyframes aproximar { from { transform: scale(1.06); filter: blur(6px); } }
@media (prefers-reduced-motion: reduce) { .topo__conteudo > *, .topo__foto img { animation: none; } }

/* Faixa de valores */
.valores { background: var(--marinho); color: #fff; padding: .2rem 0 1.6rem; }
.valores__linha { display: flex; justify-content: center; align-items: center; gap: 1.1rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; flex-wrap: wrap; }
.valores__ponto { width: 6px; height: 6px; border-radius: 50%; background: var(--agua); }

/* Seções */
.secao { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.secao--clara { background: var(--agua-clara); }
.secao--escura { background: var(--marinho); color: #E3EEF7; }
.secao--escura h2 { color: #fff; }
.secao__cabeca { text-align: center; max-width: 640px; margin: 0 auto 2.75rem; }
.secao__cabeca h2 { margin: 0; }
/* Produtos */
.produtos { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.produto { background: #fff; border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.produto:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(7,47,100,.14); }
.produto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.produto__texto { padding: 1.4rem 1.5rem 1.6rem; }
.produto__texto { display: flex; flex-direction: column; flex: 1; }
.produto__texto p { color: var(--texto-suave); margin: 0 0 1.1rem; font-size: .97rem; }
.produto__link { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; font-weight: 600; font-size: .95rem; color: var(--agua-forte); text-decoration: underline; text-decoration-color: rgba(10,113,108,.3); text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.produto__link svg { width: 18px; height: 18px; flex: none; }
.produto__link:hover { color: var(--marinho); text-decoration-color: currentColor; }
.nota { text-align: center; margin: 2.5rem auto 0; max-width: 560px; color: var(--texto-suave); }

/* Formas de comprar */
.formas { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 3rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.forma { padding: 1.6rem 0; border-top: 2px solid var(--agua-borda); }
.forma h3 { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.forma__icone { color: var(--agua-forte); display: inline-flex; }
.forma__icone svg { width: 30px; height: 30px; }
.forma p { color: var(--texto-suave); margin: 0; font-size: .97rem; }

/* Sobre */
.sobre { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 860px) { .sobre { grid-template-columns: 1fr 1fr; } }
.sobre__foto { position: relative; }
.sobre__foto img { border-radius: var(--raio); width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.sobre__foto::before { content: ""; position: absolute; inset: 1.2rem -1.2rem -1.2rem 1.2rem; border-radius: var(--raio); background: var(--agua-clara); z-index: -1; }
.sobre__texto p { color: var(--texto-suave); }
.exemplo-bloco { background: #FFF7ED; border: 1px dashed #F5B97A; border-radius: var(--raio-pequeno); padding: .8rem 1rem; font-size: .92rem; }
.sobre__subtitulo { margin-top: 1.6rem; font-size: 1.05rem; }
.lista-check { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.lista-check li { padding-left: 2rem; position: relative; font-weight: 600; }
.lista-check li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--agua-clara) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B7F7A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/70% no-repeat; }

/* Avaliações */
.avaliacoes__nota { margin: .6rem 0 0; color: var(--texto-suave); }
.avaliacoes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.avaliacoes blockquote { margin: 0; height: 100%; background: #fff; border-radius: var(--raio); padding: 1.6rem 1.6rem 1.4rem; box-shadow: var(--sombra); display: flex; flex-direction: column; }
.avaliacoes blockquote p { font-size: 1.05rem; color: var(--texto); margin-bottom: 1rem; }
.avaliacoes footer { margin-top: auto; font-weight: 600; color: var(--marinho); font-size: .95rem; }
.link-forte { color: var(--agua-forte); font-weight: 600; text-underline-offset: 4px; }
.link-forte:hover { color: var(--marinho); }

/* Horário e localização */
.local { display: grid; gap: 2.5rem; align-items: stretch; }
@media (min-width: 860px) { .local { grid-template-columns: 1fr 1.1fr; } }
.local__resumo { color: #CFE0EE; margin-top: -.3rem; }
.horarios { width: 100%; font-variant-numeric: tabular-nums; border-collapse: collapse; margin: .5rem 0 1.8rem; }
.horarios th, .horarios td { padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.15); text-align: left; }
.horarios th { font-weight: 400; }
.horarios td { text-align: right; font-weight: 600; color: #fff; }
.horarios tr.hoje th, .horarios tr.hoje td { color: #7FE0D8; }
.horarios tr.hoje th::after { content: " (hoje)"; font-weight: 400; font-size: .85em; }
address { font-style: normal; display: flex; gap: .8rem; margin-bottom: 1.8rem; }
address svg { width: 24px; height: 24px; flex: none; color: #7FE0D8; margin-top: .2rem; }
.local__mapa { border-radius: var(--raio); overflow: hidden; min-height: 340px; background: var(--marinho-escuro); }
.mapa-capa { width: 100%; height: 100%; min-height: 340px; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; color: #fff; font: inherit; background: radial-gradient(circle at 50% 45%, rgba(20,160,154,.35), transparent 60%), var(--marinho-escuro); transition: background-color .2s; }
.mapa-capa svg { width: 44px; height: 44px; color: #7FE0D8; margin-bottom: .4rem; }
.mapa-capa__titulo { font-weight: 600; font-size: 1.15rem; }
.mapa-capa__texto { font-size: .9rem; color: #CFE0EE; }
.mapa-capa:hover .mapa-capa__titulo { text-decoration: underline; text-underline-offset: 4px; }
.local__mapa iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* Dúvidas */
.duvidas { display: grid; gap: .8rem; }
.duvidas details { border: 1px solid var(--agua-borda); border-radius: var(--raio-pequeno); background: #fff; transition: box-shadow .2s; }
.duvidas details[open] { background: var(--agua-clara); border-color: transparent; }
.duvidas summary:hover { color: var(--agua-forte); }
.duvidas summary { cursor: pointer; list-style: none; padding: 1.1rem 3.2rem 1.1rem 1.3rem; font-weight: 600; color: var(--marinho); position: relative; }
.duvidas summary::-webkit-details-marker { display: none; }
.duvidas summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--agua-clara); color: var(--agua-forte); display: grid; place-items: center; font-size: 1.3rem; font-weight: 400; line-height: 1; transition: transform .2s; }
.duvidas details[open] summary::after { content: "−"; background: #fff; }
.duvidas details p { padding: 0 1.3rem 1.2rem; margin: 0; color: var(--texto-suave); }

/* Chamada final */
.chamada { position: relative; isolation: isolate; padding: clamp(5rem, 12vw, 8rem) 0; text-align: center; color: #fff; overflow: hidden; }
.chamada__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.chamada::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,47,100,.55), rgba(4,32,63,.85)); }
.chamada h2 { color: #fff; font-size: clamp(1.8rem, 5vw, 2.8rem); }
.chamada p { font-size: 1.1rem; color: #E3EEF7; margin-bottom: 2rem; }

/* Rodapé */
.rodape { background: var(--marinho-escuro); color: #C4D3E2; padding: 3.5rem 0 6rem; font-size: .95rem; }
.rodape__grade { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: start; }
.rodape h2 { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: .6rem; }
.rodape a { color: #fff; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
.rodape a:hover { color: #7FE0D8; }
.rodape__logo { border-radius: var(--raio-pequeno); width: 110px; height: auto; }
.rodape__legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.rodape__legal p { margin: 0 0 .3rem; }
.rodape__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.rodape__base p { margin: 0; }

/* WhatsApp flutuante */
.whats-flutuante {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #1FA855; color: #fff; box-shadow: 0 10px 25px rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.whats-flutuante svg { width: 32px; height: 32px; }
.whats-flutuante:hover { transform: scale(1.06); }

/* Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  .botao, .produto, .whats-flutuante { transition: none; }
}
