﻿/* =========================================================
   e-ServiÃ§os Amambai â€” Home
   Interface institucional / web / mobile
========================================================= */

:root {
    --home-blue-950: #062b50;
    --home-blue-900: #003f78;
    --home-blue-800: #004b8d;
    --home-blue-700: #005ca8;
    --home-blue-600: #0873c4;
    --home-blue-100: #eaf4ff;

    --home-green-700: #047857;
    --home-green-600: #10b981;
    --home-green-100: #ecfdf5;

    --home-bg: #edf4fb;
    --home-card: #ffffff;
    --home-text: #0f2747;
    --home-muted: #5d7088;
    --home-border: rgba(0, 92, 168, 0.16);

    --home-shadow-sm: 0 10px 26px rgba(7, 42, 83, 0.10);
    --home-shadow-md: 0 18px 42px rgba(7, 42, 83, 0.14);
    --home-shadow-lg: 0 30px 70px rgba(7, 36, 78, 0.18);
}

/* =========================================================
   BASE
========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    background: var(--home-bg);
}

.home-reveal {
    animation: homeReveal 0.62s ease both;
}

.home-reveal--delay {
    animation-delay: 0.12s;
}

@keyframes homeReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-chip,
.home-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 14px;
    border-radius: 999px;

    color: var(--home-blue-800);
    background: rgba(0, 92, 168, 0.08);
    border: 1px solid rgba(0, 92, 168, 0.14);

    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.section-chip--light {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.24);
}

.btn {
    min-height: 52px;
    padding: 0 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
    line-height: 1;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        filter 0.22s ease;
}

.btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--home-blue-700), var(--home-blue-900));
    box-shadow: 0 14px 30px rgba(0, 92, 168, 0.24);
}

.btn-secondary {
    color: var(--home-blue-900);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 92, 168, 0.14);
    box-shadow: var(--home-shadow-sm);
}

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

.home-hero {
    position: relative;
    overflow: hidden;

    min-height: 720px;
    padding: 92px 22px 150px;
    box-sizing: border-box;

    color: #ffffff;

    background-image:
        linear-gradient(
            110deg,
            rgba(6, 43, 80, 0.92) 0%,
            rgba(6, 43, 80, 0.82) 38%,
            rgba(0, 92, 168, 0.48) 68%,
            rgba(0, 92, 168, 0.70) 100%
        ),
        url("/static/img/identidade/identidade1.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 0;

    background:
        radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.14), transparent 28%),
        radial-gradient(circle at 82% 20%, rgba(8, 115, 196, 0.20), transparent 34%),
        linear-gradient(180deg, rgba(6, 43, 80, 0.10), rgba(6, 43, 80, 0.18));
}

.home-hero__glow {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.45;
}

.home-hero__glow--one {
    width: 320px;
    height: 320px;
    left: -90px;
    top: 120px;
    background: rgba(255, 255, 255, 0.16);
}

.home-hero__glow--two {
    width: 390px;
    height: 390px;
    right: -110px;
    bottom: 80px;
    background: rgba(8, 115, 196, 0.32);
}

.home-hero__container {
    position: relative;
    z-index: 2;

    width: min(1180px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    gap: 46px;
    align-items: center;
}

.home-hero__content {
    max-width: 720px;
}

.home-hero h1 {
    margin: 18px 0 18px;

    color: #ffffff;
    font-size: clamp(2.8rem, 6vw, 5.4rem);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.055em;
}

.home-hero__content p {
    max-width: 650px;
    margin: 0;

    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(1.02rem, 1.5vw, 1.22rem);
    line-height: 1.75;
}

.home-hero__actions {
    margin-top: 30px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

/* =========================================================
   ATALHO MOBILE â€” CONSULTAR PROTOCOLO
========================================================= */

.home-mobile-protocol-shortcut {
    display: none;
}

.home-mobile-protocol-shortcut__link {
    text-decoration: none;
}

@media (max-width: 768px) {
    .home-mobile-protocol-shortcut {
        display: block;
        width: 100%;
        margin-top: 18px;
    }

    .home-mobile-protocol-shortcut__link {
        width: 100%;
        min-height: 76px;
        padding: 14px;

        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 12px;

        border-radius: 20px;

        color: #ffffff;
        background:
            radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.22), transparent 140px),
            linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.10));
        border: 1px solid rgba(255, 255, 255, 0.28);
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);

        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);

        transition: 0.25s ease;
    }

    .home-mobile-protocol-shortcut__link:active {
        transform: scale(0.985);
    }

    .home-mobile-protocol-shortcut__icon {
        width: 46px;
        height: 46px;
        flex-shrink: 0;

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

        border-radius: 16px;

        color: #0056a6;
        background: linear-gradient(135deg, #ffffff, #eaf4ff);
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.20);
    }

    .home-mobile-protocol-shortcut__icon svg {
        width: 23px;
        height: 23px;
        stroke-width: 2.4;
    }

    .home-mobile-protocol-shortcut__text {
        min-width: 0;
    }

    .home-mobile-protocol-shortcut__text strong {
        display: block;
        margin-bottom: 3px;

        color: #ffffff;
        font-family: "Montserrat", "Inter", Arial, sans-serif;
        font-size: 0.98rem;
        font-weight: 850;
        line-height: 1.2;
    }

    .home-mobile-protocol-shortcut__text small {
        display: block;

        color: rgba(255, 255, 255, 0.84);
        font-size: 0.78rem;
        line-height: 1.35;
    }

    .home-mobile-protocol-shortcut__arrow {
        width: 34px;
        height: 34px;
        flex-shrink: 0;

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

        border-radius: 999px;

        color: #ffffff;
        background: rgba(255, 255, 255, 0.14);
    }

    .home-mobile-protocol-shortcut__arrow svg {
        width: 19px;
        height: 19px;
        stroke-width: 2.5;
    }
}

/* =========================================================
   CARD FARMÃCIA NO HERO
========================================================= */

.home-hero__panel {
    width: 100%;
}

.home-panel-card {
    position: relative;
    overflow: hidden;

    padding: 28px;
    border-radius: 32px;

    color: var(--home-text);
    background:
        radial-gradient(circle at top right, rgba(8, 115, 196, 0.12), transparent 34%),
        rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow: 0 24px 58px rgba(6, 43, 80, 0.24);

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

.home-panel-card::after {
    content: "";
    position: absolute;
    top: -42px;
    right: -42px;

    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(0, 92, 168, 0.08);
}

.home-panel-card__icon {
    position: relative;
    z-index: 1;

    width: 64px;
    height: 64px;

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

    color: #ffffff;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--home-blue-700), var(--home-blue-900));
    box-shadow: 0 14px 30px rgba(0, 92, 168, 0.24);
}

.home-panel-card__icon svg {
    width: 30px;
    height: 30px;
}

.home-panel-card h2 {
    position: relative;
    z-index: 1;

    margin: 20px 0 10px;
    color: var(--home-blue-950);
    font-size: 1.7rem;
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -0.025em;
}

.home-panel-card p {
    position: relative;
    z-index: 1;

    margin: 0;
    color: var(--home-muted);
    line-height: 1.65;
}

.home-plantao-info {
    position: relative;
    z-index: 1;

    display: grid;
    gap: 12px;
    margin: 20px 0 18px;
}

.home-plantao-info__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 13px 14px;
    border-radius: 18px;
    border: 1px solid rgba(0, 92, 168, 0.12);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 10px 24px rgba(6, 43, 80, 0.08);
}

.home-plantao-info__item svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 2px;
    color: var(--home-blue-700);
}

.home-plantao-info__item div {
    min-width: 0;
}

.home-plantao-info__item span {
    display: block;
    margin-bottom: 4px;

    color: var(--home-muted);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-plantao-info__item strong {
    display: block;

    color: var(--home-blue-950);
    font-size: 0.95rem;
    font-weight: 950;
    line-height: 1.35;
    word-break: break-word;
}

.home-panel-card__cta {
    position: relative;
    z-index: 1;

    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    box-sizing: border-box;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border-radius: 18px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 950;

    background: linear-gradient(135deg, var(--home-blue-700), var(--home-blue-900));
    box-shadow: 0 14px 28px rgba(0, 92, 168, 0.22);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        filter 0.22s ease;
}

.home-panel-card__cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: 0 18px 34px rgba(0, 92, 168, 0.28);
}

.home-panel-card__cta svg {
    width: 18px;
    height: 18px;
}

/* =========================================================
   WAVES
========================================================= */

.home-hero__waves {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 1;

    height: 150px;
    overflow: hidden;
    pointer-events: none;
}

.home-hero__wave {
    position: absolute;
    inset: 0;
}

.home-hero__wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

.home-hero__wave--back path {
    fill: rgba(237, 244, 251, 0.58);
}

.home-hero__wave--front path {
    fill: var(--home-bg);
}

/* =========================================================
   SERVIÃ‡OS
========================================================= */

.home-services {
    max-width: 1280px;
    margin: 0 auto;
    padding: 70px 22px 38px;
}

.home-section__header {
    max-width: 820px;
    margin: 0 auto 34px;
    text-align: center;
}

.home-section__header .section-chip {
    margin: 0 auto 14px;
}

.home-section__header h2 {
    margin: 0 0 12px;

    color: var(--home-blue-950);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.06;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.home-section__header p {
    max-width: 760px;
    margin: 0 auto;

    color: var(--home-muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 22px;
}

.service-card--premium {
    position: relative;
    overflow: hidden;

    min-height: 340px;
    padding: 24px;
    border-radius: 30px;

    display: flex;
    flex-direction: column;

    background:
        radial-gradient(circle at top right, rgba(15, 91, 181, 0.11), transparent 34%),
        linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid rgba(191, 211, 234, 0.92);
    box-shadow:
        0 18px 42px rgba(7, 42, 83, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.84);

    transition:
        transform 0.26s ease,
        box-shadow 0.26s ease,
        border-color 0.26s ease;
}

.service-card--premium:hover {
    transform: translateY(-6px);
    border-color: rgba(15, 91, 181, 0.35);
    box-shadow:
        0 28px 58px rgba(7, 42, 83, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.90);
}

.service-card__shine {
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.62),
            rgba(255, 255, 255, 0.08) 38%,
            transparent 62%
        );
}

.service-card__top {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.service-card__icon {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;

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

    border-radius: 22px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--home-blue-700), var(--home-blue-900));
    box-shadow: 0 14px 30px rgba(7, 42, 83, 0.18);
}

.service-card__icon svg {
    width: 28px;
    height: 28px;
}

.service-card__badge {
    width: fit-content;
    padding: 8px 12px;

    border-radius: 999px;
    border: 1px solid rgba(0, 92, 168, 0.14);
    background: rgba(0, 92, 168, 0.08);
    color: var(--home-blue-800);

    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-card__content {
    position: relative;
    z-index: 1;
    flex: 1;
}

.service-card__category {
    display: block;
    margin-bottom: 8px;

    color: var(--home-blue-700);
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-card__content h3 {
    margin: 0 0 12px;

    color: var(--home-blue-950);
    font-size: 1.45rem;
    line-height: 1.14;
    font-weight: 950;
    letter-spacing: -0.025em;
}

.service-card__content p {
    margin: 0;
    color: var(--home-muted);
    line-height: 1.65;
}

.service-card__link {
    position: relative;
    z-index: 1;

    width: 100%;
    min-height: 56px;
    margin-top: 24px;
    padding: 8px 10px 8px 18px;
    box-sizing: border-box;

    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    border-radius: 999px;
    text-decoration: none;

    color: #ffffff;
    background: linear-gradient(135deg, var(--home-blue-700), var(--home-blue-900));
    box-shadow:
        0 14px 30px rgba(7, 42, 83, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);

    font-size: 0.96rem;
    font-weight: 900;
    letter-spacing: -0.01em;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        filter 0.22s ease;
}

.service-card__link:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow:
        0 18px 38px rgba(7, 42, 83, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.service-card__link-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;

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

    border-radius: 999px;
    color: var(--home-blue-900);
    background: rgba(255, 255, 255, 0.92);
}

.service-card__link-icon svg {
    width: 19px;
    height: 19px;
}

.service-card--solicitar .service-card__icon,
.service-card--solicitar .service-card__link {
    background: linear-gradient(135deg, var(--home-green-600), var(--home-green-700));
}

.service-card--solicitar .service-card__badge {
    color: var(--home-green-700);
    background: rgba(16, 185, 129, 0.11);
    border-color: rgba(16, 185, 129, 0.20);
}

.service-card--solicitar .service-card__link-icon {
    color: var(--home-green-700);
}

.service-card--mapa .service-card__icon,
.service-card--mapa .service-card__link {
    background: linear-gradient(135deg, #0f5bb5, #073f7d);
}

.service-card--mapa .service-card__badge {
    color: #0f5bb5;
    background: rgba(15, 91, 181, 0.09);
    border-color: rgba(15, 91, 181, 0.14);
}

.service-card--mapa .service-card__link-icon {
    color: #073f7d;
}

.service-card--padrao .service-card__icon,
.service-card--padrao .service-card__link {
    background: linear-gradient(135deg, #475569, #1e293b);
}

.service-card--padrao .service-card__badge {
    color: #475569;
    background: rgba(71, 85, 105, 0.10);
    border-color: rgba(71, 85, 105, 0.18);
}

.service-card--padrao .service-card__link-icon {
    color: #1e293b;
}

/* =========================================================
   ORDEM E DESTAQUE DOS CARDS
========================================================= */

.services-grid > .service-card {
    order: 500;
}

.services-grid > .service-card--order-iluminacao {
    order: 10;
}

.services-grid > .service-card--order-reparo-via {
    order: 20;
}

.services-grid > .service-card--order-lotes-lixo {
    order: 30;
}

.services-grid > .service-card--order-farmacias {
    order: 40;
}

.services-grid > .service-card--order-cep {
    order: 50;
}

.services-grid > .service-card--order-vilas {
    order: 60;
}

.services-grid > .service-card--order-default {
    order: 500;
}

.service-card--featured,
.service-card--order-iluminacao {
    position: relative;
}

.service-card--featured::after,
.service-card--order-iluminacao::after,
.service-card--order-reparo-via::after,
.service-card--order-lotes-lixo::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    border-radius: inherit;
    border: 2px solid rgba(16, 185, 129, 0.14);
    box-shadow:
        0 0 0 7px rgba(16, 185, 129, 0.035),
        0 20px 40px rgba(16, 185, 129, 0.08);
}

.service-card--order-iluminacao,
.service-card--order-reparo-via,
.service-card--order-lotes-lixo {
    border-color: rgba(16, 185, 129, 0.34);
}

.service-card--order-iluminacao .service-card__icon,
.service-card--order-reparo-via .service-card__icon,
.service-card--order-lotes-lixo .service-card__icon,
.service-card--order-iluminacao .service-card__link,
.service-card--order-reparo-via .service-card__link,
.service-card--order-lotes-lixo .service-card__link {
    background: linear-gradient(135deg, var(--home-green-600), var(--home-green-700));
}

.service-card--order-iluminacao .service-card__badge,
.service-card--order-reparo-via .service-card__badge,
.service-card--order-lotes-lixo .service-card__badge {
    color: var(--home-green-700);
    background: rgba(16, 185, 129, 0.11);
    border-color: rgba(16, 185, 129, 0.20);
}

.service-card--order-iluminacao .service-card__link-icon,
.service-card--order-reparo-via .service-card__link-icon,
.service-card--order-lotes-lixo .service-card__link-icon {
    color: var(--home-green-700);
}

/* =========================================================
   CONSULTA DE CEP â€” HOME
========================================================= */

.btn-cep {
    color: #ffffff;
    background: linear-gradient(135deg, #0f5bb5, #073f7d);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 14px 30px rgba(0, 92, 168, 0.24);
}

.btn-cep:hover {
    color: #ffffff;
}

.service-card--cep .service-card__icon,
.service-card--cep .service-card__link {
    background: linear-gradient(135deg, #0f5bb5, #073f7d);
}

.service-card--cep .service-card__badge {
    color: #0f5bb5;
    background: rgba(15, 91, 181, 0.09);
    border-color: rgba(15, 91, 181, 0.14);
}

.service-card--cep .service-card__link-icon {
    color: #073f7d;
}

/* =========================================================
   SEÃ‡ÃƒO INSTITUCIONAL COM HERO-CACHOEIRA
========================================================= */

.home-legal-access--cachoeira {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    max-width: 1280px;
    min-height: 460px;
    margin: 38px auto 52px;
    border-radius: 34px;

    background: var(--home-blue-900);
    box-shadow: var(--home-shadow-lg);
}

.home-legal-access--cachoeira .home-legal-access__bg {
    position: absolute;
    inset: 0;
    z-index: 0;

    background-image:
        linear-gradient(
            90deg,
            rgba(6, 43, 80, 0.88) 0%,
            rgba(6, 43, 80, 0.72) 38%,
            rgba(6, 43, 80, 0.38) 64%,
            rgba(6, 43, 80, 0.58) 100%
        ),
        url("/static/img/identidade/identidade2.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    transform: scale(1.02);
}

.home-legal-access--cachoeira .home-legal-access__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.home-legal-access--cachoeira .home-legal-access__inner {
    position: relative;
    z-index: 2;

    min-height: 460px;
    padding: 44px 46px;
    box-sizing: border-box;

    display: grid;
    grid-template-columns: minmax(320px, 1.05fr) minmax(320px, 0.95fr);
    gap: 34px;
    align-items: center;
}

.home-legal-access--cachoeira .home-legal-access__content {
    max-width: 650px;
    color: #ffffff;
}

.home-legal-access--cachoeira .section-chip {
    margin-bottom: 18px;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);

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

.home-legal-access--cachoeira .home-legal-access__content h2 {
    margin: 0 0 16px;

    color: #ffffff;
    font-size: clamp(2rem, 3.4vw, 3.45rem);
    line-height: 1.03;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.home-legal-access--cachoeira .home-legal-access__content p {
    max-width: 620px;
    margin: 0;

    color: rgba(255, 255, 255, 0.94);
    font-size: 1.08rem;
    line-height: 1.72;
}

.home-legal-access__cards {
    display: grid;
    gap: 16px;
}

.home-legal-card {
    position: relative;
    overflow: hidden;

    min-height: 118px;
    padding: 20px;

    display: flex;
    align-items: flex-start;
    gap: 16px;

    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 18px 42px rgba(6, 43, 80, 0.18);

    text-decoration: none;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;

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

.home-legal-card::after {
    content: "";
    position: absolute;
    top: -26px;
    right: -24px;

    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: rgba(8, 51, 91, 0.07);
}

.home-legal-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 22px 46px rgba(6, 43, 80, 0.24);
}

.home-legal-card__icon {
    position: relative;
    z-index: 1;

    width: 52px;
    height: 52px;
    flex: 0 0 52px;

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

    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #0a63be, #004b8d);
    box-shadow: 0 12px 26px rgba(0, 92, 168, 0.22);
}

.home-legal-card--server .home-legal-card__icon {
    background: linear-gradient(135deg, var(--home-green-600), #059669);
    box-shadow: 0 12px 26px rgba(5, 150, 105, 0.22);
}

.home-legal-card__icon svg {
    width: 22px;
    height: 22px;
}

.home-legal-card__text {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.home-legal-card__text strong {
    display: block;
    margin-bottom: 6px;

    color: var(--home-blue-950);
    font-size: 1.12rem;
    font-weight: 950;
    line-height: 1.25;
}

.home-legal-card__text span {
    display: block;

    color: var(--home-muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

/* =========================================================
   AVISO DE COOKIES / PRIVACIDADE
========================================================= */

.cookie-notice {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 18px;
    z-index: 9999;

    padding: 0 18px;

    animation: cookieSlideUp 0.35s ease both;
}

.cookie-notice[hidden] {
    display: none !important;
}

.cookie-notice__content {
    max-width: 1120px;
    margin: 0 auto;
    padding: 16px;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;

    border-radius: 22px;

    background:
        radial-gradient(circle at 100% 0%, rgba(0, 86, 166, 0.14), transparent 180px),
        linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(232, 242, 251, 0.96));
    border: 1px solid rgba(0, 86, 166, 0.24);
    box-shadow: 0 24px 60px rgba(7, 42, 83, 0.24);

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

.cookie-notice__icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;

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

    border-radius: 16px;

    color: #ffffff;
    background: linear-gradient(135deg, #0056a6, #003a73);
    box-shadow: 0 14px 30px rgba(0, 86, 166, 0.30);
}

.cookie-notice__icon svg {
    width: 25px;
    height: 25px;
}

.cookie-notice__text strong {
    display: block;
    margin-bottom: 4px;

    color: #0a2540;
    font-family: "Montserrat", "Inter", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 800;
}

.cookie-notice__text p {
    margin: 0;

    color: #4f6680;
    font-size: 0.92rem;
    line-height: 1.5;
}

.cookie-notice__actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-notice__link {
    min-height: 42px;
    padding: 0 14px;

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

    border-radius: 999px;

    color: #0056a6;
    background: rgba(0, 86, 166, 0.08);
    border: 1px solid rgba(0, 86, 166, 0.16);

    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;

    transition: 0.25s ease;
}

.cookie-notice__link:hover {
    background: rgba(0, 86, 166, 0.14);
}

.cookie-notice__button {
    min-height: 42px;
    padding: 0 18px;

    border: 0;
    border-radius: 999px;

    color: #ffffff;
    background: linear-gradient(135deg, #0056a6, #003a73);
    box-shadow: 0 12px 24px rgba(0, 86, 166, 0.24);

    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;

    transition: 0.25s ease;
}

.cookie-notice__button:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #003a73, #0a2540);
}

@keyframes cookieSlideUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   AJUSTE DE CONTRASTE â€” BADGE DO HERO
========================================================= */

.home-hero .home-badge {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 10px 24px rgba(6, 43, 80, 0.18);

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

.home-hero .home-badge:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* =========================================================
   RESPONSIVO
========================================================= */

@media (max-width: 1100px) {
    .home-hero {
        min-height: 0;
        padding: 78px 20px 132px;
    }

    .home-hero__container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .home-hero__content {
        max-width: 860px;
    }

    .home-panel-card {
        max-width: 720px;
    }

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

    .home-legal-access--cachoeira .home-legal-access__inner {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 34px 28px;
    }

    .home-legal-access--cachoeira .home-legal-access__content {
        max-width: none;
    }
}

@media (max-width: 760px) {
    .home-hero {
        padding: 64px 16px 110px;
        background-position: center center;
    }

    .home-hero h1 {
        font-size: 3rem;
    }

    .home-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-hero__actions .btn {
        width: 100%;
    }

    .home-panel-card {
        padding: 22px;
        border-radius: 26px;
    }

    .home-panel-card__icon {
        width: 56px;
        height: 56px;
        border-radius: 20px;
    }

    .home-panel-card h2 {
        font-size: 1.42rem;
    }

    .home-services {
        padding: 56px 16px 28px;
    }

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

    .service-card--premium {
        min-height: 0;
        padding: 21px;
        border-radius: 24px;
    }

    .service-card__top {
        margin-bottom: 18px;
    }

    .service-card__icon {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        border-radius: 18px;
    }

    .service-card__icon svg {
        width: 23px;
        height: 23px;
    }

    .service-card__content h3 {
        font-size: 1.25rem;
    }

    .service-card__link {
        min-height: 52px;
        padding: 8px 8px 8px 16px;
        font-size: 0.94rem;
    }

    .service-card__link-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .service-card__link-icon svg {
        width: 17px;
        height: 17px;
    }

    .home-legal-access--cachoeira {
        min-height: 0;
        margin: 24px 14px 36px;
        border-radius: 26px;
    }

    .home-legal-access--cachoeira .home-legal-access__bg {
        background-position: center center;
    }

    .home-legal-access--cachoeira .home-legal-access__inner {
        padding: 24px 18px;
        gap: 20px;
    }

    .home-legal-access--cachoeira .section-chip {
        margin-bottom: 14px;
        padding: 9px 14px;
        font-size: 0.82rem;
    }

    .home-legal-access--cachoeira .home-legal-access__content h2 {
        font-size: 2rem;
        line-height: 1.05;
    }

    .home-legal-access--cachoeira .home-legal-access__content p {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .home-legal-card {
        min-height: 0;
        padding: 16px;
        border-radius: 20px;
        gap: 14px;
    }

    .home-legal-card__icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 16px;
    }

    .home-legal-card__text strong {
        font-size: 1rem;
    }

    .home-legal-card__text span {
        font-size: 0.92rem;
    }

    .home-plantao-info__item {
        padding: 11px 12px;
        border-radius: 16px;
    }

    .home-plantao-info__item strong {
        font-size: 0.9rem;
    }

    .btn-cep {
        width: 100%;
    }

    .cookie-notice {
        bottom: 12px;
        padding: 0 12px;
    }

    .cookie-notice__content {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
        border-radius: 20px;
        text-align: left;
    }

    .cookie-notice__icon {
        width: 46px;
        height: 46px;
    }

    .cookie-notice__actions {
        width: 100%;

        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .cookie-notice__link,
    .cookie-notice__button {
        width: 100%;
    }
}

@media (max-width: 460px) {
    .home-hero h1 {
        font-size: 2.55rem;
    }

    .home-section__header h2 {
        font-size: 1.8rem;
    }

    .service-card__top {
        flex-direction: column;
    }

    .service-card__badge {
        width: fit-content;
    }

    .service-card__link {
        font-size: 0.9rem;
        gap: 8px;
    }

    .home-legal-card {
        flex-direction: column;
    }
}

/* Desktop: garante os trÃªs protocolos lado a lado */
@media (min-width: 1101px) {
    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .service-card--order-iluminacao,
    .service-card--order-reparo-via,
    .service-card--order-lotes-lixo {
        min-height: 340px;
    }
}

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

.btn:focus-visible,
.home-panel-card__cta:focus-visible,
.service-card__link:focus-visible,
.home-legal-card:focus-visible,
.cookie-notice__link:focus-visible,
.cookie-notice__button:focus-visible,
.home-mobile-protocol-shortcut__link:focus-visible {
    outline: 3px solid rgba(8, 115, 196, 0.36);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
