/* ════════════════════════════════════════════════════════════════════════
   Karen Rafael — website styles (shared across pages)
   Consumes the design-system tokens from ../../styles.css
   ════════════════════════════════════════════════════════════════════════ */

:root { --nav-h: 76px; }
html { scroll-behavior: smooth; }
body { background: var(--surface-page); overflow-x: hidden; }
.wrap { max-width: var(--content-w); margin-inline: auto; padding-inline: var(--gutter); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-sans); font-weight: 600; line-height: 1; cursor: pointer;
  border-radius: var(--r-md); padding: 14px 26px; font-size: 16px;
  border: 1px solid transparent; text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-soft), background var(--dur-base), box-shadow var(--dur-base);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--text-on-sage); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-strong); color: var(--white); }
.btn-secondary { background: var(--surface-raised); color: var(--brand-strong); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--sage-400); }
.btn-light { background: var(--white); color: var(--brand-strong); }
.btn-light:hover { background: var(--sand-50); }
.eyebrow {
  font-family: var(--font-meta); font-size: var(--t-meta); font-weight: 600;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--accent-strong);
}

/* ── Photo placeholders (drop real photography here) ── */
.photo {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 70% 15%, var(--sage-100), transparent 60%),
    radial-gradient(100% 100% at 20% 90%, var(--clay-50), transparent 55%),
    linear-gradient(160deg, var(--sage-200), var(--sand-200));
  box-shadow: var(--shadow-md);
}
.photo::after {
  content: "תמונה"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-meta); font-size: 13px; letter-spacing: .12em;
  color: rgba(43, 38, 48, .3);
}
.photo.has-img::after { content: none; }
/* When an image is present, the frame follows the image's natural ratio
   (no fixed aspect-ratio, no cropping) and scales with its column width.
   Location selectors raise specificity above the per-slot aspect-ratio rules. */
.hero-photo .photo.has-img,
.about-photo .photo.has-img,
.kids-photo .photo.has-img,
.story-photo .photo.has-img,
.photo.has-img {
  aspect-ratio: auto; height: auto; background: none;
}
.photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.photo img.cms-photo { height: auto; object-fit: contain; display: block; }

/* ── Header ── */
header {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  backdrop-filter: saturate(1.2) blur(10px);
  background: color-mix(in srgb, var(--surface-page) 82%, transparent);
  border-bottom: 1px solid transparent; transition: border-color var(--dur-base), background var(--dur-base);
}
header.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--surface-page) 92%, transparent); }
.nav { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .nm { font-family: var(--font-serif); font-weight: 500; font-size: 23px; color: var(--ink-900); line-height: 1; }
.brand .sb { font-family: var(--font-meta); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-strong); margin-top: 4px; }
nav.links { display: flex; align-items: center; gap: 30px; }
nav.links a { font-family: var(--font-sans); font-size: 16px; font-weight: 500; color: var(--text-body); position: relative; text-decoration: none; }
nav.links a::after { content: ""; position: absolute; right: 0; bottom: -5px; height: 2px; width: 0; background: var(--accent); transition: width var(--dur-base) var(--ease-soft); }
nav.links a:hover { color: var(--ink-900); }
nav.links a:hover::after, nav.links a.active::after { width: 100%; }
nav.links a.active { color: var(--ink-900); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.phone { font-family: var(--font-meta); font-weight: 600; color: var(--ink-900); font-size: 15px; display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--ink-900); margin: 5px 0; transition: transform .3s var(--ease-soft), opacity .2s; }
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile dropdown menu ── */
.mobile-menu {
  position: fixed; top: var(--nav-h); inset-inline: 0; z-index: 49;
  background: var(--surface-raised); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; padding: 6px 0 14px;
  transform: translateY(-14px); opacity: 0; visibility: hidden;
  transition: opacity .26s var(--ease-soft), transform .26s var(--ease-soft), visibility .26s;
}
.mobile-menu.open { transform: none; opacity: 1; visibility: visible; }
.mobile-menu a { font-family: var(--font-sans); font-size: 18px; font-weight: 500; color: var(--ink-900); text-decoration: none; padding: 15px var(--gutter); border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .mm-book { color: #fff; background: var(--brand); margin: 14px var(--gutter) 4px; border-radius: var(--r-md); text-align: center; border-bottom: none; padding: 14px; }
.mobile-menu .mm-phone { color: var(--accent-strong); font-family: var(--font-meta); font-weight: 700; direction: ltr; text-align: center; }
@media (min-width: 881px) { .mobile-menu { display: none; } }

/* ── Hero (home) ── */
.hero { position: relative; padding-top: clamp(40px, 4vw, 72px); padding-bottom: var(--section-y); }
.hero::before {
  content: ""; position: absolute; inset: -10% -20% auto auto; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle at 50% 50%, var(--sage-50), transparent 62%); z-index: 0; pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: var(--t-display); font-weight: 400; line-height: 1.05; margin: 18px 0 0; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: var(--t-lead); color: var(--text-muted); line-height: 1.7; margin: 22px 0 0; max-width: 40ch; }
.hero .cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-photo { position: relative; }
.hero-photo .photo { aspect-ratio: 4/5; }
.hero-photo .badge {
  position: absolute; bottom: 22px; inset-inline-start: -22px; z-index: 2;
  background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 14px 18px; display: flex; align-items: center; gap: 12px; max-width: 230px;
}
.hero-photo .badge .q { font-family: var(--font-serif); font-size: 16px; color: var(--ink-900); line-height: 1.35; }

/* ── Inner-page hero ── */
.page-hero { position: relative; text-align: center; padding-block: clamp(56px, 6vw, 96px) clamp(40px, 4vw, 64px); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: -40% -10% auto 50%; transform: translateX(50%); width: 70vw; height: 70vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle at 50% 50%, var(--sage-50), transparent 62%); z-index: 0; pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: var(--t-h1); font-weight: 400; margin: 14px 0 0; }
.page-hero .lead { font-size: var(--t-lead); color: var(--text-muted); line-height: 1.7; margin: 18px auto 0; max-width: 52ch; }

/* ── Trust strip ── */
.strip { border-block: 1px solid var(--line); background: var(--surface-sunken); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 18px 44px; justify-content: center; padding-block: 22px; }
.strip .item { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-meta); font-size: 15px; color: var(--text-body); }
.strip .item b { color: var(--ink-900); font-weight: 600; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage-400); }

/* ── Section base ── */
section.block { padding-block: var(--section-y); }
.sec-head { max-width: 50ch; }
.sec-head h2 { font-size: var(--t-h2); margin: 12px 0 0; }
.sec-head p { font-size: var(--t-lead); color: var(--text-muted); line-height: 1.7; margin: 16px 0 0; }
.center { margin-inline: auto; text-align: center; }

/* ── About / story two-column ── */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-photo .photo { aspect-ratio: 3/4; }
.about-body p { font-size: var(--t-body); color: var(--text-body); line-height: var(--lh-relaxed); }
.about-body p + p { margin-top: 4px; }
.about-sign { font-family: var(--font-serif); font-size: 26px; color: var(--brand); margin-top: 18px; }

/* ── Kids feature band ── */
.kids-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.kids-photo .photo { aspect-ratio: 3/4; }
.kids-body p { font-size: var(--t-body); color: var(--text-body); line-height: var(--lh-relaxed); }
.kids-body p + p { margin-top: 4px; }
.kids-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.kids-tags span { font-family: var(--font-meta); font-size: 14px; font-weight: 500; color: var(--brand-strong); background: var(--surface-raised); border: 1px solid var(--line-sage); border-radius: var(--r-full); padding: 7px 16px; }

/* ── Student discount note ── */
.student-note { display: flex; align-items: flex-start; gap: 13px; margin-top: 26px; padding: 16px 18px; background: var(--surface-clay); border: 1px solid var(--clay-200); border-radius: var(--r-md); }
.student-note svg { width: 22px; height: 22px; flex-shrink: 0; stroke: var(--accent-strong); margin-top: 2px; }
.student-note p { margin: 0; font-family: var(--font-meta); font-size: 15px; line-height: 1.6; color: var(--text-body); }
.student-note strong { color: var(--accent-strong); font-weight: 700; }

.story-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.story-grid.flip { grid-template-columns: 0.85fr 1.15fr; }
.story-grid.flip .story-photo { order: -1; }
.story-photo .photo { aspect-ratio: 4/5; }
.prose h2 { font-size: var(--t-h2); margin: 12px 0 18px; }
.prose p { font-size: var(--t-body); color: var(--text-body); line-height: var(--lh-relaxed); max-width: 60ch; }
.prose p + p { margin-top: 14px; }

/* ── Process steps ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.step { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px; box-shadow: var(--shadow-xs); }
.step .num { font-family: var(--font-serif); font-size: 30px; color: var(--accent); line-height: 1; }
.step h3 { font-size: 19px; margin: 14px 0 8px; }
.step p { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ── Treatment cards ── */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.area {
  background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 28px; box-shadow: var(--shadow-xs);
  transition: transform var(--dur-base) var(--ease-soft), box-shadow var(--dur-base) var(--ease-soft), border-color var(--dur-base);
}
.area:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-sage); }
.area .ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-sage); margin-bottom: 18px; }
.area .ic svg { width: 22px; height: 22px; stroke: var(--brand-strong); }
.area h3 { font-size: 22px; margin: 0 0 10px; }
.area p { font-size: 15px; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* ── Quote band ── */
.quote-band { background: var(--surface-ink); color: var(--text-on-dark); position: relative; overflow: hidden; }
.quote-band::before { content: ""; position: absolute; inset: auto auto -30% -10%; width: 480px; height: 480px; background: radial-gradient(circle, rgba(124, 108, 137, .42), transparent 65%); }
.quote-band .wrap { position: relative; z-index: 1; text-align: center; padding-block: clamp(64px, 8vw, 120px); }
.quote-band .mk { font-family: var(--font-serif); font-size: 64px; color: var(--clay-400); line-height: 0; }
.quote-band blockquote { font-family: var(--font-serif); font-weight: 400; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.4; margin: 18px auto 0; max-width: 20ch; color: var(--sand-50); }
.quote-band cite { display: block; margin-top: 26px; font-family: var(--font-meta); font-style: normal; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-200); }

/* ── Closing CTA band ── */
.cta-band { background: var(--surface-sage); border-block: 1px solid var(--line-sage); }
.cta-band .wrap { text-align: center; padding-block: clamp(56px, 7vw, 96px); }
.cta-band h2 { font-size: var(--t-h2); margin: 0 0 14px; }
.cta-band p { font-size: var(--t-lead); color: var(--text-muted); margin: 0 auto 28px; max-width: 46ch; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-info .lead { font-size: var(--t-lead); color: var(--text-body); line-height: 1.7; }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list .ci { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-raised); border: 1px solid var(--line); display: grid; place-items: center; flex-shrink: 0; }
.contact-list .ci svg { width: 20px; height: 20px; stroke: var(--brand-strong); }
.contact-list .k { font-family: var(--font-meta); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.contact-list .v { font-size: 16px; color: var(--ink-900); font-weight: 500; }
form.card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--font-meta); font-size: 14px; font-weight: 600; color: var(--text-strong); }
.field input, .field textarea {
  font-family: var(--font-sans); font-size: 16px; color: var(--text-strong);
  background: var(--surface-page); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 13px 15px; outline: none; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); width: 100%; box-sizing: border-box;
}
.field input:focus, .field textarea:focus { border-color: var(--sage-500); box-shadow: 0 0 0 3px var(--sage-100); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-family: var(--font-meta); font-size: 12.5px; color: var(--text-muted); text-align: center; }

/* ── Footer ── */
footer { border-top: 1px solid var(--line); background: var(--surface-sunken); }
footer .wrap { padding-block: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer .nm { font-family: var(--font-serif); font-size: 20px; color: var(--ink-900); }
footer .meta { font-family: var(--font-meta); font-size: 13px; color: var(--text-muted); }

/* ── Hero entrance — plays once on load, transform-only (content never hidden) ── */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-photo { animation: krRise .9s var(--ease-soft) both; }
  .hero-copy > *:nth-child(1) { animation-delay: .05s; }
  .hero-copy > *:nth-child(2) { animation-delay: .13s; }
  .hero-copy > *:nth-child(3) { animation-delay: .22s; }
  .hero-copy > *:nth-child(4) { animation-delay: .31s; }
  .hero-photo { animation-delay: .18s; animation-name: krRisePhoto; }
}
@keyframes krRise { from { transform: translateY(18px); } to { transform: none; } }
@keyframes krRisePhoto { from { transform: translateY(22px) scale(.99); } to { transform: none; } }

/* ── Responsive ── */
@media (max-width: 880px) {
  nav.links, .nav-cta { display: none; }
  .menu-btn { display: block; }
  .brand .nm { font-size: 22px; }
  .brand .sb { font-size: 12.5px; margin-top: 5px; }
  .hero-grid, .about-grid, .kids-grid, .story-grid, .story-grid.flip, .contact-grid { grid-template-columns: 1fr; }
  .hero-photo, .kids-grid .kids-photo, .story-grid.flip .story-photo { order: -1; max-width: 460px; }
  .areas { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .two { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}

/* ── WhatsApp ── */
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe5b; color: #fff; }
.btn-wa svg { width: 20px; height: 20px; }
.wa-fab {
  position: fixed; left: 24px; bottom: 24px; z-index: 80;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .6), var(--shadow-md);
  transition: transform var(--dur-base) var(--ease-soft), box-shadow var(--dur-base);
}
.wa-fab:hover { transform: translateY(-3px) scale(1.04); color: #fff; }
.wa-fab svg { width: 30px; height: 30px; }
@media (max-width: 520px) {
  .wa-fab { width: 52px; height: 52px; left: 16px; bottom: 16px; }
  .wa-fab svg { width: 27px; height: 27px; }
}
