/*
 * Tema Contemporâneo — impacto com tipografia grande e movimento com propósito.
 * Bricolage Grotesque nos títulos, Instrument Sans no texto.
 * O momento marcante: a "janela" da abertura que se abre conforme a página rola.
 * Movimento: View Transitions entre páginas + animações guiadas pela rolagem (CSS nativo).
 * Tudo é desligado com "reduzir movimento" no aparelho ou "Efeitos: desligados" no painel.
 */
@view-transition { navigation: auto; }

:root {
    --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
    --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --paper: #ffffff;
    --surface: #f1f2f4;
    --line: #e1e3e8;
    --muted: #5b6270;
    --radius: 999px;
    --radius-media: 28px;
    --radius-card: 28px;
    --wrap: 1320px;
    --space: clamp(80px, 11vw, 160px);
}
body { font-size: 1.0625rem; letter-spacing: -.003em; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.03em; font-optical-sizing: auto; }
.btn { font-weight: 600; letter-spacing: 0; }
.btn-ghost { border-color: color-mix(in srgb, var(--ink) 22%, transparent); }

/* Cabeçalho flutuante em cápsula */
.site-header { position: sticky; top: 12px; z-index: 40; padding-inline: clamp(10px, 2vw, 24px); }
.header-shell { max-width: var(--wrap); margin: 12px auto 0; padding: 8px 8px 8px 22px; border-radius: 999px; background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); transition: box-shadow .3s; }
.site-header.is-scrolled .header-shell { box-shadow: 0 10px 40px rgba(16, 20, 30, .1); }
.header-row { min-height: 56px; gap: 12px; }
.brand-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; }
.brand-logo { max-height: 40px; }
.nav-link { font-weight: 500; border-radius: 999px; padding: 0 14px; }
.nav-link:hover { background: var(--surface); }
.nav-link[aria-current="page"], .nav-toggle[data-current] { background: var(--ink); color: #fff; }
.nav-sub { border-radius: 20px; padding: 10px; }
.cart-button { background: var(--brand); color: var(--on-brand); border-color: transparent; padding-inline: 18px 8px; }
.cart-button .cart-count { background: var(--on-brand); color: var(--brand); }
@media (max-width: 980px) { .header-shell { padding-left: 16px; } .main-nav { border-radius: 28px 0 0 28px; } }

/* Abertura */
.hero { padding-top: clamp(48px, 7vw, 96px); overflow: clip; }
.hero-title { font-size: clamp(3rem, 8.6vw, 8.6rem); line-height: .92; letter-spacing: -.045em; font-weight: 800; max-width: 14ch; margin: 0; }
.hero-bar { display: flex; justify-content: space-between; align-items: end; gap: 28px 48px; flex-wrap: wrap; margin-top: clamp(28px, 4vw, 48px); }
.hero-text { max-width: 46ch; margin: 0; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-window { margin: clamp(36px, 5vw, 64px) auto 0; width: min(100% - 2 * var(--gutter), var(--wrap)); border-radius: var(--radius-media); overflow: hidden; aspect-ratio: 21 / 9; background: var(--surface); }
.hero-image { width: 100%; height: 100%; object-fit: cover; }
.slider-controls { display: flex; align-items: center; gap: 8px; padding-top: 18px; }
.slider-dots { display: flex; gap: 6px; margin-right: auto; }
.slider-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--ink) 20%, transparent); cursor: pointer; transition: width .3s var(--ease); }
.slider-dots button[aria-current="true"] { width: 32px; border-radius: 99px; background: var(--ink); }
.slider-pause { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; }
.hero-slide:not([hidden]) .hero-title, .hero-slide:not([hidden]) .hero-window { animation: hero-in .9s var(--ease) both; }
.hero-slide:not([hidden]) .hero-window { animation-delay: .1s; }
@keyframes hero-in { from { opacity: 0; translate: 0 24px; } }
@media (max-width: 700px) { .hero-window { aspect-ratio: 4 / 3; } }

/* Diferenciais: bloco de cor */
.section-highlights { margin-top: var(--space); background: var(--brand); color: var(--on-brand); padding-block: clamp(56px, 7vw, 96px); }
.highlights-title { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; opacity: .8; margin-bottom: 28px; }
.highlights { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 36px 48px; }
.highlights li { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 1.5px solid color-mix(in srgb, var(--on-brand) 35%, transparent); }
.highlights strong { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1; letter-spacing: -.035em; font-weight: 700; }
.highlights span { opacity: .85; }

/* Títulos de seção */
.section-title { font-size: clamp(2.4rem, 5.6vw, 5rem); line-height: .95; letter-spacing: -.045em; font-weight: 800; }
.section-text { font-size: 1.15rem; max-width: 52ch; }
.section-head .link-arrow { padding: 12px 20px; border-radius: 999px; background: var(--surface); color: var(--ink); }
.section-head .link-arrow:hover { background: var(--ink); color: #fff; }

/* Serviços: lista editorial */
.grid-service { display: block; border-top: 1.5px solid var(--ink); }
.card-service { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; padding: clamp(22px, 3vw, 34px) 8px; border-bottom: 1px solid var(--line); transition: background-color .3s, padding .3s var(--ease); }
.card-service:hover { background: var(--tint); padding-inline: 24px; }
.card-service .card-title { font-size: clamp(1.5rem, 2.8vw, 2.4rem); letter-spacing: -.035em; }
.card-service .card-text { margin: 0; }
.card-arrow { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--ink); transition: background-color .3s, color .3s, rotate .3s var(--ease); }
.card-service:hover .card-arrow { background: var(--ink); color: #fff; rotate: -45deg; }
@media (max-width: 760px) { .card-service { grid-template-columns: 1fr auto; } .card-service .card-text { grid-column: 1 / -1; grid-row: 2; } .card-arrow { width: 44px; height: 44px; } }

/* Sobre */
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-media { margin: 0; border-radius: var(--radius-media); overflow: hidden; }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.lead-text { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.2; letter-spacing: -.025em; font-weight: 500; margin: 24px 0 32px; }
@media (max-width: 860px) { .about-layout { grid-template-columns: 1fr; } .about-media img { aspect-ratio: 4 / 3; } }

/* Produtos */
.grid-product { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(16px, 2vw, 28px) clamp(16px, 2vw, 24px); }
.card-visual { position: relative; }
.card-product .card-media { border-radius: var(--radius-card); aspect-ratio: 1 / 1; background: var(--surface); }
.card-product .card-add { position: absolute; right: 14px; bottom: 14px; z-index: 2; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); box-shadow: 0 8px 24px rgba(16, 20, 30, .16); cursor: pointer; transition: background-color .25s, color .25s, scale .25s var(--ease); }
.card-product .card-add:hover { background: var(--brand); color: var(--on-brand); scale: 1.08; }
.card-product .card-add.is-added { background: var(--brand); color: var(--on-brand); }
.card-product .card-add .icon { width: 22px; height: 22px; }
.card-product .card-add::after { content: none; }
.card-product .card-body { padding: 16px 6px 0; gap: 4px; }
.card-product .card-title { font-family: var(--font-body); font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; }
.card-product .card-price { font-weight: 600; }

/* Fotos: trilho horizontal */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 38vw, 520px); gap: clamp(14px, 2vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(var(--gutter), (100% - var(--wrap)) / 2) 24px; scrollbar-width: thin; }
.rail .card-photo { scroll-snap-align: start; }
.card-photo .card-media { border-radius: var(--radius-card); aspect-ratio: 4 / 5; }
.card-photo .card-caption strong { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -.02em; color: var(--ink); }
.album a, .album img { border-radius: 20px; }

/* Vídeos e blog */
.card-video .card-media, .card-post .card-media { border-radius: var(--radius-card); }
.card-video .card-caption strong { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -.02em; color: var(--ink); }
.grid-video { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.card-post .card-title { font-size: 1.5rem; letter-spacing: -.03em; }
.video-frame { border-radius: var(--radius-media); }

/* Parceiros: faixa contínua */
.section-partners { padding-block: clamp(48px, 6vw, 88px); border-block: 1px solid var(--line); }
.partners-title { color: var(--muted); margin-bottom: 22px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; gap: clamp(28px, 4vw, 64px); padding-right: clamp(28px, 4vw, 64px); }
.marquee .partner { height: 72px; padding: 0; background: none; }
.marquee .partner img { max-height: 46px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; } .marquee-group[aria-hidden] { display: none; } .marquee { mask-image: none; } }
.effects-off .marquee-group[aria-hidden] { display: none; }
.effects-off .marquee-track { flex-wrap: wrap; width: auto; }

/* Downloads */
.download-list { border-top: 1.5px solid var(--ink); }
.download-info strong { font-size: 1.1rem; }

/* Chamada para ação */
.section-cta { padding-block: 0; }
.cta-layout { display: grid; gap: 32px; padding: clamp(40px, 7vw, 96px); border-radius: clamp(28px, 4vw, 48px); background: var(--brand-deep); color: #fff; }
.cta-title { font-size: clamp(2.6rem, 6.4vw, 6rem); line-height: .95; letter-spacing: -.045em; max-width: 16ch; margin: 0; color: #fff; }
.cta-text { margin: 18px 0 0; max-width: 52ch; color: rgba(255, 255, 255, .8); font-size: 1.15rem; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.section-cta + .section-contact { padding-top: var(--space); }

/* Contato */
.contact-form-box { padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-card); background: var(--surface); }
.form-field input, .form-field select, .form-field textarea, .search-form input { border-radius: 16px; border-color: transparent; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.page-contact .contact-form-box, .quote-form { background: var(--surface); border-radius: var(--radius-card); padding: clamp(24px, 4vw, 40px); }

/* Páginas internas */
.page-hero { padding-top: clamp(56px, 8vw, 112px); }
.page-title { font-size: clamp(2.8rem, 7vw, 6.4rem); line-height: .95; letter-spacing: -.045em; font-weight: 800; max-width: 18ch; }
.page-intro { font-size: 1.25rem; }
.filters a { border-color: transparent; background: var(--surface); }
.filters a[aria-current="page"] { background: var(--ink); }
.product-stage { border-radius: var(--radius-media); }
.product-thumbs button { border-radius: 14px; }
.product-title { font-size: clamp(2.2rem, 4.4vw, 3.6rem); letter-spacing: -.04em; line-height: 1; font-weight: 800; }
.product-price strong { font-family: var(--font-display); font-size: 2rem; letter-spacing: -.03em; }
.buy-box { border: 0; border-radius: var(--radius-card); background: var(--surface); padding: 22px; }
.stepper { background: #fff; border-color: transparent; }
.article-figure { border-radius: var(--radius-media); }
.callout { border-radius: var(--radius-card); }
.prose h2 { letter-spacing: -.03em; }
.cart-panel { border-radius: 28px 0 0 28px; }
.cart-thumb { border-radius: 14px; }
.consent { border-radius: 24px; }
.notfound-code { -webkit-text-stroke: 0; color: var(--brand); letter-spacing: -.06em; font-weight: 800; }

/* Rodapé com assinatura gigante */
.site-footer { margin-top: var(--space); background: var(--ink); color: rgba(255, 255, 255, .8); padding-top: clamp(56px, 8vw, 112px); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; }
.footer-kicker { color: rgba(255, 255, 255, .6); margin-bottom: 10px; }
.footer-mail { display: inline-block; font-family: var(--font-display); font-size: clamp(1.6rem, 3.6vw, 3rem); letter-spacing: -.035em; line-height: 1.05; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.footer-mail:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.footer-phone { font-size: 1.3rem; color: #fff; margin-top: 10px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer-heading { font-family: var(--font-body); font-size: .95rem; font-weight: 600; letter-spacing: 0; color: rgba(255, 255, 255, .6); margin-bottom: 14px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-menu, .site-footer .socials { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-address { margin: 16px 0 0; font-size: .95rem; }
.footer-wordmark { margin: clamp(48px, 7vw, 96px) 0 0; padding-inline: var(--gutter); font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 12.5vw, 15rem); line-height: .8; letter-spacing: -.06em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 22px 28px; font-size: .875rem; color: rgba(255, 255, 255, .6); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Movimento guiado pela rolagem (CSS nativo, sem JavaScript) ---------- */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        /* A janela da abertura se abre de "recortada" para largura total */
        .effects-full .hero-window, .effects-subtle .hero-window {
            animation: window-open linear both;
            animation-timeline: view();
            animation-range: entry 40% cover 50%;
        }
        @keyframes window-open {
            from { clip-path: inset(0 calc(var(--motion) * 9%) round var(--radius-media)); scale: calc(1 - var(--motion) * .04); }
            to { clip-path: inset(0 0 round var(--radius-media)); scale: 1; }
        }
        .effects-full .hero-image { animation: parallax linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
        @keyframes parallax { from { translate: 0 -6%; scale: 1.12; } to { translate: 0 6%; scale: 1.12; } }

        /* Revelação discreta dos blocos */
        .effects-full .reveal, .effects-subtle .reveal,
        .effects-full .section-head, .effects-subtle .section-head,
        .effects-full .about-layout > *, .effects-full .card-post, .effects-full .card-video, .effects-full .download {
            animation: rise linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 70%;
        }
        @keyframes rise { from { opacity: 0; translate: 0 calc(var(--motion) * 48px); } }

        /* A chamada final cresce ao entrar */
        .effects-full .cta-layout { animation: grow linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
        @keyframes grow { from { scale: .92; border-radius: 80px; } }
    }
}
/* Navegadores sem animação guiada pela rolagem usam a revelação por JavaScript */
.will-reveal { opacity: 0; translate: 0 24px; transition: opacity .7s var(--ease), translate .7s var(--ease); }
.will-reveal.is-visible { opacity: 1; translate: 0 0; }

/* ---------- Transições entre páginas (View Transitions) ---------- */
.vt-hero { view-transition-name: hero-media; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .42s var(--ease) both; }
::view-transition-group(hero-media) { animation-duration: .5s; animation-timing-function: var(--ease); }
@keyframes vt-out { to { opacity: 0; translate: 0 -12px; } }
@keyframes vt-in { from { opacity: 0; translate: 0 16px; } }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
.effects-off ::view-transition-group(*), .effects-off ::view-transition-old(*), .effects-off ::view-transition-new(*) { animation: none !important; }
.footer-wordmark.is-medium { font-size: clamp(2.4rem, 8.4vw, 10.5rem); }
.footer-wordmark.is-long { font-size: clamp(2rem, 5.6vw, 7rem); white-space: normal; }
/* No celular o cabeçalho é sólido: o desfoque criaria um contêiner que prende o menu lateral */
@media (max-width: 980px) {
    .header-shell { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
    .grid-product { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .card-product .card-add { width: 44px; height: 44px; right: 8px; bottom: 8px; }
    .card-product .card-title { font-size: 1rem; }
}

/* ===================== Contemporâneo 1.1: seções novas e efeitos com fotos ===================== */

/* Serviços: a foto surge ao lado do título ao passar o mouse (somente em telas com mouse) */
.card-service { position: relative; }
.row-media { display: none; }
@media (hover: hover) and (min-width: 1000px) {
    .row-media { display: block; position: absolute; z-index: 3; right: 120px; top: 50%; width: 260px; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; pointer-events: none; opacity: 0; translate: 0 -50%; scale: .7; rotate: -6deg; transition: opacity .35s var(--ease), scale .45s var(--ease), rotate .45s var(--ease); box-shadow: 0 24px 60px rgba(16, 20, 30, .25); }
    .row-media img { width: 100%; height: 100%; object-fit: cover; }
    .card-service:hover .row-media { opacity: 1; scale: 1; rotate: -3deg; }
}

/* Números gigantes */
.section-numbers { padding-block: clamp(64px, 9vw, 128px) 0; }
.numbers { gap: clamp(24px, 4vw, 56px); }
.number { border-top: 1.5px solid var(--ink); padding-top: 18px; }
.number-value { font-size: clamp(3.4rem, 7.4vw, 7rem); font-weight: 800; letter-spacing: -.05em; }
.number-label { color: var(--muted); font-size: 1.05rem; }

/* Etapas com números grandes */
.steps { gap: clamp(20px, 3vw, 36px); }
.step { padding: 28px; border-radius: var(--radius-card); background: var(--surface); transition: background-color .3s, color .3s, translate .3s var(--ease); }
.step:hover { background: var(--brand); color: var(--on-brand); translate: 0 -6px; }
.step:hover .step-text, .step:hover .step-number { color: inherit; }
.step-number { font-size: 3.4rem; line-height: 1; font-weight: 800; letter-spacing: -.05em; color: var(--brand); transition: color .3s; }
.step-title { font-size: 1.5rem; letter-spacing: -.03em; }

/* Depoimentos em citações grandes */
.testimonials { grid-auto-columns: minmax(320px, calc((100% - 24px) / 2)); }
.testimonial { border: 0; border-radius: var(--radius-card); background: var(--surface); padding: clamp(28px, 4vw, 48px); }
.testimonial blockquote p { font-family: var(--font-display); font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.25; letter-spacing: -.02em; font-weight: 500; }
.testimonial-initials { background: var(--brand); color: var(--on-brand); }
.stars { color: var(--brand); }

/* Perguntas frequentes */
.faq-item summary { font-family: var(--font-display); font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 600; letter-spacing: -.02em; padding-block: 26px; }
.faq-list { border-top-color: var(--ink); border-top-width: 1.5px; }

/* Chamada final com foto dentro do bloco arredondado */
.section-cta.has-image { overflow: visible; }
.section-cta.has-image .cta-bg { inset: 0 max(var(--gutter), (100% - var(--wrap)) / 2); border-radius: clamp(28px, 4vw, 48px); overflow: hidden; }
.section-cta.has-image .cta-layout { background: transparent; min-height: clamp(380px, 46vw, 560px); align-content: end; }
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .effects-full .section-cta.has-image .cta-image { animation: parallax linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    }
}

/* Abertura: a janela de foto ganha um leve escurecimento para o rodapé da imagem */
.hero-window { position: relative; }
.hero-stage .hero-slide { min-width: 0; }
.testimonials { grid-auto-columns: calc((100% - 24px) / 2); }
@media (max-width: 680px) { .testimonials { grid-auto-columns: 88%; } }
.rail { scroll-padding-inline: max(var(--gutter), (100% - var(--wrap)) / 2); }
.site-footer .footer-menu { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 40px; }
