/* Zahra Driver — One UI glass landing */

:root {
	--zd-primary: #0f766e;
	--zd-primary-rgb: 15, 118, 110;
	--zd-accent: #14b8a6;
	--zd-ink: #0f172a;
	--zd-muted: #475569;
	--zd-line: rgba(15, 23, 42, 0.08);
	--zd-surface: rgba(255, 255, 255, 0.55);
	--zd-surface-strong: rgba(255, 255, 255, 0.72);
	--zd-shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
	--zd-radius-xl: 28px;
	--zd-radius-lg: 22px;
	--zd-radius-md: 16px;
	--zd-radius-pill: 999px;
	--zd-header-h: 68px;
	--zd-space: 1.25rem;
	--zd-container: 1120px;
	--zd-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--zd-font: "Vazirmatn", sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

html,
body,
button,
input,
select,
textarea {
	font-family: var(--zd-font);
}

body {
	margin: 0;
	min-height: 100vh;
	color: var(--zd-ink);
	background:
		radial-gradient(1200px 600px at 100% -10%, rgba(var(--zd-primary-rgb), 0.18), transparent 55%),
		radial-gradient(900px 500px at -10% 20%, rgba(20, 184, 166, 0.14), transparent 50%),
		linear-gradient(180deg, #eef7f6 0%, #f4f7fb 42%, #eef2f7 100%);
	line-height: 1.7;
	overflow-x: hidden;
}

body.drawer-open {
	overflow: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	border: 0;
	background: none;
	cursor: pointer;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

h1,
h2,
h3,
p {
	margin: 0;
}

.skip-link {
	position: absolute;
	inset-inline-start: 1rem;
	top: -100px;
	z-index: 1000;
	padding: 0.75rem 1rem;
	border-radius: var(--zd-radius-pill);
	background: var(--zd-ink);
	color: #fff;
}

.skip-link:focus {
	top: 1rem;
}

.container {
	width: min(100% - 2rem, var(--zd-container));
	margin-inline: auto;
}

.app-shell {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(18px) saturate(1.2);
	-webkit-backdrop-filter: blur(18px) saturate(1.2);
	background: rgba(255, 255, 255, 0.62);
	border-bottom: 1px solid var(--zd-line);
}

.header-inner {
	min-height: var(--zd-header-h);
	display: grid;
	grid-template-columns: 48px 1fr auto;
	align-items: center;
	gap: 0.75rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	justify-self: center;
	min-width: 0;
}

.brand .custom-logo-link,
.brand .custom-logo {
	display: block;
	max-height: 42px;
	width: auto;
}

.brand__text {
	font-weight: 800;
	font-size: 1.05rem;
	letter-spacing: -0.02em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.menu-toggle {
	width: 44px;
	height: 44px;
	border-radius: 16px;
	display: grid;
	place-content: center;
	gap: 5px;
	background: var(--zd-surface);
	border: 1px solid var(--zd-line);
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.menu-toggle__bar {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: var(--zd-ink);
	transition: transform 0.25s var(--zd-ease), opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.header-cta {
	justify-self: end;
}

.header-nav {
	display: none;
}

.desktop-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.desktop-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0.4rem 0.9rem;
	border-radius: var(--zd-radius-pill);
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--zd-ink);
	transition: background 0.2s ease, color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.desktop-nav .current-menu-item > a {
	background: rgba(var(--zd-primary-rgb), 0.1);
	color: var(--zd-primary);
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 48px;
	padding: 0.8rem 1.35rem;
	border-radius: var(--zd-radius-pill);
	font-weight: 700;
	letter-spacing: -0.01em;
	transition: transform 0.2s var(--zd-ease), box-shadow 0.2s var(--zd-ease), background 0.2s ease;
	touch-action: manipulation;
}

.btn:active {
	transform: scale(0.97);
}

.btn-sm {
	min-height: 40px;
	padding: 0.55rem 1rem;
	font-size: 0.9rem;
}

.btn-lg {
	min-height: 54px;
	padding: 0.95rem 1.7rem;
	font-size: 1.05rem;
}

.btn-block {
	width: 100%;
}

.btn-primary {
	color: #fff;
	background: linear-gradient(145deg, var(--zd-primary), #0d9488 55%, var(--zd-accent));
	box-shadow: 0 14px 30px rgba(var(--zd-primary-rgb), 0.28);
}

.btn-primary:hover {
	box-shadow: 0 18px 36px rgba(var(--zd-primary-rgb), 0.34);
}

.btn-ghost {
	color: var(--zd-ink);
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid var(--zd-line);
}

.text-link {
	display: inline-flex;
	margin-top: auto;
	color: var(--zd-primary);
	font-weight: 700;
}

/* Glass */
.glass-card {
	background: var(--zd-surface);
	border: 1px solid rgba(255, 255, 255, 0.65);
	border-radius: var(--zd-radius-xl);
	box-shadow: var(--zd-shadow);
	backdrop-filter: blur(18px) saturate(1.25);
	-webkit-backdrop-filter: blur(18px) saturate(1.25);
}

/* Drawer */
.drawer-overlay {
	position: fixed;
	inset: 0;
	z-index: 180;
	background: rgba(15, 23, 42, 0.35);
	backdrop-filter: blur(2px);
	opacity: 0;
	transition: opacity 0.28s ease;
}

.drawer-overlay.is-visible {
	opacity: 1;
}

.side-drawer {
	position: fixed;
	top: 0;
	bottom: 0;
	right: 0;
	left: auto;
	z-index: 190;
	width: min(86vw, 340px);
	padding: 1rem 1rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	background: rgba(248, 252, 251, 0.88);
	border-left: 1px solid rgba(255, 255, 255, 0.7);
	box-shadow: -20px 0 60px rgba(15, 23, 42, 0.14);
	backdrop-filter: blur(22px) saturate(1.3);
	-webkit-backdrop-filter: blur(22px) saturate(1.3);
	transform: translate3d(110%, 0, 0);
	transition: transform 0.34s var(--zd-ease);
	touch-action: pan-y;
	will-change: transform;
}

.side-drawer.is-open {
	transform: translate3d(0, 0, 0);
}

.side-drawer.is-dragging {
	transition: none;
}

.side-drawer__handle {
	width: 44px;
	height: 5px;
	margin: 0.15rem auto 0.4rem;
	border-radius: var(--zd-radius-pill);
	background: rgba(15, 23, 42, 0.14);
}

.side-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.side-drawer__title {
	font-weight: 800;
	font-size: 1.1rem;
}

.drawer-close {
	width: 40px;
	height: 40px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	font-size: 1.5rem;
	line-height: 1;
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid var(--zd-line);
}

.side-drawer__nav {
	flex: 1;
	overflow: auto;
}

.nav-list {
	display: grid;
	gap: 0.45rem;
}

.nav-link,
.nav-list a {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 0.7rem 1rem;
	border-radius: 18px;
	font-weight: 600;
	background: rgba(255, 255, 255, 0.45);
	border: 1px solid transparent;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.nav-list a:hover,
.nav-link:focus-visible,
.nav-list a:focus-visible {
	background: rgba(var(--zd-primary-rgb), 0.1);
	border-color: rgba(var(--zd-primary-rgb), 0.18);
}

.side-drawer__cta {
	padding-top: 0.25rem;
}

/* Sections */
.site-main {
	flex: 1;
}

.section {
	padding: 2.5rem 0;
}

.section-head {
	margin-bottom: 1.5rem;
	max-width: 36rem;
}

.section-head h2 {
	font-size: clamp(1.45rem, 4vw, 2rem);
	letter-spacing: -0.03em;
	margin-bottom: 0.45rem;
}

.section-head p {
	color: var(--zd-muted);
}

/* Hero */
.hero {
	padding-top: 1.25rem;
}

.hero-brand {
	margin-bottom: 1.1rem;
	animation: rise-in 0.65s var(--zd-ease) both;
}

.hero-brand__name {
	font-size: clamp(2rem, 8vw, 3.4rem);
	font-weight: 800;
	letter-spacing: -0.05em;
	line-height: 1.1;
	background: linear-gradient(120deg, var(--zd-ink) 10%, var(--zd-primary) 85%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero-brand__tagline {
	margin-top: 0.4rem;
	color: var(--zd-muted);
	font-size: 1rem;
	font-weight: 500;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	margin-top: 0.85rem;
	padding: 0.35rem 0.9rem;
	border-radius: var(--zd-radius-pill);
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--zd-primary);
	background: rgba(var(--zd-primary-rgb), 0.1);
	border: 1px solid rgba(var(--zd-primary-rgb), 0.12);
}

.hero-swiper {
	overflow: hidden;
	border-radius: calc(var(--zd-radius-xl) + 4px);
	padding-bottom: 2.2rem;
}

.hero-slide {
	position: relative;
	overflow: hidden;
	min-height: min(68vh, 560px);
	padding: 1.5rem;
	display: grid;
	align-content: end;
	isolation: isolate;
}

.hero-slide__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.hero-slide__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Mobile-first: image full on top, centered text/buttons below */
.hero-slide.has-image {
	direction: ltr;
	grid-template-columns: 1fr;
	align-content: start;
	align-items: stretch;
	gap: 1.15rem;
	height: auto;
	min-height: 0;
	max-height: none;
	overflow: visible;
	padding: 1rem;
}

.hero-slide.has-image .hero-slide__media {
	position: relative;
	inset: auto;
	z-index: 0;
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--zd-radius-lg);
	overflow: hidden;
	background: transparent;
	box-shadow: none;
}

.hero-slide.has-image .hero-slide__media img {
	width: 100%;
	height: auto;
	max-height: none;
	object-fit: contain;
	object-position: center;
	display: block;
}

.hero-slide.has-image .hero-slide__content {
	width: 100%;
	direction: rtl;
	text-align: center;
}

.hero-slide.has-image .hero-title {
	font-size: clamp(1.35rem, 5.5vw, 1.75rem);
}

.hero-slide.has-image .hero-subtitle {
	margin-inline: auto;
}

.hero-slide.has-image .hero-actions {
	justify-content: center;
	margin-top: 0.35rem;
}

/* Desktop/tablet: image 49% left, fixed hero height */
@media (min-width: 720px) {
	.hero-slide.has-image {
		--hero-fixed-h: 420px;
		grid-template-columns: 49% 1fr;
		align-content: center;
		align-items: center;
		gap: 1.75rem;
		height: var(--hero-fixed-h);
		min-height: var(--hero-fixed-h);
		max-height: var(--hero-fixed-h);
		overflow: hidden;
		padding: 1.5rem;
	}

	.hero-slide.has-image .hero-slide__media {
		height: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.hero-slide.has-image .hero-slide__media img {
		max-height: 100%;
		object-position: center left;
	}

	.hero-slide.has-image .hero-slide__content {
		text-align: right;
	}

	.hero-slide.has-image .hero-subtitle {
		margin-inline: 0;
	}

	.hero-slide.has-image .hero-actions {
		justify-content: flex-start;
		margin-top: 0;
	}

	.hero-slide.has-image .hero-title {
		font-size: clamp(1.7rem, 6vw, 2.7rem);
	}
}

@media (min-width: 960px) {
	.hero-slide.has-image {
		--hero-fixed-h: 460px;
	}
}

.hero-slide__visual {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
}

.hero-orb {
	position: absolute;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(var(--zd-primary-rgb), 0.35), transparent 70%);
	top: -40px;
	inset-inline-end: -30px;
	animation: float-orb 8s ease-in-out infinite;
}

.hero-orb--2 {
	width: 180px;
	height: 180px;
	top: auto;
	bottom: 20%;
	inset-inline-end: auto;
	inset-inline-start: -40px;
	background: radial-gradient(circle, rgba(20, 184, 166, 0.28), transparent 70%);
	animation-delay: -2.5s;
}

.hero-title {
	font-size: clamp(1.7rem, 6vw, 2.7rem);
	line-height: 1.25;
	letter-spacing: -0.04em;
	margin-bottom: 0.75rem;
	animation: rise-in 0.75s var(--zd-ease) both;
}

.hero-subtitle {
	color: var(--zd-muted);
	max-width: 34rem;
	margin-bottom: 1.35rem;
	font-size: 1.02rem;
	animation: rise-in 0.85s var(--zd-ease) both;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	animation: rise-in 0.95s var(--zd-ease) both;
}

.hero-swiper .swiper-pagination-bullet,
.testimonials-swiper .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	background: rgba(15, 23, 42, 0.22);
	opacity: 1;
}

.hero-swiper .swiper-pagination-bullet-active,
.testimonials-swiper .swiper-pagination-bullet-active {
	width: 22px;
	border-radius: var(--zd-radius-pill);
	background: var(--zd-primary);
}

/* Services */
.cards-grid {
	display: grid;
	gap: 1rem;
}

.service-card {
	padding: 1.35rem;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	min-height: 210px;
	transition: transform 0.25s var(--zd-ease), box-shadow 0.25s var(--zd-ease);
}

.service-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

.service-card__icon {
	width: 52px;
	height: 52px;
	border-radius: 18px;
	display: grid;
	place-items: center;
	font-size: 1.45rem;
	background: rgba(var(--zd-primary-rgb), 0.1);
}

.service-card h3 {
	font-size: 1.15rem;
	letter-spacing: -0.02em;
}

.service-card p {
	color: var(--zd-muted);
	font-size: 0.96rem;
}

/* Why us */
.why-grid {
	display: grid;
	gap: 1rem;
}

.why-card {
	padding: 1.25rem 1.35rem;
	position: relative;
	overflow: hidden;
}

.why-card__index {
	display: inline-block;
	margin-bottom: 0.55rem;
	font-weight: 800;
	color: rgba(var(--zd-primary-rgb), 0.55);
	letter-spacing: 0.04em;
}

.why-card h3 {
	margin-bottom: 0.35rem;
	font-size: 1.08rem;
}

.why-card p {
	color: var(--zd-muted);
	font-size: 0.95rem;
}

/* Testimonials */
.testimonials-swiper {
	overflow: hidden;
	padding-bottom: 2.2rem;
}

.testimonial-card {
	padding: 1.4rem;
	min-height: 210px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 1.2rem;
}

.testimonial-card p {
	font-size: 1.05rem;
	line-height: 1.8;
}

.testimonial-card footer {
	display: grid;
	gap: 0.15rem;
}

.testimonial-card strong {
	font-size: 0.98rem;
}

.testimonial-card span {
	color: var(--zd-muted);
	font-size: 0.88rem;
}

/* CTA */
.cta-panel {
	padding: 2rem 1.4rem;
	text-align: center;
	background:
		linear-gradient(145deg, rgba(var(--zd-primary-rgb), 0.12), rgba(255, 255, 255, 0.55)),
		var(--zd-surface-strong);
}

.cta-panel h2 {
	font-size: clamp(1.4rem, 4vw, 2rem);
	letter-spacing: -0.03em;
	margin-bottom: 0.55rem;
}

.cta-panel p {
	color: var(--zd-muted);
	margin-bottom: 1.35rem;
	max-width: 30rem;
	margin-inline: auto;
}

/* Footer */
.site-footer {
	padding: 1.5rem 0 0;
	margin-top: auto;
}

.footer-grid {
	display: grid;
	gap: 1rem;
}

.footer-brand,
.footer-contact {
	padding: 1.25rem 1.35rem;
}

.footer-brand__name {
	display: block;
	margin-bottom: 0.45rem;
	font-size: 1.1rem;
}

.footer-brand p,
.footer-links a {
	color: var(--zd-muted);
}

.footer-contact strong {
	display: block;
	margin-bottom: 0.7rem;
}

.footer-links {
	display: grid;
	gap: 0.45rem;
}

.footer-address {
	color: var(--zd-muted);
	font-weight: 600;
	line-height: 1.8;
}

.footer-links a {
	font-weight: 600;
}

.footer-links a:hover {
	color: var(--zd-primary);
}

.footer-social {
	margin-top: 1rem;
	padding-top: 0.9rem;
	border-top: 1px solid var(--zd-line);
}

.footer-social__title {
	display: block;
	margin-bottom: 0.65rem;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--zd-ink);
}

.footer-social__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.footer-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border-radius: 14px;
	color: var(--zd-ink);
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid var(--zd-line);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--zd-ease);
}

.footer-social__icon {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	line-height: 0;
}

.footer-social__icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.footer-social__link:hover,
.footer-social__link:focus-visible {
	color: #fff;
	background: linear-gradient(145deg, var(--zd-primary), var(--zd-accent));
	border-color: transparent;
	transform: translateY(-1px);
}

.footer-bottom {
	padding: 1.1rem 0 1.4rem;
	color: var(--zd-muted);
	font-size: 0.88rem;
}

.footer-bottom__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.85rem 1.25rem;
	flex-wrap: wrap;
}

.footer-copy {
	margin: 0;
}

.footer-credit {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.footer-credit__label {
	font-weight: 600;
	white-space: nowrap;
}

.footer-credit__link {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	border-radius: 8px;
	transition: transform 0.2s var(--zd-ease);
}

.footer-credit__link:hover,
.footer-credit__link:focus-visible {
	transform: translateY(-1px);
}

.footer-credit__logo {
	width: 72px;
	height: auto;
	max-height: 32px;
	object-fit: contain;
	filter: grayscale(1) brightness(0.75);
	opacity: 0.9;
	transition: filter 0.28s ease, opacity 0.28s ease;
}

.footer-credit__link:hover .footer-credit__logo,
.footer-credit__link:focus-visible .footer-credit__logo {
	filter: none;
	opacity: 1;
}

@media (max-width: 520px) {
	.footer-bottom__inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

.content-card {
	padding: 1.5rem;
}

.entry-title {
	margin-bottom: 1rem;
}

/* Motion */
@keyframes rise-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes float-orb {
	0%,
	100% {
		transform: translate3d(0, 0, 0);
	}
	50% {
		transform: translate3d(-12px, 16px, 0);
	}
}

.reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.55s var(--zd-ease), transform 0.55s var(--zd-ease);
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Responsive: app-like up to tablet/desktop */
@media (min-width: 640px) {
	.cards-grid,
	.why-grid,
	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hero-slide:not(.has-image) {
		padding: 2rem;
		min-height: 480px;
	}
}

@media (min-width: 960px) {
	:root {
		--zd-header-h: 76px;
	}

	.header-inner {
		grid-template-columns: auto 1fr auto;
		gap: 1rem;
	}

	.brand {
		justify-self: start;
	}

	.header-nav {
		display: block;
		justify-self: center;
	}

	.menu-toggle,
	.side-drawer,
	.drawer-overlay {
		display: none !important;
	}

	.section {
		padding: 3.5rem 0;
	}

	.cards-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.why-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.hero-slide:not(.has-image) {
		grid-template-columns: 1.1fr 0.9fr;
		align-items: center;
		gap: 1.5rem;
		min-height: 520px;
	}

	.hero-slide:not(.has-image) .hero-slide__visual {
		position: relative;
		inset: auto;
		min-height: 280px;
		border-radius: var(--zd-radius-lg);
		background: linear-gradient(160deg, rgba(var(--zd-primary-rgb), 0.12), rgba(255, 255, 255, 0.35));
		order: 2;
	}

	.hero-slide:not(.has-image) .hero-slide__content {
		order: 1;
	}

	.cta-panel {
		padding: 3rem 2rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
