/* Header — נעול, שקוף-מטושטש, יושב בתוך עולם השמיים של ה-Hero. */

/* Skip link — נגישות (IS 5568): ראשון ב-Tab order, מוסתר עד Focus. dir="rtl" לכן inset-inline
   (לא left) כדי שבמעבר תמונת-מראה של RTL זה עדיין יעבוד נכון. */
.gc-skip-link {
	position: absolute;
	inset-inline-start: 12px;
	top: -60px;
	z-index: 200;
	background: var(--wp--preset--color--pink-deep, #BE3F82);
	color: #fff;
	padding: 12px 22px;
	border-radius: 0 0 12px 12px;
	font-weight: 700;
	text-decoration: none;
	transition: top 0.2s ease;
}

.gc-skip-link:focus {
	top: 0;
}

/* יעד ה-Skip Link (<main id="main-content" tabindex="-1"> בכל Template) — ה-
   tabindex="-1" נחוץ כדי שה-Focus בפועל יעבור לשם (לא רק Scroll ל-#hash),
   כדי שהמשך ניווט-מקלדת יתחיל מתוך התוכן הראשי ולא יחזור לראש הדף. טבעת-
   Focus מלאה סביב כל התוכן הראשי לא נחוצה חזותית (המטרה היא מיקום ה-Focus
   התוכני, לא אינדיקציה ויזואלית על כל הבלוק) — מוסתרת רק לאלמנט הזה הספציפי. */
main#main-content:focus {
	outline: none;
}

/* ה-Sticky חייב לשבת על ה-<header> העוטף שוורדפרס עצמו מפיק סביב ה-template-part
   (לא על ה-div הפנימי .gc-header): כשה-div הפנימי היחיד בתוך ה-<header> היה ה-Sticky
   עצמו, לגובה ה-Container העוטף שלו לא היה שום "מרחב תזוזה" משלו (זהה בדיוק לגובה
   הילד) — ולפי הספסיפיקציה זה גורם לדביקות "לצאת" מהקונטיינר שלה מיד עם כל גלילה,
   כלומר לא נדבק בפועל אף פעם. אומת אמפירית (גם ב-DevTools וגם בגלילה אמיתית) שהעברת
   ה-position:sticky צעד אחד למעלה, אל ה-<header> עצמו — שהקונטיינר שלו הוא wp-site-blocks
   בגובה כל העמוד — פותרת את זה לגמרי. */
header.wp-block-template-part:has(.gc-header) {
	position: sticky;
	top: 0;
	z-index: 100;
}

.gc-header {
	background: rgba(255, 255, 255, 0.42);
	backdrop-filter: blur(14px) saturate(1.4);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.gc-header__inner {
	max-width: 1280px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 8px 32px;
}

.gc-header__logo {
	display: block;
	flex-shrink: 0;
}

.gc-header__logo img {
	height: 46px;
	width: auto;
	display: block;
}

.gc-header__nav-group {
	display: flex;
	align-items: center;
	gap: 26px;
	flex: 1;
	justify-content: center;
}

.gc-header__nav {
	display: flex;
	gap: 30px;
	font-weight: 600;
	font-size: 0.95rem;
}

.gc-header__nav a {
	text-decoration: none;
	color: #0c3a4c;
}

.gc-header__social {
	display: flex;
	align-items: center;
	gap: 9px;
	padding-inline-start: 20px;
	border-inline-start: 1px solid rgba(12, 58, 76, 0.16);
}

.gc-header__social a {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba(12, 58, 76, 0.06);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.25s ease, transform 0.25s ease;
}

.gc-header__social a:hover {
	background: rgba(12, 58, 76, 0.13);
	transform: translateY(-1px);
}

.gc-header__social svg {
	width: 12px;
	height: 12px;
	fill: #0c3a4c;
	opacity: 0.7;
}

.gc-header__phone {
	display: flex;
	align-items: center;
	gap: 7px;
	color: #0c3a4c;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.88rem;
	flex-shrink: 0;
}

.gc-header__phone svg {
	width: 15px;
	height: 15px;
	fill: #0c3a4c;
	opacity: 0.75;
}

.gc-header__phone:hover {
	color: var(--wp--preset--color--pink-deep, #BE3F82);
}

.gc-header__cta {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	padding: 13px 28px;
	font-weight: 700;
	font-size: 0.92rem;
	text-decoration: none;
	border-radius: 999px;
	color: #fff;
	background: linear-gradient(140deg, var(--wp--preset--color--pink-light, #ffc3f2) 0%, var(--wp--preset--color--pink, #fa8ee3) 45%, var(--wp--preset--color--pink-deep, #BE3F82) 100%);
	box-shadow: 0 12px 26px -8px rgba(216, 87, 158, 0.5);
	transition: transform 0.25s ease;
}

.gc-header__cta:hover,
.gc-header__cta:focus-visible {
	transform: translateY(-2px);
}

/* Hamburger — כפתור פתיחת תפריט המובייל. גלוי רק ≤900px (אותו Breakpoint
   שבו ניווט ה-Desktop נעלם), 3 קווים שהופכים ל-X כש-is-open (site.js). */
.gc-header__menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border: none;
	border-radius: 50%;
	background: rgba(12, 58, 76, 0.06);
	cursor: pointer;
	padding: 0;
}

.gc-header__menu-toggle:hover {
	background: rgba(12, 58, 76, 0.13);
}

.gc-header__menu-toggle:focus-visible {
	outline: 2px solid var(--wp--preset--color--blue-deep, #006E8C);
	outline-offset: 2px;
}

.gc-header__menu-icon {
	position: relative;
	width: 19px;
	height: 13px;
	display: block;
}

.gc-header__menu-icon span {
	position: absolute;
	inset-inline: 0;
	height: 2px;
	border-radius: 2px;
	background: #0c3a4c;
	transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.gc-header__menu-icon span:nth-child(1) { top: 0; }
.gc-header__menu-icon span:nth-child(2) { top: 5.5px; }
.gc-header__menu-icon span:nth-child(3) { top: 11px; }

.gc-header__menu-toggle[aria-expanded="true"] .gc-header__menu-icon span:nth-child(1) {
	top: 5.5px;
	transform: rotate(45deg);
}

.gc-header__menu-toggle[aria-expanded="true"] .gc-header__menu-icon span:nth-child(2) {
	opacity: 0;
}

.gc-header__menu-toggle[aria-expanded="true"] .gc-header__menu-icon span:nth-child(3) {
	top: 5.5px;
	transform: rotate(-45deg);
}

/* Overlay נגיש למובייל — מסך-מלא, Fade + הרמה עדינה (בכוונה לא translateX:
   הרוחב מלא ואין שכפול-תוכן כמו בקרוסלת הלוגואים, אבל translateX על בלוק
   שיושב בעמוד RTL כבר גרם לבאג אמיתי פעם אחת בפרויקט הזה — עדיף לגמרי
   להימנע מכיוון אופקי כאן ולהשתמש רק ב-opacity/translateY). */
.gc-mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 250;
	display: flex;
}

.gc-mobile-menu[hidden] {
	display: none;
}

.gc-mobile-menu__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.97);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	opacity: 0;
	transition: opacity 0.28s ease;
}

.gc-mobile-menu__panel {
	position: relative;
	margin: 0 auto;
	width: 100%;
	max-width: 420px;
	height: 100%;
	display: flex;
	flex-direction: column;
	padding: 22px 32px calc(28px + env(safe-area-inset-bottom, 0px));
	overflow-y: auto;
	opacity: 0;
	transform: translateY(-10px);
	transition: opacity 0.28s ease, transform 0.28s ease;
}

.gc-mobile-menu.is-open .gc-mobile-menu__backdrop {
	opacity: 1;
}

.gc-mobile-menu.is-open .gc-mobile-menu__panel {
	opacity: 1;
	transform: none;
}

.gc-mobile-menu__close {
	align-self: flex-end;
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	border: none;
	border-radius: 50%;
	background: rgba(12, 58, 76, 0.06);
	color: #0c3a4c;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	margin-bottom: 12px;
}

.gc-mobile-menu__close:hover {
	background: rgba(12, 58, 76, 0.13);
}

.gc-mobile-menu__close:focus-visible {
	outline: 2px solid var(--wp--preset--color--blue-deep, #006E8C);
	outline-offset: 2px;
}

.gc-mobile-menu__close svg {
	width: 19px;
	height: 19px;
}

.gc-mobile-menu__nav {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 12px;
}

.gc-mobile-menu__nav a {
	padding: 14px 4px;
	font-size: 1.2rem;
	font-weight: 700;
	color: #0c3a4c;
	text-decoration: none;
	border-bottom: 1px solid rgba(12, 58, 76, 0.08);
}

.gc-mobile-menu__nav a:focus-visible {
	outline: 2px solid var(--wp--preset--color--blue-deep, #006E8C);
	outline-offset: 2px;
}

.gc-mobile-menu__social {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	padding-top: 28px;
}

.gc-mobile-menu__social a {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(12, 58, 76, 0.06);
	display: flex;
	align-items: center;
	justify-content: center;
}

.gc-mobile-menu__social svg {
	width: 15px;
	height: 15px;
	fill: #0c3a4c;
	opacity: 0.7;
}

@media (max-width: 900px) {
	.gc-header__nav-group {
		display: none;
	}
	.gc-header__phone {
		width: 38px;
		height: 38px;
		justify-content: center;
		border-radius: 50%;
		background: rgba(12, 58, 76, 0.06);
	}
	.gc-header__phone-num {
		display: none;
	}
	.gc-header__menu-toggle {
		display: flex;
	}
}

/* מתחת ל-480px: הימנעות מהתנגשות בין Logo / CTA / Phone / Hamburger — ה-CTA
   הטקסטואלי יורד (צור-קשר עדיין נגיש דרך התפריט וגם דרך כפתור הטלפון נשאר
   לפעולה מיידית), כדי שלארבעת האלמנטים יהיה מספיק מקום בשורה אחת. */
@media (max-width: 480px) {
	.gc-header__inner {
		padding-inline: 18px;
		gap: 10px;
	}
	.gc-header__logo img {
		height: 38px;
	}
	.gc-header__cta {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gc-header__cta,
	.gc-header__social a {
		transition: none;
	}
	.gc-header__cta:hover {
		transform: none;
	}
	.gc-header__menu-icon span,
	.gc-mobile-menu__backdrop,
	.gc-mobile-menu__panel {
		transition: none;
	}
}
