/* Variables & Reset */
:root {
    /* Brand Colors */
    --color-primary: #1a237e;
    /* Deep Blue */
    --color-primary-light: #534bae;
    --color-secondary: #b71c1c;
    /* Red/Maroon */
    --color-secondary-light: #f05545;

    /* Neutral Colors */
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #f8f9fa;
    --color-white: #ffffff;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);

    /* Spacing & Layout */
    --header-height: 80px;
    --container-width: 1200px;
    --border-radius: 16px;

    /* Typography */
    --font-main: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-bg);
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 900;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-secondary);
    margin: 10px auto 0;
    border-radius: 2px;
}

.text-left.section-title::after {
    margin: 10px 0 0;
}

.section-subtitle {
    color: var(--color-text-light);
    font-size: 1.2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 35, 126, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
}

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

.btn-light {
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 55px;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--color-primary);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-btns {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-toggle,
.nav-close {
    display: none;
}

/* Hero Section */
.hero {
    margin-top: var(--header-height);
    background: url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-white);
    padding: 160px 0;
    text-align: center;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.95), rgba(183, 28, 28, 0.85));
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-text {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* About Section */
.about {
    background-color: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text .lead {
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-secondary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(45deg, #f3f4f6, #e5e7eb);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #d1d5db;
    font-weight: 900;
    position: relative;
    overflow: hidden;
}

/* Courses Section */
.courses {
    background-color: #f0f2f5;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.course-icon {
    font-size: 3.5rem;
    padding: 30px 30px 10px;
    text-align: center;
}

.course-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-content h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 800;
}

.course-details {
    margin-bottom: 30px;
    flex-grow: 1;
}

.course-details li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    color: var(--color-text-light);
}

.course-details li::before {
    content: "✓";
    color: var(--color-secondary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.course-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
    text-align: center;
}

.price {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 15px;
}

.price strong {
    font-size: 1.4rem;
    color: var(--color-primary);
}

/* Why Us Section */
.why-us {
    background-color: var(--color-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.glass-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.glass-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}

.feature-item {
    text-align: center;
}

.feature-icon-circle {
    width: 70px;
    height: 70px;
    background: rgba(26, 35, 126, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon-circle {
    background: var(--color-primary);
    color: var(--color-white);
    transform: rotateY(180deg);
}

.feature-item h3 {
    margin-bottom: 12px;
    color: var(--color-primary);
    font-weight: 700;
}

/* Location Section */
.location {
    background-color: #f8f9fa;
    text-align: center;
}

.address {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--color-text);
    font-weight: 500;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--color-white);
}

/* Contact Section */
.contact {
    background-color: var(--color-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.contact-list {
    margin-top: 40px;
}

.contact-list li {
    margin-bottom: 25px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    color: var(--color-text);
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateX(10px);
}

.contact-form-container {
    padding: 40px;
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    resize: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(26, 35, 126, 0.1);
}

/* Final CTA */
.cta-final {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    text-align: center;
    padding: 120px 0;
}

.cta-final h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.cta-final p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: #0a0e2e;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
.pulse-anim {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(183, 28, 28, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(183, 28, 28, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(183, 28, 28, 0);
    }
}

/* Scroll Animations */
.reveal,
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-up.active {
    transform: translateY(0);
    opacity: 1;
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-left.active {
    transform: translateX(0);
    opacity: 1;
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-right.active {
    transform: translateX(0);
    opacity: 1;
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-title {
        font-size: 3rem;
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        justify-content: center;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
    }

    .nav-menu.show {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .nav-link {
        font-size: 1.4rem;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: block;
        cursor: pointer;
        z-index: 1002;
    }

    .nav-toggle .bar {
        width: 28px;
        height: 3px;
        background-color: var(--color-primary);
        margin: 6px 0;
        transition: 0.3s;
        border-radius: 3px;
    }

    .nav-close {
        display: block;
        position: absolute;
        top: 25px;
        right: 25px;
        font-size: 2.5rem;
        cursor: pointer;
        color: var(--color-text);
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* --- Override temporário do reveal apenas para about-image (útil para testes) --- */
.about-image.reveal-right,
.about-image.reveal-left,
.about-image.reveal,
.about-image.reveal-up {
    /* permite ver o elemento mesmo sem JS activar .active */
    opacity: 1 !important;
    transform: none !important;
}

/* Container da imagem - mantém bordas e overflow */
.about-image .image-qs {
    width: 100%;
    border-radius: var(--border-radius) !important;
    overflow: hidden !important;
    display: block;
    position: relative;
}

/* A imagem interna — altura mínima garante que o img tenha espaço */
.about-image .image-qs img {
    display: block !important;
    width: 100% !important;
    height: auto !important;               /* usa auto para respeitar proporções */
    min-height: 260px;                     /* ajusta conforme necessário */
    object-fit: cover !important;
    transition: transform 0.45s cubic-bezier(.2,.9,.3,1), filter 0.45s ease !important;
    filter: grayscale(0%) !important;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    cursor: pointer;
}

/* Hover no container (mais seguro que hover no img) */
.about-image .image-qs:hover img {
    filter: grayscale(100%) !important;
    transform: scale(1.08) !important;
    will-change: transform, filter;
}

/* Pequena sombra e destaque ao hover no container */
.about-image .image-qs:hover {
    box-shadow: 0 12px 30px rgba(8, 12, 35, 0.18);
}





