/* "Mosaico" -- its own drawing, sharing no class with the classic layout's
   style.css. The site's root is 10 px (global.css: 62.5%), so 1.6rem is the
   usual 16 px. Dark, large type, the services as big tiles. --mz-accent is the
   page's colour: one for every page for now, taken from the cover photo
   later. */

body:has(.mz) { background: #0c0f14; }
.mz {
    --mz-bg: #0c0f14;
    --mz-panel: #151a22;
    --mz-line: #232b37;
    --mz-ink: #eef2f7;
    --mz-muted: #9aa4b2;
    --mz-accent: #3d7bff;
    --mz-wa: #25c26a;
    color: var(--mz-ink);
    background: var(--mz-bg);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}
.mz *, .mz *::before, .mz *::after { box-sizing: border-box; }
.mz a { color: inherit; }
.mz-wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 1.25rem; }
.mz h1, .mz h2, .mz h3, .mz-stat b { font-family: 'Space Grotesk', system-ui, sans-serif; letter-spacing: -0.03em; }

/* ===== Buttons ===== */
.mz-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 4.8rem; padding: 1.2rem 2.2rem; border-radius: 12px; border: 1px solid transparent;
    font-size: 1.68rem; font-weight: 700; text-decoration: none; text-align: center; cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}
.mz-btn:hover { transform: translateY(-2px); }
.mz .mz-btn-wa { background: var(--mz-wa); color: #04150b; }
.mz .mz-btn-ghost { background: transparent; color: var(--mz-ink); border-color: rgba(255, 255, 255, 0.3); }
.mz .mz-btn-light { background: #fff; color: #0c0f14; }
.mz .mz-btn-accent { background: var(--mz-accent); color: #fff; }
.mz .mz-link { display: inline-block; margin-top: 1.4rem; font-weight: 700; color: var(--mz-accent); text-decoration: none; }
.mz .mz-link:hover { text-decoration: underline; }

/* ===== Cover =====
   The text takes the left half and the facts come up into it: one screen
   says what it is, where, from how much, who vouches for it and how to call.
   The photo goes with the text instead of carrying the page alone. */
.mz-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--mz-bg); }
.mz-hero-photo { position: absolute; inset: 0 0 auto 0; z-index: -2; width: 100%; height: 58svh; object-fit: cover; }
.mz-hero::after {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 58svh; z-index: -1;
    background: linear-gradient(180deg, rgba(12, 15, 20, 0.1) 0%, rgba(12, 15, 20, 0.55) 55%, var(--mz-bg) 100%);
}
.mz-hero-body { padding-top: 30svh; padding-bottom: 2.5rem; display: grid; gap: 1.8rem; }
.mz-eyebrow { margin: 0 0 0.8rem; font-size: 1.52rem; font-weight: 600; color: #d5dce6; }
.mz-title { margin: 0; color: #fff; text-transform: uppercase; line-height: 0.95; overflow-wrap: anywhere; }
/* The title is the page's own, up to 50 characters: the shorter it is, the larger. */
.mz-title-xl { font-size: clamp(4.2rem, 6.4vw, 8.4rem); }
.mz-title-l { font-size: clamp(3.6rem, 5vw, 6rem); }
.mz-title-m { font-size: clamp(3rem, 3.9vw, 4.4rem); line-height: 1; }
.mz-lead { margin: 1.1rem 0 0; max-width: 40ch; font-size: 1.84rem; color: #d5dce6; }
.mz-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.mz-open { margin: 0.9rem 0 0; color: var(--mz-wa); font-weight: 600; }
.mz-open:empty { display: none; }
.mz-facts {
    list-style: none; margin: 1.8rem 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem;
}
.mz-facts li { padding: 0.85rem 1rem; border-radius: 12px; background: rgba(21, 26, 34, 0.78); border: 1px solid rgba(255, 255, 255, 0.08); backdrop-filter: blur(8px); }
.mz-facts b { display: block; font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 1.84rem; line-height: 1.15; color: #fff; }
.mz-facts span { font-size: 1.36rem; color: var(--mz-muted); }
.mz-facts a { display: block; margin: -0.85rem -1rem; padding: 0.85rem 1rem; border-radius: 12px; color: inherit; text-decoration: none; }
.mz-facts a span { color: var(--mz-accent); font-weight: 600; }
.mz-facts a:hover { background: rgba(255, 255, 255, 0.05); }
.mz-hero-review {
    margin: 0; padding: 1.3rem 1.4rem; border-radius: 16px; max-width: 26rem;
    background: rgba(21, 26, 34, 0.82); border: 1px solid rgba(255, 255, 255, 0.08); backdrop-filter: blur(8px);
}
.mz-hero-review blockquote { margin: 0; font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 2rem; line-height: 1.3; color: #fff; }
.mz-hero-review blockquote::before { content: '“'; color: var(--mz-accent); }
.mz-hero-review blockquote::after { content: '”'; color: var(--mz-accent); }
.mz-hero-review figcaption { margin-top: 0.6rem; font-size: 1.44rem; color: var(--mz-muted); }
.mz-hero-review figcaption::before { content: 'Avaliação de '; }
@media (min-width: 900px) {
    .mz-hero { min-height: min(78svh, 760px); display: flex; align-items: center; }
    .mz-hero-photo { height: 100%; }
    .mz-hero::after {
        height: 100%;
        background: linear-gradient(90deg, var(--mz-bg) 0%, rgba(12, 15, 20, 0.92) 30%, rgba(12, 15, 20, 0.35) 62%, rgba(12, 15, 20, 0.15) 100%),
                    linear-gradient(0deg, var(--mz-bg) 0%, transparent 25%);
    }
    .mz-hero-body { padding-top: 5rem; padding-bottom: 4rem; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: end; }
    .mz-hero-text { max-width: 640px; }
    .mz-facts { grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
    .mz-hero-review { justify-self: end; }
}

/* ===== Sections ===== */
.mz-section { padding: 5rem 0; }
@media (min-width: 900px) { .mz-section { padding: 6.5rem 0; } }
.mz-kicker { margin: 0 0 0.4rem; font-size: 1.28rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mz-accent); }
.mz-heading { margin: 0 0 2.2rem; font-size: clamp(3.4rem, 6vw, 6.4rem); line-height: 0.92; text-transform: uppercase; color: var(--mz-ink); }

/* ===== Services: a mosaic of tiles ===== */
.mz-mosaic { display: grid; gap: 0.75rem; }
.mz-tile {
    position: relative; overflow: hidden; display: flex; align-items: flex-end;
    min-height: 220px; padding: 1.5rem; border-radius: 18px;
    background: radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--mz-accent) 55%, transparent), transparent 55%),
                linear-gradient(160deg, #1b2230, var(--mz-panel));
}
.mz-tile-number {
    position: absolute; top: 1rem; right: 1.2rem;
    font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 4.5rem; font-weight: 700; line-height: 1;
    color: rgba(255, 255, 255, 0.12);
}
.mz-tile-body { position: relative; }
.mz-tile h3 { margin: 0 0 0.5rem; padding-right: 5.6rem; font-size: clamp(2.4rem, 2.6vw, 3.2rem); line-height: 1.05; color: #fff; }
.mz-tile p { margin: 0; max-width: 46ch; font-size: 1.6rem; color: #c6cfdb; }
.mz-price { display: inline-block; margin-top: 0.9rem; padding: 0.3rem 0.7rem; border-radius: 8px; background: var(--mz-accent); color: #fff; font-weight: 700; font-size: 1.44rem; }
@media (min-width: 900px) {
    /* Tiles of one size while the services have no photo of their own: a
       large tile with nothing in it reads as a hole, not as a feature. */
    .mz-mosaic { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .mz-tile { min-height: 240px; }
}

/* A service with its photo: the photo fills the tile, darkened under the text. */
.mz .mz-tile-photo { background: var(--mz-panel); isolation: isolate; }
.mz-tile-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.mz-tile-photo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(5, 8, 12, 0.92)); }
/* The dark follows the text: it rises as high as the description does and no
   higher, so a short one leaves the photo seen and a long one still reads. */
.mz-tile-photo .mz-tile-body::before {
    content: ''; position: absolute; z-index: -1; inset: -7rem -1.5rem -1.5rem;
    background: linear-gradient(180deg, transparent, rgba(5, 8, 12, 0.55) 7rem);
}
.mz-tile-photo h3, .mz-tile-photo p { text-shadow: 0 0 2px rgba(0,0,0,.9), 0 1px 3px rgba(0,0,0,.8), 0 0 8px rgba(0,0,0,.5); }
.mz-tile-photo p { color: #e4e9f0; }
.mz-tile-photo:hover .mz-tile-image { transform: scale(1.04); }
.mz-tile-photo .mz-tile-number { color: rgba(255, 255, 255, 0.35); }
.mz-tile-photo { min-height: 300px; }
/* With photos the first service gets a tile of its own size: a mosaic. */
@media (min-width: 900px) {
    .mz-mosaic-photos { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(250px, auto); }
    .mz-mosaic-photos .mz-tile { grid-column: span 3; }
    .mz-mosaic-photos .mz-tile:first-child { grid-column: span 4; grid-row: span 2; }
    .mz-mosaic-photos .mz-tile:nth-child(2), .mz-mosaic-photos .mz-tile:nth-child(3) { grid-column: span 2; }
    .mz-mosaic-photos .mz-tile-store { grid-column: 1 / -1; min-height: 0; }
    /* A last tile alone on its row: the store sits beside it, or with no
       store it takes the row, rather than leaving half a row empty. */
    .mz-mosaic-photos .mz-tile-store.mz-tile-beside { grid-column: span 3; }
    .mz-mosaic-photos .mz-tile-wide { grid-column: 1 / -1; }
}

/* ===== The store, as one more tile among the services ===== */
.mz .mz-tile-store { background: linear-gradient(140deg, var(--mz-accent), color-mix(in srgb, var(--mz-accent) 45%, #0c0f14)); }
.mz-tile-store p { color: rgba(255, 255, 255, 0.88); margin-bottom: 1.1rem; }

/* ===== Reviews: one line that keeps moving ===== */
.mz-reviews { padding: 1.5rem 0 3rem; border-top: 1px solid var(--mz-line); border-bottom: 1px solid var(--mz-line); }
.mz-marquee { display: flex; overflow: hidden; }
.mz-track { display: flex; flex-shrink: 0; gap: 3rem; padding-right: 3rem; animation: mz-roll 50s linear infinite; }
.mz-review { margin: 0; display: flex; align-items: baseline; gap: 1rem; white-space: nowrap; }
.mz-review blockquote { margin: 0; font-family: 'Space Grotesk', system-ui, sans-serif; font-size: clamp(2.24rem, 3vw, 3.52rem); }
.mz-review blockquote::before { content: '“'; color: var(--mz-accent); }
.mz-review blockquote::after { content: '”'; color: var(--mz-accent); }
.mz-review figcaption { color: var(--mz-muted); font-size: 1.52rem; }
@keyframes mz-roll { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
    .mz-marquee { overflow-x: auto; }
    .mz-track { animation: none; }
    .mz-track[aria-hidden] { display: none; }
}

/* ===== Gallery ===== */
.mz-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 900px) { .mz-gallery { grid-template-columns: repeat(4, 1fr); gap: 1rem; } .mz-photo:first-child { grid-column: span 2; grid-row: span 2; } }
.mz-photo { margin: 0; position: relative; overflow: hidden; border-radius: 16px; }
.mz-photo img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.5s ease; }
.mz-photo-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.mz-photo-open:hover img { transform: scale(1.04); }
.mz-photo-open:focus-visible { outline: 3px solid var(--mz-accent); outline-offset: -3px; }
.mz-photo figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem 0.8rem;
    background: linear-gradient(180deg, transparent, rgba(5, 8, 12, 0.9)); font-weight: 600; font-size: 1.52rem;
}

/* ===== The photo opened over the page ===== */
.mz-viewer {
    width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0;
    background: rgba(5, 8, 12, 0.96); color: #fff;
}
.mz-viewer[open] { display: flex; flex-direction: column; }
.mz-viewer::backdrop { background: rgba(5, 8, 12, 0.9); }
.mz-viewer-figure {
    flex: 1; min-height: 0; margin: 0; padding: 1.6rem 1.6rem 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
}
.mz-viewer-image { max-width: 100%; min-height: 0; flex: 0 1 auto; max-height: 100%; object-fit: contain; border-radius: 12px; }
.mz-viewer-caption { max-width: 60ch; text-align: center; font-size: 1.6rem; color: #d5dce6; }
.mz-viewer-caption:empty { display: none; }
.mz-viewer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem; padding: 1.6rem; }
.mz-viewer-bar button {
    min-height: 4.8rem; padding: 1rem 1.8rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08); color: #fff; font: inherit; font-size: 1.6rem; font-weight: 700; cursor: pointer;
}
.mz-viewer-bar .mz-viewer-close { background: #fff; color: #0c0f14; }
.mz-viewer-count { min-width: 5ch; text-align: center; font-size: 1.5rem; color: #d5dce6; }

/* ===== About ===== */
.mz-about { padding-bottom: 3rem; }
.mz-about-inner { max-width: 860px; }
.mz-about-first { margin: 0; font-family: 'Space Grotesk', system-ui, sans-serif; font-size: clamp(2.16rem, 2.6vw, 3.2rem); line-height: 1.35; }
.mz-more { margin-top: 1.4rem; color: var(--mz-muted); }
.mz-more summary { cursor: pointer; font-weight: 700; color: var(--mz-accent); }
.mz-more p { margin: 1rem 0 0; font-size: 1.68rem; }

/* ===== Contact: a band of its own, the map beside it ===== */
.mz-contact { padding: 4rem 0; background: var(--mz-panel); }
.mz-contact-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .mz-contact-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; } }
.mz-contact h2 { margin: 0 0 1.2rem; font-size: clamp(3.2rem, 4vw, 4.8rem); text-transform: uppercase; }
.mz-contact-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.mz-details { margin: 1.8rem 0 0; display: grid; gap: 1.1rem; }
@media (min-width: 600px) { .mz-details { grid-template-columns: 1fr 1fr; } }
.mz-details dt { font-size: 1.25rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mz-muted); }
.mz-details dd { margin: 0.25rem 0 0; font-size: 1.68rem; }
.mz-block, .mz-note { display: block; }
.mz-note { font-size: 1.52rem; color: var(--mz-muted); }
.mz-chip { display: inline-block; margin: 0 0.4rem 0.4rem 0; padding: 0.25rem 0.7rem; border-radius: 999px; background: #1f2733; font-size: 1.47rem; }
.mz-inline { display: flex; flex-wrap: wrap; gap: 1rem; }
.mz-inline a { color: var(--mz-accent); font-weight: 700; text-decoration: none; }
/* The map loads only when asked; until then a drawing of streets with a pin,
   so the space reads as a map waiting, not as something that failed to load. */
.mz-map-placeholder {
    display: grid; place-items: center; align-content: center; gap: 1.2rem;
    width: 100%; aspect-ratio: 4 / 3; border-radius: 16px; border: 1px solid #2a3442; cursor: pointer;
    background:
        linear-gradient(28deg, transparent 47%, #2d3848 47%, #2d3848 51%, transparent 51%),
        repeating-linear-gradient(90deg, transparent 0 62px, #1f2834 62px 68px),
        repeating-linear-gradient(0deg, transparent 0 48px, #1f2834 48px 54px),
        #131a23;
    font: inherit;
}
.mz-map-placeholder::before {
    content: ''; width: 3.6rem; height: 3.6rem; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
    background: radial-gradient(circle, #fff 0 22%, var(--mz-accent) 24%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}
.mz-map-label {
    padding: 0.9rem 1.8rem; border-radius: 999px; background: #fff; color: #10151c;
    font-size: 1.6rem; font-weight: 700; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.mz-map-placeholder:hover .mz-map-label { background: var(--mz-accent); color: #fff; }
.mz-map-frame { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; }
.mz-map-frame iframe { width: 100%; height: 100%; border: 0; }
@media (min-width: 900px) { .mz-map-placeholder, .mz-map-frame { aspect-ratio: 16 / 9; } }
.mz-message { margin-top: 1.6rem; }
.mz-message h3 { margin: 0 0 0.4rem; font-size: 2.08rem; }
.mz-field { display: grid; gap: 0.3rem; margin: 0 0 0.9rem; font-weight: 600; }
.mz-field input, .mz-field textarea { width: 100%; padding: 0.75rem 0.9rem; border: 1px solid #3a4554; border-radius: 10px; background: #0f141b; color: var(--mz-ink); font: inherit; }
.mz-error { color: #ff8a80; }

/* ===== Articles ===== */
.mz-articles { display: grid; gap: 1rem; }
@media (min-width: 760px) { .mz-articles { grid-template-columns: repeat(3, 1fr); } }
.mz-article { display: flex; flex-direction: column; gap: 0.5rem; padding-bottom: 1.1rem; border-radius: 16px; overflow: hidden; background: var(--mz-panel); text-decoration: none; }
.mz-article img { width: 100%; height: auto; aspect-ratio: 392 / 204; object-fit: cover; }
.mz-article h3, .mz-article p { margin: 0; padding: 0 1.1rem; }
.mz-article h3 { font-size: 1.92rem; line-height: 1.25; }
.mz-article p { color: var(--mz-muted); font-size: 1.57rem; }

/* ===== Closing call ===== */
.mz-closing {
    padding: 6rem 0; text-align: center;
    background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--mz-accent) 40%, transparent), transparent 62%);
}
.mz-closing-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.mz .mz-sticky-website, .mz .mz-sticky-directions, .mz .mz-sticky-message, .mz .mz-sticky-phone { background: var(--mz-accent); color: #fff; }
.mz-closing h2 { max-width: 22ch; margin: 0 auto 1.8rem; font-size: clamp(3.2rem, 4.6vw, 5.76rem); line-height: 1.02; color: #fff; }
.mz-partner { margin-top: 0; margin-bottom: 0; padding-top: 1.5rem; padding-bottom: 1.5rem; text-align: center; font-size: 1.44rem; color: var(--mz-muted); }
.mz-partner a { color: var(--mz-accent); }

/* ===== WhatsApp at hand on a phone, while no other WhatsApp button shows ===== */
.mz .mz-sticky {
    position: fixed; left: 1rem; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 50;
    display: flex; align-items: center; justify-content: center; min-height: 5.2rem; border-radius: 14px;
    background: var(--mz-wa); color: #04150b; font-size: 1.76rem; font-weight: 800; text-decoration: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.mz .mz-sticky[hidden] { display: none; }
@media (min-width: 900px) { .mz .mz-sticky { display: none; } }

/* ===== Reveal on scroll (business_page.js adds .visible) ===== */
.mz .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.mz .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .mz .reveal { opacity: 1; transform: none; transition: none; }
    .mz-btn, .mz-photo img { transition: none; }
}

/* "Ver serviços" glides to the services rather than jumping. */
@media (prefers-reduced-motion: no-preference) { html:has(.mz) { scroll-behavior: smooth; } }
