/**
 * Zafran hero slider – ITS DIGITAL INDIA
 *
 * Elementor structure:
 *   Container .zafran-hero-slider (full width)
 *     ├─ Container .zafran-slide   (one per slide – edit text/buttons/photo inside)
 *     ├─ Container .zafran-slide
 *     └─ Shortcode [zafran_hero_extras] with class .zafran-hero-extras-w
 *
 * In the Elementor editor the slides are shown stacked so they can be edited.
 */

.zafran-hero-slider {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.zafran-slide {
	position: relative;
	overflow: hidden;
	background-color: var(--z-deep);
	background-image:
		radial-gradient(ellipse 60% 55% at 50% 82%, rgba(214, 150, 70, 0.3) 0%, rgba(214, 150, 70, 0) 70%),
		radial-gradient(ellipse 90% 70% at 50% 0%, rgba(18, 55, 42, 0.9) 0%, rgba(13, 43, 32, 0) 70%),
		repeating-linear-gradient(45deg, rgba(214, 180, 106, 0.05) 0 1px, transparent 1px 42px),
		repeating-linear-gradient(-45deg, rgba(214, 180, 106, 0.05) 0 1px, transparent 1px 42px);
}

/* Food photo rising from the bottom of the slide */
.elementor-widget.zafran-slide-photo {
	position: absolute !important;
	left: 50%;
	bottom: -16%;
	width: min(620px, 88vw) !important;
	max-width: none !important;
	margin: 0 !important;
	transform: translateX(-50%);
	z-index: 0;
	pointer-events: none;
}

.zafran-slide-photo img {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55));
}

.zafran-slide > .elementor-element:not(.zafran-slide-photo) {
	position: relative;
	z-index: 1;
}

.zafran-hero-title .elementor-heading-title,
.zafran-script .elementor-heading-title {
	text-shadow: 0 6px 34px rgba(0, 0, 0, 0.5);
}

/* ---------- Slider behaviour (front end only) ---------- */
body:not(.elementor-editor-active) .zafran-hero-slider.is-ready {
	display: grid !important;
	grid-template-columns: 100%;
}

body:not(.elementor-editor-active) .zafran-hero-slider.is-ready > .zafran-slide {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1s ease, visibility 1s;
}

body:not(.elementor-editor-active) .zafran-hero-slider.is-ready > .zafran-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

body:not(.elementor-editor-active) .zafran-hero-slider.is-ready > .zafran-hero-extras-w {
	grid-area: 1 / 1;
}

body:not(.elementor-editor-active) .zafran-hero-slider.is-ready .zafran-slide > .elementor-element:not(.zafran-slide-photo) {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.9s ease, transform 0.9s ease;
}

body:not(.elementor-editor-active) .zafran-hero-slider.is-ready .zafran-slide.is-active > .elementor-element:not(.zafran-slide-photo) {
	opacity: 1;
	transform: none;
}

body:not(.elementor-editor-active) .zafran-hero-slider.is-ready .zafran-slide.is-active > .elementor-element:nth-child(3) { transition-delay: 0.12s; }
body:not(.elementor-editor-active) .zafran-hero-slider.is-ready .zafran-slide.is-active > .elementor-element:nth-child(4) { transition-delay: 0.3s; }
body:not(.elementor-editor-active) .zafran-hero-slider.is-ready .zafran-slide.is-active > .elementor-element:nth-child(5) { transition-delay: 0.45s; }
body:not(.elementor-editor-active) .zafran-hero-slider.is-ready .zafran-slide.is-active > .elementor-element:nth-child(n+6) { transition-delay: 0.6s; }

body:not(.elementor-editor-active) .zafran-hero-slider.is-ready .zafran-slide .zafran-slide-photo img {
	transform: scale(1.08) translateY(40px);
	transition: transform 6s ease-out;
}

body:not(.elementor-editor-active) .zafran-hero-slider.is-ready .zafran-slide.is-active .zafran-slide-photo img {
	transform: none;
}

/* ---------- Dots + arrows (created by JS) ---------- */
.zafran-hero-nav {
	position: absolute;
	left: 32px;
	bottom: 34px;
	z-index: 6;
	display: flex;
	align-items: center;
	gap: 26px;
}

.zafran-hero-dots {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Beat the global Elementor button style (Site Settings → Buttons) */
.zafran-hero-slider .zafran-hero-nav button {
	min-width: 0;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	font-family: var(--z-sans);
	letter-spacing: 0;
	cursor: pointer;
	color: #f2ead9;
}

.zafran-hero-slider .zafran-hero-dots button {
	width: 9px;
	height: 9px;
	border: 1px solid rgba(242, 234, 217, 0.85);
	border-radius: 50%;
	transition: transform 0.25s ease, border-color 0.25s ease;
}

.zafran-hero-slider .zafran-hero-dots button[aria-current="true"] {
	border-color: var(--z-gold-light);
	transform: scale(1.6);
}

.zafran-hero-arrows {
	display: flex;
	gap: 12px;
}

.zafran-hero-slider .zafran-hero-arrows button {
	width: 28px;
	height: 28px;
	font-size: 20px;
	line-height: 28px;
	transition: color 0.2s ease;
}

.zafran-hero-slider .zafran-hero-arrows button:hover,
.zafran-hero-slider .zafran-hero-arrows button:focus-visible,
.zafran-hero-slider .zafran-hero-dots button:focus-visible {
	color: var(--z-gold-light);
	outline: 1px solid var(--z-gold-light);
	outline-offset: 3px;
}

/* ---------- Extras: vertical social link, rotating badge, scroll notch ---------- */
.elementor-widget.zafran-hero-extras-w {
	position: absolute !important;
	inset: 0;
	z-index: 5;
	width: 100% !important;
	max-width: none !important;
	pointer-events: none;
}

.zafran-hero-extras > * {
	pointer-events: auto;
}

.zafran-hero-social {
	position: absolute;
	left: 30px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.zafran-hero-social::before,
.zafran-hero-social::after {
	content: "";
	width: 1px;
	height: 44px;
	background: rgba(242, 234, 217, 0.6);
}

.zafran-hero-extras .zafran-hero-social a {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-family: var(--z-sans);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	text-decoration: none;
	color: #f2ead9;
}

.zafran-hero-extras .zafran-hero-social a:hover {
	color: var(--z-gold-light);
}

.zafran-hero-badge {
	position: absolute;
	right: 32px;
	bottom: 32px;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: var(--z-green);
	box-shadow: 0 0 0 1px rgba(214, 180, 106, 0.6), 0 14px 30px rgba(0, 0, 0, 0.35);
	color: var(--z-gold-light);
	text-decoration: none;
	display: grid;
	place-items: center;
	transition: transform 0.3s ease;
}

.zafran-hero-badge:hover {
	transform: scale(1.06);
}

.zafran-hero-badge__ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	animation: zafran-spin 18s linear infinite;
}

.zafran-hero-badge__ring text {
	fill: #f2ead9;
	font-family: var(--z-sans);
	font-size: 9.6px;
	font-weight: 600;
	letter-spacing: 2.4px;
	text-transform: uppercase;
}

.zafran-hero-badge__icon {
	position: relative;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--z-gold-light);
	color: var(--z-deep);
	display: grid;
	place-items: center;
}

.zafran-hero-badge__icon svg {
	width: 22px;
	height: 22px;
}

@keyframes zafran-spin {
	to {
		transform: rotate(360deg);
	}
}

.zafran-hero-scroll {
	position: absolute;
	left: 50%;
	bottom: -1px;
	width: 150px;
	height: 58px;
	transform: translateX(-50%);
	display: grid;
	place-items: end center;
	padding-bottom: 12px;
	color: var(--z-gold-light);
	background: var(--z-green);
	clip-path: path("M0 58 C 40 58, 52 0, 75 0 C 98 0, 110 58, 150 58 Z");
}

.zafran-hero-scroll__mouse {
	position: relative;
	width: 16px;
	height: 25px;
	border: 1.5px solid currentColor;
	border-radius: 9px;
}

.zafran-hero-scroll__mouse::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 5px;
	width: 2px;
	height: 5px;
	margin-left: -1px;
	border-radius: 2px;
	background: currentColor;
	animation: zafran-scroll 1.8s ease-in-out infinite;
}

@keyframes zafran-scroll {
	0% { opacity: 0; transform: translateY(0); }
	40% { opacity: 1; }
	100% { opacity: 0; transform: translateY(8px); }
}

/* In the editor: keep the extras out of the way of the stacked slides */
.elementor-editor-active .elementor-widget.zafran-hero-extras-w {
	position: relative !important;
	inset: auto;
	height: 160px;
	background: var(--z-deep);
}

@media (max-width: 767px) {
	.zafran-hero-social,
	.zafran-hero-scroll {
		display: none;
	}

	.zafran-hero-nav {
		left: 16px;
		bottom: 22px;
		gap: 16px;
	}

	.zafran-hero-badge {
		right: 14px;
		bottom: 14px;
		width: 92px;
		height: 92px;
	}

	.zafran-hero-badge__icon {
		width: 34px;
		height: 34px;
	}

	.zafran-hero-badge__icon svg {
		width: 18px;
		height: 18px;
	}
}

/* =====================================================================
   Testimonials (.zafran-testimonials > .zafran-quotes > .zafran-quote)
   Each quote contains an avatar (.zafran-quote-avatar) – JS turns the
   avatars into the round navigation buttons.
   ===================================================================== */
.zafran-testi-box {
	border-top-right-radius: 180px;
}

body:not(.elementor-editor-active) .zafran-testimonials.is-ready .zafran-quotes {
	display: grid !important;
	grid-template-columns: 100%;
}

body:not(.elementor-editor-active) .zafran-testimonials.is-ready .zafran-quote {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.7s ease, transform 0.7s ease, visibility 0.7s;
}

body:not(.elementor-editor-active) .zafran-testimonials.is-ready .zafran-quote.is-active {
	opacity: 1;
	visibility: visible;
	transform: none;
}

body:not(.elementor-editor-active) .zafran-testimonials.is-ready .zafran-quote .zafran-quote-avatar {
	display: none !important;
}

.zafran-quote-avatar {
	border-radius: 50%;
	aspect-ratio: 1 / 1;
	flex: 0 0 auto !important;
}

.zafran-testi-nav {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 16px;
	margin-top: 26px;
}

.zafran-testimonials .zafran-testi-nav button {
	position: relative;
	width: 54px;
	height: 54px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	box-shadow: none;
	cursor: pointer;
	opacity: 0.65;
	transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

.zafran-testimonials .zafran-testi-nav button > * {
	width: 100% !important;
	height: 100%;
	min-height: 0 !important;
	pointer-events: none;
}

.zafran-testimonials .zafran-testi-nav button[aria-current="true"] {
	opacity: 1;
	transform: scale(1.15);
	box-shadow: 0 0 0 3px var(--z-green), 0 0 0 4px var(--z-gold-light);
}

.zafran-testimonials .zafran-testi-nav button:focus-visible {
	outline: 1px solid var(--z-gold-light);
	outline-offset: 4px;
}

@media (max-width: 1024px) {
	.zafran-testi-box {
		border-top-right-radius: 120px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zafran-hero-badge__ring,
	.zafran-hero-scroll__mouse::after {
		animation: none;
	}
}

/* ---------- Round badge with rotating text [zafran_badge] ---------- */
.zafran-ring-badge {
	position: relative;
	display: grid;
	place-items: center;
	width: 112px;
	height: 112px;
	border-radius: 50%;
	background: var(--z-green);
	box-shadow: 0 0 0 1px rgba(214, 180, 106, 0.7), 0 12px 26px rgba(0, 0, 0, 0.35);
	color: var(--z-gold-light);
}

.zafran-ring-badge__ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	animation: zafran-spin 20s linear infinite;
}

.zafran-ring-badge__ring text {
	fill: #f2ead9;
	font-family: var(--z-sans);
	font-size: 9.4px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.zafran-ring-badge__icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--z-gold-light);
	color: var(--z-deep);
}

.zafran-ring-badge__icon svg {
	width: 22px;
	height: 22px;
}

@media (prefers-reduced-motion: reduce) {
	.zafran-ring-badge__ring {
		animation: none;
	}
}

/* Stats row: thin gold separators between columns */
.zafran-stat + .zafran-stat {
	border-left: 1px solid rgba(214, 180, 106, 0.25);
}

@media (max-width: 767px) {
	.zafran-stat + .zafran-stat {
		border-left: 0;
	}
}
