/* ==========================================================================
   Farmácia Associadas Coxim — estilos (mobile-first)
   Paleta extraída da fachada/sinalização da loja: verde-água, laranja e branco.
   ========================================================================== */
:root {
  /* cores amostradas da logo oficial: verde-água #00B4AC e laranja #F26F20 */
  --teal: #00b4ac;
  --teal-dark: #007a74;
  --teal-deep: #004f4b;
  --teal-50: #e6f7f6;
  --teal-100: #c9ecea;
  --orange: #c95706;          /* botões (contraste próximo de AA com texto branco) */
  --orange-dark: #a84803;
  --orange-bright: #f26f20;   /* laranja da logo, detalhes decorativos */
  --yellow: #ffc629;          /* etiquetas de preço da loja (uso pontual) */
  --wa: #1faf53;              /* verde reconhecível do WhatsApp (só botão flutuante) */
  --ink: #10302e;
  --muted: #4b6866;
  --bg: #ffffff;
  --bg-soft: #f4faf9;
  --line: #dbe9e7;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(7, 63, 60, .28);
  --shadow-lg: 0 24px 60px -24px rgba(7, 63, 60, .4);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 1rem; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--orange-bright); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1160px, 100% - 2rem); margin-inline: auto; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1.02rem; text-decoration: none; line-height: 1.2; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--wa { background: var(--orange); color: #fff; box-shadow: 0 10px 22px -10px rgba(191, 85, 4, .8); }
.btn--wa:hover { background: var(--orange-dark); }
.btn--ghost { background: #fff; color: var(--teal-dark); border-color: var(--teal-100); }
.btn--ghost:hover { border-color: var(--teal); }
.btn--sm { min-height: 42px; padding: .5rem 1.05rem; font-size: .95rem; }
.btn--lg { min-height: 56px; padding: .9rem 1.7rem; font-size: 1.1rem; }
.btn--xl { min-height: 68px; padding: 1.1rem 2.2rem; font-size: 1.25rem; box-shadow: 0 16px 34px -12px rgba(0,0,0,.5); }
.btn--xl .ico { width: 1.5em; height: 1.5em; }
.btn--block { width: 100%; }
.text-link { color: var(--teal-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: .35rem; }
.text-link:hover { color: var(--orange); }

/* ---------- Cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
/* o blur fica num pseudo-elemento: backdrop-filter no próprio header quebraria o menu mobile (position: fixed) */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); }
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(7,63,60,.35); border-color: var(--line); }
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: .75rem; }
.brand { margin-right: auto; display: flex; }
.brand img { height: 46px; width: auto; mix-blend-mode: multiply; }
.header__wa span { display: inline; }
.menu-toggle { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-content: center; gap: 5px; }
.menu-toggle span { display: block; width: 22px; height: 2.5px; background: var(--teal-dark); border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; padding: 1.25rem 1rem 2rem; display: none; flex-direction: column; gap: 1.25rem; overflow-y: auto; }
.nav.is-open { display: flex; }
.nav ul { display: flex; flex-direction: column; }
.nav li a { display: block; padding: 1rem .25rem; font-size: 1.15rem; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); color: var(--teal-dark); }
.nav__cta { display: inline-flex; }

/* ---------- Hero ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .88rem; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-dark); background: var(--teal-50); padding: .4rem .85rem; border-radius: 999px; margin-bottom: 1.1rem; }
.eyebrow--dark { color: var(--teal-dark); }
.eyebrow--light { background: rgba(255,255,255,.14); color: #fff; }

.hero { background: linear-gradient(180deg, var(--teal-50) 0%, #fff 100%); padding: 1.5rem 0 2.5rem; overflow: hidden; }
.hero__grid { display: grid; gap: 2rem; }
.hero h1 { font-size: clamp(2.05rem, 7.2vw, 3.6rem); font-weight: 800; color: var(--teal-deep); }
.hero h1 span { color: var(--teal); display: block; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 36em; margin: 1.1rem 0 1.6rem; }
.hero__actions { display: grid; gap: .75rem; }
.open-badge { display: inline-flex; align-items: center; gap: .55rem; margin: 1.25rem 0 0; font-size: .92rem; font-weight: 600; color: var(--teal-dark); background: #fff; border: 1px solid var(--line); padding: .4rem .9rem; border-radius: 999px; }
.open-badge[hidden] { display: none; }
.open-badge--inline { margin-top: .4rem; }
.open-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: #9aa; }
.open-badge.is-open .dot { background: #1faf53; box-shadow: 0 0 0 4px rgba(31,175,83,.2); }
.open-badge.is-closed .dot { background: var(--orange-bright); }

.hero__visual { position: relative; }
.hero__photo { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid #fff; aspect-ratio: 4 / 3; background: var(--teal-100); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__logo { position: absolute; left: 12px; top: 12px; background: #fff; border-radius: 14px; padding: 6px 12px; height: 62px; width: auto; box-shadow: var(--shadow); }
.float-card { position: absolute; display: flex; align-items: center; gap: .65rem; background: #fff; border-radius: 16px; padding: .65rem .9rem; box-shadow: var(--shadow); font-size: .85rem; line-height: 1.25; }
.float-card .ico { width: 1.7rem; height: 1.7rem; color: var(--teal); background: var(--teal-50); border-radius: 10px; padding: .3rem; }
.float-card strong { display: block; color: var(--teal-deep); }
.float-card span { color: var(--muted); }
.float-card--a { right: 10px; top: 42%; }
.float-card--b { left: 12px; bottom: -22px; }

/* ---------- Faixa de confiança ---------- */
.trust { background: var(--teal-dark); color: #fff; }
.trust__list { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; padding: 1.4rem 0; font-weight: 600; font-size: .92rem; }
.trust__list li { display: flex; align-items: center; gap: .6rem; }
.trust__list .ico { color: var(--orange-bright); width: 1.5rem; height: 1.5rem; }

/* ---------- Seções ---------- */
.section { padding: 4rem 0; }
.section__head { max-width: 40rem; margin-bottom: 2.25rem; }
.section__head h2, .about__text h2 { font-size: clamp(1.8rem, 5.5vw, 2.7rem); font-weight: 800; color: var(--teal-deep); }
.section__head p { color: var(--muted); font-size: 1.08rem; margin: .9rem 0 0; }

/* Sobre */
.about__grid { display: grid; gap: 2.5rem; align-items: center; }
.about__media { position: relative; padding: 0 0 2.5rem; }
.about__img-main { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 88%; aspect-ratio: 4/3; object-fit: cover; }
.about__img-sub { position: absolute; right: 0; bottom: 0; width: 50%; border-radius: var(--radius); border: 6px solid #fff; box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.about__text p { color: var(--muted); font-size: 1.06rem; }
.about__text h2 { margin-bottom: 1.1rem; }
.checks { display: grid; gap: .9rem; margin: 1.5rem 0 1.9rem; }
.checks li { display: flex; gap: .8rem; align-items: flex-start; }
.checks .ico { width: 1.7rem; height: 1.7rem; padding: .3rem; background: var(--teal); color: #fff; border-radius: 50%; margin-top: .1rem; }
.checks strong { color: var(--teal-deep); }

/* Produtos */
.products { background: var(--bg-soft); }
.cards { display: grid; gap: 1.25rem; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--teal-100); position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); transform: scale(var(--zoom, 1)); transform-origin: var(--pos, center); transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(calc(var(--zoom, 1) + .06)); }
.card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.3rem; color: var(--teal-deep); margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .98rem; margin-bottom: 1rem; }
.card__link { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--orange); text-decoration: none; min-height: 44px; }
.card__link:hover { color: var(--orange-dark); }
.card__link .ico { transition: transform .2s; }
.card__link:hover .ico { transform: translateX(4px); }
.section__cta { margin-top: 2.5rem; display: grid; gap: 1rem; justify-items: center; text-align: center; }
.section__cta p { font-weight: 600; font-size: 1.1rem; color: var(--teal-dark); margin: 0; }

/* Teleentrega */
.delivery { background: radial-gradient(circle at 85% 10%, rgba(240,138,44,.18), transparent 40%), linear-gradient(135deg, var(--teal-dark), var(--teal-deep)); color: #fff; position: relative; overflow: hidden; }
.delivery::before, .delivery::after { content: ""; display: none; position: absolute; background: var(--orange-bright); opacity: .16; border-radius: 6px; }
@media (min-width: 900px) { .delivery::before, .delivery::after { display: block; } }
.delivery::before { width: 26px; height: 120px; right: 6%; bottom: 8%; box-shadow: 0 0 0 0 transparent; }
.delivery::after { width: 120px; height: 26px; right: calc(6% - 47px); bottom: calc(8% + 47px); }
.delivery__grid { display: grid; gap: 2.5rem; position: relative; z-index: 1; align-items: center; }
.delivery h2 { font-size: clamp(2rem, 6.5vw, 3.4rem); font-weight: 800; margin-bottom: 1rem; }
.delivery .lead { color: rgba(255,255,255,.88); margin-top: 0; }
.delivery .btn--xl { width: 100%; }
.delivery__number { margin: 1.1rem 0 0; color: rgba(255,255,255,.85); }
.delivery__number strong { color: #fff; font-size: 1.1rem; }
.steps { display: grid; gap: 1rem; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 1.2rem 1.3rem; backdrop-filter: blur(4px); }
.steps__n { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--orange-bright); color: var(--teal-deep); font-weight: 800; display: grid; place-content: center; font-size: 1.15rem; }
.steps h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.steps p { margin: 0; color: rgba(255,255,255,.82); font-size: .97rem; }

/* Galeria */
.gallery__grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.tile { position: relative; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; background: var(--teal-100); aspect-ratio: 4/3; box-shadow: var(--shadow); text-align: left; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7,63,60,.75)); pointer-events: none; }
.tile__cap { position: absolute; left: 1rem; bottom: .9rem; z-index: 1; color: #fff; font-weight: 700; font-size: 1rem; right: 3.5rem; }
.tile__ico { position: absolute; right: .9rem; bottom: .9rem; z-index: 1; color: #fff; width: 1.4rem; height: 1.4rem; }
.tile--cta { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .6rem; padding: 1.75rem; aspect-ratio: auto; min-height: 220px; }
.tile--cta::after { display: none; }
.tile--cta h3 { font-size: 1.6rem; }
.tile--cta p { margin: 0 0 .6rem; opacity: .92; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(4, 28, 27, .85); }
.lightbox figure { margin: 0; }
.lightbox img { max-height: 80vh; width: auto; margin-inline: auto; border-radius: var(--radius-sm); }
.lightbox figcaption { color: #fff; text-align: center; padding-top: .75rem; font-weight: 600; }
.lightbox__close { position: absolute; right: 6px; top: -50px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--teal-deep); font-size: 1.8rem; line-height: 1; }

/* Contato */
.contact { background: var(--bg-soft); }
.contact__grid { display: grid; gap: 1.5rem; }
.contact__info { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 1.5rem; }
.info-list { display: grid; gap: 1.25rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; }
.info-list > li > .ico { width: 2.6rem; height: 2.6rem; padding: .6rem; border-radius: 12px; background: var(--teal-50); color: var(--teal); }
.info-list h3 { font-size: 1.02rem; color: var(--teal-deep); margin-bottom: .2rem; }
.info-list p, .info-list address { margin: 0; color: var(--muted); }
.info-list strong { color: var(--ink); }
.contact__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); min-height: 340px; background: var(--teal-100); }
.contact__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* Rodapé */
.site-footer { background: var(--teal-deep); color: rgba(255,255,255,.82); padding: 3rem 0 6.5rem; font-size: .96rem; }
.footer__grid { display: grid; gap: 2rem; }
.footer__brand img { height: 84px; width: auto; margin-bottom: 1rem; background: #fff; border-radius: 16px; padding: 8px 16px; }
.footer__brand p { max-width: 22rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #fff; text-underline-offset: 3px; }
.social { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; min-height: 40px; }
.social:hover { color: var(--orange-bright); }
.footer__legal { margin-top: 2.25rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.16); font-size: .85rem; display: grid; gap: .3rem; }
.footer__legal p { margin: 0; }

/* WhatsApp flutuante */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: inline-flex; align-items: center; gap: .6rem; background: var(--wa); color: #fff; text-decoration: none; font-weight: 800; border-radius: 999px; min-width: 64px; height: 64px; padding: 0 1rem; justify-content: center; box-shadow: 0 12px 28px -8px rgba(0,0,0,.45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.05); }
.wa-float .ico { width: 34px; height: 34px; }
.wa-float span { display: none; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--wa); animation: pulse 2.4s ease-out infinite; pointer-events: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- ≥ 560px ---------- */
@media (min-width: 560px) {
  .hero__actions { display: flex; flex-wrap: wrap; }
  .cards, .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .tile--cta { grid-column: span 2; }
  .trust__list { grid-template-columns: repeat(4, 1fr); font-size: .95rem; }
}

/* ---------- ≥ 900px ---------- */
@media (min-width: 900px) {
  :root { --header-h: 78px; }
  .brand img { height: 56px; }
  .menu-toggle, .header__wa { display: none; }
  .nav { position: static; display: flex; flex-direction: row; align-items: center; padding: 0; background: none; overflow: visible; gap: 1.5rem; }
  .nav ul { flex-direction: row; gap: .25rem; }
  .nav li a { border: 0; padding: .55rem .8rem; font-size: .95rem; border-radius: 999px; font-weight: 600; }
  .nav li a:hover { background: var(--teal-50); }
  .header__inner { gap: 1.5rem; }

  .hero { padding: 3.5rem 0 4.5rem; }
  .hero__grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 3.5rem; }
  .float-card { font-size: .92rem; }
  .float-card--a { right: -22px; }
  .float-card--b { left: -28px; bottom: -26px; }
  .trust__list { padding: 1.6rem 0; }

  .section { padding: 6rem 0; }
  .about__grid { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .delivery__grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
  .delivery .btn--xl { width: auto; }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .tile--cta { grid-column: span 2; }
  .contact__grid { grid-template-columns: 1fr 1.1fr; align-items: stretch; gap: 2rem; }
  .contact__info { padding: 2rem; }
  .footer__grid { grid-template-columns: 1.3fr 1.3fr 1fr; }
  .site-footer { padding-bottom: 5rem; }
  .wa-float { right: 24px; bottom: 24px; padding: 0 1.4rem 0 1.1rem; height: 62px; }
  .wa-float span { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
