/* --- FONTES --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* --- VARIÁVEIS --- */
:root {
    --primary-color: #009ffd;
    --secondary-color: #2a2a72;
    --dark-color: #1a1a1a;
    --gray-color: #f0f2f5;
    --text-color: #333;
    --light-text-color: #666;
    --white-color: #fff;
    --header-height: 80px;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* --- RESET E GLOBAIS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    color: var(--light-text-color);
}

a {
    text-decoration: none;
    color: #0066cc; /* Cor ajustada para contraste acessível (WCAG AA) */
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* Acessibilidade: Foco visível para navegação por teclado */
:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--light-text-color);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: var(--white-color);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 159, 253, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 159, 253, 0.6);
    color: var(--white-color);
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-svg {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary-color);
}

/* Header Scrolled State */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(5px);
}

/* Estilos da Página de Política de Privacidade */
.privacy-policy-section {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 80px;
}
.privacy-policy-section h1 { font-size: 2.8rem; color: var(--secondary-color); margin-bottom: 20px; text-align: center; }
.privacy-policy-section h2 { font-size: 1.8rem; color: var(--secondary-color); margin-top: 40px; margin-bottom: 15px; border-bottom: 2px solid var(--primary-color); padding-bottom: 5px; }
.privacy-policy-section p, .privacy-policy-section ul { color: var(--light-text-color); margin-bottom: 15px; line-height: 1.8; }
.privacy-policy-section ul { list-style-type: disc; padding-left: 20px; }
.privacy-policy-section strong { color: var(--text-color); }
.privacy-policy-section a { font-weight: 600; }


/* --- HERO SECTION --- */
.hero {
    padding-top: calc(var(--header-height) + 80px);
    background-color: var(--gray-color);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-text .highlight {
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 450px;
}

/* --- SERVICES SECTION --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white-color);
    padding: 40px;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* --- ABOUT SECTION --- */
.about {
    background-color: var(--gray-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* --- CONTACT SECTION --- */
.contact {
    background-color: var(--gray-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--white-color);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-info h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
}

.contact-detail h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 159, 253, 0.5);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-group-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* --- FOOTER --- */
footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h3,
.footer-map h3 {
    color: var(--white-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-map {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.footer-map iframe {
    flex-grow: 1;
    min-height: 200px;
    transition: var(--transition);
}

.footer-map iframe:hover {
    transform: scale(1.02);
}

.footer-map-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    align-self: flex-start;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.footer-map-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    color: var(--white-color);
}

.footer-links ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-links ul li a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-links ul a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links ul a:hover {
    color: var(--white-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- AI WHATSAPP BUTTON --- */
.ai-whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    animation: pulse 2s infinite;
    animation: pulse 1.5s infinite;
    transition: transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.ai-whatsapp-button:hover {
    animation: none;
    transform: scale(1.1);
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- MODAL --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px;
    position: relative;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    border: none;
    background: none;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: black;
}

.modal-header h2 {
    color: var(--secondary-color);
}

.modal-body h3 {
    margin-top: 20px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.modal-body ul {
    list-style: none;
}

.modal-body ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.modal-body ul li .fa-check-circle {
    color: var(--primary-color);
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.modal-gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
}

/* --- WHATSAPP MODAL --- */
.whatsapp-modal-content {
    text-align: center;
    max-width: 400px;
}

.technician-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.technician-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.technician-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    color: white;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    padding: 20px;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 800px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .about-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .nav-links, .header-container > .cta-button {
        display: none;
    }

    .nav-links {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        transform: translateY(-120%);
        transition: transform 0.4s ease-in-out;
        z-index: -1;
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0);
    }

    .nav-links a {
        width: 100%;
        padding: 15px 0;
        text-align: center;
        display: block;
    }

    .mobile-menu {
        display: block;
    }

    .contact-container {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in-element {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes slideDownFade {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-down-fade-in {
    animation: slideDownFade 0.8s ease-out forwards;
}