/* ===== منائر الهدى - Main Styles ===== */
/* ===== أساسيات الصور والخطوط (آمن ومتجاوب) ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* تحسين تحميل الخطوط */
@font-face {
    font-family: 'Tajawal';
    font-display: swap;
    src: local('Tajawal');
}

:root {
--gold: #C6A664;
--gold-light: #D4B878;
--gold-pale: #F8F4E6;
--gold-shimmer: #E5C885;
--navy: #003366;
--navy-mid: #004080;
--navy-light: #0055AA;
--cream: #FAFAFA;
--cream-dark: #F0F0F0;
--white: #FFFFFF;
--text-dark: #001A33;
--text-mid: #4A5568;
--text-light: #718096;
--border: #E2E8F0;
--shadow-sm: 0 2px 8px rgba(0, 51, 102, 0.06);
--shadow-md: 0 8px 32px rgba(0, 51, 102, 0.1);
--shadow-lg: 0 20px 60px rgba(0, 51, 102, 0.15);
--radius: 12px;
--radius-lg: 20px;
--transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
font-family: 'Tajawal', sans-serif;
background: var(--cream);
color: var(--text-dark);
direction: rtl;
line-height: 1.7;
overflow-x: hidden;
}
/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream-dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5 { font-family: 'Tajawal', sans-serif; font-weight: 800; line-height: 1.3; }
.font-amiri { font-family: 'Amiri', serif; }
.section-label {
display: inline-flex; align-items: center; gap: 8px;
font-size: 0.8rem; font-weight: 700; letter-spacing: 2px;
color: var(--navy);
background: var(--gold-pale); padding: 6px 16px; border-radius: 50px;
margin-bottom: 16px;
border: 1px solid rgba(198, 166, 100, 0.3);
}
.section-label::before, .section-label::after { content: '✦'; font-size: 0.6rem; color: var(--gold); }
.section-title {
font-size: clamp(1.8rem, 4vw, 2.8rem);
color: var(--navy);
margin-bottom: 16px;
}
.section-subtitle {
font-size: 1.05rem;
color: var(--text-mid);
max-width: 600px;
margin: 0 auto 48px;
}
/* ===== NAVBAR ===== */
.navbar {
position: fixed; top: 0; right: 0; left: 0; z-index: 1000;
background: transparent;
backdrop-filter: blur(0px);
border-bottom: 1px solid transparent;
transition: var(--transition);
padding: 0 24px;
}
.navbar.scrolled {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(20px);
border-bottom: 1px solid var(--border);
box-shadow: var(--shadow-md);
}
.nav-container {
max-width: 1280px; margin: 0 auto;
display: flex; align-items: center; justify-content: space-between;
height: 76px;
}
.nav-logo {
display: flex; align-items: center; gap: 12px;
text-decoration: none;
}
.nav-logo-icon {
width: 52px; height: 52px;
background: rgba(255,255,255,0.15);
border-radius: 12px;
display: flex; align-items: center; justify-content: center;
font-size: 1.5rem;
box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
transition: var(--transition);
}
.navbar.scrolled .nav-logo-icon {
background: var(--navy);
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-text strong { font-size: 1.1rem; color: white; font-weight: 800; transition: var(--transition); }
.navbar.scrolled .nav-logo-text strong { color: var(--navy); }
.nav-logo-text span { font-size: 0.65rem; color: var(--gold-shimmer); letter-spacing: 1.5px; font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
display: block; padding: 8px 16px;
color: rgba(255,255,255,0.85); text-decoration: none;
font-weight: 500; font-size: 0.95rem;
border-radius: 8px; transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
color: var(--gold-shimmer); background: rgba(255,255,255,0.1);
}
.navbar.scrolled .nav-links a { color: var(--text-mid); }
.navbar.scrolled .nav-links a:hover, .navbar.scrolled .nav-links a.active {
color: var(--navy); background: var(--gold-pale);
}

.nav-cta {
background: var(--gold) !important;
color: var(--navy) !important; padding: 10px 22px !important;
box-shadow: 0 4px 16px rgba(198, 166, 100, 0.25);
font-weight: 700 !important;
}
.navbar.scrolled .nav-cta {
background: var(--navy) !important;
color: white !important;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 51, 102, 0.35) !important; background: var(--navy-mid) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: white; border-radius: 2px; transition: var(--transition); }
.navbar.scrolled .hamburger span { background: var(--navy); }

.mobile-menu {
display: none; position: fixed;
top: 76px; right: 0; left: 0; bottom: 0;
background: white; z-index: 999; padding: 32px 24px;
flex-direction: column; gap: 8px;
overflow-y: auto;
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { display: block; padding: 14px 20px; color: var(--navy); text-decoration: none; font-size: 1.1rem; font-weight: 600; border-radius: var(--radius); border-bottom: 1px solid var(--border); }

/* ===== HERO ===== */
.hero {
min-height: 100vh;
background: linear-gradient(160deg, #002244 0%, #003366 50%, #004080 100%);
position: relative; overflow: hidden;
display: flex; align-items: center;
padding-top: 76px;
}
.hero-pattern {
position: absolute; inset: 0;
background-image:
radial-gradient(ellipse 80% 80% at 20% 120%, rgba(198, 166, 100, 0.15) 0%, transparent 60%),
radial-gradient(ellipse 60% 60% at 80% -20%, rgba(255,255,255,0.05) 0%, transparent 50%);
}
.hero-geo {
position: absolute; inset: 0; opacity: 0.04;
background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-width='0.5'%3E%3Cpolygon points='30,5 55,20 55,40 30,55 5,40 5,20'/%3E%3Cpolygon points='30,15 45,22 45,38 30,45 15,38 15,22'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
position: relative; z-index: 2;
max-width: 1280px; margin: 0 auto;
padding: 80px 24px;
display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.hero-text { color: white; }
.hero-badge {
display: inline-flex; align-items: center; gap: 8px;
background: rgba(198, 166, 100, 0.2); border: 1px solid rgba(198, 166, 100, 0.4);
border-radius: 50px; padding: 8px 20px;
font-size: 0.8rem; font-weight: 600; letter-spacing: 2px; color: var(--gold-shimmer);
margin-bottom: 24px;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;

    text-align: right;
    direction: rtl;
}
.hero-title span { color: var(--gold-shimmer); }
.hero-subtitle {
font-size: 1.1rem; color: rgba(255,255,255,0.85);
margin-bottom: 40px; max-width: 480px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
background: linear-gradient(135deg, var(--gold), var(--gold-light));
color: #002244;
border: none; padding: 14px 32px;
border-radius: 50px; font-family: 'Tajawal', sans-serif;
font-size: 1rem; font-weight: 800; cursor: pointer;
text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
box-shadow: 0 8px 24px rgba(198, 166, 100, 0.3);
transition: var(--transition);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(198, 166, 100, 0.4); background: var(--gold-shimmer); }
.btn-outline {
background: transparent; color: white;
border: 2px solid rgba(255,255,255,0.3);
padding: 12px 28px; border-radius: 50px;
font-family: 'Tajawal', sans-serif; font-size: 1rem; font-weight: 600;
cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
transition: var(--transition);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: rgba(198, 166, 100, 0.1); }
.hero-stats {
display: flex; gap: 32px; margin-top: 48px; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num {
display: block; font-size: 2.2rem; font-weight: 900;
color: var(--gold-shimmer); line-height: 1;
}
.hero-stat .lbl { font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-top: 4px; }
.hero-visual {
position: relative; display: flex; justify-content: center; align-items: center;
}
.hero-img-wrap {
position: relative; width: 100%;
border-radius: var(--radius-lg); overflow: hidden;
box-shadow: 0 40px 80px rgba(0,0,0,0.4);
border: 4px solid rgba(198, 166, 100, 0.3);
}
.hero-img-wrap img { width: 100%; height: 480px; object-fit: cover; display: block; }
.hero-img-placeholder {
width: 100%; height: 480px;
background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
display: flex; flex-direction: column; align-items: center; justify-content: center;
gap: 16px;
}
.hero-img-placeholder .icon { font-size: 5rem; opacity: 0.6; }
.hero-img-placeholder p { color: rgba(255,255,255,0.5); font-size: 0.9rem; }
.hero-card-overlay {
position: absolute; bottom: -20px; right: -20px;
background: white; border-radius: var(--radius);
padding: 16px 20px; box-shadow: var(--shadow-lg);
display: flex; align-items: center; gap: 12px;
border-right: 4px solid var(--gold);
}
.hero-card-overlay .ico { font-size: 2rem; }
.hero-card-overlay strong { display: block; font-size: 0.85rem; color: var(--navy); }
.hero-card-overlay span { font-size: 0.75rem; color: var(--text-light); }

/* ===== SECTIONS ===== */
.section { padding: 96px 24px; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.bg-navy {
background: var(--navy);
color: white;
}
.bg-navy .section-title { color: white; }
.bg-navy .section-subtitle { color: rgba(255,255,255,0.7); }

/* ===== SERVICES ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
background: white; border-radius: var(--radius-lg);
padding: 36px 28px; border: 1px solid var(--border);
transition: var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
content: ''; position: absolute; top: 0; right: 0;
width: 4px; height: 0; background: var(--gold);
border-radius: 0 0 4px 0; transition: height 0.4s ease;
}
.service-card:hover::before { height: 100%; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.service-icon {
width: 64px; height: 64px; border-radius: var(--radius);
background: var(--gold-pale);
display: flex; align-items: center; justify-content: center;
font-size: 2rem; margin-bottom: 20px;
box-shadow: 0 4px 12px rgba(198, 166, 100, 0.15);
}
.service-card h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.7; }

/* ===== PORTFOLIO ===== */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.portfolio-item {
border-radius: var(--radius-lg); overflow: hidden;
position: relative; aspect-ratio: 4/3;
cursor: pointer;
box-shadow: var(--shadow-sm);
transition: var(--transition);
}
.portfolio-item:first-child { grid-column: span 2; aspect-ratio: 16/9; }
.portfolio-item:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-placeholder {
width: 100%; height: 100%;
background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.portfolio-placeholder .ico { font-size: 3rem; opacity: 0.5; }
.portfolio-overlay {
position: absolute; inset: 0;
background: linear-gradient(to top, rgba(0, 34, 68, 0.9) 0%, transparent 50%);
display: flex; flex-direction: column; justify-content: flex-end;
padding: 24px; opacity: 0; transition: var(--transition);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h3 { color: white; font-size: 1.1rem; margin-bottom: 4px; }
.portfolio-overlay p { color: var(--gold-shimmer); font-size: 0.85rem; }
.portfolio-type-badge {
position: absolute; top: 12px; right: 12px;
background: var(--navy); color: var(--gold-shimmer);
padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 700;
backdrop-filter: blur(8px);
}

/* ===== ARTICLES ===== */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.article-card {
background: white; border-radius: var(--radius-lg); overflow: hidden;
border: 1px solid var(--border); transition: var(--transition);
display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.article-img { height: 200px; overflow: hidden; background: var(--cream-dark); }
.article-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.article-card:hover .article-img img { transform: scale(1.06); }
.article-img-placeholder {
height: 100%; display: flex; align-items: center; justify-content: center;
background: var(--gold-pale);
font-size: 3rem;
}
.article-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.article-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.article-tag {
background: var(--gold-pale); color: var(--navy); font-size: 0.75rem;
font-weight: 700; padding: 3px 10px; border-radius: 50px;
}
.article-date { font-size: 0.8rem; color: var(--text-light); }
.article-card h3 {
font-size: 1rem; color: var(--navy);
margin-bottom: 10px; line-height: 1.5;
}
.article-card p { font-size: 0.875rem; color: var(--text-mid); flex: 1; }
.article-link {
display: inline-flex; align-items: center; gap: 6px;
color: var(--gold); font-weight: 700; font-size: 0.875rem;
text-decoration: none; margin-top: 16px;
transition: var(--transition);
}
.article-link:hover { color: var(--navy); gap: 10px; }

/* ===== WHY US ===== */
.whyus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.whyus-visual {
position: relative; border-radius: var(--radius-lg); overflow: hidden;
}
.whyus-img { width: 100%; height: 480px; object-fit: cover; border-radius: var(--radius-lg); }
.whyus-img-placeholder {
width: 100%; height: 480px;
background: var(--navy);
border-radius: var(--radius-lg);
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.whyus-img-placeholder .ico { font-size: 5rem; opacity: 0.4; }
.whyus-badge {
position: absolute; top: 24px; left: 24px;
background: white; border-radius: var(--radius);
padding: 16px 20px; box-shadow: var(--shadow-lg);
text-align: center;
}
.whyus-badge strong { display: block; font-size: 1.8rem; color: var(--navy); line-height: 1; }
.whyus-badge span { font-size: 0.8rem; color: var(--text-mid); }
.features-list { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.feature-item {
display: flex; gap: 16px; align-items: flex-start;
background: white; border-radius: var(--radius);
padding: 20px; border: 1px solid var(--border);
transition: var(--transition);
}
.feature-item:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.feature-icon {
width: 48px; height: 48px; flex-shrink: 0;
background: var(--gold-pale);
border-radius: 10px; display: flex; align-items: center; justify-content: center;
font-size: 1.4rem;
}
.feature-text h4 { font-size: 0.95rem; color: var(--navy); margin-bottom: 4px; }
.feature-text p { font-size: 0.85rem; color: var(--text-mid); }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
display: flex; gap: 16px; align-items: center;
background: rgba(255,255,255,0.08); border-radius: var(--radius);
padding: 20px; border: 1px solid rgba(255,255,255,0.12);
}
.contact-ico {
width: 48px; height: 48px; flex-shrink: 0;
background: var(--gold);
color: var(--navy);
border-radius: 10px; display: flex; align-items: center; justify-content: center;
font-size: 1.3rem; font-weight: bold;
}
.contact-item h4 { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-bottom: 4px; }
.contact-item p { color: white; font-weight: 600; }
.social-links { display: flex; gap: 12px; margin-top: 8px; }
.social-link {
width: 44px; height: 44px;
background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
border-radius: 10px; display: flex; align-items: center; justify-content: center;
font-size: 1.2rem; text-decoration: none; transition: var(--transition);
}
.social-link:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.contact-form {
background: white; border-radius: var(--radius-lg);
padding: 40px; box-shadow: var(--shadow-lg);
border-top: 4px solid var(--navy);
}
.contact-form h3 { font-size: 1.4rem; color: var(--navy); margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.form-control {
width: 100%; padding: 12px 16px;
border: 2px solid var(--border); border-radius: var(--radius);
font-family: 'Tajawal', sans-serif; font-size: 0.95rem;
color: var(--text-dark); background: var(--cream);
transition: var(--transition); outline: none; direction: rtl;
}
.form-control:focus { border-color: var(--navy); background: white; box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.1); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== FOOTER ===== */
footer {
background: #001A33;
color: rgba(255,255,255,0.7);
padding: 64px 24px 24px;
}
.footer-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 0.875rem; margin-top: 12px; line-height: 1.8; color: rgba(255,255,255,0.6); }
.footer-col h4 { color: white; font-size: 0.95rem; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); display: inline-block; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.875rem; transition: var(--transition); }
.footer-col ul a:hover { color: var(--gold); padding-right: 4px; }
.footer-bottom { max-width: 1280px; margin: 0 auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: gap; gap: 12px; }
.footer-bottom p { font-size: 0.8rem; }

/* ===== LIGHTBOX ===== */
.lightbox {
display: none; position: fixed; inset: 0; z-index: 2000;
background: rgba(0, 26, 51, 0.95); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-inner img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); object-fit: contain; }
.lightbox-close {
position: absolute; top: -40px; left: 0;
color: white; background: none; border: none;
font-size: 2rem; cursor: pointer;
}

/* ===== TOAST ===== */
.toast {
position: fixed; bottom: 24px; left: 24px; z-index: 3000;
background: var(--navy); color: white; padding: 14px 24px;
border-radius: var(--radius); box-shadow: var(--shadow-lg);
font-size: 0.9rem; font-weight: 500;
transform: translateY(100px); opacity: 0;
transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
border-right: 4px solid var(--gold);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: #22c55e; }
.toast.error { border-color: #ef4444; }

/* ===== LOADING ===== */
.page-loader {
position: fixed; inset: 0; z-index: 9999;
background: #F8F4E6;
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
transition: opacity 0.5s ease;
}
.loader-logo { font-size: 4rem; animation: pulse 1.5s ease-in-out infinite; }
.loader-bar {
width: 300px; height: 50px; background: rgba(255,255,255,0.1);
border-radius: 30px; overflow: hidden;
}
.loader-bar-inner {
height: 100%; background: var(--gold);
animation: load 1.5s ease-in-out infinite;
}
@keyframes load { 0% { width: 0; } 70% { width: 100%; } 100% { width: 100%; } }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.8; } }
.page-loader.hidden { opacity: 0; pointer-events: none; }

/* ===== SCROLL TO TOP ===== */
.scroll-top {
position: fixed; bottom: 24px; right: 24px; z-index: 500;
width: 48px; height: 48px;
background: var(--gold);
color: var(--navy); border: none; border-radius: 12px;
cursor: pointer; font-size: 1.2rem; font-weight: bold;
display: flex; align-items: center; justify-content: center;
box-shadow: 0 8px 24px rgba(0, 51, 102, 0.3);
opacity: 0; transform: translateY(16px);
transition: var(--transition);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-4px); background: var(--gold-light); }

/* ===== ABOUT PAGE ===== */
.about-hero { 
background: var(--navy); 
color: white; padding: 140px 24px 80px; text-align: center; 
}
.about-hero h1 { font-size: clamp(2rem,5vw,3.5rem); margin-bottom: 16px; }
.about-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card { text-align: center; padding: 32px 20px; background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); transition: var(--transition); }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.value-card .ico { font-size: 2.5rem; margin-bottom: 16px; display: block; }
.value-card h3 { font-size: 1rem; color: var(--navy); margin-bottom: 8px; }
.value-card p { font-size: 0.85rem; color: var(--text-mid); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ===== MEDIA / GALLERY PAGE ===== */
.gallery-filter { display: flex; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; justify-content: center; }
.filter-btn {
padding: 10px 24px; border-radius: 50px;
border: 2px solid var(--border); background: white;
font-family: 'Tajawal', sans-serif; font-size: 0.9rem; font-weight: 600;
color: var(--text-mid); cursor: pointer; transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
border-color: var(--navy); color: var(--navy); background: var(--gold-pale);
}
.gallery-grid { columns: 3; gap: 16px; }
.gallery-item {
break-inside: avoid; margin-bottom: 16px;
border-radius: var(--radius); overflow: hidden;
cursor: pointer; position: relative;
box-shadow: var(--shadow-sm); transition: var(--transition);
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.gallery-item img { width: 100%; display: block; }

/* ===== ANIMATIONS ===== */
.animate-on-scroll {
opacity: 0; transform: translateY(32px);
transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
.hero-content { grid-template-columns: 1fr; gap: 48px; }
.hero-visual { display: none; }
.services-grid { grid-template-columns: repeat(2, 1fr); }
.portfolio-grid { grid-template-columns: repeat(2, 1fr); }
.portfolio-item:first-child { grid-column: span 2; }
.articles-grid { grid-template-columns: repeat(2, 1fr); }
.whyus-grid { grid-template-columns: 1fr; }
.contact-grid { grid-template-columns: 1fr; }
.footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
.values-grid { grid-template-columns: repeat(2, 1fr); }
.team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
.nav-links { display: none; }
.hamburger { display: flex; }
.section { padding: 64px 20px; }
.hero-content { padding: 60px 20px; }
.hero-stats { gap: 20px; }
.hero-buttons { flex-direction: column; }
.services-grid { grid-template-columns: 1fr; }
.portfolio-grid { grid-template-columns: 1fr; }
.portfolio-item:first-child { grid-column: span 1; aspect-ratio: 4/3; }
.articles-grid { grid-template-columns: 1fr; }
.gallery-grid { columns: 2; }
.form-row { grid-template-columns: 1fr; }
.footer-grid { grid-template-columns: 1fr; }
.footer-bottom { flex-direction: column; text-align: center; }
.values-grid { grid-template-columns: 1fr 1fr; }
.team-grid { grid-template-columns: 1fr 1fr; }
.contact-form { padding: 24px; }
}
@media (max-width: 480px) {
html { font-size: 15px; }
.gallery-grid { columns: 1; }
.values-grid { grid-template-columns: 1fr; }
.hero-stat .num { font-size: 1.8rem; }
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
position: fixed;
bottom: 84px;
left: 24px;
z-index: 600;
width: 58px; height: 58px;
background: #25D366;
border-radius: 50%;
display: flex; align-items: center; justify-content: center;
box-shadow: 0 6px 24px rgba(37,211, 102,0.5);
text-decoration: none;
transition: transform 0.3s cubic-bezier(0.4,0,0.2,1),
box-shadow 0.3s ease,
background 0.3s ease;
opacity: 1;
pointer-events: auto;
}
.whatsapp-float:hover {
background: #1aad52;
transform: scale(1.1) translateY(-3px);
box-shadow: 0 10px 32px rgba(37,211,102,0.6);
}
.whatsapp-float:active { transform: scale(0.96); }
.whatsapp-float svg {
width: 30px; height: 30px; fill: white;
flex-shrink: 0;
}
.whatsapp-float::before {
content: '';
position: absolute;
inset: -5px;
border-radius: 50%;
border: 2px solid #25D366;
opacity: 0;
animation: waPulse 2.5s ease-out infinite;
}
@keyframes waPulse {
0%   { transform: scale(1);   opacity: 0.7; }
100% { transform: scale(1.6); opacity: 0;   }
}
.whatsapp-float-tooltip {
position: absolute;
left: calc(100% + 12px);
top: 50%;
transform: translateY(-50%);
background: var(--navy);
color: white;
font-family: 'Tajawal', sans-serif;
font-size: 0.82rem;
font-weight: 600;
white-space: nowrap;
padding: 7px 14px;
border-radius: 8px;
opacity: 0;
pointer-events: none;
transition: opacity 0.25s ease, transform 0.25s ease;
transform: translateY(-50%) translateX(-6px);
box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.whatsapp-float-tooltip::before {
content: '';
position: absolute;
top: 50%; right: 100%;
transform: translateY(-50%);
border: 6px solid transparent; 
border-right-color: var(--navy);
}
.whatsapp-float:hover .whatsapp-float-tooltip {
opacity: 1;
transform: translateY(-50%) translateX(0);
}
@media (max-height: 480px) { .whatsapp-float { display: none; } }
@media (max-width: 400px)  { .whatsapp-float { width: 50px; height: 50px; left: 16px; bottom: 80px; } }
/* ===== Hero Slider ===== */
/* ✅ تنسيقات Hero Section لضبط السلايدر بجانب النص */
.hero {
    min-height: 650px; /* ارتفاع أدنى للقسم */
    height: 85vh;      /* يأخذ 85% من ارتفاع الشاشة */
    position: relative;
    overflow: hidden;  /* يمنع الخروج عن الإطار */
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    gap: 40px;
}

.hero-text {
    flex: 1;
    z-index: 2;
    max-width: 550px;
}

/* ✅ حاوية السلايدر (النصف الأيمن) */
.hero-visual {
    flex: 1;
    height: 100%;      /* ارتفاع السلايدر نسبة للقسم */
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

/* ✅ تنسيقات السلايدر الداخلية */
.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #0D1B3E;
    direction: ltr; /* لحسابات الانزلاق */
}
.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    height: 100%;
}
.slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
    flex-grow: 0;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.slide-caption {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(13,27,62,0.85);
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    backdrop-filter: blur(6px);
    max-width: 80%;
    direction: rtl;
}
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 10;
    color: var(--navy);
    transition: 0.3s;
}
.slider-nav:hover { background: var(--gold); color: white; }
.slider-nav.prev { left: 16px; }
.slider-nav.next { right: 16px; }
.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}
.dot.active { background: var(--gold); width: 20px; border-radius: 4px; }

/* ✅ تأثير Ken Burns */
.ken-burns-wrapper { position: absolute; inset: 0; overflow: hidden; }
.ken-burns-img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    animation: kenBurnsZoom 15s ease-in-out infinite alternate;
}
@keyframes kenBurnsZoom {
    0% { transform: scale(1) translateX(0); }
    100% { transform: scale(1.1) translateX(-2%); }
}

/* ✅ استجابة الجوال */
@media (max-width: 900px) {
    .hero { height: auto; min-height: auto; padding: 100px 24px 60px; }
    .hero-content { flex-direction: column-reverse; gap: 30px; }
    .hero-visual { width: 100%; height: 350px; }
    .hero-text { text-align: center; }
    .hero-buttons { justify-content: center; }
}
.whyus-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
}