/* ==========================================================================
   BPFY - UI/UX DESIGN SYSTEM (BIG TECH STANDARD)
   ========================================================================== */

/* --- 1. DESIGN TOKENS (VARIÁVEIS) --- */
:root {
    /* Paleta de Cores */
    --color-bg-base: #f4f6f9;
    --color-bg-surface: rgba(255, 255, 255, 0.7);
    --color-bg-surface-hover: rgba(255, 255, 255, 0.95);
    --color-text-title: #202124; 
    --color-text-body: #5f6368;  
    --color-accent: #3f8f8b;
    --color-accent-hover: #2d6b68;
    --color-border: rgba(0, 0, 0, 0.08);

    /* Respiros (Espaçamentos Escaláveis) */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 64px;

    /* Sombras e Raios (Bordas) */
    --shadow-float: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
    --radius-card: 16px;
    --radius-btn: 8px;
    --radius-pill: 50px;

    /* Transições */
    --ease-standard: 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* --- 2. RESET E TIPOGRAFIA GERAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--color-bg-base);
    color: var(--color-text-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, strong {
    color: var(--color-text-title);
    line-height: 1.2;
}

/* --- 3. CABEÇALHO GLOBAL (HEADER) --- */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    z-index: 50;
}

.logo-container {
    background: #ffffff;
    padding: 12px 20px;
    border-radius: var(--radius-btn);
    box-shadow: var(--shadow-float);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow var(--ease-standard);
}

.hamburger-menu-btn {
    background: #ffffff;
    border: none;
    cursor: pointer;
    color: var(--color-text-title);
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-float);
    transition: transform var(--ease-standard);
}

.hamburger-menu-btn:active {
    transform: scale(0.95);
}

/* --- 4. MENU LATERAL RESPONSIVO (MOBILE) --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background-color: #ffffff;
    z-index: 100;
    padding: var(--space-xl) var(--space-md);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right var(--ease-standard);
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.open {
    right: 0;
}

.close-menu-btn {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: transparent;
    border: none;
    color: var(--color-text-title);
    cursor: pointer;
    padding: var(--space-xs);
    transition: color var(--ease-standard);
}

.close-menu-btn:hover {
    color: var(--color-accent);
}

.menu-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.menu-nav-links li a {
    text-decoration: none;
    color: var(--color-text-title);
    font-size: 1.25rem;
    font-weight: 500;
    transition: color var(--ease-standard), opacity var(--ease-standard);
    display: block;
}

.menu-nav-links li a:hover {
    color: var(--color-accent);
}

/* --- 5. HERO SECTION (FUNDO DO MAR E BARCO) --- */
.hero-section {
    position: relative;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), var(--color-bg-base)), url('images/fundo-mar.jpg') no-repeat center top;
    background-size: cover;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--space-xl) var(--space-md);
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

.hero-section h1 {
    color: #ffffff;
    font-size: clamp(2rem, 6vw, 3.5rem);
    text-shadow: 0 4px 16px rgba(0,0,0,0.4);
    font-weight: 800;
    letter-spacing: -1px;
}

/* --- 6. CONTEÚDO PRINCIPAL (MAIN) --- */
.main-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: -40px auto var(--space-xl) auto;
    padding: 0 var(--space-md);
    gap: var(--space-lg);
    position: relative;
    z-index: 10;
}

.left-col {
    text-align: center;
}

.headline {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: var(--space-sm);
}

.sub-headline {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto var(--space-lg) auto;
}

/* Grid de Ícones SVG */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-sm);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.feature-item h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 0.9rem;
}

/* Coluna Direita (Cards CTAs) */
.right-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.card {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    padding: var(--space-md);
    border-radius: var(--radius-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-float);
    transition: transform var(--ease-standard), box-shadow var(--ease-standard), background var(--ease-standard);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    background: var(--color-bg-surface-hover);
}

.card strong {
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
}

.card p {
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
    flex-grow: 1;
}

.btn-saibamais {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-title);
    padding: 12px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background var(--ease-standard);
    width: 100%;
}

.btn-saibamais:hover {
    background: rgba(0,0,0,0.03);
}

/* --- 7. RODAPÉ --- */
footer {
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--color-text-body);
}

/* ==========================================================================
   8. RESPONSIVIDADE (TABLET E DESKTOP)
   ========================================================================== */

/* Telas médias (Tablets, a partir de 768px) */
@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .right-col {
        flex-direction: row;
    }
    .card {
        flex: 1;
    }
}

/* Telas grandes (Desktops, a partir de 1024px) */
@media (min-width: 1024px) {
    .site-header {
        padding: var(--space-md) var(--space-xl);
    }
    
    .hamburger-menu-btn {
        display: none;
    }
    
    .mobile-menu-overlay {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        box-shadow: none;
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    
    .close-menu-btn {
        display: none;
    }
    
    .menu-nav-links {
        flex-direction: row;
        margin: 0;
        align-items: center;
        gap: var(--space-lg);
    }
    
    .menu-nav-links li {
        margin: 0;
    }
    
    /* === CORREÇÃO DO CONTRASTE AQUI === */
    .menu-nav-links li a {
        font-size: 1.05rem;
        color: #ffffff; /* Letras brancas */
        font-weight: 600;
        text-shadow: 0 2px 8px rgba(0,0,0,0.6); /* Sombra para leitura na água */
    }
    
    .menu-nav-links li a:hover {
        color: #ffffff;
        opacity: 0.7;
    }

    .hero-section {
        min-height: 550px;
        background-position: center 25%;
        padding-bottom: 120px; /* Respiro para afastar do conteúdo principal */
    }

    .hero-content {
        text-align: right;
    }

    .main-container {
        flex-direction: row;
        align-items: flex-start;
        margin-top: -60px;
    }

    .left-col {
        flex: 1.5;
        text-align: left;
    }

    .sub-headline {
        margin-left: 0;
    }

    .right-col {
        flex: 1;
        flex-direction: column;
    }
}