/* Topmall Landing Page - designed for RTL Arabic content */

.topmall-landing {
	--tm-navy: #0b1a33;
	--tm-navy-2: #143580;
	--tm-blue: #245ee6;
	--tm-gold: #d4af37;
	--tm-light: #f5f7fb;
	--tm-text: #1e2532;
	--tm-muted: #5b6472;
	margin: 0;
	padding: 0;
	direction: rtl;
	font-family: 'Cairo', Tahoma, Arial, sans-serif;
	color: var(--tm-text);
	background: #fff;
	line-height: 1.7;
	scroll-behavior: smooth;
}

.topmall-landing * { box-sizing: border-box; }
.topmall-landing img { max-width: 100%; display: block; }

.tm-container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Header */
.tm-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(11, 26, 51, 0.95);
	backdrop-filter: blur(6px);
	box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.tm-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 24px;
}
.tm-logo {
	color: #fff;
	font-weight: 800;
	font-size: 22px;
	letter-spacing: .5px;
}
.tm-nav {
	display: flex;
	gap: 24px;
	flex: 1;
	justify-content: center;
}
.tm-nav a {
	color: #d8def0;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	transition: color .2s;
}
.tm-nav a:hover { color: var(--tm-gold); }
.tm-header-actions { display: flex; gap: 10px; align-items: center; }

/* Buttons */
.tm-btn {
	display: inline-block;
	padding: 10px 22px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
	border: none;
	cursor: pointer;
	white-space: nowrap;
}
.tm-btn:hover { transform: translateY(-2px); }
.tm-btn-primary { background: linear-gradient(135deg, var(--tm-blue), var(--tm-navy-2)); color: #fff; box-shadow: 0 8px 20px rgba(36,94,230,.35); }
.tm-btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.tm-btn-whatsapp { background: #25D366; color: #fff; }
.tm-btn-outline { background: transparent; color: var(--tm-navy-2); border: 2px solid var(--tm-navy-2); margin-top: 14px; width: 100%; text-align: center; }
.tm-btn-outline:hover { background: var(--tm-navy-2); color: #fff; }
.tm-btn-lg { padding: 15px 34px; font-size: 16px; }

/* Hero */
.tm-hero {
	background: linear-gradient(135deg, var(--tm-navy) 0%, var(--tm-navy-2) 100%);
	background-size: cover;
	background-position: center;
	color: #fff;
	padding: 130px 0 110px;
	text-align: center;
}
.tm-hero-inner h1 {
	font-size: clamp(30px, 5vw, 52px);
	font-weight: 800;
	margin: 0 0 18px;
	text-shadow: 0 4px 20px rgba(0,0,0,.35);
}
.tm-hero-sub {
	font-size: clamp(16px, 2vw, 20px);
	color: #d8def0;
	max-width: 720px;
	margin: 0 auto 34px;
}

/* Sections */
.tm-section { padding: 90px 0; }
.tm-alt-bg { background: var(--tm-light); }
.tm-section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.tm-section-head h2 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 800; margin: 6px 0 0; color: var(--tm-navy); }
.tm-eyebrow {
	display: inline-block;
	color: var(--tm-blue);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 1px;
	background: rgba(36,94,230,.08);
	padding: 5px 16px;
	border-radius: 20px;
}
.tm-section-head-light .tm-eyebrow { background: rgba(255,255,255,.12); color: var(--tm-gold); }
.tm-section-head-light h2 { color: #fff; }

/* About */
.tm-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.tm-about-media img, .tm-media-placeholder { border-radius: 16px; }
.tm-media-placeholder {
	width: 100%;
	aspect-ratio: 4/3;
	background: linear-gradient(135deg, var(--tm-navy), var(--tm-blue));
	color: rgba(255,255,255,.85);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	font-weight: 800;
}
.tm-media-placeholder-sm { aspect-ratio: 16/10; font-size: 40px; border-radius: 12px 12px 0 0; }
.tm-about-content h2 { font-size: 30px; font-weight: 800; color: var(--tm-navy); margin: 8px 0 18px; }
.tm-about-content p { color: var(--tm-muted); font-size: 16px; }

/* Features */
.tm-features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tm-feature-card {
	background: #fff;
	border-radius: 14px;
	padding: 32px 22px;
	text-align: center;
	box-shadow: 0 8px 24px rgba(11,26,51,.06);
	transition: transform .2s ease, box-shadow .2s ease;
}
.tm-feature-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(11,26,51,.12); }
.tm-feature-icon { font-size: 38px; margin-bottom: 14px; }
.tm-feature-card h3 { font-size: 18px; font-weight: 700; color: var(--tm-navy); margin: 0 0 8px; }
.tm-feature-card p { font-size: 14px; color: var(--tm-muted); margin: 0; }

/* Units */
.tm-units-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tm-unit-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(11,26,51,.08);
	transition: transform .2s ease;
}
.tm-unit-card:hover { transform: translateY(-6px); }
.tm-unit-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.tm-unit-body { padding: 22px; }
.tm-unit-body h3 { font-size: 19px; font-weight: 700; color: var(--tm-navy); margin: 0 0 8px; }
.tm-unit-body p { font-size: 14px; color: var(--tm-muted); margin: 0 0 14px; }
.tm-unit-meta { display: flex; gap: 16px; font-size: 14px; font-weight: 700; color: var(--tm-navy-2); border-top: 1px dashed #e2e6ee; padding-top: 12px; }

/* Gallery */
.tm-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tm-gallery-item { border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; }
.tm-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.tm-gallery-item:hover img { transform: scale(1.08); }

/* Contact */
.tm-contact { background: linear-gradient(135deg, var(--tm-navy) 0%, #081226 100%); color: #fff; }
.tm-contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.tm-contact-info { display: flex; flex-direction: column; gap: 16px; }
.tm-contact-item { font-size: 16px; color: #d8def0; }
.tm-contact-item a { color: #fff; text-decoration: none; font-weight: 700; }
.tm-contact-map { border-radius: 16px; overflow: hidden; min-height: 300px; }
.tm-contact-map iframe { width: 100%; height: 300px; border: 0; border-radius: 16px; }
.tm-contact-map .tm-media-placeholder { min-height: 300px; aspect-ratio: auto; }

/* Footer */
.tm-footer { background: #060d1c; color: #8b93a7; text-align: center; padding: 24px 0; font-size: 14px; }

/* Floating WhatsApp */
.tm-float-whatsapp {
	position: fixed;
	bottom: 26px;
	left: 26px;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #25D366;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	box-shadow: 0 8px 24px rgba(37,211,102,.5);
	z-index: 200;
	text-decoration: none;
	animation: tm-pulse 2.2s infinite;
}
@keyframes tm-pulse {
	0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
	70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
	100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* Lead Modal */
.tm-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility .25s ease;
}
.tm-modal.tm-modal-open { opacity: 1; visibility: visible; }
.tm-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(6, 13, 28, .72);
	backdrop-filter: blur(2px);
}
.tm-modal-box {
	position: relative;
	background: #fff;
	border-radius: 18px;
	padding: 34px 30px;
	width: 92%;
	max-width: 440px;
	box-shadow: 0 24px 60px rgba(0,0,0,.35);
	transform: translateY(16px) scale(.97);
	transition: transform .25s ease;
	direction: rtl;
	text-align: right;
	max-height: 90vh;
	overflow-y: auto;
}
.tm-modal-open .tm-modal-box { transform: translateY(0) scale(1); }
.tm-modal-close {
	position: absolute;
	top: 14px;
	left: 16px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	color: var(--tm-muted);
	cursor: pointer;
	padding: 4px 8px;
}
.tm-modal-close:hover { color: var(--tm-navy); }
.tm-modal-box h3 { margin: 0 0 8px; font-size: 21px; font-weight: 800; color: var(--tm-navy); padding-left: 24px; }
.tm-modal-sub { margin: 0 0 22px; font-size: 14px; color: var(--tm-muted); }
.tm-modal-box form { display: flex; flex-direction: column; gap: 16px; }
.tm-modal-box label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: var(--tm-navy); }
.tm-modal-box input[type="text"] {
	font-family: inherit;
	padding: 12px 14px;
	border-radius: 10px;
	border: 1.5px solid #e2e6ee;
	font-size: 15px;
	font-weight: 400;
	color: var(--tm-text);
	background: var(--tm-light);
	transition: border-color .2s ease;
}
.tm-modal-box input[type="text"]:focus {
	outline: none;
	border-color: var(--tm-blue);
	background: #fff;
}
.tm-modal-submit { margin-top: 6px; border: none; font-family: inherit; }

/* Responsive */
@media (max-width: 960px) {
	.tm-nav { display: none; }
	.tm-about-grid { grid-template-columns: 1fr; gap: 30px; }
	.tm-features-grid { grid-template-columns: repeat(2, 1fr); }
	.tm-units-grid { grid-template-columns: repeat(2, 1fr); }
	.tm-gallery-grid { grid-template-columns: repeat(2, 1fr); }
	.tm-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.tm-features-grid, .tm-units-grid, .tm-gallery-grid { grid-template-columns: 1fr; }
	.tm-hero { padding: 100px 0 80px; }
	.tm-header-actions .tm-btn-ghost { display: none; }
}
