/* ===== CSS Variables ===== */
:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --secondary: #7C3AED;
    --accent: #10B981;
    --background: #FFFFFF;
    --surface: #F3F4F6;
    --text: #1F2937;
    --text-light: #6B7280;
    --border: #E5E7EB;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    /* גובה הבאנר הקבוע – מתעדכן ב-script.js; ברירת מחדל בטוחה */
    --header-offset: 148px;
    /* שתי שורות הלוגו — אותו גודל פונט (הגדול) */
    --logo-brand-font-size: clamp(1.2rem, 2.4vw, 1.65rem);
}

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

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-padding-top: var(--header-offset);
}

body {
    font-family: 'Heebo', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.7;
    direction: rtl;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

html[lang="ru"] body {
    font-family: 'Roboto', 'Segoe UI', 'Helvetica Neue', sans-serif;
    direction: ltr;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

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

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

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

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

.section {
    padding: 5rem 0;
    scroll-margin-top: var(--header-offset);
}

/* דף חיפוש – מרווח מתחת לבאנר הקבוע */
.search-page {
    padding-top: calc(var(--header-offset) + 1.25rem);
    padding-bottom: 4rem;
}

.search-page h1 {
    margin-bottom: 1rem;
    text-align: center;
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    background: var(--background);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    z-index: 1000;
    overflow-x: visible;
}

/* פס דקורטיבי תחתון – סגול־כחול + דפוס גאומטרי עדין */
.header::after {
    content: '';
    display: block;
    height: 10px;
    width: 100%;
    background:
        radial-gradient(circle at 12% 50%, rgba(255, 255, 255, 0.22) 0%, transparent 35%),
        radial-gradient(circle at 88% 30%, rgba(255, 255, 255, 0.18) 0%, transparent 30%),
        linear-gradient(100deg, #5B21B6 0%, #2563EB 38%, #6366F1 62%, #7C3AED 100%);
    pointer-events: none;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: var(--logo-brand-font-size);
    font-weight: 700;
    color: #000000;
    min-width: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    color: #000000;
    font-size: var(--logo-brand-font-size);
}

.logo a:hover {
    color: #000000;
}

.logo-icon {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.logo-text {
    order: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    color: #000000;
    font-size: var(--logo-brand-font-size) !important;
    font-weight: 700;
    line-height: 1.2;
}

.logo-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    min-width: 0;
    max-width: 100%;
    text-align: right;
    font-size: var(--logo-brand-font-size);
}

html[dir="ltr"] .logo-stack,
html[lang="en"] .logo-stack,
html[lang="hi"] .logo-stack,
html[lang="ru"] .logo-stack {
    text-align: left;
    align-items: flex-start;
}

.logo-dedication {
    order: 1;
    font-size: var(--logo-brand-font-size) !important;
    font-weight: 500;
    line-height: 1.2;
    color: #2b6df2;
    opacity: 1;
    max-width: min(36rem, 96vw);
}

.logo-byline {
    order: 2;
    font-size: calc(var(--logo-brand-font-size) * 0.82) !important;
    font-weight: 500;
    line-height: 1.25;
    color: #1d4ed8;
    opacity: 0.95;
    max-width: min(36rem, 96vw);
}

/* LTR: אותם יחסי גודל כמו בעברית — COMBE למעלה בגדול, שחר הפקות למטה בקטן */
html[dir="ltr"] .header::after,
html[lang="en"] .header::after {
    background:
        radial-gradient(circle at 88% 50%, rgba(255, 255, 255, 0.22) 0%, transparent 35%),
        radial-gradient(circle at 12% 30%, rgba(255, 255, 255, 0.18) 0%, transparent 30%),
        linear-gradient(260deg, #5B21B6 0%, #2563EB 38%, #6366F1 62%, #7C3AED 100%);
}

html[dir="ltr"] .logo,
html[lang="en"] .logo {
    font-size: var(--logo-brand-font-size);
    gap: 0.65rem;
}

html[dir="ltr"] .logo a,
html[lang="en"] .logo a {
    gap: 0.65rem;
    font-size: var(--logo-brand-font-size);
}

html[dir="ltr"] .logo-icon,
html[lang="en"] .logo-icon {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

html[dir="ltr"] .logo,
html[dir="ltr"] .logo a,
html[dir="ltr"] .logo a:hover,
html[lang="en"] .logo,
html[lang="en"] .logo a,
html[lang="en"] .logo a:hover {
    color: #000000;
}

html[dir="ltr"] .logo-text,
html[lang="en"] .logo-text {
    color: #000000;
    font-size: var(--logo-brand-font-size) !important;
    font-weight: 700;
    line-height: 1.2;
}

html[dir="ltr"] .logo-dedication,
html[lang="en"] .logo-dedication {
    font-size: var(--logo-brand-font-size) !important;
    max-width: min(36rem, 96vw);
    color: #2b6df2;
    opacity: 1;
    font-weight: 500;
    line-height: 1.2;
}

html[dir="ltr"] .logo-byline,
html[lang="en"] .logo-byline {
    font-size: calc(var(--logo-brand-font-size) * 0.82) !important;
    max-width: min(36rem, 96vw);
    color: #1d4ed8;
    opacity: 0.95;
    font-weight: 500;
    line-height: 1.25;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Search box in nav */
.nav-search {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-search input[type="search"] {
    width: 160px;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    direction: rtl;
    transition: width 0.2s ease, border-color 0.2s ease;
}

.nav-search input[type="search"]:focus {
    outline: none;
    border-color: var(--primary);
    width: 200px;
}

.nav-search button[type="submit"] {
    padding: 0.4rem 0.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
}

.nav-search button[type="submit"]:hover {
    background: var(--primary-dark);
}

.lang-switcher {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    font-size: 0.875rem;
    flex: 1 1 100%;
    width: 100%;
    justify-content: center;
    order: 5;
    margin-top: 0.15rem;
    padding-top: 0.45rem;
    border-top: 1px solid var(--border);
    max-width: 100%;
}
.lang-switcher a,
.lang-switcher .lang-active {
    white-space: nowrap;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    line-height: 1.3;
}
.lang-switcher a {
    color: var(--text-light);
    background: var(--surface, #f3f4f6);
}
.lang-switcher a:hover {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}
.lang-switcher .lang-active {
    font-weight: 600;
    color: #fff;
    background: var(--primary);
}

@media (max-width: 768px) {
    .nav-search {
        order: 3;
        flex: 1 1 100%;
        min-width: 0;
    }
    .nav-search input[type="search"] {
        width: 100%;
        max-width: none;
        min-width: 0;
    }
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: linear-gradient(135deg, rgba(37, 99, 235, 0.8) 0%, rgba(124, 58, 237, 0.8) 100%), url('images/colorful%20digital%20media%20sy.png');
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    color: white;
    padding: calc(var(--header-offset) + 2rem) 1.5rem 4rem;
    box-sizing: border-box;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-tagline {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--surface);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-dark);
}

/* ===== Intro Section ===== */
.intro {
    background: var(--surface);
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.intro-text p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-list li {
    padding: 0.75rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
}

.feature-list li:last-child {
    border-bottom: none;
}

.placeholder-image {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
}

/* ===== Cards Grid ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.3s ease;
}

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

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 0.75rem;
    color: var(--text);
}

.card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.card-link {
    font-weight: 600;
    color: var(--primary);
}

/* ===== Tools Section ===== */
.tools {
    background: var(--surface);
}

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

.tool-item {
    background: var(--background);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    border-right: 4px solid var(--primary);
}

.tool-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.tool-item p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

/* ===== About Section ===== */
.about {
    text-align: center;
}

.about p {
    max-width: 700px;
    margin: 0 auto 1rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ===== Footer ===== */
.footer {
    background: var(--text);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin: 0.25rem 0;
    opacity: 0.9;
}

.footer-contact {
    margin-top: 0.5rem !important;
}

.footer-contact a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.5);
}

.footer-contact a:hover {
    border-bottom-color: white;
}

.site-version {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    opacity: 0.9;
    letter-spacing: 0.02em;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    :root {
        --logo-brand-font-size: clamp(0.85rem, 3.5vw, 1.05rem);
        --header-offset: 168px;
    }

    .header::after {
        height: 8px;
    }

    .header .nav {
        padding: 0.2rem 0.6rem;
        gap: 0.25rem;
        min-height: 0;
    }

    .logo {
        max-width: calc(100vw - 80px);
        order: 1;
        flex: 1 1 auto;
    }

    .logo-text {
        font-size: var(--logo-brand-font-size) !important;
        font-weight: 700;
        line-height: 1.2;
    }

    .logo-dedication {
        font-size: var(--logo-brand-font-size) !important;
        font-weight: 500;
        max-width: min(34rem, 94vw);
        color: #2b6df2;
    }

    .logo-byline {
        font-size: calc(var(--logo-brand-font-size) * 0.82) !important;
        font-weight: 500;
        max-width: min(34rem, 94vw);
        color: #1d4ed8;
    }

    html[dir="ltr"] .logo-dedication,
    html[lang="en"] .logo-dedication {
        font-size: var(--logo-brand-font-size) !important;
        max-width: min(34rem, 94vw);
        color: #2b6df2;
        opacity: 1;
        font-weight: 500;
    }

    html[dir="ltr"] .logo-byline,
    html[lang="en"] .logo-byline {
        font-size: calc(var(--logo-brand-font-size) * 0.82) !important;
        max-width: min(34rem, 94vw);
        color: #1d4ed8;
        opacity: 0.95;
        font-weight: 500;
    }

    html[dir="ltr"] .logo-text,
    html[lang="en"] .logo-text {
        font-size: var(--logo-brand-font-size) !important;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
    }

    html[dir="ltr"] .header::after,
    html[lang="en"] .header::after {
        height: 8px;
    }

    html[dir="ltr"] .logo-icon,
    html[lang="en"] .logo-icon {
        width: 38px;
        height: 38px;
    }

    /* מובייל: המבורגר פותח תפריט רגיל בזרימה; אחרי בחירה – חוזר למצב המבורגר */
    .mobile-menu-btn {
        display: flex;
        flex-shrink: 0;
        order: 2;
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
        position: relative;
        z-index: 1001;
    }

    .mobile-menu-btn span {
        width: 18px;
        height: 2px;
    }

    .nav-links {
        order: 4;
        display: none;
        flex-direction: column;
        width: 100%;
        flex: 1 1 100%;
        position: static;
        background: var(--background);
        padding: 0.35rem 0;
        gap: 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.08);
        border-radius: var(--radius-sm);
        margin-top: 0.25rem;
        max-height: 70vh;
        overflow-y: auto;
    }

    .lang-switcher {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
        justify-content: center;
        margin-top: 0.25rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        border-bottom: 1px solid var(--border);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links > li > a {
        display: block;
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        white-space: normal;
    }

    .nav-search {
        flex: 1 1 100%;
        min-width: 0;
        max-width: none;
        padding: 0.15rem 0.2rem;
    }

    .nav-search input[type="search"] {
        width: 100%;
        min-width: 0;
        padding: 0.25rem 0.5rem;
        font-size: 0.85rem;
    }

    .nav-search button[type="submit"] {
        padding: 0.2rem 0.35rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: calc(var(--header-offset) + 1.25rem) 1rem 2rem;
        min-height: 100svh;
    }

    .hero h1 {
        font-size: clamp(1.15rem, 4.5vw, 1.5rem);
        line-height: 1.25;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-tagline {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }

    .intro-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .placeholder-image {
        height: 200px;
        font-size: 5rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        min-width: 0;
    }

    .card {
        min-width: 0;
        padding: 1.25rem;
    }

    .card p, .card h3 {
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .tool-item {
        min-width: 0;
    }

    .btn {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
        text-align: center;
        box-sizing: border-box;
    }

    .article-nav .btn {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    .hero .btn-primary {
        width: auto;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 2rem 0;
    }

    .logo-text,
    html[lang="en"] .logo-text {
        font-size: var(--logo-brand-font-size) !important;
    }

    .logo-dedication,
    html[lang="en"] .logo-dedication {
        font-size: var(--logo-brand-font-size) !important;
        font-weight: 500;
    }

    .logo-byline,
    html[lang="en"] .logo-byline {
        font-size: calc(var(--logo-brand-font-size) * 0.82) !important;
        font-weight: 500;
    }

    .hero {
        padding: calc(var(--header-offset) + 1rem) 0.75rem 2.5rem;
    }

    .card-number {
        top: -6px;
        right: -6px;
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
}

/* ===== Skip link + legal footer ===== */
.skip-link {
    position: absolute;
    right: 1rem;
    top: -100px;
    z-index: 10060;
    background: var(--primary);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}
.skip-link:focus,
.skip-link:focus-visible {
    top: 0.75rem;
}
html[dir="ltr"] .skip-link {
    right: auto;
    left: 1rem;
}
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    margin: 0.9rem 0 0.4rem;
}
.footer-legal a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}
.footer-legal a:hover {
    border-bottom-color: #fff;
}

/* ===== Accessibility widget (IS 5568 / WCAG) ===== */
.a11y-fab {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 10050;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: #1d4ed8;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.a11y-fab svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}
.a11y-panel {
    position: fixed;
    left: 16px;
    bottom: 80px;
    z-index: 10051;
    width: min(320px, calc(100vw - 32px));
    max-height: min(70vh, 480px);
    overflow: auto;
    background: #fff;
    color: #1f2937;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    padding: 1rem;
    display: none;
}
.a11y-panel.open {
    display: block;
}
.a11y-panel h2 {
    font-size: 1.1rem;
    margin: 0 0 0.75rem;
}
.a11y-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.a11y-actions button {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 8px;
    padding: 0.55rem 0.4rem;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    min-height: 44px;
}
.a11y-actions button[aria-pressed="true"] {
    background: #1d4ed8;
    color: #fff;
    border-color: #1d4ed8;
}
.a11y-panel .a11y-reset,
.a11y-panel .a11y-statement {
    display: block;
    width: 100%;
    margin-top: 0.65rem;
    text-align: center;
}
.a11y-panel .a11y-reset {
    min-height: 44px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    font: inherit;
    cursor: pointer;
}
.a11y-panel .a11y-statement {
    color: #1d4ed8;
    font-weight: 600;
}

/* A11y modes */
html.a11y-contrast,
html.a11y-contrast body,
html.a11y-contrast .header,
html.a11y-contrast .footer,
html.a11y-contrast .a11y-panel {
    background: #000 !important;
    color: #fff !important;
}
html.a11y-contrast a {
    color: #ffe600 !important;
}
html.a11y-contrast .a11y-fab {
    background: #ffe600;
    color: #000;
}
html.a11y-gray {
    filter: grayscale(1);
}
html.a11y-links a {
    text-decoration: underline !important;
    font-weight: 700 !important;
}
html.a11y-readable,
html.a11y-readable body {
    font-family: Arial, Tahoma, 'Noto Sans Hebrew', sans-serif !important;
    letter-spacing: 0 !important;
    word-spacing: 0.06em;
    line-height: 1.8 !important;
}
html.a11y-stop-anim *,
html.a11y-stop-anim *::before,
html.a11y-stop-anim *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}
html.a11y-font-1 { font-size: 112.5%; }
html.a11y-font-2 { font-size: 125%; }
html.a11y-font-3 { font-size: 137.5%; }
html.a11y-cursor, html.a11y-cursor * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='8' cy='8' r='7' fill='black' stroke='white' stroke-width='2'/%3E%3C/svg%3E") 8 8, auto !important;
}

.legal-page-wrap {
    padding: calc(var(--header-offset) + 1.25rem) 1rem 3rem;
}
.legal-page {
    max-width: 48rem;
    margin: 0 auto;
}
.legal-page h1 {
    margin-bottom: 0.35rem;
}
.legal-updated {
    color: var(--text-light);
    margin-bottom: 1.25rem;
}
.legal-page h2 {
    font-size: 1.2rem;
    margin: 1.6rem 0 0.6rem;
}
.legal-page p,
.legal-page li {
    margin-bottom: 0.7rem;
}
.legal-page ul {
    padding-inline-start: 1.4rem;
}
.legal-notice {
    background: var(--surface);
    padding: 1rem 1.1rem;
    border-radius: var(--radius-sm);
    border-inline-start: 4px solid var(--primary);
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* ===== Dropdown Menu ===== */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--background);
    min-width: 220px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: 0.5rem 0;
    z-index: 1001;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    border-bottom: none !important;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text);
    font-weight: 400;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

.dropdown-menu a:hover {
    background: var(--surface);
    color: var(--primary);
}

.dropdown-menu a::after {
    display: none;
}

/* ===== Card Numbers ===== */
.card {
    position: relative;
}

.card-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
}

/* ===== Mobile Dropdown ===== */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        padding: 0;
        padding-right: 0.5rem;
        padding-bottom: 0.25rem;
        background: var(--surface);
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
        border-bottom: 1px solid var(--border);
    }

    .dropdown-toggle {
        font-size: 0.9rem;
    }

    .card-number {
        top: -8px;
        right: -8px;
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   מובייל — כותרת קומפקטית ו-hero שאינו תופס מסך מלא · 6.9.2026
   מטרה: הבאנר הקבוע חסם ~150px (18% מהמסך) וה-hero תפס 100svh.
   כאן: הבאנר יורד לשורת לוגו + חיפוש, בורר השפות עובר להמבורגר,
   וה-hero מתכווץ לגובה התוכן שלו.
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* 1 · הלוגו — שורה אחת במקום שלוש */
    .logo-byline,
    .logo-dedication,
    html[dir="ltr"] .logo-byline,
    html[dir="ltr"] .logo-dedication,
    html[lang="en"] .logo-byline,
    html[lang="en"] .logo-dedication {
        display: none !important;
    }

    .logo-icon,
    html[dir="ltr"] .logo-icon,
    html[lang="en"] .logo-icon {
        width: 32px;
        height: 32px;
    }

    .header .nav {
        padding: 0.25rem 0.6rem;
        row-gap: 0.2rem;
    }

    .header::after,
    html[dir="ltr"] .header::after,
    html[lang="en"] .header::after {
        height: 5px;
    }

    /* 2 · בורר השפות — נכנס לתוך תפריט ההמבורגר במקום שורה קבועה */
    .lang-switcher {
        display: none;
    }

    .nav-links.active ~ .lang-switcher {
        display: flex;
        margin-top: 0.2rem;
    }

    /* 3 · שורת החיפוש — גם היא נכנסת לתפריט ההמבורגר ולא תופסת שורה קבועה */
    .nav-search {
        display: none;
    }

    .nav-links.active ~ .nav-search {
        display: flex;
        margin-top: 0.2rem;
        padding: 0 0.2rem 0.1rem;
    }

    .nav-search input[type="search"] {
        padding: 0.3rem 0.55rem;
        font-size: 0.9rem;
    }

    /* 4 · ה-hero לפי גובה התוכן, לא לפי גובה המסך */
    .hero {
        min-height: 0;
        padding: calc(var(--header-offset) + 1rem) 1rem 1.75rem;
    }

    .hero-tagline { margin-bottom: 0.5rem; }
    .hero h1      { margin-bottom: 0.75rem; }
    .hero p       { margin-bottom: 1.25rem; }
}

@media (max-width: 480px) {
    .hero {
        min-height: 0;
        padding: calc(var(--header-offset) + 0.9rem) 0.75rem 1.5rem;
    }
}
