/* Reset e Configurações Gerais */
:root {
    --color-primary: #000000;
    --color-secondary: #1a1a1a;
    --color-accent: #333333;
    --color-text: #e0e0e0;
    --color-text-light: #a0a0a0;
    --color-border: #444444;
    --color-hover: #4a4a4a;
    --color-success: #2e7d32;
    --color-warning: #f9a825;
    --transition-speed: 0.3s;
    --border-radius: 8px;
    --container-width: 1200px;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-primary);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Tipografia */
h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

h1 {
    font-size: 2rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

/* Header */
.header {
    background-color: var(--color-secondary);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    flex: 1;
    min-width: 300px;
}

.logo-text {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #ffffff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtext {
    color: var(--color-text-light);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.disclaimer {
    flex: 1;
    min-width: 300px;
    background-color: rgba(249, 168, 37, 0.1);
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-warning);
}

.disclaimer p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.disclaimer strong {
    color: var(--color-warning);
}

/* ====== MENU MOBILE FUNCIONAL ====== */
.main-nav {
    background-color: var(--color-secondary);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

/* Botão do menu mobile */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    position: relative;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Menu principal - DESKTOP */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.nav-item {
    flex: 1;
}

.nav-link {
    display: block;
    padding: 1rem 1.5rem;
    text-align: center;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-link:hover {
    background-color: var(--color-hover);
    color: #ffffff;
}

.nav-link.active {
    background-color: var(--color-accent);
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* ====== RESPONSIVIDADE ====== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .logo, .disclaimer {
        min-width: 100%;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .nav-container {
        padding: 0 15px;
        height: 60px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Botão hamburger visível em mobile */
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1002;
        position: relative;
        order: 2; /* Para ficar à direita */
    }
    
    .mobile-menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--color-text);
        margin: 5px 0;
        transition: 0.3s;
        border-radius: 2px;
    }
    
    /* Animação do botão hamburger para X */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Esconde o menu em mobile inicialmente */
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-secondary);
        flex-direction: column;
        padding: 80px 30px 30px;
        z-index: 1000;
        overflow-y: auto;
        transition: transform 0.3s ease;
    }
    
    /* Mostra o menu quando tem a classe 'active' */
    .nav-menu.active {
        display: flex;
        transform: translateX(0);
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }
    
    .nav-link {
        padding: 1.2rem 1.5rem;
        text-align: left;
        font-size: 1.1rem;
        border-bottom: none;
        border-left: 4px solid transparent;
        display: block;
        width: 100%;
    }
    
    .nav-link.active {
        border-left-color: #ffffff;
        border-bottom: none;
        background-color: var(--color-accent);
    }
    
    /* Prevenir scroll quando menu está aberto */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
    
    /* Adiciona overlay quando menu está aberto */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 999;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-link {
        padding: 1rem;
        font-size: 1rem;
    }
}

/* Conteúdo Principal */
.main-content {
    flex: 1;
    padding: 3rem 0;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.hero-content h2 {
    margin-bottom: 1rem;
}

.hero-subtitle {
    color: var(--color-text-light);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-description {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.hero-description p {
    margin-bottom: 1rem;
}

.hero-description strong {
    color: #ffffff;
}

/* Grid de Calculadoras */
.calculators-overview {
    margin-bottom: 3rem;
}

.calculators-overview h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.calculators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.calculator-card-link {
    text-decoration: none;
}

.calculator-card {
    background-color: var(--color-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    height: 100%;
    transition: all var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
}

.calculator-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--color-accent);
}

.calculator-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.icon-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #ffffff;
}

.calculator-info h4 {
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.calculator-info p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.calculator-link {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-block;
}

/* Aviso Educacional */
.educational-warning {
    background-color: rgba(249, 168, 37, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--color-warning);
    margin-top: 3rem;
}

.educational-warning h3 {
    color: var(--color-warning);
    margin-bottom: 1rem;
}

.educational-warning p {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.educational-warning strong {
    color: #ffffff;
}

.educational-principles {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(249, 168, 37, 0.3);
}

.educational-principles h4 {
    color: var(--color-warning);
    margin-bottom: 1rem;
}

.educational-principles ul {
    list-style: none;
    padding-left: 0;
}

.educational-principles li {
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.educational-principles li:before {
    content: "→";
    color: var(--color-warning);
    position: absolute;
    left: 0;
}

/* Footer */
.footer {
    background-color: var(--color-secondary);
    padding: 2rem 0 1.5rem;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

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

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-info p {
    color: var(--color-text-light);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.footer-nav h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-nav ul {
    list-style: none;
    padding-left: 0;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-nav a {
    color: var(--color-text-light);
    font-size: 0.9rem;
    transition: color var(--transition-speed) ease;
}

.footer-nav a:hover {
    color: #ffffff;
}

.footer-disclaimer {
    color: var(--color-text-light);
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-disclaimer p {
    margin-bottom: 0.3rem;
}

.footer-disclaimer strong {
    color: var(--color-warning);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.85rem;
}