/* ==========================================
   MENSURA - Components CSS
   Componentes reutilizáveis do site
   ========================================== */

/* ==========================================
   HERO SECTIONS
   ========================================== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--ivory) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(184, 149, 106, 0.03) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--charcoal);
    background-color: rgba(184, 149, 106, 0.1);
    border: 1px solid var(--accent-primary);
    margin-bottom: var(--space-6);
}

.hero h1 {
    font-size: clamp(1.875rem, 7vw, 4rem);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-6);
    color: var(--charcoal);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: var(--weight-normal);
    color: var(--graphite);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-10);
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* ==========================================
   PROOF BAR
   ========================================== */
.proof-bar {
    padding: var(--space-16) 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background-color: var(--white);
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    text-align: center;
}

.proof-item-number {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: var(--weight-semibold);
    color: var(--charcoal);
    display: block;
    margin-bottom: var(--space-2);
}

.proof-item-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
}

/* ==========================================
   PROBLEM-SOLUTION SECTION
   ========================================== */
.problem-solution {
    background-color: var(--bg-dark);
    color: var(--text-inverse);
    padding: var(--space-24) 0;
}

.problem-solution h2 {
    color: var(--white);
    text-align: center;
    margin-bottom: var(--space-4);
}

.problem-solution .section-subtitle {
    color: var(--pearl);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-16);
}

.problem-card {
    padding: var(--space-8);
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-slow);
}

.problem-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(184, 149, 106, 0.3);
    transform: translateY(-4px);
}

.problem-icon {
    font-size: var(--text-3xl);
    color: var(--accent-primary);
    margin-bottom: var(--space-4);
}

.problem-title {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    color: var(--white);
    margin-bottom: var(--space-3);
}

.problem-text {
    color: var(--pearl);
    line-height: var(--leading-relaxed);
}

/* ==========================================
   METHOD SECTION
   ========================================== */
.method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    margin-top: var(--space-16);
}

.method-card {
    padding: var(--space-10);
    background-color: var(--white);
    border: 1px solid var(--border-light);
    transition: all var(--transition-slow);
}

.method-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.method-number {
    font-family: var(--font-serif);
    font-size: var(--text-6xl);
    font-weight: var(--weight-light);
    color: var(--accent-primary);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: var(--space-4);
}

.method-title {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-4);
}

.method-list {
    list-style: none;
    margin-top: var(--space-6);
}

.method-list li {
    padding-left: var(--space-6);
    margin-bottom: var(--space-3);
    position: relative;
    color: var(--graphite);
    line-height: var(--leading-relaxed);
}

.method-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: var(--weight-semibold);
}

/* ==========================================
   CTA FINAL SECTION
   ========================================== */
.cta-final {
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--black) 100%);
    color: var(--white);
    padding: var(--space-24) 0;
    text-align: center;
}

.cta-final h2 {
    color: var(--white);
    margin-bottom: var(--space-6);
}

.cta-final p {
    font-size: var(--text-xl);
    color: var(--pearl);
    max-width: 640px;
    margin: 0 auto var(--space-10) auto;
    line-height: var(--leading-relaxed);
}

/* ==========================================
   FOR WHO SECTION
   ========================================== */
.for-who-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-16);
}

.for-who-card {
    padding: var(--space-8);
    background-color: var(--white);
    border: 1px solid var(--border-light);
    transition: all var(--transition-slow);
}

.for-who-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.for-who-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
    color: var(--accent-primary);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
}

.for-who-title {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-3);
}

.for-who-list {
    list-style: none;
    margin-top: var(--space-4);
}

.for-who-list li {
    padding-left: var(--space-5);
    margin-bottom: var(--space-2);
    position: relative;
    color: var(--graphite);
    font-size: var(--text-base);
}

.for-who-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: var(--weight-bold);
}

/* ==========================================
   TIMELINE
   ========================================== */
.timeline {
    max-width: 800px;
    margin: var(--space-16) auto 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--border-light));
}

.timeline-item {
    position: relative;
    padding-left: var(--space-16);
    margin-bottom: var(--space-12);
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    font-family: var(--font-serif);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    color: var(--accent-primary);
}

.timeline-title {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-3);
}

.timeline-list {
    list-style: none;
    margin-top: var(--space-4);
}

.timeline-list li {
    padding-left: var(--space-5);
    margin-bottom: var(--space-2);
    position: relative;
    color: var(--graphite);
}

.timeline-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* ==========================================
   DELIVERABLES
   ========================================== */
.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-16);
}

.deliverable-card {
    padding: var(--space-6);
    background-color: var(--bg-primary);
    border-left: 3px solid var(--accent-primary);
    transition: all var(--transition-base);
}

.deliverable-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.deliverable-title {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-3);
    color: var(--charcoal);
}

/* ==========================================
   CASES GRID
   ========================================== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-16);
}

.case-card {
    padding: var(--space-8);
    background-color: var(--white);
    border: 1px solid var(--border-light);
    transition: all var(--transition-slow);
}

.case-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.case-meta {
    font-size: var(--text-sm);
    color: var(--text-muted);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    margin-bottom: var(--space-4);
}

.case-title {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-4);
}

.case-metrics {
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-light);
}

.metric {
    margin-bottom: var(--space-3);
}

.metric-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-1);
}

.metric-value {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    color: var(--accent-primary);
}

/* ==========================================
   WHATSAPP FLOAT - Movido do inline
   ========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border-radius: 50%;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-base);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    animation: none;
}

.whatsapp-float:active {
    transform: scale(0.95);
}

@keyframes pulse-whatsapp {
    0%, 100% { 
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); 
    }
    50% { 
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1); 
    }
}

/* ==========================================
   RESPONSIVIDADE - COMPONENTES
   ========================================== */

/* Tablet (641px - 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
    .method-grid {
        gap: var(--space-8);
    }
    
    .proof-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .problem-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile (<= 640px) */
@media (max-width: 640px) {
    .hero {
        min-height: 75vh;
    }
    
    .hero h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
    
    .hero-subtitle {
        font-size: var(--text-lg);
    }
    
    .method-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn-lg {
        width: 100%;
    }
    
    .proof-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-item {
        padding-left: var(--space-12);
    }
    
    .timeline-marker {
        width: 32px;
        height: 32px;
        font-size: var(--text-sm);
    }
    
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
    
    .for-who-grid,
    .cases-grid,
    .deliverables-grid {
        grid-template-columns: 1fr;
    }
}
