/*
Theme Name: Blocksy Child - Health Horizons
Description: Child theme for Blocksy. Holds only site-specific CSS and small hooks; all layout lives in the Blocksy Customizer.
Author: Health Horizons
Template: blocksy
Version: 1.2.2
Text Domain: blocksy-child
*/

/* ---------- Brand tokens ---------- */
:root {
	--hh-red: #dd2a2a;
	--hh-red-dark: #b81f1f;
	--hh-red-soft: #fdeceb;
	--hh-ink: #1d2433;
	--hh-text: #4b5563;
	--hh-menu-bg: #f4f4f4;
	--hh-surface: #f6f7f9;
	--hh-line: #e8eaee;
	--hh-muted: #a9a9a9;
	--hh-radius: 20px;
	--hh-radius-sm: 12px;
	--hh-shadow: 0 10px 30px rgba(29, 36, 51, .07);
	--hh-shadow-hover: 0 18px 40px rgba(29, 36, 51, .12);
	--hh-font: "Cairo", sans-serif;
}

html body {
	font-family: var(--hh-font);
	background-color: #fff;
}

/* Front page: no "Home" title bar, content starts with the hero */
.home .hero-section {
	display: none;
}

/* Catalogue mode: the (now empty) button area under product cards */
.products .ct-woo-card-actions {
	display: none;
}

/* ---------- Header rows ---------- */
/* "#header" outranks Blocksy's generated row styles,
   which are printed after this file. */
[data-header] #header [data-row*="top"] {
	--height: 40px;
	font-size: 13px;
	border-bottom: 1px solid #eee;
}
#header [data-row*="top"] .wpml-ls {
	width: auto;
}
#header .hh-hotline {
	color: inherit;
	text-decoration: none;
	font-size: 14px;
}
#header .hh-hotline::before {
	content: "\260E";
	margin-inline-end: 8px;
	font-size: 18px;
	color: var(--hh-red);
}
[data-header] #header [data-row*="bottom"] {
	--height: 50px;
	background-color: var(--hh-menu-bg);
}
#header .menu-item.hh-browse-cats > a {
	background: var(--hh-red);
	color: #fff !important;
	font-weight: 700;
	padding-inline: 20px;
	min-width: 260px;
	border-radius: 4px 4px 0 0;
}
#header .menu-item.hh-browse-cats > a:hover {
	background: var(--hh-red-dark);
}
#header .menu-item.hh-browse-cats > a::before {
	content: "\2630";
	margin-inline-end: 10px;
}
#header .menu-item.hh-browse-cats > .sub-menu {
	min-width: 260px;
}

/* ---------- Footer (rebuilt "Footer Type 2") ---------- */
[data-footer] #footer [data-row*="top"] {
	background-color: var(--hh-menu-bg);
	padding-block: 40px;
}
[data-footer] #footer [data-row*="middle"] {
	background-color: #fff;
	padding-block: 50px;
}
[data-footer] #footer [data-row*="bottom"] {
	background-color: #fff;
	border-top: 1px solid #eee;
	font-size: 14px;
}
#footer [data-row] > div {
	gap: 30px;
}
#footer [data-row*="top"] > div {
	align-items: center;
}
@media (min-width: 690px) {
	[data-footer] #footer [data-row*="middle"] > div {
		grid-template-columns: 2fr 1fr;
	}
}
@media (min-width: 1000px) {
	[data-footer] #footer [data-row*="top"] > div {
		grid-template-columns: 5fr 7fr;
	}
	[data-footer] #footer [data-row*="bottom"] > div {
		grid-template-columns: 1fr 2fr;
		align-items: center;
	}
	#footer [data-row*="bottom"] [data-column="menu"] {
		justify-content: flex-end;
	}
}
.hh-footer-newsletter h2 {
	font-weight: 700;
	margin: 0 0 6px;
}
.hh-footer-newsletter p,
.hh-footer-label,
.hh-footer-city {
	color: var(--hh-muted);
	margin: 0;
}
.hh-footer-form .wpcf7-form p {
	margin: 0;
}
.hh-footer-form input[type="submit"] {
	background: var(--hh-red);
	border-color: var(--hh-red);
}
.hh-footer-logo img {
	max-width: 220px;
	height: auto;
	margin-bottom: 20px;
}
.hh-footer-phone {
	display: inline-block;
	font-size: 20px;
	font-weight: 700;
	color: inherit;
	text-decoration: none;
	margin-block: 4px 8px;
}
.hh-footer-title {
	font-weight: 700;
	margin: 0 0 14px;
}
.hh-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}
.hh-footer-links li {
	margin-bottom: 8px;
}
.hh-footer-links a {
	color: inherit;
	text-decoration: none;
}
.hh-footer-links a:hover,
#footer .footer-menu-inline a:hover {
	color: var(--hh-red);
}

/* ---------- Buttons ---------- */
.hh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--hh-red);
	color: #fff !important;
	padding: 10px 24px;
	border: 2px solid var(--hh-red);
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.hh-btn:hover {
	background: var(--hh-red-dark);
	border-color: var(--hh-red-dark);
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(221, 42, 42, .25);
}
.hh-btn--lg {
	padding: 14px 30px;
	font-size: 16px;
}
.hh-btn--ghost {
	background: transparent;
	color: var(--hh-ink) !important;
	border-color: var(--hh-line);
}
.hh-btn--ghost:hover {
	background: #fff;
	border-color: var(--hh-ink);
	box-shadow: none;
}
.hh-btn--light {
	background: #fff;
	color: var(--hh-red) !important;
	border-color: #fff;
}
.hh-btn--light:hover {
	background: #fff;
	border-color: #fff;
	color: var(--hh-red-dark) !important;
}
.hh-btn--outline-light {
	background: transparent;
	border-color: rgba(255, 255, 255, .7);
}
.hh-btn--outline-light:hover {
	background: rgba(255, 255, 255, .12);
	border-color: #fff;
	box-shadow: none;
}

/* =====================================================================
   HOME 2026
   ===================================================================== */
.hh-home-2026 .entry-content > *:first-child {
	margin-top: 0;
}
.hh-home-2026 .entry-content > p:empty {
	display: none;
}
.hh-home-2026 .entry-content h1,
.hh-home-2026 .entry-content h2,
.hh-home-2026 .entry-content h3 {
	color: var(--hh-ink);
}

/* ---------- Hero ---------- */
.hh-hero {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	align-items: center;
	gap: 48px;
	padding: 56px 56px;
	margin: 24px 0 0;
	border-radius: calc(var(--hh-radius) + 8px);
	background:
		radial-gradient(120% 90% at 100% 0%, var(--hh-red-soft) 0%, transparent 55%),
		linear-gradient(180deg, var(--hh-surface) 0%, #fff 100%);
	overflow: hidden;
}
[dir="rtl"] .hh-hero {
	background:
		radial-gradient(120% 90% at 0% 0%, var(--hh-red-soft) 0%, transparent 55%),
		linear-gradient(180deg, var(--hh-surface) 0%, #fff 100%);
}
.hh-eyebrow {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background: #fff;
	color: var(--hh-red);
	font-size: 13px;
	font-weight: 700;
	box-shadow: var(--hh-shadow);
}
.hh-hero__title {
	margin: 18px 0 14px;
	font-size: clamp(30px, 4.2vw, 52px);
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -.01em;
}
.hh-hero__lead {
	margin: 0 0 28px;
	max-width: 52ch;
	font-size: 17px;
	line-height: 1.8;
	color: var(--hh-text);
}
.hh-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.hh-hero__media {
	position: relative;
	min-height: 380px;
}
.hh-hero__card {
	position: absolute;
	display: block;
	background: #fff;
	border-radius: var(--hh-radius);
	box-shadow: var(--hh-shadow);
	overflow: hidden;
	transition: transform .35s ease, box-shadow .35s ease;
}
.hh-hero__card:hover {
	transform: translateY(-6px);
	box-shadow: var(--hh-shadow-hover);
	z-index: 3;
}
.hh-hero__card img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 10px;
}
.hh-hero__card--1 {
	width: 58%;
	aspect-ratio: 1;
	top: 8%;
	inset-inline-start: 4%;
	z-index: 2;
}
.hh-hero__card--2 {
	width: 40%;
	aspect-ratio: 1;
	top: 0;
	inset-inline-end: 0;
}
.hh-hero__card--3 {
	width: 40%;
	aspect-ratio: 1;
	bottom: 0;
	inset-inline-end: 6%;
}

/* ---------- Stats strip ---------- */
.hh-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin: 28px 0 0;
}
.hh-stats__item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 20px 22px;
	border: 1px solid var(--hh-line);
	border-radius: var(--hh-radius-sm);
	background: #fff;
}
.hh-stats__item strong {
	font-size: 24px;
	line-height: 1.3;
	color: var(--hh-ink);
}
.hh-stats__item strong a {
	color: inherit;
	text-decoration: none;
}
.hh-stats__item span {
	font-size: 14px;
	color: var(--hh-text);
}

/* ---------- Sections ---------- */
.hh-section {
	margin: 72px 0 0;
}
.hh-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}
.hh-section__title {
	margin: 0;
	font-size: clamp(24px, 2.6vw, 32px);
	font-weight: 700;
}
.hh-link {
	color: var(--hh-red);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.hh-link::after {
	content: " \2192";
}
[dir="rtl"] .hh-link::after {
	content: " \2190";
}

/* ---------- Category cards ---------- */
.hh-cats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.hh-cat {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px;
	border: 1px solid var(--hh-line);
	border-radius: var(--hh-radius);
	background: #fff;
	color: var(--hh-ink);
	text-decoration: none;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.hh-cat:hover {
	transform: translateY(-3px);
	border-color: transparent;
	box-shadow: var(--hh-shadow-hover);
}
.hh-cat__img {
	flex: 0 0 84px;
	width: 84px;
	height: 84px;
	border-radius: var(--hh-radius-sm);
	background: var(--hh-surface);
	overflow: hidden;
}
.hh-cat__img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}
.hh-cat__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}
.hh-cat__name {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
}
.hh-cat__count {
	font-size: 13px;
	color: var(--hh-text);
}
.hh-cat__arrow {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--hh-surface);
	color: var(--hh-red);
	transition: background .25s ease, color .25s ease;
}
[dir="rtl"] .hh-cat__arrow {
	transform: scaleX(-1);
}
.hh-cat:hover .hh-cat__arrow {
	background: var(--hh-red);
	color: #fff;
}

/* ---------- Product grid on the home page ---------- */
.hh-section--products .woocommerce {
	margin: 0;
}
.hh-section--products ul.products {
	gap: 16px;
}
.hh-section--products ul.products li.product {
	padding: 14px;
	border: 1px solid var(--hh-line);
	border-radius: var(--hh-radius);
	background: #fff;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.hh-section--products ul.products li.product:hover {
	transform: translateY(-3px);
	border-color: transparent;
	box-shadow: var(--hh-shadow-hover);
}
.hh-section--products ul.products li.product figure,
.hh-section--products ul.products li.product .ct-media-container {
	border-radius: var(--hh-radius-sm);
	background: var(--hh-surface);
	overflow: hidden;
}
.hh-section--products ul.products li.product .woocommerce-loop-product__title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
}

/* ---------- Spotlight banners ---------- */
.hh-spotlight {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
.hh-banner {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--hh-radius);
	background: var(--hh-menu-bg);
	color: var(--hh-ink);
	text-decoration: none;
}
.hh-banner img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform .6s ease;
}
.hh-banner:hover img {
	transform: scale(1.05);
}
/* Arabic (RTL): text sits on the right, where the shoe is in the photo -
   mirror the photo so the shoe moves to the left. */
[dir="rtl"] .hh-banner img {
	transform: scaleX(-1);
}
[dir="rtl"] .hh-banner:hover img {
	transform: scaleX(-1) scale(1.05);
}
.hh-banner__text {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: 56%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: 28px 36px;
}
.hh-banner__text h3 {
	margin: 0 0 6px;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.25;
}
.hh-banner__text p {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.7;
	color: var(--hh-text);
}

/* ---------- Closing CTA ---------- */
.hh-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin: 72px 0 80px;
	padding: 40px 48px;
	border-radius: calc(var(--hh-radius) + 8px);
	background: linear-gradient(135deg, var(--hh-red) 0%, var(--hh-red-dark) 100%);
	color: #fff;
}
.hh-home-2026 .entry-content .hh-cta h2 {
	margin: 0 0 6px;
	color: #fff;
	font-size: clamp(22px, 2.4vw, 30px);
}
.hh-cta p {
	margin: 0;
	opacity: .9;
}
.hh-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 999.98px) {
	.hh-hero {
		grid-template-columns: 1fr;
		padding: 40px 28px;
		gap: 32px;
	}
	.hh-hero__media {
		min-height: 320px;
	}
	.hh-stats {
		grid-template-columns: repeat(2, 1fr);
	}
	.hh-cats {
		grid-template-columns: repeat(2, 1fr);
	}
	.hh-cta {
		flex-direction: column;
		align-items: flex-start;
		padding: 32px 28px;
	}
}
@media (max-width: 689px) {
	.hh-hero {
		padding: 32px 20px;
		margin-top: 12px;
	}
	/* Phone: the three product photos sit in one tidy row */
	.hh-hero__media {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 10px;
		min-height: 0;
	}
	.hh-hero__card,
	.hh-hero__card--1,
	.hh-hero__card--2,
	.hh-hero__card--3 {
		position: static;
		width: auto;
		aspect-ratio: 1;
		border-radius: var(--hh-radius-sm);
	}
	.hh-hero__card img {
		padding: 6px;
	}
	.hh-hero__lead {
		font-size: 16px;
	}
	.hh-hero__actions .hh-btn {
		flex: 1 1 auto;
	}
	.hh-stats__item {
		padding: 16px;
	}
	.hh-stats__item strong {
		font-size: 20px;
	}
	.hh-section {
		margin-top: 52px;
	}
	.hh-cats {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	.hh-cat__img {
		flex-basis: 64px;
		width: 64px;
		height: 64px;
	}
	.hh-spotlight {
		grid-template-columns: 1fr;
	}
	.hh-banner__text {
		width: 66%;
		padding: 18px 20px;
	}
	.hh-banner__text h3 {
		font-size: 20px;
	}
	.hh-banner__text p {
		display: none;
	}
	.hh-cta {
		margin-bottom: 56px;
	}
	.hh-cta__actions .hh-btn {
		flex: 1 1 auto;
	}
}

/* ---------- Language switcher (segmented pill, no flags) ---------- */
.hh-lang {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 3px;
	background: var(--hh-surface);
	border: 1px solid var(--hh-line);
	border-radius: 999px;
	line-height: 1;
	white-space: nowrap;
	vertical-align: middle;
	font-family: var(--hh-font);
}
.hh-lang .hh-lang__icon {
	flex: 0 0 auto;
	color: var(--hh-text);
	margin-inline: 6px 2px;
}
.hh-lang a.hh-lang__item {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--hh-text);
	text-decoration: none;
	background: transparent;
	transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.hh-lang a.hh-lang__item:hover {
	color: var(--hh-red);
}
.hh-lang a.hh-lang__item:focus-visible {
	outline: 2px solid var(--hh-red);
	outline-offset: 1px;
}
.hh-lang a.hh-lang__item.is-active {
	background: #fff;
	color: var(--hh-ink);
	box-shadow: var(--hh-shadow);
}
.hh-lang a.hh-lang__item.is-active:hover {
	color: var(--hh-ink);
}
/* Header top row is 40px high: keep the pill compact inside it */
#header [data-row*="top"] .hh-lang a.hh-lang__item {
	padding-block: 3px;
}
/* Mobile off-canvas panel: give the pill room under the menu */
#offcanvas .hh-lang {
	margin-top: 16px;
}
#offcanvas .hh-lang a.hh-lang__item {
	padding: 6px 16px;
	font-size: 14px;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
	.hh-btn,
	.hh-cat,
	.hh-hero__card,
	.hh-banner img,
	.hh-lang a.hh-lang__item,
	.hh-section--products ul.products li.product {
		transition: none;
	}
}
