/* --- VARIÁVEIS & GLOBAL --- */
:root {
    --primary-blue: #0E548A;
    --dark-blue: #082655;
    --solar-orange: #FF5C00;
    --solar-gradient: linear-gradient(90deg, #E7AE3D 0%, #FF5C00 100%);
    --white: #FFFFFF;
    --radius: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Georama', sans-serif;
    background-color: #FAFAFA;
    color: var(--dark-blue);
    overflow-x: hidden;
}

/* --- HEADER --- */
header {
    background: var(--white);
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    margin: 20px 5%;
    border-radius: var(--radius);
    position: absolute;
    width: 90%;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.logo img {
    height: 50px;
}

/* Menu Desktop padrão */
.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 15px;
    font-size: 14px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--solar-orange);
}

/* Ícone Hambúrguer (Oculto no Desktop) */
.menu-btn {
    display: none;
    /* Só aparece no mobile */
    font-size: 28px;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 10px;
    /* Área de clique maior */
    z-index: 1200;
    /* Acima de tudo */
}

.mobile-cta {
    display: none;
}

.btn-header {
    background: linear-gradient(260deg, #0E548A 0%, #082655 100%);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 0 var(--radius) var(--radius) 0;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

/* --- HERO --- */
.hero {
    min-height: 85vh;
    background: linear-gradient(rgba(8, 38, 85, 0.5), rgba(8, 38, 85, 0.8)),
        url('https://darkturquoise-gaur-890129.hostingersite.com/wp-content/uploads/2025/06/bg-hero-min-3.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 120px 8% 80px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.hero-text h1 {
    color: var(--white);
    font-size: 64px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero-text h1 b {
    background: var(--solar-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Texto abaixo do H1 */
.hero-text p {
    color: var(--white);
    /* Padrão desktop */
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-whatsapp {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    background: rgba(255, 92, 0, 0.1);
    border: 2px solid var(--solar-orange);
    border-radius: 50px;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    transition: 0.3s;
    animation: pulse-orange 2s infinite;
}

.btn-whatsapp i {
    color: var(--solar-orange);
    font-size: 24px;
}

.btn-whatsapp:hover {
    background: var(--solar-orange);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 92, 0, 0.4);
}

.btn-whatsapp:hover i {
    color: var(--white);
}

@keyframes pulse-orange {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 92, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 92, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 92, 0, 0);
    }
}

/* --- CALCULADORA --- */
.glass-calc {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    overflow: hidden;
    transition: height 0.3s ease;
}

.glass-calc h3 {
    margin-top: 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: none;
    font-family: 'Georama';
    box-sizing: border-box;
}

.row-flex {
    display: flex;
    gap: 10px;
}

.btn-simular {
    width: 100%;
    background: var(--solar-gradient);
    color: var(--white);
    padding: 20px;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn-simular:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 92, 0, 0.3);
}

.loader {
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid var(--solar-orange);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- OUTRAS SEÇÕES (Padrão) --- */
.about {
    padding: 100px 8%;
    background: #fff;
}

.container-about {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
    max-height: 500px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.selo-qualidade {
    width: 100px;
    margin-bottom: 20px;
}

.about-text h2 {
    font-size: 42px;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--primary-blue);
}

.about-text h2 span {
    color: var(--solar-orange);
}

.btn-secundario {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 35px;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
    border-radius: 10px;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-secundario:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.services {
    padding: 100px 8%;
    text-align: center;
    background: #FAFAFA;
}

.services-header h2 {
    font-size: 56px;
    text-transform: uppercase;
    color: var(--primary-blue);
    margin-bottom: 60px;
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    min-height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    padding: 0 50px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.card-1 {
    background-image: url('https://darkturquoise-gaur-890129.hostingersite.com/wp-content/uploads/2025/06/bg-servico-1.jpg');
}

.card-2 {
    background-image: url('https://darkturquoise-gaur-890129.hostingersite.com/wp-content/uploads/2025/06/bg-servico-2.jpg');
    justify-content: flex-end;
}

.card-3 {
    background-image: url('https://darkturquoise-gaur-890129.hostingersite.com/wp-content/uploads/2025/06/bg-servico-3-1.jpg');
}

.service-box {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    width: 45%;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-box h4 {
    color: var(--primary-blue);
    font-size: 24px;
    text-transform: uppercase;
    margin: 0 0 15px 0;
}

.service-box p {
    margin: 0;
    line-height: 1.6;
}

.benefits {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    padding: 120px 8%;
    text-align: center;
    color: var(--white);
}

.benefits h2 {
    font-size: 48px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 60px;
}

.highlight-solar {
    color: var(--solar-orange);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px 30px;
    border-radius: var(--radius);
    transition: 0.3s;
}

.benefit-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--solar-orange);
}

.benefit-card i {
    font-size: 60px;
    color: var(--solar-orange);
    margin-bottom: 25px;
    display: block;
}

.benefit-card h4 {
    font-size: 22px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.btn-white {
    background: var(--white);
    color: var(--primary-blue);
    padding: 18px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    margin-top: 60px;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-white:hover {
    transform: scale(1.05);
}

.portfolio {
    padding: 100px 8%;
    background-color: var(--white);
    text-align: center;
}

.portfolio-header h2 {
    font-size: 56px;
    color: var(--primary-blue);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.highlight-blue {
    color: var(--dark-blue);
}

.portfolio-header p {
    margin-bottom: 60px;
    font-size: 18px;
    color: #666;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    height: 220px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(8, 38, 85, 0.9));
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: 0.3s;
    box-sizing: border-box;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay span {
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
}

.faq {
    padding: 100px 8%;
    background: #FAFAFA;
    text-align: center;
}

.faq h2 {
    font-size: 48px;
    color: var(--primary-blue);
    text-transform: uppercase;
    margin-bottom: 50px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

details {
    background: var(--white);
    margin-bottom: 15px;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #EEE;
    cursor: pointer;
    transition: 0.3s;
}

details:hover {
    border-color: var(--solar-orange);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

summary {
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

summary::after {
    content: '+';
    font-size: 24px;
    color: var(--solar-orange);
    font-weight: 400;
}

details[open] summary::after {
    content: '-';
}

details p {
    margin-top: 20px;
    line-height: 1.6;
    color: #555;
}

footer {
    background: var(--dark-blue);
    padding: 100px 8% 40px;
    color: var(--white);
    text-align: center;
}

.footer-cta h3 {
    font-size: 42px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo img {
    height: 50px;
    opacity: 0.8;
}

.footer-rights {
    font-size: 14px;
    opacity: 0.6;
    line-height: 1.8;
}

/* --- RESPONSIVIDADE (MOBILE CORRIGIDO) --- */
@media (max-width: 1024px) {
    header {
        width: 90%;
        padding: 0 20px;
        justify-content: space-between;
        position: absolute;
    }

    /* Botão Menu Ativado */
    .menu-btn {
        display: block;
    }

    /* Esconder o botão desktop */
    .desktop-only {
        display: none !important;
    }

    /* MENU MOBILE (CORRIGIDO) */
    .nav-links {
        display: none;
        /* Escondido por padrão */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px 0;
        border-radius: 0 0 var(--radius) var(--radius);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        text-align: center;
        z-index: 1100;
        /* Garante que fique acima da calculadora */
    }

    /* CLASSE JS PARA ABRIR O MENU - COM !IMPORTANT */
    .nav-links.active {
        display: flex !important;
        /* FORÇA A ABERTURA */
        animation: slideDown 0.3s ease;
    }

    .nav-links a {
        margin: 15px 0;
        display: block;
        font-size: 16px;
    }

    .mobile-cta {
        display: inline-block;
        background: var(--primary-blue);
        color: white !important;
        padding: 10px 20px;
        border-radius: 8px;
    }

    /* Hero Mobile */
    .hero {
        padding: 150px 5% 80px;
        align-items: flex-start;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    /* --- CORREÇÃO DE COR DO TEXTO --- */
    /* Força cor branca com especificidade máxima */
    .hero-text p {
        color: #FFFFFF !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
        /* Sombra para leitura */
    }

    .glass-calc {
        max-width: 100%;
        margin: 0 auto;
    }

    .container-about {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        order: -1;
        max-height: 300px;
    }

    .selo-qualidade {
        margin: 0 auto 20px;
        display: block;
    }

    .services-header h2,
    .benefits h2,
    .portfolio-header h2,
    .faq h2 {
        font-size: 32px;
    }

    .service-card {
        padding: 40px 20px;
        flex-direction: column;
        text-align: center;
    }

    .service-box {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}