/**
 * DRK Modern Homepage — RTL responsive styles
 */

/* Reset theme conflicts on homepage */
body.drk-modern-homepage .main-page-content,
body.drk-hp-active #content {
	background: #fff !important;
	padding: 0 !important;
	margin: 0 !important;
	max-width: 100% !important;
}

body.drk-modern-homepage .site-content-inner.container {
	max-width: 100% !important;
	padding: 0 !important;
	width: 100% !important;
}

.drk-homepage {
	--drk-primary: #0060FF;
	--drk-accent: #0D9488;
	--drk-dark: #0f172a;
	--drk-text: #334155;
	--drk-muted: #64748b;
	--drk-bg: #f8fafc;
	--drk-white: #ffffff;
	--drk-radius: 16px;
	--drk-radius-sm: 10px;
	--drk-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
	--drk-shadow-lg: 0 12px 48px rgba(15, 23, 42, 0.1);
	--drk-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	font-family: 'Vazirmatn', 'IRANSans', Tahoma, Arial, sans-serif !important;
	color: var(--drk-text);
	line-height: 1.75;
	direction: rtl;
	text-align: right;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.drk-homepage *,
.drk-homepage *::before,
.drk-homepage *::after {
	box-sizing: border-box;
	font-family: inherit;
}

.drk-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Buttons */
.drk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 12px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all var(--drk-transition);
	white-space: nowrap;
}

.drk-btn--primary {
	background: linear-gradient(135deg, var(--drk-primary), #0050d4);
	color: #fff;
	box-shadow: 0 4px 16px rgba(0, 96, 255, 0.3);
}

.drk-btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 96, 255, 0.4);
	color: #fff;
}

.drk-btn--outline {
	background: transparent;
	color: var(--drk-primary);
	border-color: var(--drk-primary);
}

.drk-btn--outline:hover {
	background: var(--drk-primary);
	color: #fff;
}

/* Section headers */
.drk-section {
	padding: 72px 0;
}

.drk-section:nth-child(even) {
	background: var(--drk-bg);
}

.drk-section-header {
	text-align: center;
	margin-bottom: 48px;
}

.drk-section-subtitle {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	color: var(--drk-accent);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 8px;
	padding: 4px 14px;
	background: rgba(13, 148, 136, 0.08);
	border-radius: 20px;
}

.drk-section-title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 800;
	color: var(--drk-dark);
	margin: 0;
	line-height: 1.3;
}

.drk-section__footer {
	text-align: center;
	margin-top: 40px;
}

/* Hero */
.drk-hero {
	position: relative;
	background: linear-gradient(160deg, #f0f7ff 0%, #e8f4f8 50%, #f8fafc 100%);
	overflow: hidden;
	min-height: 520px;
}

.drk-hero__brand {
	padding-top: 24px;
}

.drk-hero__brand-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--drk-dark);
}

.drk-hero__brand-logo {
	height: 56px;
	width: auto;
	max-width: 220px;
	object-fit: contain;
}

.drk-hero__brand-text {
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--drk-dark);
}

.drk-hero__brand-link--text .drk-hero__brand-text {
	font-size: 1.5rem;
}

.drk-hero__slider {
	position: relative;
}

.drk-hero__slide {
	display: none;
	padding: 60px 0 80px;
	animation: drkFadeIn 0.6s ease;
}

.drk-hero__slide.is-active {
	display: block;
}

@keyframes drkFadeIn {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

.drk-hero__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}

.drk-hero__badge {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	color: var(--drk-accent);
	background: rgba(13, 148, 136, 0.1);
	padding: 6px 16px;
	border-radius: 20px;
	margin-bottom: 16px;
}

.drk-hero__title {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 800;
	color: var(--drk-dark);
	line-height: 1.25;
	margin: 0 0 16px;
}

.drk-hero__desc {
	font-size: 17px;
	color: var(--drk-muted);
	margin: 0 0 32px;
	max-width: 520px;
	line-height: 1.8;
}

.drk-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.drk-hero__media img {
	width: 100%;
	height: auto;
	border-radius: var(--drk-radius);
	box-shadow: var(--drk-shadow-lg);
}

.drk-hero__media--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 320px;
}

.drk-hero__graphic {
	position: relative;
	width: 280px;
	height: 280px;
}

.drk-hero__circle {
	position: absolute;
	border-radius: 50%;
}

.drk-hero__circle--1 {
	width: 200px;
	height: 200px;
	background: linear-gradient(135deg, rgba(0, 96, 255, 0.15), rgba(13, 148, 136, 0.1));
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	animation: drkPulse 4s ease-in-out infinite;
}

.drk-hero__circle--2 {
	width: 140px;
	height: 140px;
	background: linear-gradient(135deg, var(--drk-primary), var(--drk-accent));
	opacity: 0.15;
	top: 20%;
	right: 10%;
	animation: drkFloat 6s ease-in-out infinite;
}

.drk-hero__icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 120px;
	height: 120px;
	color: var(--drk-primary);
	opacity: 0.4;
}

@keyframes drkPulse {
	0%, 100% { transform: translate(-50%, -50%) scale(1); }
	50% { transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes drkFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-12px); }
}

.drk-hero__nav {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 16px;
	z-index: 2;
}

.drk-hero__arrow {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.1);
	background: var(--drk-white);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all var(--drk-transition);
	color: var(--drk-dark);
}

.drk-hero__arrow:hover {
	background: var(--drk-primary);
	color: #fff;
	border-color: var(--drk-primary);
}

.drk-hero__dots {
	display: flex;
	gap: 8px;
}

.drk-hero__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: none;
	background: rgba(0, 0, 0, 0.15);
	cursor: pointer;
	padding: 0;
	transition: all var(--drk-transition);
}

.drk-hero__dot.is-active {
	background: var(--drk-primary);
	width: 28px;
	border-radius: 5px;
}

/* Stats */
.drk-stats {
	background: var(--drk-dark);
	padding: 40px 0;
	margin-top: -1px;
}

.drk-stats__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.drk-stats__item {
	text-align: center;
	padding: 16px;
}

.drk-stats__number {
	display: block;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 800;
	color: #fff;
	line-height: 1.2;
}

.drk-stats__label {
	display: block;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.65);
	margin-top: 6px;
}

/* Categories */
.drk-categories__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 20px;
}

.drk-category-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 28px 16px;
	background: var(--drk-white);
	border-radius: var(--drk-radius);
	box-shadow: var(--drk-shadow);
	text-decoration: none;
	color: inherit;
	transition: all var(--drk-transition);
	border: 1px solid transparent;
}

.drk-category-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--drk-shadow-lg);
	border-color: rgba(0, 96, 255, 0.15);
	color: var(--drk-primary);
}

.drk-category-card__icon {
	width: 64px;
	height: 64px;
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(0, 96, 255, 0.08), rgba(13, 148, 136, 0.08));
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
	color: var(--drk-primary);
	overflow: hidden;
}

.drk-category-card__icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 16px;
}

.drk-category-card__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--drk-dark);
	margin: 0 0 4px;
}

.drk-category-card__count {
	font-size: 12px;
	color: var(--drk-muted);
}

/* Services */
.drk-services {
	background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.drk-services__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

.drk-service-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	padding: 28px 24px 24px;
	background: var(--drk-white);
	border-radius: var(--drk-radius);
	box-shadow: 0 2px 16px rgba(15, 23, 42, 0.05);
	text-decoration: none;
	color: inherit;
	transition: transform var(--drk-transition), box-shadow var(--drk-transition), border-color var(--drk-transition);
	border: 1px solid rgba(15, 23, 42, 0.06);
	min-height: 100%;
}

.drk-service-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--drk-shadow-lg);
	border-color: rgba(0, 96, 255, 0.15);
}

.drk-service-card__icon-wrap {
	width: 72px;
	height: 72px;
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
	background: #eef4ff;
	border: 1px solid rgba(0, 96, 255, 0.08);
}

.drk-service-card[data-tone="1"] .drk-service-card__icon-wrap { background: #ecfdf5; border-color: rgba(13, 148, 136, 0.1); }
.drk-service-card[data-tone="2"] .drk-service-card__icon-wrap { background: #fef3c7; border-color: rgba(217, 119, 6, 0.12); }
.drk-service-card[data-tone="3"] .drk-service-card__icon-wrap { background: #ede9fe; border-color: rgba(124, 58, 237, 0.1); }
.drk-service-card[data-tone="4"] .drk-service-card__icon-wrap { background: #fce7f3; border-color: rgba(219, 39, 119, 0.1); }
.drk-service-card[data-tone="5"] .drk-service-card__icon-wrap { background: #e0f2fe; border-color: rgba(2, 132, 199, 0.1); }

.drk-service-card__icon {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--drk-primary);
}

.drk-service-card__icon svg {
	width: 32px;
	height: 32px;
	stroke: currentColor;
}

.drk-service-card__icon img {
	width: 40px;
	height: 40px;
	object-fit: contain;
}

.drk-service-card__title {
	font-size: 17px;
	font-weight: 700;
	color: var(--drk-dark);
	margin: 0 0 10px;
	line-height: 1.5;
}

.drk-service-card__desc {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.85;
	color: var(--drk-muted);
	flex: 1;
}

.drk-service-card__cta {
	margin-top: auto;
	font-size: 14px;
	font-weight: 600;
	color: var(--drk-primary);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: gap var(--drk-transition);
}

.drk-service-card:hover .drk-service-card__cta {
	gap: 10px;
}

/* Products */
.drk-products__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
}

.drk-product-card {
	background: var(--drk-white);
	border-radius: var(--drk-radius);
	overflow: hidden;
	box-shadow: var(--drk-shadow);
	transition: all var(--drk-transition);
	border: 1px solid rgba(0, 0, 0, 0.04);
}

.drk-product-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--drk-shadow-lg);
}

.drk-product-card__link {
	text-decoration: none;
	color: inherit;
	display: block;
}

.drk-product-card__image {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--drk-bg);
	padding: 16px;
}

.drk-product-card__image img {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
	transition: transform 0.5s ease;
}

.drk-product-card:hover .drk-product-card__image img {
	transform: scale(1.03);
}

.drk-product-card__body {
	padding: 20px;
}

.drk-product-card__title {
	font-size: 16px;
	font-weight: 700;
	color: var(--drk-dark);
	margin: 0 0 8px;
	line-height: 1.4;
}

.drk-product-card__excerpt {
	font-size: 13px;
	color: var(--drk-muted);
	margin: 0 0 12px;
	line-height: 1.6;
}

.drk-product-card__price {
	font-size: 15px;
	font-weight: 700;
	color: var(--drk-accent);
}

.drk-product-card__price .woocommerce-Price-amount {
	color: inherit;
}

/* Video */
.drk-video__wrapper {
	max-width: 800px;
	margin: 0 auto;
}

.drk-video__embed {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	border-radius: var(--drk-radius);
	overflow: hidden;
	box-shadow: var(--drk-shadow-lg);
	background: var(--drk-dark);
}

.drk-video__embed iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.drk-video__placeholder {
	aspect-ratio: 16/9;
	background: linear-gradient(135deg, var(--drk-dark), #1e293b);
	border-radius: var(--drk-radius);
	display: flex;
	align-items: center;
	justify-content: center;
}

.drk-video__placeholder-inner {
	text-align: center;
	color: rgba(255, 255, 255, 0.7);
}

.drk-video__placeholder-inner svg {
	margin-bottom: 16px;
	opacity: 0.5;
}

.drk-video__placeholder-inner p {
	font-size: 18px;
	font-weight: 600;
	color: #fff;
	margin: 0 0 8px;
}

.drk-video__placeholder-inner span {
	font-size: 13px;
}

/* About */
.drk-about__grid {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 48px;
	align-items: center;
}

.drk-about__media img {
	width: 100%;
	border-radius: var(--drk-radius);
	box-shadow: var(--drk-shadow-lg);
}

.drk-about__placeholder {
	aspect-ratio: 4/5;
	background: linear-gradient(135deg, rgba(0, 96, 255, 0.08), rgba(13, 148, 136, 0.08));
	border-radius: var(--drk-radius);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--drk-primary);
	opacity: 0.5;
}

.drk-about__content .drk-section-header {
	text-align: right;
	margin-bottom: 24px;
}

.drk-about__text {
	font-size: 16px;
	line-height: 1.9;
	color: var(--drk-text);
	margin: 0 0 28px;
}

.drk-about__credentials {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
}

.drk-about__credentials li {
	position: relative;
	padding: 10px 28px 10px 0;
	font-size: 15px;
	line-height: 1.7;
	color: var(--drk-text);
	border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.drk-about__credentials li::before {
	content: '';
	position: absolute;
	right: 0;
	top: 18px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--drk-primary), var(--drk-accent));
}

.drk-about__credentials li:last-child {
	border-bottom: none;
}

/* Posts */
.drk-posts__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
}

.drk-post-card {
	background: var(--drk-white);
	border-radius: var(--drk-radius);
	overflow: hidden;
	box-shadow: var(--drk-shadow);
	transition: all var(--drk-transition);
}

.drk-post-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--drk-shadow-lg);
}

.drk-post-card__link {
	text-decoration: none;
	color: inherit;
	display: block;
}

.drk-post-card__image {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--drk-bg);
}

.drk-post-card__image img {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
	transition: transform 0.5s ease;
}

.drk-post-card:hover .drk-post-card__image img {
	transform: scale(1.03);
}

.drk-post-card__no-image {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--drk-bg), #e2e8f0);
}

.drk-post-card__body {
	padding: 20px;
}

.drk-post-card__date {
	font-size: 12px;
	color: var(--drk-accent);
	font-weight: 600;
}

.drk-post-card__title {
	font-size: 16px;
	font-weight: 700;
	color: var(--drk-dark);
	margin: 8px 0 12px;
	line-height: 1.4;
}

.drk-post-card__readmore {
	font-size: 13px;
	font-weight: 600;
	color: var(--drk-primary);
}

/* Events */
.drk-events__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
}

.drk-event-card {
	background: var(--drk-white);
	border-radius: var(--drk-radius);
	overflow: hidden;
	box-shadow: var(--drk-shadow);
	transition: all var(--drk-transition);
}

.drk-event-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--drk-shadow-lg);
}

.drk-event-card__link {
	text-decoration: none;
	color: inherit;
	display: block;
}

.drk-event-card__image {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--drk-bg);
}

.drk-event-card__image img {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
}

.drk-event-card__body {
	padding: 20px;
}

.drk-event-card__date {
	font-size: 12px;
	font-weight: 600;
	color: var(--drk-accent);
}

.drk-event-card__title {
	font-size: 16px;
	font-weight: 700;
	color: var(--drk-dark);
	margin: 8px 0 0;
	line-height: 1.4;
}

/* Quick access */
.drk-quick-access__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.drk-quick-link {
	padding: 12px 24px;
	background: var(--drk-white);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 10px;
	text-decoration: none;
	color: var(--drk-dark);
	font-weight: 600;
	font-size: 14px;
	transition: all var(--drk-transition);
}

.drk-quick-link:hover {
	background: var(--drk-primary);
	color: #fff;
	border-color: var(--drk-primary);
}

/* Scroll reveal */
.drk-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.drk-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
	.drk-hero__inner {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.drk-services__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.drk-hero__desc {
		margin-left: auto;
		margin-right: auto;
	}

	.drk-hero__actions {
		justify-content: center;
	}

	.drk-hero__media--placeholder {
		min-height: 200px;
	}

	.drk-hero__graphic {
		width: 200px;
		height: 200px;
	}

	.drk-stats__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.drk-about__grid {
		grid-template-columns: 1fr;
	}

	.drk-about__content .drk-section-header {
		text-align: center;
	}

	.drk-hero__media {
		width: 100%;
		max-width: 560px;
		margin: 0 auto;
	}

	.drk-hero__media img {
		width: 100%;
		height: auto;
		object-fit: contain;
	}
}

@media (max-width: 640px) {
	.drk-section {
		padding: 48px 0;
	}

	.drk-hero {
		min-height: auto;
	}

	.drk-hero__slide {
		padding: 40px 0 72px;
	}

	.drk-hero__actions {
		flex-direction: column;
		width: 100%;
	}

	.drk-btn {
		width: 100%;
	}

	.drk-stats__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.drk-stats__number {
		font-size: 1.5rem;
	}

	.drk-services__grid {
		grid-template-columns: 1fr;
	}

	.drk-categories__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.drk-category-card {
		padding: 20px 12px;
	}

	.drk-products__grid,
	.drk-posts__grid,
	.drk-events__grid {
		grid-template-columns: 1fr;
	}

	.drk-hero__nav {
		bottom: 16px;
	}

	.drk-hero__arrow {
		width: 36px;
		height: 36px;
	}

	.drk-hero__media {
		width: 100%;
		max-width: 100%;
		margin: 0 auto;
	}

	.drk-hero__media img {
		width: 100%;
		height: auto;
		max-height: 55vh;
		object-fit: contain;
	}

	.drk-hero__brand-logo {
		max-width: 180px;
		height: 48px;
	}

	.drk-product-card__image {
		aspect-ratio: auto;
		min-height: 220px;
		padding: 20px;
	}

	.drk-product-card__image img {
		width: auto;
		height: auto;
		max-width: 100%;
		max-height: 280px;
	}

	.drk-post-card__image {
		aspect-ratio: auto;
		min-height: 180px;
	}

	.drk-post-card__image img {
		width: auto;
		height: auto;
		max-width: 100%;
		max-height: 240px;
	}

	.drk-event-card__image {
		aspect-ratio: auto;
		min-height: 160px;
	}

	.drk-event-card__image img {
		width: auto;
		height: auto;
		max-width: 100%;
		max-height: 220px;
	}

	.drk-about__media {
		max-width: 100%;
		margin: 0 auto;
	}

	.drk-about__media img {
		width: 100%;
		height: auto;
		object-fit: contain;
	}
}
