/*
 * "Why Businesses Choose Saiftec": home page partnership section
 * (inc/widgets/class-saiftec-why-choose.php, content in inc/home-why.php).
 *
 * Everything is scoped to .hwhy. Every element this section styles is named by class at (0,2,0) or
 * more, which beats the Elementor Kit's `.elementor-kit-N h2/a/p` (0,1,1) rules; links restate their
 * hover and focus states for the same reason. Light appearance only, like the rest of the site.
 *
 * The approved mockup was drawn about 780px wide; the type and spacing here keep its proportions at
 * the site's real 1200px content width, and use the mockup's own mobile values on phones.
 */

.hwhy {
	--hw-bg: #edefff;
	--hw-ink: #170d3d;
	--hw-muted: #5a5a72;
	--hw-line: #e9e9f5;
	--hw-panel: #fff;
	--hw-cyan: #0aa3d6;
	--hw-teal: #07708f;      /* #0AA3D6 darkened for the small eyebrow on lavender: 4.9:1 (WCAG AA) */
	--hw-purple: #3a0ca3;
	--hw-radius: 22px;
	--hw-head: "Heebo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--hw-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--hw-ink);
	font-family: var(--hw-body);
	font-size: 16px;
	line-height: 1.6;
}
.elementor-widget-saiftec-why-choose { width: 100%; }
.hwhy *,
.hwhy *::before,
.hwhy *::after { box-sizing: border-box; }
.hwhy p { margin: 0; }
.hwhy .hwhy-icon { width: 1em; height: 1em; flex: none; display: block; }

/* ---------- Shell: soft lavender, restrained rings ---------- */
.hwhy .hwhy-shell {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-radius: 28px;
	padding: 56px 48px 44px;
	background:
		radial-gradient(ellipse at 100% 0%, rgb(10 163 214 / 5%) 0%, transparent 46%),
		radial-gradient(ellipse at 0% 100%, rgb(58 12 163 / 4%) 0%, transparent 45%),
		var(--hw-bg);
}
.hwhy .hwhy-shell::before {
	content: "";
	position: absolute;
	z-index: -1;
	width: 380px;
	height: 380px;
	right: -270px;
	top: -140px;
	border-radius: 50%;
	border: 1px solid rgb(10 163 214 / 10%);
	box-shadow: 0 0 0 32px rgb(58 12 163 / 1.6%), 0 0 0 64px rgb(10 163 214 / 1.6%);
	pointer-events: none;
}

/* ---------- Heading ---------- */
.hwhy .hwhy-eyebrow {
	display: flex;
	align-items: flex-start; /* the dot stays on the first line if a narrow phone wraps the text */
	gap: 10px;
	margin: 0 0 26px;
	font-family: var(--hw-body);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: .165em;
	text-transform: uppercase;
	color: var(--hw-teal);
}
.hwhy .hwhy-eyebrow::before {
	content: "";
	width: 7px;
	height: 7px;
	margin-top: calc(.75em - 3.5px); /* centred on the first line (line-height 1.5) */
	flex: none;
	border-radius: 50%;
	background: var(--hw-cyan);
	box-shadow: 0 0 0 5px rgb(10 163 214 / 7.5%);
}
.hwhy .hwhy-title {
	margin: 0;
	padding: 0;
	font-family: var(--hw-head);
	font-size: 58px;
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -.025em;
	color: var(--hw-ink);
	text-transform: none;
}
.hwhy .hwhy-title span {
	display: block;
	color: #0b84ac;
	background-image: linear-gradient(100deg, #0b84ac, var(--hw-purple));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	/* keep descenders inside the clipped box */
	padding-bottom: .06em;
}
.hwhy .hwhy-intro-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 28px;
	margin-top: 22px;
}
.hwhy .hwhy-intro {
	max-width: 640px;
	font-size: 16px;
	line-height: 1.85;
	color: var(--hw-muted);
}
.hwhy .hwhy-link,
.hwhy .hwhy-link:visited {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-family: var(--hw-head);
	font-size: 16px;
	font-weight: 500;
	white-space: nowrap;
	color: var(--hw-purple);
	text-decoration: none;
}
.hwhy .hwhy-link .hwhy-icon { font-size: 18px; transition: transform .2s; }
.hwhy .hwhy-link:hover,
.hwhy .hwhy-link:focus { color: var(--hw-purple); text-decoration: underline; text-underline-offset: 5px; }
.hwhy .hwhy-link:hover .hwhy-icon { transform: translate(2px, -2px); }

/* ---------- Panels ---------- */
.hwhy .hwhy-panels {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-top: 36px;
	align-items: stretch;
}
.hwhy .hwhy-panel {
	--pn-text: var(--hw-ink);
	--pn-muted: var(--hw-muted);
	--pn-accent: #0b84ac;
	--pn-action: var(--hw-purple);
	--pn-line: var(--hw-line);
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 30px 28px 22px;
	color: var(--pn-text);
	background: var(--hw-panel);
	border: 1px solid rgb(255 255 255 / 87%);
	border-radius: var(--hw-radius);
	box-shadow: 0 12px 30px rgb(23 13 61 / 3%), 0 2px 8px rgb(23 13 61 / 1.2%);
	transition: transform .22s, box-shadow .22s, border-color .22s;
}
.hwhy .hwhy-panel::before {
	content: "";
	position: absolute;
	left: 24px;
	right: 24px;
	top: 0;
	height: 3px;
	border-radius: 0 0 4px 4px;
	background: linear-gradient(90deg, var(--hw-cyan), var(--hw-purple));
	opacity: .85;
}
.hwhy .hwhy-panel.is-highlight {
	--pn-text: #fff;
	--pn-muted: #ddd6f2;
	--pn-accent: #76ddfa;
	--pn-action: #8ce3fa;
	--pn-line: rgb(255 255 255 / 16%);
	background:
		radial-gradient(ellipse at 100% 0%, rgb(96 49 188 / 42%), transparent 65%),
		linear-gradient(155deg, #170d3d 10%, #24105d 60%, #3a0ca3 140%);
	border-color: #382066;
	box-shadow: 0 16px 36px rgb(58 12 163 / 12%);
}
.hwhy .hwhy-panel.is-highlight::before { background: linear-gradient(90deg, #68dcfd, #bba2f9); opacity: 1; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.hwhy .hwhy-panel:hover { transform: translateY(-5px); box-shadow: 0 20px 38px rgb(23 13 61 / 7%); border-color: rgb(10 163 214 / 22%); }
	.hwhy .hwhy-panel.is-highlight:hover { box-shadow: 0 22px 42px rgb(58 12 163 / 20%); border-color: #8f71d5; }
}

.hwhy .hwhy-step {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 0 0 18px;
	font-family: var(--hw-head);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: var(--pn-muted);
}
.hwhy .hwhy-step .hwhy-icon { font-size: 20px; color: var(--pn-accent); }

/* ---------- Illustrations ---------- */
.hwhy .hwhy-figure {
	height: 164px;
	margin: 0 0 22px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.hwhy .hwhy-fig-label {
	display: block;
	font-family: var(--hw-head);
	font-size: 14px;
	line-height: 1.4;
	color: var(--pn-muted);
}

/* 01: your goals → a clear plan */
.hwhy .hwhy-goals { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; max-width: 300px; }
.hwhy .hwhy-goal { flex: 1; min-width: 0; text-align: center; }
.hwhy .hwhy-goal-mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	margin: 0 auto 11px;
	border-radius: 20px;
	font-size: 30px;
	color: #0b84ac;
	background: #fff;
	border: 1px solid #e5eaf6;
	box-shadow: 0 7px 17px rgb(23 13 61 / 2%);
}
.hwhy .hwhy-goal.is-plan .hwhy-goal-mark {
	color: var(--hw-purple);
	background: linear-gradient(145deg, #e4f8ff, #f0ebff);
	border-color: #dbeaf7;
}
.hwhy .hwhy-goals-arrow { flex: none; font-size: 20px; color: var(--hw-purple); margin-top: -26px; }

/* 02: four services on one line */
.hwhy .hwhy-network { position: relative; width: 100%; max-width: 320px; padding-top: 12px; }
.hwhy .hwhy-network::before {
	content: "";
	position: absolute;
	left: 18px;
	right: 18px;
	top: 37px; /* padding-top + half a mark */
	height: 1px;
	background: linear-gradient(90deg, rgb(109 220 251 / 44%), rgb(177 154 228 / 50%));
}
.hwhy .hwhy-network-nodes { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hwhy .hwhy-node { min-width: 0; text-align: center; }
.hwhy .hwhy-node-mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	margin: 0 auto 10px;
	border-radius: 13px;
	font-size: 21px;
	color: #83e1f9;
	background: rgb(30 18 74 / 92%);
	background-image: linear-gradient(rgb(255 255 255 / 7.5%), rgb(255 255 255 / 7.5%));
	border: 1px solid rgb(255 255 255 / 13%);
	box-shadow: 0 3px 10px rgb(13 5 39 / 10%);
}
.hwhy .hwhy-node .hwhy-fig-label { font-size: 13px; }
.hwhy .hwhy-network-caption {
	margin: 14px 0 0;
	font-family: var(--hw-head);
	font-size: 14px;
	line-height: 1.5;
	letter-spacing: .01em;
	text-align: center;
	color: #c8b7f1;
}

/* 03: maintain / improve / evolve */
.hwhy .hwhy-care { display: grid; gap: 12px; width: 100%; max-width: 180px; }
.hwhy .hwhy-care-item { display: flex; align-items: center; gap: 13px; }
.hwhy .hwhy-care-item .hwhy-fig-label { font-size: 15px; }
.hwhy .hwhy-care-mark {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	font-size: 19px;
	color: var(--hw-purple);
	background: #efe9fd;
}

/* ---------- Panel copy + details ---------- */
.hwhy .hwhy-panel-title {
	margin: 0 0 13px;
	padding: 0;
	min-height: 2.5em;
	font-family: var(--hw-head);
	font-size: 27px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -.012em;
	color: var(--pn-text);
	text-transform: none;
}
.hwhy .hwhy-benefit {
	flex: 1;
	margin: 0 0 22px;
	font-size: 15px;
	line-height: 1.8;
	color: var(--pn-muted);
}
.hwhy .hwhy-details { border-top: 1px solid var(--pn-line); padding-top: 8px; }
.hwhy .hwhy-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 44px;
	list-style: none;
	cursor: pointer;
	border-radius: 8px;
	font-family: var(--hw-head);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--pn-action);
	-webkit-tap-highlight-color: transparent;
}
.hwhy .hwhy-summary::-webkit-details-marker { display: none; }
.hwhy .hwhy-summary::marker { content: ""; }
.hwhy .hwhy-summary .hwhy-icon { font-size: 18px; transition: transform .2s; }
.hwhy .hwhy-details[open] .hwhy-summary .hwhy-icon { transform: rotate(45deg); }
.hwhy .hwhy-summary:hover > span:first-child { text-decoration: underline; text-underline-offset: 4px; }
.hwhy .hwhy-expect { list-style: none; margin: 10px 0 4px; padding: 0; display: grid; gap: 10px; }
.hwhy .hwhy-expect li {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
	color: var(--pn-muted);
}
.hwhy .hwhy-expect li::before { content: "✓"; flex: none; font-weight: 600; color: var(--pn-action); }
.hwhy .hwhy-panel:not(.is-highlight) .hwhy-expect li::before { color: var(--hw-purple); }

/* ---------- Credential strip ---------- */
.hwhy .hwhy-creds {
	display: grid;
	grid-template-columns: 1fr 1.85fr;
	gap: 20px;
	align-items: center;
	margin-top: 28px;
	padding: 24px 28px;
	background: var(--hw-panel);
	border: 1px solid rgb(255 255 255 / 70%);
	border-radius: 20px;
	box-shadow: 0 8px 24px rgb(23 13 61 / 2%);
}
.hwhy .hwhy-creds-title {
	font-family: var(--hw-head);
	font-size: 22px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -.008em;
	color: var(--hw-ink);
}
.hwhy .hwhy-creds-text { margin-top: 6px; font-size: 13px; line-height: 1.75; color: var(--hw-muted); }
.hwhy .hwhy-cred-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}
.hwhy .hwhy-cred { display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 0; margin: 0; text-align: center; }
.hwhy .hwhy-cred-img {
	display: block;
	width: 54px;
	height: 54px;
	max-width: none;
	object-fit: contain;
	filter: drop-shadow(0 3px 4px rgb(23 13 61 / 4%));
}
.hwhy .hwhy-cred span { max-width: 160px; font-family: var(--hw-head); font-size: 14px; line-height: 1.4; color: var(--hw-muted); }

/* ---------- Focus ---------- */
.hwhy .hwhy-link:focus { outline: none; }
.hwhy .hwhy-link:focus-visible,
.hwhy .hwhy-summary:focus-visible {
	outline: 3px solid var(--hw-cyan);
	outline-offset: 4px;
	box-shadow: none;
}
.hwhy .hwhy-summary:focus:not(:focus-visible) { outline: none; }
.hwhy .is-highlight .hwhy-summary:focus-visible { outline-color: #76ddfa; }

/* ---------- Tablet: three narrower columns ---------- */
@media (max-width: 1024px) {
	.hwhy .hwhy-shell { padding: 44px 32px 34px; border-radius: 24px; }
	.hwhy .hwhy-title { font-size: 46px; }
	.hwhy .hwhy-panels { gap: 16px; margin-top: 30px; }
	.hwhy .hwhy-panel { padding: 26px 20px 18px; }
	.hwhy .hwhy-panel::before { left: 20px; right: 20px; }
	.hwhy .hwhy-figure { height: 136px; margin-bottom: 18px; }
	.hwhy .hwhy-goal-mark { width: 56px; height: 56px; border-radius: 17px; font-size: 25px; }
	.hwhy .hwhy-goals-arrow { margin-top: -22px; font-size: 17px; }
	.hwhy .hwhy-node-mark { width: 40px; height: 40px; border-radius: 11px; font-size: 18px; }
	.hwhy .hwhy-network::before { top: 32px; left: 14px; right: 14px; }
	.hwhy .hwhy-network-nodes { gap: 4px; }
	.hwhy .hwhy-node .hwhy-fig-label { font-size: 12px; }
	.hwhy .hwhy-fig-label { font-size: 13px; }
	.hwhy .hwhy-care-item .hwhy-fig-label { font-size: 14px; }
	.hwhy .hwhy-care-mark { width: 30px; height: 30px; border-radius: 9px; font-size: 17px; }
	.hwhy .hwhy-panel-title { font-size: 22px; }
	.hwhy .hwhy-benefit { font-size: 14px; line-height: 1.75; }
	.hwhy .hwhy-summary { font-size: 14px; }
	.hwhy .hwhy-expect li { font-size: 13px; }
	.hwhy .hwhy-creds { grid-template-columns: 1fr 1.6fr; padding: 22px; }
	.hwhy .hwhy-creds-title { font-size: 19px; }
	.hwhy .hwhy-cred span { font-size: 13px; }
}

/* ---------- Narrow tablet: one panel per row, illustration beside the copy ----------
 * Three columns get too narrow below 900px ("Growth" would break mid-word), so the panels stack; with
 * a whole row each, the illustration sits on the left of the title and benefit instead of above. */
@media (max-width: 899px) {
	.hwhy .hwhy-panels { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.hwhy .hwhy-panel { display: grid; grid-template-columns: minmax(210px, 38%) minmax(0, 1fr); column-gap: 32px; align-items: start; padding: 26px 28px 18px; }
	.hwhy .hwhy-panel::before { left: 28px; right: 28px; }
	.hwhy .hwhy-step { grid-column: 1 / -1; }
	.hwhy .hwhy-figure { grid-column: 1; grid-row: 2 / span 2; align-self: center; height: auto; min-height: 120px; margin: 0 0 18px; }
	.hwhy .hwhy-panel-title { grid-column: 2; grid-row: 2; min-height: 0; font-size: 24px; }
	.hwhy .hwhy-benefit { grid-column: 2; grid-row: 3; margin-bottom: 18px; font-size: 15px; }
	.hwhy .hwhy-details { grid-column: 1 / -1; }
	.hwhy .hwhy-node .hwhy-fig-label { font-size: 13px; }
	.hwhy .hwhy-summary { font-size: 15px; }
	.hwhy .hwhy-expect li { font-size: 14px; }
}

/* ---------- Phone: one column (the mockup's mobile layout) ---------- */
@media (max-width: 767px) {
	.hwhy .hwhy-shell { padding: 34px 18px 22px; border-radius: 20px; }
	.hwhy .hwhy-shell::before { width: 300px; height: 300px; right: -210px; top: -110px; }
	.hwhy .hwhy-eyebrow { font-size: 11px; letter-spacing: .12em; gap: 8px; margin-bottom: 20px; }
	.hwhy .hwhy-title { font-size: 36px; line-height: 1.14; letter-spacing: -.022em; }
	.hwhy .hwhy-intro-row { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 18px; }
	.hwhy .hwhy-intro { font-size: 15px; line-height: 1.8; }
	.hwhy .hwhy-panels { margin-top: 22px; }
}
@media (max-width: 599px) {
	.hwhy .hwhy-panel { display: flex; padding: 24px 22px 16px; }
	.hwhy .hwhy-panel::before { left: 22px; right: 22px; }
	.hwhy .hwhy-figure { align-self: stretch; height: 124px; margin: 0 0 18px; min-height: 0; }
	.hwhy .hwhy-goals { max-width: 260px; }
	.hwhy .hwhy-goal-mark { width: 60px; height: 60px; border-radius: 18px; font-size: 26px; }
	.hwhy .hwhy-network { max-width: 280px; }
	.hwhy .hwhy-node-mark { width: 46px; height: 46px; font-size: 20px; }
	.hwhy .hwhy-network::before { top: 35px; }
	.hwhy .hwhy-network-nodes { gap: 6px; }
	.hwhy .hwhy-care { max-width: 250px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
	.hwhy .hwhy-care-item { flex-direction: column; gap: 8px; }
	.hwhy .hwhy-care-mark { width: 40px; height: 40px; border-radius: 11px; font-size: 21px; }
	.hwhy .hwhy-panel-title { font-size: 25px; min-height: 0; line-height: 1.22; }
	.hwhy .hwhy-benefit { font-size: 15px; line-height: 1.8; margin-bottom: 18px; }
	.hwhy .hwhy-summary { font-size: 15px; min-height: 46px; }
	.hwhy .hwhy-expect li { font-size: 14px; }
	.hwhy .hwhy-creds { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 22px; padding: 22px 16px; }
	.hwhy .hwhy-creds-title { font-size: 21px; }
	.hwhy .hwhy-creds-text { font-size: 13px; }
	.hwhy .hwhy-cred-list { gap: 8px; }
	.hwhy .hwhy-cred-img { width: 50px; height: 50px; }
	.hwhy .hwhy-cred span { font-size: 12px; }
}
@media (max-width: 379px) {
	.hwhy .hwhy-shell { padding: 30px 14px 18px; }
	.hwhy .hwhy-eyebrow { font-size: 10px; letter-spacing: .1em; }
	.hwhy .hwhy-title { font-size: 31px; }
	.hwhy .hwhy-panel { padding: 22px 16px 14px; }
	.hwhy .hwhy-panel::before { left: 16px; right: 16px; }
	.hwhy .hwhy-node-mark { width: 40px; height: 40px; font-size: 18px; }
	.hwhy .hwhy-network::before { top: 32px; }
	.hwhy .hwhy-node .hwhy-fig-label { font-size: 12px; }
	.hwhy .hwhy-panel-title { font-size: 23px; }
	.hwhy .hwhy-cred span { font-size: 11px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.hwhy *,
	.hwhy *::before,
	.hwhy *::after { transition: none !important; animation: none !important; }
}
