/* ===== גאליתה – עיצוב משותף לכל העמודים ===== */

:root {
    --paper: #f3f5ef;      /* רקע: לבן עם נגיעת מרווה */
    --surface: #ffffff;
    --ink: #2b1f18;        /* אספרסו, כמו הדיו של הלוגו */
    --ink-soft: #5e5048;
    --rosemary: #2e4a3b;   /* ירוק רוזמרין */
    --rosemary-deep: #223829;
    --sage: #c9d6c0;
    --sage-soft: #e3eadd;
    --honey: #e0a63a;      /* דבש – הדגשות בלבד */
    --honey-deep: #8a5a0b;
    --kraft: #cdae84;      /* נייר קראפט, כמו השלט */
    --line: rgba(43, 31, 24, 0.14);

    --font-display: 'Karantina', 'Assistant', sans-serif;
    --font-body: 'Assistant', 'Segoe UI', Arial, sans-serif;

    --gutter: 1rem;
    --max: 1080px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    background: var(--paper);
    color: var(--ink);
    direction: rtl;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.display {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: 0.01em;
    text-wrap: balance;
}

.skip-link {
    position: absolute;
    top: -100px;
    right: 1rem;
    background: var(--ink);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0 0 8px 8px;
    z-index: 1000;
}
.skip-link:focus { top: 0; }

/* ===== סרגל עליון ===== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(243, 245, 239, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.topbar .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
}

.brand img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
}

.brand span { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; line-height: 1; }

.topbar nav { display: flex; align-items: center; gap: 0.4rem; }

.topbar nav a:not(.btn) {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
}
.topbar nav a:not(.btn):hover { background: var(--sage-soft); }

@media (max-width: 640px) {
    .topbar nav .hide-sm { display: none; }
}

/* ===== כפתורים ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font: inherit;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color 0.18s ease, transform 0.12s ease;
}
.btn:active { transform: scale(0.97); }

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

.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--sage-soft); }

.btn-sm { min-height: 40px; padding: 0.4rem 1rem; font-size: 0.95rem; }

.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ===== סטטוס פתוח/סגור ===== */
.status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.98rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ink-soft);
    flex-shrink: 0;
}
.status.is-open .status-dot { background: #2f8a4c; box-shadow: 0 0 0 4px rgba(47, 138, 76, 0.18); }

/* ===== כותרות אזורים ===== */
.block { padding: 3.5rem 0; }

.block-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.6rem, 8vw, 3.6rem);
    line-height: 0.95;
    margin-bottom: 1rem;
}

.block-lead { color: var(--ink-soft); max-width: 60ch; margin-bottom: 1.5rem; }

/* ===== פוטר ===== */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.82);
    padding: 2.5rem 0 calc(2rem + env(safe-area-inset-bottom));
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 3rem;
    justify-content: space-between;
    align-items: flex-start;
}

.site-footer .footer-brand {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.site-footer p { font-size: 0.95rem; }

.social { display: flex; gap: 0.6rem; margin-top: 0.4rem; }

.social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: white;
    transition: background-color 0.18s ease;
}
.social a:hover { background: rgba(255, 255, 255, 0.12); }
.social svg { width: 20px; height: 20px; }

.footer-links { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

.copy { width: 100%; font-size: 0.8rem; opacity: 0.55; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
