/* ======================
   TIKVA L'DOROT - Main Stylesheet
   ====================== */

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

:root {
    --navy: #1E3A5F;
    --navy-dark: #0F2844;
    --navy-light: #2C5282;
    --gold: #D4AF37;
    --gold-light: #F7D560;
    --gold-pale: #FDF6E3;
    --cream: #FAF5E9;
    --white: #FFFFFF;
    --text: #2D3748;
    --text-light: #4A5568;
    --gray: #E2E8F0;
    --gray-dark: #718096;
    --red: #C53030;
    --green: #2F855A;
    --shadow: 0 4px 12px rgba(30, 58, 95, 0.1);
    --shadow-lg: 0 12px 32px rgba(30, 58, 95, 0.15);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--navy);
    line-height: 1.25;
    font-weight: 600;
}

a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

img { max-width: 100%; display: block; }

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

/* ======================
   HEADER
   ====================== */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.brand-icon { height: 52px; width: auto; }

.brand-text .brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 1.5px;
    line-height: 1;
}

.brand-text .brand-tag {
    font-size: .7rem;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    font-size: .95rem;
    font-weight: 500;
    color: var(--navy);
    padding: .5rem 0;
    position: relative;
}

.main-nav a:hover { color: var(--gold); }

.main-nav a.nav-cta {
    background: var(--gold);
    color: var(--white) !important;
    padding: .6rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
}

.main-nav a.nav-cta:hover {
    background: var(--navy);
    color: var(--white) !important;
}

.main-nav a.nav-prayer {
    color: var(--navy-light);
    font-style: italic;
    font-size: .88rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--navy);
    cursor: pointer;
}

/* ======================
   HERO
   ====================== */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
    color: var(--white);
    padding: 5rem 1.5rem 6rem;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.15), transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.12), transparent 50%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.3));
    animation: fadeInUp .8s ease;
}

.hero-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    padding: .5rem 1.4rem;
    border-radius: 50px;
    font-size: .85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
    animation: fadeInUp .8s ease .1s both;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.15;
    animation: fadeInUp .8s ease .2s both;
}

.hero h1 .accent { color: var(--gold-light); font-style: italic; }

.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--gold-light);
    margin-bottom: 2rem;
    max-width: 700px;
    animation: fadeInUp .8s ease .3s both;
}

.hero-description {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
    max-width: 680px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    animation: fadeInUp .8s ease .4s both;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 4rem;
    animation: fadeInUp .8s ease .5s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: 1rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .25s;
    text-decoration: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy-dark);
    border-color: var(--gold);
}
.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.35);
    color: var(--navy-dark);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.btn-secondary {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.btn-secondary:hover {
    background: var(--navy-dark);
    color: var(--white);
    border-color: var(--navy-dark);
}

/* Hero stats */
.hero-stats {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 800px;
    animation: fadeInUp .8s ease .6s both;
}

.stat { text-align: center; }

.stat-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
}

.stat-label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.85);
    margin-top: .5rem;
}

/* ======================
   SECTIONS
   ====================== */
section { padding: 5rem 0; }

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.section-eyebrow {
    color: var(--gold);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: .8rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ======================
   IMPACT
   ====================== */
.impact { background: var(--white); }

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.impact-card {
    background: linear-gradient(135deg, var(--gold-pale) 0%, var(--cream) 100%);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.25);
    transition: transform .25s, box-shadow .25s;
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.impact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.impact-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}

.impact-label {
    color: var(--text-light);
    margin-top: .4rem;
    font-size: .95rem;
}

/* ======================
   CAMPAIGNS
   ====================== */
.campaigns { background: var(--cream); }

.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.campaign-card {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
}

.campaign-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.campaign-banner {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--gold-pale);
}

.campaign-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.campaign-urgency {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--red);
    color: var(--white);
    padding: .3rem .8rem;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.campaign-urgency.medium { background: var(--gold); color: var(--navy-dark); }

.campaign-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.campaign-title {
    font-size: 1.35rem;
    margin-bottom: .6rem;
}

.campaign-desc {
    color: var(--text-light);
    font-size: .95rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
    flex: 1;
}

.progress-bar {
    background: var(--gray);
    border-radius: 50px;
    height: 10px;
    overflow: hidden;
    margin-bottom: .6rem;
}

.progress-fill {
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    height: 100%;
    border-radius: 50px;
    transition: width 1.5s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: .85rem;
    margin-bottom: 1.2rem;
}

.raised { font-weight: 700; color: var(--navy); }
.goal { color: var(--text-light); }

.campaign-card .btn { width: 100%; justify-content: center; padding: .8rem; font-size: .95rem; }

/* ======================
   GALLERY
   ====================== */
.gallery { background: var(--white); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray);
    min-height: 220px;
    transition: transform .3s;
}

.gallery-item:hover { transform: scale(1.02); }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.gallery-item.large { grid-column: span 8; min-height: 380px; }
.gallery-item.medium { grid-column: span 4; min-height: 380px; }
.gallery-item.small { grid-column: span 4; min-height: 260px; }

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(15, 40, 68, 0.92));
    color: var(--white);
    padding: 2rem 1.2rem 1rem;
    font-size: .95rem;
    font-weight: 500;
}

/* ======================
   ENDORSEMENTS
   ====================== */
.endorsements { background: var(--gold-pale); }

.chief-rabbi {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 0 auto 3rem;
    max-width: 900px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: center;
    border: 2px solid var(--gold);
}

.chief-rabbi img {
    border-radius: 12px;
    box-shadow: var(--shadow);
    width: 100%;
}

.chief-rabbi-text .endorsement-quote {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--navy);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.endorsement-author { font-weight: 700; color: var(--navy); font-size: 1.15rem; }
.endorsement-title { color: var(--gold); font-size: .9rem; letter-spacing: 1.5px; text-transform: uppercase; margin-top: .3rem; }

.endorsements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.endorsement-card {
    background: var(--white);
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--gold);
}

.endorsement-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.endorsement-card .endorsement-quote {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* ======================
   SHULMAN / ACTIVITIES
   ====================== */
.shulman {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.shulman h2 { color: var(--white); margin-bottom: 1rem; }
.shulman p { color: rgba(255,255,255,0.9); max-width: 800px; margin: 0 auto 1rem; font-size: 1.05rem; }
.shulman .partner-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--navy-dark);
    padding: .5rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 1.5rem;
    font-size: .9rem;
}

.activities { background: var(--cream); }

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.activity-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.75rem;
    text-align: center;
    transition: transform .25s;
    border-bottom: 3px solid var(--gold);
}

.activity-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.activity-icon {
    width: 60px;
    height: 60px;
    background: var(--gold-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.6rem;
    margin: 0 auto 1rem;
}

.activity-card h4 { margin-bottom: .5rem; font-size: 1.15rem; }
.activity-card p { color: var(--text-light); font-size: .93rem; }

.activity-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--gold);
    font-weight: 700;
    margin-top: .8rem;
    display: block;
}

/* ======================
   PRAYER PARTNERSHIP SECTION (integrated into homepage)
   ====================== */
.prayer-integrated {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    color: var(--white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.prayer-integrated::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.15), transparent 60%);
    pointer-events: none;
}

.prayer-integrated-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.prayer-integrated-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.prayer-integrated-image img { width: 100%; display: block; }

.prayer-integrated-text .section-eyebrow { color: var(--gold-light); }

.prayer-integrated-text h2 {
    color: var(--white);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 1.2rem;
}

.prayer-integrated-text h2 .accent { color: var(--gold-light); font-style: italic; }

.prayer-integrated-text .prayer-verse {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--gold-light);
    font-size: 1.15rem;
    padding-left: 1rem;
    border-left: 3px solid var(--gold);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.prayer-integrated-text p {
    color: rgba(255,255,255,0.88);
    margin-bottom: 1.2rem;
    line-height: 1.75;
    font-size: 1.02rem;
}

.prayer-features {
    list-style: none;
    margin: 1.5rem 0 2rem;
}

.prayer-features li {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .5rem 0;
    color: rgba(255,255,255,0.9);
    font-size: .98rem;
}

.prayer-features li i { color: var(--gold-light); font-size: 1.1rem; }

/* ======================
   DONATION TIERS
   ====================== */
.donate-tiers {
    background: linear-gradient(135deg, var(--gold-pale) 0%, var(--cream) 100%);
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.tier-card {
    background: var(--white);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 2px solid transparent;
    transition: all .25s;
    cursor: pointer;
}

.tier-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.tier-amount {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--gold);
    font-weight: 700;
}

.tier-title { color: var(--navy); font-weight: 600; margin: .5rem 0; }
.tier-desc { color: var(--text-light); font-size: .9rem; }

/* ======================
   FINAL CTA
   ====================== */
.final-cta {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 5rem 1.5rem;
}

.final-cta h2 { color: var(--white); font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
.final-cta p { max-width: 700px; margin: 0 auto 2rem; color: rgba(255,255,255,0.9); font-size: 1.05rem; }

/* ======================
   FOOTER
   ====================== */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.85);
    padding: 3.5rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto 2.5rem;
    padding: 0 1.5rem;
}

.footer-col h4 {
    color: var(--gold-light);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.footer-col .brand {
    margin-bottom: 1rem;
}

.footer-col .brand-text .brand-name { color: var(--white); }

.footer-col p { color: rgba(255,255,255,0.75); font-size: .92rem; margin-bottom: 1rem; line-height: 1.6; }

.footer-col ul { list-style: none; }

.footer-col ul li {
    padding: .35rem 0;
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    color: rgba(255,255,255,0.75);
    font-size: .92rem;
}

.footer-col ul li i { color: var(--gold); margin-top: 4px; min-width: 16px; }

.footer-col ul li a {
    color: rgba(255,255,255,0.75);
    transition: color .2s;
}

.footer-col ul li a:hover { color: var(--gold-light); }

.org-reg-num { color: var(--gold-light); font-weight: 600; }

.trust-badges {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.trust-badge {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-light);
    padding: .35rem .8rem;
    border-radius: 50px;
    font-size: .75rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.footer-prayer-link {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-prayer-link a {
    color: rgba(255,255,255,0.6);
    font-style: italic;
    font-size: .85rem;
}

.footer-prayer-link a:hover { color: var(--gold-light); }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: .85rem;
    color: rgba(255,255,255,0.6);
}

/* ======================
   ANIMATIONS
   ====================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .7s, transform .7s;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ======================
   RESPONSIVE
   ====================== */
@media (max-width: 900px) {
    .mobile-toggle { display: block; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        display: none;
    }
    .main-nav.open { display: block; }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem;
    }
    .main-nav ul li { width: 100%; border-bottom: 1px solid var(--gray); }
    .main-nav ul li:last-child { border-bottom: none; }
    .main-nav a { display: block; padding: .9rem 0; }

    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; padding: 1.5rem; }
    .stat-value { font-size: 2rem; }

    .chief-rabbi { grid-template-columns: 1fr; padding: 1.75rem; }

    .prayer-integrated-inner { grid-template-columns: 1fr; gap: 2rem; }

    .gallery-item.large,
    .gallery-item.medium,
    .gallery-item.small { grid-column: span 12; min-height: 240px; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    section { padding: 3.5rem 0; }
    .hero { padding: 3rem 1.5rem 4rem; }
    .hero-logo { width: 90px; height: 90px; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-ctas { flex-direction: column; width: 100%; }
    .hero-ctas .btn { width: 100%; justify-content: center; }
}
