/* ============================================
   QuantelisERP - Páginas Públicas
   ============================================ */

:root {
    --q-primary: #0f3d7a;
    --q-secondary: #0b5c5a;
    --q-accent: #4ade80;
    --q-dark: #0a2e5c;
    --q-light: #f8fafc;
    --q-gradient: linear-gradient(135deg, #0f3d7a 0%, #0b5c5a 100%);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* ---- Navbar ---- */
.pub-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 0;
    background: white;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

.pub-navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.pub-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--q-primary);
    text-decoration: none;
}

.pub-navbar .navbar-brand img {
    height: 52px;
    border-radius: 12px;
}

.pub-navbar .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.pub-navbar .brand-name {
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--q-primary);
}

.pub-navbar .brand-tagline {
    font-size: 0.7rem;
    color: #333;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.pub-navbar .nav-link {
    color: #444 !important;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    padding: 8px 16px !important;
}

.pub-navbar .nav-link:hover {
    color: var(--q-primary) !important;
}

.pub-navbar .btn-entrar {
    background: var(--q-gradient);
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pub-navbar .btn-entrar:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(15,61,122,0.3);
    color: white;
}

/* ---- Hero ---- */
.pub-hero {
    min-height: 100vh;
    background: var(--q-gradient);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.pub-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(74,222,128,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.pub-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.pub-hero .hero-logo-q {
    max-width: 380px;
    width: 90%;
    opacity: 0.2;
    border-radius: 60px;
}

.pub-hero .hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 720px;
}

.pub-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
}

.pub-hero .hero-sub {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 40px;
}

.pub-hero .hero-deskflow-hint {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 32px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    border-left: 3px solid var(--q-accent);
    display: inline-block;
}

.pub-hero .hero-deskflow-hint a {
    color: var(--q-accent);
    text-decoration: none;
    font-weight: 600;
}

.pub-hero .hero-deskflow-hint a:hover {
    text-decoration: underline;
}

.pub-hero .hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-cta-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--q-accent);
    color: var(--q-dark);
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74,222,128,0.3);
    color: var(--q-dark);
}

.btn-cta-secondary {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    color: white;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-cta-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    color: white;
}

/* ---- Secções genéricas ---- */
.pub-section {
    padding: 100px 0;
}

.pub-section.bg-light {
    background: var(--q-light);
}

.pub-section-title {
    text-align: center;
    margin-bottom: 60px;
}

.pub-section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--q-primary);
    margin-bottom: 12px;
}

.pub-section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Secção B: O que é ---- */
.card-oque {
    background: white;
    border: none;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card-oque:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.card-oque .icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--q-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.card-oque .icon-circle i {
    font-size: 1.8rem;
    color: white;
}

.card-oque h4 {
    font-weight: 700;
    color: var(--q-primary);
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.card-oque p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ---- Secção C: Funcionalidades ---- */
.card-func {
    background: white;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    padding: 30px 24px;
    transition: all 0.3s ease;
    height: 100%;
}

.card-func:hover {
    border-color: var(--q-secondary);
    box-shadow: 0 8px 30px rgba(11,92,90,0.08);
}

.card-func .func-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.card-func h5 {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.card-func p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.card-func .btn-saber-mais {
    font-size: 0.85rem;
    color: var(--q-secondary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

.card-func .btn-saber-mais:hover {
    gap: 8px;
}

/* ---- Secção D: Para quem ---- */
.card-paraquem {
    background: white;
    border-radius: 16px;
    padding: 50px 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-left: 5px solid var(--q-secondary);
    height: 100%;
}

.card-paraquem h4 {
    font-weight: 700;
    color: var(--q-primary);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.card-paraquem p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

/* ---- Secção E: Formulário Demo ---- */
.pub-demo {
    background: var(--q-gradient);
    color: white;
}

.pub-demo .pub-section-title h2 {
    color: white;
}

.pub-demo .pub-section-title p {
    color: rgba(255,255,255,0.8);
}

.demo-form {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.demo-form .form-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.demo-form .form-control {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 10px 14px;
    transition: border-color 0.2s;
}

.demo-form .form-control:focus {
    border-color: var(--q-primary);
    box-shadow: 0 0 0 3px rgba(15,61,122,0.1);
}

.demo-form .btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--q-gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-form .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15,61,122,0.3);
}

.demo-form .btn-submit:disabled {
    opacity: 0.7;
    transform: none;
}

/* ---- Footer ---- */
.pub-footer {
    background: #0a1f3d;
    color: rgba(255,255,255,0.7);
    padding: 40px 0 20px;
}

.pub-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.pub-footer a:hover {
    color: white;
}

.pub-footer .footer-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.pub-footer .footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 24px 0;
}

/* ---- Animações scroll ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsivo ---- */
@media (max-width: 768px) {
    .pub-hero h1 {
        font-size: 2rem;
    }

    .pub-hero .hero-sub {
        font-size: 1rem;
    }

    .pub-section {
        padding: 60px 0;
    }

    .pub-section-title h2 {
        font-size: 1.7rem;
    }

    .demo-form {
        padding: 24px;
    }

    .card-paraquem {
        padding: 30px 24px;
    }

    .pub-hero .hero-ctas {
        flex-direction: column;
    }

    .btn-cta-primary, .btn-cta-secondary {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .pub-hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .pub-hero h1 {
        font-size: 1.7rem;
    }
}
