/* «עיצובים» v2 — loaded only for a site with a design. Variables come from the design (see src/data/designs.js):
   --bg --bg2 --ink --ink2 --p --on --a --soft --line --fh --fb --hw --track. Classes on <body>:
   dz d-<key> h-<hero> sh-<shape> mo-<motion> sv-<services> dv-<dividers> [dk] [hf flip] [hc centred]. */

/* ---------- Base: palette, fonts, surfaces ---------- */
body.dz { --card: #fff; --r: 18px; --r-s: 12px; --shadow: 0 24px 50px -30px color-mix(in srgb, var(--ink) 40%, transparent); background: var(--bg); color: var(--ink); font-family: var(--fb), 'Heebo', system-ui, sans-serif; }
.dz.dk { --art-deep: color-mix(in srgb, var(--bg) 70%, #000); --card: var(--bg2); --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); color-scheme: dark; }
.dz h1, .dz h2, .dz h3, .dz .s-title, .dz .s-brand b { font-family: var(--fh), var(--fb), sans-serif; font-weight: var(--hw); letter-spacing: var(--track); color: var(--ink); }
.dz p, .dz .s-lead { color: var(--ink2); }
.dz a { color: color-mix(in srgb, var(--p) 80%, var(--ink)); }
.dz.dk a { color: var(--p); }
.dz .s-btn { background: var(--p); color: var(--on) !important; font-family: var(--fb), sans-serif; }
.dz .s-btn-wa { background: #0b7a43; color: #fff !important; }
.dz .s-btn-ghost, .dz .s-btn-light { background: var(--card); color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--line); }
.dz .s-card, .dz .s-faq, .dz .s-form, .dz .s-tool, .dz .s-why-list li, .dz .s-stat-list, .dz .s-hours, .dz .s-chips li, .dz .s-live, .dz .s-calc-opt span, .dz .s-pick span, .dz .s-a11y-panel, .dz .s-steps li, .dz .s-live-card { background: var(--card); color: var(--ink); }
.dz .s-form input, .dz .s-form textarea, .dz .s-tool-row input, .dz .s-cb-name input { background: var(--bg); color: var(--ink); border-color: var(--line); }
.dz .s-why, .dz .s-tools { background: var(--bg2); }
.dz .s-cta { background: linear-gradient(160deg, var(--bg2), var(--bg) 70%); }
.dz .s-top.scrolled { background: color-mix(in srgb, var(--bg) 88%, transparent); }
.dz .s-kicker { color: color-mix(in srgb, var(--p) 75%, var(--ink)); }
.dz.dk .s-kicker { color: var(--a); }
.dz .s-foot { background: var(--bg2); color: var(--ink2); }
.dz .s-foot b, .dz .s-foot a { color: var(--ink); } /* the base footer is dark; design footers are light */
.dz .s-card-ic { background: var(--soft); color: var(--p); }
.dz.dk .s-card-ic { color: var(--a); }
.dz .s-badge { background: var(--card); color: var(--ink); }
.dz .s-mono { background: var(--p); color: var(--on); }

/* Pictures (client photos / library photos / original illustrations) */
.dz figure { margin: 0; position: relative; overflow: hidden; background: var(--bg2); }
.dz figure > img, .dz figure > .s-art, .dz .hx-fig2 > img, .dz .hx-fig2 > .s-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; aspect-ratio: auto; margin: 0; }
.s-credit { position: absolute; z-index: 2; inset-inline-start: 8px; bottom: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .45); color: #fff; font-size: .7rem; line-height: 1.6; }
.s-credit a { color: #fff !important; text-decoration: underline; }
.s-illus { position: absolute; z-index: 2; top: 8px; inset-inline-start: 8px; padding: 2px 8px; border-radius: 6px; background: #fff; color: #1d1530; font-size: .72rem; font-weight: 700; }

/* ---------- Shapes ---------- */
.sh-sharp { --r: 2px; --r-s: 2px; }
.sh-sharp .s-btn { border-radius: 2px; }
.sh-soft { --r: 16px; --r-s: 10px; }
.sh-soft .s-btn { border-radius: 12px; }
.sh-round { --r: 32px; --r-s: 22px; }
.sh-round .s-btn { border-radius: 99px; }

/* ---------- Motion ---------- */
.mo-none .rv, .mo-none .s-title .w > span { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
.mo-none .s-pulse::after { display: none; }
.motion.mo-lively .hx-fig, .motion .mo-lively .hx-fig { animation: dz-float 7s ease-in-out infinite; }
@keyframes dz-float { 50% { transform: translateY(-10px); } }

/* ---------- Heroes ---------- */
.hx { position: relative; isolation: isolate; overflow: hidden; padding: 118px 0 72px; min-height: min(100svh, 860px); display: flex; align-items: center; background: var(--bg); }
.hx-in { position: relative; display: grid; gap: 40px; align-items: center; width: 100%; }
.hx .s-title { font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: 1.02; }
.hx-text { position: relative; z-index: 2; }
.hc .hx-text { text-align: center; margin-inline: auto; max-width: 900px; }
.hc .hx-text .s-hero-meta, .hc .hx-text .s-actions, .hc .hx-text .s-trust { justify-content: center; }

/* Full photo (+ cinema = slow zoom, centred) */
.hx-photo, .hx-cinema { color: #fff; min-height: min(100svh, 920px); }
.hx-bg { position: absolute; inset: 0; z-index: -2; }
.hx-bg img, .hx-bg .s-art { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; aspect-ratio: auto; margin: 0; }
.hx-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .25) 70%), linear-gradient(90deg, color-mix(in srgb, var(--p) 35%, transparent), transparent); }
.hx-photo .hx-text { max-width: 760px; }
.hx-photo .s-title, .hx-cinema .s-title, .hx-photo .s-lead, .hx-cinema .s-lead, .hx-photo .s-trust, .hx-cinema .s-trust { color: #fff; }
.hx-photo .s-badge, .hx-cinema .s-badge { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(8px); }
.hx-cinema .hx-text { text-align: center; margin-inline: auto; max-width: 880px; }
.hx-cinema .s-hero-meta, .hx-cinema .s-actions, .hx-cinema .s-trust { justify-content: center; }
.hx-cinema .hx-shade { background: radial-gradient(ellipse at center, rgba(0, 0, 0, .35), rgba(0, 0, 0, .8)); }
.motion .hx-cinema .hx-bg > *, .motion.hx-cinema .hx-bg > * { animation: dz-kenburns 24s ease-in-out infinite alternate; }
@keyframes dz-kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-2%, -1%); } }

/* Split / diagonal / arch / circle: text + one shaped picture */
@media (min-width: 960px) { .hx-split .hx-in, .hx-diagonal .hx-in, .hx-arch .hx-in, .hx-circle .hx-in { grid-template-columns: 1.05fr .95fr; } .hf .hx-fig { order: -1; } }
.hx-fig { aspect-ratio: 4 / 5; border-radius: var(--r); box-shadow: var(--shadow); }
.hx-split .hx-fig { aspect-ratio: 4 / 4.4; }
.hx-diagonal { padding-bottom: 0; }
.hx-diagonal::before { content: ''; position: absolute; z-index: -1; inset: 0 auto 0 0; width: 46%; background: var(--p); clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%); }
.hf.hx-diagonal::before, .hf .hx-diagonal::before { inset: 0 0 0 auto; clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }
.hx-diagonal .hx-fig { aspect-ratio: 1 / 1; clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%); border-radius: 0; }
/* Phones: the colour band sits under the picture, never behind the text */
@media (max-width: 959px) { .hx-diagonal::before, .hf.hx-diagonal::before, .hf .hx-diagonal::before { inset: auto 0 0 0; width: 100%; height: 34%; clip-path: polygon(0 26%, 100% 0, 100% 100%, 0 100%); } }
.hx-arch .hx-fig { aspect-ratio: 3 / 4; border-radius: 999px 999px var(--r) var(--r); overflow: visible; background: none; box-shadow: none; }
.hx-arch .hx-fig > img, .hx-arch .hx-fig > .s-art { border-radius: 999px 999px var(--r) var(--r); }
.hx-circle .hx-fig { aspect-ratio: 1; border-radius: 50%; overflow: visible; background: none; box-shadow: none; }
.hx-circle .hx-fig > img, .hx-circle .hx-fig > .s-art { border-radius: 50%; box-shadow: 0 0 0 14px var(--bg), 0 0 0 16px var(--a); }
.hx-fig2 { position: absolute; z-index: 3; width: 38%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; inset-inline-end: -6%; bottom: 4%; box-shadow: 0 0 0 8px var(--bg), var(--shadow); background: var(--bg2); }
.hx-arch .hx-fig2 { border-radius: var(--r); inset-inline-end: auto; inset-inline-start: -8%; bottom: 10%; }

/* Giant type + a ticker of the services */
.hx-type { padding-bottom: 0; flex-direction: column; justify-content: center; }
.hx-type .s-title { font-size: clamp(3.2rem, 10vw, 8.6rem); line-height: .95; }
.hx-type .hx-text { max-width: 1100px; }
.hx-marquee { width: 100%; margin-top: 56px; padding: 18px 0; overflow: hidden; background: var(--p); color: var(--on); font-family: var(--fh), sans-serif; font-size: clamp(1.4rem, 3vw, 2.2rem); white-space: nowrap; }
.hx-marquee div { display: inline-flex; gap: 28px; align-items: center; padding-inline-start: 28px; }
.motion .hx-marquee div { animation: dz-ticker 40s linear infinite; }
.hx-marquee i { font-style: normal; color: var(--a); }
@keyframes dz-ticker { to { transform: translateX(50%); } }

/* Minimal white */
.hx-minimal { min-height: auto; padding: 150px 0 80px; }
.hx-minimal .hx-in { grid-template-columns: 1fr; gap: 48px; }
.hx-minimal .s-title { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: var(--hw); max-width: 15ch; }
.hc.hx-minimal .s-title, .hc .hx-minimal .s-title { margin-inline: auto; }
.hx-minimal .hx-text::after { content: ''; display: block; width: 80px; height: 3px; margin-top: 34px; background: var(--p); }
.hc .hx-minimal .hx-text::after { margin-inline: auto; }
.hx-minimal .hx-fig { aspect-ratio: 21 / 8; border-radius: var(--r); box-shadow: none; }

/* Magazine: a collage */
@media (min-width: 960px) { .hx-magazine .hx-in { grid-template-columns: .9fr 1.1fr; } .hf .hx-magazine .hx-collage, .hf.hx-magazine .hx-collage { order: -1; } }
.hx-magazine .s-title { font-size: clamp(2.8rem, 6vw, 5.4rem); }
.hx-collage { display: grid; gap: 14px; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; min-height: 520px; }
.hx-collage figure:first-child { grid-row: span 2; border-radius: var(--r); }
.hx-collage figure { border-radius: var(--r-s); box-shadow: var(--shadow); }

/* Cards: headline + three picture cards */
.hx-cards .hx-in { grid-template-columns: 1fr; gap: 48px; }
.hx-cards .hx-text { max-width: 820px; }
.hx-cards ul, .hx-cards .hx-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.hx-cards li { display: grid; border-radius: var(--r); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.hx-cards li figure { aspect-ratio: 4 / 3; }
.hx-cards li b { padding: 14px 18px; font-family: var(--fh), sans-serif; font-weight: var(--hw); font-size: 1.15rem; }
.hc .hx-cards .hx-text { margin-inline: auto; }

/* Band: a colour band + a strip of pictures */
.hx-band { display: block; padding: 0; min-height: auto; }
.hx-bandbg { padding: 140px 0 120px; background: var(--p); }
.hx-band .s-title, .hx-band .s-lead, .hx-band .s-trust { color: var(--on); }
.hx-band .s-badge { background: color-mix(in srgb, var(--on) 14%, transparent); color: var(--on); }
.hx-band .s-btn { background: var(--on); color: var(--p) !important; }
.hx-band .s-btn-wa { background: #0b7a43; color: #fff !important; }
.hx-band .hx-text { max-width: 820px; }
.hf .hx-band .hx-text, .hf.hx-band .hx-text { margin-inline-start: auto; }
.hx-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: -70px; position: relative; z-index: 2; }
.hx-strip figure { aspect-ratio: 4 / 3; border-radius: var(--r); box-shadow: var(--shadow); }
@media (max-width: 700px) { .hx-strip { grid-template-columns: 1fr 1fr; } .hx-strip figure:last-child { display: none; } .hx-collage { min-height: 360px; } }

/* ---------- Services styles ---------- */
.sv-rows .s-cards { grid-template-columns: 1fr; gap: 0; }
.sv-rows .s-card { display: grid; grid-template-columns: 70px 1fr; column-gap: 20px; border-radius: 0; background: none; box-shadow: none; border-top: 1px solid var(--line); padding: 26px 4px; }
.sv-rows .s-card-ic { grid-row: span 2; margin: 0; }
.sv-rows .s-card-n { display: none; }
.sv-numbered .s-cards { counter-reset: n; }
.sv-numbered .s-card { padding-top: 70px; }
.sv-numbered .s-card-n { top: 16px; inset-inline-start: 22px; inset-inline-end: auto; font-size: 2.6rem; font-family: var(--fh), sans-serif; color: var(--p); opacity: 1; }
.dk.sv-numbered .s-card-n, .dk .sv-numbered .s-card-n { color: var(--a); }
.sv-numbered .s-card-ic { display: none; }
.sv-tiles .s-card { padding: 0 0 22px; overflow: hidden; }
.sv-tiles .s-card-img { aspect-ratio: 16 / 10; margin: 0 0 18px; border-radius: 0; }
.sv-tiles .s-card h3, .sv-tiles .s-card p { padding: 0 22px; }
.sv-tiles .s-card-n { z-index: 2; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.sv-icons .s-card { text-align: center; background: none; box-shadow: none; }
.sv-icons .s-card-ic { margin-inline: auto; width: 84px; height: 84px; border-radius: 50%; }
.sv-icons .s-card-n { display: none; }
.sv-list .s-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 0 40px; }
.sv-list .s-card { background: none; box-shadow: none; border-radius: 0; padding: 22px 0; border-bottom: 1px solid var(--line); }
.sv-list .s-card-ic { display: none; }
.sv-list .s-card-n { position: static; display: block; margin-bottom: 6px; font-family: var(--fh), sans-serif; color: var(--p); }
.sv-list .s-card h3 { font-size: 1.45rem; }

/* ---------- Section dividers ---------- */
.dv-slant .s-why, .dv-slant .s-tools, .dv-slant .s-cta { clip-path: polygon(0 3vw, 100% 0, 100% 100%, 0 100%); padding-top: calc(clamp(64px, 9vw, 120px) + 3vw); }
.dv-wave .s-why, .dv-wave .s-tools, .dv-wave .s-cta { border-radius: 50% 50% 0 0 / 48px 48px 0 0; }

/* ---------- Per-design accents (small touches that make each one its own) ---------- */
.d-concrete .s-title, .d-concrete h2 { text-transform: none; font-size: clamp(3.4rem, 11vw, 9rem); }
.d-concrete h2 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.d-midnight .hx-type .s-title .w:nth-child(2n) > span { color: var(--p); }
.d-ink .hx-type .s-title { font-style: italic; }
.d-volt .hx-diagonal::before { background: var(--a); }
.d-volt .s-btn { box-shadow: 6px 6px 0 var(--a); }
.d-steel .hx-bandbg { background: linear-gradient(135deg, var(--p), color-mix(in srgb, var(--p) 70%, #000)); }
.d-steel .s-head { border-inline-start: 6px solid var(--a); padding-inline-start: 16px; }
.d-chalk h1, .d-chalk h2, .d-chalk h3 { font-size: 125%; }
.d-chalk .hx-cards li { transform: rotate(-1.5deg); } .d-chalk .hx-cards li:nth-child(2) { transform: rotate(1.2deg); }
.d-neon .s-btn { box-shadow: 0 0 0 1px var(--p), 0 0 28px color-mix(in srgb, var(--p) 70%, transparent); }
.d-neon .s-title .w:last-child > span { color: var(--a); }
.d-velvet .s-title, .d-pearl .s-title, .d-sand .s-title { font-weight: 400; letter-spacing: .01em; }
.d-royal .s-head h2::after, .d-atelier .s-head h2::after { content: ''; display: block; width: 64px; height: 2px; margin-top: 14px; background: var(--a); }
.d-ember .s-title .w:first-child > span { color: var(--p); }
.d-citrus .hx { background: radial-gradient(60% 60% at 80% 20%, color-mix(in srgb, var(--a) 40%, transparent), transparent), var(--bg); }
.d-mint .hx, .d-aqua .hx { background: linear-gradient(160deg, var(--bg2), var(--bg) 60%); }
.d-sky .hx { background: radial-gradient(50% 50% at 75% 40%, color-mix(in srgb, var(--a) 25%, transparent), transparent), linear-gradient(180deg, var(--bg2), var(--bg)); }
.d-blush .hx { background: radial-gradient(55% 55% at 25% 30%, var(--bg2), transparent), var(--bg); }
.d-olive .hx { background: linear-gradient(180deg, var(--bg2) 0 60%, var(--bg) 60%); }
.d-harbor .hx-collage figure:first-child { border-radius: 0; }
.d-forest .hx-shade { background: linear-gradient(0deg, rgba(10, 30, 15, .85), rgba(10, 30, 15, .2) 75%); }
.d-ocean .hx-shade { background: linear-gradient(0deg, rgba(4, 32, 58, .92), rgba(4, 32, 58, .35) 70%); }
.d-nordic .s-sec { padding-block: clamp(80px, 11vw, 150px); }
.d-linen .hx-minimal .hx-fig { aspect-ratio: 16 / 7; }
.d-glacier .s-hero, .d-sunrise .s-hero { background: var(--bg); }
.d-terracotta .hx-bandbg { border-radius: 0 0 50% 50% / 0 0 60px 60px; }
.d-brick .hx-split .hx-fig, .d-brick .hx-fig { border-radius: var(--r) var(--r) var(--r) 120px; }
.d-solar .hx-circle .hx-fig > img, .d-solar .hx-circle .hx-fig > .s-art { box-shadow: 0 0 0 14px var(--bg), 0 0 0 16px var(--a), 0 0 0 40px color-mix(in srgb, var(--a) 18%, transparent); }
.d-graphite .hx-fig { box-shadow: 0 0 0 1px var(--line), 0 0 60px -10px color-mix(in srgb, var(--p) 35%, transparent); }

@media (prefers-reduced-motion: reduce) { .hx-marquee div, .hx-bg > *, .hx-fig { animation: none !important; } }

/* Tighter rhythm (no half-empty screens between sections) */
.dz .s-sec { padding-block: clamp(48px, 6.5vw, 88px); }
.dz .s-stats { padding: 0; margin-top: -20px; }
.dz .s-head { margin-bottom: clamp(20px, 3vw, 34px); }
.dz .hx { min-height: min(92svh, 820px); }
.dz .hx-minimal, .dz .hx-band { min-height: auto; }
.hx-arrive { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 0; padding: 8px 14px; border-radius: 99px; background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.hx-photo .hx-arrive, .hx-cinema .hx-arrive { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; }
.hx-arrive b { color: var(--p); } .dk .hx-arrive b, .hx-photo .hx-arrive b, .hx-cinema .hx-arrive b, .hx-band .hx-arrive b { color: inherit; }

/* Rhythm + richness: tighter sections, alternating backgrounds, pictures in the middle of the page */
.dz .s-sec { padding-block: clamp(40px, 5vw, 76px); }
.dz main > .s-sec:nth-of-type(even):not(.s-stats):not(.s-cta) { background: var(--bg2); }
.dz main > .s-sec:nth-of-type(even) .s-card, .dz main > .s-sec:nth-of-type(even) .s-faq, .dz main > .s-sec:nth-of-type(even) .s-why-list li { background: var(--card); }
.dz-strip { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; margin-top: clamp(22px, 3vw, 34px); }
.dz-strip figure { aspect-ratio: 4 / 3; border-radius: var(--r); box-shadow: var(--shadow); }
.dz-strip figure:first-child { aspect-ratio: auto; grid-row: span 1; }
@media (max-width: 700px) { .dz-strip { grid-template-columns: 1fr 1fr; } .dz-strip figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; } }
.dz-about-in { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .dz-about-in { grid-template-columns: .9fr 1.1fr; } }
.dz-about-fig { aspect-ratio: 4 / 3.4; border-radius: var(--r); box-shadow: var(--shadow); }
.dz-about .s-about { font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.75; }
.dz-about .s-trust { margin: 14px 0 20px; }
