:root {
    --green-primary: #00B050;
    --green-dark: #008a3e;
    --black-text: #1a1a1a;
    --white-bg: #FFFFFF;
    --blue-dark: #1A288B;
    --blue-grey: #8899A6;
    --gray-light: #f4f6f8;
    
    --gray-100: #F4F6F8;
    --gray-200: #DFE3E8;
    --gray-300: #C4CDD5;
    --gray-400: #919EAB;
    --gray-500: #637381;
    --gray-600: #454F5B;
    --gray-900: #0D121C;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
    
    --transition: 0.3s ease;
    --radius: 8px;
    --font-secondary: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--black-text);
    background-color: var(--white-bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    position: relative;
    z-index: 2;
}

h1, h2, h3 {
    margin-bottom: 15px;
    font-weight: 900;
    line-height: 1.2;
}

h1 {
    font-size: 3em;
    color: var(--green-primary);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h2 {
    font-size: 2.2em;
    color: var(--blue-dark);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--green-primary);
    border-radius: 2px;
}

a {
    text-decoration: none;
    color: var(--green-primary);
    transition: color var(--transition);
}

.header {
    background-color: var(--white-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition);
}

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

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.logo-title {
    font-family: 'Anton', 'Impact', sans-serif;
    font-weight: 400;
    font-size: 1.8em;
    color: var(--black-text);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.logo-subtitle {
    font-family: 'Anton', 'Impact', sans-serif;
    font-size: 0.65em;
    font-weight: 400;
    color: var(--black-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.nav a, .btn-logout-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--black-text);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    transition: transform 0.2s ease, color 0.3s ease;
}

.nav a:hover, .btn-logout-nav:hover {
    color: var(--green-primary);
    transform: translateY(-2px);
}

.nav a i, .btn-logout-nav i {
    font-size: 24px;
    margin-bottom: 4px;
    color: inherit;
}

.nav-text {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: inherit;
}

.nav a::after {
    display: none;
}

.theme-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 10px;
    border-left: 1px solid #ddd;
    margin-left: 10px;
}

.icon-tema {
    cursor: pointer;
    width: 24px;
    height: 24px;
    vertical-align: middle;
    transition: transform 0.4s ease;
}

.icon-tema:hover {
    transform: rotate(20deg) scale(1.1);
}

.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 50px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-dark) 100%);
    color: var(--white-bg);
    border: none;
    margin-top: 20px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.1);
}

.btn-secondary {
    background-color: var(--blue-dark);
    color: var(--white-bg);
    border: none;
    font-size: 0.9em;
    border-radius: var(--radius);
}

.btn-secondary:hover {
    background-color: var(--green-primary);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--blue-dark);
    border: 2px solid var(--blue-dark);
    margin: 40px auto 0;
    display: block;
    width: fit-content;
}

.btn-outline:hover {
    background-color: var(--blue-dark);
    color: var(--white-bg);
}

section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: var(--gray-light);
}

.hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 180px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 40, 139, 0.85) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

.hero .fundo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

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

.hero h1, .hero h2, .hero p, .hero .btn-primary {
    opacity: 0;
    animation: fadeUp 0.8s forwards;
}

.hero h1 {
    color: #ffffff;
    font-size: 3.5em;
    margin-bottom: 15px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    animation-delay: 0s;
}

.hero h2 {
    font-size: 1.6em;
    font-weight: 400;
    color: #e0e0e0;
    margin-bottom: 30px;
    padding-bottom: 0;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    animation-delay: 0.2s;
}

.hero h2::after {
    display: none;
}

.hero p {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    animation-delay: 0.4s;
}

.hero .btn-primary {
    background: var(--green-primary);
    border: 2px solid var(--green-primary);
    color: #fff;
    font-size: 1.1em;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation-delay: 0.6s;
}

.hero .btn-primary:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

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

.servico-card {
    background-color: var(--white-bg);
    padding: 40px 30px;
    border-radius: var(--radius);
    border-bottom: 4px solid var(--green-primary);
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
}

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

.servico-card h3 {
    color: var(--blue-dark);
    font-size: 1.4em;
    margin-bottom: 15px;
}

.foto-servico {
    width: 100%;
    height: 200px;
    background: #ddd;
    border-radius: 7px;
    margin-top: 15px;
    overflow: hidden;
}

.foto-servico img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.servico-card:hover .foto-servico img {
    transform: scale(1.1);
}

.section-cursos p.intro {
    text-align: center;
    margin-bottom: 50px;
    color: #666;
    font-size: 1.1em;
}

.curso-card {
    background-color: var(--white-bg);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    border: 1px solid #eee;
}

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

.curso-header {
    background-color: var(--blue-dark);
    color: var(--white-bg);
    padding: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1em;
}

.curso-card p {
    text-align: left;
    padding: 20px;
    margin-bottom: 0;
    color: #555;
    flex-grow: 1;
}

.curso-card .btn-secondary {
    margin: 0 20px 20px 20px;
    text-align: center;
}

.section-contato {
    text-align: center;
}

.contato-form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 40px auto;
    gap: 20px;
}

.contato-form input,
.contato-form textarea {
    padding: 15px;
    border: 2px solid #eee;
    border-radius: var(--radius);
    font-size: 1em;
    width: 100%;
    font-family: inherit;
    transition: all var(--transition);
    background-color: #f9f9f9;
    color: var(--black-text);
}

.contato-form input:focus,
.contato-form textarea:focus {
    border-color: var(--green-primary);
    background-color: var(--white-bg);
    box-shadow: 0 0 0 4px rgba(0, 176, 80, 0.1);
    outline: none;
}

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

.main-footer {
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
    margin-top: auto;
}

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

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 24px;
    filter: drop-shadow(var(--shadow-sm));
    object-fit: contain;
    align-self: flex-start;
}

.footer-text {
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-title {
    font-family: var(--font-secondary);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links li a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all var(--transition);
}

.footer-links li a:hover {
    color: var(--green-primary);
    padding-left: 4px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.contact-info i {
    color: var(--green-primary);
    width: 20px;
}

.footer-bottom {
    background: var(--gray-200);
    padding: 24px 20px;
    text-align: center;
    border-top: 1px solid var(--gray-300);
}

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

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

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

    .logo img { 
        max-height: 50px; 
    }

    .logo-text { 
        align-items: center; 
    }
    
    .logo-title { 
        font-size: 1.8em; 
        line-height: 1;
    }
    
    .logo-subtitle { 
        font-size: 0.6em;
        max-width: 250px; 
        line-height: 1.2;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        width: 100%;
    }

    .servicos-grid {
        grid-template-columns: 1fr;
    }
    
    .theme-toggle-container {
        border-left: none;
        padding-left: 0;
    }

    .hero {
        padding: 100px 0;
    }

    .hero h1 { 
        font-size: 2em; 
    }
    
    .hero h2 { 
        font-size: 1.2em; 
    }
}