/* * PIPS Pegue Monte - Estilos Otimizados
* Implementação de melhorias de UX/Design e Correções Mobile
* ATUALIZAÇÃO: Correção de Quebra de Cabeçalho Mobile e Conversão REM
*/

/* ===== 1. VARIÁVEIS ===== */
:root {
    /* Cores principais */
    --primary: #a8e6cf;
    --primary-dark: #11201c;
    --secondary: #ffaaa5;
    --accent: #ffd3b6;
    --cta-orange: #ff9f43;
    --cta-orange-hover: #ff7e1d;
    
    /* Paleta de apoio */
    --yellow: #ffd3b6;
    --pink: #ffaaa5;
    --blue: #a8e6cf;
    
    /* Neutros */
    --light: #ffffff;
    --dark: #333333;
    --gray: #f8f8f8;
    --gray-dark: #666666;
    
    /* Fontes */
    --font-heading: 'Montserrat Alternates', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --font-accent: 'Pacifico', cursive;
    
    /* Espaçamentos */
    --spacing-xs: 0.5rem;   /* 8px */
    --spacing-sm: 1rem;     /* 16px */
    --spacing-md: 2rem;     /* 32px */
    --spacing-lg: 3rem;     /* 48px */
    --spacing-xl: 5rem;     /* 80px */
    
    /* Design Tokens */
    --border-radius-sm: 0.3125rem; /* 5px */
    --border-radius-md: 0.625rem;  /* 10px */
    --border-radius-lg: 1.25rem;   /* 20px */
    --border-radius-xl: 1.875rem;  /* 30px */
    
    --shadow-sm: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.1);
    --shadow-md: 0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 0.625rem 1.5625rem rgba(0, 0, 0, 0.15);
    --shadow-text: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
    
    --transition: all 0.3s ease;
}

/* ===== 2. RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Força absoluta para impedir scroll lateral "dançando" */
html, body {
    max-width: 100vw !important;
    width: 100%;
    overflow-x: hidden !important;
    position: relative;
    scroll-behavior: smooth;
    font-size: 100%; /* Base 16px */
    font-family: var(--font-body);
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--light);
}

::selection {
    background-color: var(--cta-orange);
    color: var(--light);
}

::-webkit-scrollbar { width: 0.625rem; }
::-webkit-scrollbar-track { background: var(--gray); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 0.3125rem; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary); }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Correção de Mapas e Vídeos */
iframe, embed, object, video {
    max-width: 100%;
    width: 100%; 
    height: 18.75rem; /* 300px */
    display: block; 
    border: 0;
}

a {
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
}

ul { list-style: none; }

/* ===== 3. LAYOUT GERAL ===== */
.container {
    align-content: center;
    max-width: 75rem; /* 1200px */
    width: 100%; 
    margin: 0 auto;
    padding: 0 1.25rem; /* 20px */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* Permite quebra nos conteúdos gerais */
    overflow-x: hidden; 
}

section { padding: var(--spacing-xl) 0; }

/* ===== 4. TIPOGRAFIA ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.5rem; }

p { margin-bottom: var(--spacing-sm); }

strong { font-weight: 700; color: var(--primary-dark); }

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: var(--spacing-sm);
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 5rem; /* 80px */
    height: 0.1875rem; /* 3px */
    background: var(--secondary);
    border-radius: 0.1875rem;
}

.section-subtitle {
    text-align: center;
    font-family: 'Lucida Sans', sans-serif;
    font-size: 1.5rem;
    color: #333333;
    margin-top: -1.5rem;
    margin-bottom: var(--spacing-md);
    width: 100%;
}

/* ===== 5. COMPONENTES: BOTÕES ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius-xl);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--cta-orange);
    color: var(--light);
    box-shadow: var(--shadow-sm);
    font-weight: 700;
    letter-spacing: 0.03125rem;
}

.btn-primary:hover {
    background-color: var(--cta-orange-hover);
    transform: translateY(-0.1875rem);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--light);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: #ff9a94;
    transform: translateY(-0.1875rem);
    box-shadow: var(--shadow-md);
}

.center-btn {
    text-align: center;
    margin-top: var(--spacing-md);
    width: 100%;
}

/* ===== 6. HEADER & NAVEGAÇÃO ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--light);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: var(--spacing-xs) 0;
}

.header .container {
    justify-content: space-between;
    overflow: visible;
    /* FIX CRÍTICO: Impede que a logo e o menu quebrem linha no mobile */
    flex-wrap: nowrap; 
}

.logo-img { 
    height: 7.5rem; /* 120px Desktop */
    width: auto; 
}

.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; }

.nav-link {
    padding: var(--spacing-sm);
    font-weight: 600;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0.125rem;
    background-color: var(--cta-orange);
    transition: var(--transition);
}

.nav-link:hover { color: var(--cta-orange); }
.nav-link:hover::after { width: 70%; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* ===== 7. SEÇÃO HERO ===== */
.hero {
    height: 100vh;
    min-height: 37.5rem; /* 600px */
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light);
    margin-top: 5rem; /* 80px Compensação Header */
    width: 100%;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 50rem; /* 800px */
    margin: 0 auto;
    padding: var(--spacing-md);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    color: var(--light);
    text-shadow: var(--shadow-text);
    letter-spacing: 0.0625rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    text-shadow: var(--shadow-text);
}

/* ===== 8. SEÇÃO CONCEITO ===== */
.conceito { background-color: var(--yellow); }

.conceito-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    align-items: center;
    width: 100%;
}

.conceito-text { flex: 1; min-width: 18.75rem; /* 300px */ }
.conceito-text p { font-size: 1.05rem; line-height: 1.8; }

.conceito-steps {
    flex: 1;
    min-width: 18.75rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.step {
    text-align: center;
    padding: var(--spacing-md);
    background-color: var(--light);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-0.3125rem);
    box-shadow: var(--shadow-md);
}

.step-icon {
    width: 4.375rem; /* 70px */
    height: 4.375rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
    box-shadow: var(--shadow-sm);
}

.step-icon i { font-size: 2rem; color: var(--light); }

/* ===== 9. SEÇÃO KITS POPULARES ===== */
.kits-populares { background-color: var(--pink); }

.kits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); /* 280px */
    gap: var(--spacing-lg);
    width: 100%;
}

.kit-card {
    background-color: var(--light);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.kit-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-lg);
}

.kit-image {
    position: relative;
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 12.5rem; /* 200px */
    overflow: hidden;
    background-color: var(--gray);
}

.kit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.kit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.kit-card:hover .kit-overlay { opacity: 1; }
.kit-card:hover .kit-image img { transform: scale(1.1); }

.kit-info { padding: var(--spacing-md); text-align: center; }
.kit-info h3 { margin-bottom: var(--spacing-xs); color: var(--dark); }

/* ===== 10. SEÇÃO COMO FUNCIONA (Timeline) ===== */
.como-funciona { background-color: var(--blue); }

.timeline {
    position: relative;
    max-width: 50rem; /* 800px */
    width: 100%;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0.25rem; /* 4px */
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-lg);
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: var(--spacing-lg);
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: var(--spacing-lg);
}

.timeline-number {
    position: absolute;
    top: 0;
    width: 3.125rem; /* 50px */
    height: 3.125rem;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--cta-orange) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: 700;
    font-size: 1.5rem;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.timeline-item:nth-child(odd) .timeline-number { right: -1.5625rem; }
.timeline-item:nth-child(even) .timeline-number { left: -1.5625rem; }

.timeline-content {
    background-color: var(--light);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

/* ===== 11. AVALIAÇÕES & INSTAGRAM ===== */
.rating-stars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xs);
    margin: var(--spacing-md) 0;
}

.star { color: #ffc107; font-size: 1.5rem; }
.rating-text { font-weight: 600; color: var(--dark); }

.instagram-feed {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--blue);
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); /* 200px */
    gap: var(--spacing-md);
    width: 100%;
}

.insta-item {
    position: relative;
    height: 12.5rem; /* 200px */
    overflow: hidden;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.insta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.insta-item:hover .insta-overlay { opacity: 1; }
.insta-item:hover img { transform: scale(1.1); }
.insta-overlay i { font-size: 2rem; color: var(--light); }

/* ===== 12. CONTATO & FOOTER ===== */
.contato { background-color: var(--yellow); }

.contato-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    width: 100%;
}

.contato-info { flex: 1; min-width: 18.75rem; }

.contato-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.contato-item i {
    font-size: 1.5rem;
    color: var(--cta-orange);
    margin-right: var(--spacing-sm);
    margin-top: 0.3125rem;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-links a {
    width: 2.5rem; /* 40px */
    height: 2.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--cta-orange) 0%, var(--cta-orange-hover) 100%);
    transform: translateY(-0.1875rem);
    box-shadow: var(--shadow-md);
}

.footer {
    background-color: var(--dark);
    color: var(--light);
    padding: var(--spacing-lg) 0 var(--spacing-sm);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    width: 100%;
}

.footer-logo, .footer-links { flex: 1; min-width: 15.625rem; /* 250px */ }

.footer-logo img {
    height: 3.75rem; /* 60px */
    width: auto;
    margin-bottom: var(--spacing-sm);
}

.footer-links h3 {
    color: var(--light);
    position: relative;
    padding-bottom: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3.125rem;
    height: 0.125rem;
    background-color: var(--cta-orange);
}

.footer-links ul li { margin-bottom: var(--spacing-xs); }

.footer-links ul li a {
    color: #ccc;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--cta-orange);
    padding-left: 0.3125rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.footer-social { display: flex; gap: var(--spacing-xs); }
.footer-social a { color: var(--light); font-size: 1.2rem; transition: var(--transition); }
.footer-social a:hover { color: var(--cta-orange); }

/* ===== 13. WHATSAPP FLUTUANTE ===== */
.whatsapp-float {
    position: fixed !important; 
    bottom: 1.875rem; /* 30px */
    right: 1.875rem;
    z-index: 99999 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 3.75rem; /* 60px */
    height: 3.75rem;
    background: linear-gradient(135deg, #25D366 0%, #20ba5a 100%);
    color: var(--light);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 0.5rem 1.25rem rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    border: 0.1875rem solid var(--light);
    cursor: pointer;
}

.whatsapp-float:hover {
    background: linear-gradient(135deg, #20ba5a 0%, #1a9d50 100%);
    transform: scale(1.15);
    box-shadow: 0 0.75rem 1.875rem rgba(37, 211, 102, 0.6);
}

.whatsapp-float i { margin: 0 !important; font-size: 2rem; }

/* ===== 14. MEDIA QUERIES (Mobile) ===== */
@media (max-width: 48rem) { /* 768px */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    
    /* FIX LOGO MOBILE: Impede que a logo fique muito larga e quebre o header */
    .logo-img { 
        height: auto; 
        max-height: 5rem; /* 80px */
        max-width: 70%; /* Garante espaço para o botão de menu */
    }

    .hero {
        margin-top: 6.25rem; /* 100px */
        min-height: 25rem; /* 400px */
    }
    
    .menu-toggle { display: block; }
    
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--light);
        box-shadow: var(--shadow-md);
    }
    .nav-list.active { display: flex; }
    
    .nav-link {
        width: 100%;
        padding: var(--spacing-sm);
        border-bottom: 0.0625rem solid var(--gray);
    }
    
    .conceito-content { flex-direction: column; }
    .conceito-steps { grid-template-columns: 1fr; }
    
    .kits-grid { grid-template-columns: 1fr; gap: var(--spacing-md); }
    .kit-image { height: 12.5rem; }
    
    /* Timeline Mobile */
    .timeline::before { left: 0; }
    .timeline-item { width: 100%; left: 0 !important; padding-left: 5rem !important; padding-right: 0 !important; }
    .timeline-number { left: -1.5625rem !important; }
    
    .instagram-grid { grid-template-columns: repeat(2, 1fr); }
    .insta-item { height: 9.375rem; }
    
    /* WhatsApp Mobile */
    .whatsapp-float {
        width: 3.4375rem !important; /* 55px */
        height: 3.4375rem !important;
        bottom: 1.25rem !important;
        right: 1.25rem !important;
        font-size: 1.8rem !important;
    }
    .whatsapp-float i { font-size: 1.8rem !important; }
    
    .footer-content { flex-direction: column; }
}

@media (max-width: 30rem) { /* 480px */
    .container { padding: 0 0.9375rem; }
    .hero { margin-top: 5rem; min-height: 18.75rem; }
    .hero h1 { font-size: 1.5rem; }
    .instagram-grid { grid-template-columns: 1fr; }
    .insta-item { height: 12.5rem; }
}
