
/* ==========================================
   AB VIDROS — STYLES.CSS
   Site completo + consentimento de cookies
========================================== */

:root {
    --red: #d52b35;
    --red-dark: #b91f29;
    --black: #17191c;
    --dark: #202328;
    --gray: #777d85;
    --light: #f5f5f3;
    --white: #fff;
    --border: #e8e8e6;
    --radius: 18px;
    --container: 1180px;
    --shadow: 0 18px 55px rgba(0, 0, 0, .08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "DM Sans", sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body, button, a {
    -webkit-tap-highlight-color: transparent;
}

body, button, input, textarea, select {
    font-family: "DM Sans", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    width: 100%;
    object-fit: cover;
}

button {
    font: inherit;
}

button, a, input {
    touch-action: manipulation;
}

.container {
    width: min(var(--container), calc(100% - 44px));
    margin-inline: auto;
}

.section {
    padding: 100px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--red);
    flex-shrink: 0;
}

h1, h2, h3, .brand {
    font-family: "Manrope", sans-serif;
    line-height: 1.15;
}

h2 {
    font-size: clamp(30px, 4vw, 45px);
    font-weight: 800;
    letter-spacing: -1.8px;
}

.section-heading {
    max-width: 670px;
    margin-bottom: 45px;
}

.section-heading p {
    margin-top: 18px;
    color: var(--gray);
    max-width: 570px;
    font-size: 15px;
}

.btn {
    min-height: 52px;
    padding: 0 23px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 700;
    transition: background .25s, color .25s, transform .25s;
    cursor: pointer;
}

.btn-red {
    background: var(--red);
    color: white;
}

.btn-red:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(213, 43, 53, .2);
}

.btn-outline {
    border-color: rgba(255,255,255,.4);
    color: white;
    background: transparent;
}

.btn-outline:hover {
    background: white;
    color: var(--black);
}

.btn-dark {
    background: var(--black);
    color: white;
}

.btn-dark:hover {
    background: var(--red);
    transform: translateY(-2px);
}

.arrow {
    font-size: 17px;
    transition: transform .2s;
}

.btn:hover .arrow {
    transform: translateX(3px);
}

/* ==========================================
   HEADER E NAVEGAÇÃO
========================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.nav {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    position: relative;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -1px;
    white-space: nowrap;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: white;
    background: var(--red);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -1px;
    flex-shrink: 0;
}

.brand small {
    display: block;
    font-family: "DM Sans", sans-serif;
    color: var(--gray);
    font-size: 9px;
    letter-spacing: 3px;
    font-weight: 700;
    line-height: 1.3;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 29px;
    list-style: none;
}

.nav-links a {
    font-size: 12px;
    font-weight: 600;
    color: #50545a;
    transition: color .2s;
}

.nav-links a:hover {
    color: var(--red);
}

.nav .btn {
    min-height: 44px;
    padding-inline: 17px;
    font-size: 12px;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: var(--light);
    border: 0;
    border-radius: 8px;
    font-size: 23px;
    cursor: pointer;
}

/* ==========================================
   HERO
========================================== */

.hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--black);
    color: white;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(15,17,20,.96) 0%,
            rgba(15,17,20,.86) 40%,
            rgba(15,17,20,.35) 100%),
        url("https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?auto=format&fit=crop&w=2000&q=85")
        center 55% / cover no-repeat;
    transform: scale(1.02);
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -140px;
    right: -80px;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    box-shadow:
        0 0 0 50px rgba(255,255,255,.025),
        0 0 0 100px rgba(255,255,255,.02);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: 100px 0 115px;
}

.hero .eyebrow {
    color: #ff8188;
}

.hero h1 {
    max-width: 730px;
    font-size: clamp(40px, 6vw, 70px);
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 1.06;
}

.hero h1 span {
    color: #f05b64;
}

.hero-description {
    max-width: 525px;
    margin: 24px 0 30px;
    font-size: 16px;
    color: rgba(255,255,255,.76);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: 34px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.72);
    font-size: 12px;
}

.hero-note span {
    color: #ff8188;
    font-size: 17px;
}

/* ==========================================
   BENEFÍCIOS
========================================== */

.benefits {
    position: relative;
    z-index: 2;
    background: white;
    border-bottom: 1px solid var(--border);
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.benefit {
    padding: 28px 30px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-right: 1px solid var(--border);
}

.benefit:first-child {
    padding-left: 0;
}

.benefit:last-child {
    border-right: 0;
}

.benefit-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: #fff0f0;
    color: var(--red);
    font-size: 22px;
}

.benefit h3 {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 4px;
}

.benefit p {
    color: var(--gray);
    font-size: 11px;
}

/* ==========================================
   SERVIÇOS
========================================== */

.services {
    background: var(--light);
}

.services-top {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

.services-top .section-heading {
    margin-bottom: 0;
}

.services-top > a {
    margin-bottom: 8px;
    flex-shrink: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 46px;
}

.service-card {
    background: white;
    border: 1px solid #ededeb;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.service-image {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: #e7e7e5;
}

.service-image img {
    height: 100%;
    transition: transform .5s;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-number {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,.94);
    color: var(--red);
    padding: 6px 11px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.service-body {
    padding: 25px;
}

.service-body h3 {
    font-size: 19px;
    margin-bottom: 10px;
    letter-spacing: -.5px;
}

.service-body p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.8;
}

.service-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-top: 20px;
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
}

/* ==========================================
   SOBRE
========================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 85px;
    align-items: center;
}

.about-visual {
    position: relative;
    padding: 0 35px 35px 0;
}

.about-visual img {
    height: 480px;
    border-radius: 14px;
    object-fit: cover;
}

.about-accent {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 180px;
    height: 180px;
    background: var(--red);
    border-radius: 12px;
    z-index: -1;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content > p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 20px;
}

.check-list {
    display: grid;
    gap: 16px;
    margin: 28px 0 32px;
    list-style: none;
}

.check-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 13px;
    font-weight: 600;
}

.check {
    flex-shrink: 0;
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff0f0;
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
}

/* ==========================================
   PROCESSO
========================================== */

.process {
    background: var(--black);
    color: white;
}

.process .section-heading {
    text-align: center;
    margin-inline: auto;
}

.process .section-heading p {
    margin-inline: auto;
    color: #aeb1b6;
}

.process .eyebrow {
    justify-content: center;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.process-card {
    padding: 32px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    background: rgba(255,255,255,.035);
}

.process-number {
    font-family: "Manrope", sans-serif;
    font-size: 43px;
    font-weight: 800;
    color: var(--red);
    margin-bottom: 20px;
    line-height: 1;
}

.process-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.process-card p {
    color: #b3b6bb;
    font-size: 13px;
    line-height: 1.8;
}

/* ==========================================
   GALERIA
========================================== */

.portfolio-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
}

.portfolio-heading .section-heading {
    margin-bottom: 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 15px;
    margin-top: 45px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #e7e7e5;
}

.portfolio-item:first-child {
    grid-row: span 2;
}

.portfolio-item img {
    height: 100%;
    transition: transform .5s;
}

.portfolio-item:hover img {
    transform: scale(1.06);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: end;
    padding: 22px;
    background: linear-gradient(
        0deg,
        rgba(0,0,0,.72),
        rgba(0,0,0,0) 70%
    );
    color: white;
}

.portfolio-overlay h3 {
    font-size: 16px;
}

.portfolio-overlay p {
    font-size: 11px;
    color: rgba(255,255,255,.78);
    margin-top: 4px;
}

/* ==========================================
   CTA
========================================== */

.cta {
    padding: 0 0 100px;
}

.cta-panel {
    position: relative;
    padding: 65px 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background: var(--red);
    border-radius: 20px;
    color: white;
    overflow: hidden;
}

.cta-panel::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 50%;
    right: 160px;
    top: -200px;
    box-shadow: 0 0 0 45px rgba(255,255,255,.05);
    pointer-events: none;
}

.cta-copy {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.cta-copy h2 {
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -1.6px;
}

.cta-copy p {
    margin-top: 15px;
    font-size: 14px;
    color: rgba(255,255,255,.84);
}

.cta .btn {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    background: white;
    color: var(--red);
}

.cta .btn:hover {
    background: var(--black);
    color: white;
}

/* ==========================================
   FAQ — COMPATÍVEL COM O JAVASCRIPT
========================================== */

.faq {
    background: var(--light);
}

.faq-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 75px;
}

.faq-intro p {
    color: var(--gray);
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.8;
}

.faq-list {
    border-top: 1px solid #dededb;
}

.faq-item {
    border-bottom: 1px solid #dededb;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 23px 0;
    text-align: left;
    border: 0;
    background: transparent;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    color: var(--black);
}

.faq-plus {
    font-size: 22px;
    color: var(--red);
    transition: transform .2s;
    flex-shrink: 0;
}

/* Estado controlado por aria-expanded no script.js */
.faq-answer {
    display: none;
    padding: 0 25px 22px 0;
    color: var(--gray);
    font-size: 13px;
    line-height: 1.9;
}

.faq-question[aria-expanded="true"] + .faq-answer {
    display: block;
}

.faq-question[aria-expanded="true"] .faq-plus {
    transform: rotate(45deg);
}

/* Compatibilidade com FAQ estruturado em .faq-item */
.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-plus {
    transform: rotate(45deg);
}

/* ==========================================
   FOOTER
========================================== */

.footer {
    background: #141619;
    color: white;
    padding: 65px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 45px;
}

.footer .brand {
    margin-bottom: 20px;
}

.footer .brand small {
    color: #9fa2a8;
}

.footer-description {
    color: #a7abb1;
    max-width: 320px;
    font-size: 12px;
    line-height: 1.9;
}

.footer h3 {
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: grid;
    gap: 13px;
}

.footer-links a,
.footer-links span {
    font-size: 12px;
    color: #a7abb1;
    transition: color .2s;
}

.footer-links a:hover {
    color: white;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 20px;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.footer-bottom {
    padding-top: 23px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    color: #8d9197;
    font-size: 11px;
}

.footer-bottom a {
    color: #d4d5d8;
}

/* ==========================================
   BOTÃO FLUTUANTE DO WHATSAPP
========================================== */

.whatsapp-float {
    position: fixed;
    z-index: 900;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 55px;
    padding: 0 20px;
    border-radius: 50px;
    color: white;
    background: #20b96a;
    box-shadow: 0 8px 30px rgba(0,0,0,.18);
    font-size: 12px;
    font-weight: 800;
    transition: transform .2s;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
}

.whatsapp-float svg {
    width: 23px;
    height: 23px;
    fill: white;
}


/* ==========================================
   RESPONSIVIDADE — TABLETS
========================================== */

@media (max-width: 1000px) {
    .nav-links {
        gap: 17px;
    }

    .nav-links a {
        font-size: 11px;
    }

    .nav .btn {
        padding-inline: 12px;
    }

    .about-grid {
        gap: 45px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        gap: 35px;
    }

    .cookie-banner {
        gap: 18px;
    }

    .cookie-banner__actions {
        max-width: 340px;
    }
}

/* ==========================================
   RESPONSIVIDADE — CELULARES
========================================== */

@media (max-width: 760px) {
    .container {
        width: min(calc(100% - 34px), var(--container));
    }

    .section {
        padding: 72px 0;
    }

    .nav {
        min-height: 72px;
    }

    .brand {
        font-size: 20px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .nav > .btn {
        display: none;
    }

    /* Compatível com .classList.toggle("active") do JS */
    .nav-links {
        position: absolute;
        top: 100%;
        left: -17px;
        right: -17px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 22px 22px;
        background: white;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 15px 25px rgba(0,0,0,.06);
    }

    .nav-links.active,
    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 13px 0;
        font-size: 14px;
    }

    .hero {
        min-height: 600px;
    }

    .hero-bg {
        background:
            linear-gradient(90deg,
                rgba(15,17,20,.92),
                rgba(15,17,20,.68)),
            url("https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?auto=format&fit=crop&w=1200&q=80")
            center / cover no-repeat;
    }

    .hero-content {
        padding: 85px 0 95px;
    }

    .hero h1 {
        font-size: clamp(39px, 10vw, 57px);
        letter-spacing: -2px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .benefit-grid {
        grid-template-columns: 1fr;
    }

    .benefit,
    .benefit:first-child {
        padding: 20px 0;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .benefit:last-child {
        border-bottom: 0;
    }

    .services-top,
    .portfolio-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 32px;
    }

    .service-image {
        height: 245px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-visual {
        max-width: 500px;
    }

    .about-visual img {
        height: 370px;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .process-card {
        padding: 25px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 250px 180px 180px;
        gap: 10px;
    }

    .portfolio-item:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }

    .portfolio-overlay {
        padding: 13px;
    }

    .portfolio-overlay h3 {
        font-size: 13px;
    }

    .portfolio-overlay p {
        font-size: 10px;
    }

    .cta {
        padding-bottom: 72px;
    }

    .cta-panel {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 25px;
        gap: 25px;
    }

    .cta .btn {
        width: 100%;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer {
        padding-top: 55px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }

    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        min-height: 52px;
        padding: 0 17px;
    }

    /* Banner de cookies no celular */
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 19px;
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
    }

    .cookie-banner h2,
    .cookie-banner h3 {
        font-size: 1.05rem;
    }

    .cookie-banner p {
        font-size: .85rem;
    }

    .cookie-banner__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        max-width: none;
    }

    .cookie-banner__actions button {
        width: 100%;
        padding-inline: 10px;
        font-size: .82rem;
    }

    /* Modal como painel inferior */
    .cookie-modal {
        align-items: flex-end;
        padding: 0;
    }

    .cookie-modal__dialog {
        width: 100%;
        max-width: none;
        max-height: 90dvh;
        padding: 26px 20px;
        border-radius: 18px 18px 0 0;
    }

    .cookie-modal__dialog h2 {
        font-size: 1.3rem;
    }

    .cookie-modal__footer {
        display: flex;
        flex-direction: column-reverse;
    }

    .cookie-modal__footer button {
        width: 100%;
    }
}

/* ==========================================
   CELULARES PEQUENOS
========================================== */

@media (max-width: 380px) {
    .container {
        width: calc(100% - 28px);
    }

    .brand {
        font-size: 18px;
    }

    .brand small {
        font-size: 8px;
        letter-spacing: 2px;
    }

    .cookie-banner {
        padding: 15px;
    }

    .cookie-banner__actions {
        grid-template-columns: 1fr;
    }

    .cookie-category {
        align-items: flex-start;
        flex-direction: column;
    }

    .cookie-modal__dialog {
        padding: 24px 16px;
    }

    .portfolio-grid {
        grid-template-rows: 210px 160px 160px;
    }
}

/* ==========================================
   ACESSIBILIDADE
========================================== */

:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* =========================================
   COOKIES — AB VIDROS
   Compatível com as classes do seu HTML
========================================= */

[hidden] {
    display: none !important;
}

/* ---------- Banner compacto ---------- */

.cookie-banner {
    position: fixed;
    z-index: 9998;
    left: 24px;
    bottom: 24px;

    width: min(760px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    overflow-y: auto;

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;

    padding: 24px;
    background: #fff;
    color: #25272b;

    border: 1px solid #e8e8e8;
    border-radius: 16px;
    box-shadow: 0 16px 55px rgba(0, 0, 0, 0.20);

    font-family: "DM Sans", sans-serif;
    line-height: 1.5;
    text-align: left;
}

.cookie-content {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.cookie-icon {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;

    color: #c52c36;
    background: #fff0f1;
    border-radius: 12px;
}

.cookie-icon svg {
    display: block;
    width: 23px;
    height: 23px;
}

.cookie-text {
    min-width: 0;
}

.cookie-text h2 {
    margin: 0 0 8px;
    color: #202126;
    font-family: "Manrope", sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.4px;
}

.cookie-text p {
    margin: 0;
    color: #5f626a;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
}

.cookie-policy-link {
    display: inline-block;
    margin-top: 9px;
    color: #b91f29;
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-policy-link:hover {
    color: #861821;
}

/* ---------- Botões do banner ---------- */

.cookie-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 160px;
}

.cookie-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;

    min-height: 42px;
    padding: 10px 14px;

    border: 1px solid transparent;
    border-radius: 8px;

    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;

    cursor: pointer;
    transition: background-color .2s ease,
                border-color .2s ease,
                color .2s ease;
}

.cookie-button:focus-visible,
.cookie-policy-link:focus-visible {
    outline: 3px solid #df626a;
    outline-offset: 3px;
}

.cookie-button-primary {
    color: #fff;
    background: #d52b35;
    border-color: #d52b35;
}

.cookie-button-primary:hover {
    color: #fff;
    background: #b91f29;
    border-color: #b91f29;
}

.cookie-button-secondary {
    color: #35373c;
    background: #fff;
    border-color: #d9dadd;
}

.cookie-button-secondary:hover {
    background: #f5f5f6;
    border-color: #b9bbc0;
}

/* =========================================
   MODAL DE PERSONALIZAÇÃO
========================================= */

.cookie-modal {
    position: fixed;
    z-index: 9999;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
    overflow-y: auto;
    background: rgba(15, 17, 20, 0.65);

    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.cookie-modal-backdrop {
    position: fixed;
    inset: 0;
    background: transparent;
}

.cookie-modal-content {
    position: relative;
    z-index: 1;

    width: min(540px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;

    padding: 30px;
    background: #fff;
    color: #27292e;

    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);

    font-family: "DM Sans", sans-serif;
    line-height: 1.6;
    text-align: left;
}

.cookie-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 15px;
}

.cookie-modal-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #c52c36;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.cookie-modal-header h2 {
    margin: 0;
    color: #202126;
    font-family: "Manrope", sans-serif;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.8px;
}

.cookie-modal-close {
    display: grid;
    place-items: center;
    flex: 0 0 36px;

    width: 36px;
    height: 36px;
    padding: 0;

    color: #555961;
    background: #f5f5f6;
    border: 1px solid #e7e7e9;
    border-radius: 9px;

    font-family: Arial, sans-serif;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.cookie-modal-close:hover {
    color: #202126;
    background: #eaeaec;
}

.cookie-modal-description {
    margin: 0 0 20px;
    color: #62656d;
    font-size: 13px;
    line-height: 1.75;
}

/* ---------- Categorias ---------- */

.cookie-category {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 18px;

    padding: 18px 0;
    border-top: 1px solid #e9e9eb;
}

.cookie-category-info {
    min-width: 0;
}

.cookie-category-info h3 {
    margin: 0 0 5px;
    color: #282a30;
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
}

.cookie-category-info p {
    margin: 0;
    color: #666a72;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.7;
}

/* ---------- Toggle acessível ---------- */

.cookie-toggle {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 26px;
    cursor: pointer;
}

.cookie-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.cookie-toggle-slider {
    position: absolute;
    inset: 0;

    background: #c9cbd0;
    border: 1px solid #b8bbc1;
    border-radius: 30px;
    transition: background .2s ease, border-color .2s ease;
}

.cookie-toggle-slider::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;

    width: 18px;
    height: 18px;

    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
    transition: transform .2s ease;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: #d52b35;
    border-color: #d52b35;
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(18px);
}

.cookie-toggle input:focus-visible + .cookie-toggle-slider {
    outline: 3px solid #df626a;
    outline-offset: 3px;
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: .75;
    cursor: not-allowed;
}

.cookie-required-label,
.cookie-pending-label {
    display: inline-block;
    grid-column: 2;
    justify-self: end;

    padding: 5px 9px;
    border-radius: 6px;

    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.cookie-required-label {
    color: #236a45;
    background: #e8f5ed;
}

.cookie-pending-label {
    color: #6b5a35;
    background: #f6f0e3;
}

/* Categoria necessária: toggle e texto na mesma área */
.cookie-category:has(.cookie-required-label) {
    grid-template-columns: minmax(0, 1fr) auto;
}

.cookie-category:has(.cookie-required-label) .cookie-required-label {
    grid-column: 2;
    grid-row: 2;
}

/* ---------- Ações do modal ---------- */

.cookie-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    margin-top: 12px;
    padding-top: 20px;
    border-top: 1px solid #e9e9eb;
}

.cookie-modal-actions .cookie-button {
    min-height: 44px;
    padding-inline: 17px;
}

/* =========================================
   POLÍTICA DE COOKIES
========================================= */

.cookie-policy-section {
    padding: 55px 0;
    background: #f5f5f3;
    color: #282a30;
}

.cookie-policy-section h2 {
    margin-bottom: 18px;
    font-size: clamp(25px, 4vw, 34px);
}

.cookie-policy-section h3 {
    margin-top: 24px;
    margin-bottom: 8px;
    font-size: 17px;
}

.cookie-policy-section p {
    max-width: 800px;
    margin-bottom: 15px;
    color: #62656d;
    font-size: 14px;
    line-height: 1.8;
}

.cookie-policy-section .btn {
    margin-top: 12px;
}

/* Link no rodapé */

.footer-legal-links {
    display: flex;
    align-items: center;
}

.footer-cookie-button {
    padding: 0;
    color: #d4d5d8;
    background: transparent;
    border: 0;

    font: inherit;
    font-size: 11px;
    cursor: pointer;
}

.footer-cookie-button:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* =========================================
   RESPONSIVIDADE DOS COOKIES
========================================= */

@media (max-width: 760px) {
    .cookie-banner {
        left: 12px;
        bottom: 12px;

        width: calc(100vw - 24px);
        max-height: min(78vh, 560px);
        overflow-y: auto;

        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 19px;
        border-radius: 14px;
    }

    .cookie-content {
        gap: 11px;
    }

    .cookie-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .cookie-icon svg {
        width: 20px;
        height: 20px;
    }

    .cookie-text h2 {
        font-size: 16px;
    }

    .cookie-text p {
        font-size: 12px;
        line-height: 1.65;
    }

    .cookie-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .cookie-actions .cookie-button {
        min-width: 0;
        padding: 10px 8px;
        font-size: 11px;
    }

    .cookie-actions #acceptCookies {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .cookie-modal {
        align-items: center;
        padding: 14px;
    }

    .cookie-modal-content {
        width: 100%;
        max-width: 520px;
        max-height: calc(100dvh - 28px);
        padding: 23px 20px;
        border-radius: 14px;
    }

    .cookie-modal-header h2 {
        font-size: 22px;
    }

    .cookie-modal-description {
        font-size: 12px;
    }

    .cookie-category {
        gap: 10px;
        padding: 15px 0;
    }

    .cookie-category-info h3 {
        font-size: 13px;
    }

    .cookie-category-info p {
        font-size: 12px;
    }

    .cookie-required-label,
    .cookie-pending-label {
        font-size: 9px;
        padding: 5px 7px;
    }

    .cookie-modal-actions {
        flex-direction: column-reverse;
    }

    .cookie-modal-actions .cookie-button {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .cookie-banner {
        left: 8px;
        bottom: 8px;
        width: calc(100vw - 16px);
        padding: 15px;
    }

    .cookie-content {
        gap: 9px;
    }

    .cookie-icon {
        display: none;
    }

    .cookie-actions {
        grid-template-columns: 1fr;
    }

    .cookie-actions #acceptCookies {
        grid-column: auto;
        grid-row: auto;
    }

    .cookie-modal-content {
        padding: 20px 15px;
    }

    .cookie-category {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }
}

/* Acessibilidade: movimento reduzido */

@media (prefers-reduced-motion: reduce) {
    .cookie-button,
    .cookie-toggle-slider,
    .cookie-toggle-slider::before {
        transition: none;
    }
}
