/* Shared Navigation Styles - nav.css */
/* Edit THIS file to change nav across ALL pages */

nav {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a2e;
    text-decoration: none;
}

.logo-img {
    height: 34px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-links > a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links > a:hover { color: #2563eb; }
.nav-links > a.btn-primary { color: white !important; }

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

.nav-dropdown-trigger:hover { color: #2563eb; }

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    z-index: 1001;
    padding-top: 0.75rem;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: #f8fafc;
    color: #2563eb;
}

.nav-dropdown:hover .nav-dropdown-menu { display: block; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #64748b;
    margin: 5px 0;
    transition: 0.3s;
}

.nav-links .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: all 0.3s;
    cursor: pointer;
    border: none !important;
    outline: none !important;
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(37,99,235,0.3);
}

.nav-links .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37,99,235,0.4);
}

@media (max-width: 968px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
}

/* ==========================================
   Global Button Styles
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
    line-height: 1.4;
}

.btn-primary,
.hero .btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white !important;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(37,99,235,0.3);
}

.btn-primary:hover,
.hero .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37,99,235,0.4);
}

.btn-outline,
.hero .btn-outline {
    background: transparent;
    color: white !important;
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover,
.hero .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
    transform: translateY(-2px);
}

/* Light background variant */
.btn-outline-dark {
    background: transparent;
    color: #1a1a2e !important;
    border: 2px solid rgba(0,0,0,0.2);
}

.btn-outline-dark:hover {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.4);
}

/* White button (for dark hero backgrounds) */
.btn-white {
    background: white;
    color: #1a1a2e !important;
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

/* Secondary button (light background contexts) */
.btn-secondary {
    background: var(--gray-100, #f1f5f9);
    color: var(--blue, #2563eb) !important;
    border: 2px solid transparent;
}

.btn-secondary:hover {
    background: var(--gray-200, #e2e8f0);
    transform: translateY(-2px);
}

/* Full-width block button */
.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

/* ==========================================
   Global Footer Styles
   ========================================== */

footer {
    background: #0a1628;
    color: #94a3b8;
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

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

.footer-brand .logo {
    color: white;
    font-size: 1.25rem;
}

.footer-brand .logo span {
    color: #2563eb;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 1rem;
}

.footer-col h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: white;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

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