/**
 * NMA Public Website — visual polish layer (marketing pages only)
 */

/* ——— Global refinements ——— */
body.nma-public-body {
    background: var(--nma-gray-50);
}

body.nma-public-body ::selection {
    background: var(--nma-red-muted);
    color: var(--nma-navy);
}

#main-content > section:first-child {
    margin-top: 0;
}

.nma-section {
    padding: 4rem 0;
}

.nma-section__head h2 {
    font-size: clamp(1.65rem, 3.5vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.nma-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: rgba(197, 48, 48, 0.08);
    border: 1px solid rgba(197, 48, 48, 0.15);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.nma-kicker--gold {
    color: var(--nma-gold-dark);
    background: var(--nma-gold-muted);
    border-color: rgba(214, 158, 46, 0.35);
}

.nma-badge {
    box-shadow: 0 4px 14px rgba(214, 158, 46, 0.25);
}

/* Button base shape — colours handled by nma-red-theme.css */
.nma-btn {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.025em;
}

/* ——— Navbar polish ——— */
.nma-nav {
    box-shadow: 0 4px 24px rgba(15, 39, 68, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nma-nav.is-scrolled {
    box-shadow: 0 8px 32px rgba(15, 39, 68, 0.18);
}

.nma-nav__cta {
    box-shadow: 0 6px 18px rgba(197, 48, 48, 0.35);
}

/* ——— Home hero ——— */
.nma-hero {
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(214, 158, 46, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 80%, rgba(197, 48, 48, 0.12) 0%, transparent 50%),
        linear-gradient(135deg, var(--nma-navy) 0%, var(--nma-navy-mid) 55%, #162544 100%);
    padding: 4.5rem 0 5.5rem;
}

.nma-hero h1 {
    font-weight: 800;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.15);
}

.nma-hero__showcase {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nma-hero__card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1.5rem 1.5rem 1.5rem 0.5rem;
    padding: 2.25rem 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.nma-hero__card img,
.nma-hero__crest {
    width: min(280px, 46vw);
    height: auto;
    box-shadow: none;
}

.nma-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}

.nma-hero__stat {
    text-align: center;
    padding: 0.85rem 0.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
}

.nma-hero__stat strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--nma-gold);
    line-height: 1.2;
}

.nma-hero__stat span {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.2rem;
}

/* Portal section — keep clean, not over-styled */
.nma-section--portal {
    background: #fff;
    border-top: 1px solid var(--nma-gray-200);
    border-bottom: 1px solid var(--nma-gray-200);
    padding: 3.5rem 0;
}

.nma-section--portal .nma-portal-tile {
    box-shadow: 0 4px 18px rgba(15, 39, 68, 0.06);
}

/* Icon cards — richer hover */
.nma-icon-card {
    background: #fff;
    border: 1px solid var(--nma-gray-200);
    box-shadow: 0 4px 20px rgba(15, 39, 68, 0.05);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.nma-icon-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 44px rgba(15, 39, 68, 0.12);
    border-color: rgba(197, 48, 48, 0.2);
}

.nma-icon-card__icon {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Home CTA */
.nma-section--home-cta {
    background:
        radial-gradient(ellipse 50% 80% at 0% 50%, rgba(214, 158, 46, 0.12) 0%, transparent 55%),
        linear-gradient(135deg, var(--nma-navy) 0%, #152a4a 100%);
}

.nma-cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.nma-cta-banner h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.nma-cta-banner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    max-width: 520px;
    line-height: 1.65;
}

.nma-cta-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ——— Page heroes ——— */
.nma-page-hero {
    padding: 3.5rem 0 3.25rem;
    background:
        radial-gradient(ellipse 70% 80% at 100% 0%, rgba(214, 158, 46, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, var(--nma-navy) 0%, var(--nma-navy-mid) 100%);
}

.nma-page-hero h1 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.nma-page-hero--about {
    background:
        linear-gradient(120deg, var(--nma-navy) 0%, var(--nma-navy-mid) 65%, rgba(197, 48, 48, 0.75) 100%);
}

.nma-page-hero--campuses {
    background:
        linear-gradient(135deg, var(--nma-navy) 0%, #1a365d 50%, rgba(197, 48, 48, 0.7) 100%);
}

.nma-page-hero--compact {
    padding: 2.75rem 0 2.5rem;
}

/* ——— About hub ——— */
.nma-about-hub-card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(15, 39, 68, 0.06);
    transition: box-shadow 0.35s ease;
    /* Lift/scale on hover is GSAP-driven (quickTo, nma-public.js
       initHubCardHover) — CSS only owns the shadow here to avoid both
       fighting over the transform property. */
}

.nma-about-hub-card:hover {
    box-shadow: 0 18px 40px rgba(15, 39, 68, 0.12);
}

.nma-about-hub-card__icon {
    position: relative;
    z-index: 2;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1rem;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.nma-about-hub-card--red .nma-about-hub-card__icon {
    background: linear-gradient(145deg, var(--nma-red), var(--nma-red-dark));
}

.nma-about-hub-card--gold .nma-about-hub-card__icon {
    background: linear-gradient(145deg, var(--nma-gold), var(--nma-gold-dark));
    color: var(--nma-navy);
}

.nma-about-hub-card--navy .nma-about-hub-card__icon {
    background: linear-gradient(145deg, var(--nma-navy), var(--nma-navy-light));
}

.nma-about-hub-card h3 {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Stats row */
.nma-stats-row {
    gap: 1.25rem;
}

.nma-stat {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 1.1rem;
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow: 0 8px 28px rgba(15, 39, 68, 0.08);
    border: 1px solid var(--nma-gray-200);
    transition: transform 0.38s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease;
}

.nma-stat::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.nma-stat:hover {
    transform: translateY(-7px) scale(1.02);
    box-shadow: 0 20px 48px rgba(15, 39, 68, 0.14);
}

/* Colour variants via nth-child */
.nma-section--stats .nma-stat:nth-child(1) { border-top: 3px solid var(--nma-gold); }
.nma-section--stats .nma-stat:nth-child(2) { border-top: 3px solid var(--nma-red); }
.nma-section--stats .nma-stat:nth-child(3) { border-top: 3px solid var(--nma-navy); }
.nma-section--stats .nma-stat:nth-child(4) { border-top: 3px solid var(--nma-gold-dark); }

.nma-section--stats .nma-stat:nth-child(1):hover { box-shadow: 0 20px 48px rgba(214,158,46,0.18); }
.nma-section--stats .nma-stat:nth-child(2):hover { box-shadow: 0 20px 48px rgba(169,32,32,0.18); }
.nma-section--stats .nma-stat:nth-child(3):hover { box-shadow: 0 20px 48px rgba(15,39,68,0.22); }
.nma-section--stats .nma-stat:nth-child(4):hover { box-shadow: 0 20px 48px rgba(183,121,31,0.18); }

/* Inner decorative circle */
.nma-stat::after {
    content: '';
    position: absolute;
    width: 100px; height: 100px;
    border-radius: 50%;
    bottom: -30px; right: -20px;
    opacity: 0.06;
    transition: opacity 0.35s ease;
}

.nma-section--stats .nma-stat:nth-child(1)::after { background: var(--nma-gold); }
.nma-section--stats .nma-stat:nth-child(2)::after { background: var(--nma-red); }
.nma-section--stats .nma-stat:nth-child(3)::after { background: var(--nma-navy); }
.nma-section--stats .nma-stat:nth-child(4)::after { background: var(--nma-gold-dark); }

.nma-stat:hover::after { opacity: 0.12; }

.nma-stat strong {
    display: block;
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--nma-navy);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.nma-section--stats .nma-stat:nth-child(1) strong { color: var(--nma-gold-dark); }
.nma-section--stats .nma-stat:nth-child(2) strong { color: var(--nma-red); }
.nma-section--stats .nma-stat:nth-child(3) strong { color: var(--nma-navy); }
.nma-section--stats .nma-stat:nth-child(4) strong { color: var(--nma-red-dark); }

/* About layout */
.nma-about-subnav {
    box-shadow: 0 10px 32px rgba(15, 39, 68, 0.08);
    border-radius: 1rem;
}

.nma-about-main {
    box-shadow: 0 12px 40px rgba(15, 39, 68, 0.07);
    padding: 2.25rem 2.5rem;
}

.nma-prose-block h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--nma-navy);
    margin: 0 0 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid var(--nma-gray-100);
    letter-spacing: -0.02em;
}

.nma-prose-block p {
    line-height: 1.8;
    color: var(--nma-text);
}

.nma-content-photo {
    border-radius: 1rem;
    box-shadow: 0 16px 40px rgba(15, 39, 68, 0.12);
    border: 3px solid #fff;
}

/* Value cards */
.nma-values-grid {
    gap: 1rem;
}

.nma-value-card {
    background: linear-gradient(180deg, #fff 0%, var(--nma-gray-50) 100%);
    border: 1px solid var(--nma-gray-200);
    border-radius: 1rem;
    padding: 1.35rem 1.5rem;
    box-shadow: 0 4px 16px rgba(15, 39, 68, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nma-value-card:hover {
    transform: translateX(6px);
    box-shadow: 0 12px 28px rgba(15, 39, 68, 0.1);
}

.nma-value-card h3 {
    font-weight: 700;
    font-size: 1.05rem;
}

.nma-value-card h3::before {
    content: '◆';
    color: var(--nma-red);
    margin-right: 0.5rem;
    font-size: 0.65rem;
    vertical-align: middle;
}

/* Check list */
.nma-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.nma-check-list li {
    position: relative;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    background: var(--nma-gray-50);
    border: 1px solid var(--nma-gray-200);
    border-radius: 10px;
    line-height: 1.55;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.nma-check-list li:hover {
    background: #fff;
    border-color: rgba(197, 48, 48, 0.2);
}

.nma-check-list li::before {
    content: '✓';
    position: absolute;
    left: 1rem;
    top: 0.85rem;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--nma-red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
}

/* Timeline */
.nma-timeline--vertical {
    position: relative;
    padding-left: 2rem;
}

.nma-timeline--vertical::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--nma-red) 0%, var(--nma-gold) 50%, var(--nma-navy) 100%);
}

.nma-timeline__item--vertical {
    position: relative;
    padding: 0 0 2rem 1.5rem;
    border: none;
    background: transparent;
}

.nma-timeline__item--vertical::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.35rem;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--nma-red);
    box-shadow: 0 0 0 4px var(--nma-red-muted);
    z-index: 1;
}

.nma-timeline__item--vertical:nth-child(3n+2)::before {
    border-color: var(--nma-gold);
    box-shadow: 0 0 0 4px var(--nma-gold-muted);
}

.nma-timeline__item--vertical:nth-child(3n)::before {
    border-color: var(--nma-navy);
    box-shadow: 0 0 0 4px rgba(15, 39, 68, 0.1);
}

.nma-timeline__year {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: var(--nma-navy);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.nma-timeline__item--vertical h3 {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Team cards */
.nma-team-grid {
    gap: 1.25rem;
}

.nma-team-card {
    background: #fff;
    border: 1px solid var(--nma-gray-200);
    border-radius: 1rem;
    padding: 1.5rem 1.25rem;
    text-align: center;
    box-shadow: 0 6px 20px rgba(15, 39, 68, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nma-team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(15, 39, 68, 0.1);
}

.nma-team-card--board {
    border-top: 3px solid var(--nma-gold);
    background: linear-gradient(180deg, rgba(214, 158, 46, 0.06) 0%, #fff 40%);
}

.nma-team-card__avatar,
.nma-team-card__photo {
    box-shadow: 0 8px 20px rgba(15, 39, 68, 0.12);
}

/* Statement pages */
.nma-statement-page {
    box-shadow: 0 16px 48px rgba(15, 39, 68, 0.08);
    border-radius: 1.25rem;
}

/* ——— Campuses ——— */
.nma-section--campuses {
    background:
        radial-gradient(circle at 100% 0%, rgba(214, 158, 46, 0.06) 0%, transparent 40%),
        var(--nma-gray-50);
}

.nma-campus-tile {
    box-shadow: 0 6px 18px rgba(15, 39, 68, 0.1);
}

.nma-campus-tile__title {
    font-weight: 800;
    letter-spacing: 0.02em;
}

.nma-empty-state {
    background: #fff;
    border: 1px dashed var(--nma-gray-200);
    border-radius: 1.25rem;
    box-shadow: var(--nma-shadow);
}

.nma-empty-state h2 {
    color: var(--nma-navy);
    font-weight: 700;
}

/* ——— Footer ——— */
.nma-footer {
    background: var(--nma-gray-50);
    border-top: 1px solid var(--nma-gray-200);
}

.nma-footer__bar {
    background: var(--nma-gray-50);
}

.nma-footer__contact-card {
    box-shadow: 0 4px 14px rgba(15, 39, 68, 0.05);
}

.nma-scroll-top,
.nma-float-wa,
.nma-float-contact {
    box-shadow: 0 8px 24px rgba(15, 39, 68, 0.2);
}

/* ——— Legal pages ——— */
.nma-legal-page {
    padding: 2.5rem 0 4.5rem;
    background: var(--nma-gray-50);
}

.nma-legal-card {
    max-width: 820px;
    margin-inline: auto;
    background: #fff;
    border: 1px solid var(--nma-gray-200);
    border-radius: 1.25rem;
    padding: 2.5rem 2.75rem;
    box-shadow: 0 16px 48px rgba(15, 39, 68, 0.08);
    border-top: 4px solid var(--nma-navy);
}

.nma-legal-card h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.65rem, 4vw, 2.1rem);
    font-weight: 800;
    color: var(--nma-navy);
    letter-spacing: -0.02em;
    text-align: center;
}

.nma-legal-card .nma-legal-meta {
    text-align: center;
    color: var(--nma-text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--nma-gray-200);
}

.nma-legal-card h4 {
    margin: 2rem 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--nma-navy);
}

.nma-legal-card p,
.nma-legal-card li {
    line-height: 1.75;
    color: var(--nma-text);
}

.nma-legal-card ul {
    padding-left: 1.25rem;
    margin: 0.75rem 0 1rem;
}

.nma-legal-card a {
    color: var(--nma-red);
    font-weight: 600;
}

/* ——— Flash ——— */
.nma-flash--success {
    border-left: 4px solid #10b981;
    text-align: left;
}

.nma-flash--success .nma-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Campuses CTA */
.nma-campuses-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
}

.nma-campuses-cta h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 800;
    color: var(--nma-navy);
    letter-spacing: -0.02em;
}

.nma-campuses-cta p {
    margin: 0;
    color: var(--nma-text-muted);
    max-width: 520px;
}

.nma-campuses-cta .nma-cta-banner__actions {
    justify-content: center;
}

.nma-section--about-cta .nma-inline-links {
    justify-content: center;
    gap: 0.75rem;
}

.nma-section--about-cta .nma-btn {
    min-width: 150px;
    justify-content: center;
}

/* ——— Responsive ——— */
@media (max-width: 992px) {
    .nma-hero__stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .nma-cta-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nma-cta-banner__actions {
        width: 100%;
    }

    .nma-cta-banner__actions .nma-btn {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .nma-section {
        padding: 3.25rem 0;
    }

    .nma-hero__stats {
        grid-template-columns: 1fr;
    }

    .nma-about-main {
        padding: 1.5rem;
    }

    .nma-legal-card {
        padding: 1.75rem 1.35rem;
    }

    .nma-timeline--vertical {
        padding-left: 1.5rem;
    }
}
