/* ===== CSS Variables ===== */
:root {
    --primary-blue: #1e5799;
    --primary-blue-dark: #153d66;
    --primary-blue-light: #4a8bc7;
    --accent-gold: #c9a227;
    --accent-gold-light: #e6c44d;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #e9ecef;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --text-dark: #212529;
    --text-light: #495057;
    
    --font-display: 'Playfair Display', serif;
    --font-body: 'Open Sans', sans-serif;
    --font-hebrew: 'Frank Ruhl Libre', serif;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

/* ===== Reset & Base Styles ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    background: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo-img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
    transition: var(--transition);
}

.navbar.scrolled .nav-logo-img {
    height: 45px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    position: relative;
}

.navbar.scrolled .nav-link {
    color: var(--text-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--primary-blue);
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: var(--border-radius);
}

.nav-cta:hover {
    background: var(--primary-blue-dark);
}

.nav-cta::after {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: var(--text-dark);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 50%, var(--primary-blue-light) 100%);
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="50,0 100,87 0,87" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/><polygon points="50,100 0,13 100,13" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
    background-size: 200px 200px;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    max-width: 800px;
}

.hero-logo {
    width: 180px;
    height: 180px;
    margin-bottom: 30px;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    background: var(--white);
    padding: 10px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle-hebrew {
    font-family: var(--font-hebrew);
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-tagline {
    font-size: 1.3rem;
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
}

.scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { top: 8px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: var(--accent-gold-light);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

.btn.btn-donate {
    background: var(--accent-gold) !important;
    color: #0a2463 !important;
    font-weight: 700;
    border: 2px solid var(--accent-gold);
}

.btn.btn-donate:hover {
    background: #d4af37 !important;
    border-color: #d4af37;
    color: #0a2463 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
}

/* Givebutter Widget Styling */
.donate-btn-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 50px;
}

.donate-btn-wrapper givebutter-widget {
    display: inline-block !important;
}


.btn-large {
    padding: 18px 48px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.8rem;
    color: var(--primary-blue-dark);
    margin-bottom: 15px;
}

.title-decoration {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold));
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== About Section ===== */
.about {
    background: var(--off-white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
    margin-bottom: 50px;
}

.about-text .lead {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.value-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.value-icon .hebrew-text {
    font-family: var(--font-hebrew);
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 700;
}

.value-card h3 {
    font-size: 1.4rem;
    color: var(--primary-blue-dark);
    margin-bottom: 5px;
}

.value-card p {
    color: var(--text-light);
    font-style: italic;
}

/* ===== Services Section ===== */
.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--off-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: var(--primary-blue-light);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    color: var(--primary-blue);
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--primary-blue-dark);
    margin-bottom: 15px;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.service-card li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-size: 0.7rem;
}

/* ===== Activities Section ===== */
.activities {
    background: var(--off-white);
}

.activities-list {
    max-width: 800px;
    margin: 0 auto;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 30px;
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.activity-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.activity-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.activity-content h3 {
    font-size: 1.3rem;
    color: var(--primary-blue-dark);
    margin-bottom: 8px;
}

.activity-content p {
    color: var(--text-light);
}

/* ===== CTA Section ===== */
.cta {
    position: relative;
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
    text-align: center;
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="50,0 100,87 0,87" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/><polygon points="50,100 0,13 100,13" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
    background-size: 150px 150px;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 30px;
}

/* ===== Contact Section ===== */
.contact {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--off-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-blue);
}

.contact-item h3 {
    font-size: 1.1rem;
    color: var(--primary-blue-dark);
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-light);
}

.contact-item a {
    color: var(--primary-blue);
}

.contact-message {
    background: var(--off-white);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-blue);
}

.contact-message p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.contact-message p:last-child {
    margin-bottom: 0;
}

.contact-form {
    background: var(--off-white);
    padding: 40px;
    border-radius: var(--border-radius);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 87, 153, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
    background: var(--white);
    padding: 5px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-gold);
}

.footer-links ul li,
.footer-values ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-values li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .footer-logo {
        margin: 0 auto 15px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu .nav-link {
        color: var(--text-dark);
        font-size: 1.2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle-hebrew {
        font-size: 1.5rem;
    }
    
    .hero-logo {
        width: 140px;
        height: 140px;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .activity-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .activity-icon {
        margin-bottom: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        padding: 12px 24px;
    }
    
    .contact-form {
        padding: 25px;
    }
}
