/* ===== RESET E VARIÁVEIS ===== */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #131820;
    --bg-card: #1a1f2e;
    --primary: #00d9ff;
    --success: #00ff88;
    --text: #ffffff;
    --text-muted: #b8c5d6;
    --border: rgba(255,255,255,0.1);
    --radius: 8px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== NAVBAR ===== */
.navbar-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo-img {
    width: 120px;
    height: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 15px;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius);
}

.nav-links a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--primary);
}

.nav-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

/* ===== HERO (gradiente suave) ===== */
.hero-section {
    max-width: 1200px;
    margin: 100px auto 60px;
    padding: 60px 40px;
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-card));
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 150px;
}

.hero-text h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--radius);
}

/* ===== BOTÕES SECUNDÁRIOS ===== */
.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
}

/* ===== PRODUTOS ===== */
.produtos-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 40px;
}

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.produto-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.produto-imagem {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 15px;
}

.produto-card h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 8px;
    min-height: 3.2rem;
}

.produto-preco {
    font-size: 1.4rem;
    color: var(--success);
    font-weight: 700;
    margin: 10px 0 15px;
}

.btn-detalhes {
    margin-top: auto;
}

/* ===== BOTÕES ===== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-primary {
    background: rgba(0, 217, 255, 0.2);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: rgba(0, 217, 255, 0.3);
}

.btn-success {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.btn-success:hover {
    background: rgba(0, 255, 136, 0.3);
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal {
    background: var(--bg-card);
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    border: 1px solid var(--border);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h2 {
    color: var(--primary);
    margin: 0;
    text-align: center;
    flex: 1;
}

.modal-fechar {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
}

.modal-fechar:hover {
    color: var(--primary);
}

.modal-body {
    display: flex;
    flex-direction: column;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.modal-imagem-col {
    display: flex;
    justify-content: center;
}

.modal-imagem {
    border-radius: 16px !important;
    width: 254px;
}

.modal-info-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-descricao {
    color: var(--text-muted);
    line-height: 1.8;
    white-space: pre-line;
}

.modal-preco {
    font-size: 2rem;
    color: var(--success);
    font-weight: 700;
    margin-top: 10px;
}

.modal-contacto-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btn-contacto {
    padding: 14px 40px;
    font-size: 1.1rem;
}

/* ===== SECÇÃO DE BENEFÍCIOS ===== */
.benefits-section {
    background: var(--bg-secondary);
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.benefits-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: var(--bg-card);
    padding: 30px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    border: 2px solid var(--primary);
    padding: 15px;
}

.benefit-icon img {
    width: 35px;
    height: 35px;
    filter: brightness(0) invert(1);
}

.benefit-title {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.benefit-description {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== AUTENTICAÇÃO ===== */
.auth-container {
    max-width: 450px;
    margin: 120px auto;
    padding: 0 20px;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border);
}

.auth-card h1 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: white;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-block {
    width: 100%;
    padding: 12px;
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1.5rem;
}

.alert {
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(0,255,136,0.1);
    border-left-color: var(--success);
    color: var(--success);
}

.alert-danger {
    background: rgba(255,51,102,0.1);
    border-left-color: #ff3366;
    color: #ff3366;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column p {
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
}

.footer-contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-contact-icon img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .nav-links {
        gap: 8px;
    }
    .nav-links a span {
        display: none;
    }
    .nav-links a img {
        margin: 0;
    }
    .modal-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .modal-imagem {
        max-height: 200px;
    }
    .btn-contacto {
        width: 100%;
    }
}