/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =====================================================================
   Site palette — shared dark "cinematic" theme (matches 64th BGU page)
   ===================================================================== */
:root {
    --maroon: #b22222;
    --maroon-deep: #7a1212;
    --gold: #d8a93f;
    --gold-bright: #f4c430;
    --gold-soft: #ecd596;
    --saffron: #e07b30;
    --bg: #7a1212; /* brand maroon — blends with nav & footer */
    --bg-2: #680f0e; /* slightly deeper section background */
    --panel: #93211b; /* card / panel surface (lifted) */
    --panel-2: #a52820; /* hover / raised surface */
    --panel-line: rgba(236, 213, 150, 0.22); /* hairline / borders */
    --text: #f4ece0; /* primary text on dark (maroon sections) */
    --muted: #c6b3a3; /* secondary text on dark */
    /* Light "card" surface — pops off the maroon page for readability */
    --card: #f8f2e8; /* near-white card surface */
    --card-2: #efe2cf; /* card hover / zebra / alt rows */
    --card-text: #33180f; /* dark body text on light cards */
    --card-heading: #8b1515; /* maroon headings on light cards */
    --card-muted: #6e4f42; /* secondary text on light cards */
    --card-line: rgba(120, 18, 18, 0.16); /* borders/dividers on light cards */
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Poppins', system-ui, sans-serif;
    --r-sm: 14px;
    --r: 20px;
    --r-lg: 28px;
    --r-pill: 999px;
    --sh: 0 24px 60px rgba(0, 0, 0, 0.45);
    --sh-lg: 0 40px 90px rgba(0, 0, 0, 0.55);
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --t: 0.5s var(--ease);
}

/* 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: var(--bg);
    color: var(--text);
}

/* Navigation Styles */
nav {
    background-color: rgba(178, 34, 34, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.8rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.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 cubic-bezier(0.25, 0.8, 0.25, 1);
    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;
    position: relative;
    overflow: hidden;
}

    nav a::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(255, 215, 0, 0.15);
        border-radius: 25px;
        transform: scale(0);
        transition: transform 0.3s ease-out;
        z-index: -1;
    }

    nav a:hover::before {
        transform: scale(1);
    }

    nav a:hover {
        color: #fff;
        transform: translateY(-2px);
        text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    }

    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: linear-gradient(135deg, #8B0000 0%, #B22222 100%);
    color: #f5f5f5;
    text-align: center;
    padding: 4rem 2rem 2rem;
    position: relative;
    bottom: 0;
    width: 100%;
    border-top: 5px solid #FFD700;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
}

.footer-section {
    text-align: left;
    padding: 1rem 0;
}

    .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%;
}
