/* Importa as fontes do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@700;800&display=swap');

/* 1. CONFIGURAÇÕES GLOBAIS E VARIÁVEIS AQUÁTICAS */
:root {
    --primary-blue: #005bac;        /* Azul vibrante principal */
    --secondary-teal: #00a896;      /* Verde-água para gradientes */
    --water-gradient: linear-gradient(135deg, var(--primary-blue), var(--secondary-teal)); /* Gradiente principal */
    
    --text-dark: #1d1d1f;
    --text-medium: #6e6e73;         /* Cinza médio Apple */
    --text-light: #f5f5f7;
    
    --bg-white: #ffffff;
    --bg-water-light: #f0f8ff;      /* Azul muito claro para fundos */
    --bg-dark-water: #0a2342;        /* Azul marinho profundo para seção escura */
    
    --border-light: rgba(0, 91, 172, 0.15); /* Borda azul bem clara */
    --card-shadow: 0 10px 30px -10px rgba(0, 91, 172, 0.2); /* Sombra azulada */

    /* Fontes */
    --font-display: 'Playfair Display', serif; /* Fonte de Destaque */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; /* Fonte do Corpo */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ==== CORREÇÃO DO BUG MOBILE ADICIONADA AQUI ==== */
html { 
    scroll-behavior: smooth; 
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    
    /* ==== CORREÇÃO DO BUG MOBILE ==== */
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* Tipografia */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* A regra específica para H1 com gradiente foi deletada */

h2 { font-size: 2.8rem; color: var(--primary-blue); margin-bottom: 1.5rem; }
.text-light { color: var(--bg-white) !important; }
p { font-size: 1.1rem; color: var(--text-medium); margin-bottom: 1rem; }
.section-intro { font-size: 1.3rem; max-width: 700px; margin: 0 auto 3rem auto; color: var(--text-dark); }
.text-center { text-align: center; }
a { text-decoration: none; color: inherit; }

/* Utilitários de Seção */
.section-padded { padding: 6rem 0; }
.bg-water-light { background-color: var(--bg-water-light); }
.bg-dark-water { background-color: var(--bg-dark-water); color: var(--text-light); }
.bg-dark-water p { color: rgba(255,255,255,0.7); }

/* FUNDOS DE ONDA (SVG encoded) */
.wave-bg {
    background-color: var(--bg-water-light);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.6' d='M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
}
.wave-bg-secondary {
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23f0f8ff' fill-opacity='1' d='M0,64L48,80C96,96,192,128,288,128C384,128,480,96,576,90.7C672,85,768,107,864,138.7C960,171,1056,213,1152,218.7C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
}


/* 2. NAVBAR */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    padding: 1.2rem 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: -0.5px;
}
.logo-img {
    height: 65px;
    width: auto;
}

.nav-menu { display: flex; gap: 2.5rem; list-style: none; }
.nav-menu a {
    font-weight: 600; font-size: 0.95rem; color: var(--text-dark);
    transition: color 0.3s ease;
}
.nav-menu a:hover { color: var(--primary-blue); }
.hamburger { display: none; border: none; background: none; cursor: pointer; flex-direction: column; gap: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-dark); transition: 0.3s; }

/* 3. HERO SECTION */
.hero {
    min-height: 95vh; display: flex; align-items: center; padding-top: 80px;
    text-align: center;

    /* ==== FUNDO RESPONSIVO (JÁ ESTAVA CORRETO) ==== */
    background-image: url('fundo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* ==== COR DE FALLBACK ADICIONADA (O que você está vendo no celular) ==== */
    background-color: var(--bg-water-light); 
}

/* ==== Novo estilo para a imagem do hero ==== */
.hero-logo {
    max-width: 650px; /* Alinha com a largura máxima do subtítulo */
    width: 90%;       /* Responsivo */
    height: auto;     /* Mantém a proporção */
    margin-bottom: 1.5rem; /* Mesmo espaçamento do H1 antigo */
}

.hero .subtitle { font-size: 1.4rem; max-width: 650px; margin: 0 auto 2.5rem auto; }

.cta-button {
    display: inline-block; padding: 1.2rem 3.5rem;
    background: var(--water-gradient); color: white;
    font-weight: 700; font-size: 1.1rem; border-radius: 50px;
    box-shadow: 0 10px 20px -10px rgba(0, 91, 172, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 15px 30px -10px rgba(0, 91, 172, 0.7); }

/* 4. COMPONENTES (Cards, Listas) */
.principles, .mission-list { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.principle-item {
    padding: 1rem 2.5rem; background: white; border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid var(--border-light);
}
.principle-item h3 { margin: 0; font-size: 1.1rem; color: var(--primary-blue); }

.mission-list { list-style: none; gap: 3rem; margin-top: 2rem; }
.mission-list li {
    position: relative; font-weight: 600; color: var(--primary-blue); font-size: 1.2rem;
}
.mission-list li::before {
    content: ''; display: block; width: 8px; height: 8px; background: var(--secondary-teal);
    border-radius: 50%; margin: 0 auto 10px auto;
}

/* NOVOS ESTILOS DE LAYOUT COM IMAGEM */
.text-left { text-align: left; }

.content-wrapper-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.image-content img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    object-fit: cover;
    aspect-ratio: 4 / 3; /* Proporção da imagem */
    box-shadow: 0 10px 30px rgba(0, 91, 172, 0.1);
}
.content-wrapper-image.image-first {
    grid-template-areas: "image text";
}
.content-wrapper-image.image-first .text-content { grid-area: text; }
.content-wrapper-image.image-first .image-content { grid-area: image; }

/* Ajustes de alinhamento para o texto */
.text-left .section-intro {
    margin: 0 0 2rem 0;
    max-width: 100%;
    text-align: left;
}
.text-left .principles {
    justify-content: flex-start;
}
.text-left .mission-list {
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
}
.text-left .mission-list li::before {
    margin: 0 10px 0 0;
    display: inline-block;
    vertical-align: middle;
}

/* Grid de Cards */
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.card {
    padding: 2.5rem; border-radius: 24px; background: white;
    transition: all 0.3s ease; border: 1px solid transparent;
}
.service-card { background: var(--bg-water-light); }
.service-card:hover {
    background: white; box-shadow: var(--card-shadow); border-color: var(--border-light); transform: translateY(-8px);
}
.service-card h3 { color: var(--primary-blue); margin-bottom: 1rem; }

.dark-card { 
    background: rgba(255,255,255,0.05); 
    border: 1px solid rgba(0, 91, 172, 0.5); /* Usando primary-blue com 50% de opacidade */
}
.dark-card h3 { color: var(--secondary-teal); }

/* 5. CONTATO CARDS */
.contact-cards { display: flex; justify-content: center; gap: 2rem; margin-top: 3rem; flex-wrap: wrap; }
.contact-card {
    background: white; padding: 2rem; border-radius: 20px; min-width: 250px;
    text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: 0.3s ease; border: 1px solid var(--border-light);
}
.contact-card:hover { transform: translateY(-5px); border-color: var(--secondary-teal); }
.contact-card h4 { color: var(--primary-blue); margin-bottom: 0.5rem; }
.contact-card p { margin: 0; color: var(--text-dark); font-weight: 500; }

/* 6. FOOTER */
.footer { padding: 3rem 0; text-align: center; background: var(--bg-dark-water); color: rgba(255,255,255,0.5); font-size: 0.9rem; }
.footer p {
    margin: 0.25rem 0;
    padding: 0;
}

/* 7. RESPONSIVIDADE MOBILE */
@media (max-width: 768px) {
    
    /* ==== CORREÇÕES PARA O NAVBAR NO CELULAR ==== */
    .navbar {
        padding: 0.8rem 0; /* Diminui o padding vertical */
    }
    .logo-img {
        height: 40px; /* Diminui a altura da imagem do logo */
    }
    .logo {
        font-size: 1.1rem; /* Diminui o texto "AQUANAMA" */
        gap: 8px;
    }
    /* ==== FIM DAS CORREÇÕES ==== */


    /* O estilo H1 foi removido */
    h2 { font-size: 2.2rem; }
    .section-padded { padding: 4rem 0; }
    .hamburger { display: flex; }
    .nav-menu {
        position: fixed; 
        
        /* Ajusta o 'top' para a nova altura da barra */
        /* 40px (logo) + (0.8rem * 2) (padding) ~= 66px */
        top: 66px; 
        
        left: -100%; width: 100%; height: 100vh;
        background: white; flex-direction: column; align-items: center;
        padding-top: 4rem; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .nav-menu.active { left: 0; }
    .nav-menu a { font-size: 1.5rem; }
    .contact-cards { flex-direction: column; align-items: center; gap: 1.5rem; }

    /* REGRAS DE RESPONSIVIDADE PARA LAYOUT COM IMAGEM */
    .content-wrapper-image {
        grid-template-columns: 1fr; /* Coluna única */
        gap: 2rem;
    }
    .content-wrapper-image.image-first {
        grid-template-areas: unset;
    }
    .content-wrapper-image.image-first .text-content {
        grid-area: unset;
        order: 2; /* Texto vem depois */
    }
    .content-wrapper-image.image-first .image-content {
        grid-area: unset;
        order: 1; /* Imagem vem primeiro */
    }
    .text-left { text-align: center; } /* Centraliza no mobile */
    .text-left .section-intro { margin: 0 auto 2rem auto; text-align: center; }
    .text-left .principles { justify-content: center; }
    .text-left .mission-list { align-items: center; }
}