/* =========================================
   VARIÁVEIS (Cores e Tipografia)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Cores principais */
    --cacau: #302a27;        /* Textos principais, fundos escuros */
    --pistachio: #7a7859;    /* Acentos secundários, ícones */
    --especiaria: #854627;   /* Destaques, CTAs, links hover */
    --natural: #c9bda9;      /* Bordas, backgrounds suaves, dividers */
    --ivory: #eae8e5;        /* Background principal, áreas de respiro */

    /* Derivadas */
    --white: #FFFFFF;
    --cacau-light: #4a423e;  /* Textos secundários */
    --ivory-dark: #d9d5d0;   /* Hovers em backgrounds claros */

    /* Fontes */
    --font-heading: 'Courier Prime', 'Courier New', Courier, monospace;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* =========================================
   RESET E BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base para rem */
    overflow-x: hidden; /* Garante ZERO scroll lateral */
    width: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--cacau-light);
    background-color: var(--ivory);
    overflow-x: hidden; /* Reforço de segurança */
    width: 100%;
}

/* =========================================
   HERO SECTION
   ========================================= */
#hero {
    position: relative;
    width: 100%;
    min-height: auto; /* Remove altura mínima forçada no mobile */
    display: flex;
    align-items: center;
    background-color: var(--ivory);
    
    /* Mobile: Background Único e Limpo (Apenas Topo) */
    background-image: url('../img/hero-mobile-topo.png');
    
    background-size: 100% auto; /* Ajusta a largura da textura para 100% da tela */
    background-position: center top; /* Começa do topo */
    background-repeat: no-repeat;
    
    /* Padding padrão para o texto */
    padding: 20px 0 100px 0; /* Aumentado de 0 para 20px para desgrudar do topo */
    align-items: flex-start;
}

/* Container do Hero */
#hero .container {
    position: relative;
    z-index: 2;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Texto no topo */
    align-items: center; /* Centraliza o bloco na tela */
    padding-top: 0; /* Removido padding extra do container para subir mais */
    overflow: hidden; /* Previne scroll horizontal indesejado causado pela imagem full-width */
}

.hero-content {
    width: 100%;
    /* 
       Define uma largura máxima fixa para o bloco no mobile (ex: 85%).
       Isso força o bloco a se desgrudar das bordas e ficar no centro.
    */
    max-width: 85%; 
    margin: 0 auto; /* Centraliza o bloco horizontalmente */
    
    color: var(--cacau);
    background: transparent; 
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    border: none;
    box-shadow: none;
    text-align: left; /* Texto alinhado à esquerda dentro do bloco centralizado */
}

/* Título Principal */
#hero h1 {
    font-family: var(--font-heading);
    font-style: normal; /* Regular, não itálico */
    font-weight: 400;
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 0.25rem; /* Reduzido de 0.5rem */
    color: #000000; /* Cor sólida como no print */
    letter-spacing: 0.05em;
}

/* CRM logo abaixo do título */
.crm-hero {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--cacau);
    margin-bottom: 1rem; /* Reduzido de 2rem */
    font-weight: 400;
}

/* Subtítulo */
.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 1.5rem; /* Reduzido de 2rem */
    color: #1a1a1a;
    font-weight: 400;
    max-width: 90%;
}

/* Lista de Vantagens (Checkmarks) */
.hero-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Reduzido de 1rem */
    margin-bottom: 2rem; /* Reduzido de 3rem */
}

.hero-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
    color: #1a1a1a;
}

.check-icon {
    font-size: 1.2rem;
    font-weight: bold;
    color: #000; /* Check preto como no print */
    line-height: 1;
}

/* Botão Estilo Outline "Fino" */
.hero-actions {
    display: flex;
    justify-content: flex-start;
    width: auto;
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: #000;
    padding: 12px 32px;
    border-radius: 50px;
    font-family: var(--font-heading); /* Courier Prime no botão */
    font-size: 1rem;
    font-weight: 400;
    text-transform: lowercase; /* minúsculo */
    letter-spacing: 0.2em; /* bem espaçado */
    border: 1px solid #000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* =========================================
   IMAGEM MOBILE NO FLUXO
   ========================================= */
.mobile-hero-image {
    display: block;
    width: 100vw; /* Largura total da tela */
    height: auto;
    /* Resetando truques de margem */
    margin-left: -1.5rem; /* Compensa o padding do container (.hero-content tem padding 0 1.5rem?) Não, o .container tem padding padrão. Vamos usar margem negativa baseada no viewport. */
    margin-left: calc(-50vw + 50%); /* Centraliza forçadamente saindo do container */
    margin-right: calc(-50vw + 50%);
    
    position: relative;
    left: 0; /* Remove left 50% */
    margin-top: 0; /* Remove margem negativa vertical */
    z-index: 1; 
    object-fit: cover;
}

/* =========================================
   RESPONSIVO (Desktop)
   ========================================= */
@media (min-width: 992px) {
    .mobile-hero-image {
        display: none !important; /* FORÇA ocultar a imagem no desktop */
    }

    #hero {
        background-image: url('../img/hero-desktop.jpg') !important; /* FORÇA o background desktop */
        background-position: right top !important;
        background-size: cover !important;
        align-items: center;
        padding: 0 !important; /* Remove padding mobile */
        min-height: 100vh !important; /* Restaura altura full viewport */
    }

    #hero .container {
        justify-content: center;
        align-items: flex-start; /* Desktop: Alinha à esquerda */
        padding-top: 0;
    }

    .hero-content {
        max-width: 45vw;
        min-width: 480px;
        margin-left: 8vw;
        margin-right: 0; /* Reseta margin auto do mobile */
        padding: 0;
        text-align: left;
    }

    #hero h1 {
        /* Fonte fluida: escala suavemente com a tela, nunca ficando gigante ou minúscula demais */
        font-size: clamp(2rem, 3.2vw, 3.5rem);
        margin-bottom: 0.5rem;
        white-space: nowrap;
    }

    .hero-subtitle {
        font-size: clamp(1.1rem, 1.25vw, 1.5rem); /* Subtítulo também escala */
        line-height: 1.3;
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .hero-features li {
        font-size: 1.1rem;
    }
    
    .btn-outline {
        padding: 14px 48px;
        font-size: 1.1rem;
    }
}