/* ============================================
   ASSETS/CSS/STYLE.CSS — Escola da IA Landing Page
   Mobile First — CSS Grid + Flexbox
   ============================================ */

/* ============================================
   BASE RESETS (complemento do inline)
   ============================================ */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul, ol { list-style: none; }

/* ============================================
   TYPOGRAPHY — Fluida com clamp()
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.section {
    padding: clamp(3rem, 8vw, 6rem) 0;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--color-text), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--color-muted);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* ============================================
   CTA BUTTON
   ============================================ */
.btn-cta {
    display: inline-block;
    padding: clamp(0.875rem, 2vw, 1.125rem) clamp(1.5rem, 3vw, 2.5rem);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #FFF;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(108, 60, 225, 0.4);
    min-height: 48px;
    line-height: 1.4;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 60, 225, 0.6);
}

.btn-cta:active {
    transform: translateY(0);
}

/* ============================================
   HERO SECTION
   ============================================ */
.section-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: calc(var(--header-height) + 2rem);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.section-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(108, 60, 225, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.section-hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(108, 60, 225, 0.15);
    border: 1px solid rgba(108, 60, 225, 0.3);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.badge-text { color: var(--color-accent); font-weight: 600; }
.badge-sub { color: var(--color-secondary); font-weight: 500; }

.hero-students {
    display: inline-block;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--color-secondary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    max-width: 800px;
    margin: 0 auto 1.25rem;
    line-height: 1.15;
    background: linear-gradient(135deg, #FFFFFF, var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--color-muted);
    max-width: 650px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.btn-cta-hero {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    padding: 1rem 2.5rem;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 20px rgba(108, 60, 225, 0.4); }
    50% { box-shadow: 0 4px 40px rgba(108, 60, 225, 0.7); }
}

/* ============================================
   VIDEO SECTION
   ============================================ */
.section-video {
    background: var(--color-surface);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    margin: 2rem auto;
    max-width: 800px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
}

.section-video .btn-cta {
    display: block;
    max-width: 350px;
    margin: 2rem auto 0;
}

/* ============================================
   PRICING SECTION
   ============================================ */
.section-pricing {
    background: var(--color-bg);
}

.pricing-card {
    max-width: 550px;
    margin: 0 auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.pricing-prices {
    margin-bottom: 1.5rem;
}

.price-original {
    display: block;
    color: var(--color-muted);
    font-size: 1rem;
    text-decoration: line-through;
    margin-bottom: 0.25rem;
}

.price-sale {
    display: block;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-secondary), #FBBF24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-installments {
    display: block;
    color: var(--color-muted);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.pricing-urgency {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.btn-cta-pricing {
    display: block;
    width: 100%;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.pricing-access {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.access-badge {
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.25rem;
}

.access-desc {
    color: var(--color-muted);
    font-size: 0.85rem;
}

.pricing-benefits {
    text-align: left;
}

.pricing-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--color-border);
}

.pricing-benefits .check-icon {
    color: #10B981;
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-benefits strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.pricing-benefits span {
    color: var(--color-muted);
    font-size: 0.85rem;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.section-testimonials {
    background: var(--color-surface);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.testimonial-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.testimonial-card img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1;
    object-fit: cover;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.section-about {
    background: var(--color-bg);
}

.about-content {
    max-width: 800px;
    margin: 2rem auto 0;
}

.about-content p {
    color: var(--color-muted);
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.section-faq {
    background: var(--color-surface);
}

.faq-list {
    max-width: 800px;
    margin: 2rem auto 0;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: var(--color-accent);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--color-text);
    padding: 1.25rem 1.5rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: inherit;
    font-weight: 500;
    min-height: 48px;
}

.faq-number {
    color: var(--color-accent);
    font-weight: 700;
    flex-shrink: 0;
}

.faq-question span:nth-child(2) {
    flex: 1;
}

.faq-arrow {
    flex-shrink: 0;
    color: var(--color-muted);
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    padding-left: 3.5rem;
}

.faq-answer[hidden] {
    display: none;
}

.faq-answer p {
    color: var(--color-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--color-surface2);
    border-top: 1px solid var(--color-border);
    padding: 2.5rem 0;
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-brand .logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-accent);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 1.25rem 0;
}

.footer-links a {
    color: var(--color-muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-text);
}

.footer-copy {
    color: var(--color-muted);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* ============================================
   BREAKPOINTS — RESPONSIVE
   ============================================ */

/* Tablet (768px) */
@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .nav-links { display: flex; }
}

/* Desktop (1024px) */
@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .hero-title {
        font-size: 3rem;
    }
}

/* Wide Desktop (1440px) */
@media (min-width: 1440px) {
    .container {
        padding: 0 3rem;
    }
}

/* Mobile (max 767px) */
@media (max-width: 767px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }

    .section-hero {
        min-height: auto;
        padding: calc(var(--header-height) + 3rem) 0 3rem;
    }

    .hero-badge {
        flex-direction: column;
        gap: 0.25rem;
    }

    .pricing-card {
        padding: 1.25rem;
    }

    .testimonials-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }
}

/* Small mobile (320px) */
@media (max-width: 374px) {
    .container {
        padding: 0 1rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .btn-cta {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   ANIMATIONS & UTILITIES
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}



/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: rgba(108, 60, 225, 0.4);
    color: #FFF;
}
