/* ==========================================================================
   مؤسسة نجم الظل للمظلات والسواتر والأبواب - الرياض
   الملف البرمجي للتصميم والأنماط الرئيسية والتجاوب مع الهواتف الذكية (CSS Responsive)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-main: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  
  --red-primary: #e63946;
  --red-hover: #c92a2a;
  --red-dark: #b91c1c;
  --red-gradient: linear-gradient(135deg, #e63946 0%, #b91c1c 100%);
  --red-shadow: 0 8px 20px rgba(230, 57, 70, 0.35);

  --gold-primary: #d97706;
  --gold-accent: #f59e0b;
  --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #ffffff;

  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.12);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition: all 0.3s 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;
  direction: rtl;
}

body {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* الأزرار العامة */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn-red {
  background: var(--red-gradient);
  color: #ffffff !important;
  box-shadow: var(--red-shadow);
}

.btn-red:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(230, 57, 70, 0.45);
  background: linear-gradient(135deg, #ff4d5a 0%, #c92a2a 100%);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.3);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.45);
}

.btn-outline-red {
  background: transparent;
  color: var(--red-primary);
  border: 2px solid var(--red-primary);
}

.btn-outline-red:hover {
  background: var(--red-primary);
  color: #ffffff !important;
  transform: translateY(-3px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
}

/* الهيدر والقائمة للهواتف */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-img {
  height: 52px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 3px;
  background: var(--red-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--red-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* زر القائمة للهواتف Hamburger Menu Button */
.mobile-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

/* درج القائمة للهواتف Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 320px;
  height: 100vh;
  background: #ffffff;
  z-index: 10005;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  padding: 1.8rem 1.5rem;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-nav-drawer.active {
  right: 0;
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10004;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mobile-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-primary);

}

.mobile-nav-list a:hover,
.mobile-nav-list a.active {
  background: rgba(230, 57, 70, 0.08);
  color: var(--red-primary);
}

/* قسم البطل */
.hero {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 3.5rem 0 4.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  background: rgba(230, 57, 70, 0.08);
  border: 1px solid rgba(230, 57, 70, 0.2);
  border-radius: var(--radius-full);
  color: var(--red-primary);
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}

.hero-title span {
  color: var(--red-primary);
  background: linear-gradient(135deg, #e63946 0%, #b91c1c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  padding-top: 1.8rem;
  border-top: 1px solid #e2e8f0;
}

.stat-item h3 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--red-primary);
  line-height: 1;
}

.stat-item p {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #ffffff;
}

.hero-image-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-image-wrapper:hover img {
  transform: scale(1.03);
}

.hero-floating-card {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.floating-icon {
  width: 44px;
  height: 44px;
  background: var(--red-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.3rem;
}

/* عناوين الأقسام */
.section-title-wrap {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3rem;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--red-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.3;
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-top: 0.6rem;
}

/* كروت الخدمات */
.services-section {
  padding: 4.5rem 0;
  background-color: var(--bg-main);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.8rem;
}

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

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(230, 57, 70, 0.3);
}

.service-img-container {
  position: relative;
  height: 240px;
  overflow: hidden;
  background-color: #f1f5f9;
}

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

.service-card:hover .service-img-container img {
  transform: scale(1.08);
}

.service-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--red-gradient);
  color: #ffffff;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.service-content {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.7rem;
}

.service-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

.service-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.feature-tag {
  background: #f1f5f9;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
}

.service-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.service-actions .btn {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

/* الأزرار الثابتة على اليسار للهواتف */
.floating-left-actions {
  position: fixed;
  left: 20px;
  bottom: 25px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
  position: relative;
  text-decoration: none;
  touch-action: manipulation;
}

.floating-btn-call {
  background: var(--red-gradient);
  animation: pulse-red 2s infinite;
}

.floating-btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  animation: pulse-green 2s infinite 0.5s;
}

.floating-btn:hover {
  transform: scale(1.1) translateY(-3px);
}

.floating-tooltip {
  position: absolute;
  left: 68px;
  background: #0f172a;
  color: #ffffff;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.floating-tooltip::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: #0f172a;
}

.floating-btn:hover .floating-tooltip {
  opacity: 1;
  left: 65px;
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(230, 57, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* نافذة طلب التسعيرة Modal */
.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  padding: 1rem;
}

.quote-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.quote-modal-content {
  background: #ffffff;
  padding: 2rem 1.6rem;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
  border-top: 5px solid var(--red-primary);
  max-height: 90vh;
  overflow-y: auto;
}

.quote-modal-close {
  position: absolute;
  top: 12px;
  left: 18px;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-muted);
}

/* صفحات الأقسام والـ Gallery */
.subpage-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.breadcrumbs a {
  color: var(--red-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  padding: 2.5rem 0;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 250px;
  background: #f1f5f9;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0;
  transition: var(--transition);
}

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

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

.gallery-zoom-icon {
  width: 48px;
  height: 48px;
  background: var(--red-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  padding: 1rem;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 95vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 2px solid #ffffff;
}

.lightbox-caption {
  color: #ffffff;
  margin-top: 0.8rem;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10002;
}

.lightbox-close:hover {
  background: var(--red-primary);
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10002;
}

.lightbox-prev { right: 10px; }
.lightbox-next { left: 10px; }

.lightbox-prev:hover, .lightbox-next:hover {
  background: var(--red-primary);
}

/* قسم الخريطة */
.map-section {
  padding: 4.5rem 0;
  background-color: var(--bg-secondary);
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  position: relative;
}

.map-frame {
  width: 100%;
  height: 420px;
  border: none;
}

.map-overlay-card {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 320px;
  border-right: 5px solid var(--red-primary);
}

.map-overlay-card h4 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.map-overlay-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

/* SEO Tags */
.seo-section {
  padding: 3.5rem 0;
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
}

.seo-tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.seo-tag {
  background: #f1f5f9;
  color: var(--text-secondary);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid #e2e8f0;
  transition: var(--transition);
}

.seo-tag:hover {
  background: var(--red-primary);
  color: #ffffff;
  border-color: var(--red-primary);
}

/* تذييل الصفحة */
.footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-about p {
  margin-top: 1rem;
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.4rem;
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-right: 5px;
}

.footer-bottom {
  padding-top: 1.8rem;
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
}

/* ==========================================================================
   تجاوب كامل مع كافة شاشات التلفون والأجهزة الذكية (Mobile Responsive Breakdown)
   ========================================================================== */

@media (max-width: 992px) {
  .nav-links {
    display: none; /* إخفاء القائمة العادية على التابلت والهواتف */
  }

  .mobile-toggle-btn {
    display: block; /* إظهار زر قائمة التلفون */
  }

  .header-actions .btn-outline-red {
    display: none; /* إخفاء الأزرار الثانوية بالهيدر لمنع الازداحم */
  }

  .logo-img {
    height: 44px;
  }

  .hero {
    padding: 2.5rem 0 3.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-buttons .btn {
    flex: 1 1 100%; /* أزرار بكامل العرض على شاشة التلفون */
    width: 100%;
    padding: 0.9rem 1.2rem;
  }

  .hero-stats {
    justify-content: center;
    gap: 0.8rem;
  }

  .hero-image-wrapper img {
    height: 320px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 2.1rem;
    line-height: 1.3;
  }

  .hero-badge {
    font-size: 0.85rem;
  }

  .hero-image-wrapper img {
    height: 250px;
  }

  .hero-floating-card {
    position: relative;
    inset: auto;
    margin-top: -30px;
    margin-right: 15px;
    margin-left: 15px;
    border-radius: var(--radius-md);
  }

  .section-title {
    font-size: 1.8rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-img-container {
    height: 210px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    gap: 1rem;
  }

  .gallery-item {
    height: 230px;
  }

  .map-overlay-card {
    position: relative;
    inset: auto;
    max-width: 100%;
    margin-top: -50px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .map-frame {
    height: 320px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .floating-left-actions {
    left: 15px;
    bottom: 20px;
    gap: 10px;
  }

  .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 1.35rem;
  }

  .floating-tooltip {
    display: none; /* إخفاء التولتيب على الهواتف لمنع إعاقة الشاشة */
  }

  .lightbox-prev {
    right: 5px;
  }

  .lightbox-next {
    left: 5px;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .logo-img {
    height: 38px;
  }
}
