/* ===================================
   Mello Coelho & Galvão - Landing Page
   Design System & Styles
   =================================== */

/* CSS Variables - Brand Colors */
:root {
    /* Primary Colors (from logo) */
    --primary-dark: #1a2744;
    --primary-darker: #0f1a2e;
    --primary-light: #2a3b5c;
    
    /* Neutral Colors */
    --neutral-50: #f8f9fa;
    --neutral-100: #f1f3f5;
    --neutral-200: #e9ecef;
    --neutral-300: #dee2e6;
    --neutral-400: #ced4da;
    --neutral-500: #adb5bd;
    --neutral-600: #868e96;
    --neutral-700: #495057;
    --neutral-800: #343a40;
    --neutral-900: #212529;
    
    /* Accent Colors */
    --accent-gold: #c9a962;
    --accent-gold-light: #ddc78a;
    
    /* Semantic Colors */
    --success: #40c057;
    --warning: #fab005;
    --error: #fa5252;
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--neutral-800);
    background-color: var(--neutral-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-dark);
}

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

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: white;
    border-color: var(--primary-dark);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1rem;
}

/* ===================================
   Header
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--neutral-200);
    transition: all var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    height: 50px;
    width: auto;
}

.nav-desktop {
    display: flex;
    gap: var(--space-xl);
}

.nav-desktop a {
    font-weight: 500;
    color: var(--neutral-700);
    padding: var(--space-sm) 0;
    position: relative;
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-dark);
    transition: width var(--transition-normal);
}

.nav-desktop a:hover::after {
    width: 100%;
}

.header-cta {
    padding: var(--space-sm) var(--space-lg);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-dark);
    transition: all var(--transition-fast);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    background: white;
    border-top: 1px solid var(--neutral-200);
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    padding: var(--space-md);
    font-weight: 500;
    color: var(--neutral-700);
    border-radius: var(--radius-md);
}

.mobile-nav a:hover {
    background: var(--neutral-100);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 50%, rgba(26, 39, 68, 0.05) 100%);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(26, 39, 68, 0.03) 0%, transparent 70%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    padding: var(--space-4xl) 0;
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: var(--space-lg);
    color: var(--primary-dark);
}

.hero-headline .highlight {
    color: var(--accent-gold);
    position: relative;
}

.hero-subheadline {
    font-size: 1.25rem;
    color: var(--neutral-600);
    margin-bottom: var(--space-2xl);
    max-width: 540px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    text-align: center;
    animation: float 6s ease-in-out infinite;
}

.hero-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.hero-card-label {
    font-weight: 600;
    color: var(--primary-dark);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    color: var(--neutral-500);
    font-size: 0.875rem;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--neutral-400);
    border-radius: var(--radius-full);
    position: relative;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-dark);
    border-radius: var(--radius-full);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 1; top: 8px; }
    50% { opacity: 0.5; top: 20px; }
}

/* ===================================
   Pain Points Section
   =================================== */
.pain-section {
    padding: var(--space-4xl) 0;
    background: white;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    text-align: center;
    color: var(--neutral-600);
    font-size: 1.125rem;
    margin-bottom: var(--space-3xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.pain-card {
    background: var(--neutral-50);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-normal);
    border: 1px solid var(--neutral-200);
}

.pain-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-dark);
}

.pain-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, rgba(26, 39, 68, 0.1), rgba(26, 39, 68, 0.05));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pain-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-dark);
}

.pain-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.pain-card p {
    color: var(--neutral-600);
    font-size: 0.9375rem;
}

/* ===================================
   Anchor Product Section
   =================================== */
.anchor-section {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.anchor-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
}

.anchor-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.section-tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(201, 169, 98, 0.2);
    color: var(--accent-gold);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.anchor-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: white;
    margin-bottom: var(--space-lg);
}

.anchor-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-2xl);
}

.anchor-benefits {
    list-style: none;
    margin-bottom: var(--space-2xl);
}

.anchor-benefits li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    font-size: 1.0625rem;
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--accent-gold);
    color: var(--primary-dark);
    border-radius: var(--radius-full);
    font-weight: bold;
    flex-shrink: 0;
}

.anchor-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
}

.visual-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-xl);
    background: white;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.visual-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.visual-stats {
    display: flex;
    gap: var(--space-xl);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ===================================
   Services Section
   =================================== */
.services-section {
    padding: var(--space-4xl) 0;
    background: var(--neutral-100);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.service-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid var(--neutral-200);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.service-header h3 {
    font-size: 1.25rem;
}

.service-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background: rgba(26, 39, 68, 0.1);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-problem {
    color: var(--neutral-600);
    margin-bottom: var(--space-md);
}

.service-impact {
    color: var(--neutral-700);
    padding-top: var(--space-md);
    border-top: 1px solid var(--neutral-200);
}

.service-impact strong {
    color: var(--accent-gold);
}

/* ===================================
   Differentials Section
   =================================== */
.differentials-section {
    padding: var(--space-4xl) 0;
    background: var(--primary-dark);
}

.text-light {
    color: white;
}

.differentials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}

.differential-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-normal);
}

.differential-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.differential-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.differential-icon svg {
    width: 35px;
    height: 35px;
    color: var(--primary-dark);
}

.differential-card h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.differential-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

/* ===================================
   FAQ Section
   =================================== */
.faq-section {
    padding: var(--space-4xl) 0;
    background: white;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--neutral-200);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: var(--space-lg) 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--primary-dark);
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--accent-gold);
}

.faq-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform var(--transition-normal);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal), padding var(--transition-normal);
}

.faq-answer.open {
    max-height: 300px;
    padding-bottom: var(--space-lg);
}

.faq-answer p {
    color: var(--neutral-600);
    line-height: 1.7;
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, var(--neutral-100) 0%, var(--neutral-200) 100%);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-bottom: var(--space-md);
}

.cta-content p {
    color: var(--neutral-600);
    font-size: 1.125rem;
    margin-bottom: var(--space-2xl);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.cta-buttons .btn svg {
    width: 20px;
    height: 20px;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--primary-darker);
    color: white;
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: var(--space-lg);
    max-width: 300px;
}

.footer-logo {
    height: 45px;
    filter: brightness(0) invert(1);
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: var(--space-lg);
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-sm);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-sm);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-subheadline {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-visual {
        display: none;
    }
    
    .pain-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .anchor-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .anchor-benefits li {
        justify-content: center;
    }
    
    .visual-stats {
        justify-content: center;
    }
    
    .differentials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .header-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .pain-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-scroll {
        display: none;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}
