/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Skip Navigation Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #B22222;
    color: #FFD700;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #fff;
    color: #333;
}

/* Navigation Styles */
nav {
    background-color: #B22222;
    padding: 0.8rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

nav a {
    color: #FFD700;
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
    border-radius: 25px;
    white-space: nowrap;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav a:hover {
    background-color: #CD5C5C;
    color: #FFD700;
    transform: translateY(-2px);
}

nav a:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
    background-color: #CD5C5C;
    color: #FFD700;
}

nav a:focus-visible {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

/* Footer Styles */
footer {
    background: #B22222;
    color: #FFD700;
    text-align: center;
    padding: 2rem;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.footer-section {
    flex: 1;
    text-align: left;
    padding: 1rem;
}

.footer-section h3 {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.footer-section .social-links {
    display: flex;
    justify-content: left;
    gap: 2.0rem;
    margin-top: 1rem;
}

.social-links a {
    color: #FFD700;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: #FFA500;
    transform: translateY(-3px) scale(1.1);
}

.footer-section p {
    margin: 0.6rem 0;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 300;
}

.footer-bottom {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    font-size: 0.9rem;
    font-weight: 300;
}

/* Mobile Navigation Styles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #FFD700;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

.mobile-menu-btn:focus-visible {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        padding: 0.5rem 1rem;
    }

    .mobile-menu-btn {
        display: flex;
        position: absolute;
        right: 1rem;
        top: 1rem;
        z-index: 1002;
        min-height: 44px;
        min-width: 44px;
    }

    .nav-container {
        flex-direction: column;
        padding: 1rem 0;
        position: relative;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
        background-color: #B22222;
        border-radius: 8px;
        margin-top: 1rem;
        z-index: 1001;
        position: relative;
    }

    .nav-links.active {
        display: flex;
    }

    nav a {
        width: 100%;
        text-align: center;
        padding: 0.8rem;
        border-radius: 8px;
        margin: 0.2rem 0;
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo img {
        height: 40px;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        max-width: 95%;
        padding: 0 1rem;
    }

    .footer-section {
        text-align: center;
        flex: none;
        padding: 0.5rem;
    }

    .footer-section .social-links {
        justify-content: center;
        gap: 1.5rem;
    }

    .social-links a {
        font-size: 1.3rem;
    }

    .footer-menu {
        align-items: center;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.3rem 0.5rem;
    }

    .nav-container {
        padding: 0.5rem 0;
    }

    nav a {
        font-size: 0.9rem;
        padding: 0.6rem;
    }

    .logo img {
        height: 35px;
    }

    .footer-section h3 {
        font-size: 1rem;
    }

    .footer-section p {
        font-size: 0.85rem;
    }

    .social-links a {
        font-size: 1.2rem;
    }

    footer {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 360px) {
    nav a {
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    .logo img {
        height: 30px;
    }

    .footer-section h3 {
        font-size: 0.9rem;
    }

    .footer-section p {
        font-size: 0.8rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    nav a:hover {
        transform: none;
        background-color: transparent;
    }

    .social-links a:hover {
        transform: none;
    }

    .logo:hover img {
        transform: none;
    }

    .footer-section:hover {
        transform: none;
    }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Contact Navigation Styles */
.contact-nav {
    position: relative;
    transition: color 0.3s ease;
}

/* Footer Contact Section Styles */
#contact-section {
    scroll-margin-top: 80px;
}

.footer-section {
    position: relative;
    transition: transform 0.3s ease;
}

.footer-section:hover {
    transform: translateY(-5px);
}

/* Footer Menu Link Styling - moved from style.css for maximum specificity */
.footer-section .footer-menu a,
.footer-section .footer-menu a:link,
.footer-section .footer-menu a:visited,
.footer-section .footer-menu a:active,
.footer-section .footer-menu a:hover {
    color: #FFD700 !important;
    text-decoration: none !important;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 300;
    font-family: inherit;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
    display: block;
    width: 100%;
    background: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.footer-section .footer-menu a:hover,
.footer-section .footer-menu a:active {
    color: #FFA500 !important;
    transform: translateX(5px);
    text-decoration: none !important;
    background: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.footer-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    width: 100%;
}