:root {
    --primary: #002855;
    --secondary: #359af1;
    --light: #f9f9f9;
    --dark: #333;
    --golden: #ffbf00;
    --gradient: linear-gradient(135deg, rgba(0, 40, 85, 0.85), rgba(0, 40, 85, 0.55));
    --light-blue: #a2c5fa;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--dark);
    background: #f1f1f1;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    background: url('../img/background.jpg') center/cover no-repeat;
    /*background: linear-gradient(135deg, #a8edea 0%, #3bb6c1 50%, #0380b0 100%);*/
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
}

.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-header {
    position: absolute;
    top: 20px;
    left: 30px;
    z-index: 10;
}

.logo-hero {
    width: 200px;
}

.hero-content {
    position: relative;
    max-width: 500px;
    padding: 2rem;
    z-index: 2;
    text-align: left;
    margin-right: 5%;
}

.hero-content h1 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2.8rem;
}

.hero-content p {
    color: #eee;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: white;
    animation: bounce 1.8s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, -12px);
    }
}

/* Botões */
.btn {
    background: var(--secondary);
    color: black;
    padding: 0.8rem 1.6rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin: 0.4rem;
    display: inline-block;
    transition: 0.3s;
}

.btn:hover {
    background: #004595;
}

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

.btn.whatsapp {
    background: #25d366;
    color: white;
}

.btn.whatsapp:hover {
    background: #1ebe5d;
}

/* Containers */
.container {
    width: 90%;
    max-width: 1150px;
    margin: auto;
    padding: 4rem 0;
}

/* Grid layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* Cards */
.card,
.value-card {
    background: white;
    padding: 1.7rem;
    padding-right: 10px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.card:hover,
.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.card i,
.value-card i {
    font-size: 2rem;
    color: var(--golden);
    margin-bottom: 0.8rem;
}

/* Missão & Visão premium */
.card.mission,
.card.vision {
    background: #ffffff;
}

/* Estrutura Organizacional - Rede */
.structure {
    background: #f7f9fc;
    text-align: center;
}

.structure h2 {
    margin-bottom: 2.5rem;
    color: var(--primary);
}

.org-network {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Nó com linha vertical */
.org-node {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.line-vertical {
    width: 2px;
    height: 40px;
    background: #ccc;
    margin: 0.5rem 0;
}

/* Caixa */
.org-box {
    background: white;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    min-width: 180px;
    transition: transform .3s;
}

.org-box:hover {
    transform: translateY(-4px);
}

.org-box h3 {
    font-size: 1rem;
    color: var(--gradient);
}

.org-box p {
    font-size: .85rem;
    margin: 0;
    color: #444;
}

/* Destaque do Sócio-Gerente */
.org-box.highlight {
    background: var(--gradient);
    color: white;
}

.org-box.highlight h3 {
    color: white;
}

/* Departamentos em linha */
.org-level {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    position: relative;
    margin-top: 1rem;
    max-width: 1100px;
}

/* Linha horizontal única */
.org-level::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ccc;
    z-index: 0;
}

.org-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.line-horizontal {
    width: 2px;
    height: 20px;
    background: #ccc;
    margin-bottom: 0.5rem;
}

/* Ajuste para cards menores */
.org-box.small {
    min-width: 180px;
    font-size: .85rem;
    padding: 1rem;
}


/* Serviços */
.service-card {
    position: relative;
    /* deixa de ser altura fixa */
    min-height: 340px;
    /* permite crescer com o conteúdo */
    height: auto;
    border-radius: 14px;
    overflow: hidden;
    /* mantém cantos arredondados sem cortar o conteúdo */
    background-size: cover;
    background-position: center;
    transition: transform 0.25s ease;
}

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

/* gradiente por cima do background, sem “prender” o conteúdo */
.service-card .overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient);
    z-index: 0;
    border-radius: 14px;
}

.service-card .overlay {
    position: relative;
    /* <<< chave para o card acompanhar o conteúdo */
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: .4rem;
}

/* conteúdo sempre acima do gradiente */
.service-card .overlay > * {
    position: relative;
    z-index: 1;
}

/* animação/efeito */
.service-card:hover {
    transform: translateY(-3px);
}

.service-card i {
    font-size: 2rem;
    color: var(--light-blue);
}

.service-card h3 {
    color: var(--light);
    margin: .2rem 0 .4rem;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    color: var(--light);
}

/* Texto adicional (detalhes) escondido até hover */
/* bloco com detalhes (colapsado por padrão) */
.service-more {
    max-height: 0;
    overflow: clip;
    /* evita scrollbar e pequenos “vazamentos” */
    opacity: 0;
    transition: max-height .5s ease, opacity .35s ease;
    font-size: .9rem;
    margin-top: .4rem;
}

.service-more ul {
    margin: .4rem 0 0 1.2rem;
    padding: 0;
    list-style: disc;
    color: var(--light);
}

/* ao passar o mouse, abre de verdade (sem cortar) */
.service-card:hover .service-more,
.service-card.active .service-more {
    max-height: 1200px;
    /* super alto para caber qualquer texto */
    opacity: 1;
}

/* Botão para mobile */
.mobile-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    position: absolute;
    bottom: 15px;
    right: 15px;
    cursor: pointer;
    z-index: 10;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsividade */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .service-card {
        min-height: 280px;
    }

    .service-card:hover {
        transform: none;
    }

    .service-card:hover .service-more {
        max-height: 0;
        opacity: 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .service-card.active {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }

    .service-card.active .service-more {
        max-height: 1200px;
        opacity: 1;
    }

    .service-card.active .mobile-toggle i {
        transform: rotate(180deg);
    }
}

@media (max-width: 480px) {
    #services h2 {
        font-size: 2rem;
    }

    .service-card {
        min-height: 250px;
    }

    .overlay {
        padding: 1.2rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }
}

/* Valores */
.values {
    background: #f7f9fc;
}

.value-card {
    background: white;
    padding: 1.5rem;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

/* Clientes (carrossel) */
.clients {
    background: #ffffff;
    padding: 4rem 0;
}

.clients-carousel {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 5rem;
    width: max-content; /* garante largura adaptável */
    animation: scroll 40s linear infinite; /* pode aumentar a duração para ficar mais suave */
}

.carousel-track img {
    width: auto;
    height: 100px;
    object-fit: contain;
    transition: filter 0.3s;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Contato */
/* Contato refinado */
.contact {
    background: var(--primary);
    color: white;
    text-align: center;
}

.contact h2 {
    color: var(--secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    align-items: start;
    text-align: left;
}

.contact-form {
    width: 400px;
    background: #fff;
    color: #333;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.contact-form .form-group {
    margin-bottom: 1.2rem;
}

.contact-form label {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: .4rem;
    color: #444;
}

.contact-form input,
.contact-form textarea {
    width: 90%;
    max-width: 100%;
    padding: .8rem 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: .95rem;
    transition: border .3s;
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--secondary);
    outline: none;
}

.contact-form button {
    margin-top: .5rem;
    width: 100%;
}

.contact-alt {
    background: rgba(255, 255, 255, 0.08);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}

.contact-alt h3 {
    margin-bottom: .8rem;
    color: var(--secondary);
}

.contact-alt p {
    margin-bottom: 1.2rem;
    font-size: .95rem;
    color: #eee;
}

.contact-alt .btn.small {
    display: inline-block;
    padding: .6rem 1.2rem;
    font-size: .9rem;
    margin: .3rem;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 490px) {
    .contact-form {
        width: 90%;
        padding: 1rem;
    }

    .logo-hero {
        width: 200px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 10px;
    }
}

/* Footer */
footer {
    background: #111;
    color: #bbb;
    padding: 2rem 0 0;
}

footer p {
    margin: 0.3rem 0;
}

.footer-wrap {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
    gap: 2rem;
}

.footer-info h3 {
    color: var(--secondary);
    margin-bottom: .4rem;
}

.footer-info h4 {
    margin-top: 1.5rem;
    margin-bottom: .6rem;
    color: white;
    font-size: 1rem;
}

.footer-services {
    list-style: disc;
    padding-left: 1.2rem;
    margin: 0;
}

.footer-services li {
    margin-bottom: .4rem;
    font-size: .9rem;
    color: #ddd;
}

footer .map {
    margin-top: 50px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding: 1rem;
    font-size: .85rem;
    color: #888;
}

@media (max-width: 900px) {
    .footer-wrap {
        grid-template-columns: 1fr;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-content {
        max-width: 100%;
        margin: 0 5%;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .structure-grid {
        grid-template-columns: 1fr;
    }
}