/**
 * ציון שאול — סגנונות שאין להם ייצוג ב-theme.json.
 *
 * כל הצבעים, הפונטים והמרווחים מגיעים מ-theme.json דרך משתני CSS,
 * כדי ששינוי ערכת הצבע בעורך האתר ישפיע כאן אוטומטית.
 */

:root {
	--zion-header-height: 74px;
	--zion-radius-sm: 11px;
	--zion-radius-md: 12px;
	--zion-radius-lg: 14px;
	--zion-radius-xl: 18px;
	--zion-radius-xxl: 22px;
	--zion-ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

/* ------------------------------------------------------------------ *
 * Reveal on scroll
 * ------------------------------------------------------------------ */

.zion-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.7s var(--zion-ease), transform 0.7s var(--zion-ease);
}

.zion-reveal.is-revealed {
	opacity: 1;
	transform: none;
}

/* Without JS, or in the editor, nothing may stay invisible. */
.no-js .zion-reveal,
.editor-styles-wrapper .zion-reveal {
	opacity: 1;
	transform: none;
	transition: none;
}

@media (prefers-reduced-motion: reduce) {
	.zion-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ------------------------------------------------------------------ *
 * Header — sticky glass bar
 * ------------------------------------------------------------------ */

.wp-site-blocks > header.wp-block-template-part,
.wp-site-blocks > .wp-block-template-part:has(> .zion-header) {
	position: sticky;
	top: 0;
	z-index: 50;
}

.zion-header {
	background: rgba(8, 19, 37, 0.74);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-block-end: 1px solid rgba(255, 255, 255, 0.08);
}

/* The header sits outside the root-padding context, so it carries its own
   gutter and content cap — otherwise the logo touches the viewport edge. */
.zion-header__inner {
	min-height: var(--zion-header-height);
	max-inline-size: 1180px;
	margin-inline: auto;
	padding-block: 10px;
	padding-inline: clamp(20px, 5vw, 24px);
}

/* Brand lockup: mark, then the wordmark over the leader line. */
.zion-lockup {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	flex: 0 1 auto;
	min-inline-size: 0;
}

.zion-lockup__mark {
	display: inline-flex;
	line-height: 0;
	flex: 0 0 auto;
}

/* Logo mark.
   The resting state here is the FINISHED logo — full stroke, nodes visible.
   Motion is added by JS at mount, so a stalled or blocked animation degrades
   to "visible, just unanimated" and can never leave the mark blank. */
.zion-logo-line {
	stroke-dasharray: 210;
	stroke-dashoffset: 0;
}

.zion-logo-node {
	transform-box: fill-box;
	transform-origin: center;
	opacity: 1;
}

/* Decoration only — invisible at rest, revealed by the animation. */
.zion-logo-pulse {
	stroke-dasharray: 14 196;
	opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
	.zion-logo-line {
		stroke-dashoffset: 0 !important;
	}

	.zion-logo-node {
		opacity: 1 !important;
		transform: none !important;
	}

	.zion-logo-pulse {
		opacity: 0 !important;
	}
}

.zion-lockup__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-inline-size: 0;
}

.zion-lockup__brand {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	font-size: 19px;
	line-height: 1;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--base);
	white-space: nowrap;
}

.zion-lockup__leader {
	font-weight: 500;
	font-size: 11.5px;
	line-height: 1;
	color: var(--wp--preset--color--on-dark-muted);
	white-space: nowrap;
}

/* "פרו" always carries the accent — a brand rule, not decoration. */
.zion-accent {
	color: var(--wp--preset--color--accent);
}

.zion-nav .wp-block-navigation-item__content {
	text-decoration: none;
}

.zion-nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--accent);
}

/* Sticky header must not hide the anchor it scrolls to. */
html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--zion-header-height) + 10px);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

[id] {
	scroll-margin-top: calc(var(--zion-header-height) + 10px);
}

/* ------------------------------------------------------------------ *
 * Sections & shared pieces
 * ------------------------------------------------------------------ */

.zion-section {
	position: relative;
	overflow: hidden;
}

.zion-measure {
	max-width: 46ch;
}

.zion-measure--center {
	margin-inline: auto;
}

.zion-measure-heading {
	max-width: 24ch;
}

/* Eyebrow label: a short rule, then the text. */
.is-style-zion-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.is-style-zion-eyebrow::before {
	content: "";
	inline-size: 24px;
	block-size: 2px;
	background: var(--wp--preset--color--accent);
	border-radius: 2px;
	flex: 0 0 auto;
}

.zion-eyebrow--light {
	font-weight: 600;
}

.zion-eyebrow--light::before {
	block-size: 1px;
	inline-size: 26px;
}

/* ------------------------------------------------------------------ *
 * Hero
 * ------------------------------------------------------------------ */

.zion-hero {
	color: var(--wp--preset--color--base);
}

.zion-hero__mark {
	position: absolute;
	inset-inline-start: -90px;
	inset-block-end: -130px;
	opacity: 0.16;
	color: var(--wp--preset--color--accent);
	pointer-events: none;
	z-index: 1;
}

.zion-hero > .wp-block-columns {
	position: relative;
	z-index: 2;
}

.zion-credentials {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	font-weight: 500;
	line-height: 1.5;
}

.zion-credentials__dot {
	color: var(--wp--preset--color--accent);
}

/* Framed portrait with an offset accent outline behind it. */
.zion-photo-frame {
	position: relative;
	max-inline-size: 380px;
	margin-inline-start: auto;
}

.zion-photo-frame::before {
	content: "";
	position: absolute;
	inset: 0;
	transform: translate(14px, 16px);
	border: 1px solid var(--wp--preset--color--accent);
	border-radius: var(--zion-radius-xxl);
	opacity: 0.55;
	pointer-events: none;
}

.zion-photo-frame__image {
	position: relative;
	margin: 0;
	border-radius: var(--zion-radius-xxl);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 44px 90px -34px rgba(0, 0, 0, 0.65);
	background: #0e2545;
}

.zion-photo-frame__image img {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.zion-photo-frame__badge {
	position: absolute;
	inset-block-end: 18px;
	inset-inline-end: -14px;
	margin: 0;
	background: rgba(8, 19, 37, 0.86);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--zion-radius-md);
	padding: 10px 16px;
	font-weight: 700;
	color: var(--wp--preset--color--base);
	box-shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.7);
	z-index: 3;
}

.zion-photo-frame__badge-accent {
	color: var(--wp--preset--color--accent);
}

.zion-hero__leader {
	display: block;
	margin-block-start: 12px;
	font-size: 0.42em;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--on-dark);
}

.zion-hero__line2 {
	display: block;
	margin-block-start: 6px;
}

/* ------------------------------------------------------------------ *
 * Stats (About)
 * ------------------------------------------------------------------ */

.zion-stats {
	border-block-start: 1px solid #E8EEF6;
	padding-block-start: 32px;
	gap: 14px 48px;
}

.zion-stats .wp-block-column {
	flex-basis: auto !important;
	flex-grow: 0;
	min-inline-size: 120px;
}

.zion-stat > * {
	margin-block: 0;
}

.zion-stat__value {
	font-size: clamp(30px, 4vw, 42px);
	font-weight: 800;
	line-height: 1;
	margin-block-end: 6px !important;
}

.zion-stat__suffix {
	color: var(--wp--preset--color--accent);
}

.zion-stat__label {
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.5;
}

/* ------------------------------------------------------------------ *
 * Cards (Services / Proof)
 * ------------------------------------------------------------------ */

.zion-cards .wp-block-column {
	display: flex;
}

.zion-cards .wp-block-column > .wp-block-group {
	inline-size: 100%;
}

.is-style-zion-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--zion-radius-xl);
	padding: 34px 30px;
	transition: transform 0.3s var(--zion-ease), box-shadow 0.3s ease, border-color 0.3s ease;
}

.is-style-zion-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 28px 54px -28px rgba(11, 27, 51, 0.32);
	border-color: color-mix(in srgb, var(--wp--preset--color--accent) 45%, transparent);
}

.is-style-zion-card-dark {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--zion-radius-xl);
	padding: 30px 28px;
}

.zion-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	inline-size: 54px;
	block-size: 54px;
	border-radius: var(--zion-radius-lg);
	background: color-mix(in srgb, var(--wp--preset--color--accent) 12%, transparent);
}

/* A tinted panel with an accent edge on the reading side (right, in RTL). */
.zion-card__note {
	margin-block-start: auto;
	padding: 14px 16px;
	background: var(--wp--preset--color--card);
	border-radius: var(--zion-radius-md);
	border-inline-start: 3px solid var(--wp--preset--color--accent);
}

.zion-card__note > * {
	margin-block: 0;
}

.zion-card__note-label {
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.03em;
	margin-block-end: 5px !important;
}

.zion-card__note p {
	font-size: 14.5px;
	line-height: 1.6;
	color: #3C4A60;
}

.zion-proof__rule {
	inline-size: 42px;
	block-size: 4px;
	border-radius: 3px;
	background: var(--wp--preset--color--accent);
	margin-block-end: 20px;
}

.zion-proof__metric {
	font-size: clamp(46px, 6vw, 64px);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.02em;
	margin-block: 0;
}

/* A worded metric needs to sit at a size that reads as a statement rather than
   a number, so it does not fight the figures in the cards beside it. */
.zion-proof__metric--phrase {
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 800;
	line-height: 1.15;
}

/* ------------------------------------------------------------------ *
 * Why me
 * ------------------------------------------------------------------ */

.zion-why__item > * {
	margin-block: 0;
}

.zion-why__marker {
	display: inline-block;
	inline-size: 13px;
	block-size: 13px;
	background: var(--wp--preset--color--accent);
	transform: rotate(45deg);
	border-radius: 3px;
	margin-block-end: 18px;
}

/* ------------------------------------------------------------------ *
 * FAQ
 * ------------------------------------------------------------------ */

.zion-faq__item > * {
	margin-block: 0;
}

/* A hairline between questions, but not trailing the last one. */
.zion-faq__item + .zion-faq__item {
	border-block-start: 1px solid var(--wp--preset--color--hairline);
	padding-block-start: 28px;
}

.zion-faq__question {
	color: var(--wp--preset--color--ink);
}

/* ------------------------------------------------------------------ *
 * Contact
 * ------------------------------------------------------------------ */

.zion-contact__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 18px;
}

.zion-contact__links a {
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--wp--preset--color--on-dark);
	text-decoration: none;
	transition: color 0.2s ease;
}

.zion-contact__links a:hover {
	color: var(--wp--preset--color--base);
	text-decoration: none;
}

/* The invitation on top, the detail underneath — reads warmer than a bare
   address or, worse, a full URL. */
.zion-contact__text {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-inline-size: 0;
}

.zion-contact__label {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.35;
}

.zion-contact__detail {
	font-size: 14px;
	line-height: 1.4;
	color: var(--wp--preset--color--on-dark-muted);
	transition: color 0.2s ease;
	overflow-wrap: anywhere;
}

.zion-contact__links a:hover .zion-contact__detail {
	color: var(--wp--preset--color--on-dark);
}

.zion-contact__tile svg {
	stroke: currentColor;
	fill: none;
}

.zion-contact__tile svg[fill="currentColor"],
.zion-contact__tile svg path[fill] {
	fill: currentColor;
	stroke: none;
}

.zion-contact__tile {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	inline-size: 44px;
	block-size: 44px;
	flex: 0 0 auto;
	border-radius: var(--zion-radius-sm);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--navy-ink);
	box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--wp--preset--color--accent) 70%, transparent);
	transition: box-shadow 0.2s ease;
}

.zion-contact__links a {
	transition: color 0.2s ease, transform 0.2s ease;
}

/* Shifts toward the reading edge, which is the left in RTL. */
.zion-contact__links a:hover {
	transform: translateX(-3px);
}

.zion-contact__links a:hover .zion-contact__tile {
	box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--wp--preset--color--accent) 85%, transparent);
}

.zion-contact__label {
	font-size: 15.5px;
	font-weight: 700;
	color: var(--wp--preset--color--base);
}

.zion-contact__detail {
	font-size: 13.5px;
}

.zion-form-note {
	margin-block-start: 14px !important;
	margin-block-end: 0 !important;
}

.zion-form-card {
	background: var(--wp--preset--color--base);
	border-radius: 20px;
	padding: clamp(24px, 3vw, 34px);
	box-shadow: 0 34px 80px -36px rgba(0, 0, 0, 0.6);
}

/* ------------------------------------------------------------------ *
 * Contact Form 7 — styled to match the design
 * ------------------------------------------------------------------ */

.zion-form-card .wpcf7 {
	color: var(--wp--preset--color--ink);
}

.zion-form-card .wpcf7-form p {
	margin: 0;
}

.zion-form-card .wpcf7-form > p:empty,
.zion-form-card .zion-field br {
	display: none;
}

.zion-field {
	margin-block-end: 18px;
}

.zion-field__hint {
	font-weight: 400;
	color: var(--wp--preset--color--ink-soft);
}

/* Honeypot: off-screen for bots to fill, unreachable for people and readers. */
.zion-hp {
	position: absolute;
	inset-inline-start: -9999px;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
}

.zion-field label {
	display: block;
	margin-block-end: 7px;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 13.5px;
	color: #42526B;
}

.zion-form-card .wpcf7-form-control-wrap {
	display: block;
}

.zion-form-card input[type="text"],
.zion-form-card input[type="email"],
.zion-form-card input[type="tel"],
.zion-form-card textarea {
	display: block;
	box-sizing: border-box;
	inline-size: 100%;
	padding: 13px 15px;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--zion-radius-md);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.zion-form-card input::placeholder,
.zion-form-card textarea::placeholder {
	color: var(--wp--preset--color--ink-soft);
	opacity: 0.75;
}

.zion-form-card input:focus,
.zion-form-card textarea:focus {
	border-color: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--accent) 22%, transparent);
	outline: none;
}

.zion-form-card textarea {
	resize: vertical;
	min-block-size: 120px;
}

.zion-form-card input[type="submit"] {
	inline-size: 100%;
	margin-block-start: 6px;
	padding: 15px 28px;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 17px;
	color: var(--wp--preset--color--navy-ink);
	background: var(--wp--preset--color--accent);
	border: 0;
	border-radius: var(--zion-radius-md);
	cursor: pointer;
	transition: transform 0.25s ease, background 0.25s ease;
}

.zion-form-card input[type="submit"]:hover {
	transform: translateY(-2px);
	background: color-mix(in srgb, var(--wp--preset--color--accent) 88%, #fff);
}

.zion-form-card input[type="submit"]:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-deep);
	outline-offset: 3px;
}

.zion-form-card .wpcf7-not-valid-tip {
	margin-block-start: 6px;
	font-size: 13.5px;
	color: #b42318;
}

.zion-form-card .wpcf7-response-output {
	margin: 18px 0 0;
	padding: 14px 16px;
	font-size: 15px;
	line-height: 1.5;
	border-width: 1px;
	border-radius: var(--zion-radius-md);
}

.zion-form-card form.sent .wpcf7-response-output {
	border-color: var(--wp--preset--color--accent);
	background: color-mix(in srgb, var(--wp--preset--color--accent) 10%, transparent);
	color: var(--wp--preset--color--accent-deep);
}

.zion-form-fallback {
	text-align: center;
}

.zion-form-fallback__title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 19px;
	margin-block-end: 8px;
}

.zion-form-fallback__text {
	color: var(--wp--preset--color--ink-muted);
	font-size: 15px;
	margin-block-end: 20px;
}

/* ------------------------------------------------------------------ *
 * Buttons
 * ------------------------------------------------------------------ */

.wp-block-button__link {
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
	box-shadow: 0 12px 32px -10px color-mix(in srgb, var(--wp--preset--color--accent) 60%, transparent);
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
}

.zion-button-ghost .wp-block-button__link,
.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--base);
	border: 1px solid rgba(255, 255, 255, 0.22);
	box-shadow: none;
}

.zion-button-ghost .wp-block-button__link:hover,
.is-style-outline .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--accent);
	background: rgba(255, 255, 255, 0.04);
	color: var(--wp--preset--color--base);
}

/* On light sections an outline button needs dark ink, not white. */
.zion-section:not(.zion-section--dark) .is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--hairline);
}

.zion-section:not(.zion-section--dark) .is-style-outline .wp-block-button__link:hover {
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--card);
}

/* ------------------------------------------------------------------ *
 * Footer
 * ------------------------------------------------------------------ */

.zion-footer__brand {
	display: flex;
	align-items: center;
	gap: 14px;
}

.zion-footer__mark {
	display: inline-flex;
	line-height: 0;
	flex: 0 0 auto;
}

.zion-footer__text {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.zion-footer__name {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	color: #E7EEF8;
}

.zion-footer__tagline {
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--wp--preset--color--ink-soft);
}

.zion-footer__inner {
	border-block-start: 1px solid rgba(255, 255, 255, 0.08);
	padding-block-start: 28px;
	max-inline-size: 1180px;
	margin-inline: auto;
}

.zion-footer__links {
	color: var(--wp--preset--color--on-dark-muted);
	font-size: 14.5px;
}

.zion-footer__links p {
	margin-block: 0;
}

.zion-footer__links a {
	color: var(--wp--preset--color--on-dark);
	text-decoration: none;
}

.zion-footer__links a:hover {
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
}

/* ------------------------------------------------------------------ *
 * Long-form content (posts, privacy policy)
 * ------------------------------------------------------------------ */

.zion-prose h2 {
	margin-block-start: 2em;
}

.zion-prose li {
	margin-block-end: 0.5em;
}

/* ------------------------------------------------------------------ *
 * Accessibility
 * ------------------------------------------------------------------ */

:where(a, button, input, textarea, select, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

.skip-link:focus {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
	z-index: 100000;
}

/* ------------------------------------------------------------------ *
 * Responsive
 * ------------------------------------------------------------------ */

@media (max-width: 781px) {
	.zion-hero {
		padding-block: 72px 64px !important;
	}

	.zion-photo-frame {
		margin-inline: auto;
		max-inline-size: 320px;
	}

	.zion-photo-frame__badge {
		inset-inline-end: 12px;
	}

	/* The brand and the menu are what must stay reachable at the top; the CTA
	   would crowd them, and the contact section is one tap away via the menu. */
	.zion-header .zion-header__cta {
		display: none;
	}

	.zion-header__inner {
		gap: 12px;
	}

	.zion-lockup {
		gap: 10px;
	}

	.zion-lockup__brand {
		font-size: 17px;
	}

	.zion-lockup__leader {
		font-size: 11px;
	}

	/* The hero lockup needs more room between the brand and the leader line
	   once the type has scaled down. */
	.zion-hero__leader {
		font-size: 0.5em;
	}

	.zion-contact__grid,
	.zion-hero__grid {
		gap: 36px;
	}

	.zion-footer__brand {
		gap: 12px;
	}

	.zion-stats {
		gap: 24px;
	}

	.zion-footer__inner {
		row-gap: 20px;
	}
}

@media (max-width: 330px) {
	.zion-lockup__leader {
		display: none;
	}
}

@media (max-width: 480px) {
	.zion-contact__tile {
		inline-size: 40px;
		block-size: 40px;
	}

	.zion-hero__mark {
		inline-size: 360px;
		block-size: 360px;
	}

	.is-style-zion-card,
	.is-style-zion-card-dark,
	.zion-form-card {
		padding: 24px 20px;
	}
}
