/* Area "hub": home page of emyat.com (template-parts/home-hub.php, section-country.php). See DESIGN.md. */

/* ---------- hero ---------- */
.e-hub-hero {
	padding: var(--e-s10) 0 var(--e-s12);
	background:
		radial-gradient(ellipse 70% 60% at 85% 10%, var(--e-primary-50) 0%, rgba(239, 244, 255, 0) 70%),
		var(--e-bg);
}
.e-hub-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--e-s10); align-items: center; }
.e-hub-hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--e-s5); }
.e-hub-hero__accent { display: block; color: var(--e-primary); }
.e-hub-hero__cta { margin-top: var(--e-s1); }
.e-hub-hero__note { display: flex; align-items: center; gap: var(--e-s2); font-size: 15px; line-height: 1.4; color: var(--e-muted); }
.e-hub-hero__note svg { flex: none; color: var(--e-primary); }

/* tablet with the phone in front of its lower left corner; padding keeps the phone inside the box (no overflow) */
.e-hub-hero__media { position: relative; width: 100%; max-width: 500px; margin: 0 auto; padding: 0 0 9% 15%; }
.e-hub-hero__media::before {
	content: "";
	position: absolute;
	inset: 0 0 0 8%;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(37, 99, 235, .16), rgba(37, 99, 235, 0));
}
.e-hub-hero__tablet { position: relative; width: 100%; filter: drop-shadow(0 18px 30px rgba(15, 23, 42, .14)); }
.e-hub-hero__phone { position: absolute; left: 0; bottom: 0; width: 34%; filter: drop-shadow(0 14px 24px rgba(15, 23, 42, .2)); }

@media (max-width: 639px) {
	.e-hub-hero__cta { align-self: stretch; }
}
@media (min-width: 640px) and (max-width: 959px) {
	.e-hub-hero__media { max-width: 440px; }
}
@media (min-width: 960px) {
	.e-hub-hero { padding: var(--e-s16) 0 var(--e-s20); }
	.e-hub-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--e-s12); }
	.e-hub-hero__text { gap: var(--e-s6); }
	.e-hub-hero__media { margin-right: 0; }
}

/* ---------- flags (emy_hub_flag) ---------- */
.e-hub-flag { flex: none; border-radius: 50%; }
.e-hub-flag--none { display: inline-grid; place-items: center; background: var(--e-primary-50); color: var(--e-primary); }

/* ---------- countries ---------- */
.e-hub-countries { gap: var(--e-s4); }
.e-hub-countries > li { display: flex; min-width: 0; }
.e-hub-country {
	flex: 1;
	display: flex;
	align-items: center;
	gap: var(--e-s4);
	min-width: 0;
	min-height: 104px;
	padding: var(--e-s4);
}
.e-hub-country:focus-visible { border-radius: var(--e-radius-lg); }
.e-hub-country__flag { width: 52px; height: 52px; }
.e-hub-country__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.e-hub-country__name { font-size: 19px; overflow-wrap: anywhere; }
.e-hub-country__langs { font-size: 16px; line-height: 1.4; color: var(--e-text); }
.e-hub-country__meta { display: flex; align-items: center; gap: 6px; margin-top: var(--e-s1); font-size: 14px; line-height: 1.4; color: var(--e-muted); }
.e-hub-country__meta svg { flex: none; color: var(--e-success); }
.e-hub-country__go {
	flex: none;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--e-primary-50);
	color: var(--e-primary);
	transition: background-color .15s, color .15s, transform .15s;
}
.e-hub-country:hover .e-hub-country__go,
.e-hub-country:focus-visible .e-hub-country__go { background: var(--e-primary); color: #fff; transform: translateX(2px); }

@media (min-width: 400px) {
	.e-hub-country { padding: var(--e-s5); }
	.e-hub-country__flag { width: 56px; height: 56px; }
	.e-hub-country__name { font-size: 20px; }
}
@media (min-width: 960px) {
	.e-hub-countries { gap: var(--e-s5); }
}

/* ---------- how it works ---------- */
.e-hub-steps { gap: var(--e-s4); }
.e-hub-step {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: var(--e-s4);
	row-gap: var(--e-s2);
	align-content: start;
}
.e-hub-step .e-badge-num { grid-row: span 2; }
.e-hub-step p { color: var(--e-text); }
@media (min-width: 960px) {
	.e-hub-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--e-s6); }
	.e-hub-step { grid-template-columns: minmax(0, 1fr); padding: var(--e-s8); }
	.e-hub-step .e-badge-num { grid-row: auto; margin-bottom: var(--e-s3); }
}

/* ---------- closing block ---------- */
.e-hub-final { padding-top: 0; }
.e-hub-final__panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--e-s4);
	padding: var(--e-s10) var(--e-s5);
	border-radius: var(--e-radius-xl);
	background: linear-gradient(135deg, var(--e-primary-700) 0%, var(--e-primary) 100%);
	color: #fff;
	text-align: center;
}
.e-hub-final__panel .e-h2 { color: #fff; }
.e-hub-final__text { max-width: 52ch; font-size: clamp(17px, 2vw, 19px); line-height: 1.55; }
.e-hub-final__list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--e-s2) var(--e-s3); max-width: 720px; margin-top: var(--e-s2); }
.e-hub-pill {
	display: inline-flex;
	align-items: center;
	gap: var(--e-s2);
	min-height: 44px;
	padding: 6px 16px 6px 8px;
	border-radius: 999px;
	background: #fff;
	color: var(--e-ink);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	transition: background-color .15s, box-shadow .15s, transform .15s;
}
.e-hub-pill:hover { background: #eef2f7; color: var(--e-ink); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15, 23, 42, .18); }
.e-hub-pill:focus-visible { border-radius: 999px; outline-color: #fff; }
.e-hub-pill__flag { width: 28px; height: 28px; }
@media (min-width: 960px) {
	.e-hub-final__panel { padding: var(--e-s16) var(--e-s12); }
}
