/* --- VARIAVEIS E RESET GLOBAL --- */
:root {
    --bg-dark-color: #0B121A; /* Cor de fallback */
    --bg-section: #111A23;
    --primary-blue: #00BFFF;
    --text-light: #EAEFF4;
    --text-gray: #A0B3C4;
    --card-bg: #1A2633;
    --border-color: rgba(0, 191, 255, 0.2);
    --font-primary: 'Exo 2', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { 
    font-family: var(--font-secondary); 
    color: var(--text-light); 
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--bg-dark-color);
    background-image: url('https://www.transparenttextures.com/patterns/dark-matter.png');
    background-attachment: fixed;
}

body.nav-open { overflow: hidden; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 100px 0; border-bottom: 1px solid var(--border-color); background-color: rgba(17, 26, 35, 0.8); backdrop-filter: blur(5px); }
section:nth-of-type(even) { background-color: rgba(11, 18, 26, 0.8); }
.section-title { font-family: var(--font-primary); font-size: 3rem; font-weight: 900; text-align: center; text-transform: uppercase; margin-bottom: 10px; }
.section-title span { color: var(--primary-blue); }
.section-subtitle { text-align: center; max-width: 600px; margin: 0 auto 60px; color: var(--text-gray); }

/* --- COMPONENTES REUTILIZAVEIS --- */
.cta-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 30px; background-image: linear-gradient(45deg, var(--primary-blue) 0%, #0088cc 100%);
    color: #fff; border-radius: 50px; text-decoration: none; font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}
.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.3);
}

/* --- PRELOADER --- */
.preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #0B121A; z-index: 9999; display: grid; place-items: center; transition: opacity 0.8s ease, visibility 0.8s ease; }
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader img { width: 160px; animation: pulse 1.0s infinite ease-in-out; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

/* --- HEADER --- */
.header { position: fixed; top: 0; left: 0; width: 100%; padding: 15px 0; z-index: 1000; transition: all 0.3s ease; }
.header.scrolled { background-color: rgba(11, 18, 26, 0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); }
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 50px; margin-right: 15px; border-radius: 5px; }
.logo span { font-family: var(--font-primary); font-size: 1.5rem; font-weight: 700; color: var(--text-light); }

/* Estilos base da navegação para desktop */
.main-nav ul { display: flex; list-style: none; align-items: center; gap: 30px; }
.main-nav a { color: var(--text-light); text-decoration: none; font-weight: 500; transition: color 0.3s; }
.main-nav a:hover { color: var(--primary-blue); }
.header-cta { display: block; padding: 10px 20px; font-size: 0.9rem; }
.mobile-menu-toggle { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* --- HERO --- */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; background-image: url('logos da minha assistencia/logo-fundo.jpg'); background-size: cover; background-position: center; background-attachment: fixed; }
.hero-overlay { position: absolute; top:0; left:0; width: 100%; height: 100%; background: radial-gradient(circle, rgba(11, 18, 26, 0.5) 0%, var(--bg-dark-color) 85%); z-index: 2; }
.hero-content { position: relative; z-index: 3; }
.hero-title { font-family: var(--font-primary); font-size: 4.5rem; font-weight: 900; text-transform: uppercase; line-height: 1.1; letter-spacing: 2px; }
.hero-subtitle { font-size: 1.3rem; color: var(--text-gray); margin: 20px 0 40px; }
.hero-cta { padding: 18px 40px; font-size: 1.2rem; }

/* --- SEÇÕES RESTANTES (ESTILOS ORIGINAIS) --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: var(--card-bg); padding: 40px 30px; border-radius: 10px; border: 1px solid var(--border-color); text-align: center; transition: transform 0.3s, border-color 0.3s; }
.service-card:hover { transform: translateY(-10px); border-left-color: var(--primary-blue); border-right-color: var(--primary-blue); }
.service-card .icon { font-size: 3rem; color: var(--primary-blue); margin-bottom: 20px; display: block; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.service-card p { color: var(--text-gray); }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.portfolio-card { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 5; }
.portfolio-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.portfolio-card:hover img { transform: scale(1.05); }
.portfolio-card .overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px; background: linear-gradient(to top, rgba(11, 18, 26, 0.9) 20%, transparent); }
.portfolio-card h3 { font-size: 1.5rem; }
.portfolio-card p { color: var(--text-gray); }

.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image img { width: 100%; border-radius: 10px; filter: grayscale(50%); }
.about-features { list-style: none; margin-top: 20px; padding: 0; }
.about-features li { margin-bottom: 10px; display: flex; align-items: center; }
.about-features i { color: var(--primary-blue); margin-right: 10px; }

.contact { text-align: center; }

.location-content { display: flex; gap: 40px; background-color: var(--card-bg); border-radius: 10px; overflow: hidden; border: 1px solid var(--border-color); }
.location-map { flex: 1 1 60%; }
.location-map iframe { width: 100%; height: 100%; min-height: 450px; border: 0; }
.location-details { flex: 1 1 40%; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.location-details h3 { font-size: 2rem; font-family: var(--font-primary); color: var(--primary-blue); margin-bottom: 20px; }
.location-details ul { list-style: none; margin-bottom: 30px; padding: 0; }
.location-details li { margin-bottom: 15px; display: flex; align-items: flex-start; color: var(--text-gray); }
.location-details li a { color: var(--text-gray); text-decoration: none; transition: color 0.3s; }
.location-details li a:hover { color: var(--primary-blue); }
.location-details li i { color: var(--primary-blue); margin-right: 15px; margin-top: 5px; width: 20px; text-align: center; }

.footer { background: #0A0A0A; padding: 60px 0 30px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; text-align: left; margin-bottom: 40px; }
.footer h4 { font-size: 1.2rem; margin-bottom: 15px; color: var(--primary-blue); }
.footer ul { list-style: none; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: var(--text-gray); text-decoration: none; transition: color 0.3s; }
.footer a:hover { color: var(--text-light); }
.footer-contact p { margin-bottom: 10px; }
.footer-contact i { margin-right: 10px; }
.social-links a { font-size: 1.5rem; margin-right: 15px; }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 20px; text-align: center; color: var(--text-gray); }

/* --- RESPONSIVIDADE --- */
@media (max-width: 991px) {
    /* Ajustes Gerais */
    section { padding: 80px 0; }
    .section-title { font-size: 2.2rem; }
    .hero-title { font-size: 2.5rem; letter-spacing: 0; }
    .hero-subtitle { font-size: 1.1rem; }

    /* Navegação Mobile */
    .header-cta { display: none; }
    .mobile-menu-toggle { display: block; z-index: 1002; }
    .main-nav {
        position: fixed; top: 0; right: 0; width: 80%; max-width: 320px;
        height: 100vh; background: #0B121A; z-index: 1001; display: flex; 
        flex-direction: column; align-items: center; justify-content: center;
        transform: translateX(100%); transition: transform 0.4s ease-in-out;
    }
    .main-nav ul { flex-direction: column; gap: 20px; }
    .main-nav a { font-size: 1.5rem; }
    .main-nav.mobile-active { transform: translateX(0); }

    /* --- LAYOUT HORIZONTAL PARA SERVIÇOS E DESTAQUES --- */
    .services-grid, .portfolio-grid {
        display: flex;
        flex-wrap: nowrap; /* Impede que os itens quebrem para a linha de baixo */
        overflow-x: auto; /* Habilita a rolagem horizontal */
        -webkit-overflow-scrolling: touch; /* Melhora a experiência em iOS */
        gap: 20px;
        padding: 10px;
        margin: 0 -20px; /* Compensa o padding do container para ir até as bordas */
        scrollbar-width: none; /* Esconde a barra de rolagem no Firefox */
    }
    .services-grid::-webkit-scrollbar, .portfolio-grid::-webkit-scrollbar {
        display: none; /* Esconde a barra de rolagem no Chrome, Safari, etc. */
    }
    .service-card, .portfolio-card {
        flex: 0 0 80%; /* Cada card ocupa 80% da largura da tela */
        max-width: 320px; /* Limita a largura máxima dos cards */
    }

    /* Ajustes de layout para seções */
    .about-content { grid-template-columns: 1fr; }
    .about-image { grid-row: 1; margin-bottom: 30px; }
    .about-text { text-align: center; }
    .about-text .section-title { text-align: center !important; }
    .about-features li { justify-content: center; }
    
    /* Layout otimizado para Localização */
    .location-content {
        flex-direction: column;
        background-color: transparent; /* Remove o fundo do container pai */
        border: none;
        gap: 0;
    }
    .location-map {
        border-radius: 10px;
        overflow: hidden; /* Garante que o mapa fique com as bordas arredondadas */
        border: 1px solid var(--border-color);
        height: 350px;
    }
    .location-map iframe {
        height: 100%;
    }
    .location-details {
        background-color: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 10px;
        margin-top: 30px;
        padding: 30px;
        text-align: left;
    }
    .location-details h3 { text-align: center; }

    /* Layout do Rodapé */
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-about { display: flex; flex-direction: column; align-items: center; }
}