/*
Theme Name: משוחררת – קרן לוי
Theme URI: https://kerenmeshuhrret.co.il
Author: Amiad Taub
Description: ערכת נושא RTL קלה לאתר "משוחררת – לבחור בעצמך". ללא תלות ב-Elementor.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: meshuhrret
*/

:root {
  --paper: #FFFDFB;
  --powder: #F6E6E0;
  --powder-2: #EBCFC5;
  --ink: #3B2B2E;
  --ink-soft: #6B5A5D;
  --gold: #C9A45C;
  --gold-text: #7D5F27;
  --line: #E7D9C3;
  --font-display: "Frank Ruhl Libre", "David Libre", Georgia, serif;
  --font-body: "Heebo", "Assistant", Arial, sans-serif;
  --wrap: 1160px;
  --gap: clamp(20px, 4vw, 48px);
  --section: clamp(56px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  direction: rtl;
  text-align: right;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold-text); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; max-width: 62ch; text-wrap: pretty; }

.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--powder { background: var(--powder); }
.lead { font-size: 1.25rem; color: var(--ink-soft); }

.skip-link { position: absolute; inset-inline-start: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { inset-inline-start: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,253,251,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { font-family: var(--font-display); font-weight: 900; font-size: 1.7rem; color: var(--ink); text-decoration: none; line-height: 1; }
.brand small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .8rem; color: var(--gold-text); margin-top: 4px; }
.custom-logo { max-height: 56px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav .current-menu-item > a { border-bottom-color: var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); padding: 10px 14px; font: inherit; color: var(--ink); cursor: pointer; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 16px var(--gap) 24px; gap: 16px; }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav a { display: block; padding: 10px 0; }
}

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 700; padding: 14px 28px; border: 2px solid var(--gold); background: var(--gold); color: var(--ink); text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: 9px 18px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 88px); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { margin: 0 0 24px; }
.hero h1 .name { display: block; font-size: clamp(3.6rem, 10vw, 7.5rem); font-weight: 900; letter-spacing: -.01em; }
.hero h1 .tag { display: block; font-size: clamp(1.6rem, 3.6vw, 2.75rem); font-weight: 400; color: var(--gold-text); margin-top: 6px; }
.hero__sub { font-size: 1.3rem; max-width: 34ch; color: var(--ink-soft); }
.arch { aspect-ratio: 4 / 5; border-radius: 999px 999px 24px 24px; overflow: hidden; background: linear-gradient(170deg, var(--powder) 0%, var(--powder-2) 100%); outline: 1px solid var(--gold); outline-offset: 10px; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .hero__grid { grid-template-columns: 1fr; } .arch { max-width: 360px; width: 100%; margin-inline: auto; } }

/* Proof strip */
.proof { border-block: 1px solid var(--line); }
.proof__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof__item { padding: 28px 24px; border-inline-start: 1px solid var(--line); font-family: var(--font-display); font-size: 1.2rem; line-height: 1.4; }
.proof__item:first-child { border-inline-start: 0; padding-inline-start: 0; }
.proof__item span { display: block; font-family: var(--font-body); font-size: .92rem; color: var(--ink-soft); margin-top: 6px; }
@media (max-width: 760px) { .proof__grid { grid-template-columns: 1fr; } .proof__item { border-inline-start: 0; border-top: 1px solid var(--line); padding-inline: 0; } .proof__item:first-child { border-top: 0; } }

/* Paths */
.paths { border-top: 1px solid var(--gold); }
.path { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: var(--gap); align-items: center; padding-block: 34px; border-bottom: 1px solid var(--gold); }
.path h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.path p { margin: 0; color: var(--ink-soft); }
@media (max-width: 820px) { .path { grid-template-columns: 1fr; gap: 12px; } }

/* Certificate frame */
.cert { border: 1px solid var(--gold); outline: 1px solid var(--gold); outline-offset: 6px; padding: clamp(24px, 5vw, 48px); margin: 8px; background: var(--paper); max-width: 760px; }
.cert q { display: block; font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); quotes: none; line-height: 1.35; }
.cert cite { display: block; margin-top: 16px; font-style: normal; color: var(--ink-soft); font-size: .98rem; }

/* Split / lists */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0 0 1.5em; }
.ticks li { padding-block: 12px; border-bottom: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); font-family: var(--font-display); font-weight: 900; font-size: 1.8rem; color: var(--gold-text); line-height: 1.2; }
details { border-bottom: 1px solid var(--line); padding-block: 16px; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 12px 0 0; }

/* Events */
.event { display: grid; grid-template-columns: 96px 1fr auto; gap: 24px; align-items: center; padding-block: 24px; border-bottom: 1px solid var(--line); }
.event__date { text-align: center; border: 1px solid var(--gold); padding: 10px 0; font-family: var(--font-display); }
.event__date b { display: block; font-size: 2.2rem; line-height: 1; }
.event__date span { font-size: .95rem; }
.event h3 { margin: 0 0 4px; }
.event p { margin: 0; color: var(--ink-soft); }
@media (max-width: 680px) { .event { grid-template-columns: 80px 1fr; } .event .btn { grid-column: 1 / -1; text-align: center; } }
.empty { border: 1px dashed var(--gold); padding: 32px; max-width: 680px; }

/* Forms */
.form { display: grid; gap: 18px; max-width: 640px; }
.form label { display: block; font-weight: 500; margin-bottom: 6px; }
.form input[type=text], .form input[type=tel], .form input[type=email], .form input[type=date], .form select, .form textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--ink-soft); padding: 12px 14px; min-height: 48px; border-radius: 0;
}
.form textarea { min-height: 120px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--gold-text); }
.form .hp { position: absolute; inset-inline-start: -9999px; height: 0; overflow: hidden; }
.hint { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.notice { padding: 16px 20px; border: 1px solid var(--gold); background: var(--powder); max-width: 640px; margin-bottom: 20px; font-weight: 500; }
.notice--err { background: #FBE9E7; border-color: #B3402F; }
.safety { font-size: .95rem; color: var(--ink-soft); border-inline-start: 3px solid var(--gold); padding-inline-start: 16px; }

/* Page head & content */
.page-head { padding-block: clamp(40px, 7vw, 80px) 0; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 16px; }
.content > * { max-width: 70ch; }
.cta-band { background: var(--ink); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { margin-inline: auto; color: #E9DDD6; }
.cta-band .btn--ghost { color: #fff; border-color: #fff; }
.cta-band .btn--ghost:hover { background: #fff; color: var(--ink); }
.cta-band .btn-row { justify-content: center; }

/* Posts */
.post-list article { padding-block: 28px; border-bottom: 1px solid var(--line); }
.post-list h2 { font-size: 1.7rem; }
.post-list h2 a { color: var(--ink); text-decoration: none; }
.meta { color: var(--ink-soft); font-size: .92rem; }

/* Footer */
.site-footer { background: var(--powder); padding-block: 56px 32px; font-size: .98rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--gap); }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding-block: 4px; }
.site-footer a { color: var(--ink); }
.site-footer h3 { font-size: 1.15rem; }
.copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--powder-2); color: var(--ink-soft); font-size: .88rem; }

.wa-float { position: fixed; inset-inline-start: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; z-index: 60; box-shadow: 0 2px 10px rgba(59,43,46,.3); }
.wa-float:hover { background: var(--gold-text); color: #fff; }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

.todo { background: #FFF4C2; border: 1px dashed #A68A00; padding: 8px 12px; font-size: .9rem; max-width: 70ch; }

/* Page head with side photo */
.page-head__grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(24px, 5vw, 64px); align-items: end; }
.page-head .arch { max-width: 300px; width: 100%; margin-inline: auto; outline-offset: 8px; }
@media (max-width: 820px) { .page-head__grid { grid-template-columns: 1fr; } }
.cert-photo { max-width: 420px; border: 1px solid var(--gold); background: #fff; padding: 8px; }
.cert-wrap { display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 820px) { .cert-wrap { grid-template-columns: 1fr; } }
.pull { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.3; max-width: 28ch; margin: 0 0 1em; }

/* Brand message block */
.message { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.message .arch { max-width: 340px; width: 100%; margin-inline: auto; }
.pull-xl { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.3rem, 5.6vw, 4.2rem); line-height: 1.1; max-width: 14ch; margin: 0 0 .5em; }
@media (max-width: 820px) { .message { grid-template-columns: 1fr; } }
.event h3 a { color: var(--ink); text-decoration: none; }
.event h3 a:hover { color: var(--gold-text); text-decoration: underline; }

/* Mobile action bar replaces the floating button */
.m-bar { display: none; }
@media (max-width: 760px) {
  .m-bar { display: flex; gap: 10px; position: fixed; inset-inline: 0; bottom: 0; z-index: 60; padding: 10px var(--gap) calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255,253,251,.97); border-top: 1px solid var(--line); }
  .m-bar .btn { flex: 1; text-align: center; }
  .wa-float { display: none; }
  body { padding-bottom: 72px; }
}

/* Breadcrumbs, seasonal banner, callout */
.crumbs { border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--ink-soft); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; margin: 0; padding: 10px 0; }
.crumbs li + li::before { content: "‹"; margin-inline-end: 10px; color: var(--gold-text); }
.crumbs a { color: var(--ink-soft); }
.season-banner { background: var(--powder); border-bottom: 1px solid var(--line); text-align: center; padding: 14px 0; }
.season-banner p { margin: 0 auto; max-width: none; font-weight: 500; }
.callout { border: 1px solid var(--gold); padding: 18px 22px; margin: 0 0 32px; max-width: 62ch; background: var(--paper); }
.callout p { margin: 0; }

/* Quiz entry points */
.nav a[href*="am-i-free"] { color: var(--gold-text); font-weight: 700; }
.quiz-teaser { background: var(--powder); }
.quiz-teaser__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.quiz-teaser h2 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); font-weight: 900; margin-bottom: .3em; }
.quiz-teaser .doors-preview { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; max-width: 360px; margin-inline: auto; }
.quiz-teaser .doors-preview span { display: block; aspect-ratio: 3 / 5; border: 2px solid var(--gold-text); border-radius: 999px 999px 4px 4px; background: var(--paper); }
.quiz-teaser .doors-preview span:nth-child(2n) { background: var(--powder-2); }
.hero__quiz { margin-top: 18px; }
@media (max-width: 820px) { .quiz-teaser__grid { grid-template-columns: 1fr; } }
