/* ==========================================================================
   1. VARIABLES & GLOBAL RESETS
   ========================================================================== */
:root {
    --bg-color: #080808;
    --card-bg: rgba(20, 20, 20, 0.85);
    --gold-accent: #d4af37;
    --gold-hover: #f1c40f;
    --text-light: #f5f5f5;
    --text-muted: #b3b3b3;
    --border-color: rgba(212, 175, 55, 0.25);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-light);
    font-family: 'Heebo', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    /* display: flex; */
    /* flex-direction: column; */
    /* justify-content: space-between; */
    position: relative;
    line-height: 1.7;
}

/* Atmospheric Background Overlay */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at center, rgba(8, 8, 8, 0.82), rgba(8, 8, 8, 0.98)),
        url('https://images.unsplash.com/photo-1514933651103-005eec06c04b?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat;
    z-index: -1;
}

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

/* ==========================================================================
   2. HEADER & LOGO
   ========================================================================== */
header {
    text-align: center;
    padding: 2rem 0 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.main-logo {
    max-width: 700px;
    width: 100%;
    height: auto !important; 
    object-fit: contain;     
    display: inline-block;
    filter: invert(1) brightness(1.1);
    padding-top: 0.5rem;
}

/* Brand Hebrew Typography Option */
.hebrew-title {
    font-family: 'David Libre', 'David', serif;
    font-size: 34px;
}

/* ==========================================================================
   3. NAVIGATION BAR
   ========================================================================== */
.navbar {
    z-index: 1000;
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 0;
}

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

/* Keep the shared navbar in the site's standard orientation on every page. */
.navbar,
.nav-container {
    direction: rtl;
}

/* Preserve the written order inside each bilingual navigation label. */
.nav-links a,
.nav-link {
    direction: rtl;
    unicode-bidi: isolate;
}

.nav-logo {
    height: 35px;
    width: auto;
    display: block;
    filter: none;
}

.brand-title-nav,
.hebrew-title-nav {
    color:#000000;
    font-family: 'David Libre', 'David', serif; 
    font-size: 19.5px;
}


.address-he-nav,
.address-en-nav,
.phone-number-nav {
    color:#000000;
    font-family: 'David Libre', 'David', serif; 
}

.address-box-nav {
background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid #3c4043;
    padding: 14px;
    border-radius: 14px;
    margin-bottom: 18px;
    line-height: 1.5;

}


.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a,
.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    gap: 6px;
    align-items: center;
}

.nav-links a:hover,
.nav-links a.active,
.nav-link:hover,
.nav-link.active {
    color: var(--gold-accent);
}

.nav-links a.active {
    font-weight: 700;
}

/* Base styles for the navbar container */
#navbar-placeholder {
    width: 100%;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Styles applied dynamically by JS when the user scrolls */
#navbar-placeholder.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   4. LANGUAGE SWITCHER TABS & TOGGLES
   ========================================================================== */
.lang-switch-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0 2rem;
}

.lang-switch {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 4px;
    display: inline-flex;
    gap: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    direction: ltr;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.6rem 0;
    width: 100px;
    text-align: center;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.lang-btn.active {
    background: var(--gold-accent);
    color: #080808;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.lang-btn:hover:not(.active) {
    color: var(--text-light);
}

/* Visibility State Controls */
.content-he { display: block; }
.content-en { display: none; }

body.show-en .content-he { display: none; }
body.show-en .content-en { display: block; }

/* ==========================================================================
   5. HERO SECTION & BADGES
   ========================================================================== */
.hero {
    text-align: center;
    margin: 0.5rem 0 3rem;
}

.badge-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.2rem;
}

.badge {
    border: 0;
    color: var(--gold-accent);
    padding: 0.3rem 1rem;
    font-size: 1.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 50px;
    background: rgba(212, 175, 55, 0.08);
}

.hero-titles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 0.5rem;
}

.title-block h1 {
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.title-block.en h1 {
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}

.title-block p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ==========================================================================
   6. GALLERY SECTION
   ========================================================================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 3.5rem;
}

.gallery-card {
    position: relative;
    height: 260px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.06);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.2rem;
    text-align: center;
}

.card-overlay .he-label {
    font-size: 1.1rem;
    color: var(--gold-accent);
    font-weight: 500;
}

.card-overlay .en-label {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    color: var(--gold-accent);
    letter-spacing: 1px;
}

/* ==========================================================================
   7. INFO CARDS & INTERACTIVE ELEMENTS
   ========================================================================== */
.card,
.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

.card-nav 
{
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
} 

.card,
.card-nav {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.info-item-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    padding: 1.8rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.info-item-card:hover:not(.static-card) {
    transform: translateY(-5px);
    background: rgba(212, 175, 55, 0.06);
    border-color: var(--gold-accent);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.12);
}

.info-icon-badge {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold-accent);
    color: var(--gold-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.info-item-card:hover:not(.static-card) .info-icon-badge {
    transform: scale(1.1);
    background: var(--gold-accent);
    color: #000;
}

.static-card .info-icon-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
}

.info-item-card h3 {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 600;
}

.info-details {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.action-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item-card:hover .action-link-btn {
    text-decoration: underline;
}

/* ==========================================================================
   8. CONTACT, ADDRESS & MAP COMPONENTS
   ========================================================================== */
.contact-box {
    margin-bottom: 18px;
}

.contact-icons,
.contact-btn-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 0.5rem;
    margin-bottom: 8px;
    width: 100%;
}

.contact-btn,
.contact-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    padding: 0;
}

.contact-btn:hover,
.contact-icon-btn:hover {
    transform: scale(1.05);
}

.contact-icon-btn:active {
    transform: scale(0.95);
}

.phone-btn {
    background-color: #007bff;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.whatsapp-btn {
    background-color: #25d366;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.phone-number {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-light);
    direction: ltr;
    unicode-bidi: embed;
}

.phone-number a {
    color: inherit;
    text-decoration: none;
}

.address-box {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: 14px;
    margin-bottom: 18px;
    line-height: 1.5;
}

.address-he {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-light);
}

.address-en {
    font-size: 14px;
    color: var(--text-muted);
    direction: ltr;
    unicode-bidi: embed;
}

.map-container {
    width: 100%;
    height: 280px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.nav-button:active {
    transform: scale(0.98);
}

.waze {
    background-color: #33ccff;
    color: #000000;
    box-shadow: 0 4px 14px rgba(51, 204, 255, 0.35);
}

.google {
    background-color: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-text {
    display: flex;
    gap: 8px;
    align-items: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--gold-accent);
}

/* ==========================================================================
   9. STORY SECTION
   ========================================================================== */
.story-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    margin-bottom: 3rem;
    position: relative;
}

.story-header {
    text-align: center;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    padding-bottom: 1.5rem;
}

.story-badge {
    display: inline-block;
    border: 1px solid var(--gold-accent);
    color: var(--gold-accent);
    padding: 0.3rem 1.2rem;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 50px;
    background: rgba(212, 175, 55, 0.08);
    margin-bottom: 1rem;
}

.story-title {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.3;
}

.story-title.en-title {
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}

.story-subtitle {
    color: var(--gold-accent);
    font-size: 1.15rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.story-body {
    max-width: 850px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #e0e0e0;
}

.story-body p {
    margin-bottom: 1.4rem;
    text-align: justify;
}

.story-quote {
    background: rgba(212, 175, 55, 0.06);
    border-right: 3px solid var(--gold-accent);
    padding: 1.2rem 1.5rem;
    margin: 1.8rem 0;
    border-radius: 4px 0 0 4px;
    font-size: 1.2rem;
    color: var(--gold-accent);
    font-weight: 500;
    text-align: center;
}

[dir="ltr"] .story-quote {
    border-right: none;
    border-left: 3px solid var(--gold-accent);
    border-radius: 0 4px 4px 0;
}

.highlight-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.8rem;
    margin: 2rem 0;
    text-align: center;
}

.highlight-box h3 {
    color: var(--gold-accent);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    margin: 2rem 0;
}

.team-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 10px;
    padding: 1.2rem;
    text-align: center;
}

.team-card strong {
    color: var(--gold-accent);
    display: block;
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.sign-off {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold-accent);
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
footer,
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 3rem;
}

.footer {
    direction: ltr;
    margin-top: 18px;
    font-size: 13px;
}

/* ==========================================================================
   11. MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
    .hero-titles {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .title-block h1 {
        font-size: 1.8rem;
    }

    .story-section {
        padding: 2rem 1.2rem;
    }

    .story-title {
        font-size: 1.8rem;
    }

    .story-body {
        font-size: 1rem;
    }

    .story-body p {
        text-align: right;
    }

    [dir="ltr"] .story-body p {
        text-align: left;
    }
}

@media (max-width: 600px) {
    .nav-links {
        gap: 0.8rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }
}

