/* ===========================================================
   Amazos Home Refresh — B palette (Navy + Orange, professional)
   Scoped to body.home only. Enqueued conditionally via child theme.
   =========================================================== */

body.home {
	--leos-navy:         #0f2c4e;
	--leos-navy-2:       #1a3d66;
	--leos-orange:       #ea8a3e;
	--leos-orange-hover: #d5762b;
	--leos-gold:         #c07a2e;
	--leos-gold-deep:    #a5691e;
	--leos-cream:        #faf6ef;
	--leos-charcoal:     #1e2530;
	--leos-gray:         #5c6472;
	--leos-divider:      #e4dfd5;
}

/* ---------- Base surfaces ---------- */
body.home {
	background-color: var(--leos-cream);
	color: var(--leos-charcoal);
}
body.home main,
body.home #main,
body.home #content,
body.home .site-content {
	background-color: var(--leos-cream);
}

/* ---------- Headings ---------- */
body.home h1,
body.home h2,
body.home h3 {
	color: var(--leos-navy);
}

/* Right-aligned accent bar under H2 (RTL) */
body.home h2 {
	position: relative;
	padding-bottom: 14px;
}
body.home h2::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	width: 48px;
	height: 3px;
	background: var(--leos-orange);
	border-radius: 2px;
}

/* ---------- Links ---------- */
body.home a {
	color: var(--leos-orange);
	transition: color .2s ease;
}
body.home a:hover {
	color: var(--leos-orange-hover);
}

/* ---------- Site header on home — orange→gold gradient ---------- */
body.home header,
body.home .site-header,
body.home #header,
body.home .main-header {
	background: linear-gradient(90deg, var(--leos-orange) 0%, var(--leos-gold) 100%) !important;
	background-color: var(--leos-orange) !important; /* fallback */
	box-shadow: 0 2px 14px rgba(192,122,46,.18);
	padding: 6px 0 !important;
}
/* shrink the logo so the header strip is not tall */
body.home header .logo img,
body.home header img.mbh100 {
	height: 56px !important;
	max-height: 56px !important;
	width: auto !important;
}
body.home header .container {
	min-height: 0 !important;
}
/* hide the AR (Arabic) circle on desktop + mobile versions */
body.home header a:has(img[src*="/ar.png"]),
body.home .moblan a:has(img[src*="/ar.png"]) {
	display: none !important;
}
/* Logo tagline: "E-commerce Management" under the Amazos logo */
body.home header .logo {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 2px;
}
body.home header .logo::after {
	content: "ניהול איקומרס";
	color: #fff;
	font-size: 12px;
	letter-spacing: 3px;
	font-weight: 500;
	white-space: nowrap;
	opacity: 0.95;
	direction: rtl;
}
@media (max-width: 640px) {
	body.home header .logo::after {
		font-size: 10px;
		letter-spacing: 2px;
	}
}
body.home header a,
body.home .site-header a,
body.home #header a,
body.home .main-header a {
	color: #fff;
}
body.home header a:hover,
body.home .site-header a:hover,
body.home #header a:hover,
body.home .main-header a:hover {
	color: #fff3dd;
}

/* ---------- Site footer on home — gold→orange gradient (mirrored) ---------- */
body.home footer,
body.home .site-footer,
body.home #footer {
	background: linear-gradient(90deg, var(--leos-gold) 0%, var(--leos-orange) 100%) !important;
	background-color: var(--leos-orange) !important; /* fallback */
	color: #fff6e7;
}
body.home footer a,
body.home .site-footer a,
body.home #footer a {
	color: #fff;
}
body.home footer a:hover {
	color: #fff3dd;
}

/* ---------- Elementor: buttons ---------- */
body.home .elementor-button-wrapper .elementor-button,
body.home .elementor-widget-button .elementor-button,
body.home .elementor-widget-form .elementor-button {
	background-color: var(--leos-orange) !important;
	color: #fff !important;
	border-radius: 8px !important;
	padding: 14px 28px !important;
	font-weight: 600;
	letter-spacing: .2px;
	box-shadow: 0 4px 14px rgba(234,138,62,.25);
	transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
body.home .elementor-button-wrapper .elementor-button:hover,
body.home .elementor-widget-button .elementor-button:hover,
body.home .elementor-widget-form .elementor-button:hover {
	background-color: var(--leos-orange-hover) !important;
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(234,138,62,.35);
}

/* ---------- Elementor: hero (first top section) ---------- */
body.home .elementor-top-section:first-of-type {
	background: linear-gradient(135deg, var(--leos-navy) 0%, var(--leos-navy-2) 100%) !important;
}
body.home .elementor-top-section:first-of-type,
body.home .elementor-top-section:first-of-type h1,
body.home .elementor-top-section:first-of-type h2,
body.home .elementor-top-section:first-of-type h3,
body.home .elementor-top-section:first-of-type p,
body.home .elementor-top-section:first-of-type li {
	color: #fff;
}
body.home .elementor-top-section:first-of-type h2::after {
	background: var(--leos-orange);
}

/* ---------- Elementor: cards (icon-box, image-box, price-table) ---------- */
body.home .elementor-widget-icon-box .elementor-icon-box-wrapper,
body.home .elementor-widget-image-box .elementor-image-box-wrapper,
body.home .elementor-widget-price-table .elementor-price-table {
	background-color: #fff;
	border-radius: 12px;
	padding: 28px 22px;
	box-shadow: 0 6px 24px rgba(16,34,63,.08);
	transition: transform .25s ease, box-shadow .25s ease;
}
body.home .elementor-widget-icon-box:hover .elementor-icon-box-wrapper,
body.home .elementor-widget-image-box:hover .elementor-image-box-wrapper,
body.home .elementor-widget-price-table:hover .elementor-price-table {
	transform: translateY(-3px);
	box-shadow: 0 14px 36px rgba(16,34,63,.14);
}
body.home .elementor-widget-icon-box .elementor-icon,
body.home .elementor-widget-icon-box .elementor-icon-wrapper i {
	color: var(--leos-orange) !important;
}

/* ---------- Elementor: dividers ---------- */
body.home .elementor-divider-separator {
	border-top-color: var(--leos-divider) !important;
}

/* ---------- Existing mobile CTA bar: keep orange but refine ---------- */
body.home .conaction-mobile {
	background: var(--leos-orange);
}

/* ---------- Spacing breathing room between sections ---------- */
body.home .elementor-section.elementor-section-boxed > .elementor-container {
	padding-top: 8px;
	padding-bottom: 8px;
}

/* ---------- Form inputs: subtle modernization ---------- */
body.home input[type="text"],
body.home input[type="email"],
body.home input[type="tel"],
body.home textarea,
body.home select,
body.home .elementor-field-textual {
	border: 1px solid var(--leos-divider) !important;
	border-radius: 8px !important;
	padding: 12px 14px !important;
	background-color: #fff;
	transition: border-color .2s ease, box-shadow .2s ease;
}
body.home input[type="text"]:focus,
body.home input[type="email"]:focus,
body.home input[type="tel"]:focus,
body.home textarea:focus,
body.home select:focus,
body.home .elementor-field-textual:focus {
	border-color: var(--leos-orange) !important;
	box-shadow: 0 0 0 3px rgba(234,138,62,.15) !important;
	outline: none;
}

/* ---------- Secondary text ---------- */
body.home p,
body.home li {
	color: var(--leos-charcoal);
}
body.home .elementor-widget-text-editor p {
	color: var(--leos-charcoal);
}

/* ===========================================================
   Gear Trio — replaces Slick carousel on .topimages with 3-up
   grid + opposite-direction rotation (mechanical gear-chain)
   =========================================================== */

/* Trio headline (injected by JS as a sibling BEFORE .topimages) */
body.home .leos-trio-header {
	text-align: center;
	max-width: 1040px;
	margin: 80px auto 60px;
	padding: 0 20px;
}
body.home .leos-trio-header h2 {
	font-size: 36px;
	color: var(--leos-navy);
	margin: 0 0 16px;
	line-height: 1.35;
	font-weight: 800;
	unicode-bidi: plaintext;
}
body.home .leos-trio-header h2::after { display: none !important; }
body.home .leos-trio-header p {
	font-size: 18px;
	color: var(--leos-gray);
	line-height: 1.7;
	margin: 0;
	unicode-bidi: plaintext;
}
body.home .leos-trio-header bdi {
	unicode-bidi: isolate;
}

/* Trio container — overrides Slick layout */
body.home .topimages.leos-trio {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 48px;
	max-width: 1400px;
	margin: 40px auto 80px !important;
	padding: 0 24px !important;
	background: transparent !important;
}
/* hide arrows + any slick residue */
body.home .topimages.leos-trio .slick-arrow,
body.home .topimages.leos-trio .slick-prev,
body.home .topimages.leos-trio .slick-next,
body.home .topimages.leos-trio .slick-dots {
	display: none !important;
}
/* each slide: reset to block column */
body.home .topimages.leos-trio .imgs {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}
body.home .topimages.leos-trio .imgs .container {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
/* hide ALL original text inside each slide — title/subtitle/par/texts/flags */
body.home .topimages.leos-trio .imgs .container > .overh,
body.home .topimages.leos-trio .imgs .texts,
body.home .topimages.leos-trio .imgs .flags,
body.home .topimages.leos-trio .imgs img.flags {
	display: none !important;
}
/* the inner flex container (was height:500px) — collapse */
body.home .topimages.leos-trio .imgs .container > div:not(.overh):not(.leos-trio-label) {
	height: auto !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
}

/* the gear wheel itself — make it exactly sized, visible, rotating */
body.home .topimages.leos-trio .imgs .circleimg {
	width: 210px !important;
	height: 210px !important;
	margin: 0 auto !important;
	position: relative !important;
	visibility: visible !important;
	opacity: 1 !important;
	border-radius: 50%;
	will-change: transform;
	animation-duration: 30s;
	animation-iteration-count: infinite;
	animation-timing-function: linear;
	transform-origin: 50% 50%;
	background-size: cover !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
}
/* Recenter the gear-teeth ring (::before) and shadow (::after) over the
   content circle. Theme's defaults offset them sideways (right: -19%/-27%)
   which was designed for the old Slick layout — breaks at our new size. */
body.home .topimages.leos-trio .imgs .circleimg::before,
body.home .topimages.leos-trio .imgs .circleimg::after {
	top: 50% !important;
	left: 50% !important;
	right: auto !important;
	bottom: auto !important;
	margin: 0 !important;
	transform: translate(-50%, -50%);
	background-position: center center !important;
	background-size: contain !important;
	background-repeat: no-repeat !important;
}
body.home .topimages.leos-trio .imgs .circleimg::before {
	width: 135% !important;
	height: 135% !important;
}
body.home .topimages.leos-trio .imgs .circleimg::after {
	width: 145% !important;
	height: 145% !important;
}
/* Alternating rotation directions — mechanical gear-chain illusion.
   Each also gets its own background image (overrides the one from ACF). */
body.home .topimages.leos-trio .imgs:nth-of-type(1) .circleimg {
	animation-name: leos-gear-cw;
	animation-duration: 32s;
	background-image: url("../img/gear1.jpg") !important;
}
body.home .topimages.leos-trio .imgs:nth-of-type(2) .circleimg {
	animation-name: leos-gear-ccw;
	animation-duration: 24s;
	background-image: url("../img/gear2.jpg") !important;
}
body.home .topimages.leos-trio .imgs:nth-of-type(3) .circleimg {
	animation-name: leos-gear-cw;
	animation-duration: 32s;
	background-image: url("../img/gear3.jpg") !important;
}
/* hide any 4th+ slides if present */
body.home .topimages.leos-trio .imgs:nth-of-type(n+4) {
	display: none !important;
}

@keyframes leos-gear-cw  { to { transform: rotate(360deg); } }
@keyframes leos-gear-ccw { to { transform: rotate(-360deg); } }

/* Accessibility: respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
	body.home .topimages.leos-trio .imgs .circleimg {
		animation: none !important;
	}
}

/* Label under each gear (injected by JS) */
body.home .topimages.leos-trio .leos-trio-label {
	text-align: center;
	margin: 28px auto 0;
	max-width: 320px;
	padding: 0 12px;
}
body.home .topimages.leos-trio .leos-trio-label h3 {
	font-size: 22px;
	color: var(--leos-navy);
	font-weight: 700;
	margin: 0 0 10px;
	position: relative;
	padding-bottom: 10px;
}
body.home .topimages.leos-trio .leos-trio-label h3::after {
	content: "";
	position: absolute;
	right: 50%;
	transform: translateX(50%);
	bottom: 0;
	width: 32px;
	height: 2px;
	background: var(--leos-orange);
	border-radius: 2px;
}
body.home .topimages.leos-trio .leos-trio-label p {
	font-size: 15px;
	color: var(--leos-gray);
	line-height: 1.6;
	margin: 0;
}

/* --- Responsive: stack to 1 column on narrow screens --- */
@media (max-width: 900px) {
	body.home .topimages.leos-trio {
		grid-template-columns: 1fr;
		gap: 48px;
		margin: 12px auto 56px !important;
	}
	body.home .topimages.leos-trio .imgs .circleimg {
		width: 180px !important;
		height: 180px !important;
	}
	body.home .leos-trio-header {
		margin-top: 48px;
	}
	body.home .leos-trio-header h2 { font-size: 26px; }
	body.home .leos-trio-header p  { font-size: 16px; }
	body.home .topimages.leos-trio .leos-trio-label h3 { font-size: 20px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
	body.home .topimages.leos-trio {
		gap: 24px;
	}
	body.home .topimages.leos-trio .imgs .circleimg {
		width: 180px !important;
		height: 180px !important;
	}
}

/* ===========================================================
   Seller Report 2026 — insights section injected after the gear trio
   =========================================================== */
body.home .leos-insights {
	background: #f4f1ea;
	padding: 80px 0;
	margin: 40px 0 0;
}
body.home .leos-insights-inner {
	max-width: 1300px;
	margin: 0 auto;
	padding: 0 24px;
	text-align: center;
}
body.home .leos-insights .supertitle {
	display: inline-block;
	color: var(--leos-orange);
	font-size: 13px;
	letter-spacing: 3px;
	font-weight: 600;
	text-transform: none;
	margin: 0 0 12px;
}
body.home .leos-insights h2 {
	font-size: 38px;
	color: var(--leos-navy);
	margin: 0 0 16px;
	font-weight: 800;
	line-height: 1.3;
	padding-bottom: 0;
}
body.home .leos-insights h2::after { display: none !important; }
body.home .leos-insights .lead {
	font-size: 18px;
	color: var(--leos-gray);
	max-width: 780px;
	margin: 0 auto 48px;
	line-height: 1.65;
}
body.home .leos-insights-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
	text-align: right;
}
body.home .leos-insight-card {
	background: #fff;
	border-radius: 14px;
	padding: 28px 24px;
	box-shadow: 0 4px 20px rgba(16,34,63,.07);
	transition: transform .25s ease, box-shadow .25s ease;
	display: flex;
	flex-direction: column;
}
body.home .leos-insight-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 30px rgba(16,34,63,.14);
}
body.home .leos-insight-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: rgba(234,138,62,.12);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 20px;
}
body.home .leos-insight-icon i {
	color: var(--leos-orange);
	font-size: 22px;
	line-height: 1;
}
body.home .leos-insight-card h3 {
	color: var(--leos-navy);
	font-size: 19px;
	font-weight: 800;
	margin: 0 0 12px;
	line-height: 1.35;
	padding-bottom: 0;
}
body.home .leos-insight-card h3::after { display: none !important; }
body.home .leos-insight-card p {
	color: var(--leos-gray);
	font-size: 14.5px;
	line-height: 1.65;
	margin: 0;
}

@media (max-width: 900px) {
	body.home .leos-insights { padding: 56px 0; }
	body.home .leos-insights h2 { font-size: 26px; }
	body.home .leos-insights .lead { font-size: 15px; margin-bottom: 36px; }
	body.home .leos-insights-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
	body.home .leos-insight-card { padding: 22px 20px; }
}
@media (max-width: 560px) {
	body.home .leos-insights-grid { grid-template-columns: 1fr; }
}
