:root {
    /* Grafite estrutura o site; azul Qualitec destaca ações e elementos da marca. */
    --primary: #182e87;
    --accent: #182e87;
    --accent-hover: #102269;
    --accent-light: #aebcff;
    --brand-blue: #182e87;
    --orange: #ff5c00;
    --orange-hover: #db4f00;
    /* Compatibilidade com as seções consolidadas da home e do contato. */
    --navy-950: #0b1748;
    --navy-900: #102269;
    --navy-850: #182e87;
    --navy-800: #263f9a;
    --navy-700: #4058a6;
    --red-600: #ff5c00;
    --red-700: #db4f00;
    --ink-900: #0b0d0f;
    --ink-700: #3f464d;
    --ink-600: #555e66;
    --line: #dfe5ea;
    --surface: #f5f5f5;
    --surface-2: #edf2f6;
    --white: #fff;
    --success: #177a4d;
    --shadow-sm: 0 10px 28px rgba(11, 13, 15, .08);
    --shadow-md: 0 20px 55px rgba(11, 13, 15, .13);
    --radius-sm: 10px;
    --radius-md: 17px;
    --radius-lg: 24px;
    --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink-900);
    background: var(--white);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.nav-open, body.modal-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
address { font-style: normal; }

.container { width: min(calc(100% - 36px), var(--container)); 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; top: -90px; left: 14px; z-index: 9999; padding: 10px 14px; color: #fff; background: var(--primary); border-radius: 8px; }
.skip-link:focus { top: 14px; }

h1, h2, h3 { margin: 0; color: var(--ink-900); font-weight: 750; line-height: 1.15; letter-spacing: -.035em; }
h1 { font-size: clamp(2rem, 8vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 6vw, 2.65rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px; color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 25px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--accent-light); }
.icon { width: 1.18rem; height: 1.18rem; flex: none; }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 20px; border: 1px solid transparent; border-radius: 10px; font-size: .93rem; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(255, 92, 0, .38); outline-offset: 3px; }
.button--primary { color: var(--white); background: var(--accent); box-shadow: 0 10px 25px rgba(0, 90, 156, .24);}
.button--primary:hover { background: var(--accent-hover);}
.button--orange { color: #fff; background: var(--orange); box-shadow: 0 10px 25px rgba(255,92,0,.22); }
.button--orange:hover { background: var(--orange-hover); }
.button--secondary { color: var(--primary); background: #fff; border-color: var(--line); }
.button--secondary:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.button--light { color: var(--primary); background: #fff; }
.button--light:hover { box-shadow: 0 14px 32px rgba(0,0,0,.14); }
.button--outline-light { color: #fff; background: transparent; border-color: rgba(255,255,255,.5); }
.button--outline-light:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.button--ghost { color: var(--ink-700); background: transparent; border-color: transparent; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--primary); font-weight: 750; text-decoration: none; }
.text-link:hover { color: var(--accent); }
.text-link .icon { transition: transform .18s ease; }
.text-link:hover .icon { transform: translateX(4px); }

.topbar { display: none; color: #dce5ee; background: var(--primary); font-size: .8rem; }
.topbar__inner { min-height: 37px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar__contacts { display: flex; align-items: center; gap: 20px; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .icon { width: 15px; height: 15px; }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(220,227,234,.92); backdrop-filter: blur(14px); }
.header__inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 164px; height: auto; }
.nav-toggle { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
.main-nav { position: fixed; inset: 70px 0 auto; max-height: calc(100vh - 70px); display: none; padding: 18px; overflow-y: auto; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
.main-nav.is-open { display: grid; }
.main-nav > a:not(.button) { padding: 13px 7px; color: var(--primary); border-bottom: 1px solid var(--line); font-weight: 680; text-decoration: none; }
.main-nav > a[aria-current="page"] { color: var(--accent); }
.nav__cta {
    margin-top: 12px;
    color: #fff;
    background: #25d366;
    border-color: #25d366;
    box-shadow: 0 8px 20px rgba(37, 211, 102, .24);
}
.nav__cta:hover {
    color: #fff;
    background: #20ba5a;
    border-color: #20ba5a;
    box-shadow: 0 10px 24px rgba(37, 211, 102, .3);
}
.nav__cta:focus-visible { outline-color: rgba(37, 211, 102, .45); }
.nav__cta .icon { width: 19px; height: 19px; flex: 0 0 19px; }
.nav__cta-text--desktop { display: none; }
.nav__cta-text--mobile { display: inline; }

.section { padding: 72px 0; }
.section--soft { background: var(--surface); }
.section-heading { margin-bottom: 34px; }
.section-heading h2 { max-width: 700px; }
.section-heading p { margin-top: 16px; color: var(--ink-600); }
.section-heading__aside .text-link { margin-top: 14px; }

/* CTA compartilhada das páginas de produtos, marcas, categorias e itens. */
.contact-cta { position: relative; overflow: hidden; padding: 72px 0; color: #fff; background: var(--primary); }
.contact-cta::after { position: absolute; right: -80px; bottom: -130px; width: 330px; height: 330px; content: ""; border: 42px solid rgba(255,255,255,.035); transform: rotate(45deg); }
.contact-cta__grid { position: relative; z-index: 1; display: grid; gap: 34px; align-items: center; }
.contact-cta h2 { max-width: 720px; color: #fff; font-size: clamp(1.65rem, 4.5vw, 2.35rem); }
.contact-cta__copy p { max-width: 660px; margin-top: 15px; color: rgba(255,255,255,.78); }
.contact-cta__cards { display: grid; gap: 11px; }
.contact-option { min-height: 78px; display: grid; grid-template-columns: 28px minmax(0,1fr) 20px; gap: 14px; align-items: center; padding: 14px 18px; color: var(--primary); background: #fff; border-radius: 12px; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.contact-option:hover, .contact-option:focus-visible { color: var(--primary); box-shadow: 0 12px 26px rgba(3,12,30,.2); transform: translateX(4px); }
.contact-option--whatsapp { color: #fff; background: var(--orange); }
.contact-option--whatsapp:hover, .contact-option--whatsapp:focus-visible { color: #fff; }
.contact-option > .icon { width: 25px; height: 25px; }
.contact-option > .icon:last-child { width: 18px; height: 18px; }
.contact-option span { display: grid; }
.contact-option small { opacity: .75; font-size: .72rem; }
.contact-option strong { font-size: .96rem; }

/* Biblioteca técnica: a capa ocupa toda a área superior do card. */
.catalogs .catalog-card .catalog-card__image { display: block; padding: 0; overflow: hidden; }
.catalogs .catalog-card .catalog-card__image img { width: 100%; height: auto; margin: 0; object-fit: cover; }

.site-footer { overflow: hidden; padding: 64px 0 0; color: var(--ink-700); background: #f5f5f5; border-top: 5px solid var(--primary); }
.footer__grid { display: grid; gap: 38px; padding-bottom: 42px; }
.footer__about img { width: 178px; height: auto; margin-bottom: 18px; }
.footer__about p { max-width: 350px; color: var(--ink-700); }
.footer__email { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--primary); text-decoration: none; }
.footer__title { margin-bottom: 15px; color: var(--primary); font-size: 1rem; letter-spacing: 0; }
.footer__links { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--ink-700); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer address { display: grid; gap: 8px; font-size: .91rem; }
.site-footer address p { color: var(--ink-700); }
.footer__bottom { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px 0 24px; color: #fff; background: var(--primary); font-size: .78rem; }
.footer__bottom::before { content: ""; position: absolute; top: 0; right: 100%; bottom: 0; width: 100vw; background: var(--primary); }
.footer__bottom::after { content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: 100vw; background: var(--primary); }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 14px; }
.footer__bottom a, .footer__settings { color: #fff; }
.footer__settings { display: inline-flex; align-items: center; gap: 6px; padding: 0; background: none; border: 0; cursor: pointer; }
.footer__settings .icon { width: 15px; height: 15px; }

.cookie-banner { position: fixed; right: 12px; bottom: 12px; left: 12px; z-index: 1600; display: grid; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 70px rgba(11,13,15,.18); }
.cookie-banner[hidden], .cookie-modal[hidden] { display: none !important; }
.cookie-banner__icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--accent); background: rgba(0,90,156,.12); border-radius: 11px; }
.cookie-banner__copy strong { color: var(--primary); }
.cookie-banner__copy p { margin-top: 4px; color: var(--ink-600); font-size: .88rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-banner__actions .button { min-height: 42px; padding-inline: 13px; font-size: .82rem; }
.cookie-modal { position: fixed; inset: 0; z-index: 1700; display: grid; place-items: end center; padding: 14px; }
.cookie-modal__backdrop { position: absolute; inset: 0; background: rgba(5,13,22,.62); }
.cookie-modal__dialog { position: relative; z-index: 1; width: min(100%, 580px); max-height: calc(100vh - 28px); padding: 26px; overflow-y: auto; background: #fff; border-radius: 20px; box-shadow: 0 35px 90px rgba(0,0,0,.28); }
.cookie-modal__dialog > p { margin: 12px 0 22px; color: var(--ink-600); }
.cookie-modal__close { position: absolute; top: 15px; right: 15px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.cookie-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 0; border-top: 1px solid var(--line); }
.cookie-option span { display: grid; }
.cookie-option small { margin-top: 3px; color: var(--ink-600); }
.cookie-option input { width: 20px; height: 20px; accent-color: var(--accent); }
.cookie-modal__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; padding-top: 20px; border-top: 1px solid var(--line); }

.legal-page { background: var(--surface); }
.legal-hero { padding: 54px 0 34px; background: #fff; border-bottom: 1px solid var(--line); }
.legal-hero h1 { font-size: clamp(2rem, 6vw, 3rem); }
.legal-content { padding: 52px 0 80px; }
.legal-card { max-width: 880px; padding: clamp(24px, 5vw, 48px); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.legal-card h2 { margin: 34px 0 12px; font-size: 1.45rem; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p, .legal-card li { color: var(--ink-700); }
.legal-card ul { padding-left: 22px; }
.legal-note { margin-bottom: 24px; padding: 14px 16px; color: #6c4c00; background: #fff6d9; border: 1px solid #f0da99; border-radius: 10px; }

@media (min-width: 720px) {
    .container { width: min(calc(100% - 48px), var(--container)); }
    .section { padding: 88px 0; }
    .footer__grid { grid-template-columns: 1.25fr 1fr 1fr; }
    .footer__grid > :last-child { grid-column: 2 / 4; }
    .footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }
    .cookie-banner { right: 24px; bottom: 24px; left: 24px; grid-template-columns: auto 1fr; align-items: center; padding: 20px; }
    .cookie-banner__actions { grid-column: 1 / -1; justify-content: flex-end; }
    .cookie-modal { place-items: center; }
}

@media (min-width: 960px) {
    .topbar { display: block; }
    .site-header { top: 0; }
    .header__inner { min-height: 78px; }
    .brand img { width: 185px; }
    .nav-toggle { display: none; }
    .main-nav { position: static; inset: auto; max-height: none; display: flex; align-items: center; gap: 25px; padding: 0; overflow: visible; background: transparent; border: 0; box-shadow: none; }
    .main-nav > a:not(.button) { position: relative; padding: 27px 0; border: 0; font-size: .92rem; }
    .main-nav > a:not(.button)::after { content: ""; position: absolute; right: 0; bottom: 20px; left: 0; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .18s ease; }
    .main-nav > a:hover::after, .main-nav > a[aria-current="page"]::after { transform: scaleX(1); }
    .nav__cta { min-height: 44px; margin: 0 0 0 2px; padding-inline: 16px; font-size: .86rem; white-space: nowrap; }
    .nav__cta-text--desktop { display: inline; }
    .nav__cta-text--mobile { display: none; }
    .section-heading--split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); align-items: end; gap: 70px; }
    .section-heading--split p { margin-top: 0; }
    .contact-cta__grid { grid-template-columns: minmax(0,1.1fr) minmax(360px,.9fr); gap: 70px; }
    .footer__grid { grid-template-columns: 1.35fr .75fr 1fr 1fr; gap: 46px; }
    .footer__grid > :last-child { grid-column: auto; }
    .cookie-banner { left: auto; width: min(700px, calc(100% - 48px)); grid-template-columns: auto 1fr auto; }
    .cookie-banner__actions { grid-column: auto; flex-wrap: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
