/* styles.css - Shared styles for header and footer */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-black: #000000;
    --primary-white: #ffffff;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--primary-white);
    color: var(--primary-black);
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--gray-200);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    text-decoration: none;
    color: var(--primary-black);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-black);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    transform: translateY(-2px);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary-black);
}

/* Footer */
footer {
    background: #000000;
    color: #ffffff;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.footer-section p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #ffffff;
    opacity: 0.9;
}

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

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

.footer-section a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: #ffffff;
}

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #333333;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-3px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #333333;
    text-align: center;
    color: #999999;
    font-size: 0.9rem;
}

/* Mobile Styles */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--primary-white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    footer {
        padding: 3rem 1.5rem 1.5rem;
    }
}
/* Footer stability fix: keeps the shared footer from breaking on pages with page-level CSS only */
#footer-placeholder,
#footer-placeholder * {
    box-sizing: border-box;
}

#footer-placeholder {
    width: 100%;
    display: block;
    clear: both;
}

#footer-placeholder footer {
    width: 100%;
    overflow: hidden;
}

#footer-placeholder .footer-content {
    width: min(100%, 1400px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
}

#footer-placeholder .footer-section {
    min-width: 0;
}

#footer-placeholder .footer-section ul li,
#footer-placeholder .footer-section a {
    overflow-wrap: anywhere;
}

#footer-placeholder .social-icons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

#footer-placeholder .social-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    min-width: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#footer-placeholder .social-icon svg {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    display: block;
    flex: 0 0 20px;
}

@media (max-width: 1024px) {
    #footer-placeholder .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    #footer-placeholder .footer-content {
        grid-template-columns: 1fr;
    }
}


/* Header stability fix: keeps the shared header from breaking on pages with page-level CSS only */
#header-placeholder,
#header-placeholder * {
    box-sizing: border-box;
}

#header-placeholder {
    width: 100%;
    display: block;
    position: relative;
    z-index: 1000;
}

#header-placeholder nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: rgba(255, 255, 255) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e5e5 !important;
    z-index: 1000 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

#header-placeholder .nav-container {
    width: min(100%, 1400px) !important;
    margin: 0 auto !important;
    padding: 1.5rem 2rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 1.5rem !important;
    min-height: 80px !important;
}

#header-placeholder .logo {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #000000 !important;
    display: block !important;
    line-height: 1 !important;
    animation: none !important;
    transform: none !important;
    letter-spacing: normal !important;
    font-size: inherit !important;
    overflow: visible !important;
}

#header-placeholder .logo a {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    height: auto !important;
    color: #000000 !important;
    text-decoration: none !important;
    line-height: 1 !important;
}

#header-placeholder .logo img {
    display: block !important;
    width: 120px !important;
    max-width: 120px !important;
    height: auto !important;
    max-height: 50px !important;
    object-fit: contain !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

#header-placeholder .nav-links {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 2.5rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    position: static !important;
    overflow: visible !important;
}

#header-placeholder .nav-links li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

#header-placeholder .nav-links a {
    display: inline-block !important;
    position: relative !important;
    text-decoration: none !important;
    color: #000000 !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
    padding: 0 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    opacity: 1 !important;
    background: transparent !important;
    border: 0 !important;
    transition: all 0.3s ease !important;
}

#header-placeholder .nav-links a:hover {
    transform: translateY(-2px) !important;
}

#header-placeholder .nav-links a::after {
    content: '' !important;
    position: absolute !important;
    bottom: -5px !important;
    left: 0 !important;
    width: 0 !important;
    height: 2px !important;
    background: #000000 !important;
    transition: width 0.3s ease !important;
}

#header-placeholder .nav-links a:hover::after {
    width: 100% !important;
}

#header-placeholder .menu-toggle {
    display: none !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    width: 32px !important;
    height: 32px !important;
    cursor: pointer !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 0 0 32px !important;
}

#header-placeholder .menu-toggle span {
    display: block !important;
    width: 25px !important;
    height: 2px !important;
    background: #000000 !important;
    border-radius: 999px !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 900px) {
    #header-placeholder .nav-container {
        padding: 1rem 1.5rem !important;
        min-height: 76px !important;
    }

    #header-placeholder .logo img {
        width: 110px !important;
        max-width: 110px !important;
    }

    #header-placeholder .menu-toggle {
        display: flex !important;
    }

    #header-placeholder .nav-links {
        position: fixed !important;
        top: 76px !important;
        left: -100% !important;
        width: 100% !important;
        height: calc(100vh - 76px) !important;
        background: #ffffff !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 1.5rem !important;
        padding: 2rem !important;
        margin: 0 !important;
        transition: left 0.3s ease !important;
        z-index: 999 !important;
        overflow-y: auto !important;
        border-top: 1px solid #e5e5e5 !important;
    }

    #header-placeholder .nav-links.active {
        left: 0 !important;
    }

    #header-placeholder .nav-links a {
        font-size: 1.1rem !important;
    }
}
