/* Variáveis de cores */
:root {
    --primary-color: #6A1B9A;     /* Roxo principal */
    --primary-light: #9C27B0;     /* Roxo mais claro */
    --primary-dark: #4A148C;      /* Roxo mais escuro */
    --accent-color: #E1BEE7;      /* Roxo bem claro para acentos */
    --bg-gradient: linear-gradient(135deg, #F3E5F5 0%, #E1BEE7 100%);
    --text-color: #333;
    --text-light: #666;
}

/* Reset básico e classes utilitárias */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Classes utilitárias para responsividade */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(0.5rem, 3vw, 1rem);
}

.text-center-mobile {
    text-align: center;
}

body, html {
    width: 100%;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #FAF8FC;
    color: var(--text-color);
    scroll-behavior: smooth;
}

/* Navegação */
nav {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(106, 27, 154, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(0.5rem, 2vw, 1rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: clamp(50px, 10vw, 80px);
    width: auto;
    transition: transform 0.3s ease;
}

.nav-links {
    display: flex;
    gap: clamp(1rem, 3vw, 2rem);
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    position: relative;
}

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

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

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

/* Menu Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s linear;
}

.menu-active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-active .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Overlay para menu mobile */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* Media query para menu mobile */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background-color: white;
        flex-direction: column;
        padding: 80px 20px;
        transition: 0.3s;
        z-index: 1050;
    }

    .menu-active .nav-links {
        right: 0;
    }

    .menu-active .overlay {
        display: block;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 15px 0;
    }
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: var(--bg-gradient);
}

.hero h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Seções */
section {
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem);
}

.section-title {
    text-align: center;
    margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.section-title h2 {
    color: var(--primary-color);
    font-size: clamp(1.5rem, 4vw, 2rem);
}

/* Cards e Blog */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(0.5rem, 3vw, 1rem);
}

.card {
    background: #fff;
    border-radius: 8px;
    padding: clamp(1rem, 3vw, 2rem);
    box-shadow: 0 2px 4px rgba(106, 27, 154, 0.1);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(106, 27, 154, 0.2);
}

.card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(106, 27, 154, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--accent-color);
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(106, 27, 154, 0.2);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.blog-link {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Seção de Treinamentos */
.course-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(106, 27, 154, 0.1);
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(106, 27, 154, 0.2);
}

.course-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.course-image {
    position: relative;
    padding: 2rem;
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.course-image img:hover {
    transform: scale(1.05);
}

.course-details {
    padding: 2rem;
}

.course-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.course-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.course-header h3 {
    color: var(--primary-color);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    margin: 0;
}

.course-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.course-features {
    list-style: none;
    margin-bottom: 2rem;
}

.course-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.05rem;
}

.course-features i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.course-cta {
    display: inline-flex;
    align-items: center;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    gap: 0.8rem;
}

.course-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(106, 27, 154, 0.3);
}

.course-cta i {
    font-size: 1.2rem;
}

/* Formulário de Contato */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(106, 27, 154, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--accent-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: var(--primary-color);
    color: #fff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(106, 27, 154, 0.2);
}

/* Rodapé */
footer {
    background: var(--primary-dark);
    color: #fff;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* Responsividade */
@media (max-width: 1024px) {
    .nav-container, 
    .cards-container,
    .footer-content {
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    /* Hero Section para Mobile */
    .hero {
        background-image: url('../images/background/hero-bg-mobile.jpg') !important;
        background-attachment: scroll !important;
        min-height: 100vh;
        height: auto;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: min(300px, 80%);
        height: 100vh;
        background: white;
        padding: 80px 1.5rem 2rem;
        transition: 0.3s ease-in-out;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 0.8rem 0;
        font-size: 1.1rem;
    }

    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }

    .overlay.active {
        display: block;
    }

    .hero {
        padding: clamp(4rem, 8vw, 6rem) clamp(1rem, 3vw, 2rem) clamp(2rem, 4vw, 4rem);
    }

    .blog-card,
    .card {
        margin: 0;
    }

    /* Layout específico para seção do professor em mobile */
    #professor .container > div {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    #professor .container > div > div:first-child {
        order: -1;
        margin-bottom: 1rem;
    }

    #professor h3 {
        text-align: center;
        font-size: clamp(1.5rem, 4vw, 1.8rem);
    }

    #professor p {
        text-align: left;
        font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    }

    #professor .grid-container {
        grid-template-columns: 1fr !important;
    }

    #cursos .grid-container {
        grid-template-columns: 1fr !important;
    }

    .blog-title {
        font-size: clamp(1rem, 3vw, 1.1rem);
    }

    .contact-form {
        margin: 0 auto;
        width: min(100%, 500px);
    }

    .submit-btn,
    [href*="wa.me"] {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body {
        font-size: clamp(14px, 3.5vw, 16px);
    }

    .section-title {
        margin-bottom: clamp(1.5rem, 4vw, 2rem);
    }

    .card {
        padding: clamp(1rem, 3vw, 1.5rem);
    }

    #professor .certification-grid {
        grid-template-columns: 1fr !important;
    }

    .form-group {
        margin-bottom: clamp(0.8rem, 2vw, 1rem);
    }

    .contact-form {
        padding: clamp(1rem, 3vw, 1.5rem);
        width: calc(100% - 2rem);
        margin: 0 1rem;
    }

    .footer-section {
        text-align: center;
        padding: clamp(1rem, 3vw, 1.5rem);
    }

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

/* Fix para iOS */
@supports (-webkit-touch-callout: none) {
    .hero {
        background-attachment: scroll;
    }
}
