/* Harel Computing Group: "the hive".
   The group mark is a hexagon, pointy top, 241:274, built of parallel thick lines that fold into an H. The page speaks it:
   - full strength once: the hero hive (photos of the four companies' work in hexagon cells, the white mark in the centre);
   - one bold band: the four fields on the group indigo, hexagons between them;
   - elsewhere only quietly: the eyebrow's small hexagon, hexagon step markers, the hexagon line pattern as background.
   The four companies keep their own colour inside their own cards (base.css [data-company]); the group never borrows it.
   Colours: only theme presets (theme.json, every value derived from group.json's #242263 by tools/build_theme.py). */
:root {
	--g-indigo: var(--wp--preset--color--group);
	--g-accent: var(--wp--preset--color--g-accent);
	--g-deep: var(--wp--preset--color--g-deep);
	--g-page: var(--wp--preset--color--g-page);
	--g-mist: var(--wp--preset--color--g-mist);
	--g-light: var(--wp--preset--color--accent-on-dark);
	--c-accent: var(--g-accent);
	/* the mark's outline: a regular hexagon, point up */
	--g-hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
body.site-harel-group { background: var(--g-page); }

/* ---------- header: the mark with the group's full name set in type ---------- */
.site-harel-group .h-header__logo { align-items: center; gap: 12px; text-decoration: none; }
.site-harel-group .h-header__logo img { inline-size: auto; min-inline-size: 0; block-size: 46px; }
.site-harel-group .h-header__name { font-size: 21px; font-weight: 700; line-height: 1.1; color: var(--g-indigo); white-space: nowrap; }
.site-harel-group .h-header__cta { background: var(--g-indigo); color: #fff; }
.site-harel-group .h-header__cta:hover { background: var(--g-deep); color: #fff; }
/* the menu marks the hovered/current item with a small hexagon */
.site-harel-group .h-nav-desk .h-menu > li > a { color: var(--g-indigo); }
/* below the line box, clear of the descenders (ק, ץ, ן): the shared line sits at 6px, inside the text's reach */
.site-harel-group .h-nav-desk .h-menu > li > a::after { inset-inline: 0; inset-block-end: -6px; margin-inline: auto; inline-size: 10px; block-size: 11.5px; border-radius: 0; clip-path: var(--g-hex); background: var(--g-accent); transform: scale(0); }
.site-harel-group .h-nav-desk .h-menu > li > a:hover::after, .site-harel-group .h-nav-desk .h-menu > .current-menu-item > a::after { transform: scale(1); }
.site-harel-group .h-nav__panel .h-menu :is(.current-menu-item, .current-menu-ancestor) > a::before { inline-size: 10px; block-size: 11.5px; border-radius: 0; clip-path: var(--g-hex); background: var(--g-accent); }
@media (min-width: 1024px) {
	.site-harel-group .h-header__logo img { block-size: 54px; }
	.site-harel-group .h-header__name { font-size: 24px; }
}
@media (max-width: 380px) {
	.site-harel-group .h-header__logo { gap: 8px; }
	.site-harel-group .h-header__logo img { block-size: 36px; }
	.site-harel-group .h-header__name { font-size: 17px; }
}

/* ---------- small language: eyebrow, buttons, highlights ---------- */
.site-harel-group .h-eyebrow { color: var(--g-indigo); }
.site-harel-group .h-eyebrow i { inline-size: 14px; block-size: 16px; clip-path: var(--g-hex); background: var(--g-accent); }
.site-harel-group .h-btn--cta:hover { box-shadow: 0 12px 26px -12px var(--g-accent); }
.site-harel-group .h-btn--line { color: var(--g-indigo); }
.site-harel-group .h-btn--line:hover { background: #fff; }
.site-harel-group .h-sec__title { color: var(--g-indigo); }

/* ---------- hero: the headline, the tagline in the group's bright hue, and the hive ---------- */
.site-harel-group .h-hero2 { --h-title: clamp(46px, 5.9vw, 90px); padding-block: clamp(12px, 2vw, 32px) clamp(32px, 3.6vw, 52px); }
@media (min-width: 861px) { .site-harel-group .h-hero2:not(.h-hero2--inner, .h-hero2--hive) .h-hero2__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); } }
.site-harel-group .h-hero2__title { color: var(--g-indigo); line-height: 1.02; margin-block: 18px 14px; }
.h-hero2__tag { margin: 0 0 24px; font-size: clamp(22px, 2.15vw, 32px); font-weight: 600; line-height: 1.25; color: var(--g-accent); text-wrap: balance; }
.site-harel-group .h-hero2--inner .h-hero2__title { margin-block-end: 20px; }
/* a short desktop screen: the hive follows its height; the title keeps the reference's size longer (a larger share
   of the height than the companies' sites), since the hive is what runs out of room first (sections.css) */
@media (min-width: 861px) and (orientation: landscape) {
	.site-harel-group .h-hero2 { --h-fit: .17; }
	[dir="ltr"] .site-harel-group .h-hero2 { --h-fit: .12; } /* the English headline runs to four lines, the Hebrew to two */
	.site-harel-group .h-hero2__in > .h-hive { max-inline-size: min(600px, var(--h-fold)); }
}

/* The home (approved reference, 27.11): a bigger headline (700, the heaviest Hebrew face; 96px at most, so "מעטפת מלאה"
   stays one line in its column), a bolder tagline, wider buttons, the hive right under the header, and little space
   below it, so the companies' row starts in the first screen of a 1536x1024 desktop. Phones keep the rules above. */
@media (min-width: 861px) {
	.site-harel-group .h-hero2--hive { --h-title: min(6.4vw, 96px); padding-block: 4px 6px; }
	.site-harel-group .h-hero2--hive .h-hero2__in { grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); column-gap: clamp(24px, 2.6vw, 40px); }
	.site-harel-group .h-hero2--hive .h-eyebrow { font-size: clamp(17px, 1.45vw, 21px); }
	.site-harel-group .h-hero2--hive .h-eyebrow i { inline-size: 16px; block-size: 18px; }
	.site-harel-group .h-hero2--hive .h-hero2__title { line-height: .96; margin-block: 16px 12px; }
	.site-harel-group .h-hero2--hive .h-hero2__tag { font-size: clamp(22px, 2.35vw, 36px); font-weight: 700; margin-block-end: 22px; }
	.site-harel-group .h-hero2--hive .h-hero2__lead { max-inline-size: 41.5ch; } /* the reference's three lines */
	.site-harel-group .h-hero2--hive .h-hero2__acts { margin-block-start: 30px; }
	.site-harel-group .h-hero2--hive .h-hero2__acts .h-btn { padding-inline: clamp(30px, 2.9vw, 44px); font-size: clamp(19px, 1.4vw, 21px); }
}
/* the hexagon lines at the page edges: concentric outlines of the mark's hexagon, thin and faint, behind everything.
   Beside the hive (the inline end) two corners down the hero's height; on the text side one corner, low. Decoration only
   (pseudo-elements: nothing for assistive technology). Desktops wide enough to have a margin for them. */
@media (min-width: 1100px) {
	.h-hero2--hive { isolation: isolate; }
	.h-hero2--hive::before, .h-hero2--hive::after { content: ""; position: absolute; z-index: -1; background: var(--g-indigo); opacity: .1; pointer-events: none; }
	.h-hero2--hive::before {
		inset-block-start: 0; inset-inline-end: 0; block-size: 100%; aspect-ratio: 1 / 2;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 600'%3E%3Cpath fill='none' stroke='black' stroke-width='1.4' d='M-70 -220L147 -95L147 155L-70 280L-287 155L-287 -95ZM-70 -235L160 -103L160 163L-70 295L-300 163L-300 -103ZM-70 -250L173 -110L173 170L-70 310L-313 170L-313 -110ZM-70 -265L186 -118L186 178L-70 325L-326 178L-326 -118ZM330 390L590 540L590 840L330 990L70 840L70 540ZM330 375L603 532L603 848L330 1005L57 848L57 532ZM330 360L616 525L616 855L330 1020L44 855L44 525ZM330 345L629 517L629 863L330 1035L31 863L31 517Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 600'%3E%3Cpath fill='none' stroke='black' stroke-width='1.4' d='M-70 -220L147 -95L147 155L-70 280L-287 155L-287 -95ZM-70 -235L160 -103L160 163L-70 295L-300 163L-300 -103ZM-70 -250L173 -110L173 170L-70 310L-313 170L-313 -110ZM-70 -265L186 -118L186 178L-70 325L-326 178L-326 -118ZM330 390L590 540L590 840L330 990L70 840L70 540ZM330 375L603 532L603 848L330 1005L57 848L57 532ZM330 360L616 525L616 855L330 1020L44 855L44 525ZM330 345L629 517L629 863L330 1035L31 863L31 517Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	}
	.h-hero2--hive::after {
		inset-block-end: 0; inset-inline-start: 0; inline-size: 180px; block-size: 240px;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 240'%3E%3Cpath fill='none' stroke='black' stroke-width='1.4' d='M330 50L538 170L538 410L330 530L122 410L122 170ZM330 35L551 162L551 418L330 545L109 418L109 162ZM330 20L564 155L564 425L330 560L96 425L96 155Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 240'%3E%3Cpath fill='none' stroke='black' stroke-width='1.4' d='M330 50L538 170L538 410L330 530L122 410L122 170ZM330 35L551 162L551 418L330 545L109 418L109 162ZM330 20L564 155L564 425L330 560L96 425L96 155Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	}
}

/* The hive: seven cells of a honeycomb (the mark's own outline), gap 1.8% of the width (approved reference).
   Cell 32.13% wide, 37.1% of the width tall (regular hexagon); rows step 29.39% of the width. In % of the hive's height
   (95.88% of its width): cell 38.7%, rows at 0 / 30.65% / 61.3%. Logical offsets, so it mirrors with the language. */
.h-hive { position: relative; inline-size: 100%; max-inline-size: 600px; justify-self: end; aspect-ratio: 100 / 95.88; }
.h-hive__cell { position: absolute; inline-size: 32.13%; block-size: 38.7%; margin: 0; clip-path: var(--g-hex); overflow: hidden; animation: g-cell .8s cubic-bezier(.2, .8, .2, 1) both; }
.h-hive__cell--a { inset-inline-start: 16.97%; inset-block-start: 0; animation-delay: .18s; }
.h-hive__cell--b { inset-inline-start: 50.9%; inset-block-start: 0; animation-delay: .3s; }
.h-hive__cell--c { inset-inline-start: 0; inset-block-start: 30.65%; animation-delay: .12s; }
.h-hive__cell--d { inset-inline-start: 33.93%; inset-block-start: 30.65%; animation-delay: 0s; }
.h-hive__cell--e { inset-inline-start: 67.87%; inset-block-start: 30.65%; animation-delay: .36s; }
.h-hive__cell--f { inset-inline-start: 16.97%; inset-block-start: 61.3%; animation-delay: .24s; }
.h-hive__cell--g { inset-inline-start: 50.9%; inset-block-start: 61.3%; animation-delay: .42s; }
@keyframes g-cell { from { opacity: 0; transform: scale(.84); } to { opacity: 1; transform: none; } }
.h-hive__cell--ph { background: var(--g-mist); }
.h-hive__cell--ph img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
/* the company's name on its photo: a white tag at the bottom of the cell, the name in the company's colour */
.h-hive__tag { position: absolute; inset-inline: 0; inset-block-end: 19%; margin-inline: auto; inline-size: max-content; max-inline-size: 80%; padding: 4px 12px; border-radius: var(--h-radius); background: #fff; color: var(--co); font-size: clamp(14px, 1.05vw, 16px); font-weight: 700; line-height: 1.3; white-space: nowrap; box-shadow: 0 8px 18px -10px rgba(15, 23, 42, .55); }
/* the centre: the white mark on the group indigo */
.h-hive__mark { display: grid; place-items: center; background: var(--g-indigo); color: #fff; }
.h-hive__mark svg { inline-size: 52%; block-size: auto; }
/* the count: four companies, white on the group indigo like the mark beside it */
.h-hive__count { display: grid; place-items: center; background: var(--g-indigo); color: #fff; text-align: center; }
.h-hive__count p { margin: 0; display: grid; justify-items: center; gap: 4px; }
.h-hive__count b { font-size: clamp(44px, 5.6vw, 84px); font-weight: 700; line-height: .9; }
.h-hive__count span { max-inline-size: 7.5em; font-size: clamp(13px, 1.25vw, 19px); font-weight: 700; line-height: 1.25; text-wrap: balance; }
/* the quiet cell: a close-up of the mark's parallel lines, in the group's bright hue on its mist */
.h-hive__quiet { background: var(--g-mist); }
.h-hive__quiet::before {
	content: ""; position: absolute; inset: 0; background: var(--g-accent); opacity: .21;
	-webkit-mask: url("../logo/group-mark.svg") 38% 30% / 190% auto no-repeat;
	mask: url("../logo/group-mark.svg") 38% 30% / 190% auto no-repeat;
}
/* an inner page (contact): the mark alone, in its hexagon */
.h-gmark { justify-self: center; display: grid; place-items: center; inline-size: min(100%, 230px); aspect-ratio: 241 / 274; clip-path: var(--g-hex); background: var(--g-indigo); color: #fff; }
.h-gmark svg { inline-size: 46%; block-size: auto; }

/* phones and small tablets: the headline and the buttons first (the main button in the first screen at 390x844),
   then the hive, whole */
@media (max-width: 860px) {
	.site-harel-group .h-hero2 { --h-title: clamp(40px, 11.5vw, 64px); }
	.site-harel-group .h-hero2__in > .h-hive { order: 0; inline-size: min(100%, 420px); margin-block-start: 8px; }
	.site-harel-group .h-hero2__in > .h-gmark { inline-size: min(40%, 150px); }
	.h-hero2__tag { margin-block-end: 18px; }
}
/* phones: the company tag on each photo stays, smaller, a little higher where the cell is wider */
@media (max-width: 599px) {
	.h-hive__tag { inset-block-end: 21%; max-inline-size: 86%; padding: 2px 6px; font-size: 11.5px; line-height: 1.35; }
}

/* ---------- the companies under the home hero: the heading, then the row (no lead; approved reference) ---------- */
.site-harel-group .h-cos .h-ghead { margin-block-end: 16px; }
.site-harel-group .h-cos .h-ghead .h-sec__title { margin-block-start: 0; }
@media (min-width: 861px) { .site-harel-group .h-hero2--hive + .h-cos { padding-block-start: 12px; } }

/* ---------- the band: the four fields on the group indigo, a hexagon between each, the hexagon pattern quietly behind ---------- */
.site-harel-group .h-band2 { position: relative; isolation: isolate; background: var(--g-indigo); --h-band-size: clamp(20px, 2.1vw, 31px); padding-block: clamp(28px, 3.4vw, 48px); }
.site-harel-group .h-band2::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; opacity: .06; -webkit-mask: url("../../../harel-base/assets/img/hex-pattern.svg") repeat center / 96px auto; mask: url("../../../harel-base/assets/img/hex-pattern.svg") repeat center / 96px auto; }
.site-harel-group .h-band2__in span { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); }
.site-harel-group .h-band2__in span + span::before { content: ""; flex: none; inline-size: clamp(14px, 1.3vw, 20px); aspect-ratio: 241 / 274; clip-path: var(--g-hex); background: var(--g-light); }

/* ---------- sections: hexagon step markers; the office on the tint with the hexagon pattern behind ---------- */
.site-harel-group .h-office__steps li::before { border-radius: 0; inline-size: 36px; block-size: 41px; inset-block-start: -4px; clip-path: var(--g-hex); background: var(--g-indigo); }
.site-harel-group .h-office__steps li:last-child::before { background: var(--g-accent); }
.site-harel-group .h-office__steps li::after { inset-inline-start: 17px; background: var(--g-mist); }
.site-harel-group .h-office { isolation: isolate; overflow: hidden; }
.site-harel-group .h-office::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--g-indigo); opacity: .05; -webkit-mask: url("../../../harel-base/assets/img/hex-pattern.svg") repeat center / 120px auto; mask: url("../../../harel-base/assets/img/hex-pattern.svg") repeat center / 120px auto; }
.site-harel-group .h-finder__legend { color: var(--g-indigo); }

/* ---------- footer: the deep indigo above the group bar's indigo, so the two read as two layers ---------- */
.site-harel-group .h-footer { background: var(--g-deep); }
.site-harel-group .h-footer__logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.site-harel-group .h-footer__logo img { inline-size: auto; block-size: 52px; }
.site-harel-group .h-footer__name { font-size: 20px; font-weight: 700; }

/* ---------- hero creative (Moti, 29.11; assets/js/creative.js) ---------- */
/* Group hero creative: the hive is alive. Light runs along the seams of every cell, the cells sit at different depths
   and drift with the mouse, the cell under the mouse rises and its outline lights in its company's colour, and a soft
   indigo light follows the mouse over the hero. */
.site-harel-group .h-hero2--hive { --mx: 70%; --my: 40%; }
.site-harel-group .h-hero2--hive .h-container { position: relative; z-index: 1; }
.gh-glow { position: absolute; inset: 0; pointer-events: none; opacity: var(--glow, 0); transition: opacity .6s; z-index: 0;
	background: radial-gradient(560px circle at var(--mx) var(--my), rgba(45, 43, 110, .10), transparent 70%); }
.h-hive__cell { translate: var(--dx, 0) var(--dy, 0); transition: scale .45s cubic-bezier(.2, .8, .2, 1), filter .45s; }
.h-hive.is-live .h-hive__cell { filter: saturate(.85) brightness(.97); }
.h-hive.is-live .h-hive__cell.is-near { scale: 1.06; z-index: 2; filter: none; }
.h-hive__cell--ph img { transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.h-hive__cell.is-near img { transform: scale(1.08); }
.gh-net { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; overflow: visible; pointer-events: none; z-index: 3; }
.gh-net .gh-hex { fill: none; stroke: var(--g-indigo, #2d2b6e); stroke-opacity: .16; stroke-width: 1.5; }
.gh-net .gh-run { fill: none; stroke: var(--c, #6C63FF); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 9 91; filter: drop-shadow(0 0 4px var(--c, #6C63FF));
	animation: gh-run var(--d, 5s) linear var(--dl, 0s) infinite; }
.gh-net .gh-hot { fill: none; stroke: var(--c, #6C63FF); stroke-width: 3; opacity: 0; transition: opacity .35s; filter: drop-shadow(0 0 6px var(--c, #6C63FF)); }
.gh-net .gh-hot.is-on { opacity: 1; }
@keyframes gh-run { to { stroke-dashoffset: -100; } }
@media (prefers-reduced-motion: reduce) {
	.gh-net .gh-run { animation: none; display: none; }
	.h-hive__cell { translate: none; }
}
