:root {
  --ink: #14161b;
  --ink-soft: #60656d;
  --paper: #f7f6f2;
  --white: #fff;
  --yellow: #f8bd16;
  --red: #ef4135;
  --blue: #1686c9;
  --green: #39a85a;
  --line: rgba(20, 22, 27, .12);
  --display: "Space Grotesk", sans-serif;
  --body: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); line-height: 1.55; }
body.no-scroll { overflow: hidden; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(1180px, calc(100% - 56px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 99; padding: 10px 16px; background: var(--yellow); color: var(--ink); font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 16px; }
.topbar { background: var(--yellow); color: #232323; font-size: 12px; letter-spacing: .04em; }
.topbar-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(57, 168, 90, .16); }
.topbar-detail { opacity: .7; }
.topbar-detail i { padding-inline: 8px; font-style: normal; }
.site-header { position: absolute; z-index: 10; inset: 34px 0 auto; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.18); }
.nav-wrap { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-symbol { position: relative; display: grid; place-items: center; width: 38px; height: 38px; overflow: hidden; border: 3px solid var(--white); border-radius: 50%; background: var(--red); }
.brand-symbol::before, .brand-symbol::after, .brand-symbol span { content: ""; position: absolute; width: 20px; height: 20px; transform: rotate(45deg); border-radius: 4px; }
.brand-symbol::before { background: var(--yellow); top: -3px; left: 9px; }
.brand-symbol::after { background: var(--blue); bottom: -3px; right: 9px; }
.brand-symbol span { width: 13px; height: 13px; background: var(--green); z-index: 1; }
.brand-text { display: grid; font-family: var(--display); font-size: 15px; line-height: .92; letter-spacing: -.04em; }
.brand-text strong { font-weight: 600; }
.brand-text em { color: var(--yellow); font-style: normal; font-weight: 700; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: 13px; font-weight: 500; }
.main-nav > a:not(.nav-cta) { opacity: .88; transition: opacity .2s, color .2s; }
.main-nav > a:not(.nav-cta):hover { color: var(--yellow); opacity: 1; }
.nav-cta { display: inline-flex; align-items: center; gap: 14px; padding: 12px 15px; color: var(--ink); background: var(--yellow); font-weight: 700; }
.nav-cta span { font-size: 17px; line-height: 0; }
.nav-whatsapp { display: inline-flex; align-items: center; gap: 7px; padding: 8px 0; border: 0; color: var(--white); background: transparent; font: inherit; font-size: 13px; cursor: pointer; }
.nav-whatsapp:hover { color: var(--yellow); }
.nav-whatsapp span { color: var(--yellow); font-size: 16px; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--white); }

.hero { position: relative; min-height: 720px; display: flex; align-items: center; overflow: hidden; color: var(--white); background: #25262b; }
.hero-image, .hero-shade { position: absolute; inset: 0; }
.hero-image { background: url("img/fachada-farmacia-viva-mais.jpg") center 47% / cover no-repeat; transform: scale(1.02); }
.hero-shade { background: linear-gradient(90deg, rgba(9, 12, 16, .91) 0%, rgba(9, 12, 16, .62) 46%, rgba(9, 12, 16, .1) 100%), linear-gradient(0deg, rgba(8, 10, 14, .7), transparent 38%); }
.hero-content { position: relative; z-index: 1; padding-top: 76px; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 22px; color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow span { display: block; width: 34px; height: 2px; background: currentColor; }
.eyebrow.light { color: var(--yellow); }
.hero h1 { max-width: 650px; margin: 0; font-family: var(--display); font-size: clamp(53px, 7vw, 92px); line-height: .99; letter-spacing: -.075em; }
.hero h1 span, h2 em { color: var(--yellow); font-style: normal; }
.hero-copy { max-width: 520px; margin: 26px 0 32px; color: rgba(255,255,255,.8); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; min-width: 177px; padding: 14px 16px; border: 1px solid transparent; font-size: 13px; font-weight: 700; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--yellow); }
.button-primary span { margin-left: 24px; font-size: 18px; line-height: 0; }
.button-ghost { color: var(--white); border-color: rgba(255,255,255,.35); }
.button-ghost:hover { background: rgba(255,255,255,.1); }
.button-whatsapp { gap: 10px; cursor: pointer; }
.whatsapp-icon { width: 17px; height: 17px; flex: 0 0 auto; fill: currentColor; }
.hero-note { display: flex; align-items: center; gap: 14px; margin-top: 92px; color: rgba(255,255,255,.6); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.note-line { width: 42px; height: 1px; background: var(--yellow); }
.scroll-cue { position: absolute; z-index: 2; right: 28px; bottom: 26px; display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.65); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; transform: rotate(-90deg) translateX(100%); transform-origin: right bottom; }
.scroll-cue span { display: block; width: 42px; height: 1px; background: var(--yellow); }

.trust-strip { background: var(--yellow); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 24px 0; }
.trust-item { display: flex; align-items: center; gap: 14px; min-width: 0; }
.trust-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; color: var(--white); background: var(--ink); font-family: var(--display); font-size: 13px; font-weight: 700; }
.trust-icon.icon-heart { font-size: 28px; font-family: Arial, sans-serif; font-weight: 400; }
.trust-icon.icon-cross { font-size: 19px; }
.trust-icon.icon-home { font-size: 24px; font-family: Arial, sans-serif; font-weight: 400; }
.trust-item strong, .trust-item small { display: block; }
.trust-item strong { font-size: 13px; line-height: 1.2; }
.trust-item small { margin-top: 3px; color: rgba(20,22,27,.6); font-size: 11px; }

.section { padding: 112px 0; }
.about-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 100px; }
h2 { margin: 0; font-family: var(--display); font-size: clamp(38px, 5vw, 63px); line-height: 1.02; letter-spacing: -.07em; }
.about-copy { max-width: 590px; color: var(--ink-soft); font-size: 15px; }
.about-copy p { margin: 0 0 18px; }
.about-copy .lead { color: var(--ink); font-family: var(--display); font-size: 22px; line-height: 1.25; letter-spacing: -.04em; }
.signature { display: flex; align-items: center; gap: 12px; margin-top: 28px; color: var(--ink); font-size: 11px; line-height: 1.1; text-transform: uppercase; letter-spacing: .08em; }
.signature-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid var(--red); border-radius: 50%; color: var(--red); font-family: var(--display); font-size: 11px; font-weight: 700; }
.signature strong { color: var(--red); }
.services-section { background: #ecebe5; }
.centered { max-width: 650px; margin: 0 auto 48px; text-align: center; }
.centered .eyebrow { justify-content: center; }
.section-intro { max-width: 560px; margin: 22px 0 0; color: var(--ink-soft); font-size: 15px; }
.centered .section-intro { margin-inline: auto; }
.service-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 12px; }
.service-card { position: relative; min-height: 204px; display: flex; flex-direction: column; justify-content: space-between; padding: 25px; background: var(--white); transition: transform .25s, box-shadow .25s; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(20,22,27,.08); }
.service-card-large { grid-row: span 2; min-height: 420px; color: var(--white); background: var(--ink); }
.service-card-delivery { color: var(--white); background: var(--red); }
.service-number { color: var(--red); font-family: var(--display); font-size: 11px; font-weight: 700; }
.service-card-large .service-number { color: var(--yellow); }
.service-card h3 { max-width: 190px; margin: 0 0 6px; font-family: var(--display); font-size: 24px; line-height: 1.05; letter-spacing: -.06em; }
.service-card p { max-width: 250px; margin: 0; color: var(--ink-soft); font-size: 13px; }
.service-card-large p, .service-card-delivery p { color: rgba(255,255,255,.68); }
.service-arrow { position: absolute; right: 23px; bottom: 22px; color: var(--red); font-size: 22px; }
.service-card-large .service-arrow { color: var(--yellow); }
.delivery-icon { font-family: var(--display); font-size: 41px; line-height: .5; color: var(--yellow); }
.service-card-delivery > a { margin-top: 20px; color: var(--yellow); font-size: 12px; font-weight: 700; }
.service-card-delivery > a span { margin-left: 8px; font-size: 16px; }

.units-section { color: var(--white); background: var(--ink); }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
.split-heading > div { flex: 1; }
.split-heading .section-intro { max-width: 300px; margin: 0 0 3px; }
.light-copy { color: rgba(255,255,255,.57); }
.unit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.unit-card { overflow: hidden; background: #20232a; }
.unit-card-image { position: relative; height: 245px; overflow: hidden; }
.unit-card-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,13,16,.58), transparent 60%); }
.unit-card-image img { height: 100%; object-fit: cover; transition: transform .5s; }
.unit-card:hover .unit-card-image img { transform: scale(1.05); }
.unit-label { position: absolute; z-index: 1; left: 20px; bottom: 17px; color: var(--yellow); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.unit-card-body { padding: 26px 27px 22px; }
.unit-type { margin: 0 0 5px; color: var(--yellow); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.unit-card h3 { margin: 0; font-family: var(--display); font-size: 33px; line-height: 1; letter-spacing: -.06em; }
.unit-legal { min-height: 42px; margin: 8px 0 22px; color: rgba(255,255,255,.5); font-size: 12px; }
.unit-details { display: grid; grid-template-columns: 1.3fr .7fr; gap: 22px; margin: 0; padding: 17px 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.unit-details dt { margin-bottom: 5px; color: rgba(255,255,255,.43); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.unit-details dd { margin: 0; color: rgba(255,255,255,.82); font-size: 12px; line-height: 1.55; }
.unit-details a { color: var(--white); transition: color .2s; }
.unit-details a:hover { color: var(--yellow); }
.unit-actions { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding-top: 18px; flex-wrap: wrap; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--red); font-size: 11px; font-weight: 700; }
.text-link span { font-size: 16px; line-height: .6; }
.units-section .text-link { color: var(--yellow); }
.whatsapp-link { display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px; color: #1a3926; background: #25d366; font-size: 10px; font-weight: 700; line-height: 1; transition: transform .2s, background .2s; }
.whatsapp-link:hover { color: #12301d; background: #4be27e; transform: translateY(-2px); }
.whatsapp-link .whatsapp-icon { width: 14px; height: 14px; }

.gallery-section { background: var(--paper); }
.gallery-heading { margin-bottom: 72px; }
.gallery-block + .gallery-block { margin-top: 76px; }
.gallery-block-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 21px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.gallery-block-heading > div { display: flex; align-items: center; gap: 15px; }
.gallery-index { color: var(--red); font-family: var(--display); font-size: 13px; font-weight: 700; }
.gallery-block-heading h3 { margin: 0; font-family: var(--display); font-size: 25px; letter-spacing: -.06em; }
.gallery-block-heading small { margin-left: 7px; color: var(--ink-soft); font-family: var(--body); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.gallery-grid { display: grid; gap: 12px; }
.gallery-grid-embu { grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: 230px 230px; }
.gallery-grid-taboao { grid-template-columns: 1.2fr .9fr .9fr; grid-template-rows: 230px 230px; }
.gallery-item { position: relative; overflow: hidden; min-width: 0; padding: 0; border: 0; cursor: zoom-in; background: #ddd; text-align: left; }
.gallery-item-wide { grid-row: span 2; }
.gallery-item-tall { grid-row: span 2; }
.gallery-item img { height: 100%; object-fit: cover; transition: transform .45s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after { content: ""; position: absolute; inset: auto 0 0; height: 50%; background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: .8; }
.gallery-item span { position: absolute; z-index: 1; right: 14px; bottom: 12px; color: var(--white); font-size: 10px; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.gallery-item:hover span { opacity: 1; transform: translateY(0); }

.contact-section { padding: 94px 0; color: var(--white); background: var(--red); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.contact-section .eyebrow { color: var(--yellow); }
.contact-section h2 em { color: var(--yellow); }
.contact-copy { max-width: 420px; margin: 22px 0 0; color: rgba(255,255,255,.72); font-size: 14px; }
.contact-panel { padding: 25px 26px 10px; color: var(--ink); background: var(--white); }
.contact-panel-top { display: flex; align-items: center; gap: 12px; margin-bottom: 19px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 15px; font-weight: 600; }
.brand-symbol.small { width: 27px; height: 27px; border-width: 2px; }
.brand-symbol.small::before, .brand-symbol.small::after { width: 15px; height: 15px; }
.brand-symbol.small span { width: 9px; height: 9px; }
.contact-line { display: grid; grid-template-columns: 35px 1fr auto; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); transition: color .2s; }
.contact-line:last-child { border-bottom: 0; }
.contact-line:hover { color: var(--red); }
.contact-line > span { color: var(--red); font-size: 11px; font-weight: 700; }
.contact-line strong { font-family: var(--display); font-size: 18px; letter-spacing: -.04em; }
.contact-line em { color: var(--ink-soft); font-size: 11px; font-style: normal; }
.contact-line b { margin-left: 5px; color: var(--red); font-size: 15px; }

.site-footer { color: rgba(255,255,255,.74); background: #0d0f13; }
.footer-main { display: flex; align-items: center; gap: 30px; padding: 34px 0 30px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { color: var(--white); }
.footer-main p { flex: 1; margin: 0; color: rgba(255,255,255,.48); font-size: 12px; }
.footer-up { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.2); color: var(--yellow); font-size: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 19px 0 22px; color: rgba(255,255,255,.36); font-size: 10px; }
.footer-legal { text-align: center; }
.footer-dot { display: inline-block; width: 5px; height: 5px; margin-left: 4px; border-radius: 50%; background: var(--yellow); }

.whatsapp-modal { position: fixed; z-index: 45; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(5,7,10,.78); }
.whatsapp-modal[hidden] { display: none; }
.whatsapp-dialog { position: relative; width: min(600px, 100%); padding: 42px; color: var(--ink); background: var(--paper); box-shadow: 0 24px 70px rgba(0,0,0,.3); }
.whatsapp-dialog .eyebrow { margin-bottom: 15px; }
.whatsapp-dialog h2 { font-size: clamp(35px, 5vw, 53px); }
.whatsapp-dialog > p:not(.eyebrow) { max-width: 400px; margin: 18px 0 25px; color: var(--ink-soft); font-size: 14px; }
.whatsapp-close { position: absolute; top: 17px; right: 18px; width: 38px; height: 38px; border: 1px solid var(--line); color: var(--ink); background: transparent; font-size: 25px; line-height: 1; cursor: pointer; }
.whatsapp-choice-grid { display: grid; gap: 10px; }
.whatsapp-choice { display: grid; grid-template-columns: 35px 1fr 22px; align-items: center; gap: 14px; padding: 17px 18px; border: 1px solid var(--line); color: var(--ink); background: var(--white); transition: transform .2s, border-color .2s, box-shadow .2s; }
.whatsapp-choice:hover { border-color: #25d366; box-shadow: 0 10px 20px rgba(20,22,27,.07); transform: translateY(-2px); }
.whatsapp-choice .whatsapp-icon { color: #159447; }
.choice-number { color: var(--red); font-family: var(--display); font-size: 12px; font-weight: 700; }
.whatsapp-choice strong, .whatsapp-choice small { display: block; }
.whatsapp-choice strong { font-family: var(--display); font-size: 17px; letter-spacing: -.04em; }
.whatsapp-choice small { margin-top: 2px; color: var(--ink-soft); font-size: 11px; }
.lightbox { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 40px; background: rgba(5,7,10,.94); }
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: min(1000px, 100%); max-height: 100%; margin: 0; }
.lightbox img { max-height: calc(100vh - 120px); object-fit: contain; }
.lightbox figcaption { margin-top: 11px; color: rgba(255,255,255,.7); font-size: 12px; text-align: center; }
.lightbox-close { position: absolute; top: 20px; right: 23px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.35); color: var(--white); background: transparent; font-size: 30px; line-height: 1; cursor: pointer; }

@media (max-width: 900px) {
  .container { width: min(100% - 40px, 700px); }
  .site-header { top: 34px; }
  .menu-toggle { display: grid; gap: 5px; width: 40px; padding: 8px; cursor: pointer; }
  .menu-toggle > span:not(.sr-only) { display: block; width: 23px; height: 2px; background: currentColor; }
  .main-nav { position: absolute; top: 81px; right: 20px; left: 20px; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 8px; background: var(--ink); box-shadow: 0 16px 30px rgba(0,0,0,.2); }
  .main-nav.is-open { display: flex; }
  .main-nav > a:not(.nav-cta), .nav-cta, .nav-whatsapp { padding: 14px 15px; }
  .hero { min-height: 680px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card-large { grid-row: auto; min-height: 260px; }
  .split-heading { align-items: start; flex-direction: column; gap: 22px; }
  .split-heading .section-intro { margin: 0; }
  .unit-grid { grid-template-columns: 1fr; }
  .gallery-grid-embu, .gallery-grid-taboao { grid-template-columns: 1fr 1fr; grid-template-rows: 230px 230px 230px; }
  .gallery-item-wide, .gallery-item-tall { grid-row: span 2; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .topbar-detail { display: none; }
  .nav-wrap { height: 71px; }
  .hero-content { padding-top: 56px; }
  .hero h1 { font-size: clamp(48px, 15vw, 68px); }
  .hero-copy { font-size: 15px; }
  .hero-note { margin-top: 60px; font-size: 9px; }
  .scroll-cue { display: none; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 18px 10px; padding: 22px 0; }
  .trust-item { gap: 9px; }
  .trust-icon { width: 36px; height: 36px; font-size: 11px; }
  .trust-item strong { font-size: 11px; }
  .trust-item small { font-size: 9px; }
  .section { padding: 78px 0; }
  .about-copy .lead { font-size: 20px; }
  h2 { font-size: 42px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card, .service-card-large { min-height: 185px; }
  .gallery-heading { margin-bottom: 45px; }
  .gallery-block-heading { align-items: start; flex-direction: column; }
  .gallery-block-heading h3 { font-size: 21px; }
  .gallery-block-heading small { display: block; margin: 3px 0 0; }
  .gallery-grid-embu, .gallery-grid-taboao { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 190px 190px 190px; gap: 8px; }
  .gallery-item-wide, .gallery-item-tall { grid-row: span 2; }
  .gallery-item span { opacity: 1; font-size: 8px; }
  .unit-card-image { height: 205px; }
  .unit-card-body { padding: 22px 19px 19px; }
  .unit-details { grid-template-columns: 1fr; gap: 16px; }
  .unit-actions { align-items: start; flex-direction: column; gap: 11px; }
  .whatsapp-link { width: 100%; justify-content: center; }
  .contact-section { padding: 76px 0; }
  .contact-line { grid-template-columns: 27px 1fr; }
  .contact-line em { grid-column: 2; }
  .footer-main, .footer-bottom { align-items: start; flex-direction: column; }
  .footer-main { gap: 17px; }
  .footer-bottom { gap: 9px; }
  .footer-legal { text-align: left; }
  .lightbox { padding: 18px; }
  .whatsapp-dialog { padding: 34px 20px 22px; }
}
