/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0066B3;
    --primary-dark: #0052A3;
    --secondary: #F27F3D;
    --secondary-dark: #E06D2C;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-900: #0F172A;
    --white: #FFFFFF;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

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

.logo img {
    height: 2rem;
}

.nav {
    display: none;
    gap: 2rem;
}

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary);
}

.desktop-only {
    display: none;
}

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    transition: all 0.3s;
}

.hero {
    background: linear-gradient(135deg, #f7fbff 0%, #eaf6ff 50%, #d8edff 100%);
    padding: 3rem 0 0 0;
    margin-top: 4rem;
    min-height: auto !important;
}

.hero-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-end; 
    gap: 2rem;
}

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

.hero-photo img {
    max-height: 65vh;
    width: auto;
    object-fit: contain;
    display: block;
    margin-bottom: -0; /* corta no cotovelo */
}

.hero-content {
    position: relative;
    padding: 1rem 0;
}

.hero-icon {
    width: 42px;
    margin-bottom: 1rem;
    opacity: 0.10;
    position: absolute;
    top: -10px;
    right: -10px;
}

.hero-text {
    max-width: 500px;
}

.hero h1 {
    font-size: 2.3rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.text-primary {
    color: var(--primary);
}

.hero-subtitle {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.hero-description {
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.btn-secondary {
    background: var(--secondary);
    color: #fff;
    padding: 0.9rem 1.6rem;
    border-radius: 10px;
    font-weight: 600;
    display: inline-block;
    transition: 0.2s;
}

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

.social-links {
    display: flex;
    gap: 0.75rem;
    padding-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
}

.social-email {
    border-color: var(--secondary);
    color: var(--secondary);
}

.social-email:hover {
    background: var(--secondary);
    color: var(--white);
}

.social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #e1306c;
}

.social-youtube:hover {
    background: #FF0000;
    border-color: #FF0000;
}


/* MOBILE */
@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-photo img {
        max-height: 45vh;
        margin-bottom: 0;
    }

    .hero-content {
        text-align: center;
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .social-links {
        justify-content: center;
    }

    .hero-icon {
        display: none;
    }
}



/* Sections */
.section {
    padding: 5rem 0;
}

.section-white {
    background: var(--white);
}

.section-gray {
    background: var(--gray-50);
}

.section-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #DBEAFE;
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.section-header p {
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

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

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

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

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
}

.btn-outline:hover {
    background: var(--gray-50);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 1.5rem;
}

.card-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.card-header p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.card-body {
    padding: 0 1.5rem 1.5rem;
}

.card-footer {
    border-top: 1px solid var(--gray-200);
    padding-top: 1rem;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.blog-card {
    cursor: pointer;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.blog-card-meta svg {
    width: 1rem;
    height: 1rem;
}

.blog-card-excerpt {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.blog-card-link {
    color: var(--secondary);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-card-link:hover {
    color: var(--primary-dark);
}

/* Courses Grid */
.courses-grid {
    display: grid;
    gap: 1.5rem;
}

.course-card {
    position: relative;
    display: flex;          /* NOVO */
    flex-direction: column; /* NOVO */
}

.course-card .card-body {
    flex: 1;                /* NOVO */
}

.course-card .card-footer {
    margin-top: auto;                       /* footer vai pro fim */
    padding: 1rem 1.5rem 1.5rem;            /* padding completo */
    display: flex;                          /* alinhamento horizontal */
    align-items: center;                    /* centraliza verticalmente */
    justify-content: space-between;         /* preço à esquerda, botão à direita */
    gap: 1rem;
}

.course-card .card-footer .btn {
    white-space: nowrap;
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-badge-destaque {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
}

.card-badge-novo {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: var(--white);
}

.card-badge-popular {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.course-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.course-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.course-stat svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.course-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.badge-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.badge-primary {
    background: var(--primary);
    color: var(--white);
}

.badge-outline {
    border: 1px solid var(--gray-200);
    background: transparent;
    color: var(--gray-600);
}

.card-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.stat svg {
    width: 1rem;
    height: 1rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: block;
}

/* Events Grid */
.events-grid {
    display: grid;
    gap: 1.5rem;
}

.event-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.event-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.event-detail svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* Newsletter */
.newsletter-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    color: var(--white);
}

.newsletter-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.newsletter-card h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.newsletter-card > p {
    opacity: 0.8;
    margin-bottom: 2rem;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-note {
    font-size: 0.875rem;
    opacity: 0.6;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-200);
    padding: 3rem 0 2rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 2.5rem;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.footer-about p {
    color: var(--gray-200);
    opacity: 0.8;
}

.footer-col h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--gray-200);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: background 0.3s;
}

.social-btn:hover {
    background: var(--primary-dark);
}

.social-btn-secondary {
    background: var(--secondary);
}

.social-btn-secondary:hover {
    background: var(--secondary-dark);
}

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

.footer-bottom p {
    opacity: 0.6;
    font-size: 0.875rem;
}

/* Responsive - Tablet */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }

    .header-content {
        height: 5rem;
    }

    .logo img {
        height: 2.5rem;
    }

    .nav {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .hero {
        flex-direction: row;
        margin-top: 5rem;
    }

    .hero-image {
        width: 50%;
        height: auto;
        min-height: auto;
    }

    .hero-content {
        width: 50%;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

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

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

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* Responsive - Desktop */
@media (min-width: 1024px) {
    .desktop-only {
        display: inline-block;
    }

    .hero-bg-symbol {
        display: block;
        position: absolute;
        top: 2rem;
        right: 2rem;
        opacity: 0.05;
    }

    .hero-bg-symbol img {
        width: 16rem;
        height: 16rem;
    }

    .hero-logo img {
        width: 5rem;
        height: 5rem;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .newsletter-card {
        padding: 3rem;
    }

    .newsletter-card h2 {
        font-size: 2rem;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }