/* ===============
   CLEAN CORPORATE LIGHT THEME - CSS VARIABLES
   =============== */
:root {
    /* Mint/Teal Primary */
    --primary-color: #10b981;
    --primary-hover: #059669;
    --primary-light: #34d399;
    --primary-soft: rgba(16, 185, 129, 0.1);
    
    /* Soft Blue Secondary */
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --accent-soft: rgba(59, 130, 246, 0.1);
    
    /* Dark Text Colors */
    --secondary-color: #1e293b;
    --dark-color: #0f172a;
    
    /* Light Backgrounds */
    --bg-color: #f8fafc;
    --bg-white: #ffffff;
    --surface-color: #ffffff;
    --surface-hover: #f1f5f9;
    --surface-soft: #f8fafc;
    
    /* Text Colors */
    --text-color: #475569;
    --text-heading: #0f172a;
    --text-muted: #64748b;
    --text-dim: #94a3b8;
    
    /* Borders & Effects */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Transitions */
    --transition-fast: 0.2s;
    --transition-speed: 0.3s;
    --transition-slow: 0.5s;
    
    /* Radii - soft rounded */
    --radius-xl: 24px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --radius-full: 9999px;
    
    /* Shadows - soft and clean */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-large: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
    
    /* Gradients - soft and fresh */
    --gradient-primary: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    --gradient-soft: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%);
    --gradient-hero: linear-gradient(135deg, #ecfdf5 0%, #f0f9ff 50%, #faf5ff 100%);
    
    /* Typography - clean modern */
    --font-heading: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===============
   RESET
   =============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

html,
body {
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* Clean Light Background */
body {
    background-color: var(--bg-color);
    background-image: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) ease;
}

ul {
    list-style: none;
}

/* ===============
   GLOBAL COMPONENTS
   =============== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===============
   HEADER - Clean Corporate
   =============== */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-xs);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

/* Scrolled state — applied via JS */
.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    height: 56px;
    gap: 24px;
    transition: height 0.3s ease;
}

.header.scrolled .header-inner {
    height: 50px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: auto;
}
.logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
    display: block;
}

.header-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 4px;
    align-items: center;
}
.nav-list a {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.82rem;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    white-space: nowrap;
    transition: all var(--transition-fast) ease;
}
.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
    background: var(--primary-soft);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Clean Corporate Buttons */
.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-heading);
    background: transparent;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}
.btn-login:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: var(--primary-soft);
}

.btn-signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: #fff !important;
    padding: 7px 18px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    transition: all var(--transition-fast);
    border: none;
    box-shadow: var(--shadow-soft);
}
.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    opacity: 0.95;
}

/* Mobile Menu Toggle - Clean Style */
.mobile-menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.mobile-menu-toggle:hover {
    background: var(--surface-hover);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ===============
   ADS BLOCK
   =============== */
.ad-banner-container {
    margin-top: 72px;
    text-align: center;
}

.ad-banner-container + .ad-banner-container {
    margin-top: 24px;
}

.ad-banner-container img {
    max-width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border: 1px solid var(--border-color);
}

.ad-banner-container img:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: var(--shadow-large);
}

/* ===============
   FOOTER - Clean Corporate
   =============== */
.footer {
    background: var(--bg-white);
    padding: 60px 0 24px;
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text-heading);
    font-weight: 600;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 15px;
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-dim);
    font-size: 14px;
}

/* ===============
   RESPONSIVE
   =============== */
@media (max-width: 1300px) {
    /* Hide desktop nav – drawer replaces it */
    .header-nav {
        position: static;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 56px; /* matches .header-inner height */
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
        padding: 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-list.active {
        max-height: 600px;
        padding: 12px 16px;
    }

    .nav-list li {
        border-bottom: 1px solid var(--border-light);
    }

    .nav-list li:last-child {
        border-bottom: none;
    }

    .nav-list a {
        padding: 14px 18px;
        border-radius: var(--radius-xs);
        text-align: left;
        font-size: 0.88rem;
        font-weight: 500;
        color: var(--text-color);
        display: flex;
        align-items: center;
        gap: 10px;
        border-left: 3px solid transparent;
        transition: all 0.2s ease;
    }

    .nav-list a::after {
        display: none;
    }

    .nav-list a:hover,
    .nav-list a.active {
        background: var(--primary-soft);
        color: var(--primary-color);
        border-left-color: var(--primary-color);
    }

    .header-actions .btn-login,
    .header-actions .btn-signup {
        padding: 8px 14px;
        font-size: 0.75rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .header-inner {
        height: 52px;
        gap: 8px;
    }

    /* Override top offset for smaller header */
    .nav-list {
        top: 52px;
    }

    .logo {
        margin-right: 0;
    }

    .logo img {
        height: 28px;
        max-width: 110px;
    }

    /* Keep buttons compact and inline */
    .header-actions {
        gap: 6px;
    }

    .header-actions .btn-login,
    .header-actions .btn-signup {
        padding: 7px 12px;
        font-size: 0.72rem;
    }

    /* Shrink hamburger */
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .ad-banner-container {
        margin-top: 64px;
    }

    .footer {
        padding: 40px 0 20px;
        margin-top: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        margin-bottom: 32px;
    }

    .footer-col h4 {
        font-size: 16px;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .header-inner {
        height: 48px;
        gap: 6px;
    }

    .nav-list {
        top: 48px;
    }

    .logo img {
        height: 26px;
        max-width: 100px;
    }

    /* On very small phones only keep one button visible to save space */
    .header-actions .btn-login {
        display: none;
    }

    .header-actions .btn-signup {
        padding: 8px 14px;
        font-size: 0.75rem;
    }

    .ad-banner-container {
        margin-top: 56px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ===============
   MOBILE BOTTOM AUTH BAR - Clean
   =============== */
.mobile-bottom-auth {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-auth {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 12px 16px;
        gap: 12px;
        z-index: 1000;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        border-top: 1px solid var(--border-color);
    }
    
    .mob-btn-login,
    .mob-btn-signup {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 48px;
        font-family: var(--font-body);
        font-weight: 600;
        font-size: 0.9rem;
        border-radius: var(--radius-full);
        text-decoration: none;
        transition: all var(--transition-fast);
    }

    /* Entrar */
    .mob-btn-login {
        color: var(--text-heading);
        border: 1.5px solid var(--border-color);
        background: transparent;
    }
    .mob-btn-login:hover {
        color: var(--primary-color);
        border-color: var(--primary-color);
    }

    /* Cadastre-se */
    .mob-btn-signup {
        background: var(--gradient-primary);
        color: #fff !important;
        border: none;
        box-shadow: var(--shadow-soft);
    }
    .mob-btn-signup:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-medium);
    }

    /* hide header buttons strictly on mobile */
    .header-actions .btn-login,
    .header-actions .btn-signup {
        display: none !important;
    }

    /* pad body bottom so it doesn't overlap text/footer */
    body {
        padding-bottom: 80px;
    }
}

/* ===============
   SCROLL REVEAL ANIMATIONS
   =============== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===============
   PAGE LOAD FADE-IN
   =============== */
body {
    animation: page-fade-in 0.4s ease both;
}

@keyframes page-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ===============
   SMOOTH SCROLL
   =============== */
html {
    scroll-behavior: smooth;
}

/* ===============
   FOCUS VISIBLE - Accessibility
   =============== */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ===============
   SELECTION COLOR
   =============== */
::selection {
    background: rgba(16, 185, 129, 0.2);
    color: var(--text-heading);
}
