/* Harel brand language: "the rosette and the screen".
   The logo is a screen inside a blue rosette. Full strength: the hero rosette (vector) with a service-desk screen,
   standing on a blue line that runs along the hero to the page edge; then the band.
   Elsewhere: cards shaped like a monitor (bezel + stand) and icons in a tilted rounded square, like the logo's square. */
:root { --hr-logo: #1C81F5; --hr-blue: #1868B0; --hr-night: #0F2C52; --hr-petal: var(--hr-logo); --hr-ice: #EAF2FA; --c-accent: #1C81F5; }
/* the rosette's petals: the logo blue lightened with white (both tokens). Browsers without color-mix keep the plain logo blue. */
@supports (color: color-mix(in srgb, red 50%, white)) { :root { --hr-petal: color-mix(in srgb, var(--hr-logo) 70%, #fff); } }
body.site-harel-tech { background: #F4F8FD; --h-card-radius: 16px; }

.site-harel-tech .h-eyebrow { color: var(--hr-blue); }
.site-harel-tech .h-hero2 .h-eyebrow i { inline-size: 24px; block-size: 24px; background: url(../img/harel-symbol.png) center / contain no-repeat; }
/* section eyebrows ("השירותים שלנו"): a short blue line before the words */
.site-harel-tech .h-sec .h-eyebrow { font-size: clamp(18px, 1.5vw, 21px); font-weight: 700; color: var(--hr-night); gap: 12px; }
.site-harel-tech .h-sec .h-eyebrow i { inline-size: 32px; block-size: 4px; border-radius: 4px; background: var(--hr-logo); }
.site-harel-tech .h-btn, .site-harel-tech .wp-element-button { border-radius: 14px; }
.site-harel-tech .h-btn--line { color: var(--hr-blue); }
.site-harel-tech .h-btn--line:hover { background: #fff; }
.site-harel-tech .h-btn--cta:hover { box-shadow: 0 10px 24px -12px rgba(24, 104, 176, .9); }

/* header: a hairline under it, a blue line under the current menu item */
.site-harel-tech .h-header { box-shadow: 0 1px 0 #D5DAE1; }
.site-harel-tech .h-nav-desk .h-menu > li > a { color: var(--hr-night); }
.site-harel-tech .h-nav__panel .h-menu :is(.current-menu-item, .current-menu-ancestor) > a { color: var(--hr-blue); }

/* ---------- hero: the rosette with a service-desk screen, standing on the blue line ---------- */
/* the hero ends just under its blue line, and the next section's eyebrow follows close under it: the line is the
   thin divider above "השירותים שלנו", as in the approved reference */
.site-harel-tech .h-hero2 { --h-title: clamp(42px, 5.5vw, 84px); padding-block-end: 14px; }
.site-harel-tech .h-hero2 + .h-sec { padding-block-start: clamp(32px, 3.2vw, 46px); }
@media (min-width: 861px) { .site-harel-tech .h-hero2__in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; column-gap: clamp(28px, 3vw, 48px); } }
.site-harel-tech .h-hero2__title { color: var(--hr-night); }
.site-harel-tech .h-hero2__text { padding-block-end: clamp(28px, 3vw, 44px); }
/* a short desktop screen: the rosette and the line's gap follow its height (sections.css, the first section fits) */
@media (min-width: 861px) and (orientation: landscape) {
	.site-harel-tech .h-hero2__in > .h-rosette { inline-size: min(100% + var(--hr-bleed), 570px, calc(var(--h-fold) * .84)); }
	.site-harel-tech .h-hero2__text { padding-block-end: min(clamp(28px, 3vw, 44px), calc(var(--h-fold) * .05)); }
}
.h-rosette { --hr-bleed: clamp(0px, (100vw - 1248px) / 2, 48px); position: relative; justify-self: start; inline-size: min(100% + var(--hr-bleed), 570px); aspect-ratio: 1; container-type: inline-size; }
.h-rosette__svg { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; overflow: visible; filter: drop-shadow(0 6cqi 7cqi rgba(28, 129, 245, .22)); }
.h-rosette__petals { fill: var(--hr-petal); stroke: #fff; stroke-width: 3.5; stroke-linejoin: round; transform-origin: 200px 200px; animation: hr-petals 1.3s cubic-bezier(.2, .8, .2, 1) both; }
.h-rosette__sq { fill: var(--hr-logo); stroke: #fff; stroke-width: 7; paint-order: stroke; }
.h-rosette__front { transform-origin: 200px 200px; animation: hr-front 1s cubic-bezier(.2, .8, .2, 1) .1s both; }
.h-rosette__stand { fill: #fff; }
@keyframes hr-petals { from { transform: rotate(-30deg) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hr-front { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
/* the screen sits where the logo's monitor is (physical left/top: the illustration never mirrors) */
.h-screen { position: absolute; left: 20.5%; top: 22%; inline-size: 59%; block-size: 44%; display: flex; flex-direction: column; overflow: hidden;
	background: #fff; border-radius: 4cqi; padding: 1.3cqi; color: var(--hr-night); font-size: 3.15cqi; line-height: 1.3; animation: h-rise .7s cubic-bezier(.2, .8, .2, 1) .45s both; }
.h-screen p { margin: 0; max-inline-size: none; }
/* title bar in the deeper Harel blue, inside the white bezel, so the screen never melts into the rosette's square */
.h-screen__bar { display: flex; align-items: center; gap: 2cqi; background: var(--hr-blue); color: #fff; padding: 2cqi 2.6cqi; border-radius: 2.8cqi 2.8cqi 1cqi 1cqi; font-size: 3.6cqi; }
.h-screen__bar svg { inline-size: 5cqi; block-size: 5cqi; flex: none; }
.h-screen__sub { padding: 2.4cqi 2.4cqi .4cqi; font-weight: 700; font-size: 3.4cqi; }
.h-screen__rows { list-style: none; margin: 0; padding: 0 2.4cqi; }
.h-screen__rows li { display: flex; align-items: center; gap: 2.2cqi; padding-block: 1.8cqi; border-block-end: 1px solid var(--hr-ice); max-inline-size: none; }
.h-screen__rows li:last-child { border-block-end: 0; }
.h-screen__rows svg { inline-size: 4.6cqi; block-size: 4.6cqi; flex: none; color: var(--hr-logo); }
.h-screen__rows span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-screen__rows em { font-style: normal; font-weight: 700; font-size: 2.7cqi; padding: .5cqi 2.2cqi; border-radius: 99px; color: var(--c-success); background: color-mix(in srgb, var(--c-success) 10%, #fff); } /* 4.66:1; without color-mix: no fill, 5.2:1 on the white screen */
/* the blue line the rosette stands on, running along the hero to the page edge (drawn outward from the rosette) */
.h-rosette__run { position: absolute; left: 14%; top: 100%; inline-size: 100vw; block-size: 5px; border-radius: 5px 0 0 5px; background: var(--hr-blue); transform-origin: left; animation: hr-run 1.3s cubic-bezier(.65, 0, .35, 1) .6s both; }
@keyframes hr-run { from { transform: scaleX(0); } to { transform: none; } }

/* ---------- services: cards shaped like a monitor (white screen, blue bezel, blue stand) ---------- */
.site-harel-tech .h-sec--services { background: transparent; padding-block-start: clamp(44px, 5vw, 72px); }
.site-harel-tech .h-svcs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 28px 20px; }
.site-harel-tech .h-svc { background: #fff; border-radius: 14px; box-shadow: inset 0 0 0 3px var(--hr-blue); margin-block-end: 26px; padding: 30px 20px 24px; justify-items: center; text-align: center; min-block-size: 0; gap: 12px; transition: transform .25s var(--h-ease), box-shadow .25s var(--h-ease); }
/* the stand: neck + foot under the screen (centred, so physical centring is fine) */
.site-harel-tech .h-svc::after { content: ""; position: absolute; inset-block-start: calc(100% + 0px); left: 50%; translate: -50% 0; inline-size: 68px; block-size: 22px;
	background: linear-gradient(var(--hr-blue), var(--hr-blue)) center top / 18px 15px no-repeat, linear-gradient(var(--hr-blue), var(--hr-blue)) center bottom / 68px 7px no-repeat; border-radius: 0 0 4px 4px; }
.site-harel-tech .h-svc:has(a):hover { transform: translateY(-4px); box-shadow: inset 0 0 0 3px var(--hr-blue), 0 18px 34px -20px rgba(24, 104, 176, .55); }
.site-harel-tech .h-svc__title { font-size: 20px; }
.site-harel-tech .h-svc p { text-align: center; }
.site-harel-tech .h-svc__more { margin-block-start: 4px; }

/* icons: white glyph in a tilted rounded square, like the square in the logo; it straightens when the card is hovered */
.site-harel-tech .h-svc__ico, .site-harel-tech .h-inc__ico { display: inline-grid; place-items: center; inline-size: 54px; block-size: 54px; border-radius: 15px; background: var(--hr-logo); rotate: -8deg; justify-self: start; transition: rotate .3s var(--h-ease); }
.site-harel-tech .h-svc__ico svg, .site-harel-tech .h-inc__ico svg { rotate: 8deg; inline-size: 26px; block-size: 26px; color: #fff; transition: rotate .3s var(--h-ease); }
.site-harel-tech .h-svc__ico { inline-size: 76px; block-size: 76px; border-radius: 20px; justify-self: center; box-shadow: 0 10px 20px -10px rgba(28, 129, 245, .7); }
.site-harel-tech .h-svc__ico svg { inline-size: 36px; block-size: 36px; }
.site-harel-tech .h-svc:has(a):hover .h-svc__ico, .site-harel-tech .h-svc:has(a):hover .h-svc__ico svg { rotate: 0deg; }
.site-harel-tech .h-inc { background: #fff; border-radius: 16px; }

/* band: big words, petals between them */
.site-harel-tech .h-band2 { background: var(--hr-night); --h-band-size: clamp(22px, 2.8vw, 40px); }
.site-harel-tech .h-band2__in span { display: flex; align-items: center; gap: 18px; }
.site-harel-tech .h-band2__in span + span::before { content: ""; flex: none; inline-size: 26px; block-size: 18px; border-radius: 50%; background: var(--hr-logo); box-shadow: 14px 0 0 -3px var(--hr-petal); }

.site-harel-tech .h-steps > li::before, .site-harel-tech .h-checks li::before { background: var(--hr-blue); }
.site-harel-tech .h-price__cta { background: var(--hr-night); border-radius: 16px; }

/* ---------- phones: the rosette on top, its line under the text ---------- */
@media (max-width: 860px) {
	.site-harel-tech .h-hero2 { --h-title: clamp(34px, 10.6vw, 60px); padding-block-end: 0; }
	.site-harel-tech .h-hero2__in > .h-rosette { inline-size: min(92%, 400px); }
	/* a phone held sideways (a short screen): the rosette is sized by the screen's height, so the headline follows it */
	@media (max-height: 500px) { .site-harel-tech .h-hero2__in > .h-rosette { inline-size: min(92%, 400px, 52vh); } }
	/* the five monitors two a row on phones, so the services read as one group */
	.site-harel-tech .h-svcs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
	.site-harel-tech .h-svc { padding: 22px 12px 18px; }
	.site-harel-tech .h-svc:last-child:nth-child(odd) { grid-column: 1 / -1; } /* the fifth: one wide screen, not a lone half */
	/* the narrowest phones (320px): half a screen is ~110px of text, too narrow for a 16px line; one monitor a row */
	@media (max-width: 380px) { .site-harel-tech .h-svcs { grid-template-columns: minmax(0, 1fr); } }
	.site-harel-tech .h-svc__ico { inline-size: 60px; block-size: 60px; border-radius: 17px; }
	.site-harel-tech .h-svc__ico svg { inline-size: 30px; block-size: 30px; }
	.site-harel-tech .h-svc__title { font-size: 17px; }
	.site-harel-tech .h-svc p { font-size: 16px; } /* running text on a phone: never under 16px (sections.css) */
	.h-rosette__run { visibility: hidden; } /* not display:none: toggling display would replay its entrance */
	.site-harel-tech .h-hero2__text { padding-block-end: 32px; }
	.site-harel-tech .h-hero2__text::after { content: ""; position: absolute; inset-inline-start: calc(-1 * var(--h-gutter)); inset-inline-end: 22%; inset-block-end: 0; block-size: 5px; border-start-end-radius: 5px; border-end-end-radius: 5px; background: var(--hr-blue); }
}

/* ---------- hero creative (Moti, 29.11; assets/js/creative.js) ---------- */
/* Harel hero creative: the support desk is live. The rosette turns slowly and follows the mouse, the screen floats
   toward the visitor while the petals fall back (depth), tickets arrive on the screen and get solved one after another,
   a soft light follows the mouse over the hero, and a pulse runs along the blue line. */
.site-harel-tech .h-hero2 { --mx: 50%; --my: 40%; }
.site-harel-tech .h-hero2::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: var(--glow, 0); transition: opacity .6s;
	background: radial-gradient(520px circle at var(--mx) var(--my), rgba(28, 129, 245, .14), transparent 70%); }
.site-harel-tech .h-hero2 > * { position: relative; z-index: 1; }
.site-harel-tech .h-rosette__svg { translate: var(--bx, 0) var(--by, 0); }
.site-harel-tech .h-screen { translate: var(--fx, 0) var(--fy, 0); box-shadow: 0 calc(2cqi + var(--lift, 0) * 2cqi) calc(5cqi + var(--lift, 0) * 3cqi) rgba(15, 44, 82, .28); }
/* the live queue: a new call slides in "בטיפול" (amber, with a progress line), then turns "נפתר" */
.h-screen__rows li { transition: opacity .45s, transform .45s cubic-bezier(.2, .8, .2, 1); }
.h-screen__rows li.is-in { opacity: 0; transform: translateY(-60%); }
.h-screen__rows li.is-out { opacity: 0; transform: translateY(40%); }
.h-screen__rows li { position: relative; }
.h-screen__rows em.is-wip { color: #9A5B00; background: #FFF3DC; }
.h-screen__rows em.is-done { animation: hr-pop .45s cubic-bezier(.2, .8, .2, 1.4); }
.h-screen__rows li .hr-prog { position: absolute; inset-inline-start: 0; inset-block-end: -1px; block-size: 2px; inline-size: 100%; background: var(--hr-logo); transform-origin: right; transform: scaleX(0); animation: hr-prog 1.9s linear forwards; }
[dir="ltr"] .h-screen__rows li .hr-prog { transform-origin: left; }
@keyframes hr-pop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }
@keyframes hr-prog { to { transform: scaleX(1); } }
/* a pulse runs along the line from the rosette to the page edge */
.site-harel-tech .h-rosette__run::after { content: ""; position: absolute; inset-block: -3px; left: 0; inline-size: 90px; border-radius: 99px; opacity: 0;
	background: linear-gradient(90deg, transparent, #7DB8FF 60%, #fff); filter: drop-shadow(0 0 6px #1C81F5); animation: hr-spark 3.8s cubic-bezier(.5, 0, .2, 1) 2.4s infinite; }
@keyframes hr-spark { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(90vw); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
	.site-harel-tech .h-rosette__run::after { display: none; }
}
