:root {
    --primary: #446950;
    --secondary: #B88A44;
    --highlights: #34BC8B;
    --gray-100: #F7F5F2;
    --gray-200: #EBEEEC;
    --text-dark: #1e1e1e;
    --text-light: #5c5c5c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.4;
    background-color: var(--gray-100);
}

h1, h2, h3, h4 {
    font-family: 'Space Mono', monospace;
}

h1 {
    font-size: 2.1rem;
    color: var(--primary);
}

h2 {
    font-size: 1.8rem;
    color: var(--primary);
}

h3 {
    font-size: 1.5rem;
    color: var(--secondary);
}

h4 {
    font-size: 1.2rem;
    color: var(--secondary);
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--primary);
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    padding: 16px 30px;
    display: flex;
    justify-content: space-between;
    vertical-align: middle;
}

header img {
    width: 110px;
}

header .btn-cta {
    margin-top: 0px;
}

main {
    margin-top: 50px;
}

footer {
    background-color: var(--primary);
    color: var(--gray-100);
    text-align: center;
    padding: 30px 80px;
    font-size: 13px;
}

footer a {
    color: var(--highlights);
    text-decoration: underline;
    font-weight: bold;
}

.info-footer {
    margin-top: 15px;
    font-size: 10px;
}

section {
    padding: 80px 60px;
}

.btn-cta {
    display: inline-block;
    background-color: var(--highlights);
    color: var(--gray-100);
    font-weight: bold;
    font-family: 'Space Mono', monospace;
    text-align: center;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
    text-decoration: none;
}

.btn-cta:hover {
    background-color: #319E77;
}

.hero {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: space-between;
    background-color: var(--primary);
    color: var(--gray-100);
    height: 100vh;
    overflow: hidden;
    padding: 0px;
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--primary);
    padding: 60px 80px;
    gap: 15px;
}

.hero-text h1 {
    color: var(--gray-100);
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
}

.hero-img {
    flex: 1;
    width: 50%;
    height: 100%;
    padding: 0;
    overflow: hidden;
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.burocracia {
    text-align: center;
}

.burocracia h3 {
    color: var(--gray-100);
}

.burocracia-blocos {
    display: flex;
    flex-wrap: wrap;
    margin-top: 30px;
    color: var(--gray-100);
    overflow: hidden;
    gap: 20px;
}

.burocracia-blocos .bloco {
    background-color: var(--secondary);
    align-content: center;
    border-radius: 8px;
    flex: 1;
    width: 30%;
    padding: 20px 75px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.burocracia-blocos .bloco:last-child {
    border-right: none;
}

.burocracia-blocos h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-family: 'Space Mono', monospace;
}

.burocracia-blocos p {
    font-size: 1rem;
}

.funcionalidades {
    text-align: center;
}

.funcionalidades .block {
    background-color: var(--gray-200);
}

.section-alt {
    text-align: center;
    background-color: var(--gray-200);
}

.grid {
    margin-top: 30px;
    display: grid;
    gap: 40px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-2 {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.grid-2 .text-block,
.grid-2 .img-block {
    width: 100%;
}

.block {
    background: var(--gray-100);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    margin: 10px;
}

.block.secondary {
    background-color: var(--secondary);
    color: var(--gray-100);
}

.block img {
    height: 48px;
    margin-bottom: 16px;
}

.contato {
    text-align: center;
    background-color: var(--highlights);
    color: var(--gray-100);
    padding: 60px 20px;
}

.contato h2 {
    margin-bottom: 20px;
}

.contato a {
    display: inline-block;
    background: var(--gray-100);
    color: var(--primary);
    padding: 12px 24px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
    margin-top: 20px;
    cursor: pointer;
    font-family: 'Space Mono', monospace;
}

.contato a:hover {
    background: #eceef4;
}

.carousel-wrapper {
    position: relative;
    margin-top: 40px;
    padding-bottom: 40px;
}

.carousel {
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
}

.carousel .block {
    flex: 0 0 calc(100% - 50px);
    margin-right: 20px;
    transition: transform 0.3s ease-in-out;
}

@media (min-width: 768px) {
    .carousel .block {
        flex: 0 0 calc(100% / 3.5);
    }
}

@media (min-width: 1200px) {
    .carousel .block {
        flex: 0 0 calc(25% - 20px);
    }
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary);
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}

.carousel-arrow.left {
    left: 10px;
}

.carousel-arrow.right {
    right: 10px;
}

.grid-img-text {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.text-block {
    flex: 1;
    text-align: left;
}

.img-block {
    flex: 1;
}

.img-block img {
    width: 100%;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-weight: bold;
}

.check-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--highlights);
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.lightbox-content {
    position: relative;
    width: 80%;
    height: 80%;
    background: var(--gray-100);
    border-radius: 8px;
    overflow: hidden;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    background: none;
    color: var(--primary);
    border: none;
    cursor: pointer;
}

.autoridade {
    background-color: var(--secondary);
    color: var(--gray-100);
    text-align: center;
    padding: 40px 150px;
}

.autoridade h2 {
    color: var(--gray-100);
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        height: fit-content;
    }

    .hero-text {
        padding: 40px 30px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-img {
        width: 100%;
    }

    header h1 {
        font-size: 1rem;
        text-align: center;
    }

    section {
        padding: 40px 30px;
    }

    .burocracia-blocos .bloco {
        width: 100%;
        padding: 20px 30px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    h4 {
        font-size: 1.2rem;
    }

    .grid-2 {
        flex-direction: row;
        align-items: center;
    }

    .grid-2 .text-block {
        order: 1;
        text-align: left;
    }

    .grid-2 .img-block {
        order: 2;
    }

    .grid-img-text {
        flex-direction: column;
    }
}
