/* ==========================================================================
   Farmácia do Lageado — Folha de estilos
   Identidade: vermelho do logotipo como cor principal + verde como apoio
   ========================================================================== */

:root {
  --red-900: #5e0007;
  --red-800: #8a000b;
  --red-700: #b3000f;
  --red-600: #d90210;   /* vermelho do logotipo */
  --red-500: #f2101f;
  --red-100: #ffe1e3;
  --red-50:  #fff4f4;

  --green-700: #006414; /* verde do logotipo ("DO") */
  --green-600: #0b7a22;
  --green-100: #e4f3e7;

  --wa: #1fae55;
  --wa-dark: #178a43;

  --ink: #1a1414;
  --text: #4a4242;
  --muted: #776d6d;
  --line: #efe6e6;
  --bg: #ffffff;
  --bg-warm: #faf6f5;

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --shadow-xs: 0 1px 2px rgba(40, 10, 10, .06);
  --shadow-sm: 0 6px 18px -8px rgba(60, 10, 10, .14);
  --shadow:    0 18px 44px -18px rgba(90, 0, 10, .24);
  --shadow-lg: 0 34px 80px -28px rgba(90, 0, 10, .38);

  --font-h: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 118px;
  --ease: cubic-bezier(.22, .8, .25, 1);
}

/* BASE ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html:not(.js) { scroll-behavior: smooth; }
body { margin: 0; font: 400 1rem/1.65 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-600); text-decoration: none; }
a:hover { color: var(--red-700); }
h1, h2, h3 { font-family: var(--font-h); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }
section[id] { scroll-margin-top: 80px; }
:focus-visible { outline: 3px solid var(--red-500); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--red-600); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }

/* BOTÕES ----------------------------------------------------------------- */
.btn {
  --bh: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: var(--bh); padding: 0 24px; border-radius: 14px; border: 2px solid transparent;
  font: 700 .97rem/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s, background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { --bh: 44px; padding: 0 18px; font-size: .92rem; }
.btn--lg { --bh: 58px; padding: 0 28px; font-size: 1.02rem; border-radius: 16px; }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 12px 26px -12px rgba(31,174,85,.75); }
.btn--wa:hover { background: var(--wa-dark); color: #fff; }
.btn--glass { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--glass:hover { background: #fff; color: var(--red-700); }
.btn--white { background: #fff; color: var(--red-700); box-shadow: 0 14px 30px -14px rgba(0,0,0,.4); }
.btn--white:hover { color: var(--red-800); }
.btn--outline { background: #fff; color: var(--red-700); border-color: var(--red-100); }
.btn--insta { color: #fff; background: linear-gradient(90deg, #f58529, #dd2a7b 45%, #8134af 80%, #515bd4); box-shadow: 0 12px 26px -12px rgba(221,42,123,.6); }
.btn--insta:hover { color: #fff; }
.link { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; }
.link .ico { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.link:hover .ico { transform: translateX(4px); }

/* CABEÇALHO -------------------------------------------------------------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; background: #fff; transition: transform .35s var(--ease), box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(60,0,0,.35); }
.header.is-hidden { transform: translateY(-100%); }
.topbar { background: var(--red-600); color: #fff; font-size: .85rem; overflow: hidden; max-height: 40px; transition: max-height .35s var(--ease); }
.header.is-scrolled .topbar { max-height: 0; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 38px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 7px; color: #fff; }
.topbar a:hover { color: #ffe1e3; }
.topbar .ico { width: 15px; height: 15px; }
.topbar__right { display: inline-flex; gap: 22px; }
.header__inner { height: 80px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand__logo { height: 50px; width: auto; }
.brand__text { display: none; font: 700 1.2rem var(--font-h); color: var(--ink); }
.brand__text strong { color: var(--red-600); }
.brand.no-logo .brand__logo { display: none; }
.brand.no-logo .brand__text { display: inline; }

.nav { margin: 0 auto; }
.nav__list { display: flex; gap: 2px; }
.nav__link { display: block; padding: 10px 15px; border-radius: 12px; font-weight: 600; color: var(--ink); font-size: .97rem; transition: color .2s, background-color .2s; }
.nav__link:hover { color: var(--red-600); background: var(--red-50); }
.nav__link.is-active { color: var(--red-600); background: var(--red-50); }
.nav__mobile-extra { display: none; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; place-items: center; }
.menu-toggle .ico { width: 24px; height: 24px; }
.menu-toggle .ico--close, .menu-toggle[aria-expanded="true"] .ico--open { display: none; }
.menu-toggle[aria-expanded="true"] .ico--close { display: block; }
.nav-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(40,0,5,.45); opacity: 0; transition: opacity .3s; }
.nav-backdrop.is-visible { opacity: 1; }

/* HERO ------------------------------------------------------------------- */
.hero { padding: calc(var(--header-h) + 22px) 0 0; }
.hero__card { position: relative; isolation: isolate; min-height: 600px; border-radius: var(--r-xl); overflow: hidden; display: flex; align-items: center; box-shadow: var(--shadow-lg); background: var(--red-800); }
.hero__photo { position: absolute; inset: 0; z-index: -2; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero__card::before { /* degradê vermelho garante contraste do texto */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg, rgba(110,0,9,.97) 0%, rgba(160,0,14,.9) 36%, rgba(190,0,16,.55) 60%, rgba(190,0,16,0) 85%);
}
.hero__card::after { /* símbolo decorativo */
  content: ""; position: absolute; width: 420px; height: 420px; left: -140px; bottom: -170px; z-index: -1; border-radius: 50%;
  border: 48px solid rgba(255,255,255,.06);
}
.hero__content { max-width: 620px; padding: 64px 60px; color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); font-size: .88rem; font-weight: 600; }
.pill .ico { width: 16px; height: 16px; fill: rgba(255,255,255,.35); }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; margin: 22px 0 18px; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; display: block; color: #ffd6d9; }
.hero__content > p { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: rgba(255,255,255,.9); margin-bottom: 32px; max-width: 32em; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
.perk { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border-radius: var(--r-lg); background: var(--bg-warm); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s, background-color .3s; }
.perk:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--shadow); }
.perk__icon { width: 50px; height: 50px; flex: none; border-radius: 15px; display: grid; place-items: center; background: var(--red-600); color: #fff; }
.perk:nth-child(even) .perk__icon { background: var(--green-700); }
.perk__icon .ico { width: 24px; height: 24px; }
.perk h3 { font-size: 1.05rem; margin: 2px 0 3px; }
.perk p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.45; }

/* SEÇÕES ----------------------------------------------------------------- */
.section { padding: 110px 0; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; margin-bottom: 16px; border-radius: 999px; background: var(--red-50); color: var(--red-600); font: 700 .8rem var(--font); text-transform: uppercase; letter-spacing: .1em; }
.tag--light { background: rgba(255,255,255,.14); color: #fff; }
.tag--insta { background: #fdf0f6; color: #c1306c; text-transform: none; letter-spacing: 0; font-size: .92rem; }
.tag .ico { width: 16px; height: 16px; }
.title { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 800; }
.title--light { color: #fff; }
.mark { color: var(--red-600); background: linear-gradient(transparent 62%, var(--red-100) 62%); padding: 0 .08em; }
.lead { font-size: 1.15rem; color: var(--ink); font-weight: 500; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 44px; }
.head > div { max-width: 640px; }
.head > p, .head__sub { color: var(--muted); max-width: 30em; margin: 0; }
.head__sub { margin-top: -4px; }

/* SOBRE ------------------------------------------------------------------ */
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.network { display: flex; gap: 16px; align-items: center; margin-top: 30px; padding: 18px 22px; border-radius: var(--r); background: var(--bg-warm); border: 1px dashed #e8c9cb; }
.network img { width: 52px; height: 52px; flex: none; }
.network p { margin: 0; font-weight: 500; color: var(--ink); }
.network a { font-weight: 700; color: var(--green-700); }
.about__media { position: relative; }
.about__photo { aspect-ratio: 5 / 5.4; border-radius: 200px 200px var(--r-xl) var(--r-xl); overflow: hidden; box-shadow: var(--shadow); border: 8px solid #fff; outline: 2px solid var(--red-100); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__checks { position: absolute; left: -36px; bottom: 36px; display: grid; gap: 8px; padding: 18px 20px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); }
.about__checks li { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: .95rem; }
.about__checks .ico { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--green-700); color: #fff; stroke-width: 3; }

/* SERVIÇOS --------------------------------------------------------------- */
.services { background: linear-gradient(160deg, var(--red-700) 0%, var(--red-800) 55%, var(--red-900) 100%); position: relative; overflow: hidden; }
.services::before { content: ""; position: absolute; width: 640px; height: 640px; right: -220px; top: -260px; border-radius: 50%; border: 70px solid rgba(255,255,255,.05); }
.services__grid { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: start; }
.services__intro { position: sticky; top: 120px; color: rgba(255,255,255,.85); }
.services__intro p { font-size: 1.08rem; margin-bottom: 28px; }
.services__list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.svc { display: flex; gap: 16px; padding: 22px; border-radius: var(--r-lg); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); transition: background-color .3s, transform .3s var(--ease), border-color .3s; }
.svc:hover { background: #fff; transform: translateY(-4px); border-color: #fff; }
.svc__icon { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; background: #fff; color: var(--red-600); transition: background-color .3s, color .3s; }
.svc:hover .svc__icon { background: var(--red-600); color: #fff; }
.svc__icon .ico { width: 25px; height: 25px; }
.svc h3 { color: #fff; font-size: 1.08rem; margin: 2px 0 4px; transition: color .3s; }
.svc p { margin: 0; font-size: .92rem; color: rgba(255,255,255,.72); line-height: 1.5; transition: color .3s; }
.svc:hover h3 { color: var(--ink); }
.svc:hover p { color: var(--muted); }

/* PRODUTOS (bento) ------------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 16px; }
.tile { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-warm); box-shadow: var(--shadow-xs); }
.tile--big { grid-column: span 2; grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.tile figure { position: absolute; inset: 0; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(40,0,5,.78) 100%); pointer-events: none; }
.tile__label { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; display: flex; align-items: center; gap: 12px; color: #fff; }
.tile__label > .ico { width: 44px; height: 44px; padding: 11px; flex: none; border-radius: 14px; background: var(--red-600); color: #fff; }
.tile:nth-child(even) .tile__label > .ico { background: var(--green-700); }
.tile h3 { color: #fff; font-size: 1.12rem; margin: 0; }
.tile p { margin: 0; font-size: .88rem; color: rgba(255,255,255,.85); }
.tile--big h3 { font-size: 1.5rem; }

/* CTA WHATSAPP ----------------------------------------------------------- */
.cta { padding: 0 0 110px; }
.cta__box { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr auto; gap: 40px; align-items: center; padding: 56px 60px; border-radius: var(--r-xl); background: var(--bg-warm); border: 1px solid var(--line); }
.cta__box::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: linear-gradient(var(--red-600) 0 60%, var(--green-700) 60% 100%); }
.cta h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); margin-bottom: 12px; }
.cta h2 span { display: block; color: var(--red-600); }
.cta p { margin: 0; color: var(--muted); font-size: 1.05rem; max-width: 34em; }
.cta__actions { position: relative; z-index: 1; display: grid; justify-items: center; gap: 12px; }
.cta__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.cta__symbol { position: absolute; right: -50px; bottom: -70px; width: 260px; opacity: .07; pointer-events: none; }

/* INSTAGRAM -------------------------------------------------------------- */
.instagram { padding-top: 0; }
.insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.insta-skel { aspect-ratio: 1; border-radius: var(--r); background: linear-gradient(100deg, #f4eeee 30%, #fbf8f8 50%, #f4eeee 70%) 0 0 / 300% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
.insta-post { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--bg-warm); transition: transform .35s var(--ease), box-shadow .35s; }
.insta-post img, .insta-post video { width: 100%; height: 100%; object-fit: cover; }
.insta-post video { position: absolute; inset: 0; }
.insta-post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.insta-post__type { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; }
.insta-post__type .ico { width: 16px; height: 16px; }
.insta-post__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 14px; color: #fff; font-size: .82rem; line-height: 1.4; background: linear-gradient(180deg, transparent 30%, rgba(90,0,10,.88)); opacity: 0; transition: opacity .3s; }
.insta-post__overlay p { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.insta-post__overlay span { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.insta-post:hover .insta-post__overlay, .insta-post:focus-visible .insta-post__overlay { opacity: 1; }
.insta-fallback { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 30px 34px; border-radius: var(--r-xl); background: linear-gradient(100deg, #fff 0%, #fdf2f7 100%); border: 1px solid #f7d9e6; }
.insta-fallback__icon { width: 68px; height: 68px; border-radius: 22px; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.insta-fallback__icon .ico { width: 34px; height: 34px; }
.insta-fallback h3 { font-size: 1.25rem; margin-bottom: 4px; }
.insta-fallback p { margin: 0; color: var(--muted); }

/* CONTATO ---------------------------------------------------------------- */
.contact { position: relative; min-height: 640px; display: flex; align-items: center; padding: 70px 0; }
.contact__map { position: absolute; inset: 0; background: var(--bg-warm); }
.contact__map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.85); }
.contact__wrap { position: relative; pointer-events: none; }
.contact__card { pointer-events: auto; width: min(460px, 100%); padding: 36px; border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow-lg); }
.contact__card .title { font-size: 2rem; }
.contact__list { display: grid; gap: 18px; margin: 8px 0 26px; }
.contact__list li { display: flex; gap: 14px; }
.contact__icon { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--red-50); color: var(--red-600); }
.contact__icon--wa { background: var(--wa); color: #fff; }
.contact__icon--insta { background: #fdf0f6; color: #c1306c; }
.contact__list h3 { font: 700 .75rem var(--font); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 2px 0 4px; }
.contact__list address { color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.contact__big { font: 700 1.15rem var(--font-h); color: var(--ink); }
.contact__card .btn { width: 100%; }

/* RODAPÉ ----------------------------------------------------------------- */
.footer { background: var(--bg-warm); border-top: 5px solid var(--red-600); padding-top: 70px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 48px; padding-bottom: 50px; }
.footer__brand .brand__logo { height: 56px; }
.footer__brand p { margin: 18px 0 0; max-width: 26em; }
.footer__network a { font-weight: 700; color: var(--green-700); }
.footer h3 { font-size: 1.05rem; margin-bottom: 16px; }
.footer__col ul { display: grid; gap: 9px; }
.footer__col a { color: var(--text); }
.footer__col a:hover { color: var(--red-600); }
.footer__contact li { display: flex; gap: 10px; }
.footer__contact .ico { color: var(--red-600); margin-top: 3px; width: 18px; height: 18px; }
.footer__bottom { background: var(--red-700); color: rgba(255,255,255,.8); padding: 22px 0; text-align: center; font-size: .84rem; }
.footer__bottom p { margin: 0 0 6px; }
.footer__notice { color: rgba(255,255,255,.65); max-width: 760px; margin: 0 auto 8px !important; }

/* WHATSAPP FLUTUANTE ----------------------------------------------------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 95; width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 14px 30px -8px rgba(31,174,85,.7); transition: transform .3s var(--ease), border-radius .3s; }
.wa-float .ico { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); border-radius: 50%; color: #fff; }

/* ANIMAÇÕES -------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* RESPONSIVO ------------------------------------------------------------- */
@media (max-width: 1100px) {
  .header__cta span { display: none; }
  .header__cta { width: 46px; padding: 0; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
  .services__list { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  :root { --header-h: 108px; }
  .header__inner { height: 70px; }
  .brand__logo { height: 42px; }
  .menu-toggle { display: grid; }
  .header__cta { display: none; }
  .header__actions { margin-left: auto; position: relative; z-index: 102; }
  .nav { position: fixed; top: 0; right: 0; bottom: 0; z-index: 101; width: min(86vw, 360px); margin: 0; padding: 100px 22px 28px; background: #fff; box-shadow: -20px 0 50px -20px rgba(0,0,0,.3); display: flex; flex-direction: column; gap: 20px; transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s linear .4s; overflow-y: auto; }
  .nav.is-open { transform: none; visibility: visible; transition: transform .4s var(--ease); }
  .nav__list { flex-direction: column; }
  .nav__link { padding: 14px 16px; font-size: 1.05rem; }
  .nav__mobile-extra { display: grid; gap: 10px; }
  .nav__mobile-extra .btn { width: 100%; }
  .topbar__inner > span:first-child { display: none; }
  .topbar__right { width: 100%; justify-content: center; }
  .hero__card { min-height: 0; align-items: flex-end; }
  .hero__card::before { background: linear-gradient(0deg, rgba(110,0,9,.97) 0%, rgba(150,0,14,.9) 50%, rgba(170,0,16,.25) 100%); }
  .hero__content { padding: 220px 32px 40px; }
  .section { padding: 84px 0; }
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__media { max-width: 480px; margin: 0 auto; width: 100%; }
  .about__checks { left: -10px; }
  .services__grid { grid-template-columns: 1fr; gap: 36px; }
  .services__intro { position: static; }
  .services__list { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cta__box { grid-template-columns: 1fr; padding: 44px 34px; }
  .cta__actions { justify-items: start; }
  .insta-fallback { grid-template-columns: auto 1fr; }
  .insta-fallback .btn { grid-column: 1 / -1; }
  .contact { display: block; padding: 0; min-height: 0; }
  .contact__map { position: relative; height: 340px; }
  .contact__wrap { margin-top: -80px; padding-bottom: 70px; }
  .contact__card { width: 100%; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .topbar { font-size: .8rem; }
  .topbar__right { gap: 16px; }
  .hero__content { padding: 190px 22px 30px; }
  .hero__buttons .btn { width: 100%; }
  .btn--lg { --bh: 54px; padding: 0 18px; font-size: .97rem; }
  .perks { grid-template-columns: 1fr; gap: 10px; }
  .perk { padding: 16px; }
  .section { padding: 70px 0; }
  .about__checks { position: relative; left: auto; bottom: auto; margin: -40px 16px 0; }
  .services__list { grid-template-columns: 1fr; }
  .svc { padding: 18px; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; gap: 10px; }
  .tile--big { grid-column: 1 / -1; grid-row: span 1; }
  .tile--big h3 { font-size: 1.2rem; }
  .tile__label { left: 10px; right: 10px; bottom: 10px; gap: 8px; }
  .tile__label > .ico { width: 34px; height: 34px; padding: 8px; border-radius: 10px; }
  .tile h3 { font-size: .95rem; }
  .tile:not(.tile--big):not(.tile--wide) p { display: none; }
  .cta__box { padding: 38px 22px 38px 28px; }
  .cta__actions { justify-items: stretch; text-align: center; }
  .cta__phone { justify-content: center; }
  .insta-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .insta-fallback { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 30px 22px; }
  .insta-fallback .btn { white-space: normal; text-align: center; line-height: 1.25; }
  .contact__card { padding: 28px 22px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .wa-float { right: 14px; bottom: 14px; width: 56px; height: 56px; }
}
@media print { .header, .wa-float, .nav-backdrop, .contact__map, .instagram { display: none !important; } }

/* Fallback visual caso alguma foto não carregue */
.img-frame { background: linear-gradient(135deg, var(--red-50), #f6eeee); }
.img-frame.img-missing img { opacity: 0; }
.img-frame.img-missing::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; opacity: .35; z-index: 0;
  background: no-repeat center / contain url("../images/logo-simbolo.png");
}
.about__photo { position: relative; }
.hero__photo.img-missing::before { display: none; }

/* Bento: a última peça ocupa a linha inteira no computador */
@media (min-width: 961px) { .tile--wide { grid-column: 1 / -1; grid-row: span 1; } }

/* PRODUTOS — cards (mesmo layout da Farmácia Guabiruba Sul) ------------- */
.products__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-card { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-xs); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cat-card figure { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat-card:hover img { transform: scale(1.06); }
.cat-card__body { display: flex; align-items: center; gap: 14px; padding: 18px 22px 20px; }
.cat-card__icon { position: relative; width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--red-50); color: var(--red-600); margin-top: -40px; box-shadow: 0 0 0 5px #fff; }
.cat-card__icon--green { background: var(--green-100); color: var(--green-700); }
.cat-card h3 { font-size: 1.12rem; margin: 0; }
.cat-card p { margin: 0; font-size: .88rem; color: var(--muted); }

/* INSTAGRAM — centralizado (mesmo layout da Farmácia Guabiruba Sul) ------ */
.head--center { flex-direction: column; align-items: center; text-align: center; gap: 0; max-width: 720px; margin-left: auto; margin-right: auto; }
.head--center > p { margin: 0 auto; max-width: 40em; font-size: 1.05rem; }
.instagram .insta-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
.instagram .insta-skel, .instagram .insta-post { border-radius: var(--r); }
.insta-post img { transition: transform .7s var(--ease); }
.insta-post:hover img { transform: scale(1.05); }
.insta-post__overlay { padding: 20px; font-size: .9rem; }
.instagram .insta-fallback { display: block; text-align: center; max-width: 620px; margin: 0 auto; padding: 48px 32px; border-radius: var(--r-xl); border: 2px dashed #f3c6da; background: linear-gradient(180deg, #fff, #fdf5f9); }
.instagram .insta-fallback__icon { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 24px; box-shadow: 0 14px 30px -12px rgba(214,36,159,.6); }
.instagram .insta-fallback__icon .ico { width: 38px; height: 38px; }
.instagram .insta-fallback h3 { font-size: 1.35rem; }
.instagram__cta { text-align: center; margin-top: 40px; }

@media (max-width: 960px) {
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .head--center { align-items: center; }
}
@media (max-width: 600px) {
  .products__grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .cat-card__body { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 14px 16px; }
  .cat-card__icon { width: 40px; height: 40px; margin-top: -34px; }
  .cat-card h3 { font-size: .98rem; }
  .cat-card p { font-size: .8rem; }
  .instagram .insta-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .instagram__cta .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.25; }
}
@media (max-width: 380px) { .products__grid { grid-template-columns: 1fr; } }

/* Fotos reais da farmácia */
.hero__photo picture, .about__photo picture { display: block; width: 100%; height: 100%; }
.hero__photo img { object-position: 60% 62%; }
.about__photo { aspect-ratio: 1 / 1.05; }
.about__photo img { object-position: 50% 45%; }
@media (max-width: 960px) { .hero__photo img { object-position: 50% 40%; } }
.hero__card::before { background: linear-gradient(95deg, rgba(110,0,9,.97) 0%, rgba(160,0,14,.9) 34%, rgba(190,0,16,.45) 56%, rgba(190,0,16,0) 76%); }
@media (max-width: 960px) {
  .hero__card::before { background: linear-gradient(0deg, rgba(110,0,9,.97) 0%, rgba(150,0,14,.9) 55%, rgba(170,0,16,.1) 100%); }
  .hero__photo img { object-position: 50% 58%; }
}
@media (max-width: 960px) { .hero__photo img { transform: scale(1.45); transform-origin: 55% 72%; } }
