/*
 * Tema Institucional 2.0 — corporativo moderno.
 * Para escritórios, clínicas, indústria, engenharia e serviços profissionais.
 *
 * Tipografia: Instrument Sans nos títulos (seminegrito, espaçamento justo) e Public Sans no texto.
 * Superfícies: branco e cinza-claro em painéis de cantos amplos; a cor da marca aparece em
 * botões, ícones e no painel escuro de números. Fotos sempre com cantos arredondados.
 * Movimento: uma entrada na abertura e estados de passar o mouse; nada se mexe sozinho além do carrossel.
 */
:root {
    --font-display: "Instrument Sans", "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --paper: #ffffff;
    --surface: #f4f5f7;
    --line: #e4e7ec;
    --muted: #5a6472;
    --wrap: 1240px;
    --space: clamp(56px, 6.5vw, 100px);
}
body { font-size: 1.0625rem; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.02em; font-stretch: 100%; }

/* ---------- Cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -12px rgba(16, 24, 40, .14); }
.header-row { min-height: 76px; gap: 20px; }
.brand-name { font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.main-nav { margin-left: auto; margin-right: auto; }
.nav-list { gap: 2px; }
.nav-link { min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: .95rem; font-weight: 500; color: #2c3440; transition: background-color .2s, color .2s; }
.nav-link:hover { background: var(--surface); color: var(--ink); }
.nav-link[aria-current="page"], .nav-toggle[data-current] { background: var(--tint); color: var(--brand-deep); }
.nav-sub { border-radius: 16px; padding: 8px; border-color: var(--line); box-shadow: var(--shadow-lg); }
.nav-sub a { border-radius: 10px; font-size: .95rem; }
.cart-button { min-height: 42px; border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; box-shadow: var(--shadow-sm); }
.cart-button:hover { border-color: #c9cfd8; }
.header-cta { border-radius: 999px; white-space: nowrap; }
@media (max-width: 1180px) { .header-cta { display: none; } }
@media (min-width: 981px) and (max-width: 1120px) { .nav-link { padding: 0 10px; } }
@media (max-width: 980px) {
    .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
    .nav-link { border-radius: 0; }
    .nav-link[aria-current="page"] { background: none; color: var(--brand); }
}

/* ---------- Abertura: foto emoldurada ---------- */
.hero { padding: 0 clamp(8px, 1.2vw, 16px); }
.hero-frame { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: #0e131a; isolation: isolate; }
.hero-photo .hero-slide { position: relative; min-height: clamp(600px, 88vh, 860px); display: grid; align-items: end; }
.hero-photo .hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-photo .hero-image { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 9s linear; }
.hero-photo .hero-slide.is-active .hero-image { transform: scale(1); }
.hero-photo .hero-bg::after { content: ""; position: absolute; inset: 0; background:
    linear-gradient(180deg, rgba(8, 11, 16, .35) 0%, rgba(8, 11, 16, 0) 30%),
    linear-gradient(90deg, rgba(8, 11, 16, .78) 0%, rgba(8, 11, 16, .42) 48%, rgba(8, 11, 16, .05) 85%),
    linear-gradient(0deg, rgba(8, 11, 16, .7) 0%, rgba(8, 11, 16, 0) 45%); }
.hero-content { position: relative; z-index: 2; padding-block: 140px 220px; }
.hero-title { margin: 0; max-width: 14ch; color: #fff; font-size: clamp(2.8rem, 6.4vw, 5.6rem); line-height: .98; font-weight: 600; letter-spacing: -.045em; }
.hero-text { max-width: 46ch; margin: 24px 0 0; color: rgba(255, 255, 255, .82); font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-actions .btn { border-radius: 999px; }
.hero-actions .btn-primary { background: #fff; color: var(--ink); box-shadow: none; }
.hero-actions .btn-primary:hover { background: var(--tint); color: var(--ink); }
.hero-plain .hero-frame { background: var(--brand-deep); }
.hero-plain .hero-content { padding-block: clamp(96px, 12vw, 160px); }
.slider-controls { position: absolute; z-index: 3; right: clamp(20px, 3vw, 40px); top: clamp(20px, 3vw, 36px); display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; }
.slider-dots { display: flex; gap: 6px; padding: 0 8px; }
.slider-dots button { width: 22px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .35); cursor: pointer; transition: width .3s var(--ease), background-color .3s; }
.slider-dots button[aria-current="true"] { width: 36px; background: #fff; }
.slider-controls .icon-button { width: 36px; height: 36px; }
.slider-controls .icon-button:hover { background: rgba(255, 255, 255, .16); }
.slider-pause { padding: 0 12px 0 6px; border: 0; background: none; color: rgba(255, 255, 255, .85); font-size: .85rem; cursor: pointer; }
@media (max-width: 760px) {
    .hero-photo .hero-slide { min-height: 640px; }
    .hero-content { padding-block: 120px 56px; }
    .slider-controls { left: 50%; right: auto; translate: -50% 0; top: 16px; }
}

/* Diferenciais em vidro fosco sobre a base da foto */
.section-highlights { position: relative; z-index: 3; }
.highlights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.highlights li { display: flex; gap: 14px; align-items: flex-start; padding: 22px 22px 24px; border-radius: 18px; }
.highlight-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); color: #fff; }
.highlight-icon .icon { width: 17px; height: 17px; stroke-width: 2.5; }
.highlight-text { display: grid; gap: 4px; }
.highlight-text strong { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.highlight-text span { font-size: .9rem; line-height: 1.45; }
@media (min-width: 1001px) {
    .hero-photo + .section-highlights { margin-top: -152px; margin-bottom: 0; }
    .hero-photo + .section-highlights .wrap { padding: 0 clamp(8px, 1.2vw, 16px); }
    .hero-photo + .section-highlights li { min-height: 116px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); color: #fff; }
    .hero-photo + .section-highlights .highlight-text span { color: rgba(255, 255, 255, .75); }
    .hero-photo + .section-highlights + .section { padding-top: calc(var(--space) + 36px); }
}
@media (max-width: 1000px) {
    .section-highlights { padding-top: 16px; }
    .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .highlights li { background: var(--surface); }
    .highlight-text span { color: var(--muted); }
}
@media (max-width: 560px) { .highlights { grid-template-columns: 1fr; } }

/* ---------- Seções ---------- */
.section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.section-title { font-size: clamp(2rem, 3.8vw, 3.1rem); font-weight: 600; color: var(--ink); }
.section-text { font-size: 1.12rem; }

/* Serviços: foto, título, texto e seta */
.grid-service { gap: clamp(20px, 2.4vw, 32px) clamp(16px, 2vw, 28px); }
.card-service { gap: 0; }
.card-service.has-media .card-media { aspect-ratio: 4 / 3; }
.card-service .card-body { padding-top: 20px; gap: 8px; }
.card-service .card-title { font-size: 1.35rem; font-weight: 600; }
.card-service .card-text { font-size: 1rem; line-height: 1.6; }
.card-service:not(.has-media) { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); transition: box-shadow .3s, transform .3s var(--ease); }
.card-service:not(.has-media):hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px; border-radius: 14px; background: var(--tint); color: var(--brand); }
.card-icon .icon { width: 26px; height: 26px; }

/* Números: painel escuro arredondado */
.section-numbers { padding-block: 0; }
.section-numbers > .wrap { position: relative; isolation: isolate; overflow: hidden; padding: clamp(40px, 5vw, 72px) clamp(28px, 5vw, 72px); border-radius: var(--radius-lg); background: var(--ink); color: #fff; }
.section-numbers > .wrap::before { content: ""; position: absolute; z-index: -1; left: -15%; bottom: -80%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 70%, transparent), transparent); opacity: .7; }
.numbers-title { color: rgba(255, 255, 255, .7); font-weight: 500; font-size: 1rem; }
.section-numbers .numbers { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 24px 0; }
.section-numbers .number { padding: 0 clamp(16px, 2.5vw, 36px); border-left: 1px solid rgba(255, 255, 255, .14); }
.section-numbers .number:first-child { border-left: 0; padding-left: 0; }
.number-value { font-family: var(--font-display); font-size: clamp(2.8rem, 5.4vw, 4.4rem); font-weight: 600; letter-spacing: -.04em; color: #fff; }
.number-label { color: rgba(255, 255, 255, .68); font-size: .98rem; }
@media (max-width: 700px) { .section-numbers .number { border-left: 0; padding: 0; } }

/* Sobre */
.section-about { background: none; }
.about-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.about-media { position: relative; margin: 0; }
.about-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-lg); }
.lead-text { font-size: 1.22rem; line-height: 1.65; color: #38414d; margin: 20px 0 32px; }
.about-text .btn { border-radius: 999px; }
@media (max-width: 860px) { .about-layout { grid-template-columns: 1fr; } }

/* Produtos */
.section-products { background: var(--surface); margin-inline: clamp(8px, 1.2vw, 16px); border-radius: var(--radius-lg); }
.grid-product { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.card-product { padding: 10px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); transition: box-shadow .3s, transform .3s var(--ease), border-color .3s; }
.card-product:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.card-product .card-media { aspect-ratio: 1 / 1; border-radius: 14px; background: var(--surface); }
.card-product .card-body { padding: 14px 8px 8px; gap: 6px; }
.card-product .card-kicker { font-size: .8rem; font-weight: 600; color: var(--muted); }
.card-product .card-title { font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; letter-spacing: -.005em; }
.card-product .card-price { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.card-product .card-price small { font-family: var(--font-body); font-size: .8rem; }
.card-product .card-add { align-self: stretch; margin-top: 10px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.card-product .card-add:hover, .card-product .card-add.is-added { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.related, .detail .section-products { background: var(--surface); }

/* Etapas: cartões numerados (sequência real) */
.section-steps { background: none; }
.steps { gap: 14px; counter-reset: none; }
.step { position: relative; padding: 28px 26px 30px; border-radius: 20px; background: var(--surface); }
.step-number { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px; border-radius: 12px; background: var(--paper); color: var(--brand); font-family: var(--font-display); font-weight: 600; font-size: 1rem; box-shadow: var(--shadow-sm); }
.step-title { font-size: 1.3rem; }
.step-text { font-size: 1rem; }

/* Galeria da home: mosaico */
.card-photo .card-caption strong { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink); letter-spacing: -.01em; }
@media (min-width: 900px) {
    .section-photos .grid-photo { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 260px; gap: 14px; }
    .section-photos .card-photo { position: relative; overflow: hidden; display: block; height: 100%; border-radius: 20px; }
    .section-photos .card-photo .card-media { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; border-radius: 0; }
    .section-photos .card-photo .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
    .section-photos .card-photo:hover .card-media img { transform: scale(1.05); }
    .section-photos .card-photo .card-caption { position: absolute; inset: auto 0 0 0; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 56px 24px 20px; margin: 0; background: linear-gradient(0deg, rgba(8, 11, 16, .72), rgba(8, 11, 16, 0)); }
    .section-photos .card-photo .card-caption strong { color: #fff; }
    .section-photos .card-photo .card-caption small { color: rgba(255, 255, 255, .78); }
    .section-photos .grid-photo > :first-child { grid-column: span 2; grid-row: span 2; }
    .section-photos .grid-photo > :first-child .card-caption strong { font-size: 1.6rem; }
    .section-photos .grid-photo > :nth-child(2) { grid-column: span 2; }
    .section-photos .grid-photo > :first-child:nth-last-child(3) ~ :last-child { grid-column: span 2; }
    .section-photos .grid-photo > :first-child:nth-last-child(2) ~ * { grid-row: span 2; }
}

/* Depoimentos */
.section-testimonials { background: var(--surface); margin-inline: clamp(8px, 1.2vw, 16px); border-radius: var(--radius-lg); }
.testimonial { gap: 22px; padding: clamp(26px, 3vw, 36px); border: 0; border-radius: 20px; background: var(--paper); box-shadow: var(--shadow-sm); }
.testimonial blockquote p { font-size: 1.1rem; line-height: 1.65; color: #26303c; }
.stars { color: #f2a93b; letter-spacing: 3px; }
.testimonial-initials { background: var(--brand); color: var(--on-brand); font-size: .95rem; }
.testimonial figcaption strong { font-weight: 600; }

/* Parceiros: faixa de logotipos sem caixas */
.section-partners { padding-block: clamp(56px, 7vw, 96px); }
.section-partners .section-head { justify-content: center; text-align: center; margin-bottom: 28px; }
.section-partners .section-title { font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.partners { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px 40px; }
.section-partners .partner { height: 72px; padding: 0; background: none; }
.section-partners .partner img { max-height: 46px; opacity: .55; }
.section-partners .partner:hover img { opacity: 1; }

/* Blog */
.card-post .card-media { aspect-ratio: 16 / 10; }
.card-post .card-body { padding-top: 18px; }
.card-post .card-kicker { font-size: .85rem; }
.card-post .card-title { font-size: 1.3rem; }

/* Perguntas */
.faq-item summary { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; }

/* Chamada final: painel com foto */
.section-cta { padding-block: 0; }
.section-cta > .cta-layout { position: relative; }
.section-cta { margin-inline: clamp(8px, 1.2vw, 16px); border-radius: var(--radius-lg); overflow: hidden; background: var(--brand-deep); color: #fff; padding-block: clamp(72px, 9vw, 128px); }
.cta-layout { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.cta-title { margin: 0; max-width: 18ch; color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.02; letter-spacing: -.04em; }
.cta-text { margin: 16px 0 0; max-width: 52ch; color: rgba(255, 255, 255, .8); font-size: 1.12rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-actions .btn { border-radius: 999px; min-height: 54px; padding-inline: 1.6em; }
.cta-bg::after { background: linear-gradient(90deg, rgba(8, 11, 16, .8), rgba(8, 11, 16, .35)); }

/* Contato */
.section-contact { background: none; }
.contact-form-box { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.contact-info .icon { padding: 9px; width: 40px; height: 40px; margin-top: 0; border-radius: 12px; background: var(--tint); color: var(--brand); }
.contact-info li { align-items: center; }

/* Páginas internas */
.page-title { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 600; color: var(--ink); }
.page-intro { font-size: 1.18rem; }
.product-top { padding-top: clamp(24px, 3vw, 40px); }
.product-title { font-weight: 600; letter-spacing: -.03em; }
.product-price strong { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; }
.buy-box { background: var(--surface); border: 0; }

/* ---------- Rodapé ---------- */
.site-footer { margin: clamp(48px, 7vw, 96px) clamp(8px, 1.2vw, 16px) clamp(8px, 1.2vw, 16px); padding-top: clamp(56px, 7vw, 88px); border-radius: var(--radius-lg); background: var(--ink); color: rgba(255, 255, 255, .72); font-size: .95rem; }
.prefooter + .site-footer { margin-top: clamp(8px, 1.2vw, 16px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; }
.footer-name { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; color: #fff; margin-bottom: 16px; }
.footer-name .brand-mark { background: #fff; color: var(--ink); }
.footer-text { max-width: 38ch; line-height: 1.65; }
.footer-heading { font-family: var(--font-body); font-size: .9rem; font-weight: 600; color: #fff; margin-bottom: 18px; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-menu, .site-footer .socials { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.site-footer .socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.site-footer .socials a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; font-size: .88rem; }
.site-footer .socials a:hover { background: rgba(255, 255, 255, .08); }
.site-footer .contact-info { margin: 0; gap: 14px; }
.site-footer .contact-info .icon { padding: 0; width: 20px; height: 20px; background: none; color: rgba(255, 255, 255, .5); }
.site-footer .contact-info li { align-items: flex-start; }
.site-footer .contact-info strong { color: rgba(255, 255, 255, .5); font-weight: 500; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; color: rgba(255, 255, 255, .5); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }
/* Convite antes do rodapé: painel claro, para não emendar dois blocos escuros */
.prefooter { padding-top: clamp(24px, 4vw, 56px); }
.prefooter .wrap { width: auto; margin-inline: clamp(8px, 1.2vw, 16px); }
.prefooter-panel { background: var(--tint); color: var(--ink); padding-inline: max(clamp(28px, 5vw, 64px), calc((100% - var(--wrap)) / 2)); }
.prefooter-panel::before { background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 22%, transparent), transparent); }
.prefooter-title { color: var(--ink); font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.prefooter-text { color: var(--muted); font-size: 1.1rem; }
.prefooter-actions .btn { border-radius: 999px; }
.site-footer { margin-top: clamp(8px, 1.2vw, 16px); }
.footer-menu { grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 40px; }
.section-contact { padding-bottom: clamp(56px, 6vw, 88px); }
@media (max-width: 760px) {
    .hero-photo .hero-bg::after { background: linear-gradient(0deg, rgba(8, 11, 16, .88) 0%, rgba(8, 11, 16, .55) 55%, rgba(8, 11, 16, .25) 100%); }
    .hero-actions .btn { width: 100%; }
}
