/* ============================================================
   TÊNIS 360 GRAUS — HOME PAGE STYLES
   ============================================================ */

/* ============================================================
   MOBILE MENU
   ============================================================ */

.mobile-menu {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    z-index: calc(var(--z-sticky) - 1);
    transform: translateY(-110%);
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-menu a {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-text-secondary);
    padding: var(--space-2) 0;
}

.mobile-menu a:hover {
    color: var(--color-primary);
}

/* Hamburger open state */
.navbar__hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.navbar__hamburger.open span:nth-child(2) {
    opacity: 0;
}
.navbar__hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--navbar-height);
    position: relative;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero__glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26, 122, 60, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

[data-theme="dark"] .hero__glow {
    background: radial-gradient(circle, rgba(45, 168, 84, 0.15) 0%, transparent 70%);
}

/* Linhas de quadra decorativas */
.hero__court-lines {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(var(--color-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 80%);
}

.hero > .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: var(--space-16);
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
}

.hero__content {
    flex: 1;
    max-width: 640px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: var(--space-6);
    background: var(--color-primary-subtle);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
}

.hero__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
    animation: pulse 2s ease-in-out infinite;
}

.hero__title {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.95;
    margin-bottom: var(--space-6);
    color: var(--color-text);
}

.hero__title-accent {
    color: var(--color-primary);
    -webkit-text-stroke: 2px var(--color-primary);
    color: transparent;
    display: inline-block;
}

[data-theme="dark"] .hero__title-accent {
    -webkit-text-stroke-color: var(--color-primary-light);
}

.hero__subtitle {
    font-size: var(--text-md);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
    max-width: 480px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
}

.hero__stats {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.hero__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero__stat-number {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    color: var(--color-text);
    line-height: 1;
    letter-spacing: 0.02em;
}

.hero__stat-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.hero__stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

/* Hero visual decoration (legacy) */
.hero__visual {
    display: none;
}

/* Hero visual art (SVG) */
.hero__visual-art {
    position: relative;
    flex-shrink: 0;
    color: var(--color-primary);
    opacity: 0.9;
    animation: float 8s ease-in-out infinite;
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
    padding: var(--space-24) 0;
}

.section--alt {
    background: var(--color-surface-2);
    border-top: 1px solid var(--color-border-subtle);
    border-bottom: 1px solid var(--color-border-subtle);
}

.section__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-16);
}

.section__tag {
    display: inline-flex;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: var(--space-4);
}

.section__header h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
}

.section__header p {
    font-size: var(--text-md);
}

.section__subheader {
    margin-bottom: var(--space-6);
    margin-top: var(--space-16);
}

/* ============================================================
   CATEGORIES
   ============================================================ */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-12);
}

.category-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
    transition: all var(--transition-base);
}

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

.category-card__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-4);
    display: flex;
    justify-content: center;
}

.category-card__icon svg {
    color: var(--color-primary);
}

.category-card h3 {
    font-size: var(--text-lg);
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.category-card p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

/* ============================================================
   COURSES GRID
   ============================================================ */

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.course-card {
    cursor: pointer;
    transition: all var(--transition-base);
}

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

.course-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border-subtle);
}

.course-card__lessons {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    font-weight: 500;
}

.course-card__instructor {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* ============================================================
   STEPS
   ============================================================ */

.steps-grid {
    display: flex;
    align-items: center;
    gap: 0;
}

.step {
    flex: 1;
    text-align: center;
    padding: var(--space-8);
}

.step__connector {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    flex-shrink: 0;
    opacity: 0.4;
}

.step__number {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    color: var(--color-primary);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: var(--space-4);
}

.step h3 {
    font-size: var(--text-xl);
    color: var(--color-text);
    margin-bottom: var(--space-3);
}

.step p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    max-width: 240px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================
   CTA SECTION
   ============================================================ */

.cta-section {
    padding: var(--space-24) 0;
    background: var(--color-primary);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.cta-section__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--space-8);
}

.cta-section__content {
    max-width: 580px;
}

.cta-section .section__tag {
    color: rgba(255, 255, 255, 0.7);
}

.cta-section h2 {
    font-size: var(--text-4xl);
    color: white;
    margin-bottom: var(--space-4);
}

.cta-section p {
    font-size: var(--text-md);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-8);
}

.cta-section .btn--primary {
    background: white;
    color: var(--color-primary);
    border-color: white;
}

.cta-section .btn--primary:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.cta-ball {
    font-size: 120px;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

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

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer__heading {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer__links a {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: var(--color-primary);
}

.footer__bottom {
    border-top: 1px solid var(--color-border-subtle);
    padding-top: var(--space-6);
    text-align: center;
}

.footer__bottom p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__visual,
    .hero__visual-art {
        display: none;
    }
}

@media (max-width: 768px) {
    .steps-grid {
        flex-direction: column;
    }

    .step__connector {
        width: 2px;
        height: 40px;
        background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .cta-section__inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-ball {
        font-size: 80px;
    }

    .hero__stats {
        gap: var(--space-4);
    }
}

@media (max-width: 640px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   FOOTER SOCIAL
   ============================================================ */

.footer__social {
    display: flex;
    gap: var(--space-3);
}

.footer__social-link {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.footer__social-link:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: var(--color-primary-subtle);
}
