﻿/* ==========================================================================
   🎓 ABHINAV MAHAVIDYALAYA — DESIGN SYSTEM CORE CSS
   Namespace: .abm-*
   Zero-specificity resets via :where()
   Reference: Stadum Theme & finaldesign.md
   ========================================================================== */

/* 1. Zero-Specificity Resets Scoped to .abm-root */
:where(.abm-root) {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: #231F20;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:where(.abm-root *) {
    box-sizing: border-box;
}

:where(.abm-root h1, .abm-root h2, .abm-root h3, .abm-root h4, .abm-root h5, .abm-root h6) {
    font-family: 'Playfair Display', Georgia, serif;
    color: #012555;
    margin: 0;
    line-height: 1.25;
}

:where(.abm-root a) {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

:where(.abm-root button) {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

:where(.abm-root ul, .abm-root ol) {
    list-style: none;
    margin: 0;
    padding: 0;
}

:where(.abm-root input, .abm-root select, .abm-root textarea) {
    font-family: inherit;
}

/* 2. Brand Color CSS Variables */
:root {
    --abm-navy: #012555;
    --abm-navy2: #023878;
    --abm-dark: #011736;
    --abm-gold: #FA971E;
    --abm-gold2: #FBAC4B;
    --abm-cream: #FFF9EC;
    --abm-green: #19733A;
    --abm-orange: #FA971E;
    --abm-red: #E52B20;
    --abm-ink: #231F20;
    --abm-alt-bg: #EEF1F6;
    --abm-card-border: rgba(1, 37, 85, 0.08);
}

/* 3. Typography Utility Classes */
.abm-font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

.abm-font-sans {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* 4. Button System (.abm-btn) */
.abm-btn {
    position: relative;
    z-index: 2;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15.5px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 6px;
    background-color: #FA971E;
    color: #fff;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.5s ease, border-color 0.5s ease, box-shadow 0.4s ease;
}

    .abm-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
        width: 0;
        height: 100%;
        background-color: #012555;
        transition: width 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    }

    .abm-btn:hover {
        color: #FFFFFF !important;
        border-color: #012555;
        box-shadow: 0 10px 25px rgba(1, 37, 85, 0.25);
    }

        .abm-btn:hover::before {
            width: 100%;
        }

    .abm-btn .abm-btn-icon {
        display: inline-flex;
        align-items: center;
        transition: transform 0.4s ease;
    }

    .abm-btn:hover .abm-btn-icon {
        transform: translateX(6px);
    }

/* Button Variants */
.abm-btn-navy {
    background-color: #012555;
    color: #FFFFFF;
}

    .abm-btn-navy::before {
        background-color: #FA971E; color: #fff;
    }

    .abm-btn-navy:hover {
        color: #fff !important;
        border-color: #FA971E;
    }

.abm-btn-outline {
    background-color: transparent;
    color: #012555;
    border: 1.5px solid #012555;
}

    .abm-btn-outline::before {
        background-color: #012555;
    }

    .abm-btn-outline:hover {
        color: #FFFFFF !important;
    }

.abm-btn-outline-white {
    background-color: transparent;
    color: #FFFFFF;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

    .abm-btn-outline-white::before {
        background-color: #FA971E; color: #fff;
    }

    .abm-btn-outline-white:hover {
        color: #012555 !important;
        border-color: #FA971E;
    }

.abm-btn-green {
    background-color: #19733A;
    color: #FFFFFF;
}

    .abm-btn-green::before {
        background-color: #012555;
    }

.abm-btn-sm {
    padding: 9px 18px;
    font-size: 13.5px;
    border-radius: 4px;
}

.abm-btn-lg {
    padding: 17px 36px;
    font-size: 17px;
}

/* 5. Header Dropdowns & Mega Menu (Stadum Curtain Animation) */
.abm-nav-item {
    position: relative;
}

.abm-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 15.5px;
    color: #012555;
    padding: 18px 14px;
    transition: color 0.3s ease;
}

    .abm-nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 14px;
        right: 14px;
        height: 3px;
        background-color: #FA971E;
        width: 0;
        transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1); color: #fff;
    }

    .abm-nav-item:hover > .abm-nav-link::after,
    .abm-nav-link.abm-active::after {
        width: calc(100% - 28px);
    }

    .abm-nav-item:hover > .abm-nav-link,
    .abm-nav-link.abm-active {
        color: #012555;
    }

/* Dropdown Panel */
.abm-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: #FFFFFF;
    border-top: 3.5px solid #FA971E;
    box-shadow: 0 15px 35px rgba(1, 23, 54, 0.15), 0 4px 15px rgba(1, 15, 28, 0.06);
    border-radius: 0 0 8px 8px;
    padding: 10px 0;
    visibility: hidden;
    opacity: 0;
    z-index: -1;
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease;
}

    .abm-nav-item:hover > .abm-dropdown-panel,
    .abm-nav-item:focus-within > .abm-dropdown-panel,
    .abm-dropdown-panel.abm-show {
        visibility: visible;
        opacity: 1;
        transform: scaleY(1);
        z-index: 90;
    }

.abm-dropdown-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 11px 22px;
    font-size: 15px;
    font-weight: 500;
    color: #012555;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

    .abm-dropdown-item .abm-drop-arrow {
        color: #FA971E;
        font-weight: 900;
        margin-right: 8px;
        opacity: 0;
        transform: translateX(-8px);
        transition: all 0.3s ease-in-out;
        display: inline-block;
    }

    .abm-dropdown-item:hover,
    .abm-dropdown-item.abm-active {
        background-color: #FFF9EC;
        color: #012555;
        font-weight: 700;
        padding-left: 28px;
    }

        .abm-dropdown-item:hover .abm-drop-arrow,
        .abm-dropdown-item.abm-active .abm-drop-arrow {
            opacity: 1;
            transform: translateX(0);
        }

/* Mega Menu */
.abm-mega-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) scaleY(0);
    transform-origin: top center;
    width: 96vw;
    max-width: 1280px;
    background: #FFFFFF;
    border-top: 3.5px solid #FA971E;
    box-shadow: 0 30px 60px rgba(1, 23, 54, 0.22);
    border-radius: 0 0 10px 10px;
    padding: 32px 36px;
    visibility: hidden;
    opacity: 0;
    z-index: -1;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease, visibility 0.35s ease;
}

.abm-nav-item:hover > .abm-mega-panel,
.abm-nav-item:focus-within > .abm-mega-panel {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) scaleY(1);
    z-index: 90;
}

/* Mega Overlay */
.abm-mega-overlay {
    position: fixed;
    inset: 0;
    background: rgba(1, 23, 54, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

    .abm-mega-overlay.abm-active {
        opacity: 1;
        pointer-events: auto;
    }

/* 6. Sticky Header */
.abm-sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: #FFFFFF;
    box-shadow: 0 8px 30px rgba(1, 23, 54, 0.12);
    transform: translateY(-100%);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

    .abm-sticky-header.abm-is-sticky {
        transform: translateY(0);
    }

/* 7. Accessibility Bar */
.abm-fs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

    .abm-fs-btn:hover,
    .abm-fs-btn.abm-fs-active {
        background: #FA971E;
        color: #fff;
    }

    .abm-fs-btn:disabled {
        opacity: 0.45;
        cursor: not-allowed;
    }

/* 8. Scroll-To-Top Progress Ring */
.abm-scroll-top-wrap {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 80;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #012555;
    box-shadow: 0 8px 24px rgba(1, 37, 85, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

    .abm-scroll-top-wrap.abm-show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .abm-scroll-top-wrap:hover {
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 12px 30px rgba(250,151,30, 0.4);
    }

.abm-progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.abm-progress-ring-circle {
    transition: stroke-dashoffset 0.15s ease;
    stroke: #FA971E;
}

/* 9. Offcanvas Panels */
.abm-offcanvas-overlay {
    position: fixed;
    inset: 0;
    background: rgba(1, 23, 54, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 85;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

    .abm-offcanvas-overlay.abm-active {
        opacity: 1;
        pointer-events: auto;
    }

.abm-offcanvas-left {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 320px;
    max-width: 85vw;
    background: #FFFFFF;
    z-index: 90;
    transform: translateX(-100%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    box-shadow: 10px 0 40px rgba(1, 23, 54, 0.25);
}

    .abm-offcanvas-left.abm-open {
        transform: translateX(0);
    }

.abm-offcanvas-right {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 420px;
    max-width: 90vw;
    background: #011736;
    color: #FFFFFF;
    z-index: 90;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
}

    .abm-offcanvas-right.abm-open {
        transform: translateX(0);
    }

/* 10. Modals */
.abm-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(1, 23, 54, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

    .abm-modal-backdrop.abm-modal-active {
        opacity: 1;
        pointer-events: auto;
    }

.abm-modal-card {
    background: #FFFFFF;
    border-radius: 12px;
    border-top: 4px solid #FA971E;
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 70px rgba(1, 23, 54, 0.35);
    transform: translateY(40px) scale(0.96);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.abm-modal-backdrop.abm-modal-active .abm-modal-card {
    transform: translateY(0) scale(1);
}

.abm-field {
    width: 100%;
    background-color: #F5F7FB;
    border: 1.5px solid #DDE3ED;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 15.5px;
    color: #012555;
    outline: none;
    transition: all 0.3s ease;
}

    .abm-field:focus {
        background-color: #FFFFFF;
        border-color: #FA971E;
        box-shadow: 0 0 0 3.5px rgba(250,151,30, 0.22);
    }

/* 11. Preloader */
.abm-preloader {
    position: fixed;
    inset: 0;
    background: #011736;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

    .abm-preloader.abm-loaded {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

.abm-preloader-logo {
    animation: abmPulse 1.6s ease-in-out infinite;
}

@keyframes abmPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

.abm-gold-wipe {
    background: linear-gradient(90deg, #FFFFFF 0%, #FA971E 50%, #FFFFFF 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: abmWipe 2s linear infinite;
}

@keyframes abmWipe {
    to {
        background-position: 200% center;
    }
}

/* 12. Scroll Reveal Animations */
[data-abm-cue] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-abm-cue="slideInLeft"] {
    transform: translateX(-40px);
}

[data-abm-cue="slideInRight"] {
    transform: translateX(40px);
}

[data-abm-cue].abm-cue-show {
    opacity: 1;
    transform: translate(0, 0);
}

/* 13. Micro-Interactions */
.abm-flink {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #D1D5DB;
    font-size: 15.5px;
    transition: all 0.3s ease;
}

    .abm-flink::before {
        content: '❯';
        color: #FA971E;
        font-size: 11px;
        font-weight: 900;
    }

    .abm-flink:hover {
        color: #FA971E;
        transform: translateX(6px);
    }

.abm-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    transition: all 0.3s ease;
}

    .abm-social-icon:hover {
        background: #FA971E;
        color: #fff;
        transform: translateY(-3px);
    }

/* 14. Zoom Fallback Classes (§3.13) */
body.abm-z-2xl .abm-contact-phone {
    display: none !important;
}

body.abm-z-xl .abm-contact-email,
body.abm-z-xl .abm-tier-3 {
    display: none !important;
}

body.abm-z-xl .abm-mobile-actions {
    display: flex !important;
}

body.abm-z-lg .abm-topbar-links,
body.abm-z-lg .abm-contact-blocks {
    display: none !important;
}

/* 15. Section & Card Styling */
.abm-card {
    background: #FFFFFF;
    border: 1px solid rgba(1, 37, 85, 0.08);
    border-radius: 10px;
    padding: 24px;
    transition: all 0.35s ease;
}

    .abm-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(1, 37, 85, 0.08);
        border-color: rgba(250,151,30, 0.5);
    }

.abm-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.abm-tag-gold {
    background: #FFF9EC;
    color: #012555;
    border: 1px solid #FA971E;
}

.abm-tag-navy {
    background: #012555;
    color: #FFFFFF;
}

.abm-tag-green {
    background: #E8F5E9;
    color: #19733A;
}

.abm-tag-red {
    background: #FFEBEE;
    color: #E52B20;
}

.abm-badge-new {
    background: #E52B20;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    animation: abmPulseGlow 1.5s infinite;
}

@keyframes abmPulseGlow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.75;
        transform: scale(0.95);
    }
}

/* 16. Tab Styles */
.abm-tab-btn {
    padding: 12px 24px;
    font-weight: 700;
    font-size: 15px;
    color: #012555;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
}

    .abm-tab-btn:hover {
        color: #FA971E;
    }

    .abm-tab-btn.abm-tab-active {
        color: #012555;
        border-bottom-color: #FA971E;
        background: #FFF9EC;
    }

/* 17. Accordion */
.abm-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    color: #012555;
}

    .abm-accordion-header:hover,
    .abm-accordion-item.abm-active .abm-accordion-header {
        background: #FFF9EC;
        border-color: #FA971E;
    }

.abm-accordion-icon {
    transition: transform 0.35s ease;
}

.abm-accordion-item.abm-active .abm-accordion-icon {
    transform: rotate(180deg);
    color: #FA971E;
}

.abm-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #FAFCFF;
    border-radius: 0 0 8px 8px;
}

.abm-accordion-content {
    padding: 20px 24px;
    border: 1px solid #E2E8F0;
    border-top: none;
    font-size: 15.5px;
    line-height: 1.7;
}

/* 18. Switcher Bar / Quick Menu Bar on top */
.abm-page-switcher {
    background: #012555;
    border-bottom: 2px solid #FA971E;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    color: #FFFFFF;
}

.abm-page-switcher-links {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    white-space: nowrap;
}

.abm-page-switcher-link {
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    transition: all 0.2s ease;
}

    .abm-page-switcher-link:hover,
    .abm-page-switcher-link.abm-current {
        background: #FA971E;
        color: #fff;
        font-weight: 700;
    }
