/* ==========================================================
   Steady Connection — Yehi Or one-page
   Palette: deep navy night sky, warm parchment, Tzfat gold
   ========================================================== */
:root {
    --navy-900: #0d1b2e;
    --navy-800: #13263f;
    --navy-700: #1c3352;
    --gold: #c9a24a;
    --gold-soft: #e2c47e;
    --parchment: #f6efe3;
    --parchment-2: #efe4d2;
    --ink: #1d2433;
    --muted: #5d6474;
    --line: #dccfb8;
    --radius: 10px;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --display: 'Cinzel', 'Cormorant Garamond', serif;
    --sans: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.sc { margin: 0; font-family: var(--serif); color: var(--ink); background: var(--parchment); font-size: 19px; line-height: 1.6; }
.container { width: min(1180px, 92%); margin: 0 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- HERO ---------- */
.sc-hero {
    position: relative;
    color: #fff;
    background:
        radial-gradient(ellipse 65% 55% at 92% 58%, rgba(220, 150, 75, .62), transparent 60%),
        radial-gradient(ellipse 45% 40% at 78% 70%, rgba(235, 175, 95, .45), transparent 55%),
        linear-gradient(180deg, #091322 0%, #0d1e33 42%, #182b44 70%, #2f3a48 88%, #524738 100%);
    overflow: hidden;
}
.sc-hero::after { /* distant hills silhouette */
    content: ''; position: absolute; left: 0; right: 0; bottom: 88px; height: 160px; pointer-events: none;
    background:
        radial-gradient(ellipse 40% 100% at 75% 100%, rgba(20, 28, 38, .85), transparent 70%),
        radial-gradient(ellipse 55% 90% at 30% 100%, rgba(20, 28, 38, .7), transparent 70%);
}

.sc-nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; position: relative; z-index: 3; }
.sc-brand__img { height: 78px; width: auto; }
.sc-nav__links { display: flex; align-items: center; gap: 30px; font-family: var(--serif); font-size: 1.05rem; }
.sc-nav__links a { text-decoration: none; opacity: .9; transition: opacity .2s, color .2s; }
.sc-nav__links a:hover { opacity: 1; color: var(--gold-soft); }
.sc-btn-outline { border: 1px solid var(--gold); padding: 6px 20px; border-radius: 999px; }
.sc-burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.sc-burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }

.sc-hero__body { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.15fr; align-items: end; gap: 2rem; min-height: 520px; }
.sc-hero__rabbi { align-self: end; margin-bottom: -10px; }
.sc-hero__rabbi img {
    width: 100%; max-width: 470px; margin-left: auto; margin-right: auto;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%), radial-gradient(ellipse 70% 85% at 50% 40%, #000 55%, transparent 80%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
    mask-image: linear-gradient(180deg, #000 70%, transparent 100%), radial-gradient(ellipse 70% 85% at 50% 40%, #000 55%, transparent 80%);
}
.sc-hero__text { padding-bottom: 120px; }
.sc-hero__title { font-family: var(--display); font-weight: 400; font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1.02; letter-spacing: .04em; text-transform: uppercase; margin: 0; }
.sc-rule { display: block; width: 90px; height: 2px; background: var(--gold); margin: 22px 0; }
.sc-rule--left { margin: 26px 0; width: 70px; }
.sc-hero__tagline { font-style: italic; font-size: clamp(1.25rem, 2vw, 1.7rem); margin: 0 0 30px; opacity: .95; }

.sc-pillars { position: relative; z-index: 2; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 0; margin-bottom: 0; padding: 26px 0 30px; text-align: center; font-size: 1.12rem; line-height: 1.25; }
.sc-pillars li + li { border-left: 1px solid rgba(201, 162, 74, .6); }

/* ---------- BUTTONS ---------- */
.sc-btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; font-family: var(--serif); font-style: italic; font-size: 1.25rem; padding: 14px 34px; border-radius: 8px; border: 0; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .2s, background .2s; }
.sc-btn:hover { transform: translateY(-1px); }
.sc-btn--gold { background: var(--gold); color: var(--navy-900); box-shadow: 0 8px 24px rgba(201, 162, 74, .35); }
.sc-btn--gold:hover { background: var(--gold-soft); }
.sc-btn--navy { background: var(--navy-800); color: #fff; box-shadow: 0 8px 22px rgba(13, 27, 46, .3); }
.sc-btn--navy:hover { background: var(--navy-700); }
.sc-btn--block { width: 100%; margin-top: 22px; }
.sc-btn:disabled { opacity: .7; cursor: wait; transform: none; }

/* ---------- MAIN ---------- */
.sc-main {
    padding: 70px 0 90px;
    background:
        radial-gradient(ellipse 50% 40% at 0% 100%, rgba(140, 150, 90, .18), transparent 70%),
        linear-gradient(180deg, var(--parchment) 0%, var(--parchment-2) 100%);
}
.sc-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }

.sc-mission p { margin: 0 0 1.1rem; color: #2a3140; }
.sc-h2 { font-family: var(--display); font-weight: 400; font-size: 2.2rem; letter-spacing: .05em; color: var(--navy-800); margin: 0; }
.sc-h3 { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.7rem; color: var(--navy-800); margin: 0 0 .8rem; }
.sc-quote { margin: 1.6rem 0; text-align: center; font-style: italic; font-weight: 600; font-size: 1.45rem; line-height: 1.35; color: var(--navy-900); }
.sc-brush {
    display: inline-block; padding: 22px 42px; text-align: center; font-style: italic; font-size: 1.35rem; line-height: 1.35; color: var(--navy-900);
    background: radial-gradient(ellipse at center, rgba(226, 196, 126, .55) 0%, rgba(226, 196, 126, .25) 55%, transparent 75%);
    border-radius: 40% 60% 55% 45% / 60% 40% 60% 40%;
}

/* ---------- DONATION CARD ---------- */
.sc-card { background: #fbf7f0; border: 1px solid var(--line); border-radius: 14px; padding: 30px 30px 26px; box-shadow: 0 24px 60px rgba(29, 36, 51, .12); position: sticky; top: 24px; }
.sc-card__title { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.85rem; color: var(--navy-900); margin: 0 0 18px; text-align: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sc-label { display: block; font-family: var(--sans); font-size: .9rem; font-weight: 500; color: var(--ink); margin: 18px 0 8px; }
.sc-label small, .sc-pill small { font-weight: 400; color: var(--muted); }
.req { color: #b4232c; }

.sc-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sc-amt { font-family: var(--serif); font-size: 1.25rem; padding: 10px 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; color: var(--ink); transition: all .15s; font-weight: 500; }
.sc-amt:hover { border-color: var(--gold); }
.sc-amt.is-active { background: #0e1e32; border-color: #0e1e32; color: #fff; }
.sc-amt--custom { grid-column: span 2; font-size: 1.05rem; }
.sc-custom { display: flex; align-items: center; margin-top: 10px; border: 1px solid var(--gold); border-radius: 8px; background: #fff; padding: 0 12px; }
.sc-custom[hidden] { display: none !important; }
.sc-custom span { font-size: 1.3rem; color: var(--muted); }
.sc-custom input { flex: 1; border: 0; outline: 0; padding: 12px 8px; font-size: 1.15rem; font-family: var(--serif); background: transparent; }

.sc-freq { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sc-pill { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: .88rem; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; transition: all .15s; }
.sc-pill input { accent-color: var(--gold); margin: 0; }
.sc-pill.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.sc-pill--static { cursor: default; }
.sc-pill--static.is-active { background: #fff; color: var(--ink); border-color: var(--line); }
.sc-pill--static small { color: var(--muted); }
.sc-dot { width: 14px; height: 14px; border-radius: 50%; border: 4px solid var(--navy-800); background: #fff; flex: none; }

.sc-input { width: 100%; font-family: var(--sans); font-size: .95rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.sc-input:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 74, .18); }
textarea.sc-input { resize: vertical; min-height: 84px; }

.sc-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-family: var(--sans); font-size: .8rem; color: var(--muted); line-height: 1.45; }
.sc-check input { accent-color: var(--navy-800); margin-top: 2px; }
.sc-secure { text-align: center; font-family: var(--sans); font-size: .78rem; color: var(--muted); margin: 12px 0 0; }

.sc-alert { font-family: var(--sans); font-size: .9rem; padding: 10px 14px; border-radius: 8px; margin-bottom: 10px; }
.sc-alert--error { background: #fdecec; color: #8a1f1f; border: 1px solid #f3c2c2; }
.sc-alert--ok { background: #eaf6ee; color: #1d5c34; border: 1px solid #bfe2cb; }

/* ---------- FOOTER ---------- */
.sc-footer { background: var(--navy-900); color: rgba(255, 255, 255, .85); text-align: center; padding: 44px 0 34px; }
.sc-footer__logo { width: 96px; margin: 0 auto 12px; }
.sc-footer p { margin: 4px 0; }
.sc-footer__small { font-family: var(--sans); font-size: .78rem; opacity: .6; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
    .sc-grid { grid-template-columns: 1fr; }
    .sc-card { position: static; }
    .sc-hero__body { grid-template-columns: 1fr; text-align: center; min-height: auto; }
    .sc-hero__text { order: -1; padding: 30px 0 0; }
    .sc-rule { margin-left: auto; margin-right: auto; }
    .sc-hero__rabbi img { max-width: 340px; }
}
@media (max-width: 760px) {
    .sc-burger { display: block; }
    .sc-nav__links { display: none; position: absolute; top: 100%; right: 0; left: 0; flex-direction: column; gap: 14px; padding: 18px; background: rgba(13, 27, 46, .97); border-radius: 10px; }
    .sc-nav__links.is-open { display: flex; }
    .sc-brand__img { height: 60px; }
    .sc-pillars { grid-template-columns: repeat(2, 1fr); row-gap: 18px; font-size: 1rem; }
    .sc-pillars li:nth-child(3) { border-left: 0; }
    .sc-amounts { grid-template-columns: repeat(2, 1fr); }
    .sc-amt--custom { grid-column: span 2; }
    .sc-freq { grid-template-columns: 1fr; }
    .sc-card { padding: 22px 18px; }
}

