/* =========================================
   Telshe Yeshiva Cleveland | Vanilla CSS
   ========================================= */

:root {
    --primary: #4a0e17; /* Deep Burgundy / Wine */
    --primary-light: #6b1825;
    --secondary: #d9ba85; /* Champagne Gold */
    --secondary-hover: #c4a165;
    
    --text-dark: #1c1917; /* Crisp off-black */
    --text-light: #fafaf9;
    --text-muted: #57534e; /* Warm Slate */
    --bg-light: #fcfbf9; /* Antiqued warm cream paper */
    --bg-alt: #f5f3ec; /* Slightly darker cream */
    --white: #ffffff;
    
    --radius: 12px; /* Soft luxury curves */
    --shadow-sm: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 15px 40px -5px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 25px 60px -12px rgba(0, 0, 0, 0.15);
    
    --transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1); /* Apple-like buttery ease */
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Playfair Display', 'Georgia', serif;
    color: var(--text-dark);
    line-height: 1.7;
}

body {
    background-color: var(--bg-alt);
    overflow-x: hidden;
}

h1, h2, h3, h4, .sans-font {
    font-family: 'Inter', system-ui, sans-serif;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

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

.section { padding: 5rem 0; }
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background-color: var(--secondary);
    color: var(--text-dark); /* Crisp off-black for max legibility on gold */
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}



/* Navbar */
.navbar {
    position: fixed;
    top: 55px; /* Sits below the Purim banner */
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 0.75rem 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 50px;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper { display: flex; align-items: center; text-decoration: none; gap: 1rem; color: var(--primary);
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-img { height: 40px; width: auto; object-fit: contain; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--secondary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    margin-top: 0;
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    background-image: url('../img/telshe-campus.png');
    background-size: cover;
    background-position: center 80%; /* Centers on the building, hiding the sky text */
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 35, 66, 0.7), rgba(10, 35, 66, 0.9));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 5rem 4rem;
    margin-top: 120px; /* Push down past the floating nav */
    background: rgba(255, 255, 255, 0.02); /* Very subtle glass effect */
    backdrop-filter: blur(1.5px); /* Ultra subtle blur */
    -webkit-backdrop-filter: blur(1.5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
}

/* Grids & Cards */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 2rem; }
.align-center { align-items: center; }

.card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid #e5e7eb;
    border-top: 4px solid var(--secondary);
}

.card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}

.card p {
    font-family: 'Inter', sans-serif;
    color: var(--text-muted);
}

/* Donate Iframe */
.donate-iframe-wrapper {
    width: 100%;
    min-height: 1100px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--white);
    margin-top: 2rem;
}
.donate-iframe-wrapper iframe {
    width: 100%;
    height: 1100px;
    border: none;
}

/* Footer */
.footer {
    background: #111827; /* Rich, dark slate/charcoal */
    color: #9ca3af; /* Soft slate text */
    padding: 5rem 0 2rem;
    font-family: 'Inter', sans-serif;
    border-top: 4px solid var(--primary); /* A burgundy accent line to tie it to the brand */
}

.footer h4 { color: var(--white); margin-bottom: 1.5rem; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Custom Built By Button (From Khal Yereim) */
.built-by-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.6rem 1.5rem;
    width: 100%;
    max-width: 300px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}
.built-by-btn:hover {
    background-color: var(--white);
    border-color: var(--white);
    box-shadow: 0 10px 30px rgba(255,255,255,0.2);
}
.built-by-btn:active { transform: scale(0.97); }
.built-by-bg {
    position: absolute;
    inset: 0;
    border-radius: 50px;
    opacity: 0;
    background: linear-gradient(to right, transparent, rgba(217, 186, 133, 0.1), transparent);
    transition: opacity 0.5s ease;
}
.built-by-btn:hover .built-by-bg { opacity: 1; }
.built-by-label {
    position: relative;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
    transition: color 0.4s ease;
}
.built-by-btn:hover .built-by-label { color: var(--text-muted); }
.built-by-name-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 0.75rem;
}
.built-by-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--white);
    font-size: 1rem;
    transition: color 0.4s ease;
}
.built-by-btn:hover .built-by-name { color: var(--primary); }
.built-by-icon {
    width: 14px;
    height: 14px;
    color: var(--secondary);
    opacity: 0.7;
    transition: all 0.4s ease;
}
.built-by-btn:hover .built-by-icon {
    opacity: 1;
    transform: translate(2px, -2px);
    color: var(--primary);
}

/* Animations */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.slide-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.slide-right { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.slide-left { opacity: 0; transform: translateX(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.visible { opacity: 1; transform: translate(0); }

/* Mobile Nav Drawer */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        left: auto;
        width: 320px;
        max-width: 85vw;
        height: 100dvh;
        background: #111827;
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 0;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        display: flex;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
    }
    .nav-links.active { right: 0; }
    
    .nav-links li { width: 100%; margin-bottom: 0.5rem; }
    
    .nav-links a {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 1rem 0;
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--white);
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .nav-links a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}
    
    .mobile-toggle { display: flex; align-items: center; justify-content: center; position: relative; z-index: 1001; width: 44px; height: 44px; border-radius: 8px; color: var(--primary);
    }
    
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background: rgba(15, 23, 42, 0.8);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(1.5px);
    }
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}
/* Modernization Upgrades */
.section-title {
    font-size: 2.75rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 3.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    letter-spacing: -0.5px;
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: var(--secondary);
    margin: 1.5rem auto 0;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary);
    margin: 1rem auto 0;
}
.rebbi-card {
    position: relative;
    z-index: 1;
    background: var(--white);
    border-radius: var(--radius);
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(197, 166, 101, 0.2);
    border: 1px solid rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}
.rebbi-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}
.rebbi-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}
.rebbi-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--secondary);
}
.avatar-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
    border: 2px solid var(--secondary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.grade-badge {
    background: rgba(212, 175, 55, 0.1);
    color: #9a7b20;
    padding: 0.35rem 1.25rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.profile-header {
    background: radial-gradient(circle at center, rgba(10, 35, 66, 0.85) 0%, rgba(10, 35, 66, 0.98) 100%), url('../img/telshe-campus.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 12rem 0 6rem;
    text-align: center;
}
.profile-content {
    background: var(--white);
    border-radius: 16px;
    padding: 4rem;
    box-shadow: var(--shadow-sm);
    margin-top: -4rem;
    position: relative;
    z-index: 10;
    margin-bottom: 4rem;
}
.torah-quote {
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    text-align: center;
    font-style: italic;
    margin: 3rem 0;
    padding: 2.5rem;
    border-left: 4px solid var(--secondary);
    background: rgba(212, 175, 55, 0.05);
    border-radius: 0 12px 12px 0;
}
.pillar-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e5e7eb;
    
    transition: var(--transition);
}
.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}
.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}
.pillar-icon {
    width: 64px;
    height: 64px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--secondary-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}
@media (max-width: 768px) {
    .profile-content {
        padding: 2rem;
    }
}



/* Memorial Sponsor Cards */
.memorial-card {
    background: transparent url('../img/sponsor-card.png') no-repeat center/100% 100%;
    border-radius: 52px 0;
    padding: 2.5rem;
    height: 100%;
    min-height: 440px;
    color: #ffffff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.memorial-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.memorial-amount {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2rem;
    color: #ffffff;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.memorial-amount sub {
    font-size: 1.25rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    margin-left: 0.25rem;
}

.memorial-card p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.7;
    flex-grow: 1;
}

.memorial-card .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.memorial-card .btn:hover {
    background-color: #ffffff;
    color: #654536;
}





.bg-light { background-color: #f1f5f9; }




/* Purim Banner */
.purim-banner { background: var(--primary); color: var(--secondary); text-align: center; padding: 0.6rem 1rem; font-family: 'Inter', sans-serif; font-size: 0.95rem; position: fixed; top: 0; left: 0; right: 0; z-index: 1050; font-weight: 700; letter-spacing: 0.5px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.purim-banner a { color: var(--secondary); text-decoration: none; }
.purim-banner a:hover { text-decoration: underline; }








/* Navbar Gold Donate Button */
.nav-links .btn-donate { background-color: var(--secondary); color: var(--text-dark); border-color: transparent; }
.nav-links .btn-donate:hover { background-color: var(--primary); color: var(--white); border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.nav-links .btn-donate::after { display: none; }


.nav-links a.btn::after { display: none !important; }






/* Footer Redesign Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.25fr;
    gap: 3rem;
    align-items: flex-start;
}
.footer-nav a:hover, .footer-contact a:hover {
    color: var(--secondary) !important;
}
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-brand a {
        align-items: center !important;
        text-align: center;
        margin-bottom: 1rem !important;
    }
    .footer-contact p {
        justify-content: center;
        text-align: left;
    }
}


/* Footer Redesign Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.25fr;
    gap: 3rem;
    align-items: flex-start;
}
.footer-nav a:hover, .footer-contact a:hover {
    color: var(--secondary) !important;
}
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-brand a {
        align-items: center !important;
        text-align: center;
        margin-bottom: 1rem !important;
    }
    .footer-contact p {
        justify-content: center;
        text-align: left;
    }
}




