/*
Theme Name: Xeydar
Description: Modern, simple multi-page theme for Xeydar Online (smartwatches, watches & airpods, Mogadishu). Navy & gold palette matching the brand logo.
Author: Xeydar Online
Version: 1.0.0
Text Domain: xeydar
*/

/* ---------------------------------- */
/* Design tokens                       */
/* ---------------------------------- */
:root {
	--navy: #12425f;
	--navy-dark: #0e3651;
	--navy-light: #1a5a80;
	--gold: #f9ae1d;
	--gold-dark: #e0980c;
	--whatsapp: #25d366;
	--whatsapp-dark: #1ebe5d;
	--ink: #1c2b33;
	--muted: #5b6b74;
	--paper: #ffffff;
	--paper-soft: #f5f8fa;
	--border: #e3e9ec;
	--radius: 12px;
	--radius-sm: 8px;
	--shadow: 0 4px 20px rgba(18, 66, 95, 0.08);
	--shadow-lg: 0 12px 40px rgba(18, 66, 95, 0.14);
	--container: 1160px;
}

/* ---------------------------------- */
/* Reset                               */
/* ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--ink);
	background: var(--paper);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; margin: 0 0 0.5em; color: var(--navy); }
p { margin: 0 0 1em; color: var(--muted); }
.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--paper-soft); }
.eyebrow {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gold-dark);
	margin-bottom: 0.75em;
}
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head h2 { font-size: 2rem; }
.section-head p { margin-bottom: 0; }

/* ---------------------------------- */
/* Buttons                             */
/* ---------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0.9em 1.8em;
	border-radius: var(--radius-sm);
	font-weight: 600;
	font-size: 0.95rem;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ---------------------------------- */
/* Header / nav                        */
/* ---------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 500;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: saturate(180%) blur(8px);
	border-bottom: 1px solid var(--border);
}
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 78px;
	flex-wrap: wrap;
	padding-top: 8px;
	padding-bottom: 8px;
}
.site-branding { display: flex; align-items: center; }
.site-branding img { max-height: 48px; width: auto; }
.site-branding .site-title {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--navy);
}
.primary-nav ul { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.primary-nav a {
	display: inline-block;
	padding: 10px 13px;
	font-weight: 500;
	font-size: 0.94rem;
	color: var(--navy);
	border-radius: var(--radius-sm);
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
	background: var(--navy);
	color: #fff;
}
.primary-nav .btn-navy { margin-left: 8px; }
.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: #fff;
	cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--navy); margin: 0 auto; }

/* ---------------------------------- */
/* Language switcher                   */
/* ---------------------------------- */
.lang-switch { position: relative; margin-left: 10px; }
.lang-toggle {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 9px 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: #fff;
	cursor: pointer;
	font-family: inherit;
	font-weight: 700;
	font-size: 0.78rem;
	letter-spacing: 0.03em;
	color: var(--navy);
	transition: border-color 0.15s ease, background 0.15s ease;
}
.lang-toggle:hover { background: var(--paper-soft); }
.lang-toggle svg { width: 18px; height: 18px; fill: var(--navy); flex: none; }
.lang-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 150px;
	background: var(--paper);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-lg);
	padding: 6px;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
	z-index: 600;
}
.lang-switch.is-open .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dropdown li + li { margin-top: 2px; }
.lang-dropdown a {
	display: block;
	padding: 9px 12px;
	border-radius: 6px;
	font-size: 0.9rem;
	color: var(--ink);
}
.lang-dropdown a:hover,
.lang-dropdown a.is-active { background: var(--paper-soft); color: var(--navy); font-weight: 600; }

@media (max-width: 480px) {
	.lang-toggle span { display: none; }
	.lang-toggle { padding: 9px 10px; }
}

@media (max-width: 860px) {
	.nav-toggle { display: flex; }
	.primary-nav {
		position: absolute;
		top: 78px;
		left: 0;
		right: 0;
		background: #fff;
		border-bottom: 1px solid var(--border);
		box-shadow: var(--shadow);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.25s ease;
	}
	.primary-nav.is-open { max-height: 420px; }
	.primary-nav ul { flex-direction: column; align-items: stretch; padding: 12px; gap: 4px; }
	.primary-nav a { padding: 14px 16px; }
	.primary-nav .btn-navy { margin: 8px 16px 4px; text-align: center; }
}

/* ---------------------------------- */
/* Hero                                */
/* ---------------------------------- */
.hero {
	background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
	color: #fff;
	position: relative;
	overflow: hidden;
}
.hero::after {
	content: "";
	position: absolute;
	right: -120px;
	top: -120px;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(249,174,29,0.25) 0%, rgba(249,174,29,0) 70%);
}
.hero .container {
	position: relative;
	padding: 96px 24px;
	text-align: center;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); max-width: 760px; margin: 0 auto 0.4em; }
.hero p.lead { color: #d7e2e8; font-size: 1.15rem; max-width: 620px; margin: 0 auto 2em; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Simple banner for category/contact pages */
.page-banner {
	background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
	color: #fff;
	padding: 64px 24px;
	text-align: center;
}
.page-banner h1 { color: #fff; margin-bottom: 0.25em; }
.page-banner p { color: #d7e2e8; max-width: 560px; margin: 0 auto; }
.page-banner.has-photo {
	background-blend-mode: overlay;
	background-color: rgba(14, 54, 81, 0.82);
	background-size: cover;
	background-position: center;
	padding: 88px 24px;
	position: relative;
}
.page-banner.has-photo::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(18,66,95,0.88) 0%, rgba(14,54,81,0.78) 100%);
}
.page-banner.has-photo h1,
.page-banner.has-photo p { position: relative; }

/* ---------------------------------- */
/* Category cards                      */
/* ---------------------------------- */
.category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 28px;
}
@media (max-width: 600px) { .category-grid { grid-template-columns: 1fr; } }
.category-card {
	background: var(--paper);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 36px 28px;
	text-align: center;
	box-shadow: var(--shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.category-card .icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: var(--paper-soft);
	display: flex;
	align-items: center;
	justify-content: center;
}
.category-card .icon svg { width: 34px; height: 34px; fill: var(--navy); }
.category-card h3 { margin-bottom: 0.4em; }
.category-card p { margin-bottom: 1.4em; }

/* ---------------------------------- */
/* Featured products photo showcase    */
/* ---------------------------------- */
.featured-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
}
@media (max-width: 960px) { .featured-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .featured-grid { grid-template-columns: repeat(2, 1fr); } }
.featured-item {
	position: relative;
	display: block;
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 1 / 1;
	box-shadow: var(--shadow);
}
.featured-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.featured-item:hover img { transform: scale(1.08); }
.featured-item::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(14,54,81,0.85) 0%, rgba(14,54,81,0.05) 55%);
}
.featured-item span {
	position: absolute;
	left: 14px;
	bottom: 12px;
	color: #fff;
	font-weight: 600;
	font-size: 0.92rem;
	z-index: 1;
}

/* ---------------------------------- */
/* How it works / steps                */
/* ---------------------------------- */
.steps-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	counter-reset: xeydar-step;
}
@media (max-width: 860px) { .steps-row { grid-template-columns: 1fr; gap: 24px; } }
.step-item {
	position: relative;
	background: var(--paper);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 32px 26px 26px;
	text-align: center;
}
.step-item .step-num {
	position: absolute;
	top: -18px;
	left: 50%;
	transform: translateX(-50%);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--navy);
	color: #fff;
	font-weight: 700;
	font-size: 0.95rem;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 14px rgba(18,66,95,0.3);
}
.step-item .icon {
	width: 56px; height: 56px; margin: 10px auto 14px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%; background: rgba(249,174,29,0.15);
}
.step-item .icon svg { width: 26px; height: 26px; fill: var(--gold-dark); }
.step-item h4 { margin-bottom: 0.35em; }
.step-item p { margin-bottom: 0; font-size: 0.92rem; }

/* ---------------------------------- */
/* Feature strip                       */
/* ---------------------------------- */
.feature-strip {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	text-align: center;
}
@media (max-width: 860px) { .feature-strip { grid-template-columns: 1fr; } }
.feature-strip .icon {
	width: 56px; height: 56px; margin: 0 auto 14px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%; background: rgba(249,174,29,0.15);
}
.feature-strip .icon svg { width: 26px; height: 26px; fill: var(--gold-dark); }
.feature-strip h4 { margin-bottom: 0.3em; font-size: 1.05rem; }
.feature-strip p { margin-bottom: 0; font-size: 0.92rem; }

/* CTA band */
.cta-band {
	background: var(--paper-soft);
	border-radius: var(--radius);
	padding: 52px 32px;
	text-align: center;
	max-width: var(--container);
	margin: 0 auto;
}
.cta-band h2 { font-size: 1.6rem; margin-bottom: 0.3em; }
.cta-band p { margin-bottom: 1.6em; }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------- */
/* Category page content area          */
/* ---------------------------------- */
.category-content {
	max-width: 980px;
	margin: 0 auto;
	text-align: center;
}
.category-content p { font-size: 1.05rem; }
.coming-soon-note {
	margin-top: 32px;
	padding: 20px 24px;
	background: var(--paper-soft);
	border: 1px dashed var(--border);
	border-radius: var(--radius-sm);
	color: var(--muted);
	font-size: 0.92rem;
}

/* Product photo gallery (classic [gallery] shortcode output) */
.category-content .gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin: 40px 0 0;
	padding: 0;
}
@media (max-width: 700px) { .category-content .gallery { grid-template-columns: 1fr 1fr; gap: 14px; } }
.category-content .gallery-item {
	margin: 0;
	list-style: none;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	background: var(--paper-soft);
	transition: transform 0.3s cubic-bezier(.2,.7,.3,1), box-shadow 0.3s ease;
}
.category-content .gallery-item:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-lg);
}
.category-content .gallery-icon {
	position: relative;
	display: block;
	width: 100%;
	line-height: 0;
	border: 0;
	padding: 0;
	margin: 0;
	background: none;
	font-family: inherit;
	cursor: zoom-in;
}
.category-content .gallery-icon img {
	width: 100%;
	height: 260px;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}
.category-content .gallery-item:hover .gallery-icon img { transform: scale(1.05); }
.category-content .gallery-caption { display: none; }

.gallery-zoom-icon {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.25s ease;
}
.gallery-zoom-icon::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(14, 54, 81, 0.35);
}
.gallery-zoom-icon svg {
	position: relative;
	width: 42px;
	height: 42px;
	fill: #fff;
	filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}
.category-content .gallery-item:hover .gallery-zoom-icon,
.gallery-icon:focus-visible .gallery-zoom-icon { opacity: 1; }

/* ---------------------------------- */
/* Lightbox                            */
/* ---------------------------------- */
.xeydar-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(14, 54, 81, 0.94);
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px 24px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}
.xeydar-lightbox.is-open { opacity: 1; visibility: visible; }
.xeydar-lightbox img {
	max-width: min(90vw, 1100px);
	max-height: 85vh;
	object-fit: contain;
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.5);
	animation: xeydar-fade-up 0.3s ease both;
}
.xeydar-lightbox-close,
.xeydar-lightbox-nav {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,0.12);
	border: 1px solid rgba(255,255,255,0.3);
	color: #fff;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.15s ease;
}
.xeydar-lightbox-close:hover,
.xeydar-lightbox-nav:hover { background: rgba(255,255,255,0.26); }
.xeydar-lightbox-close {
	top: 20px;
	right: 20px;
	width: 44px;
	height: 44px;
	font-size: 1.5rem;
	line-height: 1;
}
.xeydar-lightbox-close svg { width: 20px; height: 20px; fill: #fff; }
.xeydar-lightbox-nav {
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
}
.xeydar-lightbox-nav svg { width: 24px; height: 24px; fill: #fff; }
.xeydar-lightbox-prev { left: 20px; }
.xeydar-lightbox-next { right: 20px; }
.xeydar-lightbox-counter {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: #d7e2e8;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.03em;
}
@media (max-width: 600px) {
	.xeydar-lightbox-nav { width: 42px; height: 42px; }
	.xeydar-lightbox-prev { left: 8px; }
	.xeydar-lightbox-next { right: 8px; }
}
html[dir="rtl"] .xeydar-lightbox-close { right: auto; left: 20px; }
html[dir="rtl"] .xeydar-lightbox-prev { left: auto; right: 20px; }
html[dir="rtl"] .xeydar-lightbox-next { right: auto; left: 20px; }

/* ---------------------------------- */
/* Contact page                        */
/* ---------------------------------- */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 48px;
	align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-info-item {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	background: var(--paper);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 18px 20px;
}
.contact-info-item .icon {
	width: 40px; height: 40px; flex: none;
	border-radius: 50%; background: var(--paper-soft);
	display: flex; align-items: center; justify-content: center;
}
.contact-info-item .icon svg { width: 20px; height: 20px; fill: var(--navy); }
.contact-info-item h4 { margin-bottom: 0.15em; font-size: 0.95rem; }
.contact-info-item p { margin-bottom: 0; font-size: 0.92rem; }
.contact-info-item a { color: var(--navy); font-weight: 500; }

.contact-form {
	background: var(--paper);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 32px;
	box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-row label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--navy);
	margin-bottom: 6px;
}
.form-row input,
.form-row textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	font-family: inherit;
	font-size: 0.95rem;
	color: var(--ink);
	background: var(--paper-soft);
	transition: border-color 0.15s ease, background 0.15s ease;
}
.form-row input:focus,
.form-row textarea:focus {
	outline: none;
	border-color: var(--navy);
	background: #fff;
}
.form-row textarea { resize: vertical; min-height: 130px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-notice {
	padding: 14px 16px;
	border-radius: var(--radius-sm);
	margin-bottom: 20px;
	font-size: 0.92rem;
}
.form-notice.success { background: rgba(37,211,102,0.12); color: #146c37; border: 1px solid rgba(37,211,102,0.3); }
.form-notice.error { background: rgba(220,53,69,0.1); color: #a12836; border: 1px solid rgba(220,53,69,0.3); }
.map-embed {
	margin-top: 28px;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
}
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }

/* ---------------------------------- */
/* Footer                              */
/* ---------------------------------- */
.site-footer {
	background: var(--navy-dark);
	color: #cfe0e8;
	padding: 64px 0 24px;
	position: relative;
	overflow: hidden;
}
.site-footer::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--gold) 0%, var(--navy-light) 50%, var(--gold) 100%);
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
	margin-bottom: 40px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; } }
.footer-brand p { color: #a9c0cb; font-size: 0.92rem; max-width: 320px; }
@media (max-width: 700px) { .footer-brand p { margin: 0 auto; } }

/* Logo badge: the logo art already has a navy background nearly identical to
   the footer, so it needs a light frame + shadow or it visually disappears /
   looks like a giant unstyled square. */
.footer-logo-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	margin-bottom: 18px;
}
.footer-logo-badge .custom-logo-link { display: block; }
.footer-logo-badge img {
	max-height: 56px;
	width: auto;
	display: block;
	border-radius: 8px;
}
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #cfe0e8; font-size: 0.92rem; transition: color 0.15s ease; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.1);
	padding-top: 22px;
	text-align: center;
	font-size: 0.85rem;
	color: #8fa9b5;
}

/* ---------------------------------- */
/* Generic page (fallback)             */
/* ---------------------------------- */
.generic-content { max-width: 760px; margin: 0 auto; }
.generic-content img { border-radius: var(--radius); margin: 1.5em 0; }

/* ---------------------------------- */
/* Floating WhatsApp button (shared)   */
/* ---------------------------------- */
.xeydar-whatsapp-float {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 58px;
	height: 58px;
	background: var(--whatsapp);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	z-index: 9999;
	transition: transform 0.15s ease, background 0.15s ease;
	animation: xeydar-pulse 2.6s ease-out infinite;
}
.xeydar-whatsapp-float:hover { background: var(--whatsapp-dark); transform: scale(1.08); animation-play-state: paused; }
.xeydar-whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------------------------------- */
/* Motion / animation system           */
/* ---------------------------------- */
@keyframes xeydar-pulse {
	0%   { box-shadow: 0 4px 14px rgba(0,0,0,0.25), 0 0 0 0 rgba(37,211,102,0.55); }
	70%  { box-shadow: 0 4px 14px rgba(0,0,0,0.25), 0 0 0 16px rgba(37,211,102,0); }
	100% { box-shadow: 0 4px 14px rgba(0,0,0,0.25), 0 0 0 0 rgba(37,211,102,0); }
}

@keyframes xeydar-fade-up {
	from { opacity: 0; transform: translateY(28px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes xeydar-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* Scroll-reveal: elements start hidden and animate in once .is-visible is
   toggled by IntersectionObserver (assets/animate.js). */
.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-1.is-visible { transition-delay: 0.08s; }
.reveal-2.is-visible { transition-delay: 0.16s; }
.reveal-3.is-visible { transition-delay: 0.24s; }

/* Hero content animates in on load (no scroll needed, it's above the fold) */
.hero h1 { animation: xeydar-fade-up 0.8s ease both; }
.hero p.lead { animation: xeydar-fade-up 0.8s ease 0.12s both; }
.hero-actions { animation: xeydar-fade-up 0.8s ease 0.24s both; }

/* Nav underline sweep */
.primary-nav a { position: relative; }
.primary-nav a::after {
	content: "";
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 6px;
	height: 2px;
	background: var(--gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s ease;
}
.primary-nav a:hover::after { transform: scaleX(1); }
.primary-nav a:hover,
.primary-nav .current-menu-item > a { color: var(--navy); background: transparent; }
.primary-nav a:hover { background: rgba(18,66,95,0.06); }

/* Card hover lift already present; add icon nudge + smoother easing */
.category-card { transition: transform 0.3s cubic-bezier(.2,.7,.3,1), box-shadow 0.3s ease; }
.category-card .icon { transition: transform 0.3s ease; }
.category-card:hover .icon { transform: scale(1.1) rotate(-4deg); }

.btn { transition: transform 0.2s cubic-bezier(.2,.7,.3,1), background 0.15s ease, box-shadow 0.2s ease, color 0.15s ease; }
.btn:hover { box-shadow: 0 8px 20px rgba(18,66,95,0.18); }

@media (prefers-reduced-motion: reduce) {
	.reveal, .hero h1, .hero p.lead, .hero-actions { opacity: 1; transform: none; animation: none; transition: none; }
	.xeydar-whatsapp-float { animation: none; }
	html { scroll-behavior: auto; }
}

/* ---------------------------------- */
/* RTL (Arabic)                        */
/* ---------------------------------- */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .lang-switch { margin-left: 0; margin-right: 10px; }
html[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
html[dir="rtl"] .primary-nav a::after { left: 16px; right: 16px; transform-origin: right; }
html[dir="rtl"] .footer-brand p { margin-left: auto; margin-right: auto; }
html[dir="rtl"] .hp-field { left: auto; right: -9999px; }
html[dir="rtl"] .form-row label { text-align: right; }
html[dir="rtl"] .category-card,
html[dir="rtl"] .step-item,
html[dir="rtl"] .section-head,
html[dir="rtl"] .cta-band,
html[dir="rtl"] .hero,
html[dir="rtl"] .page-banner { text-align: center; }
html[dir="rtl"] .contact-info-item { text-align: right; }
html[dir="rtl"] .category-content { text-align: center; }
html[dir="rtl"] .site-branding,
html[dir="rtl"] .footer-brand { text-align: right; }
@media (min-width: 700px) {
	html[dir="rtl"] .footer-grid { text-align: right; }
}
