/* ==========================================================================
   Syntra – main stylesheet
   Design reference: 1920px Figma frame. Sizes scale with clamp() down to mobile.
   ========================================================================== */

@font-face { font-family: "Polin"; src: url("../fonts/Polin-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Polin"; src: url("../fonts/Polin-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
	--navy: #130e49;
	--blue: #2f4384;
	--sky: #d4e0ff;
	--mist: #f6f9ff;
	--lime: #edfad3;
	--forest: #094228;
	--white: #fff;
	--black: #000;
	--line: #bebebe;

	--font-body: "Polin", "Rubik", "Arial Hebrew", Arial, sans-serif;

	/* Type scale (value at 1920 → mobile floor) */
	--fs-24: clamp(17px, 1.25vw, 24px);
	--fs-20: clamp(15px, 1.05vw, 20px);
	--fs-32: clamp(22px, 1.67vw, 32px);
	--fs-48: clamp(30px, 2.5vw, 48px);
	--fs-64: clamp(36px, 3.34vw, 64px);
	--fs-75: clamp(32px, 3.9vw, 75px);
	--fs-96: clamp(36px, 5vw, 96px);
	--fs-preview: clamp(26px, 2.9vw, 56px);

	--gutter: clamp(16px, 3.6vw, 70px);
	--radius-pill: 33.5px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--white);
	color: var(--black);
	font-family: var(--font-body);
	font-size: var(--fs-24);
	line-height: 1.35;
	direction: rtl;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 1000;
	inset-block-start: 8px; inset-inline-start: 8px; padding: 12px 20px;
	background: var(--white); color: var(--navy);
}
.container { width: 100%; max-width: 1700px; margin-inline: auto; padding-inline: var(--gutter); }

.syntra-icon { display: inline-flex; width: 1em; height: 1em; }
.syntra-icon svg { width: 100%; height: 100%; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: clamp(130px, 10.26vw, 197px);
	min-height: clamp(44px, 2.76vw, 53px);
	padding: 0 1.2em;
	border: 0; border-radius: var(--radius-pill);
	font-size: var(--fs-24); font-weight: 700; line-height: 1;
	text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--blue); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--navy); color: var(--white); }
.btn--solid { background: var(--fg); color: var(--bg); }
.btn--wide { min-width: clamp(200px, 13.3vw, 256px); font-weight: 400; }

.badge {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: clamp(74px, 5.5vw, 105px); min-height: clamp(28px, 1.9vw, 36px);
	padding: 0 .8em; border-radius: var(--radius-pill);
	background: var(--navy); color: var(--white);
	font-size: clamp(15px, 1.15vw, 22px); font-weight: 700; line-height: 1;
}

/* ---------- Top bar ---------- */
.topbar {
	display: flex; align-items: stretch;
	min-height: 47px;
	background: var(--navy); color: var(--white);
	font-weight: 700;
}
.topbar__text {
	flex: 1 0 auto; display: flex; align-items: center; white-space: nowrap;
	padding-inline: clamp(16px, 2.9vw, 56px) 16px;
	font-size: var(--fs-20); line-height: 1.1;
}
.topbar__pdf {
	flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
	width: clamp(140px, 13.7vw, 263px);
	background: var(--lime); color: var(--navy);
	font-size: var(--fs-24); text-decoration: none;
}
.topbar__pdf:hover { background: var(--white); }
.topbar__share {
	flex: 0 1 47.3%; min-width: 0; display: flex; align-items: center; justify-content: space-between;
	padding-inline: clamp(16px, 2.4vw, 46px) 18px;
	background: var(--blue);
	font-size: var(--fs-24);
}
.topbar__icons { display: flex; flex-direction: row-reverse; align-items: center; gap: clamp(16px, 1.25vw, 24px); font-size: 22px; }
.topbar__icons a { display: flex; color: var(--sky); }
.topbar__icons a:hover { color: var(--lime); }

/* ---------- Header ---------- */
.site-header { background: var(--sky); color: var(--navy); position: relative; z-index: 20; }
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	min-height: clamp(76px, 7.2vw, 138px);
	padding-inline: clamp(16px, 3.8vw, 73px);
}
.site-logo img { width: clamp(110px, 8vw, 153px); height: auto; }
.site-nav__list { display: flex; gap: clamp(24px, 3.5vw, 68px); }
.site-nav__list a { text-decoration: none; font-size: var(--fs-24); }
.site-nav__list a { transition: color .2s ease; }
.site-nav__list a:hover { color: var(--blue); }
.site-nav__toggle, .site-search__toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0;
	background: none; border: 0; color: var(--navy); font-size: 32px; cursor: pointer;
}
.site-nav__toggle { display: none; font-size: 28px; }
.site-search { position: relative; }
.site-search__form {
	position: absolute; inset-block-start: calc(100% + 12px); inset-inline-end: 0;
	width: min(320px, 80vw);
}
.site-search__form input {
	width: 100%; padding: 14px 18px; border: 0; border-radius: var(--radius-pill);
	background: var(--white); color: var(--navy); box-shadow: 0 6px 24px rgba(19, 14, 73, .15);
}

/* ---------- Page wrapper ---------- */
.page-blocks > :not(.syntra-block) {
	max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter);
}
.page-blocks > :not(.syntra-block):first-child { margin-block-start: clamp(40px, 5vw, 96px); }
.page-blocks > :not(.syntra-block):last-child { margin-block-end: clamp(40px, 5vw, 96px); }

/* Hidden sections only reach the editor preview: fade them and say so */
.is-hidden-section { position: relative; opacity: .35; }
.is-hidden-section::before {
	content: "מוסתר באתר"; position: absolute; z-index: 5; inset-block-start: 12px; inset-inline-start: 12px;
	padding: 6px 14px; border-radius: var(--radius-pill);
	background: var(--navy); color: var(--white); font: 700 16px/1 var(--font-body);
}

/* ---------- Image strip ---------- */
.image-strip {
	display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
	height: clamp(220px, 39.6vw, 760px);
	overflow: hidden;
}
.image-strip--count-3 { grid-template-columns: 572fr 906fr 444fr; }
.image-strip__item { position: relative; overflow: hidden; }
.image-strip__item img { width: 100%; height: 100%; object-fit: cover; }
.image-strip--tint .image-strip__item::after {
	content: ""; position: absolute; inset: 0;
	background: var(--tint); mix-blend-mode: color; pointer-events: none;
}

/* ---------- Fonts list ---------- */
.fonts-list {
	background: var(--bg);
	padding: clamp(48px, 6.56vw, 126px) clamp(16px, 3.5vw, 67px) clamp(64px, 7.8vw, 150px);
}
.fonts-list__items { display: flex; flex-direction: column; gap: clamp(36px, 4vw, 77px); }
.fonts-list__empty { text-align: center; }
.font-row {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: clamp(16px, 2vw, 40px);
}
.font-row__name { display: flex; align-items: center; gap: 22px; }
.font-row__name h3 { font-size: var(--fs-24); font-weight: 700; white-space: nowrap; }
.font-row__preview {
	font-size: var(--fs-preview); line-height: 1.1;
	color: var(--black);
	padding-inline-start: clamp(0px, 2.5vw, 50px);
}
.font-row__preview { position: relative; display: block; min-width: 0; cursor: text; }
.font-row__input {
	display: block; width: 100%; padding: 0; margin: 0;
	border: 0; background: transparent; outline: none;
	font: inherit; line-height: 1.25; color: inherit;
	caret-color: var(--navy);
	resize: none; overflow: hidden;
}
.font-row__preview:focus-within { box-shadow: 0 2px 0 var(--navy); }
/* Blinking cursor at the start of the sentence, so it's clear you can type */
.font-row__caret {
	position: absolute; top: 0; left: 0;
	width: 3px; height: 1em; background: var(--navy);
	visibility: hidden;
	animation: syntra-blink 1s steps(1) infinite;
	pointer-events: none;
}
.font-row__caret.is-placed { visibility: visible; }
.font-row__preview:focus-within .font-row__caret { display: none; }
.font-row__mirror {
	position: absolute; visibility: hidden; pointer-events: none;
	font: inherit; line-height: 1.25; white-space: pre-wrap; overflow-wrap: break-word;
}
.font-row__mirror span { display: inline-block; width: 0; height: 1em; vertical-align: baseline; }
@keyframes syntra-blink { 50% { opacity: 0; } }
.font-row__actions { display: flex; align-items: center; gap: 20px; }
.font-row__price { font-weight: 700; color: var(--navy); white-space: nowrap; }
.font-row--soon .font-row__preview { opacity: .28; }
.font-row--soon .btn--light { background: rgba(255, 255, 255, .4); color: rgba(19, 14, 73, .4); }
.font-row--soon .btn--light:hover { background: var(--white); color: var(--navy); }

/* ---------- Promo banner ---------- */
.promo-banner {
	position: relative; overflow: hidden;
	display: grid; place-items: center;
	min-height: clamp(260px, 19.7vw, 379px);
	padding: clamp(40px, 3.2vw, 62px) var(--gutter) clamp(48px, 3.6vw, 69px);
	background: var(--bg); color: var(--fg); text-align: center;
}
.promo-banner__art {
	position: absolute; inset-block: 0; inset-inline-start: 50%;
	width: min(817px, 90%); transform: translateX(50%);
	pointer-events: none;
}
.promo-banner__art img { width: 100%; height: 100%; object-fit: cover; object-position: bottom; }
.promo-banner__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: clamp(24px, 2.4vw, 45px); }
.promo-banner__title { font-size: var(--fs-75); font-weight: 700; line-height: 1.002; }

/* ---------- Title band ---------- */
.title-band {
	display: grid; place-items: center;
	min-height: clamp(150px, 14.6vw, 280px);
	padding: 32px var(--gutter);
	background: var(--bg); color: var(--fg); text-align: center;
}
.title-band__title { font-size: var(--fs-96); font-weight: 700; line-height: 1.152; }
.title-band--lg .title-band__title { font-size: var(--fs-64); }

/* ---------- Text band ---------- */
.text-band {
	display: grid; place-items: center;
	min-height: clamp(180px, 14.6vw, 280px);
	padding: clamp(32px, 2.4vw, 46px) var(--gutter);
	background: var(--bg); color: var(--fg); text-align: center;
}
.text-band__text { max-width: 1403px; font-size: var(--fs-24); line-height: 1.152; }

/* ---------- Team ---------- */
.team { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.team__card {
	display: flex; flex-direction: column; align-items: center; text-align: center;
	padding: clamp(56px, 15vw, 290px) var(--gutter) clamp(56px, 6.8vw, 130px);
	background: var(--bg); color: var(--fg);
}
.team__photo {
	width: clamp(180px, 14.6vw, 280px); aspect-ratio: 1;
	border-radius: 50%; overflow: hidden; background: var(--white);
}
.team__photo img { width: 100%; height: 100%; object-fit: cover; }
.team__name { margin-block: clamp(24px, 2vw, 40px) clamp(10px, .8vw, 16px); font-size: var(--fs-32); font-weight: 700; line-height: 1.152; }
.team__bio { font-size: var(--fs-24); line-height: 1.25; }

/* ---------- Article ---------- */
.article { background: var(--white); }
.article__head { padding-block: clamp(56px, 8.8vw, 169px) clamp(28px, 2.9vw, 55px); border-block-end: 1px solid var(--line); }
.article__head .container { display: flex; flex-direction: column; align-items: flex-start; }
.article__title { font-size: var(--fs-64); font-weight: 700; line-height: 1.103; }
.article__meta { margin-block-start: clamp(12px, 1.25vw, 24px); font-size: var(--fs-32); line-height: 1.103; }
.article__share {
	margin-block-start: clamp(20px, 1.8vw, 35px);
	display: inline-flex; padding: 0; width: 38px; height: 38px;
	background: none; border: 0; font-size: 38px; color: var(--black); cursor: pointer;
}
.article__body { display: flex; flex-direction: column; gap: clamp(24px, 0.8vw, 15px); padding-block: clamp(48px, 5.7vw, 110px) clamp(48px, 6vw, 115px); }
.article__row {
	display: grid; grid-template-columns: 1fr 53.5%;
	align-items: center; gap: clamp(24px, 5vw, 100px);
}
.article__row--flip { grid-template-columns: 43% 1fr; }
.article__row--flip .article__text { order: 2; }
.article__text { font-size: var(--fs-24); line-height: 1.25; max-width: 485px; justify-self: center; }
.article__text p + p { margin-block-start: 1em; }
.article__image { position: relative; overflow: hidden; aspect-ratio: 890 / 591; }
.article__row--flip .article__image { aspect-ratio: 715 / 591; }
.article__image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Newsletter CTA ---------- */
.newsletter-cta {
	display: flex; flex-direction: column; align-items: center; gap: clamp(20px, 1.7vw, 32px);
	padding: clamp(40px, 5vw, 100px) var(--gutter) clamp(64px, 11.5vw, 220px);
	text-align: center;
}
.newsletter-cta__text { font-size: var(--fs-20); line-height: 1.1; }

/* ---------- Contact ---------- */
.contact {
	position: relative; overflow: hidden;
	background: var(--mist);
	padding: clamp(48px, 4.6vw, 88px) clamp(16px, 5.4vw, 103px) clamp(40px, 4vw, 70px);
}
.contact { padding-inline-end: clamp(16px, 21.8vw, 420px); }
.contact__deco {
	position: absolute; inset-inline-end: 0; inset-block-end: 0;
	writing-mode: vertical-rl; transform: rotate(180deg);
	direction: ltr; text-align: start;
	font-size: clamp(64px, 6.67vw, 128px); font-weight: 700; line-height: .946;
	color: var(--sky); pointer-events: none; user-select: none;
}
.contact__inner { position: relative; max-width: 1401px; margin-inline-start: 0; margin-inline-end: auto; padding-inline-start: 0; }
.contact__title { font-size: var(--fs-48); font-weight: 700; color: var(--blue); margin-block-end: clamp(20px, 1.7vw, 32px); }
.contact__form { display: flex; flex-direction: column; gap: clamp(16px, 1.6vw, 31px); }
.contact__field { display: block; width: min(100%, 671px); }
.contact__field input, .contact__field textarea {
	width: 100%; min-height: clamp(60px, 4.4vw, 85px);
	padding: 0 clamp(18px, 2.8vw, 54px);
	border: 0; border-radius: 0; background: var(--white); color: var(--navy);
	font-size: var(--fs-20);
}
.contact__field textarea { padding-block: clamp(20px, 1.6vw, 30px); resize: vertical; display: block; line-height: 1.3; }
.contact__field ::placeholder { color: var(--navy); opacity: 1; }
.contact__row { display: flex; gap: clamp(16px, 1.9vw, 36px); align-items: stretch; }
.contact__field--message { flex: 1; width: auto; max-width: 1098px; }
.contact__field--message textarea { background: var(--lime); min-height: clamp(60px, 4.7vw, 90px); }
.contact__submit {
	flex: 0 0 clamp(140px, 13.9vw, 267px);
	border: 0; background: var(--navy); color: var(--white);
	font-size: var(--fs-32); font-weight: 700; cursor: pointer;
}
.contact__submit:hover { background: var(--blue); }
.contact__hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.contact__notice { margin-block-end: 20px; padding: 14px 20px; background: var(--lime); color: var(--forest); font-size: var(--fs-20); }
.contact__notice--error { background: #ffe1e1; color: #8a1010; }

/* ---------- Footer ---------- */
.site-footer { background: var(--mist); color: var(--navy); padding: 0 var(--gutter) clamp(28px, 2.6vw, 50px); }
.site-footer__list {
	display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
	gap: 12px clamp(24px, 3vw, 58px);
	font-size: var(--fs-24);
}
.site-footer__list a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.site-footer__list a:hover { text-decoration: underline; }

/* ---------- WooCommerce pages ---------- */
/* WooCommerce blocks (cart, checkout) and form controls use Polin too */
.woocommerce, .woocommerce-page,
[class*="wc-block-"], [class*="wp-block-woocommerce-"],
input, textarea, select, button { font-family: var(--font-body); }
.shop { padding-block: clamp(40px, 5vw, 96px); }
.shop .product_title { font-size: var(--fs-64); line-height: 1.1; }
.shop .price { font-size: var(--fs-32); color: var(--navy); font-weight: 700; }
.shop .single_add_to_cart_button,
.woocommerce .button.alt,
.woocommerce a.button,
.woocommerce button.button {
	border-radius: var(--radius-pill) !important;
	background: var(--navy) !important; color: var(--white) !important;
	font-family: var(--font-body) !important; font-weight: 700 !important;
	padding: .7em 1.6em !important;
}
.font-tester { margin-block: 24px 32px; padding: 24px; background: var(--sky); }
.font-tester .font-tester__preview { font-size: 64px; padding-inline-start: 0; margin-block-end: 24px; overflow-wrap: anywhere; }
.font-tester input[type="range"] { width: 100%; accent-color: var(--navy); }

.entry { padding-block: clamp(40px, 5vw, 96px); }
.entry__title { font-size: var(--fs-64); margin-block-end: 24px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.contact__deco { display: none; }
	.contact { padding-inline-end: clamp(16px, 5.4vw, 103px); }
	.topbar__text { display: none; }
	.topbar__pdf { flex: 1; }
	.topbar__share { flex: 1; }

	.font-row { grid-template-columns: 1fr auto; grid-template-areas: "name actions" "preview preview"; row-gap: 12px; }
	.font-row__name { grid-area: name; }
	.font-row__actions { grid-area: actions; }
	.font-row__preview { grid-area: preview; padding-inline-start: 0; }
}

@media (max-width: 900px) {
	.site-nav__toggle { display: inline-flex; }
	.site-header__inner { flex-wrap: wrap; }
	.site-logo { order: 1; }
	.site-search { order: 2; margin-inline-start: auto; }
	.site-nav__toggle { order: 3; }
	.site-nav { order: 4; flex-basis: 100%; display: none; padding-block: 8px 20px; }
	.site-nav.is-open { display: block; }
	.site-nav__list { flex-direction: column; gap: 4px; }
	.site-nav__list a { display: block; padding: 10px 0; }

	.image-strip { grid-auto-flow: row; grid-template-columns: 1fr 1fr !important; height: auto; }
	.image-strip__item { aspect-ratio: 3 / 4; }
	.image-strip__item:nth-child(2) { display: none; }

	.team { grid-auto-flow: row; }

	.article__row, .article__row--flip { grid-template-columns: 1fr; }
	.article__row--flip .article__text { order: 0; }
	.article__text { justify-self: start; max-width: none; }
	.article__body { gap: 48px; }

	.contact__deco { display: none; }
	.contact__row { flex-direction: column; }
	.contact__submit { flex-basis: auto; min-height: 64px; }
	.contact__field { width: 100%; }
}

@media (max-width: 600px) {
	.text-band__text br, .team__bio br { display: none; }
	.topbar__share-label { display: none; }
	.topbar__share { flex: 0 0 auto; }

	.font-row { grid-template-columns: 1fr; grid-template-areas: "name" "preview" "actions"; }
	.font-row__actions { flex-wrap: wrap; }
	.font-row__actions .btn { flex: 1; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.font-row__caret { animation: none; }
	.btn { transition: none; }
	.btn:hover { transform: none; }
}

/* ------------------------------------------------------------------
   Gentle motion: elements fade and rise into place as they scroll in.
   Only active on the site (main.js adds .js-anim), never in the editor.
------------------------------------------------------------------- */
.js-anim [data-reveal] {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
	transition-delay: var(--reveal-delay, 0s);
}
.js-anim [data-reveal="fade"] { transform: none; }
.js-anim [data-reveal="zoom"] { transform: scale(1.04); }
.js-anim [data-reveal="side"] { transform: translateX(-36px); }
.js-anim [data-reveal].is-revealed { opacity: 1; transform: none; }

.image-strip__item, .article__image, .team__photo { overflow: hidden; }
.image-strip__item img, .article__image img, .team__photo img { transition: transform 1.2s cubic-bezier(.22,.61,.36,1); }
.image-strip__item:hover img, .article__image:hover img, .team__photo:hover img { transform: scale(1.03); }

.btn, .contact__submit, .font-row__actions a, .font-row__actions button { transition: transform .25s ease, background-color .25s ease, color .25s ease, box-shadow .25s ease; }
.btn:hover, .contact__submit:hover, .font-row__actions a:hover { transform: translateY(-2px); }

.font-row { transition: background-color .3s ease; }

@media (prefers-reduced-motion: reduce) {
	.js-anim [data-reveal] { opacity: 1; transform: none; transition: none; }
	.image-strip__item img, .article__image img, .team__photo img, .btn, .contact__submit, .font-row__actions a { transition: none; }
	.image-strip__item:hover img, .article__image:hover img, .team__photo:hover img, .btn:hover, .contact__submit:hover, .font-row__actions a:hover { transform: none; }
}
