/*
Theme Name: MLC Advisory Child
Theme URI: https://dev.mlcadvisory.prospus.com
Description: Custom child theme for MLC Advisory built on Hello Elementor.
Author: Prospus
Author URI: https://prospus.com
Template: hello-elementor
Version: 1.4.0
Text Domain: mlcadvisory-child
*/

/* === Brand tokens (mirrored in Elementor Kit) — re-extracted from live site ===
   Primary    #1A1B16   (dark olive-black)
   Secondary  #2C2D29   (dark olive)
   Text       #1A1B16
   Accent     #9F8A58   (gold/mustard)
   Cream      #ECECE8   (warm cream bg)
   Heading    Bodoni Moda 500
   Body       Pontano Sans 400
*/

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Pontano Sans", system-ui, -apple-system, sans-serif;
    color: #1A1B16;
    line-height: 1.7;
    background: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #9F8A58; text-decoration: none; transition: color .2s ease; }
a:hover { color: #1A1B16; }
h1, h2, h3, h4, h5, h6 {
    font-family: "Bodoni Moda", Georgia, "Times New Roman", serif;
    color: #1A1B16;
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 .5em;
    letter-spacing: -0.01em;
}

/* ===== Container utility ===== */
.mlc-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}
@media (max-width: 767px) {
    .mlc-container { padding: 0 20px; }
}

/* ============================================================
 *  HEADER  —  matches live mlcadvisory.com
 * ============================================================ */

.mlc-sticky { position: sticky; top: 0; z-index: 1000; }
.mlc-header {
    background: #FFFFFF;
    border-bottom: 1px solid rgba(26,27,22,.06);
    padding: 16px 0;
}
.mlc-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

/* --- Logo --- */
.mlc-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}
.mlc-logo img,
.mlc-logo .custom-logo {
    max-height: 38px;
    width: auto;
    display: block;
}
.mlc-logo-text {
    font-family: "Bodoni Moda", Georgia, serif;
    font-weight: 500;
    font-size: 24px;
    color: #1A1B16;
    letter-spacing: -0.01em;
}

/* --- Wrap (menu + extras) on right --- */
.mlc-nav-wrap {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1 1 auto;
    justify-content: flex-end;
}

/* --- Primary nav --- */
.mlc-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 26px;
    align-items: center;
}
.mlc-nav-menu li { position: relative; }
.mlc-nav-menu > li > a {
    color: #1A1B16;
    font-family: "Pontano Sans", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    padding: 8px 0;
    display: block;
    letter-spacing: 0.005em;
    transition: color .2s ease;
}
.mlc-nav-menu > li > a:hover,
.mlc-nav-menu > li.current-menu-item > a,
.mlc-nav-menu > li.current-menu-parent > a { color: #9F8A58; }

/* Submenu (dropdown) */
.mlc-nav-menu .sub-menu {
    position: absolute;
    top: 100%; left: -8px;
    background: #FFFFFF;
    border: 1px solid rgba(26,27,22,.08);
    box-shadow: 0 8px 24px rgba(26,27,22,.10);
    min-width: 240px;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    display: none;
    z-index: 100;
}
.mlc-nav-menu li:hover > .sub-menu,
.mlc-nav-menu li:focus-within > .sub-menu { display: block; }
.mlc-nav-menu .sub-menu a {
    padding: 9px 22px;
    font-family: "Pontano Sans", sans-serif;
    font-weight: 400;
    font-size: 14px;
    white-space: nowrap;
    color: #1A1B16;
    display: block;
}
.mlc-nav-menu .sub-menu a:hover { color: #9F8A58; background: rgba(159,138,88,.05); }

/* --- Right-side extras (lang + CTA pill) --- */
.mlc-nav-extras {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 0 0 auto;
}
.mlc-lang {
    font-family: "Pontano Sans", sans-serif;
    font-size: 13px;
    color: #1A1B16;
    cursor: default;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.mlc-lang-caret { font-size: 11px; color: #9F8A58; }
.mlc-cta-pill {
    background: #9F8A58;
    color: #FFFFFF !important;
    padding: 11px 26px;
    border-radius: 999px;
    font-family: "Pontano Sans", sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, transform .15s ease;
    display: inline-block;
    line-height: 1.2;
    white-space: nowrap;
}
.mlc-cta-pill:hover { background: #1A1B16; color: #FFFFFF !important; }
.mlc-cta-pill:active { transform: translateY(1px); }

/* --- Mobile toggle (hamburger) --- */
.mlc-mobile-toggle {
    display: none;
    flex: 0 0 auto;
    width: 36px; height: 36px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}
.mlc-mobile-toggle span {
    display: block;
    position: absolute;
    left: 6px; right: 6px;
    height: 2px;
    background: #1A1B16;
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.mlc-mobile-toggle span:nth-child(1) { top: 11px; }
.mlc-mobile-toggle span:nth-child(2) { top: 17px; }
.mlc-mobile-toggle span:nth-child(3) { top: 23px; }
.mlc-mobile-toggle[aria-expanded="true"] span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.mlc-mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mlc-mobile-toggle[aria-expanded="true"] span:nth-child(3) { top: 17px; transform: rotate(-45deg); }

/* --- Tablet — slightly tighter spacing --- */
@media (max-width: 1100px) {
    .mlc-nav-wrap { gap: 20px; }
    .mlc-nav-menu { gap: 18px; }
    .mlc-nav-menu > li > a { font-size: 13px; }
}

/* --- Mobile  (<= 991px) --- */
@media (max-width: 991px) {
    .mlc-header { padding: 14px 0; }
    .mlc-mobile-toggle { display: block; }
    .mlc-nav-wrap {
        position: fixed;
        top: 0; right: 0;
        width: min(360px, 88vw);
        height: 100vh;
        background: #FFFFFF;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 80px 28px 32px;
        box-shadow: -8px 0 32px rgba(26,27,22,.12);
        transform: translateX(100%);
        transition: transform .3s ease;
        overflow-y: auto;
        z-index: 1000;
    }
    .mlc-nav-wrap.is-open { transform: translateX(0); }
    .mlc-nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }
    .mlc-nav-menu > li {
        border-bottom: 1px solid rgba(26,27,22,.06);
    }
    .mlc-nav-menu > li > a {
        padding: 14px 0;
        font-size: 16px;
    }
    .mlc-nav-menu .sub-menu {
        position: static;
        border: 0;
        box-shadow: none;
        background: rgba(159,138,88,.05);
        padding: 4px 0 8px;
        display: block;
        min-width: 0;
    }
    .mlc-nav-menu .sub-menu a {
        padding: 8px 16px;
        font-size: 14px;
    }
    .mlc-nav-extras {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-top: 24px;
        padding-top: 24px;
        border-top: 1px solid rgba(26,27,22,.08);
        width: 100%;
    }
    .mlc-cta-pill { display: inline-block; }

    /* Body scroll lock when menu open (handled by JS adding class) */
    body.mlc-menu-open { overflow: hidden; }

    /* Backdrop (handled via body class) */
    body.mlc-menu-open::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(26,27,22,.4);
        z-index: 999;
        animation: mlc-fade-in .2s ease;
    }
    @keyframes mlc-fade-in { from { opacity: 0; } to { opacity: 1; } }
}

@media (max-width: 480px) {
    .mlc-logo img,
    .mlc-logo .custom-logo { max-height: 32px; }
}

/* ===== Page title banner (hidden on home) ===== */
.mlc-page-title-banner {
    background: #ECECE8;
    padding: 80px 0 60px;
    border-bottom: none;
}
.mlc-page-title-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}
.mlc-page-title-banner h1 {
    margin: 0;
    color: #1A1B16;
    font-size: 52px;
}
@media (max-width: 767px) {
    .mlc-page-title-banner { padding: 60px 0 40px; }
    .mlc-page-title-inner { padding: 0 20px; }
    .mlc-page-title-banner h1 { font-size: 36px; }
}
body.home .mlc-page-title-banner { display: none; }

/* ===== Generic article body ===== */
.mlc-article-body-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
}
.mlc-article-body-inner h2 { font-size: 32px; margin: 32px 0 16px; }
.mlc-article-body-inner h3 { font-size: 24px; margin: 24px 0 12px; }
.mlc-article-body-inner p { margin: 0 0 16px; }
@media (max-width: 767px) {
    .mlc-article-body-inner { padding: 40px 20px; }
}

/* ===== Blog grid ===== */
.mlc-blog-archive-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 40px;
}
.mlc-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
@media (max-width: 991px) { .mlc-post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
    .mlc-post-grid { grid-template-columns: 1fr; gap: 20px; }
    .mlc-blog-archive-inner { padding: 40px 20px; }
}

.mlc-post-card {
    background: #FFFFFF;
    border: 1px solid #ECECE8;
    border-radius: 0;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}
.mlc-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26,27,22,.08);
}
.mlc-post-card-thumb { aspect-ratio: 16/9; overflow: hidden; background: #ECECE8; display: block; }
.mlc-post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mlc-post-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.mlc-post-card-meta { color: #999; font-size: 13px; margin: 0 0 8px; }
.mlc-post-card-title { font-size: 22px; margin: 0 0 12px; line-height: 1.3; }
.mlc-post-card-title a { color: inherit; }
.mlc-post-card-title a:hover { color: #9F8A58; }
.mlc-post-card-excerpt { color: #1A1B16; font-size: 15px; margin: 0 0 16px; flex: 1; }
.mlc-post-card-readmore {
    color: #9F8A58;
    font-family: "Pontano Sans", sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .07em;
}

/* Pagination */
.mlc-blog-archive-inner .nav-links { margin-top: 48px; text-align: center; }
.mlc-blog-archive-inner .nav-links a,
.mlc-blog-archive-inner .nav-links span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border: 1px solid #ECECE8;
    color: #1A1B16;
    font-weight: 400;
}
.mlc-blog-archive-inner .nav-links .current {
    background: #9F8A58;
    color: #FFFFFF;
    border-color: #9F8A58;
}

/* ===== Single post ===== */
.mlc-single-article { max-width: 800px; margin: 0 auto; padding: 60px 40px; }
.mlc-single-meta {
    color: #888;
    font-size: 13px;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: .07em;
}
.mlc-single-meta a { color: #9F8A58; }
.mlc-single-title { font-size: 48px; margin: 0 0 24px; line-height: 1.15; }
.mlc-single-thumb { margin: 0 0 32px; overflow: hidden; }
.mlc-single-content { font-size: 17px; line-height: 1.8; }
.mlc-single-content h2 { font-size: 32px; margin: 32px 0 16px; }
.mlc-single-content h3 { font-size: 24px; margin: 24px 0 12px; }
.mlc-single-content p { margin: 0 0 20px; }
.mlc-single-content blockquote {
    border-left: 3px solid #9F8A58;
    margin: 32px 0;
    padding: 8px 0 8px 28px;
    color: #2C2D29;
    font-style: italic;
    font-family: "Bodoni Moda", Georgia, serif;
    font-size: 22px;
    line-height: 1.4;
}
.mlc-single-prevnext {
    display: flex; justify-content: space-between; gap: 20px;
    margin: 60px 0 0; padding: 32px 0;
    border-top: 1px solid #ECECE8;
}
.mlc-single-prevnext a { color: #1A1B16; font-weight: 400; }
.mlc-single-prevnext a:hover { color: #9F8A58; }
@media (max-width: 767px) {
    .mlc-single-article { padding: 40px 20px; }
    .mlc-single-title { font-size: 32px; }
}

/* ===== Footer (matches live site dark footer with newsletter on right) ===== */
.mlc-footer {
    background: #1A1B16;
    color: #FFFFFF;
    padding: 70px 0 28px;
}
.mlc-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}
.mlc-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}
@media (max-width: 767px) {
    .mlc-footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .mlc-footer-inner { padding: 0 20px; }
}
.mlc-footer h3 {
    color: #FFFFFF;
    font-family: "Bodoni Moda", Georgia, serif;
    font-size: 28px;
    margin: 0 0 16px;
    font-weight: 500;
}
.mlc-footer p, .mlc-footer address {
    color: rgba(255,255,255,.78);
    font-style: normal;
    line-height: 1.7;
    margin: 0;
    font-size: 14px;
}
.mlc-footer a { color: rgba(255,255,255,.78); }
.mlc-footer a:hover { color: #9F8A58; }
.mlc-footer-bottom {
    margin-top: 50px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.10);
    text-align: center;
}
.mlc-footer-bottom p { color: rgba(255,255,255,.5); font-size: 12px; }

/* Footer newsletter form */
.mlc-footer-newsletter h3 { margin-bottom: 18px; }
.mlc-footer-newsletter form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 460px;
}
.mlc-footer-newsletter input {
    flex: 1 1 200px;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.05);
    color: #FFFFFF;
    font-family: "Pontano Sans", sans-serif;
    font-size: 14px;
}
.mlc-footer-newsletter input::placeholder { color: rgba(255,255,255,.5); }
.mlc-footer-newsletter input:focus { outline: none; border-color: #9F8A58; }
.mlc-footer-newsletter button {
    flex: 0 0 auto;
    padding: 12px 24px;
    background: #9F8A58;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    font-family: "Pontano Sans", sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
    transition: background-color .2s ease;
}
.mlc-footer-newsletter button:hover { background: #FFFFFF; color: #1A1B16; }
.mlc-footer-newsletter .note {
    color: rgba(255,255,255,.5);
    font-size: 12px;
    margin-top: 12px;
    font-style: italic;
}

/* ===== Specificity overrides for non-Elementor templates ===== */
#mlc-content .mlc-article-body-inner h2,
#mlc-content .mlc-single-content h2 { font-size: 32px; }
#mlc-content .mlc-post-card-title a { color: inherit; }

/* 404 / search */
.mlc-error-page { text-align: center; padding: 100px 20px; }
.mlc-error-page h1 { font-size: 72px; margin: 0 0 16px; }
.mlc-error-page p { font-size: 18px; }

/* ============================================================
 *  Elementor homepage polish
 * ============================================================ */

.e-con,
.e-con .elementor-button,
.elementor-widget-button .elementor-button {
    transition: transform .2s ease, box-shadow .2s ease,
                background-color .2s ease, color .2s ease,
                border-color .2s ease;
}

/* Pill-shaped buttons throughout — match live site */
.elementor-button {
    border-radius: 999px !important;
}

/* Use-case images — clean (no boxed card chrome) */
.mlc-usecase-card img { border-radius: 0; }

/* Logo cells — color logos at full opacity (live site has them in color) */
.mlc-logo-cell img {
    max-height: 60px;
    object-fit: contain;
    filter: none;
    transition: transform .25s ease;
}
.mlc-logo-cell:hover img { transform: scale(1.04); }

/* Hero — subtle drop-shadow for serif heading over photo */
#mlc-hero .elementor-heading-title {
    text-shadow: 0 2px 24px rgba(0,0,0,.35);
}

/* Programs cards — gold title, light cream bg matching live site */
.mlc-program-card {
    background: #ECECE8 !important;
}
.mlc-program-card:hover {
    background: #E0DDD3 !important;
}

/* Inline form widgets (guide CTA) */
.mlc-guide-form,
.mlc-newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.mlc-guide-form input,
.mlc-newsletter-form input {
    flex: 1 1 200px;
    padding: 14px 18px;
    border: 1px solid #DDD;
    background: #FFFFFF;
    font-family: "Pontano Sans", sans-serif;
    font-size: 15px;
    color: #1A1B16;
    transition: border-color .2s ease;
}
.mlc-guide-form input:focus,
.mlc-newsletter-form input:focus {
    outline: none;
    border-color: #9F8A58;
}
.mlc-guide-form button,
.mlc-newsletter-form button {
    flex: 0 0 auto;
    padding: 14px 32px;
    background: #9F8A58;
    color: #FFFFFF;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-family: "Pontano Sans", sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .07em;
    transition: background-color .2s ease, transform .15s ease;
}
.mlc-guide-form button:hover,
.mlc-newsletter-form button:hover { background: #1A1B16; }
.mlc-guide-form button:active,
.mlc-newsletter-form button:active { transform: translateY(1px); }
@media (max-width: 600px) {
    .mlc-guide-form input,
    .mlc-newsletter-form input,
    .mlc-guide-form button,
    .mlc-newsletter-form button { flex: 1 1 100%; }
}

/* Contact form (section 12 — full contact form on live site) */
.mlc-contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.mlc-contact-form .full { grid-column: 1 / -1; }
.mlc-contact-form label {
    display: block;
    font-family: "Pontano Sans", sans-serif;
    font-size: 13px;
    color: #1A1B16;
    margin-bottom: 6px;
    font-weight: 700;
}
.mlc-contact-form input,
.mlc-contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #DDD;
    background: #FFFFFF;
    font-family: "Pontano Sans", sans-serif;
    font-size: 15px;
    color: #1A1B16;
}
.mlc-contact-form textarea { min-height: 140px; resize: vertical; }
.mlc-contact-form input:focus,
.mlc-contact-form textarea:focus { outline: none; border-color: #9F8A58; }
.mlc-contact-form button {
    padding: 14px 36px;
    background: #9F8A58;
    color: #FFFFFF;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-family: "Pontano Sans", sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .07em;
}
.mlc-contact-form button:hover { background: #1A1B16; }
@media (max-width: 600px) {
    .mlc-contact-form { grid-template-columns: 1fr; }
}

/* Bodoni big serif for hero — extra elegant */
#mlc-hero .elementor-heading-title {
    font-family: "Bodoni Moda", Georgia, serif !important;
    font-weight: 500 !important;
    letter-spacing: -0.015em;
    font-style: normal;
}

/* Stats — tabular feel, no card chrome */
#mlc-stats .e-con-inner {
    text-align: left;
}

/* Section dividers between testimonial cards if stacked */
#mlc-testimonials .e-con-inner { text-align: center; }
