/*ESTILOS PRINCIPAIS DO SITE*/

/*CABEÇALHO*/
body {
    margin: 0px;
    font-family: Arial, Helvetica, sans-serif;
}

ul {
    margin: 0px;
    padding: 0px;
    list-style: none;
}

a {
    text-decoration: none;
}

.header-bg {
    background-color: #FF6B35;   
}

.header {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between; 
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 50px; 
    width: auto; 
    border-radius: 5px;
}

.header-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-menu li {
    margin-left: 20px;
}

.header-menu a {
    padding: 16px 0px;
    display: inline-block;
    color: #ffffff;
    font-size: 18px;
}

/* botão APRENDER para uso geral*/
.botao-aprender {
    display: inline-block;
    padding: 12px 24px;
    background: #FF6B35;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid #FF6B35;
    cursor: pointer;
}

.botao-aprender:hover {
    background: #FF6B35;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 107, 53, 0.3);
}

.botao-objetivos {
    display: inline-block;
    padding: 12px 24px;
    background: #FF6B35;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid #FF6B35;
    cursor: pointer;
}

.botao-objetivos:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 107, 53, 0.3);
}

/*estilização para mobile*/
@media (max-width: 800px) {
    .header-menu {
        gap: 20px;
    }
    
    .header-menu a {
        background: #1111;
        padding: 12px 16px;
        border-radius: 4px;
    }
    
    .header-menu a:hover {
        background-color: #ffffff;
    }
}

@media (max-width: 600px) {
    .header-menu {
        gap: 12px; 
    }
    
    .header-menu a {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/*conteúdo da página principal*/
.introducao-bg {
    background: #ffffff;
}

h1, ul, p {
    margin: 0px;
}

.introducao {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0px 40px;
    max-width: 1200px;
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 60px;
}

.introducao-conteudo {
    align-self: end;
    padding-bottom: 80px;
}

.introducao h1 {
    margin-bottom: 32px;
    font-size: 64px;
    line-height: 1.125;
}

.introducao p {
    margin-bottom: 20px;
    font-size: 24px;
    line-height: 1.5;
    color: #B2B2B2;
}

.introducao img {
    border-radius: 20px;
}

/*FOOTER*/
.footer-bg {
    background-color: #FF6B35; 
    padding: 20px 0;
    margin-top: 60px;
}

.footer {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between; 
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo img {
    height: 50px; 
    width: auto;
    border-radius: 5px; 
}

/*redes socias a direita*/
.footer-social-media {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    color: #FF6B35;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.footer-link i {
    font-size: 20px;
}

/*footer responsivo*/
@media (max-width: 600px) {
    .footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-logo img {
        height: 45px;
    }
}

.footer-copy {
    text-align: center;
    font-size: 14px;
    color: white;
    margin-top: 10px;
    opacity: 0.85;
}

/*OBJETIVOS*/
section {
    max-width: 1200px;
    margin: 60px auto 0 auto;
    padding: 0 20px;
}

section h1 {
    font-size: 48px;
    line-height: 1.125;
    color: #000000;
    margin-bottom: 40px;
    text-align: center;
}

section details {
    background: #f7f7f7;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

section details:hover {
    border-color: #FF6B35;
}

section summary {
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #000000;
    cursor: pointer;
    list-style: none;
    position: relative;
}

/*remove a seta padrão do details*/
section summary::-webkit-details-marker {
    display: none;
}

/*seta personalizada */
section summary:after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #FF6B35;
    transition: transform 0.3s ease;
}

section details[open] summary:after {
    transform: translateY(-50%) rotate(45deg);
}

section p {
    padding: 0 20px 20px;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #555555;
}

/*responsividade da div section*/
@media (max-width: 800px) {
    section h1 {
        font-size: 36px;
    }
    
    section summary {
        font-size: 16px;
        padding: 16px;
    }
    
    section p {
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    section {
        margin-top: 40px;
    }
    
    section h1 {
        font-size: 32px;
    }
    
    section summary {
        font-size: 15px;
        padding: 14px;
    }
    
    section p {
        font-size: 14px;
    }
}

/*PÁGINAS SOBRE*/
.sobre-bg {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/*conteiner base*/
.sobre-container {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    min-height: 400px;
}

/*conteúdo de texto*/
.sobre-conteudo {
    flex: 1;
}

.titulos-sobre {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
}

.texto-sobre {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    text-align: justify;
}

/*imagens*/
.sobre-imagem {
    flex: 0 0 400px;
    max-width: 400px;
    height: 300px;
}

.sobre-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/*layout p cada direção */
.sobre-esquerda .sobre-imagem {
    order: -1;
}

.sobre-direita .sobre-imagem {
    order: 1;
}

/*responsividade*/
@media (max-width: 768px) {
    .sobre-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .sobre-imagem {
        flex: none;
        max-width: 100%;
        height: 250px;
    }
    
    .titulos-sobre {
        font-size: 1.5rem;
    }
    
    .texto-sobre {
        text-align: center;
    }
    
    .sobre-esquerda .sobre-imagem,
    .sobre-direita .sobre-imagem {
        order: 0;
    }
}

/* ESTILOS DA CALCULADORAS*/

/*página Calculadora*/
.calculator {
    display: inline-block;
    padding: 30px;
    background-color: #ff6b35;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin: 30px auto;
    flex: 1;
}

#display {
    width: 270px;
    height: 60px;
    font-size: 28px;
    text-align: right;
    margin-bottom: 15px;
    padding: 0 15px;
    border: none;
    border-radius: 10px;
    background-color: #f8f9fa;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.button {
    width: 65px;
    height: 65px;
    font-size: 24px;
    margin: 5px;
    border: none;
    border-radius: 12px;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/*botão widget calculadora*/
.calculadora-widget {
    position: fixed;
    bottom: 400px;
    left: 20px;
    z-index: 1000;
}

.botao-calculadora-widget {
    width: 50px;
    height: 50px;
    background-color: #ff6b35;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.botao-calculadora-widget:hover {
    background-color: #e55a2b;
    transform: scale(1.1);
}

.botao-calculadora-widget i {
    font-size: 20px;
    color: white;
}

/*overlay da calculadora c janela centralizada*/
.overlay-calculadora {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.popup-calculadora {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    width: 350px;
    max-width: 90%;
}

.calculadora-popup {
    width: 100%;
}

/*estilos da calculadora no overlay central*/
.calculadora-popup #display-popup {
    width: 100%;
    height: 60px;
    font-size: 28px;
    text-align: right;
    margin-bottom: 15px;
    padding: 0 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background-color: #f8f9fa;
    box-sizing: border-box;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.botoes-calculadora {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.linha-botoes {
    display: flex;
    gap: 10px;
}

.linha-botoes .button {
    flex: 1;
    height: 60px;
    font-size: 20px;
    border: none;
    border-radius: 10px;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.linha-botoes .button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.linha-botoes .button:active {
    transform: translateY(0);
}

/*plugin VLIBRAS*/
div[vw] {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

/*responsividade calculadoras*/
@media (max-width: 600px) {
    /* Calculadora Principal */
    .calculator {
        padding: 20px;
        margin: 20px auto;
    }
    
    #display {
        width: 240px;
        height: 50px;
        font-size: 24px;
    }
    
    .button {
        width: 55px;
        height: 55px;
        font-size: 20px;
        margin: 4px;
    }
    
    /*calculadora Popup*/
    .popup-calculadora {
        padding: 20px;
        width: 300px;
    }
    
    .calculadora-popup #display-popup {
        height: 50px;
        font-size: 24px;
    }
    
    .linha-botoes .button {
        height: 50px;
        font-size: 18px;
    }
    
    /*botão Widget*/
    .calculadora-widget {
        bottom: 15px;
        left: 15px;
    }
    
    .botao-calculadora-widget {
        width: 45px;
        height: 45px;
    }
    
    .botao-calculadora-widget i {
        font-size: 18px;
    }
}

@media (max-width: 400px) {
    /*calculadora principal*/
    .calculator {
        padding: 15px;
    }
    
    #display {
        width: 200px;
        height: 45px;
        font-size: 20px;
    }
    
    .button {
        width: 45px;
        height: 45px;
        font-size: 18px;
        margin: 3px;
    }
    
    /*calculadora Popup */
    .popup-calculadora {
        padding: 15px;
        width: 280px;
    }
    
    .calculadora-popup #display-popup {
        height: 45px;
        font-size: 20px;
        padding: 0 10px;
    }
    
    .linha-botoes .button {
        height: 45px;
        font-size: 16px;
    }
    
    .botoes-calculadora {
        gap: 8px;
    }
    
    .linha-botoes {
        gap: 8px;
    }
}