/* ============================================================================
   כיתות הכוננות – תחנת חיפה · עמוד גיוס
   עיצוב מבצעי, RTL, רספונסיבי
   ========================================================================== */

:root {
    --navy-900: #0d1c33;
    --navy-800: #16294a;
    --navy-700: #1f3a5f;
    --navy-600: #2b5286;
    --blue:     #3b7dd8;
    --blue-dk:  #2f6fb0;
    --gold:     #d4af37;
    --gold-lt:  #e9c46a;
    --bg:       #eef2f8;
    --bg-card:  #ffffff;
    --text:     #1f2a3a;
    --muted:    #5b6b82;
    --line:     #d7dee8;
    --ok:       #2e9e5b;
    --err:      #d93a3a;
    --radius:   14px;
    --shadow:   0 10px 30px rgba(15, 32, 56, .12);
    --shadow-sm:0 4px 14px rgba(15, 32, 56, .08);
    --container: 1120px;
    --ff: "Segoe UI", "Assistant", "Rubik", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--ff);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
a { color: var(--blue-dk); text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 22px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 34px; font-size: 17px; }
.btn-block { width: 100%; }

.btn-cta {
    background: linear-gradient(135deg, var(--gold-lt), var(--gold));
    color: #2a2103;
    box-shadow: 0 8px 22px rgba(212, 175, 55, .35);
}
.btn-cta:hover { box-shadow: 0 12px 28px rgba(212, 175, 55, .5); transform: translateY(-2px); }

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .55);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(13, 28, 51, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand-logo {
    height: 50px; width: 50px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .28);
}
.brand-emblem { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 18px; }
.brand-text small { font-size: 12px; color: var(--gold-lt); }
.header-cta { padding: 9px 20px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: #fff;
    background:
        radial-gradient(1200px 500px at 80% -10%, rgba(59, 125, 216, .35), transparent 60%),
        linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 70%);
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 22px);
    pointer-events: none;
}
.hero::after {
    /* פס זהב מבצעי בתחתית */
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--gold), var(--gold-lt), var(--gold));
}
.hero-inner {
    position: relative;
    padding: 76px 22px 96px;
    text-align: center;
}
.hero-badge {
    display: inline-block;
    background: rgba(212, 175, 55, .15);
    border: 1px solid rgba(233, 196, 106, .5);
    color: var(--gold-lt);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .5px;
    padding: 7px 18px;
    border-radius: 999px;
    margin-bottom: 22px;
}
.hero-title {
    font-size: clamp(34px, 6vw, 58px);
    font-weight: 800;
    margin-bottom: 18px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .35);
}
.hero-title span { color: var(--gold-lt); }
.hero-sub {
    max-width: 720px;
    margin: 0 auto 30px;
    font-size: clamp(16px, 2.2vw, 19px);
    color: #d6e0ee;
}
.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 46px;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0; padding: 0;
}
.hero-stats li {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius);
    padding: 16px 26px;
    min-width: 130px;
}
.hero-stats strong { display: block; font-size: 26px; color: var(--gold-lt); }
.hero-stats span { font-size: 14px; color: #c4d0e0; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: #fff; }
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; }
.eyebrow {
    display: inline-block;
    color: var(--blue-dk);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.eyebrow.light { color: var(--gold-lt); }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); color: var(--navy-800); }
.section-lead { color: var(--muted); font-size: 18px; max-width: 680px; }
.section-head.center .section-lead { margin-inline: auto; }

.prose { max-width: 820px; font-size: 17.5px; color: #33425a; }
.prose p { margin-bottom: 1.2em; }

/* ---------- Cards ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 22px;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .2s ease;
}
.section-alt .card { background: #f7f9fc; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-ico {
    font-size: 34px;
    width: 64px; height: 64px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #eaf1fb, #dde9fa);
    border-radius: 16px;
    margin-bottom: 16px;
}
.card h3 { font-size: 19px; color: var(--navy-700); }
.card p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Neighborhoods ---------- */
.hoods {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}
.hood {
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 10px;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .2s ease;
}
.hood:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.hood img { width: 92px; height: auto; margin: 0 auto 10px; }
.hood span { font-weight: 700; color: var(--navy-700); font-size: 15px; }

/* ---------- Join / Form ---------- */
.section-join {
    background:
        radial-gradient(900px 400px at 10% 0%, rgba(59, 125, 216, .25), transparent 60%),
        linear-gradient(160deg, var(--navy-700), var(--navy-900));
    color: #fff;
}
.section-join .section-head h2 { color: #fff; }
.section-join .section-lead { color: #cdd9ea; }

.rec-form {
    background: #fff;
    color: var(--text);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
    padding: 34px;
    max-width: 880px;
    margin: 0 auto;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
}
.field { display: flex; flex-direction: column; }
.field-full { grid-column: 1 / -1; }
.field label {
    font-weight: 700;
    font-size: 14.5px;
    margin-bottom: 6px;
    color: var(--navy-700);
}
.field .req { color: var(--err); font-style: normal; }
.field input,
.field select,
.field textarea {
    font-family: inherit;
    font-size: 15.5px;
    color: var(--text);
    padding: 11px 13px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: #fbfcfe;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    width: 100%;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 125, 216, .15);
}
.field .help { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.field .char-count { font-size: 12.5px; color: var(--muted); margin-top: 5px; text-align: left; }
.field .char-count .cc-now { font-weight: 700; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
    border-color: var(--err);
    background: #fff6f6;
}
.err-msg { color: var(--err); font-size: 13px; margin-top: 5px; font-weight: 600; }

/* checkbox */
.field .check {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    background: #f4f7fb;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 13px 15px;
}
.field .check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--blue-dk); }
.field .check span { font-size: 14.5px; line-height: 1.45; }

/* radio (כן/לא) */
.field-legend {
    display: block;
    font-weight: 700;
    font-size: 14.5px;
    margin-bottom: 8px;
    color: var(--navy-700);
}
.radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.radio {
    flex: 1 1 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    background: #f4f7fb;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 11px 16px;
    font-weight: 600;
    font-size: 15px;
    transition: border-color .15s ease, background .15s ease;
}
.radio input { width: 18px; height: 18px; accent-color: var(--blue-dk); cursor: pointer; }
.radio:hover { border-color: var(--blue); }
.radio:has(input:checked) { border-color: var(--blue); background: #e8f1fd; }
.field.has-error .radio { border-color: var(--err); }

.form-actions { margin-top: 26px; text-align: center; }
.form-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* honeypot — מוסתר ממשתמשים אמיתיים בלי ליצור גלילה אופקית */
.hp-field {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ---------- Alerts ---------- */
.alert {
    max-width: 880px;
    margin: 0 auto 18px;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 600;
}
.alert-error { background: #fde8e8; color: #9b1c1c; border: 1px solid #f5b5b5; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-900);
    color: #aebbcd;
    padding: 34px 0;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.footer-emblem { height: 52px; width: auto; }
.footer-logo {
    height: 58px; width: 58px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .28);
}
.footer-meta { text-align: left; font-size: 13.5px; }
.footer-meta p { margin: 0; }

/* ---------- Thank-you page ---------- */
.page-thanks {
    background:
        radial-gradient(900px 500px at 80% -10%, rgba(59, 125, 216, .3), transparent 60%),
        linear-gradient(160deg, var(--navy-800), var(--navy-900));
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px 18px;
}
.thanks-wrap { width: 100%; max-width: 560px; text-align: center; }
.thanks-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 44px 34px;
}
.thanks-check {
    width: 84px; height: 84px;
    margin: 0 auto 18px;
    display: grid; place-items: center;
    font-size: 46px; color: #fff; font-weight: 800;
    background: linear-gradient(135deg, #36c06f, var(--ok));
    border-radius: 50%;
    box-shadow: 0 10px 26px rgba(46, 158, 91, .45);
}
.thanks-card h1 { font-size: 30px; color: var(--navy-800); }
.thanks-lead { color: var(--muted); font-size: 17px; }
.thanks-next {
    text-align: right;
    background: #f4f7fb;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 22px;
    margin: 22px 0 26px;
}
.thanks-next h2 { font-size: 17px; color: var(--navy-700); margin-bottom: 8px; }
.thanks-next ul { margin: 0; padding-inline-start: 20px; color: #45526a; font-size: 15px; }
.thanks-next li { margin-bottom: 6px; }
.thanks-foot { color: #93a3ba; font-size: 13px; margin-top: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .hoods { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
    .header-cta { display: none; }
    .hero-inner { padding: 54px 20px 70px; }
    .section { padding: 54px 0; }
    .form-grid { grid-template-columns: 1fr; }
    .field-half { grid-column: 1 / -1; }
    .rec-form { padding: 22px 18px; }
    .cards { grid-template-columns: 1fr; }
    .hoods { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-meta { text-align: center; }
}
