:root {
    /* פלטת צבעים טבעית, עמוקה ואלגנטית */
    --bg-color: #fcfbf9;
    --card-bg: #ffffff;
    --text-main: #2c3531;
    --text-muted: #5c6560;
    
    --primary-olive: #3d4a3e;
    --accent-sage: #819a86;
    --accent-terracotta: #b86b53;
    --accent-gold: #c2a675;
    
    --whatsapp-green: #25d366;
    --whatsapp-hover: #1eaa4f;
    --border-color: #e8e4de;
}

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

body {
    font-family: 'Rubik', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
}

h1, h2, h3 {
    font-family: 'Frank Ruhl Libre', serif;
    font-weight: 700;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 235px;
}

/* כותרת עליונה - מראה יוקרתי ונקי */
header {
    background-color: var(--primary-olive);
    color: #ffffff;
    padding: 2.5rem 1rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

header h1 {
    font-size: 2.6rem;
    letter-spacing: 1px;
    color: #f7f5f0;
}

header p {
    font-size: 1.15rem;
    color: var(--accent-gold);
    margin-top: 0.3rem;
    font-weight: 300;
}

nav {
    margin-top: 1.2rem;
}

nav a {
    color: #e2e8e4;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 400;
    padding: 6px 14px;
    border-radius: 4px;
    transition: all 0.25s ease;
    display: inline-block;
}

nav a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

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

section {
    margin-bottom: 4.5rem;
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--primary-olive);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--accent-gold);
    margin: 0.6rem auto 0;
}

/* אודות - אלגנטי עם מסגרת עדינה */
.about-card {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
    font-size: 1.1rem;
    color: var(--text-main);
    max-width: 950px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
    align-items: center;
    border: 1px solid var(--border-color);
}

.about-img-container {
    width: 100%;
    height: auto;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.about-img-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

.about-img-container:hover img {
    transform: scale(1.03);
}

.about-text p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* גלריה רב-תחומית - כרטיסים מעודנים */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.8rem;
}

.category-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.09);
    border-color: var(--accent-sage);
}

.category-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-card-info {
    padding: 1.4rem 1rem;
    text-align: center;
    background-color: var(--card-bg);
}

.category-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 4px;
    color: var(--primary-olive);
    background-color: #f0f4f1;
    margin-bottom: 8px;
}

.category-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-olive);
}

.category-card-count {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* תערוכות */
.exhibitions-list {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.8rem;
}

.exhibition-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.exhibition-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: var(--accent-sage);
}

.exhibition-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.exhibition-card-content {
    padding: 1.3rem;
    text-align: center;
}

.exhibition-card-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--primary-olive);
}

.exhibition-card-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* תיאום ביקור - רקע מעודן בהשראת טבע */
.cta-section {
    background-color: #f3f5f3;
    padding: 3.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    border: 1px solid #dbe3dc;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary-olive);
}

.cta-section p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--whatsapp-green);
    color: white;
    padding: 1rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
    transition: all 0.25s ease;
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

/* Modal / Popups */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.modal-content {
    background: var(--bg-color);
    max-width: 900px;
    margin: 2rem auto;
    border-radius: 10px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--accent-terracotta);
}

.modal-title {
    font-size: 1.9rem;
    margin-bottom: 1.8rem;
    color: var(--primary-olive);
    text-align: center;
}

.modal-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
}

.modal-gallery-item {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}

.modal-gallery-item:hover {
    transform: translateY(-3px);
}

.modal-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.modal-gallery-item p {
    padding: 0.75rem;
    font-size: 0.88rem;
    text-align: center;
    color: var(--text-muted);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-close:hover {
    color: #ccc;
}

#lightbox-img {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 5px;
    z-index: 1001;
}

.lightbox-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

footer {
    text-align: center;
    padding: 2.5rem;
    background-color: var(--primary-olive);
    color: #d8e0da;
    font-size: 0.95rem;
    margin-top: 2rem;
}

@media (max-width: 850px) {
    .about-card {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column-reverse;
    }
    .about-img-container {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    header h1 { font-size: 2.1rem; }
    .about-card { 
        padding: 1.8rem; 
        gap: 1.5rem;
        flex-direction: column-reverse;
    }
    .about-img-container {
        width: 100%;
        height: auto;
    }
    .modal-content { padding: 1.5rem; }
    nav a { margin: 3px; font-size: 0.9rem; }
}
