:root {
    --green-dark: #0f3421;
    --green-primary: #3b6e38;
    --green-accent: #76b843;
    --brown-btn: #6d4c3d;
    --gold-btn: #c89d3c;
    --text-dark: #1e2923;
    --text-muted: #606f67;
    --bg-light: #f8faf8;
    --white: #ffffff;
    --radius: 10px;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.5;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

img {
    max-width: 100%;
    display: block;
}

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

/* BOTÕES GERAIS */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: transform 0.2s, background 0.2s;
}

.btn-primary {
    background-color: var(--green-accent);
    color: var(--white);
}

.btn-outline-light {
    border: 1px solid rgba(255,255,255,0.7);
    color: var(--white);
    background: rgba(0,0,0,0.25);
}

.btn-outline-dark {
    border: 1px solid #c5cfc9;
    color: var(--text-dark);
    background: var(--white);
}

/* NAVBAR */

.navbar {
    background: var(--white);
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.3s ease-in-out;
}

.navbar.nav-hidden {
    transform: translateY(-100%);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGOS - ÚNICA ALTERAÇÃO SOLICITADA */

.logos {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: 35px;
}

.logos img {
    height: 60px;
    max-height: 60px;
    width: auto;
    object-fit: contain;
    transform: scale(1.5);
}

.nav-links {
    display: flex;
    gap: 8px;
}

.btn-nav {
    padding: 8px 16px;
    border-radius: 6px;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    transition: opacity 0.2s;
}

.btn-nav:hover {
    opacity: 0.9;
}

.btn-green-dark {
    background-color: #3b6e38;
}

.btn-green-light {
    background-color: #76b843;
}

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

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    background: var(--green-dark);
}

/* HERO (SÓ VÍDEO) */

.hero {
    position: relative;
    width: 100%;
    background-color: var(--green-dark);
    overflow: hidden;
    line-height: 0;
}

.hero-video {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

/* CLIENTES (ESTEIRA CONTÍNUA - ENTRADA E SAÍDA) */

.clients-section {
    padding: 15px 0 35px;
    border-bottom: 1px solid #e9eeeb;
    overflow: hidden;
    position: relative;
}

.clients-section .container {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
    mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
}

.clients-section .section-subtitle {
    margin-left: 60px;
}

.clients-grid {
    margin-top: 15px;
    display: flex;
    align-items: center;
    width: max-content;
    gap: 60px;
    animation: esteiraClientes 15s linear infinite;
}

.clients-grid:hover {
    animation-play-state: paused;
}

.clients-grid img {
    max-height: 85px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

@keyframes esteiraClientes {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* SECTIONS */

.section {
    padding: 64px 0;
}

.pt-0 {
    padding-top: 10px;
}

.section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--green-primary);
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.section-subtitle::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--green-accent);
}

.section-subtitle.light {
    color: var(--green-accent);
}

.section-header-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 36px;
}

.section-header-split h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    line-height: 1.2;
}

.section-header-right {
    max-width: 380px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.link-arrow {
    display: inline-block;
    margin-top: 8px;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--green-primary);
}

/* 4 CARDS ESPECIALIDADES (INDEX) */

.cards-4-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.service-card {
    position: relative;
    height: 360px;
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--white);
    display: block;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,0.8) 100%
    );
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.service-card p {
    font-size: 0.83rem;
    opacity: 0.92;
}

.btn-card {
    align-self: flex-start;
    padding: 8px 22px;
    border: 1px solid rgba(255,255,255,0.75);
    border-radius: 6px;
    font-size: 0.8rem;
    background: rgba(0,0,0,0.35);
    color: white;
}

/* PROYECTOS DESTACADOS */

.section-dark {
    background-color: var(--green-dark);
    color: var(--white);
    padding: 64px 0;
}

.projects-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: center;
}

.projects-info h2 {
    font-size: 2rem;
    line-height: 1.15;
    margin-bottom: 14px;
}

.projects-info p {
    font-size: 0.88rem;
    opacity: 0.85;
    margin-bottom: 24px;
}

/* LISTAGEM DE PROJETOS (proyectos.html) */

.projects-header {
    text-align: center;
    margin-bottom: 40px;
    color: var(--green-primary);
}

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

#featured-projects-grid {
    grid-template-columns: repeat(2, 1fr);
}

.project-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.project-card-img-wrapper {
    height: 220px;
    overflow: hidden;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.project-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.project-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.project-info strong {
    color: var(--brown-btn);
}

/* SOBRE NOSOTROS */

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

.about-image img {
    border-radius: var(--radius);
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.about-content h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 14px;
}

.about-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 26px;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* EQUIPO */

.team-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 36px;
    align-items: center;
}

.team-text h2 {
    font-size: 1.9rem;
    margin-bottom: 12px;
}

.team-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.team-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.team-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

.team-card h4 {
    font-size: 0.8rem;
    color: var(--text-dark);
}

/* CONTACTO */

.contact-section {
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.contact-info > p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    font-size: 0.9rem;
}

.contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--green-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-form {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e1e7e3;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.88rem;
}

.btn-submit {
    background: var(--green-primary);
    color: var(--white);
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-map {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 360px;
}

.contact-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-map {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* FOOTER */

.footer {
    background: var(--green-dark);
    color: var(--white);
    padding: 56px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr 1.3fr;
    gap: 32px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 14px 0 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--green-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer h4 {
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
    opacity: 0.85;
}

.footer-addresses li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.75;
}

.footer-legal {
    display: flex;
    gap: 10px;
}

/* DETALHES DO PROJETO E NAVEGAÇÃO */

.back-link {
    display: inline-block;
    margin: 20px 0;
    font-weight: 600;
    color: var(--green-primary);
}

.project-detail-container h1 {
    font-size: 2.2rem;
    color: var(--green-dark);
    margin-bottom: 10px;
}

.title-divider {
    width: 60px;
    height: 4px;
    background-color: var(--green-accent);
    margin-bottom: 30px;
}

.project-detail-container .main-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 40px;
}

.project-detail-container h2 {
    font-size: 1.5rem;
    color: var(--green-dark);
    margin: 30px 0 15px;
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.gallery-thumb img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-thumb img:hover {
    transform: scale(1.05);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    background: var(--bg-light);
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 30px;
}

/* MODAL */

.custom-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.modal-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

#img-modal-content {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.next {
    right: 0;
    border-radius: 0 3px 3px 0;
}

.prev:hover,
.next:hover {
    background-color: rgba(0,0,0,0.8);
}

.modal-caption {
    color: #ccc;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

/* ====================================================
   BANNER DE COOKIES (NOVO ESTILO PARA 3 BOTÕES)
==================================================== */

.cookie-banner {
    position: fixed;
    bottom: -200px;
    left: 0;
    width: 100%;
    background-color: var(--green-dark);
    color: var(--white);
    padding: 16px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.15);
    transition: bottom 0.5s ease-in-out;
    z-index: 9999;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-banner p {
    font-size: 0.85rem;
    margin-right: 20px;
    line-height: 1.5;
    flex: 1;
}

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

.cookie-btn {
    background-color: var(--green-accent);
    color: var(--white);
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: background 0.2s, opacity 0.2s;
    white-space: nowrap;
}

.cookie-btn:hover {
    opacity: 0.9;
}

.cookie-btn-outline {
    background-color: transparent;
    border: 1px solid var(--white);
}

.cookie-btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
    opacity: 1;
}

/* MORADAS INTERATIVAS (MAPA) */

.address-selector {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: -4px;
}

.map-link {
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    font-size: 0.9rem;
}

.map-link:hover {
    background-color: rgba(118,184,67,0.1);
}

.map-link.active {
    background-color: rgba(118,184,67,0.15);
    border-left: 3px solid var(--green-primary);
    font-weight: 600;
    color: var(--green-dark);
}

/* RESPONSIVO */

@media (max-width: 992px) {
    .cards-4-grid,
    .projects-grid,
    #featured-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-layout,
    .about-grid,
    .team-layout,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cookie-banner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px 5%;
    }

    .cookie-banner p {
        margin-right: 0;
    }

    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px;
        box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    }

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

    .cards-4-grid,
    .projects-grid,
    #featured-projects-grid,
    .team-cards,
    .about-features {
        grid-template-columns: 1fr;
    }
}