/* =====================================================================
   SHAFA — HOME design round 2 (owner fix list 2026-11-21). Loaded after home-hero.css.
   - balanced horizontal gutters (background stays full width; content in a centred, proportional container)
   - typography closer to the mockup: Heebo/Assistant first (when licensed webfont is added),
     then local Segoe UI Bold for headings and Gisha (regular) for running text; no synthetic 800 weight
   - logo: word + tapered wave as one centred mark, smaller centred tagline
   - phone pill shows the approved number
   ===================================================================== */
:root {
  --sh-font-head: "Heebo", "Segoe UI", Arial, sans-serif;
  --sh-font-body: "Heebo", "Segoe UI", Arial, sans-serif;
}

/* ---------- desktop / large tablet: proportional container with equal gutters ---------- */
@media (min-width: 1200px) {
  .shafa-site-header .shafa-header,
  .shafa-site-header .shafa-header__bar,
  .shafa-home__frame {
    --g: clamp(24px, 3.4cqw, 64px);
    --u: min(calc((100cqw - 2 * var(--g)) / 1672), .9333px);
  }
  .shafa-site-header .shafa-header__bar {
    inline-size: calc(1672 * var(--u)); max-inline-size: none !important; margin-inline: auto !important;
    padding-inline-start: calc(64 * var(--u)); padding-inline-end: 0; block-size: calc(96 * var(--u));
  }
  .shafa-home__frame { inline-size: calc(1672 * var(--u)); max-inline-size: none; margin-inline: auto;
    padding-block-end: calc(24 * var(--u)); min-block-size: calc(875 * var(--u)); }
  .shafa-home__person { border-radius: calc(26 * var(--u)); min-block-size: calc(851 * var(--u)); align-self: start;
    box-shadow: 0 calc(14 * var(--u)) calc(34 * var(--u)) rgba(7, 31, 56, .16); }
  body.shafa-local-mockup .shafa-home__frame { background-position: 0 0, right calc(-1 * var(--g)) top 0; }
}

/* ---------- logo (region 09) ---------- */
.shafa-logo { display: inline-flex !important; flex-direction: column; align-items: center; gap: 0; padding: 0 !important; text-decoration: none; }
.shafa-logo__mark { position: relative; display: inline-block; padding-block-start: calc(16 * var(--u, 1px)); line-height: 1; }
.shafa-logo__wave { position: absolute !important; inset-block-start: calc(-2 * var(--u, 1px)) !important; inset-inline-start: calc(-30 * var(--u, 1px)) !important;
  inline-size: calc(128 * var(--u, 1px)) !important; block-size: calc(28 * var(--u, 1px)) !important; margin: 0 !important; color: inherit !important; }
.shafa-logo__word { display: block; font-family: var(--sh-font-head) !important; font-size: calc(60 * var(--u, 1px)) !important; font-weight: 700 !important;
  line-height: .95 !important; letter-spacing: -.02em; color: var(--sh-navy) !important; }
.shafa-logo__tag { display: block; margin-block-start: calc(6 * var(--u, 1px)) !important; font-family: var(--sh-font-body) !important;
  font-size: calc(19 * var(--u, 1px)) !important; font-weight: 400 !important; letter-spacing: .01em; color: #1D2B3F !important; text-align: center; white-space: nowrap; }

/* ---------- navigation + phone ---------- */
.shafa-site-header .shafa-nav { font-family: var(--sh-font-body) !important; font-weight: 400 !important; }
.shafa-site-header .shafa-nav .wp-block-navigation-item__content { font-weight: 400; }
body.home .shafa-nav ul.wp-block-navigation__container > li:first-child > a.wp-block-navigation-item__content { font-family: var(--sh-font-head); font-weight: 700; }
.shafa-site-header .shafa-header-call { font-family: var(--sh-font-head) !important; font-weight: 700 !important; letter-spacing: .01em; text-decoration: none !important; }
.shafa-site-header .shafa-header-call .shafa-phone__text { direction: ltr; unicode-bidi: isolate; }
.shafa-site-header .shafa-header-call:hover { background: #00466F; color: #fff; }

/* ---------- typography inside the hero ---------- */
.shafa-home, .shafa-home__frame { font-family: var(--sh-font-body); }
.shafa-home__title { font-family: var(--sh-font-head) !important; font-weight: 700 !important; letter-spacing: -.015em; }
.shafa-home__lead { font-family: var(--sh-font-body); font-weight: 400; color: var(--sh-text); }
.shafa-card3__title { font-family: var(--sh-font-head) !important; font-weight: 700 !important; letter-spacing: -.005em; }
.shafa-card3__text { font-family: var(--sh-font-body); font-weight: 400; opacity: .98; }
.shafa-home__caption strong { font-family: var(--sh-font-head); font-weight: 700; letter-spacing: -.005em; color: #fff; }
.shafa-home__caption span { font-family: var(--sh-font-body); font-weight: 400; }
/* benefits: small, readable, under the cards */
.shafa-home__benefits li { font-family: var(--sh-font-body); font-weight: 700; font-size: calc(19 * var(--u)); line-height: 1.3; }
.shafa-home__benefits .shafa-icon { inline-size: calc(38 * var(--u)); block-size: calc(38 * var(--u)); stroke-width: 1.5; }

/* no visible AI tags in the comparison view (images stay local-only, documented in PROVENANCE.txt) */
.shafa-ai-tag { display: none !important; }

/* ---------- mobile: own gutters, nothing clipped ---------- */
@media (max-width: 767px) {
  .shafa-site-header .shafa-header__bar { padding-inline: 16px !important; }
  .shafa-logo__mark { padding-block-start: 10px; }
  .shafa-logo__word { font-size: 34px !important; }
  .shafa-logo__wave { inline-size: 74px !important; block-size: 16px !important; inset-inline-start: -18px !important; inset-block-start: -1px !important; }
  .shafa-logo__tag { font-size: 12px !important; margin-block-start: 3px !important; }
  .shafa-site-header .shafa-header-call { inline-size: auto !important; block-size: 40px; padding: 0 12px !important; font-size: 15px !important; gap: 6px; }
  .shafa-site-header .shafa-header-call .shafa-phone__text { position: static !important; inline-size: auto !important; block-size: auto !important; clip: auto !important; overflow: visible !important; white-space: nowrap; }
  .shafa-home__content { padding-inline: 18px !important; }
  .shafa-home__benefits li { font-size: 15.5px; }
  .shafa-home__benefits .shafa-icon { inline-size: 32px; block-size: 32px; }
  .shafa-card3__title { font-size: 21px !important; }
  .shafa-card3__text { font-size: 15.5px; }
}
@media (max-width: 380px) {
  .shafa-site-header .shafa-header-call .shafa-phone__text { font-size: 14px; }
  .shafa-site-header .shafa-header__bar { gap: 6px !important; padding-inline: 12px !important; }
}
/* tablet: same body font, smaller benefit text */
@media (min-width: 768px) and (max-width: 1199px) {
  .shafa-home__benefits li { font-size: 15.5px; }
  .shafa-logo__word { font-size: 40px !important; }
  .shafa-logo__tag { font-size: 14px !important; }
  .shafa-logo__wave { inline-size: 88px !important; block-size: 20px !important; }
}

/* ---------- round 2b: seamless background + logo wave not clipped ---------- */
.shafa-home { background: linear-gradient(180deg, #F5EFE9 0%, #F3EEEA 40%, #F2F0EE 100%); }
.shafa-home__frame, body.shafa-local-mockup .shafa-home__frame { background: transparent !important; isolation: isolate; }
/* decorative top strip (approved crop): exactly the text column, faded to transparent on every edge so it never shows a seam
   next to the portrait or spills past the frame (hero fix v2, 2026-11-22) */
body.shafa-local-mockup .shafa-home__frame::before {
  content: ""; position: absolute; z-index: -1; inset-block-start: 0; inset-inline-start: 0;
  inline-size: calc(100% - 525 * var(--u) - 20px); block-size: calc(258 * var(--u));
  background: url("../img/approved/crops/hero-ambient-top.webp") no-repeat right top / cover;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0, #000 38%, #000 78%, rgba(0,0,0,0) 100%), linear-gradient(to bottom, #000 0, #000 55%, rgba(0,0,0,0) 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, rgba(0,0,0,0) 0, #000 38%, #000 78%, rgba(0,0,0,0) 100%), linear-gradient(to bottom, #000 0, #000 55%, rgba(0,0,0,0) 100%);
  mask-composite: intersect; pointer-events: none; }
@media (max-width: 1199px) { body.shafa-local-mockup .shafa-home__frame::before { display: none; } }
.shafa-logo__mark { padding-block-start: calc(22 * var(--u, 1px)) !important; }
.shafa-logo__wave { inset-block-start: calc(2 * var(--u, 1px)) !important; }
@media (max-width: 767px) { .shafa-logo__mark { padding-block-start: 12px !important; } .shafa-logo__wave { inset-block-start: 0 !important; } }
@media (min-width: 1200px) {
  .shafa-site-header .shafa-header__bar { block-size: auto !important; min-block-size: calc(96 * var(--u)); padding-block: calc(6 * var(--u)) calc(4 * var(--u)); }
}
/* lower home sections (now rendered from the theme pattern): side gutters on every width */
.shafa-main--home > .shafa-section { padding-inline: clamp(18px, 4vw, 48px); }

/* ---------- v2 photos (owner Visual Grid v2): badges are painted in the images -> no duplicate HTML badge ---------- */
.shafa-home--v2-photos .shafa-card3__badge { display: none; }
/* soft hand-over from photo to the HTML colour band (band stays at the v1 text coordinates) */
.shafa-card3__body::before { content: ""; position: absolute; inset-inline: 0; inset-block-end: 100%; block-size: calc(22 * var(--u, 1px));
  background: linear-gradient(180deg, rgba(0, 99, 142, 0) 0%, rgba(0, 99, 142, .55) 100%); pointer-events: none; }
.shafa-card3--insoles .shafa-card3__body::before { background: linear-gradient(180deg, rgba(20, 120, 78, 0) 0%, rgba(20, 120, 78, .55) 100%); }

/* narrow cards crop the v2 photo: anchor top-right so the painted badge stays whole */


/* =====================================================================
   ROUND 3 (owner approval 2026-11-21): doubled, equal desktop gutters; lighter card titles;
   one Hebrew family for all page text incl. benefits. Logo, phone and name unchanged.
   ===================================================================== */
:root {
  --sh-font-head: "Heebo", "Segoe UI", Arial, sans-serif;
  --sh-font-body: "Heebo", "Segoe UI", Arial, sans-serif;   /* same family everywhere (was Gisha for body) */
}
/* logo is frozen: keep its tagline exactly as approved in round 2 */
.shafa-logo__tag { font-family: "Heebo", "Segoe UI", Arial, sans-serif !important; }
@media (min-width: 1200px) {
  .shafa-site-header .shafa-header,
  .shafa-site-header .shafa-header__bar,
  .shafa-home__frame {
    --g: clamp(48px, 6.8cqw, 128px);                       /* ~2x the previous gutter (57px -> ~114px at 1672) */
    --u: min(calc((100cqw - 2 * var(--g)) / 1672), .8636px);
  }
}
.shafa-card3__title { font-weight: 600 !important; letter-spacing: 0; }   /* Segoe UI Semibold instead of Bold */
.shafa-home__benefits li { font-family: var(--sh-font-body); font-weight: 600; }
.shafa-home__lead, .shafa-card3__text, .shafa-home__caption span, .shafa-site-header .shafa-nav { font-family: var(--sh-font-body) !important; }
