:root {
    --bg-dark: #050810;
    --bg-blue: #0a1128;
    --gold-primary: #d4af37;
    --gold-light: #ffecb3;
    --gold-dark: #8a6e2f;
    --text-main: #e0e0e0;
}

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

body {
    background:
        radial-gradient(ellipse at top, rgba(10, 50, 100, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(100, 50, 10, 0.2) 0%, transparent 50%),
        radial-gradient(circle at center, var(--bg-blue) 0%, var(--bg-dark) 100%);
    color: var(--text-main);
    font-family: 'Playfair Display', serif;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.3);
    /* Better touch feedback on iOS */
    -webkit-text-size-adjust: 100%;
    /* Prevent font scaling issues */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(212, 175, 55, 0.03) 2px,
            rgba(212, 175, 55, 0.03) 4px),
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

body>* {
    position: relative;
    z-index: 2;
}

/* Background Animation - Beautiful CSS Stars */
.stars,
.twinkling {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.stars {
    background: #000;
    z-index: -2;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 60px 70px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 50px 50px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 90px 10px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(212, 175, 55, 0.8), transparent),
        radial-gradient(1px 1px at 20px 150px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 180px 50px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 100px 180px, rgba(212, 175, 55, 0.7), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: stars-drift 240s linear infinite;
}

.twinkling {
    z-index: -1;
    background: transparent;
    background-image:
        radial-gradient(1px 1px at 30px 40px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 80px 90px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 140px 30px, rgba(212, 175, 55, 0.9), transparent),
        radial-gradient(1px 1px at 110px 150px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 170px 100px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 40px 120px, rgba(212, 175, 55, 0.8), transparent),
        radial-gradient(1px 1px at 190px 160px, rgba(255, 255, 255, 0.7), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkling 120s linear infinite, stars-drift 180s linear infinite reverse;
}

@keyframes stars-drift {
    from {
        background-position: 0 0;
    }

    to {
        background-position: -200px -200px;
    }
}

@keyframes twinkling {
    0% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 0.2;
    }
}

/* Typography & Headers */
h1,
h2,
h3,
.subtitle {
    font-family: 'Cinzel', serif;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subtitle {
    color: var(--gold-light);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    letter-spacing: 5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

h1 {
    font-size: 2.8rem;
    background: linear-gradient(to bottom, #cfc09f 22%, #634f2c 24%, #cfc09f 26%, #cfc09f 27%, #ffecb3 40%, #3a2c0f 78%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--gold-primary);
    margin-bottom: 0.8rem;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.main-title {
    font-size: 4rem;
    color: var(--gold-primary);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4), 3px 3px 6px rgba(0, 0, 0, 0.8);
    margin-bottom: 3rem;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(to right, transparent, var(--gold-primary), transparent) 1;
    padding-bottom: 1.5rem;
    letter-spacing: 1px;
}

/* Layout */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem 3rem;
}

header {
    padding-top: 4rem;
    position: relative;
    text-align: center;
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 3rem;
    margin-top: 3rem;
    padding: 0 1rem;
    animation: fadeInUp 1.5s ease-out 0.3s both;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.flyer-container {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-section {
    grid-column: 1;
    grid-row: 2;
    text-align: center;
    margin-top: 1rem;
    max-width: none;
    justify-self: stretch;
}

.faq-section {
    grid-column: 2;
    grid-row: 1 / span 2;
    /* Span both rows on the right */
}

.flyer-container {
    animation: fadeInLeft 1.5s ease-out 0.6s both;
}

.faq-section {
    animation: fadeInRight 1.5s ease-out 0.9s both;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.flyer-container {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flyer-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow:
        0 0 30px rgba(212, 175, 55, 0.3),
        0 10px 40px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(212, 175, 55, 0.1);
    border: 3px solid var(--gold-dark);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.flyer-image:hover {
    transform: scale(1.02);
    box-shadow:
        0 0 40px rgba(212, 175, 55, 0.4),
        0 15px 50px rgba(0, 0, 0, 0.7),
        0 0 80px rgba(212, 175, 55, 0.2);
}

.faq-section {
    flex: 1;
    min-width: 320px;
    max-width: 650px;
    text-align: center;
    background: linear-gradient(135deg, rgba(10, 17, 40, 0.95) 0%, rgba(15, 25, 50, 0.95) 100%);
    padding: 3.5rem 3rem;
    border-radius: 16px;
    border: 2px solid rgba(212, 175, 55, 0.6);
    backdrop-filter: blur(15px);
    box-shadow:
        0 0 50px rgba(212, 175, 55, 0.3),
        0 10px 30px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: faqGlow 3s ease-in-out infinite alternate;
}

@keyframes faqGlow {
    from {
        box-shadow:
            0 0 50px rgba(212, 175, 55, 0.3),
            0 10px 30px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    to {
        box-shadow:
            0 0 60px rgba(212, 175, 55, 0.4),
            0 15px 40px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

.menorah-icon {
    font-size: 5rem;
    color: var(--gold-primary);
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.7));
    animation: iconPulse 2s ease-in-out infinite alternate;
}

@keyframes iconPulse {
    from {
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.7));
    }

    to {
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.9));
    }
}

h3 {
    font-size: 2.2rem;
    color: var(--gold-light);
    margin-bottom: 1.2rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    letter-spacing: 2px;
}

.mission-text {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    font-style: italic;
    color: #ddd;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* FAQ Container */
.faq-container {
    text-align: left;
    margin-top: 2rem;
}

.faq-item {
    margin-bottom: 1.8rem;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(5, 8, 16, 0.6) 0%, rgba(10, 15, 25, 0.5) 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.faq-item:hover {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3), 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.faq-item.active {
    border-color: rgba(212, 175, 55, 0.8);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4), 0 8px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem 1.75rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.08) 100%);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.faq-question:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.15) 100%);
    transform: translateX(5px);
}

.faq-question i.fa-question-circle,
.faq-question i.fa-users,
.faq-question i.fa-home,
.faq-question i.fa-clock,
.faq-question i.fa-lightbulb,
.faq-question i.fa-shipping-fast,
.faq-question i.fa-envelope {
    color: var(--gold-primary);
    font-size: 1.8rem;
    min-width: 2rem;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
    transition: all 0.3s ease;
}

.faq-question:hover i.fa-question-circle,
.faq-question:hover i.fa-users,
.faq-question:hover i.fa-home,
.faq-question:hover i.fa-clock,
.faq-question:hover i.fa-lightbulb,
.faq-question:hover i.fa-shipping-fast,
.faq-question:hover i.fa-envelope {
    color: var(--gold-light);
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.8));
}

.faq-question h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--gold-light);
    text-transform: none;
    letter-spacing: 1px;
    margin: 0;
    flex: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

.faq-question:hover h4 {
    color: white;
}

.toggle-icon {
    color: var(--gold-primary);
    font-size: 1.2rem !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: auto;
    min-width: auto !important;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
}

.faq-item.active .toggle-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.75rem 0;
    color: #ddd;
    line-height: 1.8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    /* Large enough to accommodate any answer */
    padding-bottom: 1.5rem;
}

.faq-answer p {
    margin: 0 0 1.2rem 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, rgba(10, 17, 40, 0.9) 0%, rgba(15, 25, 50, 0.9) 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
    animation: fadeInRight 1.5s ease-out 0.9s both;
}

.contact-section h3 {
    font-size: 1.5rem;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.contact-subtitle {
    font-size: 1rem;
    color: #ddd;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gold-light);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    min-width: 200px;
    justify-content: center;
}

.contact-link:hover {
    color: white;
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Ornaments */
.ornament-top,
.ornament-bottom {
    height: 60px;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin: 1.5rem 0;
    position: relative;
}

.ornament-top::before,
.ornament-bottom::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Footer */
footer {
    padding: 3rem 0 2rem;
    background: linear-gradient(135deg, rgba(5, 8, 16, 0.8) 0%, rgba(10, 17, 40, 0.6) 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    margin-top: 4rem;
    text-align: center;
    backdrop-filter: blur(5px);
    animation: fadeInUp 1.2s ease-out 1.2s both;
}

footer p {
    color: var(--gold-light);
    font-size: 0.95rem;
    margin: 1rem 0 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

/* Responsive */

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 2rem 2rem;
    }

    .hero {
        gap: 2rem 2.5rem;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .flyer-container {
        grid-column: 1;
        grid-row: 1;
    }

    .contact-section {
        grid-column: 1;
        grid-row: 2;
        max-width: none;
        justify-self: stretch;
    }

    .faq-section {
        grid-column: 2;
        grid-row: 1 / span 2;
        padding: 3rem 2rem;
    }
}

/* Mobile Styles - Small screens only */
@media (max-width: 600px) {
    body {
        font-size: 16px;
        line-height: 1.5;
        scroll-behavior: smooth;
        /* Smooth scrolling on mobile */
    }

    .container {
        padding: 1rem;
    }

    .subtitle {
        font-size: 1.1rem;
        letter-spacing: 3px;
    }

    .main-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
        padding: 0;
    }

    .flyer-container {
        grid-column: 1;
        grid-row: 1;
    }

    .flyer-image {
        width: 100%;
        max-width: 350px;
        height: auto;
    }

    .contact-section {
        grid-column: 1;
        grid-row: 2;
        margin-top: 0;
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }

    .contact-section h3 {
        font-size: 1.3rem;
    }

    .contact-link {
        min-width: 180px;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .faq-section {
        grid-column: 1;
        grid-row: 3;
        padding: 2rem 1rem;
        margin: 0 0.5rem;
        border-radius: 12px;
    }

    .menorah-icon {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
    }

    h3 {
        font-size: 1.6rem;
    }

    .mission-text {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .faq-container {
        margin-top: 1.5rem;
    }

    .faq-item {
        margin-bottom: 1.2rem;
    }

    .faq-question {
        padding: 1rem;
        gap: 0.8rem;
        min-height: 60px;
        /* Ensure good touch target */
        align-items: flex-start;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
    }

    .faq-question i.fa-question-circle,
    .faq-question i.fa-users,
    .faq-question i.fa-home,
    .faq-question i.fa-clock,
    .faq-question i.fa-lightbulb,
    .faq-question i.fa-shipping-fast,
    .faq-question i.fa-envelope {
        font-size: 1.3rem;
        min-width: 1.3rem;
        margin-top: 2px;
    }

    .faq-question h4 {
        font-size: 1rem;
        line-height: 1.3;
        flex: 1;
        margin: 0;
    }

    .toggle-icon {
        font-size: 1rem;
        margin-left: 0.5rem;
    }

    .faq-answer {
        padding: 0 1rem 0;
        font-size: 0.95rem;
    }

    .faq-item.active .faq-answer {
        max-height: 600px;
        /* Increased for mobile */
        padding-bottom: 1rem;
    }

    footer {
        padding: 2rem 1rem 1.5rem;
        margin-top: 3rem;
        text-align: center;
    }

    footer p {
        font-size: 0.9rem;
    }
}

/* Small Mobile Styles */
@media (max-width: 400px) {
    .container {
        padding: 0.5rem;
    }

    header {
        padding-top: 3rem;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .main-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    h1 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .hero {
        gap: 1.5rem;
        margin-top: 1.5rem;
        grid-template-rows: auto auto auto;
    }

    .flyer-image {
        max-width: 280px;
        border-radius: 6px;
    }

    .contact-section {
        padding: 1.2rem 0.8rem;
        margin: 0 0.25rem;
    }

    .contact-section h3 {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }

    .contact-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .contact-info {
        gap: 0.8rem;
    }

    .contact-link {
        min-width: 160px;
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .faq-section {
        padding: 1.5rem 0.8rem;
        margin: 0 0.25rem;
    }

    .menorah-icon {
        font-size: 3rem;
        margin-bottom: 1.2rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    .mission-text {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .faq-question {
        padding: 0.8rem;
        min-height: 50px;
    }

    .faq-question h4 {
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 0.8rem 0;
        font-size: 0.9rem;
    }

    .faq-item.active .faq-answer {
        max-height: 800px;
        /* Even more space for small screens */
        padding-bottom: 0.8rem;
    }

    footer {
        padding: 1.5rem 0.5rem 1rem;
        margin-top: 2rem;
    }

    footer p {
        font-size: 0.8rem;
    }
}