:root {
    --brand: #00874a;
    --brand-600: #006f3d;
    --brand-bright: #00a650;
    --brand-50: #e8f6ee;
    --dark-900: #06241a;
    --dark-800: #0a3a28;
    --ink: #14231b;
    --muted: #5b6b62;
    --surface: #f5f8f6;
    --line: #e1e9e4;
    --radius: 20px;
    --shadow-sm: 0 1px 2px rgba(6, 36, 26, .06), 0 4px 12px rgba(6, 36, 26, .05);
    --shadow-md: 0 10px 30px rgba(6, 36, 26, .10);
    --bs-link-color: #00874a;
    --bs-link-color-rgb: 0, 135, 74;
    --bs-link-hover-color: #006f3d;
    --bs-link-hover-color-rgb: 0, 111, 61;
    --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* {
    font-family: var(--font);
}

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

body {
    background: var(--surface);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    letter-spacing: -.02em;
    line-height: 1.15;
}

p {
    line-height: 1.7;
}

a:focus-visible, button:focus-visible, .form-control:focus-visible {
    outline: 3px solid var(--brand-bright);
    outline-offset: 2px;
}

.navbar.navbar {
    position: fixed;
    inset: 12px 0 auto 0;
    z-index: 1030;
    padding: 0;
    background: none !important;
    border: 0;
}

.navbar > .container {
    padding: .45rem .6rem .45rem 1rem;
    background: rgba(6, 36, 26, .62);
    -webkit-backdrop-filter: saturate(170%) blur(16px);
    backdrop-filter: saturate(170%) blur(16px);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    transition: background .3s, box-shadow .3s;
}

.navbar.is-scrolled > .container {
    background: rgba(6, 36, 26, .9);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .3);
}

@media (min-width: 992px) {
    .navbar > .container {
        border-radius: 999px;
    }
}

@media (max-width: 1230px) {

    .navbar > .container {
        width: calc(100% - 24px);
    }
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin: 0;
    padding: 0;
}

#logo {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 12px;
}

.navbar-brand::after {
    content: "Grupo Esteves";
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.01em;
}

@media (max-width: 400px) {
    .navbar-brand::after {
        display: none;
    }
}

.navbar-nav {
    align-items: center;
    gap: .25rem !important;
}

.custom-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    padding: .55rem .95rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, .8);
    transition: background .2s, color .2s;
}

.custom-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .12);
    padding: .55rem .95rem;
}

.custom-nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, .16);
}

.custom-nav-link.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 18px;
    height: 3px;
    border-radius: 3px;
    background: #5ff0a1;
    transform: translateX(-50%);
}

.navbar-nav .nav-item:last-child .custom-nav-link {
    margin-left: .35rem;
    padding: .6rem 1.2rem;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-bright), var(--brand));
    box-shadow: 0 6px 16px rgba(0, 166, 80, .35);
}

.navbar-nav .nav-item:last-child .custom-nav-link:hover {
    background: linear-gradient(135deg, #00bd5a, var(--brand-600));
    transform: translateY(-1px);
}

.navbar-toggler.btn {
    border-radius: 14px;
}

.navbar-toggler:focus,
.navbar-toggler.btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .35);
    outline: 0;
}

@media (max-width: 992px) {
    .navbar-collapse {
        padding: .75rem 0 .5rem;
    }

    .navbar-nav {
        align-items: stretch;
        gap: .35rem !important;
    }

    .custom-nav-link {
        display: flex !important;
        border: 0;
        border-radius: 16px;
        padding: .8rem 1rem;
        background: rgba(255, 255, 255, .07);
        text-align: left;
    }

    .custom-nav-link.active::after {
        left: auto;
        right: 1rem;
        bottom: 50%;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        transform: translateY(50%);
    }

    .navbar-nav .nav-item:last-child .custom-nav-link {
        margin: .25rem 0 0;
        justify-content: center;
    }
}

.btn {
    border-radius: 999px;
    font-weight: 600;
    transition: transform .2s, box-shadow .2s, background-color .2s, color .2s, border-color .2s;
}

.btn:hover {
    transform: translateY(-1px);
}

#btn-contato,
.btn-success,
.btn-primary {
    background: var(--brand);
    border: 2px solid var(--brand);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 135, 74, .25);
}

#btn-contato:hover,
.btn-success:hover,
.btn-primary:hover {
    background: var(--brand-600);
    border-color: var(--brand-600);
    color: #fff;
    box-shadow: 0 10px 22px rgba(0, 135, 74, .32);
}

.btn-outline-success {
    color: var(--brand);
    border: 2px solid var(--brand);
}

.btn-outline-success:hover {
    background: var(--brand-50);
    color: var(--brand-600);
    border-color: var(--brand);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, .45);
    transition: background .2s, border-color .2s, transform .2s;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .14);
    border-color: #fff;
    color: #fff;
    transform: translateY(-1px);
}

.hero {
    position: relative;
    isolation: isolate;
    color: #fff;

    padding: clamp(104px, 7vw, 128px) 0 clamp(88px, 6vw, 104px);
    background:
        linear-gradient(115deg, rgba(6, 36, 26, .94) 8%, rgba(6, 36, 26, .62) 60%, rgba(0, 135, 74, .35)),
        url("../img/b1.jpg") center / cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 64px;
    background: var(--surface);
    border-top-left-radius: 48px;
    border-top-right-radius: 48px;
    z-index: -1;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .02em;
}

.hero h1 {
    margin: 1rem 0 .85rem;
    font-size: clamp(2.4rem, 5.2vw, 4rem);
    font-weight: 800;
    max-width: 14ch;
}

.hero h1 span {
    background: linear-gradient(90deg, #5ff0a1, #b6ffd8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    max-width: 52ch;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: rgba(255, 255, 255, .82);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1.5rem;
}

.hero-actions .btn {
    padding: .7rem 1.7rem;
}

.hero-stats {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 640px;
    margin: 2.25rem 0 0;
    padding: 0;
}

.hero-stats li {
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .16);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.hero-stats strong {
    display: block;
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 800;
    line-height: 1.1;
}

.hero-stats span {
    font-size: .8rem;
    color: rgba(255, 255, 255, .75);
}

@media (max-width: 576px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-stats li {
        display: flex;
        align-items: baseline;
        gap: .75rem;
    }
}

.page-hero {
    margin-bottom: 2rem;
    padding: clamp(112px, 12vw, 150px) 0 clamp(40px, 6vw, 72px);
    color: rgba(255, 255, 255, .8);
    background:
        radial-gradient(900px 300px at 85% -20%, rgba(0, 166, 80, .45), transparent 70%),
        linear-gradient(120deg, var(--dark-900), var(--dark-800));
}

.page-hero h4 {
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.6;
}

.page-hero #text-destaque {
    color: #fff;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3rem);
}

#conteudo-sobre-empresa,
#conteudo-principios,
#conteudo-steps {
    background: transparent;
    border-top: 0;
}

#conteudo-sobre-empresa {
    padding-block: 3rem;
}

#conteudo-principios {
    padding-block: 3rem;
}

#sobre-empresa h2,
#principios h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
}

#titulo-acima-empresa {
    display: inline-block;
    margin-bottom: .35rem;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand);
}

#titulo-diferente {
    color: var(--ink);
    border-bottom: 0;
    text-transform: none;
    background: linear-gradient(transparent 68%, rgba(0, 166, 80, .3) 68%);
}

#sobre-empresa p {
    color: var(--muted);
    font-size: 1.05rem;
}

#img-sobre-empresa,
#img-principios {
    min-height: 320px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

#background-overlay-empresa {
    background: linear-gradient(160deg, rgba(0, 135, 74, .35), rgba(6, 36, 26, .35));
    opacity: 1;
    border-radius: 0;
    min-height: inherit;
}

#conteudo-alguns-servicos {
    background:
        radial-gradient(800px 360px at 10% 0%, rgba(0, 166, 80, .35), transparent 70%),
        linear-gradient(135deg, var(--dark-900), var(--dark-800));
    overflow: hidden;
}

#background-overlay-servico {
    opacity: .06;
    border-radius: 0;
    pointer-events: none;
}

#conteudo-alguns-servicos > section {
    position: relative;
    z-index: 1;
    padding-block: clamp(48px, 7vw, 88px) !important;
}

#conteudo-alguns-servicos h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 166, 80, .45);
}

.card-body {
    padding: 1.6rem;
}

.card-title {
    font-weight: 700;
    color: var(--ink);
}

.card-title.text-decoration-underline {
    text-decoration: none !important;
}

.card-text {
    color: var(--muted);
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.servicos-grid .item {
    display: flex;
}

.servicos-grid .card {
    width: 100%;
    height: 100%;
    text-align: center;
}

.servicos-grid .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.servicos-grid .card-text {
    flex: 1;
}

@media (max-width: 991.98px) {
    .servicos-grid {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: min(82%, 340px);
        overflow-x: auto;
        padding: 6px 2px 16px;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, .35) transparent;
    }

    .servicos-grid .item {
        scroll-snap-align: start;
    }
}

.carrossel-viewport {
    overflow: hidden;
    padding: 8px 0 18px;
}

.carrossel-rola .carrossel-viewport {
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.carrossel-rola .carrossel-viewport.arrastando {
    cursor: grabbing;
}

.carrossel-trilho {
    display: flex;
    align-items: stretch;
    will-change: transform;
}

.carrossel .item {
    flex: none;
    display: flex;
}

.carrossel .card {
    width: 100%;
    height: 100%;
    text-align: center;
}

.carrossel .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.carrossel .card-text {
    flex: 1;
}

.carrossel-nav {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 6px;
}

.carrossel-nav button {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    transition: background .2s, transform .2s;
}

.carrossel-nav button:hover {
    background: rgba(255, 255, 255, .28);
    transform: scale(1.06);
}

.icon-servico {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin: 1.75rem auto 0;
    border-radius: 24px;
    background: var(--brand-50);
    color: var(--brand);
    font-size: 2.4rem;
}

.principios-lista {
    display: grid;
    gap: 14px;
}

.principios-lista .item {
    padding: 1.4rem 1.7rem;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    border-left: 5px solid var(--brand-bright);
    box-shadow: var(--shadow-sm);
}

.principios-lista h5 {
    margin-bottom: .6rem;
    font-weight: 700;
    color: var(--brand);
}

.principios-lista p {
    color: var(--muted);
    margin: 0;
}

#conteudo-steps {
    padding-block: 3rem 0 !important;
}

#steps h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    font-weight: 800;
    color: var(--ink) !important;
}

#steps .text-success {
    color: var(--ink) !important;
}

#steps p.text-success {
    color: var(--muted) !important;
}

#progress {
    margin-block: 2.5rem;
}

.line {
    height: 3px;
    top: 48px;
    background: repeating-linear-gradient(90deg, var(--brand-bright) 0 10px, transparent 10px 18px);
    opacity: .6;
}

.cont-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.circle {
    width: 96px;
    height: 96px;
    background: linear-gradient(145deg, var(--brand-bright), var(--brand-600));
    box-shadow: 0 0 0 8px var(--surface), 0 12px 24px rgba(0, 135, 74, .3);
}

.circle h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
}

.circle img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

#progress p {
    width: 200px;
    color: var(--muted);
    font-size: .95rem;
}

@media (max-width: 992px) {
    #progress {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #progress p {
        width: auto;
        max-width: 175px;
    }

    .cont-circle {
        margin: 0 auto;
    }
}

@media (max-width: 575.98px) {
    #conteudo-steps {
        padding-top: 2rem !important;
    }

    #steps {
        padding-inline: 12px;
        scroll-margin-top: 100px;
    }

    #steps > .container {
        padding-inline: 4px;
    }

    #steps h2 {
        font-size: 1.5rem;
        line-height: 1.25;
    }

    #steps p.text-success {
        font-size: .95rem;
        line-height: 1.6;
        margin-bottom: 0;
    }

    #steps #progress {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        margin-block: 1.5rem;
    }

    #steps .cont-circle {
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr);
        align-items: center;
        gap: 16px;
        width: 100%;
        margin: 0;
        padding: 18px 0;
        text-align: left;
    }

    #steps .cont-circle + .cont-circle {
        border-top: 1px solid var(--line);
    }

    #steps .circle {
        width: 52px;
        height: 52px;
        margin: 0;
        box-shadow: 0 5px 12px rgba(0, 135, 74, .15);
    }

    #steps .circle h1 {
        font-size: 1.4rem;
    }

    #steps .circle img {
        width: 26px;
        height: 26px;
    }

    #steps #progress p {
        width: auto;
        max-width: none;
        margin: 0 !important;
        text-align: left;
        font-size: .95rem;
        line-height: 1.6;
    }

    #steps #btn-contato {
        width: min(220px, calc(100vw - 160px));
        padding: 12px 8px !important;
        margin-bottom: 1.5rem;
    }
}

#conteudo-alguns-contatos {
    background:
        radial-gradient(600px 260px at 100% 0%, rgba(0, 166, 80, .35), transparent 70%),
        linear-gradient(135deg, var(--dark-900), var(--dark-800));
    border-radius: 32px;
    width: auto;
    margin: 1.5rem 12px 3rem;
    overflow: hidden;
}

#alguns-contatos h2 {
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    font-weight: 700;
}

#alguns-contatos p {
    color: rgba(255, 255, 255, .8);
    margin-top: .75rem;
}

#whatsapp p,
#email p {
    color: #8ff0bd;
    font-weight: 600;
}

#contato {
    padding-block: 1.5rem;
}

#contato .bg-success {
    background: linear-gradient(145deg, var(--brand-bright), var(--dark-800)) !important;
    border-radius: var(--radius) !important;
    padding: 2rem !important;
    box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
    #contato .bg-success {
        position: sticky;
        top: 104px;
    }
}

#contato .bg-success h2 {
    font-size: 2.1rem;
    font-weight: 800;
}

#contato .bg-light {
    background: #fff !important;
    border: 1px solid var(--line);
    border-radius: var(--radius) !important;
    padding: 2rem !important;
    box-shadow: var(--shadow-md) !important;
}

#contato .bg-light h5 {
    font-weight: 700;
    font-size: 1.3rem;
}

#contato .text-success {
    color: var(--brand) !important;
}

.form-label {
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink);
}

.form-control {
    padding: .7rem .95rem;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fbfdfc;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.form-control:focus {
    border-color: var(--brand-bright);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 166, 80, .16);
}

.captcha {
    border-radius: 12px !important;
    letter-spacing: .2em;
}

#refreshCaptcha {
    background: var(--brand-50);
    color: var(--brand);
    border-radius: 12px;
}

#refreshCaptcha:hover {
    background: #d3efdf;
}

#searchInput {
    padding: .8rem 1.1rem;
    border-radius: 999px;
}

#search {
    width: 100%;
    padding: .8rem 1rem;
}

main > section#servicos > #news.container {
    background: none;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 2rem 12px !important;
}

#news .card,
#cont-news .card {
    height: 100%;
}

#news a.card {
    color: inherit;
}

.page-link {
    color: var(--brand);
    border-radius: 12px !important;
    margin: 0 3px;
    border: 1px solid var(--line);
}

.page-item.active .page-link {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

main > section#servicos > .container,
#termos {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow-sm);
    padding: clamp(24px, 4vw, 48px);
}

@media (min-width: 992px) {
    main > section#servicos > .container {

        padding-right: clamp(24px, 4vw, 48px);
        max-width: 960px;
    }
}

main > section#servicos > .container > h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

main > section#servicos > .container > h4,
#termos h4 {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 2.2rem 0 .8rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-600);
}

main > section#servicos > .container > h4::before,
#termos h4::before {
    content: "";
    flex: none;
    width: 6px;
    height: 1.4em;
    border-radius: 4px;
    background: var(--brand-bright);
}

#termos h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    font-weight: 800;
}

main > section#servicos > .container p,
main > section#servicos > .container li,
#termos p,
#termos li {
    color: #34443b;
}

main > section#servicos > .container ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

main > section#servicos > .container li {
    position: relative;
    padding: .35rem 0 .35rem 1.8rem;
}

main > section#servicos > .container li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .7em;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50%;
    background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2300874a'%3E%3Cpath d='M13.5 3.5 6.5 11 3 7.5l1-1 2.5 2.5 6-6.5z'/%3E%3C/svg%3E") center / 70% no-repeat;
}

footer {
    margin-top: 3rem;
}

.footer {
    background: var(--dark-900);
    padding: 56px 20px 40px;
    border-radius: 36px 36px 0 0;
    color: rgba(255, 255, 255, .78);
}

.footer p {
    line-height: 1.8;
}

.footer .bi {
    color: var(--brand-bright);
    margin-right: .35rem;
}

#logo-footer {
    width: 84px;
    margin-bottom: 1rem;
}

.footer a:hover {
    color: #5ff0a1;
}

.copyright {
    background: #041a12;
    color: rgba(255, 255, 255, .6);
    font-size: .85rem;
    padding: 16px 20px;
}

#desenvolvedor {
    color: #8ff0bd;
}

.whatsapp-button {
    width: 56px;
    height: 56px;
    box-shadow: 0 10px 24px rgba(37, 211, 102, .4);
}

.whatsapp-icon {
    width: 50px;
}

.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

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

    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .card, .btn, .btn-ghost {
        transition: none;
    }

    .card:hover, .btn:hover {
        transform: none;
    }
}
