@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    /* Paleta Extraída da Referência e Logo */
    --primary-green: #5CB85C; /* Verde Principal (da logo) */
    --dark-text: #2c3e50;    /* Preto/Azul-petróleo escuro (do texto da logo) */
    --white-text: #eeeeee;

    --accent-orange: #EC6840; /* Laranja da Engrenagem */
    --accent-blue: #3EADE5;   /* Azul da Engrenagem */
    --bg-peach: #F5E5DC;     /* Fundo do gradiente central */
    --white: #ffffff;

    --orange-gradient: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    --green-educriando: #5cb85c;
    --dark-blue: #2c3e50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--dark-text);
    line-height: 1.6;
}

.container {
    max-width: 1300px; /* Um pouco mais largo para a vitrine */
    margin: 0 auto;
    padding: 0 30px;
}

/* Header */
header {
    background: transparent;
    /* padding: 25px 0; */
    position: relative;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container img {
    height: 60px; /* Tamanho da logo de referência */
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-green); /* O verde correto */
}

.logo-wrapper {
    position: relative;
    /* Faz a logo descer sobre o banner */
    margin-top: 10px; 
    background: white;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 35px; /* Mais espaço entre os links */
    margin-bottom: 50px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    /* font-size: 1.1rem; */
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary-green);
}

/* LINKS */
.nav-links li a {
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 600;
    margin: 0 15px;
}

.nav-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 20px 0; */
}

.main-logo {
    height: 120px; /* Ajuste conforme necessário */
    display: block;
}

.btn-login {
    background: var(--primary-green);
    color: var(--white) !important;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
}

.btn-professor {
    background: var(--green-educriando);
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;

    transition: 2ms;
}

.btn-professor:hover {
    box-shadow: 0px 3px 3px 2px rgb(193, 193, 193);
}

/* Hero Section - A Grande Transformação */
.hero {
    /* Gradiente radial de pêssego para branco */
    background: var(--orange-gradient);
    padding: 90px 0 50px 0;
    color: white;
    margin-top: -60px; /* Sobe o banner para a logo "cortar" ele */
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 0.6fr; /* Mais espaço para o texto */
    align-items: center;
    gap: 30px;
}

.hero-text h1 {
    font-size: 3rem; /* Texto maior */
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--white-text);
}

.hero-text h1 span {
    color: var(--primary-green);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    color: var(--dark-text);
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-text-certificate {
    color: var(--white-text);
    font-size: 20px;
    
    position: absolute;
    bottom: 0;
    right: 70px;

    background-image: linear-gradient(180deg, rgb(167, 3, 142), rgba(220, 61, 196, 0.6));

    border: 2px solid rgb(167, 3, 142);
    border-radius: 15px 15px 0px 0px;
    padding: 5px;
}

.btn-cta {
    background: var(--primary-green);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-cta:hover {
    background: #4a9e4a;
}

.badge-compliance {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.compliance-badge {
    background: rgba(236, 104, 64, 0.15); /* Laranja transparente */
    color: var(--accent-orange);
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-graphic {
    text-align: right;
}

.hero-graphic img {
    max-width: 100%;
}

/* Imagem Lateral */
.hero-image img {
    max-width: 100%;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

/* Botão e Badge */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Vitrine Refinada */
#vitrine {
    margin-top: 70px; /* Sobrepor levemente a seção hero */
}

.section-title {
    text-align: left;
    margin-bottom: 60px;
    margin-left: 50px;
    font-size: 2.2rem;
    color: var(--dark-text);
    font-weight: 600;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.product-card {
    background: var(--white);
    border-radius: 15px; /* Borda mais redonda */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.08); /* Sombra mais difusa */
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    border: 1px solid #f1f1f1;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(44, 62, 80, 0.12);
}

/* Área de Arquivo do Card */
.product-img {
    height: 180px;
    background: #f8f8f8; /* Fundo suave */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    position: relative;
    border-bottom: 1px solid #f1f1f1;
}

.product-img .file-icon {
    /* Cores das engrenagens da referência aplicadas aos ícones de arquivo */
    color: #bdc3c7; /* Fallback */
}

.product-card:nth-child(1) .product-img .file-icon { color: var(--accent-orange); } /* Laranja */
.product-card:nth-child(2) .product-img .file-icon { color: var(--accent-blue); }   /* Azul */
.product-card:nth-child(3) .product-img .file-icon { color: var(--primary-green); }  /* Verde */

/* Tags "Novo" e "Mais Vendido" (usando as cores da referência) */
.product-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.tag-new { background: var(--accent-orange); } /* Laranja */
.tag-bestseller { background: var(--accent-blue); } /* Azul */

.product-info {
    padding: 25px;
}

.product-info h3 {
    margin-bottom: 12px;
    color: var(--dark-text);
    font-size: 1.4rem;
    font-weight: 600;
}

.product-info p {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 25px;
}

/* Botões do Card Atualizados */
.btn-buy {
    width: 100%;
    padding: 15px;
    border: none;
    background: var(--dark-text); /* Azul-petróleo escuro (da logo) */
    color: var(--white);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    transition: 0.3s;
}

.btn-buy:hover {
    background: #1a2530;
}

/* Footer */
/* Footer Principal */
.main-footer {
    background-color: #2c3e50; /* O azul-petróleo escuro da logo */
    color: #ffffff;
    padding: 80px 0 20px 0;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 50px;
}

/* Tipografia do Footer */
.footer-about .logo {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-about .logo span {
    color: #5cb85c; /* Verde da logo */
}

.footer-about p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 20px;
}

.main-footer h4 {
    color: #f1c40f; /* Amarelo da logo para títulos */
    margin-bottom: 25px;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Links e Listas */
.main-footer ul {
    list-style: none;
}

.main-footer ul li {
    margin-bottom: 12px;
}

.main-footer ul li a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.7;
    transition: 0.3s;
}

.main-footer ul li a:hover {
    opacity: 1;
    color: #5cb85c;
    padding-left: 5px;
}

/* Ícones Sociais e Pagamento */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #ffffff;
    font-size: 1.4rem;
    opacity: 0.8;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #f39c12; /* Laranja da logo ao passar o mouse */
    transform: translateY(-3px);
}

.payment-methods {
    font-size: 2rem;
    display: flex;
    gap: 15px;
    opacity: 0.8;
    margin-top: 15px;
}

/* Rodapé Final */
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    font-size: 0.85rem;
    opacity: 0.6;
}

.footer-bottom i {
    color: #e74c3c; /* Coração vermelho */
}

/* Ver todos botão */
.container-btn-ver-todos {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 50px;
}

.btn-ver-todos {
    padding: 12px 30px;
    background-color: transparent;
    color: var(--accent); /* Use a cor azul que você já definiu */
    border: 2px solid var(--accent);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s ease;
    box-shadow: 0px 2px 5px var(--dark-blue);
}

.btn-ver-todos:hover {
    background-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

/* Perfil do usuário */
/* Estilo do Perfil no Header */
/* Container do Menu */
.user-menu-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* Gatilho do Perfil (Avatar + Seta) */
.user-profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 30px;
    transition: 0.3s;
}

.user-profile-trigger:hover {
    background: rgba(255, 255, 255, 0.2);
}

.avatar-circle {
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

/* Conteúdo do Dropdown */
.user-dropdown-content {
    display: none;
    position: absolute;
    top: 120%;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
    z-index: 1000;
}

.user-dropdown-content.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.user-dropdown-content a, .user-dropdown-content button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: 0.2s;
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
}

.user-dropdown-content a:hover, .user-dropdown-content button:hover {
    background: #f8fafc;
    color: var(--accent);
}

.user-dropdown-content button {
    border-top: 1px solid #eee;
    color: #e74c3c;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsividade para o Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-icons, .payment-methods {
        justify-content: center;
    }
}