/*
Theme Name: مظلات الرياض
Theme URI: https://madhlet.com
Author: مظلات الرياض
Description: قالب ووردبريس احترافي لمؤسسة مظلات الرياض - بيوت شعر وخيام ملكية، مجالس وغرف زجاجية، مظلات سيارات ومشاريع، برجولات وجلسات خارجية في الرياض.
Version: 1.0.0
Text Domain: madhlet-riyadh
*/

:root {
	--navy-900: #0b192c;
	--navy-950: #07111e;
	--navy-800: #122640;
	--navy-700: #1b3658;
	--orange-500: #ff6400;
	--orange-600: #e55800;
	--orange-400: #ff8233;
	--orange-soft: rgba(255, 100, 0, 0.12);
	--bg-light: #f6f8fb;
	--surface: #ffffff;
	--text-dark: #0f172a;
	--text-muted: #475569;
	--text-light: #cbd5e1;
	--border-light: #e2e8f0;
	--radius-sm: 8px;
	--radius-md: 14px;
	--radius-lg: 20px;
	--shadow-sm: 0 4px 16px rgba(11, 25, 44, 0.06);
	--shadow-md: 0 12px 32px rgba(11, 25, 44, 0.12);
	--shadow-lg: 0 20px 50px rgba(11, 25, 44, 0.22);
	--transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	direction: rtl;
}

body {
	margin: 0;
	font-family: 'Cairo', Tahoma, Arial, sans-serif;
	background-color: var(--bg-light);
	color: var(--text-dark);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a {
	color: inherit;
	text-decoration: none;
	transition: var(--transition);
}

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

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 26px;
	border-radius: var(--radius-sm);
	font-family: inherit;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	border: 2px solid transparent;
	transition: var(--transition);
}

.btn-primary {
	background-color: var(--orange-500);
	color: #fff;
}

.btn-primary:hover {
	background-color: var(--orange-600);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(255, 100, 0, 0.35);
}

.btn-outline-light {
	border-color: rgba(255, 255, 255, 0.35);
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
}

.btn-outline-light:hover {
	border-color: var(--orange-500);
	background: var(--orange-500);
	color: #fff;
}

.btn-navy {
	background-color: var(--navy-900);
	color: #fff;
}

.btn-navy:hover {
	background-color: var(--navy-800);
	transform: translateY(-2px);
}

/* Topbar */
.topbar {
	background-color: var(--navy-950);
	color: var(--text-light);
	font-size: 0.875rem;
	padding: 8px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.topbar-items {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.topbar-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.topbar-item svg {
	color: var(--orange-500);
	flex-shrink: 0;
}

.topbar-phone {
	color: #fff;
	font-weight: 700;
	direction: ltr;
	unicode-bidi: embed;
}

.topbar-phone:hover {
	color: var(--orange-400);
}

/* Header & Navbar */
.site-header {
	background-color: var(--navy-900);
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 4px 20px rgba(7, 17, 30, 0.28);
}

.navbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 76px;
	gap: 20px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #fff;
}

.brand-mark {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: linear-gradient(145deg, var(--navy-950), var(--navy-800));
	border: 1.5px solid rgba(255, 100, 0, 0.55);
	display: grid;
	place-items: center;
	overflow: hidden;
	flex-shrink: 0;
	box-shadow: 0 6px 16px rgba(255, 100, 0, 0.22);
}

.brand-mark img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.brand-text strong {
	display: block;
	font-size: 1.25rem;
	line-height: 1.2;
	font-weight: 800;
}

.brand-text span {
	display: block;
	font-size: 0.78rem;
	color: var(--orange-400);
	font-weight: 600;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-links a {
	display: inline-block;
	padding: 8px 15px;
	border-radius: var(--radius-sm);
	color: #e2e8f0;
	font-weight: 700;
	font-size: 0.98rem;
}

.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links a.is-active {
	color: #fff;
	background-color: rgba(255, 100, 0, 0.16);
}

.nav-links .current-menu-item > a,
.nav-links a.is-active {
	color: var(--orange-400);
}

.header-cta {
	display: flex;
	align-items: center;
	gap: 10px;
}

.menu-toggle {
	display: none;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: #fff;
	border-radius: var(--radius-sm);
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

/* Mobile Drawer */
.mobile-nav {
	display: none;
	background-color: var(--navy-950);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 16px 20px 24px;
}

.mobile-nav.is-open {
	display: block;
}

.mobile-nav ul {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mobile-nav a {
	display: block;
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	color: #e2e8f0;
	font-weight: 700;
}

.mobile-nav a:hover,
.mobile-nav .current-menu-item > a {
	background-color: rgba(255, 100, 0, 0.16);
	color: var(--orange-400);
}

/* Hero Section */
.hero {
	position: relative;
	background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
	color: #fff;
	padding: 72px 0 80px;
	overflow: hidden;
}

.hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 15% 20%, rgba(255, 100, 0, 0.18), transparent 45%),
				radial-gradient(circle at 85% 80%, rgba(255, 100, 0, 0.1), transparent 40%);
	pointer-events: none;
}

.hero-grid {
	position: relative;
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 44px;
	align-items: center;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--orange-soft);
	border: 1px solid rgba(255, 100, 0, 0.35);
	color: var(--orange-400);
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 700;
	margin-bottom: 18px;
}

.hero h1 {
	margin: 0 0 18px;
	font-size: clamp(2rem, 4vw, 3.1rem);
	font-weight: 900;
	line-height: 1.25;
}

.hero h1 span {
	color: var(--orange-500);
}

.hero p {
	margin: 0 0 28px;
	color: var(--text-light);
	font-size: 1.1rem;
	max-width: 600px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 34px;
}

.hero-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item strong {
	display: block;
	font-size: 1.65rem;
	font-weight: 900;
	color: var(--orange-500);
	line-height: 1.2;
}

.stat-item span {
	font-size: 0.9rem;
	color: var(--text-light);
}

.hero-visual {
	position: relative;
}

.hero-card {
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 3px solid rgba(255, 100, 0, 0.35);
	box-shadow: var(--shadow-lg);
	aspect-ratio: 4 / 3;
	background: var(--navy-800);
}

.hero-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-float {
	position: absolute;
	bottom: -18px;
	right: 20px;
	background: var(--surface);
	color: var(--navy-900);
	padding: 14px 20px;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-md);
	display: flex;
	align-items: center;
	gap: 12px;
	border-right: 4px solid var(--orange-500);
}

.hero-float strong {
	display: block;
	font-size: 1rem;
	font-weight: 800;
}

.hero-float span {
	font-size: 0.85rem;
	color: var(--text-muted);
}

/* Section Generic */
.section {
	padding: 72px 0;
}

.section-dark {
	background-color: var(--navy-900);
	color: #fff;
}

.section-white {
	background-color: var(--surface);
}

.section-head {
	text-align: center;
	max-width: 680px;
	margin: 0 auto 44px;
}

.section-eyebrow {
	display: inline-block;
	color: var(--orange-500);
	font-weight: 800;
	font-size: 0.92rem;
	margin-bottom: 8px;
}

.section-head h2 {
	margin: 0 0 12px;
	font-size: clamp(1.65rem, 3vw, 2.35rem);
	font-weight: 900;
	color: var(--navy-900);
}

.section-dark .section-head h2 {
	color: #fff;
}

.section-head p {
	margin: 0;
	color: var(--text-muted);
	font-size: 1.05rem;
}

.section-dark .section-head p {
	color: var(--text-light);
}

/* Services Grid */
.services-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.service-card {
	background: var(--surface);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--border-light);
	display: flex;
	flex-direction: column;
	transition: var(--transition);
}

.service-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-md);
	border-color: rgba(255, 100, 0, 0.35);
}

.service-thumb {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--navy-900);
}

.service-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.service-card:hover .service-thumb img {
	transform: scale(1.06);
}

.service-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background: var(--orange-500);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
}

.service-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.service-body h3 {
	margin: 0 0 10px;
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--navy-900);
}

.service-body p {
	margin: 0 0 18px;
	color: var(--text-muted);
	font-size: 0.94rem;
	flex: 1;
}

.service-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--orange-500);
	font-weight: 800;
	font-size: 0.95rem;
}

.service-link:hover {
	color: var(--navy-900);
}

/* Features Grid */
.features-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

.feature-box {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius-md);
	padding: 26px 22px;
	transition: var(--transition);
}

.feature-box:hover {
	background: rgba(255, 255, 255, 0.09);
	border-color: var(--orange-500);
	transform: translateY(-4px);
}

.feature-icon {
	width: 50px;
	height: 50px;
	border-radius: 12px;
	background: var(--orange-soft);
	color: var(--orange-500);
	display: grid;
	place-items: center;
	margin-bottom: 16px;
}

.feature-box h3 {
	margin: 0 0 8px;
	font-size: 1.15rem;
	font-weight: 800;
	color: #fff;
}

.feature-box p {
	margin: 0;
	color: var(--text-light);
	font-size: 0.93rem;
}

/* Work Gallery Grid: 4 columns desktop, 2 columns tablet & phone */
.gallery-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 30px;
}

.filter-btn {
	background: var(--surface);
	color: var(--navy-900);
	border: 1px solid var(--border-light);
	padding: 9px 18px;
	border-radius: 999px;
	font-family: inherit;
	font-weight: 700;
	font-size: 0.92rem;
	cursor: pointer;
	transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.is-active {
	background: var(--orange-500);
	color: #fff;
	border-color: var(--orange-500);
}

.work-gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.gallery-item {
	position: relative;
	border-radius: var(--radius-md);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--navy-900);
	cursor: pointer;
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--border-light);
}

.gallery-item.is-hidden {
	display: none;
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.gallery-item:hover img {
	transform: scale(1.07);
}

.gallery-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(11, 25, 44, 0.85) 0%, transparent 55%);
	opacity: 0;
	transition: var(--transition);
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	padding: 14px;
	color: #fff;
}

.gallery-item:hover .gallery-overlay {
	opacity: 1;
}

.gallery-tag {
	background: var(--orange-500);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
}

.gallery-zoom {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	display: grid;
	place-items: center;
}

/* Videos Grid */
.videos-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.video-card {
	background: var(--surface);
	border-radius: var(--radius-md);
	overflow: hidden;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
}

.video-frame {
	background: var(--navy-950);
	aspect-ratio: 9 / 14;
	max-height: 460px;
	width: 100%;
	overflow: hidden;
}

.video-frame video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.video-caption {
	padding: 16px 18px;
}

.video-caption h3 {
	margin: 10px 0 0;
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--navy-900);
}

/* Page Hero */
.page-hero {
	background: linear-gradient(135deg, var(--navy-950), var(--navy-900));
	color: #fff;
	padding: 56px 0;
	text-align: center;
	position: relative;
}

.page-hero h1 {
	margin: 0 0 10px;
	font-size: clamp(1.85rem, 3.5vw, 2.75rem);
	font-weight: 900;
}

.page-hero p {
	margin: 0 auto;
	max-width: 640px;
	color: var(--text-light);
	font-size: 1.05rem;
}

.breadcrumb {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	font-size: 0.9rem;
	color: var(--orange-400);
	font-weight: 700;
}

/* Service Detail Page */
.service-detail-grid {
	display: grid;
	grid-template-columns: 1.25fr 0.75fr;
	gap: 32px;
	align-items: start;
}

.service-content-card,
.service-sidebar-card {
	background: var(--surface);
	border-radius: var(--radius-md);
	padding: 28px;
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--border-light);
}

.service-cover {
	border-radius: var(--radius-md);
	overflow: hidden;
	aspect-ratio: 16 / 9;
	margin-bottom: 24px;
}

.service-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.features-list {
	list-style: none;
	padding: 0;
	margin: 18px 0 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.features-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	background: var(--bg-light);
	padding: 12px 14px;
	border-radius: var(--radius-sm);
	font-weight: 600;
	font-size: 0.95rem;
}

.features-list svg {
	color: var(--orange-500);
	flex-shrink: 0;
	margin-top: 3px;
}

.specs-table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0 22px;
}

.specs-table th,
.specs-table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--border-light);
	text-align: right;
	font-size: 0.93rem;
}

.specs-table th {
	color: var(--navy-900);
	font-weight: 800;
	width: 40%;
}

/* About & Contact */
.two-col-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 36px;
	align-items: center;
}

.contact-card {
	background: var(--surface);
	border-radius: var(--radius-md);
	padding: 30px;
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--border-light);
}

.form-group {
	margin-bottom: 16px;
}

.form-group label {
	display: block;
	font-weight: 700;
	margin-bottom: 6px;
	color: var(--navy-900);
}

.form-control {
	width: 100%;
	padding: 12px 14px;
	border-radius: var(--radius-sm);
	border: 1px solid #cbd5e1;
	font-family: inherit;
	font-size: 1rem;
	transition: var(--transition);
}

.form-control:focus {
	outline: none;
	border-color: var(--orange-500);
	box-shadow: 0 0 0 3px rgba(255, 100, 0, 0.15);
}

.alert {
	padding: 14px 18px;
	border-radius: var(--radius-sm);
	margin-bottom: 18px;
	font-weight: 700;
}

.alert-success {
	background: #dcfce7;
	color: #166534;
}

.alert-error {
	background: #fee2e2;
	color: #991b1b;
}

/* CTA Banner */
.cta-banner {
	background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
	color: #fff;
	border-radius: var(--radius-lg);
	padding: 44px 36px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	border-right: 6px solid var(--orange-500);
	box-shadow: var(--shadow-md);
}

.cta-banner h2 {
	margin: 0 0 8px;
	font-size: 1.75rem;
	font-weight: 900;
}

.cta-banner p {
	margin: 0;
	color: var(--text-light);
}

/* Footer */
.site-footer {
	background-color: var(--navy-950);
	color: var(--text-light);
	padding: 60px 0 24px;
	border-top: 4px solid var(--orange-500);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
	gap: 32px;
	margin-bottom: 40px;
}

.footer-title {
	color: #fff;
	font-size: 1.12rem;
	font-weight: 800;
	margin: 0 0 16px;
	position: relative;
	padding-bottom: 8px;
}

.footer-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	right: 0;
	width: 36px;
	height: 3px;
	background: var(--orange-500);
	border-radius: 2px;
}

.footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.footer-links a:hover {
	color: var(--orange-400);
	padding-right: 4px;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding-top: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 0.9rem;
}

/* Floating Actions */
.floating-actions {
	position: fixed;
	bottom: 20px;
	left: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	z-index: 990;
}

.float-btn {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	transition: var(--transition);
}

.float-btn:hover {
	transform: scale(1.08);
}

.float-whatsapp {
	background-color: #25d366;
}

.float-call {
	background-color: var(--orange-500);
}

/* Lightbox Modal */
.mr-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(7, 17, 30, 0.94);
	z-index: 2000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.mr-lightbox.is-open {
	display: flex;
}

.mr-lightbox-inner {
	position: relative;
	max-width: 960px;
	width: 100%;
	text-align: center;
}

.mr-lightbox-img {
	max-height: 80vh;
	margin: 0 auto;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg);
}

.mr-lightbox-caption {
	color: #fff;
	margin-top: 12px;
	font-weight: 700;
}

.mr-lb-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 1.4rem;
	cursor: pointer;
	display: grid;
	place-items: center;
}

.mr-lb-btn:hover {
	background: var(--orange-500);
}

.mr-lb-close {
	top: -48px;
	left: 0;
	transform: none;
}

.mr-lb-prev {
	right: -12px;
}

.mr-lb-next {
	left: -12px;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
	.hero-grid,
	.service-detail-grid,
	.two-col-grid {
		grid-template-columns: 1fr;
	}

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

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

	/* Tablet: 2 columns for work gallery */
	.work-gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.nav-links,
	.header-cta {
		display: none;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.services-grid,
	.features-grid,
	.features-list,
	.footer-grid,
	.videos-grid {
		grid-template-columns: 1fr;
	}

	/* Phone: 2 columns for work gallery */
	.work-gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.hero {
		padding: 48px 0 56px;
	}

	.hero-stats {
		grid-template-columns: repeat(3, 1fr);
		gap: 10px;
	}

	.hero-float {
		position: static;
		margin-top: 14px;
	}
}
