/* === FONTS & VARIABLES === */
:root {
    --mgm-navy: #12305B;
    --mgm-navy-deep: #0E2547;
    --mgm-orange: #F26F21;
    --mgm-orange-dark: #D95E12;
    --mgm-text: #35485E;
    --mgm-muted: #6A7A8E;
    --mgm-border: #E2E8F0;
    --mgm-bg: #F5F7FA;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

body {
    margin: 0;
    background: var(--mgm-bg);
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--mgm-text);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif', serif;
}

p, li, td, th, label, input, select, button, a, span, i {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
}

h1 span, h2 span, h3 span, h4 span, h5 span, h6 span {
    font-family: inherit;
}

a {
    color: #1B5FAE;
    text-decoration: none;
}

a:hover {
    color: var(--mgm-orange);
}

/* === HEADER STYLES === */
.mgm-header {
    background: #ffffff;
    border-bottom: 1px solid #E2E8F0;
    z-index: 1030;
}

.mgm-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.mgm-header-logo img {
    height: 42px;
    width: auto;
    display: block;
}

.mgm-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mgm-nav-link {
    font-size: 14.5px;
    font-weight: 500;
    color: #35485E;
    text-decoration: none;
}

.mgm-nav-link:hover {
    color: #F26F21;
}

.mgm-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.mgm-header-phone {
    color: #12305B;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    text-decoration: none;
}

.mgm-header-cta {
    white-space: nowrap;
}

/* === HERO / FORM STYLES === */
.mgm-hero {
    background: linear-gradient(180deg, #12305B 0%, #173A6C 100%);
    color: #ffffff;
}

.mgm-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 20px 52px;
}

.mgm-breadcrumb {
    font-size: 13.5px;
    color: #9FB4D2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.mgm-breadcrumb a {
    white-space: nowrap;
    color: #C9D7EB;
    text-decoration: none;
}

.mgm-breadcrumb a:hover {
    color: #ffffff;
}

.mgm-breadcrumb-current {
    color: #DCE6F4;
    white-space: nowrap;
}

.mgm-hero-title {
    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
    line-height: 1.22;
}

.mgm-hero-intro {
    font-size: 17px;
    line-height: 1.65;
    color: #C9D7EB;
    max-width: 620px;
    margin: 0 0 28px;
}

.mgm-featured-card {
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #F7FAFD 100%);
    border: 2px solid var(--mgm-orange);
    border-radius: 16px;
    padding: 26px 28px;
    box-shadow: 0 18px 44px rgba(4, 18, 42, 0.3);
    color: var(--mgm-text);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mgm-featured-badge {
    display: inline-block;
    margin: 0 0 12px;
    background: var(--mgm-orange);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
}

.mgm-featured-title {
    margin: 0 0 18px;
    font-size: 27px;
    font-weight: 700;
    color: var(--mgm-navy);
    line-height: 1.25;
}

.mgm-featured-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.mgm-featured-stat {
    background: #EEF3FA;
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
}

.mgm-featured-num {
    font-family: 'Noto Serif', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--mgm-navy);
    line-height: 1.25;
}

.mgm-featured-label {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--mgm-muted);
}

.mgm-featured-cta {
    margin-top: auto;
    padding-left: 34px;
    padding-right: 34px;
}

.mgm-quote-card {
    height: 100%;
    background: #ffffff;
    border-radius: 16px;
    padding: 26px 26px 22px;
    box-shadow: 0 18px 44px rgba(4, 18, 42, 0.35);
    color: var(--mgm-text);
}

.mgm-quote-eyebrow {
    margin: 0;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--mgm-orange);
}

.mgm-quote-headline {
    margin: 4px 0 18px;
    font-family: 'Noto Serif', serif;
    font-size: 23px;
    font-weight: 700;
    color: var(--mgm-navy);
    line-height: 1.3;
}

.mgm-quote-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mgm-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--mgm-navy);
}

.mgm-req {
    color: var(--mgm-orange);
}

.mgm-input {
    width: 100%;
    box-sizing: border-box;
    height: 52px;
    border: 1.5px solid #CBD6E2;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--mgm-navy);
    background: #ffffff;
    outline: none;
    margin-top: 5px;
}

.mgm-input:focus {
    border-color: var(--mgm-orange);
    box-shadow: 0 0 0 3px rgba(242, 111, 33, 0.14);
}

.mgm-trust-note {
    margin: 14px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--mgm-muted);
}

/* === SECTION STYLES === */
.mgm-section {
    max-width: 1020px;
    margin: 0 auto;
    padding: 44px 20px 8px;
}

.mgm-section-last {
    padding-bottom: 44px;
}

.mgm-h2 {
    font-size: 28px;
    color: var(--mgm-navy);
    font-weight: 800;
    margin: 0 0 16px;
    line-height: 1.3;
}

.mgm-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--mgm-orange);
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 22px;
    border-radius: 10px;
    border: none;
    text-decoration: none;
    min-height: 48px;
    cursor: pointer;
    font-family: inherit;
}

.mgm-btn-primary:hover {
    background: var(--mgm-orange-dark);
    color: #ffffff;
}

.mgm-btn-block {
    display: flex;
    width: 100%;
}

.mgm-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #CBD6E2;
    color: var(--mgm-navy);
    font-weight: 600;
    font-size: 14px;
    padding: 11px 18px;
    border-radius: 10px;
    text-decoration: none;
    min-height: 48px;
    background: #ffffff;
    cursor: pointer;
    font-family: inherit;
}

.mgm-btn-outline:hover {
    border-color: var(--mgm-navy);
    color: var(--mgm-navy);
}

.mgm-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.4);
    color: #ffffff;
    font-weight: 600;
    font-size: 15.5px;
    padding: 12px 26px;
    border-radius: 10px;
    text-decoration: none;
    min-height: 44px;
}

.mgm-btn-ghost:hover {
    background: rgba(255,255,255,0.2);
    color: #ffffff;
}

.mgm-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    background: #ffffff;
    border: 1px solid var(--mgm-border);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 2px 10px rgba(18, 48, 91, 0.05);
}

.mgm-search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--mgm-muted);
    pointer-events: none;
}

.mgm-search-input {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    min-height: 52px;
    border: 1.5px solid #CBD6E2;
    border-radius: 10px;
    padding: 0 16px 0 44px;
    font-size: 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--mgm-navy);
    background: #ffffff;
    outline: none;
}

.mgm-search-input:focus {
    border-color: var(--mgm-orange);
    box-shadow: 0 0 0 3px rgba(242, 111, 33, 0.14);
}

.mgm-search-btn {
    flex-shrink: 0;
    padding-left: 30px;
    padding-right: 30px;
}

.mgm-result-count {
    margin: 14px 0 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--mgm-muted);
}

.mgm-route-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.mgm-route-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 104px;
    padding: 16px 16px;
    background: #ffffff;
    border: 1px solid var(--mgm-border);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(18, 48, 91, 0.05);
    text-decoration: none;
}

.mgm-route-card:hover {
    border-color: var(--mgm-orange);
    box-shadow: 0 6px 18px rgba(18, 48, 91, 0.09);
}

.mgm-route-card.is-filtered {
    display: none;
}

.mgm-route-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    min-width: 0;
}

.mgm-route-dest {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--mgm-muted);
}

.mgm-route-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--mgm-navy);
    line-height: 1.35;
}

.mgm-route-card:hover .mgm-route-name {
    color: var(--mgm-orange);
}

.mgm-miles {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--mgm-navy);
    background: #EEF3FA;
    border-radius: 999px;
    padding: 3px 10px;
}

.mgm-route-go {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #EEF3FA;
    color: var(--mgm-navy);
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mgm-route-card:hover .mgm-route-go {
    background: var(--mgm-orange);
    color: #ffffff;
}

.mgm-empty-state {
    text-align: center;
    background: #ffffff;
    border: 1px dashed #CBD6E2;
    border-radius: 14px;
    padding: 44px 24px;
}

.mgm-empty-title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: var(--mgm-navy);
}

.mgm-empty-sub {
    margin: 0;
    font-size: 15px;
    color: var(--mgm-muted);
}

.mgm-cta-banner {
    background: linear-gradient(135deg, #12305B 0%, #1B4478 100%);
    border-radius: 16px;
    padding: 40px 34px;
    color: #ffffff;
    text-align: center;
}

.mgm-cta-title {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 800;
}

.mgm-cta-sub {
    margin: 0 0 22px;
    font-size: 16px;
    color: #C9D7EB;
}

.mgm-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.mgm-cta-trust {
    margin: 16px 0 0;
    font-size: 13px;
    color: #9FB4D2;
}

.mgm-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    background: #ffffff;
    border-top: 1px solid var(--mgm-border);
    box-shadow: 0 -6px 20px rgba(18, 48, 91, 0.12);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    display: flex;
    gap: 10px;
    align-items: center;
}

/* === RESPONSIVE / MEDIA QUERIES === */
@media (max-width: 1024px) {
    .mgm-route-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mgm-hero-inner {
        padding: 26px 20px 44px;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: 84px;
    }

    .mgm-hero-inner {
        padding: 22px 18px 34px;
    }

    .mgm-hero-title {
        font-size: 30px;
    }

    .mgm-featured-card {
        padding: 22px 20px;
    }

    .mgm-featured-title {
        font-size: 23px;
    }

    .mgm-featured-stats {
        gap: 10px;
    }

    .mgm-featured-stat {
        flex: 1 1 100%;
    }

    .mgm-featured-cta {
        width: 100%;
    }

    .mgm-quote-card {
        padding: 22px 20px 20px;
    }

    .mgm-search-box {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }

    .mgm-search-icon {
        top: 38px;
        left: 28px;
    }

    .mgm-search-btn {
        width: 100%;
    }

    .mgm-route-grid {
        grid-template-columns: 1fr;
    }

    .mgm-h2 {
        font-size: 24px;
    }

    .mgm-cta-banner {
        padding: 30px 20px;
    }

    .mgm-cta-buttons a {
        width: 100%;
    }
}

/* === FOOTER STYLES === */
.mgm-footer {
    background: var(--mgm-navy-deep);
    color: #ffffff;
    margin-top: 44px;
}

.mgm-footer-inner {
    max-width: 1020px;
    margin: 0 auto;
    padding: 44px 20px 26px;
}

.mgm-footer-logo {
    display: inline-block;
    background: #ffffff;
    border-radius: 10px;
    padding: 8px 14px;
    margin-bottom: 16px;
}

.mgm-footer-logo img {
    height: 38px;
    width: auto;
    display: block;
}

.mgm-footer-social {
    display: flex;
    gap: 10px;
}

.mgm-footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.mgm-footer-social a:hover {
    background: var(--mgm-orange);
    color: #ffffff;
}

.mgm-footer-heading {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.mgm-footer-link {
    display: block;
    padding: 5px 0;
    font-size: 14px;
    color: #C9D7EB;
    text-decoration: none;
}

.mgm-footer-link:hover {
    color: #ffffff;
}

.mgm-footer-legal {
    border-top: 1px solid rgba(255,255,255,0.14);
    margin-top: 30px;
    padding-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    color: #9FB4D2;
}

.mgm-footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.mgm-footer-legal-links a {
    color: #C9D7EB;
    text-decoration: none;
}

.mgm-footer-legal-links a:hover {
    color: #ffffff;
}
