:root {
    --primary-dark: #111111;
    --gold-gradient: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
    --gold-solid: #d4ac0d;
    --bg-light: #f9f9f9;
    --text-color: #333333;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Topbar */
.topbar {
    background-color: var(--primary-dark);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 0;
}
.topbar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.contact-info a, .social-links a {
    color: var(--white);
    margin-right: 15px;
    text-decoration: none;
    transition: 0.3s;
}
.contact-info a:hover, .social-links a:hover {
    color: var(--gold-solid);
}

/* Navbar & Logótipo Oficial */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}
.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo-img {
    max-height: 45px !important;
    width: auto !important;
    object-fit: contain;
    display: block;
}
.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}
.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
}
.nav-menu a:hover, .nav-menu a.highlight-link {
    color: var(--gold-solid);
}
.highlight-dinbus {
    color: #d4ac0d !important;
    font-weight: 700 !important;
}

/* Botão Hambúrguer (Oculto em PC) */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #111111;
    background: #f1c40f;
    padding: 8px 12px;
    border-radius: 6px;
}

.nav-cta-mobile {
    display: none;
    margin-top: 15px;
    text-align: center;
}

/* Botões */
.btn-gold, .btn-primary {
    background: var(--gold-gradient);
    color: var(--primary-dark);
    padding: 10px 22px;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
    transition: 0.3s;
}
.btn-gold:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 10px 22px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}
.btn-outline:hover {
    background: var(--white);
    color: var(--primary-dark);
}

/* Botão Secundário WhatsApp para Escolas no DinBus */
.dinbus-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}
.btn-whatsapp-outline {
    border: 2px solid #25d366;
    color: #25d366;
    background: rgba(37, 211, 102, 0.05);
    padding: 10px 22px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}
.btn-whatsapp-outline:hover {
    background: #25d366;
    color: var(--white);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    color: var(--white);
    padding: 120px 0;
    text-align: center;
}
.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #f1c40f;
}
.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
}
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Secções Gerais */
.section {
    padding: 80px 0;
}
.bg-light {
    background-color: var(--bg-light);
}
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--primary-dark);
}
.section-title h2 span {
    color: #d4ac0d;
}
.section-title p {
    color: #666;
    margin-top: 10px;
}

/* Sobre Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.about-text p {
    margin-bottom: 15px;
    color: #555;
}
.about-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.card-item {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 4px solid var(--gold-solid);
}
.card-item i {
    font-size: 1.5rem;
    color: var(--gold-solid);
    margin-bottom: 8px;
}

/* Serviços Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}
.service-box {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
    border-top: 4px solid transparent;
}
.service-box:hover {
    transform: translateY(-5px);
    border-top-color: var(--gold-solid);
}
.service-box i {
    font-size: 2.5rem;
    color: var(--gold-solid);
    margin-bottom: 20px;
}
.service-box h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}
.service-box ul {
    list-style: none;
}
.service-box ul li {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}
.service-box ul li::before {
    content: "•";
    color: var(--gold-solid);
    position: absolute;
    left: 0;
}

/* Secção DinBus Destaque */
.dinbus-highlight-section {
    background: linear-gradient(135deg, #111111 0%, #1f1f1f 100%);
    color: #ffffff;
}
.dinbus-flex {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}
.badge-solution {
    background: var(--gold-gradient);
    color: var(--primary-dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}
.dinbus-text h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #f1c40f;
}
.dinbus-text p {
    color: #ccc;
    margin-bottom: 20px;
}
.dinbus-features {
    list-style: none;
    margin-bottom: 25px;
}
.dinbus-features li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #ddd;
}
.dinbus-features li i {
    color: #f1c40f;
    margin-right: 10px;
}
.dinbus-card-visual {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(241, 196, 15, 0.4);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}
.dinbus-card-visual i {
    font-size: 4rem;
    color: #f1c40f;
    margin-bottom: 15px;
}
.dinbus-card-visual h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.dinbus-card-visual p {
    color: #aaa;
    font-size: 0.9rem;
}

/* Cursos Portal */
.course-portal-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--primary-dark);
    color: var(--white);
    padding: 40px;
    border-radius: 10px;
}
.login-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: none;
    background: #222;
    color: var(--white);
}
.portal-highlights {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}
.highlight-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}
.highlight-item i {
    color: var(--gold-solid);
    font-size: 1.5rem;
}

/* Netflix Checker */
.netflix-checker {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.search-box-netflix {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.search-box-netflix input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.netflix-result-box {
    padding: 15px;
    background: var(--bg-light);
    border-radius: 5px;
    min-height: 80px;
    text-align: center;
}
.result-card {
    text-align: left;
}

/* WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}
.whatsapp-float a {
    background-color: #25d366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: 0.3s;
    text-decoration: none;
}
.whatsapp-float a:hover {
    transform: scale(1.1);
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 50px 0 20px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-col h3, .footer-col h4 {
    color: #f1c40f;
    margin-bottom: 15px;
}
.footer-col p, .footer-col a {
    color: #bbb;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.footer-col a:hover {
    color: var(--white);
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #777;
}

/* Estilos do Menu para Telemóveis (Moderno & Alinhado à Esquerda) */
@media (max-width: 868px) {
    .menu-toggle {
        display: block !important;
        z-index: 1001;
    }

    .nav-cta {
        display: none !important;
    }

    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 82% !important;
        max-width: 320px !important;
        height: 100vh !important;
        background-color: #111111 !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        display: flex !important;
        box-shadow: -5px 0 25px rgba(0,0,0,0.5);
        z-index: 1000;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        padding: 90px 25px 30px 25px !important;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0 !important;
    }

    .nav-menu a {
        color: #ffffff !important;
        padding: 12px 15px !important;
        font-size: 1.05rem !important;
        width: 100% !important;
        text-align: left !important;
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 6px;
        text-decoration: none;
        transition: 0.3s;
    }

    /* Correção aplicada para forçar a renderização correta de todos os ícones */
    .nav-menu a > i {
        font-family: "Font Awesome 6 Free" !important;
        font-weight: 900 !important;
        color: #f1c40f !important;
        font-size: 1.2rem !important;
        width: 25px !important;
        text-align: center !important;
        display: inline-block !important;
    }

    .nav-menu a:hover {
        background: rgba(241, 196, 15, 0.1);
        color: #f1c40f !important;
        padding-left: 20px !important;
    }

    .nav-cta-mobile {
        display: block !important;
        width: 100% !important;
        margin-top: 25px !important;
        text-align: center;
    }

    .nav-cta-mobile .btn-primary {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 12px;
    }

    .about-grid, .course-portal-box, .dinbus-flex {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
}