/* ==========================================================================
   MD Mentor — visual customizado
   ========================================================================== */

:root {
    --mdm-primary: #0b5ea8;
    --mdm-primary-dark: #073d70;
    --mdm-accent: #14b8a6;
    --mdm-navy: #0a1f33;
    --mdm-ink: #16222f;
    --mdm-muted: #5b6b7b;
    --mdm-bg-soft: #f4f8fb;
    --mdm-radius: 1rem;
    --mdm-shadow: 0 10px 30px rgba(10, 31, 51, .08);
    --mdm-shadow-lg: 0 20px 45px rgba(10, 31, 51, .14);
    --bs-font-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--mdm-ink);
    background-color: #fff;
    font-family: var(--bs-font-sans-serif);
}

h1, h2, h3, h4, h5, .display-heading {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--mdm-navy);
}

.text-muted-soft { color: var(--mdm-muted) !important; }

.section { padding: 5.5rem 0; }
.section-sm { padding: 3.5rem 0; }
.bg-soft { background-color: var(--mdm-bg-soft); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mdm-primary);
    background: rgba(11, 94, 168, .08);
    padding: .35rem .9rem;
    border-radius: 50rem;
}

/* ---- Navbar ---- */
.navbar-mdm {
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(12px);
    transition: box-shadow .25s ease, background-color .25s ease;
    padding-top: .9rem;
    padding-bottom: .9rem;
}
.navbar-mdm.is-scrolled {
    box-shadow: 0 6px 24px rgba(10, 31, 51, .08);
    padding-top: .55rem;
    padding-bottom: .55rem;
}
.navbar-mdm .navbar-brand { font-weight: 800; color: var(--mdm-navy); }
.navbar-mdm .navbar-brand span { color: var(--mdm-primary); }
.navbar-mdm .nav-link {
    font-weight: 600;
    color: var(--mdm-ink);
    padding: .5rem 1rem !important;
}
.navbar-mdm .nav-link:hover,
.navbar-mdm .nav-link.active { color: var(--mdm-primary); }

/* ---- Hero ---- */
.hero {
    position: relative;
    padding: 8rem 0 6rem;
    background:
        radial-gradient(circle at 15% 20%, rgba(11, 94, 168, .12), transparent 45%),
        radial-gradient(circle at 85% 0%, rgba(20, 184, 166, .12), transparent 40%),
        linear-gradient(180deg, #ffffff 0%, var(--mdm-bg-soft) 100%);
    overflow: hidden;
}
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.25rem); line-height: 1.15; }
.hero .lead { color: var(--mdm-muted); font-size: 1.15rem; }
.hero-stats {
    display: flex;
    gap: 2.25rem;
    flex-wrap: wrap;
}
.hero-stats strong { display: block; font-size: 1.6rem; color: var(--mdm-navy); }
.hero-stats span { font-size: .85rem; color: var(--mdm-muted); }

.hero-visual {
    position: relative;
    border-radius: 1.5rem;
    background: linear-gradient(160deg, var(--mdm-navy), var(--mdm-primary-dark));
    box-shadow: var(--mdm-shadow-lg);
    min-height: 380px;
    color: #fff;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}
.hero-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 31, 51, .92) 0%, rgba(10, 31, 51, .55) 45%, rgba(10, 31, 51, .25) 100%);
    z-index: 1;
}
.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(20, 184, 166, .35), transparent 55%);
    z-index: 1;
}
.hero-visual .badge-floating {
    position: absolute;
    top: 1.75rem;
    left: 1.75rem;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50rem;
    padding: .5rem 1rem;
    font-size: .8rem;
    font-weight: 600;
    z-index: 2;
}
.hero-visual .caption { position: relative; z-index: 2; }

/* ---- Botões ---- */
.btn-mdm-primary {
    background: var(--mdm-primary);
    border-color: var(--mdm-primary);
    color: #fff;
    font-weight: 600;
    padding: .75rem 1.6rem;
    border-radius: .65rem;
    box-shadow: 0 10px 20px rgba(11, 94, 168, .25);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn-mdm-primary:hover {
    background: var(--mdm-primary-dark);
    border-color: var(--mdm-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(11, 94, 168, .32);
}
.btn-mdm-outline {
    border: 2px solid var(--mdm-navy);
    color: var(--mdm-navy);
    font-weight: 600;
    padding: .68rem 1.5rem;
    border-radius: .65rem;
    background: transparent;
    transition: all .2s ease;
}
.btn-mdm-outline:hover {
    background: var(--mdm-navy);
    color: #fff;
}

/* ---- Cards de curso ---- */
.course-card {
    border: 1px solid rgba(10, 31, 51, .08);
    border-radius: var(--mdm-radius);
    background: #fff;
    box-shadow: var(--mdm-shadow);
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
    overflow: hidden;
}
.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--mdm-shadow-lg);
}
.course-card .course-thumb {
    height: 150px;
    background: linear-gradient(135deg, var(--mdm-primary), var(--mdm-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.25rem;
    overflow: hidden;
}
.course-card .course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.course-card .card-body { padding: 1.5rem; }
.badge-category {
    background: rgba(11, 94, 168, .1);
    color: var(--mdm-primary);
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .35rem .7rem;
    border-radius: 50rem;
}

/* ---- Mentores ---- */
.mentor-card {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: var(--mdm-radius);
    background: #fff;
    border: 1px solid rgba(10, 31, 51, .06);
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
}
.mentor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mdm-shadow);
}
.mentor-avatar {
    width: 84px;
    height: 84px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--mdm-navy), var(--mdm-primary));
    color: #fff;
    font-weight: 700;
    font-size: 1.35rem;
    overflow: hidden;
}
.mentor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mentor-card h6 { font-weight: 700; margin-bottom: .15rem; }
.mentor-card small { color: var(--mdm-muted); }

/* ---- Sobre / recursos ---- */
.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(10, 31, 51, .06);
}
.feature-item:last-child { border-bottom: 0; }
.feature-icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: .75rem;
    background: rgba(20, 184, 166, .12);
    color: var(--mdm-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* ---- Curadores ---- */
.curator-card {
    background: linear-gradient(160deg, #ffffff, var(--mdm-bg-soft));
    border: 1px solid rgba(10, 31, 51, .08);
    border-radius: var(--mdm-radius);
    padding: 2rem;
    height: 100%;
}
.curator-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mdm-primary), var(--mdm-navy));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
}
.curator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Notícias ---- */
.news-card {
    border-radius: var(--mdm-radius);
    overflow: hidden;
    border: 1px solid rgba(10, 31, 51, .08);
    box-shadow: var(--mdm-shadow);
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--mdm-shadow-lg); }
.news-thumb {
    height: 140px;
    background: linear-gradient(135deg, var(--mdm-navy), var(--mdm-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    overflow: hidden;
}
.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-date {
    font-size: .8rem;
    color: var(--mdm-muted);
    font-weight: 600;
}

/* ---- Contato ---- */
.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.contact-info-item i {
    width: 44px;
    height: 44px;
    border-radius: .75rem;
    background: rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.contact-panel {
    background: linear-gradient(160deg, var(--mdm-navy), var(--mdm-primary-dark));
    color: #fff;
    border-radius: var(--mdm-radius);
    padding: 2.5rem;
}
.form-control, .form-select {
    border-radius: .6rem;
    padding: .7rem 1rem;
    border: 1px solid rgba(10, 31, 51, .15);
}
.form-control:focus, .form-select:focus {
    border-color: var(--mdm-primary);
    box-shadow: 0 0 0 .2rem rgba(11, 94, 168, .15);
}

/* ---- Footer ---- */
.site-footer {
    background: var(--mdm-navy);
    color: rgba(255, 255, 255, .75);
}
.site-footer a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: .5rem;
    transition: background-color .2s ease;
}
.social-icon:hover { background: var(--mdm-primary); }

/* ---- Botão flutuante WhatsApp / voltar ao topo ---- */
.floating-btn {
    position: fixed;
    right: 1.5rem;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: var(--mdm-shadow-lg);
    z-index: 1040;
    transition: transform .2s ease, opacity .2s ease;
}
.floating-whatsapp { bottom: 1.5rem; background: #25d366; }
.floating-whatsapp:hover { color: #fff; transform: scale(1.06); }
.back-to-top {
    bottom: 6.5rem;
    background: var(--mdm-navy);
    opacity: 0;
    pointer-events: none;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { color: #fff; transform: scale(1.06); }

/* ---- Utilidades de página interna (cursos/noticias/contato) ---- */
.page-header {
    background: linear-gradient(160deg, var(--mdm-navy), var(--mdm-primary-dark));
    color: #fff;
    padding: 7rem 0 3.5rem;
}
.filter-pill {
    border: 1px solid rgba(10, 31, 51, .15);
    background: #fff;
    color: var(--mdm-ink);
    font-weight: 600;
    padding: .5rem 1.2rem;
    border-radius: 50rem;
    font-size: .9rem;
}
.filter-pill.active,
.filter-pill:hover {
    background: var(--mdm-primary);
    border-color: var(--mdm-primary);
    color: #fff;
}

@media (max-width: 767.98px) {
    .hero { padding: 6.5rem 0 3.5rem; }
    .section { padding: 3.5rem 0; }
}
