/* إعدادات عامة */
:root {
    --primary: #0e7490;
    --secondary: #0f172a;
    --accent: #22c55e;
    --bg: #f8fafc;
    --text: #0b1324;
    --muted: #64748b;
    --card: #ffffff;
    --shadow: 0 8px 20px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Cairo', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    line-height: 1.7;
}

.container {
    width: 92%;
    max-width: 1100px;
    margin: 0 auto;
}

/* الهيدر */
.top-header {
    background: var(--card);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 16px;
}
.logo {
    height: 76px;
    width: auto;
    display: block;
}
.phone-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    padding: 10px 14px;
    border: 2px solid var(--primary);
    border-radius: 10px;
    transition: all .2s ease;
}
.phone-link:hover {
    background: var(--primary);
    color: #fff;
}

/* السلايدر */
.slider-section { padding: 0; }
.slider-section .container {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 0;
}
.slider {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow);
}
.slides {
    position: relative;
    height: 420px;
}
.slides img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity .7s ease, transform 1.2s ease;
}
.slides img.active {
    opacity: 1;
    transform: scale(1);
}

/* ألبوم الصور */
.gallery-section { padding: 24px 0; }
.section-title {
    margin: 0 0 14px;
    font-size: 22px;
    color: var(--secondary);
}
.gallery-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, 1fr);
}
.gallery-item {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow);
}
.gallery-item img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform .4s ease, filter .3s ease;
}
.gallery-item .overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    letter-spacing: .5px;
    background: rgba(14, 116, 144, 0.35);
    opacity: 0;
    transition: opacity .3s ease;
}
.gallery-item:hover img {
    transform: scale(1.06);
    filter: brightness(0.85);
}
.gallery-item:hover .overlay {
    opacity: 1;
}

/* احصائيات */
.stats-section {
    padding: 26px 0;
}
.stats-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, 1fr);
}
.stat-card {
    background: var(--card);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid #e5e7eb;
}
.stat-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 8px;
    color: var(--primary);
    display: grid;
    place-items: center;
}
.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
}
.stat-label {
    margin-top: 6px;
    color: var(--muted);
    font-weight: 600;
}

/* الخريطة */
.map-section { padding: 8px 0 24px; }
.map-wrap {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid #e5e7eb;
}

/* الفوتر */
.site-footer {
    background: var(--secondary);
    color: #e2e8f0;
    padding: 20px 0 10px;
    margin-top: 10px;
}
.footer-content {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
}
.footer-phones h3,
.footer-whatsapp h3 { margin: 0 0 8px; color: #fff; }
.footer-phones ul { list-style: none; padding: 0; margin: 0; }
.footer-phones li { margin: 6px 0; }
.footer-phones a, .whatsapp-link {
    color: #e2e8f0;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255,255,255,.3);
}
.footer-phones a:hover, .whatsapp-link:hover { color: #fff; }
.copy {
    margin: 10px 0 0;
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
}

/* أزرار ثابتة على الموبايل */
.floating-btn {
    position: fixed;
    z-index: 200;
    bottom: 16px;
    padding: 12px 16px;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 18px rgba(0,0,0,.15);
    display: none; /* تظهر فقط على الموبايل */
}
.call-btn { right: 16px; background: var(--primary); }
.whatsapp-btn { left: 16px; background: #25d366; }

/* تجاوب */
@media (max-width: 992px) {
    .slides { height: 340px; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .header-content { flex-wrap: wrap; }
    .logo { height: 60px; }
    .slides { height: 280px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: 1fr; }
    .floating-btn { display: inline-block; }
}
@media (max-width: 420px) {
    .slides { height: 220px; }
    .gallery-item img { height: 160px; }
}

/* البوب-أب للمعرض */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 300;
}
.lightbox.open { display: flex; }
.lightbox-image {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: var(--shadow);
    background: #000;
    object-fit: contain;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    border: none;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    cursor: pointer;
    display: grid;
    place-items: center;
    backdrop-filter: blur(4px);
}
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }
.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover { background: rgba(255,255,255,0.28); }

/* نص العلامة بجوار اللوجو */
.brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 220px;
}
.brand-title {
    font-weight: 800;
    font-size: 20px;
    color: var(--secondary);
    line-height: 1.2;
}
.brand-subtitle {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

/* تجاوب للنص بجوار اللوجو */
@media (max-width: 768px) {
    .brand-title { font-size: 18px; }
    .brand-subtitle { font-size: 12px; }
}