/* Base styles */
:root {
    --primary-blue: #1e88e5;
    --primary-orange: #ff9800;
    --dark-blue: #0d47a1;
    --light-blue: #bbdefb;
    --dark-orange: #e65100;
    --light-orange: #ffe0b2;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --black: #000000;
    --header-height: 90px;
}

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

html, body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    min-height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    position: relative;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-orange);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-orange);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--dark-orange);
    color: var(--white);
}

.hero-content .btn {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    font-weight: bold;
    padding: 12px 24px;
}

.btn.secondary {
    background-color: var(--primary-blue);
}

.btn.secondary:hover {
    background-color: var(--dark-blue);
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    width: 100%;
    height: var(--header-height);
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    max-height: 90px; /* Increased from 60px */
    width: auto;
    border-radius: 5px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.logo h1 {
    display: none; /* Hide the text logo since we're using an image now */
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 200;
    margin-right: 10px;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-blue);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger animation */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Fix for content overlap - add padding to body when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Force mobile nav when tabs don't fit */
body.force-mobile-nav .menu-toggle {
    display: flex;
}

body.force-mobile-nav nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 150;
    padding-top: 90px;
    overflow-y: auto;
}

body.force-mobile-nav nav.active {
    right: 0;
}

body.force-mobile-nav nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
}

body.force-mobile-nav nav ul li {
    margin: 0;
    width: 100%;
}

body.force-mobile-nav nav ul li a {
    display: block;
    padding: 16px 24px;
    width: 100%;
    border-radius: 0;
    border-bottom: 1px solid var(--light-gray);
    font-weight: 500;
    transition: all 0.2s ease;
}

body.force-mobile-nav nav ul li a:hover,
body.force-mobile-nav nav ul li a.active {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    padding-left: 30px;
}

/* Adjust header to be fixed for mobile */
@media (max-width: 1024px) {
    header {
        position: fixed;
        height: auto;
        min-height: var(--header-height);
    }

    /* No extra padding needed for main content */

    /* Adjust hero sections for mobile */
    .hero, .rsvp-hero {
        min-height: 60vh;
        margin-top: 0;
        padding-top: var(--header-height);
    }

    .rsvp-hero {
        min-height: 50vh;
    }

    .hero-content {
        padding: 1.5rem;
        max-width: 95%;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 0, 0, 0.8);
    }

    .hero-content .tagline {
        font-size: 1.2rem;
        text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.8);
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -2px 0 15px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
        z-index: 150;
        padding-top: 90px;
        overflow-y: auto;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
    }

    nav ul li {
        margin: 0;
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 16px 24px;
        width: 100%;
        border-radius: 0;
        border-bottom: 1px solid var(--light-gray);
        font-weight: 500;
        transition: all 0.2s ease;
    }

    nav ul li a:hover, nav ul li a.active {
        background-color: var(--light-blue);
        color: var(--primary-blue);
        padding-left: 30px;
    }

    /* Overlay when menu is open */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 100;
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
        transition: all 0.3s ease;
    }

    .menu-overlay.active {
        display: block;
    }
}

@media (max-width: 480px) {
    .logo img {
        max-height: 60px;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        text-shadow: 2px 2px 12px rgba(0, 0, 0, 1), 0 0 30px rgba(0, 0, 0, 0.9);
    }

    .hero-content .tagline {
        font-size: 1rem;
        text-shadow: 1px 1px 10px rgba(0, 0, 0, 1), 0 0 25px rgba(0, 0, 0, 0.9);
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--dark-gray);
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-orange);
    background-color: var(--light-gray);
}

nav ul li a.active {
    color: var(--white);
    background-color: var(--primary-blue);
}

/* Hero Section - Fixed background without scrolling effects */
.hero, .rsvp-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('coors_field-dusk.jpeg') no-repeat center center/cover;
    background-attachment: scroll; /* Ensure no parallax/fixed effect */
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    margin: 0;
    padding: 0;
    padding-top: var(--header-height);
    margin-top: 0;
    /* Prevent any dynamic positioning */
    transform: none !important;
    transition: none !important;
}

.rsvp-hero {
    min-height: 50vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('coors_field-dusk.jpeg') no-repeat center center/cover;
    background-attachment: scroll; /* Ensure no parallax/fixed effect */
    padding-top: var(--header-height);
    margin-top: 0;
    /* Prevent any dynamic positioning */
    transform: none !important;
    transition: none !important;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,152,0,0.3) 0%, rgba(30,136,229,0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 90%;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.hero-content .tagline {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.7);
}

/* Details Section */
.details, .event-details-reminder {
    background-color: var(--light-gray);
    padding: 3rem 0;
}

.details h2, .event-details-reminder h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-blue);
}

.event-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.info-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
    min-width: 300px;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i {
    font-size: 3rem;
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
}

.info-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.info-card p {
    margin-bottom: 0.5rem;
}

/* Sports Theme Section */
.sports-theme {
    padding: 4rem 0;
}

.sports-theme h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-blue);
}

.sports-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.sport-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
    min-width: 300px;
    transition: all 0.3s ease;
    border-top: 5px solid var(--primary-blue);
}

.sport-card:hover {
    transform: translateY(-10px);
}

.sport-card.baseball:hover {
    border-top-color: var(--primary-orange);
}

.sport-card.basketball:hover {
    border-top-color: var(--primary-orange);
}

.sport-card.tennis:hover {
    border-top-color: var(--primary-orange);
}

.sport-icon {
    height: 100px;
    width: 100px;
    background-color: var(--light-blue);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sport-card:hover .sport-icon {
    background-color: var(--light-orange);
}

.sport-icon i {
    font-size: 3rem;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.sport-card:hover .sport-icon i {
    color: var(--primary-orange);
}

.sport-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.sport-card p {
    color: var(--dark-gray);
}

/* About Section */
.about {
    background-color: var(--white);
    padding: 4rem 0;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-blue);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 0;
    width: fit-content;
}

.eli-photo {
    display: block;
    max-height: 400px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--primary-orange);
    margin: 0;
    padding: 0;
}

.placeholder-image {
    display: none; /* Hide the placeholder since we're using the actual image */
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Judaism Your Way Section */
.judaism-your-way {
    background-color: var(--light-gray);
    padding: 4rem 0;
}

.judaism-your-way h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-blue);
}

.judaism-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.judaism-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.judaism-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.judaism-image img:hover {
    transform: scale(1.02);
}

.judaism-text {
    flex: 2;
    min-width: 300px;
}

.judaism-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.judaism-link {
    margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .judaism-content {
        flex-direction: column;
    }

    .judaism-image {
        margin-bottom: 2rem;
    }
}

/* RSVP Form */
.rsvp-form {
    padding: 4rem 0;
    background-color: var(--white);
}

.form-container {
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.form-container h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-blue);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--dark-gray);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

textarea {
    resize: vertical;
}

.radio-options {
    display: flex;
    gap: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--dark-gray);
}

#additionalGuestsContainer h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    border-bottom: 1px solid var(--light-blue);
    padding-bottom: 0.5rem;
}

.radio-options label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.radio-options input {
    margin-right: 0.5rem;
}

.sport-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.sport-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

.sport-options label:hover {
    background-color: var(--light-blue);
}

.sport-options input:checked + i {
    color: var(--primary-orange);
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.hidden {
    display: none;
}

#formConfirmation {
    text-align: center;
    padding: 2rem;
}

#formConfirmation h3 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

#formConfirmation p {
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
}

.footer-links a {
    color: var(--white);
    position: relative;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--light-orange);
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--light-orange);
    transition: width 0.3s ease;
}

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

.footer-credits {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    gap: 0.5rem 1rem;
}

.footer-credits a {
    color: var(--white);
    font-weight: 500;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer-credits a:hover {
    color: var(--light-orange);
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-credits .separator {
    color: var(--light-blue);
    font-weight: 300;
    margin: 0 0.5rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .tagline {
        font-size: 1.2rem;
    }

    .about-content {
        flex-direction: column;
    }

    .info-card, .sport-card {
        min-width: 100%;
    }

    header {
        flex-direction: column;
        padding: 1rem;
    }

    nav ul {
        margin-top: 1rem;
    }

    nav ul li {
        margin-left: 0.5rem;
    }

    .radio-options, .sport-options {
        flex-direction: column;
        gap: 0.5rem;
    }
}