/**
 * Jeepa Travel Sikkim: homepage hero redesign.
 *
 * Loads after hero.css and only restyles it. Turning this file off
 * (jeepa_hero_design_enabled() in inc/assets.php) brings back the previous
 * hero exactly as it was.
 *
 * - True circles at every screen size, sized from one image canvas.
 * - Prayer flag garland between the circles and a mountain ridge backdrop,
 *   both drawn as small inline SVGs (no extra downloads).
 * - Transform only motion, so the first image still paints immediately.
 * - Clearer type hierarchy: the slide heading (h1/h2) leads.
 */

body .jeepa-hero {
	--jh-ink: #16213e;
	--jh-eyebrow: #c84508;
	--jh-ribbon: linear-gradient(90deg, #2563eb 0 20%, #dbe2ee 20% 40%, #dc3545 40% 60%, #11956a 60% 80%, #f2b705 80% 100%);
	--jh-ease: cubic-bezier(.22, 1, .36, 1);
	background: radial-gradient(120% 90% at 85% 10%, #f4fff5 0%, var(--jeepa-mint) 55%) !important;
}

/* Mountain ridge along the bottom of the hero, behind everything */
body .jeepa-hero::after {
	content: "";
	position: absolute;
	z-index: 0;
	left: 0;
	right: 0;
	bottom: 0;
	height: clamp(110px, 15vw, 260px);
	background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 200' preserveAspectRatio='none'><path d='M0 200V120L110 70L190 104L320 30L430 92L520 64L640 128L760 52L880 110L980 80L1100 138L1220 60L1330 112L1440 76L1600 120V200Z' fill='%23cdf5d2'/><path d='M0 200V160L140 118L260 150L400 100L540 152L680 120L820 160L960 112L1110 156L1250 124L1400 158L1600 130V200Z' fill='%23bdefc4'/></svg>") center bottom / 100% 100% no-repeat;
	pointer-events: none;
}

body .jeepa-hero .jeepa-slider {
	z-index: 1;
}

/* ===== Text ===== */
body .jeepa-hero .jeepa-hero-eyebrow {
	max-width: 30em;
	color: var(--jh-eyebrow);
	font-size: clamp(16px, 1.05vw, 20px);
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: .01em;
}

body .jeepa-hero .jeepa-hero-eyebrow::before {
	content: "";
	display: block;
	width: 58px;
	height: 5px;
	margin-bottom: 16px;
	border-radius: 5px;
	background: var(--jh-ribbon);
}

body .jeepa-hero .jeepa-hero-heading {
	margin: 10px 0 26px;
	color: var(--jh-ink);
	font-size: clamp(34px, 2.85vw, 56px);
	font-weight: 750;
	line-height: 1.1;
	letter-spacing: -.02em;
	text-wrap: balance;
}

/* Brush stroke under the heading */
body .jeepa-hero .jeepa-hero-heading::after {
	content: "";
	display: block;
	width: clamp(110px, 9vw, 160px);
	height: clamp(10px, .8vw, 14px);
	margin-top: 16px;
	background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'><path d='M3 11C40 4 92 3 197 6C150 7 96 9 52 13C40 14 20 14 3 11Z' fill='%23ff681a'/></svg>") left center / 100% 100% no-repeat;
}

body .jeepa-hero .jeepa-hero-description {
	max-width: 34em;
	margin-bottom: 32px;
	color: #4b5563;
	font-size: clamp(16px, 1vw, 19px);
	line-height: 1.75;
}

body .jeepa-hero .jeepa-hero-button {
	gap: 12px;
	min-height: 56px;
	padding: 14px 28px 14px 32px;
	border-radius: 999px;
	box-shadow: 0 16px 30px -16px rgba(255, 104, 26, .9);
	text-transform: none;
	letter-spacing: 0;
	transition: background-color .25s ease, transform .3s var(--jh-ease), box-shadow .3s ease;
}

body .jeepa-hero .jeepa-hero-button::after {
	content: "";
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>") center / contain no-repeat;
	transition: transform .3s var(--jh-ease);
}

body .jeepa-hero .jeepa-hero-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 20px 34px -16px rgba(236, 88, 16, .95);
}

body .jeepa-hero .jeepa-hero-button:hover::after {
	transform: translateX(4px);
}

body .jeepa-hero .jeepa-hero-button:focus-visible {
	outline: 3px solid var(--jh-ink);
	outline-offset: 3px;
}

/* ===== Circles: always 1:1 ===== */
body .jeepa-hero .jeepa-oval {
	aspect-ratio: 1 / 1 !important;
	height: auto;
	box-shadow: 0 34px 60px -34px rgba(22, 33, 62, .55);
}

body .jeepa-hero .jeepa-oval-large {
	z-index: 1;
}

body .jeepa-hero .jeepa-oval-small {
	z-index: 3;
}

/* Desktop and tablet: one canvas, circles sized as a share of its width */
@media (min-width: 768px) {
	body .jeepa-hero .jeepa-hero-images {
		aspect-ratio: 1.25;
	}

	body .jeepa-hero .jeepa-oval-large {
		top: 4%;
		left: 0;
		width: 62%;
	}

	body .jeepa-hero .jeepa-oval-small {
		top: auto;
		right: 0;
		bottom: 6%;
		width: 44%;
	}
}

/* Prayer flag garland. Desktop and tablet: tied from the large circle's ring
   to the small circle's ring (positions match the circle layout above).
   Phones: from the large circle out past the screen edge. */
body .jeepa-hero .jeepa-hero-images::before {
	content: "";
	position: absolute;
	z-index: 4;
	top: 16.1%;
	left: 52.3%;
	width: 31.2%;
	aspect-ratio: 400 / 285;
	background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 285'><path d='M0 0Q200 216 400 252' fill='none' stroke='%238a7a63' stroke-width='2'/><rect transform='translate(27 28) rotate(46)' x='-12' y='0' width='23' height='30' rx='1.5' fill='%232563eb'/><rect transform='translate(49 50) rotate(44)' x='-12' y='0' width='23' height='30' rx='1.5' fill='%23ffffff' stroke='%23cfd6e2' stroke-width='1.2'/><rect transform='translate(71 71) rotate(43)' x='-12' y='0' width='23' height='30' rx='1.5' fill='%23dc3545'/><rect transform='translate(94 92) rotate(41)' x='-12' y='0' width='23' height='30' rx='1.5' fill='%2311956a'/><rect transform='translate(118 112) rotate(39)' x='-12' y='0' width='23' height='30' rx='1.5' fill='%23f2b705'/><rect transform='translate(143 131) rotate(37)' x='-12' y='0' width='23' height='30' rx='1.5' fill='%232563eb'/><rect transform='translate(168 150) rotate(35)' x='-12' y='0' width='23' height='30' rx='1.5' fill='%23ffffff' stroke='%23cfd6e2' stroke-width='1.2'/><rect transform='translate(193 167) rotate(33)' x='-12' y='0' width='23' height='30' rx='1.5' fill='%23dc3545'/><rect transform='translate(220 183) rotate(30)' x='-12' y='0' width='23' height='30' rx='1.5' fill='%2311956a'/><rect transform='translate(247 198) rotate(28)' x='-12' y='0' width='23' height='30' rx='1.5' fill='%23f2b705'/><rect transform='translate(275 212) rotate(25)' x='-12' y='0' width='23' height='30' rx='1.5' fill='%232563eb'/><rect transform='translate(303 224) rotate(22)' x='-12' y='0' width='23' height='30' rx='1.5' fill='%23ffffff' stroke='%23cfd6e2' stroke-width='1.2'/><rect transform='translate(333 235) rotate(18)' x='-12' y='0' width='23' height='30' rx='1.5' fill='%23dc3545'/><rect transform='translate(362 244) rotate(15)' x='-12' y='0' width='23' height='30' rx='1.5' fill='%2311956a'/></svg>") center / 100% 100% no-repeat;
	transform-origin: 0 0;
	pointer-events: none;
}

@media (max-width: 767px) {
	body .jeepa-hero .jeepa-hero-images {
		aspect-ratio: 1.16;
	}

	body .jeepa-hero .jeepa-oval-large {
		top: 1%;
		left: 0;
		width: 66%;
	}

	body .jeepa-hero .jeepa-oval-small {
		top: 25%;
		right: 0;
		width: 50%;
	}

	body .jeepa-hero .jeepa-hero-images::before {
		z-index: 0;
		top: 5.8%;
		left: 57.5%;
		width: 72.5%;
		aspect-ratio: 400 / 100;
		background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100'><path d='M0 46Q200 72 400 6' fill='none' stroke='%238a7a63' stroke-width='2'/><rect transform='translate(17 48) rotate(6)' x='-6' y='0' width='11' height='15' rx='1.5' fill='%232563eb'/><rect transform='translate(32 50) rotate(5)' x='-6' y='0' width='11' height='15' rx='1.5' fill='%23ffffff' stroke='%23cfd6e2' stroke-width='1.2'/><rect transform='translate(47 51) rotate(4)' x='-6' y='0' width='11' height='15' rx='1.5' fill='%23dc3545'/><rect transform='translate(61 52) rotate(3)' x='-6' y='0' width='11' height='15' rx='1.5' fill='%2311956a'/><rect transform='translate(76 53) rotate(2)' x='-6' y='0' width='11' height='15' rx='1.5' fill='%23f2b705'/><rect transform='translate(91 53) rotate(1)' x='-6' y='0' width='11' height='15' rx='1.5' fill='%232563eb'/><rect transform='translate(106 53) rotate(0)' x='-6' y='0' width='11' height='15' rx='1.5' fill='%23ffffff' stroke='%23cfd6e2' stroke-width='1.2'/><rect transform='translate(121 53) rotate(-1)' x='-6' y='0' width='11' height='15' rx='1.5' fill='%23dc3545'/><rect transform='translate(136 53) rotate(-2)' x='-6' y='0' width='11' height='15' rx='1.5' fill='%2311956a'/><rect transform='translate(150 53) rotate(-2)' x='-6' y='0' width='11' height='15' rx='1.5' fill='%23f2b705'/><rect transform='translate(165 52) rotate(-3)' x='-6' y='0' width='11' height='15' rx='1.5' fill='%232563eb'/><rect transform='translate(180 51) rotate(-4)' x='-6' y='0' width='11' height='15' rx='1.5' fill='%23ffffff' stroke='%23cfd6e2' stroke-width='1.2'/><rect transform='translate(195 49) rotate(-5)' x='-6' y='0' width='11' height='15' rx='1.5' fill='%23dc3545'/><rect transform='translate(210 48) rotate(-6)' x='-6' y='0' width='11' height='15' rx='1.5' fill='%2311956a'/><rect transform='translate(224 46) rotate(-7)' x='-6' y='0' width='11' height='15' rx='1.5' fill='%23f2b705'/><rect transform='translate(239 44) rotate(-8)' x='-6' y='0' width='11' height='15' rx='1.5' fill='%232563eb'/><rect transform='translate(254 42) rotate(-9)' x='-6' y='0' width='11' height='15' rx='1.5' fill='%23ffffff' stroke='%23cfd6e2' stroke-width='1.2'/><rect transform='translate(268 40) rotate(-10)' x='-6' y='0' width='11' height='15' rx='1.5' fill='%23dc3545'/><rect transform='translate(283 37) rotate(-11)' x='-6' y='0' width='11' height='15' rx='1.5' fill='%2311956a'/><rect transform='translate(298 34) rotate(-12)' x='-6' y='0' width='11' height='15' rx='1.5' fill='%23f2b705'/><rect transform='translate(312 31) rotate(-13)' x='-6' y='0' width='11' height='15' rx='1.5' fill='%232563eb'/><rect transform='translate(327 27) rotate(-14)' x='-6' y='0' width='11' height='15' rx='1.5' fill='%23ffffff' stroke='%23cfd6e2' stroke-width='1.2'/><rect transform='translate(341 23) rotate(-15)' x='-6' y='0' width='11' height='15' rx='1.5' fill='%23dc3545'/><rect transform='translate(355 20) rotate(-16)' x='-6' y='0' width='11' height='15' rx='1.5' fill='%2311956a'/><rect transform='translate(370 15) rotate(-16)' x='-6' y='0' width='11' height='15' rx='1.5' fill='%23f2b705'/><rect transform='translate(384 11) rotate(-17)' x='-6' y='0' width='11' height='15' rx='1.5' fill='%232563eb'/></svg>");
		transform-origin: 0 46%;
	}
}

/* Slide buttons sit on the ridge with a soft lift */
body .jeepa-hero .jeepa-slide-dot {
	box-shadow: 0 12px 24px -14px rgba(22, 33, 62, .55);
	cursor: pointer;
	transition: background-color .25s ease, color .25s ease, transform .3s var(--jh-ease);
}

body .jeepa-hero .jeepa-slide-dot:hover {
	transform: translateY(-2px);
}

body .jeepa-hero .jeepa-slide-dot:focus-visible {
	outline: 3px solid var(--jh-ink);
	outline-offset: 3px;
}

/* ===== Motion (transform only, never hides content) ===== */
@media (prefers-reduced-motion: no-preference) {
	body .jeepa-hero .jeepa-hero-images::before {
		animation: jh-sway 6s ease-in-out infinite alternate;
	}

	body .jeepa-hero .jeepa-slide.is-active .jeepa-oval-large {
		animation: jh-pop .9s var(--jh-ease) both;
	}

	body .jeepa-hero .jeepa-slide.is-active .jeepa-oval-small {
		animation: jh-pop .9s var(--jh-ease) .12s both;
	}

	body .jeepa-hero .jeepa-slide.is-active .jeepa-hero-photo {
		animation: jh-drift 9s ease-out both;
	}

	body .jeepa-hero .jeepa-slide.is-active .jeepa-hero-copy > * {
		animation: jh-rise .7s var(--jh-ease) both;
	}

	body .jeepa-hero .jeepa-slide.is-active .jeepa-hero-copy > :nth-child(2) { animation-delay: .06s; }
	body .jeepa-hero .jeepa-slide.is-active .jeepa-hero-copy > :nth-child(3) { animation-delay: .12s; }
	body .jeepa-hero .jeepa-slide.is-active .jeepa-hero-copy > :nth-child(4) { animation-delay: .18s; }
}

@keyframes jh-sway {
	from { transform: rotate(-.5deg); }
	to { transform: rotate(.5deg); }
}

@keyframes jh-pop {
	from { transform: scale(.94); }
	to { transform: scale(1); }
}

@keyframes jh-drift {
	from { transform: scale(1.08); }
	to { transform: scale(1); }
}

@keyframes jh-rise {
	from { transform: translateY(14px); }
	to { transform: translateY(0); }
}

/* ===== Tablets: narrower text column ===== */
@media (min-width: 768px) and (max-width: 1150px) {
	body .jeepa-hero .jeepa-hero-heading {
		font-size: clamp(30px, 3.4vw, 40px);
	}

	body .jeepa-hero .jeepa-hero-button {
		min-height: 50px;
		padding: 12px 20px 12px 24px;
		font-size: 15px;
	}
}

/* ===== Phones ===== */
@media (max-width: 767px) {
	body .jeepa-hero .jeepa-hero-heading {
		margin-bottom: 22px;
		font-size: clamp(30px, 7.6vw, 42px);
	}

	body .jeepa-hero .jeepa-hero-eyebrow::before {
		margin-bottom: 12px;
	}

	body .jeepa-hero .jeepa-hero-button {
		min-height: 52px;
		padding: 13px 22px 13px 26px;
		font-size: 16px;
	}

	body .jeepa-hero::after {
		height: 120px;
	}
}
