/* ==========================================================================
   הישיבה הטכנולוגית — תורת ישראל | גיליון עיצוב עצמאי
   עותק מפושט של שפת העיצוב של אתר הרשת (אותם צבעים, פונטים ורכיבים).
   אתר סטטי לגמרי — ללא PHP.
   ========================================================================== */

:root {
    --primary-color: #3a8ba3;
    --secondary-color: #c9a961;
    --dark-blue: #14243c;
    --dark-bg: #1c2c46;
    --dark-card: #243654;
    --dark-elevated: #2c405f;
    --dark-lighter: #37496b;
    --gold: #e7c56a;
    --gold-deep: #c9a961;
    --text-dark: #f1f4f9;
    --text-light: #c4cdd9;
    --text-muted: #8c99aa;
    --white: #ffffff;
    --cream: #faf8f3;
    --light-blue: #e8f4f8;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Heebo', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--dark-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Frank Ruhl Libre', serif;
    font-weight: 700;
    line-height: 1.3;
}

img { max-width: 100%; }

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header / Nav ===== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(10, 22, 52, 0.92) 0%, rgba(15, 32, 66, 0.92) 100%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    border-bottom: 1px solid rgba(201, 169, 97, 0.35);
    z-index: 1000;
    transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.main-header.scrolled {
    background: linear-gradient(135deg, rgba(8, 18, 44, 0.95) 0%, rgba(13, 28, 58, 0.95) 100%);
    border-bottom-color: rgba(201, 169, 97, 0.55);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.navbar { padding: 10px 0; transition: padding 0.35s ease; }
.main-header.scrolled .navbar { padding: 5px 0; }

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    background: rgba(255, 253, 247, 0.92);
    border-radius: 10px;
    padding: 5px 8px;
    box-shadow: inset 0 0 0 1px rgba(201, 169, 97, 0.25);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo:hover { opacity: 0.95; transform: scale(1.02); }
.logo a { display: inline-flex; align-items: center; }

.logo img {
    height: 70px;
    width: auto;
    display: block;
    transition: height 0.35s ease;
}

.main-header.scrolled .logo img { height: 56px; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    font-size: 15.5px;
    transition: color 0.3s ease;
    position: relative;
    padding: 6px 2px;
    letter-spacing: 0.2px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after { width: 100%; }

.nav-menu a:hover,
.nav-menu a.active { color: var(--gold); }

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gold);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse 60% 55% at 50% 30%, rgba(63, 151, 176, 0.18) 0%, rgba(63, 151, 176, 0) 70%),
        radial-gradient(ellipse 50% 42% at 85% 82%, rgba(231, 197, 106, 0.14) 0%, rgba(231, 197, 106, 0) 70%),
        linear-gradient(180deg, #24344f 0%, var(--dark-bg) 100%);
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 130px;
    background: linear-gradient(180deg, rgba(28, 44, 70, 0) 0%, var(--dark-bg) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 14px;
    letter-spacing: 1px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-title {
    font-family: 'Rubik', sans-serif;
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
    letter-spacing: -0.3px;
    line-height: 1.25;
    text-shadow: 0 2px 20px rgba(229, 193, 88, 0.3);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0%   { text-shadow: 0 2px 20px rgba(229, 193, 88, 0.3); }
    100% { text-shadow: 0 4px 30px rgba(229, 193, 88, 0.5), 0 0 40px rgba(229, 193, 88, 0.2); }
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 24px auto;
    animation: fadeInUp 0.8s ease 0.55s both;
}

.hero-divider::before,
.hero-divider::after {
    content: '';
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.hero-divider::after { background: linear-gradient(90deg, var(--gold), transparent); }

.hero-divider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.2);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    max-width: 600px;
    margin: 0 auto 34px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
    animation: fadeInUp 0.9s ease 0.7s both;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.85s both;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    font-family: 'Heebo', sans-serif;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: var(--white);
    box-shadow: 0 6px 18px rgba(168, 133, 63, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-deep), var(--gold));
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(168, 133, 63, 0.45);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn-large { padding: 18px 40px; font-size: 18px; }

/* ===== Sections ===== */
section { padding: 72px 0; background: var(--dark-bg); }

.section-title {
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    text-align: center;
    margin-bottom: 32px;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--primary-color));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-light);
    margin: 0 auto 40px;
    max-width: 620px;
}

/* ===== About ===== */
.about-section { background: var(--dark-card); }

.about-lead {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.25rem;
    line-height: 2;
    color: var(--text-dark);
}

.about-text {
    max-width: 760px;
    margin: 22px auto 0;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.95;
    color: var(--text-light);
}

/* ===== Highlights ===== */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 26px;
    margin-top: 10px;
}

.highlight-card {
    background: var(--dark-elevated);
    padding: 40px 28px;
    border-radius: 18px;
    text-align: center;
    border: 1px solid rgba(201, 169, 97, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 169, 97, 0.4);
}

.highlight-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: rgba(231, 197, 106, 0.12);
    border: 1px solid rgba(231, 197, 106, 0.4);
    color: var(--gold);
    font-size: 1.6rem;
}

.highlight-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.highlight-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
}

/* ===== Contact ===== */
.contact-section {
    background:
        radial-gradient(ellipse 60% 70% at 50% 0%, rgba(58, 139, 163, 0.22) 0%, rgba(58, 139, 163, 0) 65%),
        var(--dark-blue);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
    max-width: 820px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 34px 24px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: rgba(231, 197, 106, 0.1);
    border-color: rgba(231, 197, 106, 0.45);
    transform: translateY(-4px);
}

.contact-card i {
    font-size: 1.9rem;
    color: var(--gold);
}

.contact-card .contact-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-card .contact-value {
    font-size: 1.1rem;
    font-weight: 600;
    direction: ltr;
}

/* ===== Donation ===== */
.donate-section {
    background:
        radial-gradient(ellipse 60% 70% at 50% 0%, rgba(231, 197, 106, 0.14) 0%, rgba(231, 197, 106, 0) 65%),
        var(--dark-card);
}

.donation-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 8px;
}

.donation-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(231, 197, 106, 0.22);
    border-radius: 16px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Heebo', sans-serif;
    text-align: center;
    line-height: 1.35;
}

.donation-btn i { font-size: 2rem; color: var(--gold); transition: color 0.3s ease; }

.donation-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark-blue);
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(168, 133, 63, 0.3);
}

.donation-btn:hover i { color: var(--dark-blue); }

/* ===== Donation modals ===== */
.donation-modal,
.bank-transfer-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.donation-modal.active,
.bank-transfer-modal.active { display: flex; opacity: 1; }

.donation-modal-content,
.bank-transfer-content {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.donation-modal.active .donation-modal-content,
.bank-transfer-modal.active .bank-transfer-content { transform: scale(1); }

.donation-modal-close,
.bank-modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.donation-modal-close:hover,
.bank-modal-close:hover { background: var(--dark-blue); transform: rotate(90deg); }

/* דרכי תרומה (Zelle / PayPal / צ'ק / כרטיס אשראי חו"ל) */
.donation-modal-content.donate-info {
    background: linear-gradient(160deg, #33475f 0%, #26374b 100%);
    max-width: 560px;
    width: 92%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 36px 30px 30px;
    border-radius: 18px;
    border: 1px solid rgba(229, 193, 88, 0.25);
}

.donate-info h2 { text-align: center; color: #fff; margin: 0 0 22px; font-size: 1.6rem; }

.donate-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.donate-list li {
    padding: 13px 16px;
    border-radius: 12px;
    background: rgba(13, 22, 33, 0.4);
    border: 1px solid rgba(229, 193, 88, 0.18);
    text-align: right;
}

.dm-label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.02rem;
}

.dm-label i { width: 20px; text-align: center; }
.dm-value { color: var(--text-light); line-height: 1.65; word-break: break-word; }
.donate-list a { color: #f0d98a; text-decoration: underline; word-break: break-word; line-height: 1.6; }
.dm-action-btn {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: var(--dark-blue);
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Heebo', sans-serif;
    transition: all 0.3s ease;
}
.dm-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(168, 133, 63, 0.4);
}
.dm-action-btn.paypal-btn {
    background: #0070ba;
    color: #ffffff;
}
.dm-action-btn.paypal-btn:hover {
    background: #005a96;
    box-shadow: 0 8px 20px rgba(0, 112, 186, 0.4);
}

/* נדרים פלוס — iframe כרטיס אשראי */
.bank-transfer-content.nedarim-box {
    max-width: 600px;
    width: 94%;
    height: 88vh;
    max-height: 88vh;
    padding: 12px;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
}

.nedarim-box h3 {
    flex: 0 0 auto;
    text-align: center;
    font-size: 1.1rem;
    margin: 2px 0 10px;
    color: var(--dark-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.nedarim-box h3 i { color: var(--secondary-color); }

.donation-iframe-container {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    background: #fff;
    border-radius: 8px;
}

.donation-iframe-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
}

/* ===== Footer ===== */
.main-footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 30px 0 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.footer-logo img { height: 54px; }

.footer-links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--secondary-color); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 8px;
    padding-top: 14px;
    text-align: center;
    opacity: 0.7;
    font-size: 0.85rem;
    width: 100%;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 78px;
        right: -100%;
        width: min(82vw, 300px);
        height: calc(100dvh - 78px);
        background: linear-gradient(160deg, #16283a 0%, var(--dark-blue) 100%);
        border-left: 1px solid rgba(229, 193, 88, 0.28);
        flex-direction: column;
        padding: 28px 26px;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.45);
        transition: right 0.3s ease;
        align-items: stretch;
        gap: 6px;
        overflow-y: auto;
    }

    .nav-menu.active { right: 0; }
    .nav-menu li { width: 100%; }

    .nav-menu a {
        display: block;
        width: 100%;
        color: #eef1f4;
        font-size: 1.05rem;
        padding: 14px 6px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-menu a::after { display: none; }
    .nav-menu a.active { color: var(--gold); }

    .mobile-menu-toggle { display: flex; }
    .mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
    .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

    .logo img { height: 56px; }
    section { padding: 52px 0; }
    .hero { padding: 110px 0 60px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

.btn:focus-visible,
.nav-menu a:focus-visible,
.contact-card:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

/* מתג מטבע ₪/$ */
.ccy-toggle{display:flex;align-items:center;gap:8px;margin:2px 0 10px;font-size:.9rem;color:var(--text-light);flex-wrap:wrap}
.ccy-toggle button{min-width:40px;height:32px;border-radius:8px;border:1px solid rgba(229,193,88,.3);background:rgba(255,255,255,.06);color:var(--text-light);font-weight:700;cursor:pointer;transition:all .25s;font-family:'Heebo',sans-serif;font-size:1rem}
.ccy-toggle button:hover{border-color:var(--gold)}
.ccy-toggle button.active{background:var(--gold);border-color:var(--gold);color:var(--dark-blue)}
.ccy-current{color:var(--text-muted);font-size:.85rem}

/* ===== Language switch + English (LTR) ===== */
.nav-menu a.lang-switch{border:1px solid rgba(231,197,106,.45);border-radius:50px;padding:5px 14px;color:var(--gold);font-size:14px}
.nav-menu a.lang-switch::after{display:none}
.nav-menu a.lang-switch:hover{background:var(--gold);color:var(--dark-blue)}
html[dir="ltr"] .nav-menu a::after{right:auto;left:0}
html[dir="ltr"] .donate-list li{text-align:left}
html[dir="ltr"] .donation-modal-close,
html[dir="ltr"] .bank-modal-close{left:auto;right:15px}
html[dir="ltr"] .hero-eyebrow{letter-spacing:.5px}
@media (max-width:768px){
  .nav-menu a.lang-switch{display:inline-block;width:auto;margin-top:10px;border-bottom:1px solid rgba(231,197,106,.45)}
}
