/* ==========================================================================
   Drone Landing Theme - Main Stylesheet
   Mobile-First / RTL / Minimal Premium Design
   ========================================================================== */

:root {
	--color-bg: #f4f6f8;
	--color-bg-alt: #ffffff;
	--color-text: #172033;
	--color-text-muted: #687386;
	--color-border: #e2e7ec;
	--color-accent: #d86f2b;
	--color-accent-dark: #b95719;
	--color-accent-light: #fff5ed;
	--color-success: #16a34a;
	--color-danger: #dc2626;
	--color-price-old: #9ca3af;
	--radius: 16px;
	--radius-sm: 10px;
	--radius-lg: 22px;
	--shadow-sm: 0 2px 8px rgba(16, 24, 40, 0.05);
	--shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
	--shadow-lg: 0 20px 50px rgba(16, 24, 40, 0.14);
	--container-width: 1180px;
	--container-narrow: 760px;
	--section-space: clamp(48px, 7vw, 96px);
	--font-base: -apple-system, BlinkMacSystemFont, "Tajawal", "Segoe UI", "Cairo", Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-base);
	background: var(--color-bg);
	color: var(--color-text);
	line-height: 1.75;
	font-size: 16px;
	direction: rtl;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
	width: 100%;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 clamp(18px, 4vw, 40px);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding: var(--section-space) 0; }

.section__title {
	font-size: clamp(22px, 3.2vw, 30px);
	font-weight: 800;
	text-align: center;
	margin: 0 0 clamp(24px, 4vw, 40px);
	color: var(--color-text);
	letter-spacing: -0.01em;
}

.section__text {
	text-align: center;
	color: var(--color-text-muted);
	font-size: clamp(15px, 1.6vw, 17px);
	max-width: 640px;
	margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 30px;
	border: none;
	border-radius: var(--radius-sm, 12px);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.2px;
	line-height: 1.2;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	-webkit-tap-highlight-color: transparent;
	transition:
		transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
		box-shadow 0.25s ease,
		background 0.2s ease,
		color 0.2s ease;
	font-family: inherit;
}

/* تأثير لمعان يمر على الزر عند المرور */
.btn::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		120deg,
		transparent 30%,
		rgba(255, 255, 255, 0.35) 50%,
		transparent 70%
	);
	transform: translateX(-120%);
	transition: transform 0.6s ease;
	z-index: -1;
	pointer-events: none;
}

.btn:hover::before {
	transform: translateX(120%);
}

/* ---------- Primary Button ---------- */
.btn--primary {
	background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
	color: #fff;
	box-shadow:
		0 4px 14px rgba(216, 111, 43, 0.28),
		0 1px 2px rgba(0, 0, 0, 0.08);
}

.btn--primary:hover {
	background: linear-gradient(135deg, var(--color-accent-dark) 0%, var(--color-accent) 100%);
	transform: translateY(-2px);
	box-shadow:
		0 10px 26px rgba(216, 111, 43, 0.38),
		0 2px 4px rgba(0, 0, 0, 0.10);
}

.btn--primary:active {
	transform: translateY(0) scale(0.98);
	box-shadow:
		0 3px 10px rgba(216, 111, 43, 0.28),
		inset 0 2px 4px rgba(0, 0, 0, 0.12);
	transition-duration: 0.08s;
}

/* حلقة تركيز لتحسين الوصولية */
.btn:focus-visible {
	outline: none;
	box-shadow:
		0 0 0 3px rgba(216, 111, 43, 0.35),
		0 6px 18px rgba(216, 111, 43, 0.25);
}

/* ---------- Secondary Button (اختياري) ---------- */
.btn--secondary {
	background: #f4f5f7;
	color: #1f2937;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.btn--secondary:hover {
	background: #e9ebef;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
}

.btn--secondary:active {
	transform: translateY(0) scale(0.98);
}

/* ---------- Outline Button (اختياري) ---------- */
.btn--outline {
	background: transparent;
	color: var(--color-accent);
	border: 2px solid var(--color-accent);
	box-shadow: none;
}

.btn--outline:hover {
	background: var(--color-accent);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(216, 111, 43, 0.25);
}

/* ---------- Arrow ---------- */
.btn__arrow {
	display: inline-flex;
	align-items: center;
	transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
	font-size: 18px;
}

.btn--primary:hover .btn__arrow,
.btn--secondary:hover .btn__arrow {
	transform: translateX(-3px);
}

/* ---------- Sizes ---------- */
.btn--full { width: 100%; }

.btn--large {
	padding: 17px 34px;
	font-size: 17px;
	border-radius: calc(var(--radius-sm, 12px) + 2px);
}

.btn--small {
	padding: 9px 18px;
	font-size: 14px;
	border-radius: calc(var(--radius-sm, 12px) - 4px);
}

/* ---------- Disabled ---------- */
.btn:disabled,
.btn[aria-disabled="true"] {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
	filter: grayscale(0.3);
}

.btn:disabled::before,
.btn[aria-disabled="true"]::before {
	display: none;
}

/* ---------- تقليل الحركة لمن يفضل ذلك ---------- */
@media (prefers-reduced-motion: reduce) {
	.btn,
	.btn::before,
	.btn__arrow {
		transition: none !important;
	}
	.btn:hover { transform: none; }
	.btn:hover::before { transform: translateX(-120%); }
	.btn--primary:hover .btn__arrow { transform: none; }
}
/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	padding-bottom: 14px;
}
.site-logo { font-size: 18px; font-weight: 800; color: var(--color-text); }
.header-cta { display: none; }
@media (min-width: 640px) {
	.header-cta { display: inline-flex; }
}

/* ==========================================================================
   Hero (يتضمن معرض صور المنتج بشكل ملاصق للنصوص لتجربة استخدام متكاملة)
   ========================================================================== */
.hero {
	padding: clamp(28px, 5vw, 56px) 0 clamp(36px, 6vw, 64px);
	background:
		radial-gradient(circle at 85% 15%, rgba(216, 111, 43, 0.08), transparent 30%),
		linear-gradient(180deg, #f8fafb 0%, var(--color-bg) 100%);
}
.hero__inner {
	display: flex;
	flex-direction: column;
	gap: clamp(28px, 4vw, 40px);
	align-items: center;
}
.hero__content { text-align: center; width: 100%; order: 2; }
.hero__media { width: 100%; order: 1; }

.hero__title {
	font-size: clamp(26px, 5vw, 40px);
	font-weight: 800;
	margin: 0 0 12px;
	line-height: 1.25;
	letter-spacing: -0.01em;
}
.hero__subtitle {
	font-size: clamp(15px, 2vw, 18px);
	color: var(--color-text-muted);
	margin: 0 0 20px;
}
.hero__quick-benefits {
	list-style: none;
	padding: 0;
	margin: 0 0 22px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}
.hero__quick-benefits li {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	padding: 7px 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--color-text);
	box-shadow: var(--shadow-sm);
}
.hero__quick-icon { font-size: 15px; }

.hero__price {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 10px;
	margin-bottom: 22px;
	flex-wrap: wrap;
}
.price-current { font-size: clamp(26px, 4vw, 32px); font-weight: 800; color: var(--color-accent); }
.price-old { font-size: 18px; color: var(--color-price-old); text-decoration: line-through; }
.price-discount {
	background: #fef2f2;
	color: var(--color-danger);
	font-size: 13px;
	font-weight: 700;
	padding: 4px 11px;
	border-radius: 999px;
}

.hero__trust {
	margin-top: 16px;
	font-size: 13px;
	color: var(--color-text-muted);
}

.hero__media-placeholder {
	width: 100%;
	max-width: 420px;
	margin: 0 auto;
	aspect-ratio: 1 / 1;
	background: #e9edf1;
	border-radius: var(--radius-lg);
}

@media (min-width: 960px) {
	.hero__inner { flex-direction: row; text-align: right; align-items: center; }
	.hero__content { text-align: right; width: 52%; order: 1; }
	.hero__media { width: 44%; order: 2; }
	.hero__quick-benefits { justify-content: flex-start; }
	.hero__price { justify-content: flex-start; }
}

@media (min-width: 1200px) {
	.hero__content { width: 48%; }
	.hero__media { width: 42%; }
}

/* ---------- Product Gallery (inside Hero) ---------- */
.drone-gallery {
	width: 100%;
	max-width: 440px;
	margin: 0 auto;
}
@media (min-width: 960px) {
	.drone-gallery { margin: 0 0 0 auto; }
}
.drone-gallery__main {
	position: relative;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: #fff;
	aspect-ratio: 1 / 1;
	box-shadow: 0 18px 45px rgba(23, 32, 51, 0.12);
	cursor: zoom-in;
}
.drone-gallery__main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: opacity 0.2s ease;
}
.drone-gallery__zoom-hint {
	position: absolute;
	bottom: 12px;
	left: 12px;
	background: rgba(20, 22, 26, 0.55);
	color: #fff;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	pointer-events: none;
}
.drone-gallery__thumbs {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	margin: 14px 0 0;
	padding-bottom: 4px;
	justify-content: center;
	scrollbar-width: thin;
}
@media (min-width: 960px) {
	.drone-gallery__thumbs { justify-content: flex-start; }
}
.drone-gallery__thumb {
	flex: 0 0 auto;
	width: 60px;
	height: 60px;
	border-radius: var(--radius-sm);
	overflow: hidden;
	border: 2px solid transparent;
	padding: 0;
	background: none;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}
.drone-gallery__thumb:hover { opacity: 1; }
.drone-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.drone-gallery__thumb.is-active { border-color: var(--color-accent); opacity: 1; }

.drone-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(10, 10, 12, 0.92);
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
}
.drone-lightbox[hidden] { display: none; }
.drone-lightbox img { max-width: 90%; max-height: 85vh; border-radius: 10px; }
.drone-lightbox__close {
	position: absolute;
	top: 16px;
	left: 16px;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 18px;
	cursor: pointer;
}
.drone-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 24px;
	cursor: pointer;
}
.drone-lightbox__prev { right: 16px; }
.drone-lightbox__next { left: 16px; }

/* ==========================================================================
   Intro + Full Description
   ========================================================================== */
.intro { background: var(--color-bg-alt); }

.product-description { background: var(--color-bg-alt); }
.prose {
	font-size: 15.5px;
	color: var(--color-text);
}
.prose h1, .prose h2, .prose h3, .prose h4 {
	font-weight: 700;
	margin: 24px 0 10px;
	line-height: 1.4;
}
.prose h1 { font-size: 22px; }
.prose h2 { font-size: 19px; }
.prose h3 { font-size: 17px; }
.prose p { margin: 0 0 14px; color: var(--color-text); }
.prose ul, .prose ol { margin: 0 0 14px; padding-inline-start: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { font-weight: 700; }
.prose a { color: var(--color-accent); text-decoration: underline; }

/* ---------- Product description UX ---------- */
.product-description {
	background: #eef2f5;
}
.product-description__content {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: clamp(22px, 4vw, 38px);
	box-shadow: var(--shadow-sm);
}
.product-description__content p:last-child { margin-bottom: 0; }
.product-description__content h2,
.product-description__content h3 {
	color: var(--color-text);
}
.intro {
	background: #fff;
}
.intro .section__text {
	font-size: clamp(16px, 1.8vw, 18px);
	line-height: 1.9;
}

/* ---------- Benefits ---------- */
.benefits__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}
@media (min-width: 640px) {
	.benefits__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.benefit-card {
	background: var(--color-bg-alt);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 28px 20px;
	text-align: center;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.benefit-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.benefit-card__icon {
	font-size: 28px;
	margin: 0 auto 14px;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-accent-light);
	border-radius: 50%;
}
.benefit-card__title { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.benefit-card__desc { font-size: 13.5px; color: var(--color-text-muted); margin: 0; }

/* ---------- Box Contents ---------- */
.box-contents__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 12px;
}
@media (min-width: 640px) {
	.box-contents__list { grid-template-columns: repeat(2, 1fr); }
}
.box-contents__list li {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--color-bg-alt);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	padding: 13px 16px;
	font-size: 15px;
}
.box-contents__check {
	color: var(--color-success);
	font-weight: 800;
	background: #ecfdf3;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	flex-shrink: 0;
}

/* ---------- Specs ---------- */
.specs { background: var(--color-bg-alt); }
.specs__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	background: var(--color-bg);
	border-radius: var(--radius);
	overflow: hidden;
}
.specs__table th, .specs__table td {
	padding: 15px 18px;
	border-bottom: 1px solid var(--color-border);
	text-align: right;
}
.specs__table th {
	color: var(--color-text-muted);
	font-weight: 600;
	width: 42%;
	background: var(--color-bg-alt);
}
.specs__table tr:last-child th, .specs__table tr:last-child td { border-bottom: none; }

/* ---------- Why Choose ---------- */
.why-choose__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}
@media (min-width: 640px) {
	.why-choose__grid { grid-template-columns: repeat(2, 1fr); }
}
.why-choose__card {
	background: var(--color-bg-alt);
	border-right: 3px solid var(--color-accent);
	border-radius: var(--radius-sm);
	padding: 22px;
	box-shadow: var(--shadow-sm);
}
.why-choose__card h3 { margin: 0 0 8px; font-size: 16px; }
.why-choose__card p { margin: 0; color: var(--color-text-muted); font-size: 14px; }

/* ==========================================================================
   Order Section
   ========================================================================== */
.order-section { background: var(--color-bg-alt); }
.order-card {
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: clamp(22px, 4vw, 32px);
	box-shadow: var(--shadow-lg);
}
.order-card__price-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
	flex-wrap: wrap;
	gap: 10px;
}
.order-card__title { font-size: 20px; margin: 0 0 6px; }
.order-card__price { display: flex; align-items: baseline; gap: 10px; }
.order-card__discount-badge {
	background: var(--color-danger);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	padding: 5px 13px;
	border-radius: 999px;
}

.order-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) {
	.form-row { grid-template-columns: 1fr 1fr; }
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 600; }
.form-group .req { color: var(--color-danger); }
.form-group input {
	padding: 13px 15px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-size: 15px;
	font-family: inherit;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-group input:focus {
	outline: none;
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px rgba(216, 111, 43, 0.15);
}
.form-group input.is-invalid { border-color: var(--color-danger); }
.field-error {
	font-size: 12.5px;
	color: var(--color-danger);
	min-height: 16px;
}
.order-form__note {
	text-align: center;
	font-size: 12.5px;
	color: var(--color-text-muted);
	margin: 4px 0 0;
}
.drone-hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Testimonials ---------- */
.testimonials__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}
@media (min-width: 640px) {
	.testimonials__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
	.testimonials__grid { grid-template-columns: repeat(3, 1fr); }
}
.testimonial-card {
	background: var(--color-bg-alt);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 22px;
}
.testimonial-card__stars { color: #f59e0b; font-size: 15px; margin-bottom: 8px; letter-spacing: 2px; }
.testimonial-card__text { font-size: 14px; color: var(--color-text); margin: 0 0 10px; }
.testimonial-card__name { font-size: 13px; color: var(--color-text-muted); margin: 0; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-item {
	border-bottom: 1px solid var(--color-border);
}
.faq-item__question {
	width: 100%;
	background: none;
	border: none;
	padding: 18px 0;
	font-size: 15px;
	font-weight: 700;
	text-align: right;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: inherit;
	color: var(--color-text);
}
.faq-item__icon { font-size: 20px; color: var(--color-accent); transition: transform 0.2s ease; }
.faq-item__question[aria-expanded="true"] .faq-item__icon { transform: rotate(45deg); }
.faq-item__answer { padding: 0 0 18px; color: var(--color-text-muted); font-size: 14px; }
.faq-item__answer[hidden] { display: none; }

/* ---------- Final CTA ---------- */
.final-cta {
	text-align: center;
	background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-accent-light) 100%);
}
.final-cta h2 { font-size: 22px; margin-bottom: 10px; }
.final-cta .order-card__price { justify-content: center; margin-bottom: 22px; }

/* ---------- Success Modal ---------- */
.drone-success-modal {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.drone-success-modal[hidden] { display: none; }
.drone-success-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}
.drone-success-modal__box {
	position: relative;
	background: #fff;
	border-radius: var(--radius);
	padding: 34px 26px;
	max-width: 380px;
	width: 100%;
	text-align: center;
	box-shadow: var(--shadow-lg);
	animation: drone-modal-in 0.2s ease;
}
@keyframes drone-modal-in {
	from { transform: translateY(10px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}
.drone-success-modal__box h2 { font-size: 20px; margin: 0 0 12px; }
.drone-success-modal__box p { font-size: 14px; color: var(--color-text-muted); margin: 0 0 8px; }
.drone-success-modal__order-number { font-size: 15px; color: var(--color-text); margin-bottom: 20px !important; }

/* ---------- Sticky Mobile CTA ---------- */
.sticky-cta {
	position: fixed;
	bottom: 0;
	right: 0;
	left: 0;
	background: #fff;
	padding: 12px 16px;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
	z-index: 60;
	display: block;
	padding-bottom: max(12px, env(safe-area-inset-bottom));
}
@media (min-width: 960px) {
	.sticky-cta { display: none; }
}

/* ---------- Footer ---------- */
.site-footer {
	background: var(--color-text);
	color: #d1d5db;
	padding: 32px 0 100px;
	text-align: center;
	font-size: 13px;
}
@media (min-width: 960px) {
	.site-footer { padding-bottom: 32px; }
}
.site-footer__copy { margin: 0; }

/* ---------- Accessibility ---------- */
:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
}
