@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- 1. ROOT VARIABLES --- */
:root {
    --primary-blue: #2563EB;
    --primary-dark: #111827;
    --text-grey: #6B7280;
    --bg-light: #F9FAFB;
    --trust-blue: #0f4c81;
    --secure-slate: #0f172a;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

/* --- 2. BASE STYLES --- */
body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--primary-dark);
    overflow-x: hidden;
}
html { scroll-behavior: smooth; }

/* --- 3. TYPOGRAPHY & UTILITIES --- */
.ls-1 { letter-spacing: 1px; }
.opacity-60 { opacity: 0.6; }
.text-primary { color: var(--primary-blue) !important; }

.counter-value {
    display: inline-block;
    transition: all 0.3s ease;
}
.text-primary .counter-value { text-shadow: 0 0 10px rgba(37,99,235,0.2); }

/* --- 4. LAYOUT & BACKGROUNDS --- */
.backdrop-blur {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), 
                      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    z-index: 1;
}

/* --- 5. BUTTONS & HOVER EFFECTS --- */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(15,23,42,0.08) !important;
}

.top-btn-icon, .top-btn-round {
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}
.top-btn-icon { letter-spacing: 1px; }

/* --- 6. NAVIGATION (GLASS NAVBAR) --- */
.glass-nav {
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1030;
}
.navbar { transition: all 0.3s ease; padding: 10px 0; }
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

/* --- 7. MAC WINDOW COMPONENT (Used in Directory) --- */
.mac-window {
    background: #f8fafc;
    border-radius: 24px;
    box-shadow: 0 30px 60px -12px rgba(15,23,42,0.15);
    border: 1px solid rgba(15,23,42,0.05);
    overflow: hidden;
    position: relative;
}
.mac-header {
    background: #ffffff;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(15,23,42,0.05);
    display: flex;
    align-items: center;
    gap: 8px;
}
.mac-body { padding: 32px; background: #f8fafc; }
.mac-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    border: 1px solid rgba(15,23,42,0.04);
    box-shadow: 0 4px 10px -2px rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}
.mac-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -10px rgba(15,23,42,0.08);
    border-color: rgba(15,23,42,0.08);
}
.mac-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.mac-title {
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
    font-size: 1.05rem;
    letter-spacing: -0.3px;
}
.mac-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

/* --- 8. LEGAL CONTENT WRAPPER --- */
.legal-content-body h1, .legal-content-body h2, 
.legal-content-body h3, .legal-content-body h4, .legal-content-body h5 {
    color: var(--secure-slate);
}
.legal-content-body p, .legal-content-body li {
    color: var(--text-grey);
    line-height: 1.8;
    font-size: 1.05rem;
}
.legal-content-body ul { padding-left: 20px; }

/* --- 9. FORMS (DSR Request Page) --- */
.form-control, .form-select {
    background-color: #f8fafc !important;
    border: 2px solid transparent !important;
    border-radius: 12px !important;
    color: #0f172a !important;
    font-size: 16px !important;
    transition: all 0.3s ease-in-out !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02) inset;
}
.form-control:focus, .form-select:focus {
    background-color: #ffffff !important;
    border-color: #2563EB !important;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.1) !important;
    outline: none;
}
.form-label {
    letter-spacing: 1.5px;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 8px;
}

/* --- 10. MOTIVE BANNER (Footer Call to Action) --- */
.motive-banner {
    color: white;
    border-radius: 30px;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

/* --- 11. UTILITIES & FOOTER --- */
.footer-premium {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
}
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: #0f172a;
    color: white;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: #fff; color: #000; transform: translateY(-5px); }

/* --- 12. RESPONSIVE DESIGN --- */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        margin-top: 15px;
        padding: 20px;
        border-radius: 20px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        border: 1px solid rgba(0,0,0,0.05);
    }
}
@media (max-width: 768px) {
    .form-control, .form-select { padding: 14px 15px !important; font-size: 16px !important; }
    .footer-premium .col-6 { margin-bottom: 2rem; }
    .back-to-top { bottom: 60px; right: 15px; width: 30px; height: 30px; }
    .motive-banner { padding: 2rem; border-radius: 20px; }
    .mac-body { padding: 20px; }
    .mac-item { flex-direction: column; text-align: center; gap: 12px; padding: 24px 16px; }
}