/* Shared Styles for Header and Footer - Consistent across all pages */

/* CSS Variables */
:root {
    --primary-black: #000000;
    --secondary-black: #333333;
    --light-gray: #f8f9fa;
    --border-color: #e0e0e0;
    --text-gray: #666666;
    --text-color: #000000;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.15);
}

/* Body consistency */
body {
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Touch-friendly improvements */
* {
    -webkit-tap-highlight-color: transparent;
}

button, a, input, select, textarea {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Header and Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 300;
    color: #000;
    text-decoration: none;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: var(--secondary-black);
}

.nav-logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.signature-image {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.signature-image:hover {
    opacity: 1;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--secondary-black);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-black);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-btn:hover {
    color: #000;
}

.mobile-menu-btn:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        height: 70px;
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 1rem;
    }
    
    .nav-logo-container {
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    
    .nav-center {
        position: static;
        left: auto;
        transform: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-logo {
        font-size: 1.5rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        gap: 1rem;
        z-index: 1000;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
        justify-self: flex-end;
    }
    
    .signature-image {
        height: 30px;
        max-width: 120px;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 0;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.75rem;
        height: 65px;
    }
    
    .nav-logo {
        font-size: 1.3rem;
    }
    
    .signature-image {
        height: 25px;
        max-width: 100px;
    }
    
    .nav-links {
        padding: 1.5rem;
    }
    
    .nav-link {
        font-size: 1rem;
    }
}

/* Footer Styles */
.footer {
    background: #f8f9fa;
    padding: 4rem 0 2rem 0;
    border-top: 1px solid var(--border-color);
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.footer-brand p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-black);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--secondary-black);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-black);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-black);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-links li {
        margin-bottom: 0.25rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .footer-main {
        gap: 1.5rem;
    }
    
    .footer-brand h3 {
        font-size: 1.3rem;
    }
    
    .footer-brand p {
        font-size: 0.9rem;
    }
}
