/*
Theme Name: Mirit Volk 2026
Description: Custom theme for miritvolk.com. Homepage, treatments, psychotherapy, growth and accessibility pages are fixed templates; blog posts and other pages are edited in WordPress.
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: miritvolk
*/

/* Palette comes from the clinic itself:
   curtain white (60%), armchair slate-blue and ink (30%), Mirit's mustard cardigan (10%, actions only). */
:root {
  --curtain: #EEF2F3;
  --paper: #FFFFFF;
  --ink: #1F2D36;
  --ink-soft: #4A5B66;
  --slate: #6E8CA0;
  --slate-deep: #34495A;
  --slate-pale: #DCE5EA;
  --mustard: #E8B71A;
  --mustard-deep: #C99A08;
  --display: "Frank Ruhl Libre", "David Libre", "Times New Roman", serif;
  --body: "Assistant", "Segoe UI", Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--curtain);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--slate-deep); text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { text-wrap: balance; font-family: var(--display); font-weight: 500; line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.25rem, 5.2vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 760px; }

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

/* ---------- the one action ---------- */
.btn {
  display: inline-block;
  background: var(--mustard);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  box-shadow: 0 10px 24px -8px rgba(138, 104, 0, 0.55);
}
.btn:hover { background: var(--mustard-deep); color: var(--ink); }
.btn-small { font-size: 1rem; padding: 9px 18px; box-shadow: none; white-space: nowrap; }

/* ---------- header ---------- */
.top { background: var(--paper); border-bottom: 1px solid var(--slate-pale); position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--display); font-size: 1.4rem; font-weight: 700; }
.brand-role { font-size: 0.85rem; color: var(--ink-soft); }
.top nav { margin-inline-start: auto; }
.top nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.top nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1rem; padding: 6px 0; }
.top nav a:hover, .top nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--slate); }

/* ---------- hero: back (slate block + photo), middle (words), front (button) ---------- */
.hero { position: relative; padding: 72px 0 0; }
.hero::before {
  content: ""; position: absolute; z-index: 0;
  inset-block: 0 -64px; inset-inline-start: auto; inset-inline-end: 0;
  width: 38%; background: var(--slate);
}
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 48px; align-items: end; }
.hero-text { padding-block: 24px 96px; align-self: center; }
.hero h1 { max-width: 14ch; margin-inline-end: -1.4em; position: relative; z-index: 2; }
.hero-sub { font-size: 1.3rem; line-height: 1.6; max-width: 34ch; color: var(--ink-soft); margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 0; }
.or { color: var(--ink-soft); }
.or a { font-weight: 700; color: var(--ink); }
.hero-photo { margin: 0 0 -64px; position: relative; z-index: 1; }
.hero-photo img { border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(31, 45, 54, 0.6); }

/* ---------- home sections ---------- */
.why { background: var(--paper); padding: 128px 0 72px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }

.matcher { background: var(--slate-deep); color: #fff; padding: 80px 0; }
.matcher h2 { color: #fff; }
.matcher-lede { color: #D5DEE4; max-width: 46ch; }
.matcher-box { background: var(--paper); color: var(--ink); border-radius: 10px; padding: 32px; margin-top: 28px; min-height: 260px; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6); }
.m-step { font-size: 0.95rem; color: var(--ink-soft); margin: 0 0 4px; }
.m-q, .m-result-title { font-size: 1.6rem; font-weight: 500; margin-bottom: 20px; }
.m-q:focus, .m-result-title:focus { outline: none; }
.m-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.m-opt {
  font: inherit; font-weight: 600; text-align: start; cursor: pointer;
  background: var(--curtain); color: var(--ink);
  border: 1.5px solid var(--slate-pale); border-radius: 8px; padding: 16px 18px;
}
.m-opt:hover { border-color: var(--slate-deep); background: var(--paper); }
.m-result-text { max-width: 56ch; }
.m-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 24px; }
.m-more { font-weight: 600; }
.m-restart { font: inherit; font-size: 0.95rem; background: none; border: 0; padding: 0; margin-top: 20px; color: var(--ink-soft); text-decoration: underline; cursor: pointer; }

.areas { padding: 88px 0; }
.area-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; border-top: 1px solid var(--slate); }
.area-list li { border-bottom: 1px solid var(--slate-pale); }
.area-list a { display: block; padding: 20px 0; text-decoration: none; color: var(--ink); }
.area-list strong { display: block; font-family: var(--display); font-size: 1.4rem; font-weight: 500; }
.area-list span { color: var(--ink-soft); }
.area-list a:hover strong { text-decoration: underline; text-decoration-color: var(--slate); text-underline-offset: 0.2em; }
.areas-pro { margin-top: 28px; color: var(--ink-soft); max-width: 60ch; }

.about { background: var(--paper); padding: 88px 0; }
.about-in { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.clinic-photo { margin: 0; position: sticky; top: 100px; }
.clinic-photo img { border-radius: 6px; }
.clinic-photo figcaption { font-size: 0.95rem; color: var(--ink-soft); margin-top: 8px; }
.cv { margin-top: 36px; display: grid; gap: 28px; }
.cv h3 { margin-bottom: 0.3em; }
.cv ul { margin: 0; padding-inline-start: 1.2em; }
.cv li { margin-bottom: 0.3em; }

/* ---------- contact band ---------- */
.contact { background: var(--slate-deep); color: #fff; padding: 72px 0; border-top: 1px solid rgba(255,255,255,0.25); }
.contact h2 { color: #fff; }
.contact-in { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: end; }
.contact p { max-width: 40ch; }
.contact-list { margin: 0; display: grid; gap: 14px; }
.contact-list div { display: grid; grid-template-columns: 5.5em 1fr; border-bottom: 1px solid rgba(255,255,255,0.35); padding-bottom: 12px; }
.contact-list dt { color: #E4ECF0; }
.contact-list dd { margin: 0; font-weight: 700; }
.contact-list a { color: #fff; }

/* ---------- inner pages ---------- */
.prose-page { background: var(--paper); padding: 64px 0 88px; }
.prose-page h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 0.6em; }
.prose h2 { margin-top: 1.8em; padding-top: 1em; border-top: 1px solid var(--slate-pale); scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.6em; scroll-margin-top: 90px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.lede { font-size: 1.3rem; color: var(--ink-soft); }
.post-date { color: var(--ink-soft); font-size: 0.95rem; margin-top: -0.6em; }
.back { margin-bottom: 1.5em; font-weight: 600; }
[dir="ltr"] .prose { text-align: left; }

.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { padding: 28px 0; border-top: 1px solid var(--slate-pale); }
.post-list h2 { margin-bottom: 0.2em; }
.post-list a { color: var(--ink); text-decoration: none; }
.post-list a:hover h2 { text-decoration: underline; text-decoration-color: var(--slate); text-underline-offset: 0.2em; }
.post-list .post-date { margin-top: 0; }

/* growth model: the word צמיחה read downward is the structure */
.acrostic { list-style: none; margin: 40px 0 0; padding: 0; }
.acrostic li { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: start; padding: 22px 0; border-top: 1px solid var(--slate-pale); }
.acrostic .letter { font-family: var(--display); font-weight: 700; font-size: 5rem; line-height: 0.9; color: var(--slate); text-align: center; }
.acrostic h2 { font-size: 1.5rem; margin-bottom: 0.2em; }
.acrostic p { margin: 0; color: var(--ink-soft); }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #D5DEE4; padding: 48px 0; font-size: 1rem; }
.foot-in { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.foot a { color: #fff; }
.foot p { margin: 0 0 0.4em; }
.foot-name { font-family: var(--display); font-size: 1.4rem; color: #fff; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin-bottom: 0.4em; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .top-in { flex-wrap: wrap; gap: 6px 16px; padding-block: 10px; }
  .top nav { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .top nav ul { gap: 18px; white-space: nowrap; }
  .top .btn-small { margin-inline-start: auto; }
  .hero { padding-top: 32px; }
  .hero::before { width: 100%; inset-block: auto -48px; height: 46%; }
  .hero-in { grid-template-columns: 1fr; gap: 24px; }
  .hero-text { padding-block: 0 8px; }
  .hero h1 { margin-inline-end: 0; max-width: none; }
  .hero-photo { max-width: 420px; margin: 0 auto -48px; }
  .why { padding-top: 96px; }
  .two, .about-in, .contact-in, .foot-in, .area-list, .m-options { grid-template-columns: 1fr; }
  .two, .about-in { gap: 32px; }
  .clinic-photo { position: static; }
  .matcher-box { padding: 22px; }
  .acrostic li { grid-template-columns: 64px 1fr; gap: 14px; }
  .acrostic .letter { font-size: 3.4rem; }
}

/* ---------- designed text pages (treatments, psychotherapy) ---------- */
.page-head { padding: 64px 0 56px; }
.page-head h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.page-head-in { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 56px; align-items: center; }
.page-head-photo { margin: 0; }
.page-head-photo img { border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(31, 45, 54, 0.6); }
.chips { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: block; text-decoration: none; font-weight: 600; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1.5px solid var(--slate-pale); border-radius: 999px; padding: 8px 18px; }
.chips a:hover { border-color: var(--slate-deep); }

.topic { background: var(--paper); padding: 72px 0; scroll-margin-top: 70px; }
.topic-alt { background: var(--curtain); }
.topic-in { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 56px; align-items: start; }
.topic-head { position: sticky; top: 100px; border-top: 3px solid var(--slate); padding-top: 18px; }
.topic-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.topic-ask { font-weight: 600; }
.topic-body > p { max-width: 62ch; }
.qa { margin-top: 8px; border-top: 1px solid var(--slate-pale); }
.topic-body > p + .qa { margin-top: 28px; }
details { border-bottom: 1px solid var(--slate-pale); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-family: var(--display); font-size: 1.3rem; font-weight: 500; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--body); font-size: 1.6rem; line-height: 1; color: var(--slate-deep); flex: none; }
details[open] summary::after { content: "−"; }
summary:hover { color: var(--slate-deep); }
.d-body { padding-bottom: 18px; max-width: 62ch; }
.d-body p:last-child { margin-bottom: 0; }

.statement { background: var(--slate-deep); color: #fff; padding: 80px 0; }
.statement-in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.statement-big { font-family: var(--display); font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.1; margin: 0; }
.statement-text p { margin: 0; color: #E4ECF0; }
.prose-page.tight { padding: 56px 0; }
.prose-page.tight p { font-size: 1.2rem; margin: 0; }
.pqs { padding: 72px 0; }
.pqs-in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.pq { border-top: 3px solid var(--slate); padding-top: 18px; }
.pq h2 { font-size: 1.7rem; }
.next { background: var(--paper); padding: 56px 0; }
.next-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; border-top: 1px solid var(--slate); }
.next a { display: block; padding: 20px 0; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--slate-pale); }
.next strong { display: block; font-family: var(--display); font-size: 1.3rem; font-weight: 500; }
.next span { color: var(--ink-soft); }
.next a:hover strong { text-decoration: underline; text-decoration-color: var(--slate); text-underline-offset: 0.2em; }
.draft-note { background: #FFF6D6; border-inline-start: 4px solid var(--mustard); padding: 12px 16px; font-size: 1rem; }

/* ---------- accessibility menu ---------- */
.a11y-btn { position: fixed; z-index: 50; bottom: 18px; left: 18px; width: 52px; height: 52px; border-radius: 50%; border: 2px solid #fff; background: #1D4ED8; color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 8px 20px -6px rgba(0,0,0,0.5); }
.a11y-panel { position: fixed; z-index: 51; bottom: 82px; left: 18px; width: min(300px, calc(100vw - 36px)); background: #fff; color: #111; border: 2px solid #111; border-radius: 10px; padding: 18px; display: grid; gap: 8px; font-family: var(--body); font-size: 17px; line-height: 1.4; box-shadow: 0 20px 50px -15px rgba(0,0,0,0.6); }
.a11y-panel[hidden] { display: none; }
.a11y-title { font-family: var(--body); font-size: 19px; font-weight: 700; margin: 0 0 4px; }
.a11y-panel button { font: inherit; cursor: pointer; }
.a11y-size { display: flex; align-items: center; gap: 8px; }
.a11y-size span { margin-inline-end: auto; }
.a11y-size button { min-width: 48px; padding: 8px; background: #fff; color: #111; border: 1.5px solid #111; border-radius: 6px; font-weight: 700; }
.a11y-toggle { text-align: start; padding: 10px 12px; background: #fff; color: #111; border: 1.5px solid #999; border-radius: 6px; }
.a11y-toggle[aria-pressed="true"] { background: #111; color: #fff; border-color: #111; }
.a11y-reset { padding: 8px; background: none; border: 0; text-decoration: underline; color: #111; text-align: start; }
.a11y-statement { color: #111; }
.a11y-close { position: absolute; top: 8px; inset-inline-end: 8px; width: 32px; height: 32px; background: none; border: 0; font-size: 24px !important; line-height: 1; color: #111; }

html.a11y-contrast { --curtain: #fff; --paper: #fff; --ink: #000; --ink-soft: #000; --slate: #000; --slate-deep: #000; --slate-pale: #000; --mustard: #FFD400; --mustard-deep: #FFD400; }
html.a11y-contrast .hero::before { background: #fff; }
html.a11y-contrast .hero-photo img, html.a11y-contrast .page-head-photo img, html.a11y-contrast .matcher-box { box-shadow: none; outline: 2px solid #000; }
html.a11y-contrast .btn { outline: 2px solid #000; box-shadow: none; }
html.a11y-contrast .matcher-lede, html.a11y-contrast .statement-text p, html.a11y-contrast .contact-list dt, html.a11y-contrast .foot { color: #fff; }
html.a11y-contrast .foot { background: #000; }
html.a11y-gray body { filter: grayscale(1); }
html.a11y-links a:not(.btn) { text-decoration: underline !important; text-decoration-thickness: 2px !important; outline: 2px solid currentColor; outline-offset: 2px; }
html.a11y-font, html.a11y-font body, html.a11y-font h1, html.a11y-font h2, html.a11y-font h3, html.a11y-font summary, html.a11y-font .area-list strong, html.a11y-font .next strong, html.a11y-font .statement-big, html.a11y-font .brand-name { font-family: Arial, "Segoe UI", sans-serif !important; letter-spacing: 0.01em; }
html.a11y-font body { line-height: 1.9; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

@media (max-width: 900px) {
  .page-head { padding: 40px 0; }
  .page-head-in, .topic-in, .statement-in, .pqs-in, .next-in { grid-template-columns: 1fr; gap: 28px; }
  .page-head-photo { display: none; }
  .topic { padding: 48px 0; }
  .topic-head { position: static; }
  .statement { padding: 56px 0; }
}

/* ---------- WordPress content ---------- */
.prose img, .prose figure { max-width: 100%; height: auto; border-radius: 6px; }
.prose figure { margin: 1.5em 0; }
.prose figcaption { font-size: 0.95rem; color: var(--ink-soft); }
.prose blockquote { margin: 1.5em 0; padding-inline-start: 1em; border-inline-start: 3px solid var(--slate); color: var(--ink-soft); }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; font-weight: 600; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
