/*
 * Al Zuhra Academy — Liquid Glass Design System
 * Unified Cinematic Layout for Header, Footer & Components
 * ─────────────────────────────────────────────────────
 * Brand Tokens:
 *   Primary Green : #2bee6c
 *   Dark Navy     : #0f172a
 *   Pearl White   : #f8fafc
 * ─────────────────────────────────────────────────────
 */

/* ─── 1. LIQUID GLASS BASE TOKENS ─────────────────── */
:root {
    --az-primary       : #2bee6c;
    --az-primary-dark  : #10b981;
    --az-navy          : #0f172a;
    --az-slate-600     : #475569;
    --az-slate-400     : #94a3b8;
    --az-glass-white   : rgba(255, 255, 255, 0.85);
    --az-nav-height    : 72px;

    --glass-nav-bg         : rgba(255, 255, 255, 0.82);
    --glass-nav-border     : rgba(255, 255, 255, 0.50);
    --glass-nav-blur       : blur(20px) saturate(180%);
    --glass-nav-shadow     : 0 4px 24px -8px rgba(15, 23, 42, 0.06);

    --glass-card-bg        : rgba(255, 255, 255, 0.55);
    --glass-card-border    : rgba(255, 255, 255, 0.50);
    --glass-card-blur      : blur(20px) saturate(180%);
    --glass-card-shadow    : 0 4px 24px -4px rgba(0,0,0,0.08);

    --glass-mobile-bg      : rgba(255, 255, 255, 0.98);
    --glass-mobile-blur    : blur(24px) saturate(200%);

    --glass-footer-bg      : #0f172a;
    --glass-footer-blur    : blur(24px) saturate(180%);

    --glass-pill-bg        : rgba(241, 245, 249, 0.85);
    --glass-pill-border    : rgba(255, 255, 255, 0.60);
    
    --transition-glass     : all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── 2. NAV / HEADER ─────────────────────────────── */
.az-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    height: var(--az-nav-height);
    display: flex;
    align-items: center;
    background: var(--glass-nav-bg);
    backdrop-filter: var(--glass-nav-blur);
    -webkit-backdrop-filter: var(--glass-nav-blur);
    border-bottom: 1px solid var(--glass-nav-border);
    box-shadow: var(--glass-nav-shadow);
    transition: var(--transition-glass);
    padding: 0;
}

.az-nav.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 40px -12px rgba(15, 23, 42, 0.12);
}

.az-nav-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* ── Brand ──────────────────────────────────────────────────── */
.az-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none !important;
    flex-shrink: 0;
}

.az-brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.az-brand:hover .az-brand-logo {
    transform: scale(1.06);
    box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.3);
}

.az-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.az-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.az-brand-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--az-navy) !important;
}

.az-brand-sub {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--az-primary-dark);
    margin-top: 3px;
}

/* Nav Pill (desktop links container) */
.az-nav-pill {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 5px;
    background: var(--glass-pill-bg);
    border: 1px solid var(--glass-pill-border);
    border-radius: 9999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.az-nav-link {
    padding: 0.55rem 1.1rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--az-slate-600) !important;
    border-radius: 9999px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.az-nav-link:hover {
    color: var(--az-navy) !important;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.az-nav-link.active {
    color: var(--az-navy) !important;
    background: #ffffff;
    box-shadow: 0 4px 166 rgba(0, 0, 0, 0.06);
}

/* ── CTA Button ─────────────────────────────────────────────── */
.az-nav-cta {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 1.5rem;
    border-radius: 9999px;
    background: var(--az-navy);
    color: #ffffff !important;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px -8px rgba(15, 23, 42, 0.35);
    white-space: nowrap;
    flex-shrink: 0;
}

.az-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.45);
}

/* Mobile Toggle */
.az-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(248, 250, 252, 0.9);
    color: var(--az-slate-600);
    cursor: pointer;
    transition: all 0.2s ease;
}

.az-mobile-toggle:hover {
    background: #fff;
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--az-navy);
}

/* Mobile Dropdown */
.az-mobile-dropdown {
    position: absolute;
    top: var(--az-nav-height);
    left: 0;
    right: 0;
    background: var(--glass-mobile-bg);
    backdrop-filter: var(--glass-mobile-blur);
    -webkit-backdrop-filter: var(--glass-mobile-blur);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 20px 60px -15px rgba(15, 23, 42, 0.15);
    z-index: 998;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
}

.az-mobile-dropdown.open {
    max-height: 600px;
    opacity: 1;
}

.az-mobile-dropdown-inner {
    padding: 1.5rem 1.25rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.az-mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
    border-radius: 1rem;
    color: var(--az-navy) !important;
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.az-mobile-link:hover {
    background: rgba(16, 185, 129, 0.06);
    transform: translateX(4px);
    color: var(--az-primary-dark) !important;
}

.az-mobile-link .material-symbols-outlined {
    font-size: 18px;
    color: var(--az-slate-400);
}

.az-mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 1.25rem;
    background: var(--az-navy);
    color: #ffffff !important;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none !important;
    box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.3);
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 900px) {
    .az-nav-pill { display: none; }
    .az-mobile-toggle { display: flex; }
}

@media (max-width: 640px) {
    .az-nav-cta { display: none; }
    .az-brand-name { font-size: 1rem; }
    .az-brand-sub { font-size: 0.5rem; display: block; }
}

/* ─── 3. FOOTER ───────────────────────────────────── */
.az-footer {
    background: var(--az-navy);
    position: relative;
    overflow: hidden;
    padding: 5rem 0 3rem;
    color: white;
}

.az-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 80% 0%,   rgba(43,238,108,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 10% 100%, rgba(43,238,108,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.az-footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.az-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem 2rem;
    margin-bottom: 4rem;
}

.az-footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.az-footer-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.az-footer-logo img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.az-footer-brand-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.az-footer-tagline {
    font-size: 0.9rem;
    color: var(--az-slate-400);
    line-height: 1.75;
    max-width: 300px;
    margin-bottom: 1.75rem;
}

.az-footer-enquire {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 1.5rem;
    border-radius: 9999px;
    background: var(--az-primary);
    color: var(--az-navy) !important;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none !important;
    box-shadow: 0 8px 24px -4px rgba(43, 238, 108, 0.35);
    transition: all 0.3s ease;
}

.az-footer-enquire:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -4px rgba(43, 238, 108, 0.5);
}

.az-social-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.az-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7) !important;
    transition: all 0.3s ease;
}

.az-social-btn:hover {
    background: var(--az-primary);
    color: var(--az-navy) !important;
    transform: translateY(-3px);
}

.az-footer-col-title {
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: white;
    margin-bottom: 1.5rem;
}

.az-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.az-footer-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--az-slate-400) !important;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.az-footer-link:hover {
    color: white !important;
    transform: translateX(5px);
}

.az-footer-status-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.25rem;
    padding: 1.5rem;
}

.az-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--az-primary);
    box-shadow: 0 0 10px rgba(43, 238, 108, 0.6);
    animation: az-pulse 2s infinite;
    margin-right: 0.5rem;
}

@keyframes az-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.az-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--az-slate-400);
}

@media (max-width: 1023px) {
    .az-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .az-footer-grid { grid-template-columns: 1fr; }
    .az-footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ─── 4. GLASS CARDS & REVEAL ─────────────────────── */
.glass-panel,
.az-glass-card {
    background: var(--glass-card-bg);
    backdrop-filter: var(--glass-card-blur);
    -webkit-backdrop-filter: var(--glass-card-blur);
    border: 1px solid var(--glass-card-border);
    box-shadow: var(--glass-card-shadow);
    border-radius: 1.5rem;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── 5. SCROLLBAR ─────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(43,238,108,0.3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(43,238,108,0.6); }

/* ─── 6. PREMIUM NAVIGATION CARDS ──────────────────── */
.az-premium-nav-card {
    display: block;
    text-decoration: none;
    perspective: 1000px;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.az-nav-card-inner {
    position: relative;
    padding: 2rem 2.5rem;
    border-radius: 2.5rem;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
    box-shadow: 0 8px 32px -8px rgba(0,0,0,0.1);
}

.az-premium-nav-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.az-premium-nav-card:hover .az-nav-card-inner {
    border-color: rgba(43,238,108,0.4);
    box-shadow: 0 24px 64px -12px rgba(43,238,108,0.15),
                0 0 0 1px rgba(43,238,108,0.1);
}

.az-nav-label {
    display: block;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.az-nav-title {
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0;
}

/* ─── 7. ENHANCED READABILITY & TYPOGRAPHY ────────── */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    color: #0f172a;
}

.prose, .article-body, .terms-card, .privacy-card {
    color: #334155;
    line-height: 1.85;
    text-align: justify;
    word-spacing: -0.01em;
}

b, strong {
    color: #0f172a;
    font-weight: 800;
}

.az-auto-link {
    color: #10b981;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid rgba(16, 185, 129, 0.1);
    transition: all 0.3s ease;
}

.az-auto-link:hover {
    color: #059669;
    background: rgba(16, 185, 129, 0.05);
    border-bottom-color: #059669;
}
