:root {
    --primary-dark: #2a303e; /* Azul escuro do fundo */
    --primary-gold: #dab675; /* Dourado/Bege dos botões e detalhes */
    --text-dark: #333333;
    --text-light: #f9f9f9;
    --bg-light: #f4f4f4;
    --font-main: 'Montserrat', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

body {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    font-family: var(--font-main);
}

a {
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.line-top {
    background-color: var(--primary-dark);
    width: 100%;
    height: 10px;
}

/* Agrupa .btn-gold com .action-button para evitar duplicação de regras */
.action-button, .btn-gold {
    background-color: var(--primary-gold);
    color: var(--primary-dark);
    padding: 15px 30px;
    font-weight: 600;
    border-radius: 4px;
    display: inline-block;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.action-button:hover,
.btn-gold:hover {
    filter: brightness(0.95);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    height: 100px;
    max-width: 1200px;
    padding: 0 20px;

    img {
        height: 90px;
        width: auto;
    }

    ul {
        list-style: none;
        display: flex;
        align-items: center;
        gap: 30px;
        margin: 0;
        padding: 0;
    }

    a {
        color: var(--primary-dark);
        font-weight: 400;
        font-size: 17px;
        transition: color 0.3s;
    }

    a:hover {
        color: var(--primary-gold);
    }
}

.hero {
    background-image: linear-gradient(rgba(0, 9, 132, 0.18), rgba(0, 9, 132, 0.18)),
    linear-gradient(rgba(44, 49, 68, 0.35), rgba(44, 49, 68, 0.35)),
    url('./images/hero-1920.webp');
    background-size: cover;
    background-position: center;
    height: calc(100vh - 110px);
    max-height: 1000px;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--text-light);

    h1 {
        font-size: 48px;
        font-weight: 600;
        margin-bottom: 10px;
    }

    h2 {
        font-size: 24px;
        font-weight: 400;
        margin-bottom: 30px;
        line-height: 1.3;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55); /* sombra sutil para melhor leitura */
    }
}

/* Regra de nível superior adicionada para garantir aplicação em CSS puro */
.hero-content {
    width: 100%;
    color: #fff;
    padding: 0 20px;
}

.expertise {
    padding: 30px 0;
    background-color: #fff;

    h3 {
        font-size: 28px;
        color: var(--primary-dark);
        font-weight: 700;
    }

    .expertise-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        text-align: justify;
    }

    .expertise-text strong {
        font-weight: 700;
    }
}

.operation {
    background-color: var(--primary-dark);
    color: #fff;
    padding: 40px 0;

    h3 {
        font-size: 28px;
        margin-bottom: 40px;
        font-weight: 600;
    }

    .cards-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        margin-bottom: 40px;
    }

    .card {
        background-color: rgba(255, 255, 255, 0.1);
        padding: 25px;
        border-left: 4px solid var(--primary-gold);
        display: flex;
        flex-direction: row;
        gap: 10px;

        .card-icon {
            display: flex;
            height: 100%;

            > img {
                width: 40px;
                height: 40px;
            }
        }

        .card-content {
            display: flex;
            flex-direction: column;
        }
    }


    h4 {
        font-size: 18px;
        font-weight: 700;
    }

    p {
        font-size: 13px;
        line-height: 1.4;
        opacity: 0.9;
    }

    .atuacao-footer-text {
        font-size: 16px;
        max-width: 900px;
        opacity: 0.9;
    }
}

.services {
    padding: 40px 0;
    background-color: #fff;

    h3 {
        font-size: 26px;
        color: var(--primary-dark);
        font-weight: 700;
    }

    p {
        margin-bottom: 20px;
    }

    li {
        position: relative;
        padding-left: 25px;
        margin-bottom: 5px;
        font-weight: 500;
        color: var(--primary-dark);
    }

    li::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 22px;
        height: 22px;
        background-image: url('./icon/gavel-blue.svg');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .spacer {
        height: 40px;
    }
}

.contact-cta {
    background-color: var(--bg-light);
    padding: 20px 0 60px;

    h3 {
        font-size: 28px;
        color: var(--primary-dark);
        margin-bottom: 20px;
    }

    .contact-info-row {
        display: flex;
        flex-wrap: wrap;
        gap: 1%;
        margin: 30px 10%;
        align-items: center;
        justify-content: space-between;
    }

    .info-item {
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 500;
        color: var(--primary-dark);

        i {
            font-size: 20px;
            color: var(--text-dark);
        }

        img {
            width: 25px;
        }
    }
}


footer {
    background-color: var(--primary-dark);
    color: #ccc;
    padding: 50px 0 20px;
    font-size: 14px;
    position: relative;

    a {
        color: white;
    }

    a:hover {
        text-decoration: underline;
    }

    .footer-content {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 40px;
        padding-bottom: 40px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-logo {
        img {
            width: 128px;
        }
    }

    .footer-logo .logo-text {
        color: var(--primary-gold);
    }

    .footer-address {
        flex: 1;
        line-height: 1.6;
    }

    .copyright {
        text-align: center;
        padding-top: 20px;
        font-size: 12px;
    }
}

@media (max-width: 912px) {
    .expertise {
        .expertise-grid {
            grid-template-columns: 1fr;
            gap: 20px
        }
    }

    .contact-cta {
        .contact-info-row {
            margin: 20px 0;
        }
    }
}

@media (max-width: 600px) {
    .navbar {
        ul {
            display: none;
        }
    }

    .btn-gold {
        display: flex;
        width: 100%;
        justify-content: center;
    }

    .operation .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
