/* רכיבים: כותרת עליונה, ניווט, גיבור, כרטיסים, כפתורים ופוטר. תלוי ב-tokens.css. */

/* ---------- כותרת עליונה ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(11, 16, 32, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
}

.brand:hover {
    text-decoration: none;
}

.brand__icon {
    font-size: 1.5rem;
}

/* ---------- ניווט ---------- */

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: var(--space-1);
    background: none;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    cursor: pointer;
}

.nav-toggle__bar {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

/* מובייל: הניווט נסתר עד לחיצה על הכפתור */
.site-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: var(--header-height);
    background: rgba(11, 16, 32, 0.97);
    border-bottom: 1px solid var(--border);
}

.site-nav.is-open {
    display: block;
}

.site-nav__list {
    list-style: none;
    margin: 0;
    padding: var(--space-2) var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.site-nav a {
    display: block;
    padding: var(--space-1) var(--space-2);
    border-radius: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.site-nav a:hover {
    color: var(--text);
    text-decoration: none;
    background: var(--surface);
}

.site-nav a.is-active {
    color: var(--text);
    background: var(--surface);
}

/* ---------- גיבור ---------- */

.hero {
    text-align: center;
    padding-block: var(--space-5);
}

.hero__icon {
    font-size: 4.5rem;
    line-height: 1;
}

.hero__title {
    margin-top: var(--space-3);
    font-size: clamp(2.25rem, 7vw, 4rem);
}

.hero__tagline {
    margin: 0;
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 600;
}

.hero__text {
    max-width: 40rem;
    margin: var(--space-2) auto 0;
    color: var(--text-muted);
}

/* ---------- רשת כרטיסים ---------- */

.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: var(--space-3);
    padding-bottom: var(--space-5);
}

.card {
    position: relative;
    padding: var(--space-4) var(--space-3);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.card__icon {
    font-size: 2.5rem;
    line-height: 1;
}

.card__title {
    margin-top: var(--space-2);
    font-size: 1.5rem;
}

.card__text {
    color: var(--text-muted);
    margin: 0;
}

.badge {
    display: inline-block;
    margin-top: var(--space-2);
    padding: 0.2em 0.9em;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--bg);
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 999px;
}

/* ---------- עמוד תוכן ---------- */

.page {
    max-width: 44rem;
    margin-inline: auto;
    padding-block: var(--space-4);
}

.page--not-found {
    text-align: center;
}

.page__icon {
    font-size: 4rem;
    line-height: 1;
}

.page__title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
}

.button {
    display: inline-block;
    margin-top: var(--space-2);
    padding: 0.6em 1.6em;
    font-weight: 700;
    color: var(--bg);
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 999px;
}

.button:hover {
    text-decoration: none;
    filter: brightness(1.1);
}

/* ---------- פוטר ---------- */

.site-footer {
    border-top: 1px solid var(--border);
    padding-block: var(--space-3);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-1);
}

.site-footer p {
    margin: 0;
}

/* ---------- דסקטופ ---------- */

@media (min-width: 48rem) {
    .nav-toggle {
        display: none;
    }

    .site-nav {
        display: block;
        position: static;
        background: none;
        border: 0;
    }

    .site-nav__list {
        flex-direction: row;
        padding: 0;
    }
}

/* ---------- התראות ---------- */

.push {
    text-align: center;
    padding-bottom: var(--space-5);
}

.push__note {
    max-width: 34rem;
    margin: var(--space-1) auto 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}
