/* ==========================================================================
   AccessoraX — Shared Header / Footer / Modal Styles
   Used site-wide via partials/header.html and partials/footer.html
   ========================================================================== */

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.nav-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 58px;
    width: 15;
    display: block;
    /* Make white background transparent via CSS mix-blend */
    mix-blend-mode: multiply;
}

.logo:hover {
    color: var(--primary);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* Buttons (shared with nav CTA) */
.btn {
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: none;
    text-align: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0, 82, 255, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 82, 255, 0.35);
}

.nav-cta-btn {
    background: linear-gradient(135deg, #0052FF, #003AD1);
    color: white !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 82, 255, 0.4);
}

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 60%;
    left: 0;
    background: white;
    min-width: 240px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 12px 0;
    margin-top: 8px;
    z-index: 1000;
    border: 1px solid var(--border);
}

.nav-dropdown:hover .dropdown-content {
    display: block;
    animation: dropdownFade 0.3s ease;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-content a {
    color: var(--text-secondary);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background: var(--bg-secondary);
    color: var(--primary);
    padding-left: 24px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: 0.3s;
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: #0A1628;
    padding: 60px 24px 32px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

footer .logo {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 16px;
    display: inline-block;
}

footer p {
    color: rgba(255, 255, 255, 0.7);
    margin: 12px 0;
    font-size: 0.95rem;
}

footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    color: white;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 24px 0;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.social-links i {
    font-size: 1.1rem;
    color: white;
}

/* 3-Column Equal Width Footer Layout */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-main h4,
.footer-services h4,
.footer-legal h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-services ul,
.footer-legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-services ul li,
.footer-legal ul li {
    margin-bottom: 12px;
}

.footer-services ul li a,
.footer-legal ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-services ul li a:hover,
.footer-legal ul li a:hover {
    color: var(--accent);
}

.footer-center {
    text-align: center;
}

.footer-bottom {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* LEGAL & POLICIES heading */
.footer-legal h4 {
    color: #FFFFFF;
}

/* Privacy Policy & Terms of Service */
.footer-legal a {
    color: #B6B9BF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #00D9FF;
}

.legal-disclaimer {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #F59E0B;
    padding: 16px 20px;
    margin-top: 30px;
    border-radius: 8px;
    font-size: 0.85rem;
    opacity: 0.85;
    line-height: 1.6;
}

.legal-disclaimer strong {
    color: #F59E0B;
    font-weight: 600;
}

/* ==========================================================================
   Free Audit Modal (shared with footer partial)
   ========================================================================== */

.audit-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.audit-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.audit-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 22, 40, 0.8);
    backdrop-filter: blur(5px);
}

.audit-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 48px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.audit-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f0f0f0;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #666;
    transition: all 0.3s ease;
}

.audit-modal-close:hover {
    background: #0052FF;
    color: white;
    transform: rotate(90deg);
}

.audit-modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.audit-modal-header i {
    font-size: 3rem;
    color: #0052FF;
    margin-bottom: 16px;
}

.audit-modal-header h2 {
    font-size: 1.8rem;
    color: #0A1628;
    margin-bottom: 12px;
}

.audit-modal-header p {
    color: #4A5568;
    font-size: 1rem;
    margin: 0;
}

.audit-form-group {
    margin-bottom: 24px;
}

.audit-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0A1628;
    font-size: 0.95rem;
}

.audit-form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.audit-form-group input:focus {
    outline: none;
    border-color: #0052FF;
    box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.1);
}

.audit-submit-btn {
    width: 100%;
    padding: 16px;
    background: #0052FF;
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.audit-submit-btn:hover {
    background: #003AD1;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 82, 255, 0.4);
}

.success-content {
    text-align: center;
    padding: 60px 48px;
}

.success-icon {
    font-size: 5rem;
    color: #10B981;
    margin-bottom: 24px;
}

.success-content h2 {
    font-size: 2rem;
    color: #0A1628;
    margin-bottom: 16px;
}

.success-content p {
    color: #4A5568;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.audit-close-btn {
    margin-top: 32px;
    padding: 14px 32px;
    background: #0052FF;
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.audit-close-btn:hover {
    background: #003AD1;
    transform: translateY(-2px);
}

/* ==========================================================================
   Responsive — Nav / Footer / Modal
   ========================================================================== */

@media (max-width: 1024px) {
    .nav-links {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        box-shadow: var(--shadow-lg, 0 20px 40px rgba(0,0,0,0.12));
        transform: translateX(100%);
        transition: transform 0.3s ease;
        gap: 16px;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-dropdown {
        width: 100%;
        text-align: center;
    }

    .nav-dropdown > a {
        justify-content: center;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .dropdown-content {
        display: none;
        position: static;
        background: var(--bg-secondary);
        border: none;
        border-radius: 0;
        min-width: 100%;
        box-shadow: none;
        padding: 0;
        margin: 0;
        z-index: auto;
        text-align: center;
    }

    .nav-dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding: 12px 20px;
        border-bottom: none;
        text-align: center;
    }

    .dropdown-content a:hover {
        background: white;
        padding-left: 20px;
    }

    .nav-dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }

    .nav-container {
        padding: 16px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .footer-main,
    .footer-services,
    .footer-legal {
        text-align: center;
    }

    .audit-modal-content {
        padding: 32px 24px;
        width: 95%;
    }

    .success-content {
        padding: 40px 24px;
    }
}

/* Accessibility improvements */
:focus-visible {
    outline: 3px solid var(--primary, #0052FF);
    outline-offset: 3px;
    border-radius: 4px;
}
