:root {
    --bg: #e7f2f8;
    --panel: rgba(7, 48, 81, 0.52);
    --panel-strong: rgba(3, 40, 72, 0.78);
    --line: rgba(255, 255, 255, 0.55);
    --text: #f5fbff;
    --muted: rgba(245, 251, 255, 0.82);
    --accent: #0c7dd3;
    --accent-strong: #045ca6;
    --sidebar-line: rgba(77, 202, 255, 0.72);
    --shadow: 0 20px 50px rgba(1, 20, 36, 0.28);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Montserrat", sans-serif;
    color: var(--text);
    padding: 0;
}

button {
    font: inherit;
}

/* ======================================================
   ÁREA PRINCIPAL
====================================================== */

.services-section {
    width: 100%;
}

.services-shell {
    width: 100%;
    height: 100dvh;
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            115deg,
            rgba(0, 43, 76, 0.86) 0%,
            rgba(7, 89, 148, 0.34) 45%,
            rgba(166, 228, 255, 0.18) 100%
        ),
        url("https://erastogaertner.com.br/apps/nossos-servicos/image.jpeg")
        center / cover no-repeat;

    isolation: isolate;
}

.services-shell::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 43, 76, 0.62) 0%,
            rgba(0, 71, 123, 0.28) 38%,
            rgba(0, 30, 48, 0.16) 100%
        ),
        linear-gradient(
            180deg,
            rgba(164, 227, 255, 0.08) 0%,
            rgba(3, 30, 50, 0.15) 100%
        );

    z-index: -1;
}

.services-content {
    padding: 56px 66px 64px;
    backdrop-filter: blur(2px);
}


/* ======================================================
   TOPO
====================================================== */

.services-topbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;

    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
}

.services-heading {
    min-width: 220px;
}

.services-notice {
    margin: 16px 0 0;

    color: var(--muted);
    font-size: 0.9rem;
    font-style: italic;
}

.services-heading span {
    display: block;

    font-size: clamp(1.35rem, 3vw, 1.7rem);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.services-heading strong {
    display: block;

    margin-top: 4px;

    color: var(--accent);

    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    font-weight: 800;
}

.text-gradient {
    font-size: 4rem;
    font-weight: 700;

    background: linear-gradient(
        90deg,
        #0077b6 0%,
        #4ca7dc 40%,
        #a6d4f2 70%,
        rgba(255, 255, 255, 0.9) 100%
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    background-clip: text;
    color: transparent;
}


/* ======================================================
   TABS / CATEGORIAS
====================================================== */

.tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.tab-button {
    min-width: 170px;

    padding: 16px 22px;

    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.88);

    background: transparent;
    color: var(--text);

    font-size: 1rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.tab-button:hover,
.tab-button:focus-visible {
    transform: translateY(-2px);

    outline: none;

    box-shadow: 0 10px 25px rgba(2, 33, 58, 0.25);
}

.tab-button.is-active {
    background: linear-gradient(
        180deg,
        var(--accent) 0%,
        var(--accent-strong) 100%
    );

    border-color: transparent;
    border: none;

    box-shadow: none;
}


/* ======================================================
   CORPO
====================================================== */

.services-body {
    display: grid;

    grid-template-columns: 400px minmax(0, 1fr);

    gap: 56px;

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

    padding-top: 72px;
}


/* ======================================================
   SIDEBAR
====================================================== */

.sidebar-panel {
    width: min(100%, 280px);

    display: flex;
    flex-direction: column;
    align-items: stretch;

    gap: 16px;

    padding-top: 58px;
}

.sidebar-list {
    display: flex;
    flex-direction: column;

    gap: 6px;

    min-height: 264px;
}

.sidebar-arrow {
    width: 46px;
    height: 46px;

    display: inline-flex;

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

    align-self: flex-start;

    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;

    background: rgba(6, 43, 74, 0.48);

    color: var(--text);

    cursor: pointer;

    transition:
        transform 180ms ease,
        background-color 180ms ease,
        opacity 180ms ease;
}

.sidebar-arrow:hover,
.sidebar-arrow:focus-visible {
    transform: translateY(-2px);

    outline: none;

    background: rgba(12, 125, 211, 0.72);
}

.sidebar-arrow:disabled {
    opacity: 0.35;

    cursor: not-allowed;

    transform: none;
}

.sidebar-arrow[hidden] {
    display: none;
}

.sidebar-item {
    width: 100%;

    padding: 10px 0 12px;

    text-align: left;

    color: var(--text);

    background: transparent;

    border: 0;
    border-bottom: 2px solid var(--sidebar-line);

    font-size: 1.05rem;
    font-weight: 800;

    cursor: pointer;

    transition:
        padding-left 180ms ease,
        color 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease;
}

.sidebar-item:hover,
.sidebar-item:focus-visible {
    padding-left: 8px;

    outline: none;

    color: #ffffff;

    border-color: #8de8ff;
}

.sidebar-item.is-active {
    color: #9be4ff;

    border-color: #9be4ff;
}


/* ======================================================
   TEXTO
====================================================== */

.service-copy {
    max-width: 700px;
}

.service-kicker {
    margin: 0;

    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.service-title {
    margin: 8px 0 24px;

    color: #fff;

    font-size: clamp(2.7rem, 6vw, 4.4rem);
    line-height: 0.92;
    font-weight: 800;
}

.service-description {
    display: grid;

    gap: 16px;

    color: var(--muted);

    font-size: clamp(1.05rem, 2.1vw, 1.2rem);
    line-height: 1.45;
}

.service-description p {
    margin: 0;
}


/* ======================================================
   TABLET
====================================================== */

@media (max-width: 920px) {

    .services-shell {
        height: auto;
        min-height: 100dvh;

        overflow: visible;

        background:
            linear-gradient(
                115deg,
                rgba(0, 43, 76, 0.90) 0%,
                rgba(7, 89, 148, 0.58) 55%,
                rgba(0, 43, 76, 0.72) 100%
            ),
            url("../img/WhatsApp Image 2026-03-25 at 12.46.44.jpeg")
            center / cover no-repeat;
    }

    .services-content {
        padding: 40px 24px 50px;
    }

    .services-topbar {
        flex-direction: column;

        align-items: stretch;

        gap: 26px;

        padding-bottom: 28px;
    }

    .services-heading {
        min-width: 0;
    }

    .services-heading span {
        font-size: 1.25rem;
    }

    .services-heading strong {
        font-size: clamp(2.8rem, 9vw, 4rem);
    }

    .text-gradient {
        font-size: clamp(2.8rem, 9vw, 4rem);
    }


    /* TABS */

    .tabs {
        display: grid;

        grid-template-columns: repeat(3, 1fr);

        width: 100%;

        gap: 10px;
    }

    .tab-button {
        width: 100%;

        min-width: 0;
        min-height: 58px;

        padding: 12px 14px;

        border-radius: 14px;

        background: rgba(3, 40, 72, 0.35);

        border: 1px solid rgba(255, 255, 255, 0.5);

        backdrop-filter: blur(8px);

        font-size: 0.9rem;
        line-height: 1.25;

        display: flex;

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

        text-align: center;

        -webkit-tap-highlight-color: transparent;
    }

    .tab-button:hover {
        transform: none;
    }

    .tab-button:active {
        transform: scale(0.97);
    }

    .tab-button.is-active {
        background: linear-gradient(
            180deg,
            var(--accent) 0%,
            var(--accent-strong) 100%
        );

        border: 1px solid rgba(255, 255, 255, 0.2);

        box-shadow: 0 8px 24px rgba(0, 40, 80, 0.28);
    }


    /* CORPO */

    .services-body {
        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 38px;

        padding-top: 34px;
    }


    /* SIDEBAR MOBILE/TABLET */

    .sidebar-panel {
        width: 100%;

        padding-top: 0;

        gap: 0;
    }

    .sidebar-list {
        width: 100%;

        display: flex;

        flex-direction: row;

        gap: 10px;

        min-height: 0;

        overflow-x: auto;
        overflow-y: hidden;

        padding: 2px 2px 12px;

        scroll-snap-type: x proximity;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;
    }

    .sidebar-list::-webkit-scrollbar {
        display: none;
    }

    .sidebar-item {
        width: auto;

        flex: 0 0 auto;

        min-height: 48px;

        padding: 12px 18px;

        border: 1px solid rgba(255, 255, 255, 0.35);

        border-radius: 12px;

        background: rgba(4, 43, 74, 0.42);

        backdrop-filter: blur(6px);

        font-size: 0.95rem;
        font-weight: 700;

        white-space: nowrap;

        scroll-snap-align: start;

        -webkit-tap-highlight-color: transparent;
    }

    .sidebar-item:hover,
    .sidebar-item:focus-visible {
        padding-left: 18px;

        border-color: rgba(255, 255, 255, 0.7);

        background: rgba(4, 43, 74, 0.62);
    }

    .sidebar-item:active {
        transform: scale(0.97);
    }

    .sidebar-item.is-active {
        color: #ffffff;

        background: rgba(12, 125, 211, 0.8);

        border-color: rgba(155, 228, 255, 0.9);
    }

    .sidebar-arrow {
        display: none !important;
    }


    /* TEXTO */

    .service-copy {
        width: 100%;

        max-width: none;
    }

    .service-kicker {
        font-size: 1.25rem;
    }

    .service-title {
        margin: 8px 0 20px;

        font-size: clamp(2.5rem, 9vw, 3.8rem);

        line-height: 0.95;

        color: white;
    }

    .service-description {
        gap: 14px;

        font-size: 1rem;

        line-height: 1.6;
    }
}


/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 620px) {

    .services-section {
        width: 100%;

        padding: 0;
    }

    .services-shell {
        width: 100%;

        height: auto;
        min-height: 100dvh;

        border-radius: 0;

        overflow: visible;
    }

    .services-content {
        width: 100%;

        padding: 28px 18px 44px;
    }


    /* TÍTULO */

    .services-topbar {
        gap: 22px;

        padding-bottom: 24px;
    }

    .services-heading span {
        font-size: 1.1rem;
    }

    .services-heading strong {
        font-size: 3rem;

        line-height: 0.95;
    }

    .text-gradient {
        font-size: 3rem;
    }


    /* CATEGORIAS */

    .tabs {
        display: flex;

        flex-direction: column;

        width: 100%;

        gap: 9px;
    }

    .tab-button {
        position: relative;

        width: 100%;

        min-width: 0;
        min-height: 54px;

        padding: 14px 50px 14px 18px;

        justify-content: flex-start;

        text-align: left;

        border-radius: 12px;

        font-size: 0.95rem;

        background: rgba(2, 39, 67, 0.5);

        border: 1px solid rgba(255, 255, 255, 0.42);

        box-shadow: 0 5px 14px rgba(0, 20, 40, 0.12);
    }

    .tab-button::after {
        content: "›";

        position: absolute;

        right: 18px;
        top: 50%;

        transform: translateY(-50%);

        font-size: 1.7rem;
        font-weight: 300;
        line-height: 1;

        color: rgba(255, 255, 255, 0.8);
    }

    .tab-button:active {
        transform: scale(0.985);

        background: rgba(5, 66, 108, 0.72);
    }

    .tab-button.is-active {
        position: relative;

        padding-left: 24px;

        background: linear-gradient(
            180deg,
            var(--accent) 0%,
            var(--accent-strong) 100%
        );

        box-shadow: 0 8px 20px rgba(0, 32, 64, 0.24);
    }

    .tab-button.is-active::before {
        content: "";

        position: absolute;

        left: 9px;
        top: 12px;
        bottom: 12px;

        width: 3px;

        border-radius: 10px;

        background: #9be4ff;
    }


    /* CORPO */

    .services-body {
        gap: 30px;

        padding-top: 28px;
    }


    /* LISTA DOS SERVIÇOS */

    .sidebar-panel {
        width: 100%;

        overflow: hidden;
    }

    .sidebar-list {
        width: calc(100% + 36px);

        margin-left: -18px;
        margin-right: -18px;

        padding:
            2px
            18px
            12px;

        gap: 9px;
    }

    .sidebar-item {
        min-height: 46px;

        padding: 11px 16px;

        border-radius: 999px;

        font-size: 0.9rem;

        font-weight: 700;

        background: rgba(3, 43, 73, 0.56);

        border: 1px solid rgba(255, 255, 255, 0.35);

        box-shadow: 0 4px 12px rgba(0, 20, 40, 0.12);
    }

    .sidebar-item:hover,
    .sidebar-item:focus-visible {
        padding-left: 16px;
    }

    .sidebar-item:active {
        transform: scale(0.97);
    }

    .sidebar-item.is-active {
        color: #ffffff;

        background: linear-gradient(
            180deg,
            #1488db 0%,
            #075fa5 100%
        );

        border-color: rgba(155, 228, 255, 0.9);

        box-shadow: 0 6px 16px rgba(0, 35, 70, 0.24);
    }


    /* TEXTO */

    .service-copy {
        width: 100%;

        max-width: none;
    }

    .service-kicker {
        font-size: 1.05rem;

        line-height: 1.4;
    }

    .service-title {
        margin: 7px 0 18px;

        font-size: clamp(2.15rem, 10vw, 3rem);

        line-height: 1;

        word-break: normal;
    }

    .service-description {
        gap: 14px;

        font-size: 0.98rem;

        line-height: 1.6;
    }

    .service-description p {
        margin: 0;
    }
}


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

@media (max-width: 390px) {

    .services-content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .services-heading strong,
    .text-gradient {
        font-size: 2.6rem;
    }

    .tab-button {
        min-height: 52px;

        padding-top: 12px;
        padding-bottom: 12px;

        font-size: 0.88rem;
    }

    .sidebar-list {
        width: calc(100% + 28px);

        margin-left: -14px;
        margin-right: -14px;

        padding-left: 14px;
        padding-right: 14px;
    }

    .sidebar-item {
        font-size: 0.85rem;

        padding: 10px 14px;
    }

    .service-title {
        font-size: 2.15rem;
        color: white;
    }

    .service-description {
        font-size: 0.94rem;
    }
}