/* Reset & Variables */
:root {
    --primary-color: #ff6b35;
    --primary-hover: #ff8555;
    --secondary-color: #004e89;
    --accent-color: #ffd23f;
    --bg-light: #fef9f3;
    --bg-card: #ffffff;
    --text-main: #1a1a2e;
    --text-muted: #6b7280;
    --header-bg: rgba(255, 255, 255, 0.98);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Roboto', 'Helvetica Neue', sans-serif;
    color: var(--text-main);
    background: linear-gradient(135deg, #fef9f3 0%, #fff5e6 100%);
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 400;
    padding-top: var(--header-height, 96px);
}

html {
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

/* Section header (title + action link) */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.section-header .section-title {
    margin-bottom: 0;
    left: auto;
    transform: none;
}

.section-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    border: 2px solid rgba(255, 107, 53, 0.35);
    background: rgba(255, 255, 255, 0.65);
    box-shadow: var(--shadow-sm);
}

.section-action:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 210, 63, 0.8);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.14), rgba(255, 210, 63, 0.18));
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .section-action {
        width: min(340px, 92%);
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Site header only (top-level header) */
body > header {
    background-color: var(--header-bg);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 3px solid var(--primary-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 1.5rem;
}

.logo {
    flex: 0 0 auto;
    min-width: 0;
}

.logo a {
    display: flex;
    align-items: center;
    max-width: 190px;
    overflow: hidden;
}

.nav-list {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.logo img {
    height: 50px;
    width: auto;
    max-width: 100%;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05) rotate(-2deg);
}

.nav-list ul {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-list a {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--secondary-color);
    position: relative;
    padding: 0.55rem 0.9rem;
    letter-spacing: 0.3px;
    border-radius: 999px;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 14px;
    right: 14px;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 999px;
    opacity: 0;
    transform: scaleX(0.6);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-list a:hover {
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.10), rgba(255, 210, 63, 0.14));
}

.nav-list a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.header-auth {
    flex: 0 0 auto;
}

.header-auth .btn-signup {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8555 100%);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-auth .btn-signup:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.5);
    background: linear-gradient(135deg, #ff8555 0%, var(--primary-color) 100%);
}

.mobile-menu-toggle {
    display: none;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    transition: 0.3s;
    border-radius: 3px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        width: 92%;
    }

    .header-container {
        padding: 0.75rem 0.9rem;
        gap: 0.75rem;
    }

    .logo a {
        max-width: 130px;
    }

    .logo img {
        height: 36px;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        padding: 1.2rem 0;
        box-shadow: var(--shadow-lg);
        border-top: 3px solid var(--primary-color);
        justify-content: flex-start;
        max-height: calc(100vh - 72px);
        overflow: auto;
    }

    .nav-list.active {
        display: block;
    }

    .nav-list ul {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
        padding: 0 1rem;
    }
    
    .nav-list a {
        font-size: 1.05rem;
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.1rem;
    }

    .header-auth {
        display: block;
        order: 2;
    }

    .header-auth .btn-signup {
        padding: 0.5rem 0.75rem;
        font-size: 0.76rem;
        letter-spacing: 0.3px;
        white-space: nowrap;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 3;
        margin-left: 0.4rem;
        padding: 7px;
    }

    .mobile-menu-toggle span {
        width: 22px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero {
        min-height: 450px;
    }
    
    .hero h1::after {
        bottom: -10px;
        height: 4px;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .btn-primary {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }

    /* Footer mobile layout (avoid horizontal overflow) */
    footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .footer-links a {
        margin-left: 0;
        margin-right: 1rem;
    }
}

@media (max-width: 420px) {
    .header-container {
        padding: 0.65rem 0.75rem;
        gap: 0.5rem;
    }

    .logo a {
        max-width: 112px;
    }

    .logo img {
        height: 32px;
    }

    .header-auth .btn-signup {
        padding: 0.45rem 0.6rem;
        font-size: 0.72rem;
    }

    .ad-container {
        margin: 1.25rem auto;
        border-radius: 12px;
    }
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #003366 100%);
    padding: 4rem 5% 2rem;
    margin-top: 5rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-nav h4,
.footer-contact h4 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: all 0.3s ease;
    padding-left: 0;
}

.footer-nav a:hover {
    color: var(--accent-color);
    padding-left: 10px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.footer-bottom {
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-links a {
    color: var(--accent-color);
    font-weight: 600;
    margin-left: 1rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.ad-container {
    max-width: 1000px;
    margin: 3rem auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Mobile bottom CTA (ENTRAR / BÔNUS) */
.mobile-bottom-cta {
    display: none;
}

@media (max-width: 768px) {
    .has-mobile-bottom-cta {
        padding-bottom: 94px;
    }

    .mobile-bottom-cta {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        width: min(96%, 520px);
        bottom: 8px;
        z-index: 2001;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 8px;
        background: #061327;
        border-top: 2px solid var(--accent-color);
        border-radius: 8px;
        box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.35);
    }

    .mobile-bottom-cta-btn {
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        font-size: 0.95rem;
        letter-spacing: 0.4px;
        text-transform: uppercase;
        border: 2px solid var(--accent-color);
        border-radius: 2px;
    }

    .mobile-bottom-cta-btn-login {
        color: #ffffff;
        background: #061327;
    }

    .mobile-bottom-cta-btn-bonus {
        color: #061327;
        background: var(--accent-color);
    }
}