/* Pesach Program Finder — one small stylesheet, no framework.
   Palette carried over from the SpreadSimple site: navy #0F2F76 (header
   buttons), CTA blue #3F9DCF, secondary #51535d, badges #99d7ff / #99c6e3. */
:root {
  --navy: #0f2f76; --navy-2: #1b3f8f; --blue: #3f9dcf; --blue-d: #2f86b5; --ink: #1d2433; --muted: #5b6272;
  --line: #e3e7ef; --bg: #fcfcff; --card: #fff; --badge: #dcf0ff; --badge-ink: #0f3b5c; --wa: #25d366; --wa-d: #128c7e;
  --radius: 12px; --shadow: 0 1px 2px rgba(15,47,118,.06), 0 4px 16px rgba(15,47,118,.06);
  --head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--body); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-d); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.25; color: var(--navy); margin: 0 0 .5em; }
body { overflow-x: clip; }
.wrap { min-width: 0; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); flex: none; }
.logo img { width: 52px; height: 52px; }
.logo-text { font: 700 16px/1.15 var(--head); }
.logo-text small { display: block; font: 600 11px/1.3 var(--body); color: var(--muted); }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; margin-left: auto; }
.nav-link { font: 600 13px/1 var(--head); color: var(--navy); text-decoration: none; padding: 9px 8px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.nav-link:hover { border-color: var(--line); background: #f4f6fb; }
.nav-link--primary { background: var(--navy); color: #fff; }
.nav-link--primary:hover { background: var(--navy-2); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }
@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; flex-direction: column; align-items: stretch; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .nav-link { padding: 12px; border-radius: 8px; }
}

/* hero */
.hero { position: relative; min-height: 300px; display: grid; align-items: center; color: #fff; overflow: hidden; background: var(--navy); }
.hero picture, .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,25,64,.72), rgba(10,25,64,.35)); }
.hero-inner { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 48px; text-align: center; }
.hero h1 { color: #fff; font-size: clamp(28px, 4.4vw, 46px); margin-bottom: .35em; }
.hero-sub { font-size: clamp(16px, 2vw, 19px); max-width: 760px; margin: 0 auto; opacity: .95; }

.intro { padding-top: 28px; text-align: center; max-width: 860px; color: var(--muted); }

/* controls */
.listing { padding-top: 24px; padding-bottom: 40px; }
.controls { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); margin-bottom: 20px; position: sticky; top: 0; z-index: 10; }
.controls-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.controls-row + .controls-row { margin-top: 10px; }
.controls input[type=search], .controls select { font: inherit; font-size: 15px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); min-height: 42px; }
.ctl-search { flex: 1 1 260px; }
.controls select { flex: 0 1 190px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; user-select: none; }
.chip:has(input:checked) { background: var(--badge); border-color: #9cc9ea; }
.chip input { accent-color: var(--blue); margin: 0; }
.count { margin-left: auto; font-size: 14px; color: var(--muted); }
.btn-link { background: none; border: 0; color: var(--blue-d); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; padding: 0; }
@media (max-width: 700px) { .controls { position: static; } .controls select { flex: 1 1 45%; } .count { margin-left: 0; width: 100%; } }

/* cards */
.cards { display: grid; gap: 16px; }
.card { display: grid; grid-template-columns: 260px 1fr 190px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.card[hidden] { display: none; }
.card-img, .gallery-item { background: #e9eef6 url(/img/brand/logo-256.png) center / 96px no-repeat; }
.card-img { display: block; min-height: 160px; }
.img-broken { visibility: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.card-body { padding: 16px 18px; min-width: 0; }
.card-title { font-size: 18px; margin: 0 0 4px; }
.card-title a { color: var(--navy); text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-loc { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.card-desc { margin: 8px 0 0; font-size: 14.5px; color: #384052; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-side { padding: 16px; display: flex; flex-direction: column; gap: 8px; justify-content: center; border-left: 1px solid var(--line); background: #fafbfe; }
.card-price { margin: 0 0 4px; font: 700 18px/1.2 var(--head); color: var(--navy); text-align: center; }
.cards--grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cards--grid .card { grid-template-columns: 1fr; }
.cards--grid .card-side { border-left: 0; border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .card { grid-template-columns: 1fr; }
  .card-img img { aspect-ratio: 16 / 9; }
  .card-side { border-left: 0; border-top: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; align-items: center; }
  .card-price { flex: 1 0 100%; text-align: left; }
  .card-side .btn { flex: 1 1 40%; }
}
.no-results { text-align: center; padding: 30px; color: var(--muted); }

.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.badge { font: 600 12px/1 var(--body); background: var(--badge); color: var(--badge-ink); border-radius: 999px; padding: 6px 10px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 700 15px/1 var(--head); padding: 12px 18px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; text-decoration: none; text-align: center; min-height: 44px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); }
.btn-secondary { background: #fff; color: #51535d; border-color: #c9ced9; }
.btn-secondary:hover { border-color: #51535d; }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: var(--wa-d); }
.btn-ghost { background: none; color: var(--blue-d); }
.btn-block { width: 100%; }

/* program page */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 18px; }
.crumbs a { color: var(--muted); }
.program { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; padding-top: 16px; padding-bottom: 40px; }
.gallery { display: grid; gap: 12px; position: sticky; top: 16px; }
.gallery-item { margin: 0; border-radius: var(--radius); overflow: hidden; background: #e9eef6; }
.gallery-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.program-title { font-size: clamp(24px, 3vw, 34px); margin: 12px 0 4px; }
.program-org { font: 600 17px/1.3 var(--head); color: var(--blue-d); margin: 0 0 4px; }
.program-loc { color: var(--muted); margin: 0 0 16px; }
.map-link { font-size: 14px; margin-left: 6px; }
.program-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 20px; }
.program-ctas .btn { flex: 1 1 160px; }
.program-ctas--end { margin-top: 24px; }
.specs { margin: 0 0 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.specs div { display: grid; grid-template-columns: 210px 1fr; gap: 12px; padding: 12px 14px; }
.specs div + div { border-top: 1px solid var(--line); }
.specs dt { font-weight: 600; color: var(--navy); font-size: 14px; }
.specs dd { margin: 0; font-size: 15px; }
.share { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .program { grid-template-columns: minmax(0, 1fr); gap: 16px; } .gallery { position: static; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .specs div { grid-template-columns: 1fr; gap: 2px; } }
.related { padding-bottom: 48px; }

/* prose */
.prose { font-size: 16.5px; }
.prose p { margin: 0 0 1em; }
.prose h2 { font-size: 26px; margin-top: 1.4em; }
.prose h3 { font-size: 21px; margin-top: 1.3em; }
.prose h4 { font-size: 18px; margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.page { max-width: 860px; padding-top: 32px; padding-bottom: 56px; }
.page h1 { font-size: clamp(28px, 4vw, 38px); }
.seo-copy { max-width: 900px; padding-top: 8px; padding-bottom: 48px; }
.seo-copy > div { text-align: left !important; }

/* footer */
.site-footer { background: var(--navy); color: #dfe6f5; padding: 40px 0 24px; margin-top: 24px; }
.site-footer h4 { color: #fff; font-size: 16px; }
.site-footer a { color: #dfe6f5; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr .6fr; gap: 28px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin: 0 0 8px; font-size: 14.5px; }
.social { display: flex; gap: 12px; }
.social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.12); }
.copyright { font-size: 13px; color: #b9c4de; margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr; } }

/* WhatsApp float — class name is a GTM trigger, keep it */
.whatsapp-float { position: fixed; width: 60px; height: 60px; bottom: 28px; right: 24px; background: var(--wa); color: #fff; border-radius: 50%; display: grid; place-items: center; box-shadow: 2px 2px 6px rgba(0,0,0,.25); z-index: 100; }
.whatsapp-float:hover { background: var(--wa-d); }

/* enquiry dialog */
.enquiry { border: 0; border-radius: 16px; padding: 0; width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 24px); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.enquiry::backdrop { background: rgba(10,20,45,.55); }
.enquiry-form, .enquiry-done { padding: 26px 24px 22px; position: relative; }
.enquiry-close { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: var(--muted); padding: 6px 10px; }
.enquiry-kicker { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.enquiry-program { font-size: 20px; margin: 4px 36px 16px 0; }
.fields { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.field { grid-column: span 12; display: flex; flex-direction: column; gap: 4px; }
.field.w6 { grid-column: span 6; }
.field label { font-size: 14px; font-weight: 600; color: #2e3647; }
.field label span { color: #c0392b; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #cdd3df; border-radius: 8px; width: 100%; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.field.invalid input, .field.invalid select { border-color: #c0392b; }
@media (max-width: 560px) { .field.w6 { grid-column: span 12; } }
.form-error { color: #b03024; font-size: 14px; margin: 12px 0 0; }
.enquiry-form .btn-block { margin-top: 16px; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; margin: 10px 0 0; }
.enquiry-done { text-align: center; padding-top: 40px; }
.done-text { font: 600 18px/1.45 var(--head); color: var(--navy); margin: 0 0 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enquiry[aria-busy=true] button[type=submit] { opacity: .6; pointer-events: none; }
.img-credit { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
