/* ============================================
   pages.css — الصفحات الداخلية
   (صفحات الخدمات، التواصل، المدونة، الصفحات القانونية)
   + القائمة المنسدلة للخدمات في الـ Navbar
   ============================================ */

/* ==========================================
   NAV DROPDOWN — قائمة الخدمات المنسدلة
   ========================================== */
.navbar__dropdown {
  position: relative;
}

.navbar__dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.navbar__dropdown > a svg {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-base);
}

.navbar__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 250px;
  background: var(--clr-surface-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition-base);
  z-index: 50;
}

/* جسر خفي عشان الماوس ما يفقدش القائمة وهو نازل لها */
.navbar__dropdown-menu::before {
  content: '';
  position: absolute;
  inset: -12px 0 auto 0;
  height: 12px;
}

.navbar__dropdown:hover .navbar__dropdown-menu,
.navbar__dropdown:focus-within .navbar__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar__dropdown:hover > a svg,
.navbar__dropdown:focus-within > a svg {
  transform: rotate(180deg);
}

.navbar__menu .navbar__dropdown-menu a {
  display: block;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.navbar__menu .navbar__dropdown-menu a::after {
  display: none;
}

.navbar__menu .navbar__dropdown-menu a:hover,
.navbar__menu .navbar__dropdown-menu a.active {
  background: var(--clr-surface-2);
}

/* قائمة الجوال — روابط الخدمات الفرعية */
.navbar__mobile-sub {
  display: flex;
  flex-direction: column;
  padding-inline-start: var(--space-4);
  border-inline-start: 2px solid var(--clr-border);
  margin-block: calc(var(--space-1) * -1) var(--space-2);
}

.navbar__mobile-menu .navbar__mobile-sub a {
  font-size: var(--text-sm);
  padding-block: var(--space-2);
  color: var(--clr-text-muted);
}

/* الـ label فوق العنوان دايماً (مش جنبه في الشاشات العريضة) */
.section-header .section-label,
.prose .section-label {
  display: flex;
  width: fit-content;
  margin-bottom: var(--space-3);
}

.section-header .section-label {
  margin-inline: auto;
}

/* كروت "التزاماتنا معك" — نفس شكل كروت الآراء من غير علامة الاقتباس */
.testimonial-card--promise::after {
  display: none;
}

.testimonial-card--promise .testimonial-card__name {
  font-size: var(--text-lg);
  margin: 0;
}

/* عنوان العرض (خصم 20%) أبيض زي الصفحة الرئيسية */
.section.cta-section h2 {
  color: white;
  -webkit-text-fill-color: white;
  background: none;
}

/* ==========================================
   PAGE HERO — رأس الصفحات الداخلية
   ========================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-20) var(--space-16);
  color: white;
  isolation: isolate;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

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

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, rgba(10, 60, 80, 0.92) 0%, rgba(13, 158, 110, 0.82) 55%, rgba(10, 122, 181, 0.7) 100%);
}

.page-hero--plain::before {
  background: linear-gradient(135deg, #0d9e6e 0%, #0b8fa8 45%, #0a7ab5 100%);
}

.page-hero__inner {
  max-width: 760px;
}

.page-hero h1 {
  color: white;
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  line-height: 1.25;
  margin-block: var(--space-4) var(--space-4);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.page-hero__lead {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  max-width: 620px;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.page-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.page-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
}

.page-hero__badge svg {
  width: 16px;
  height: 16px;
}

.btn--glass {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: white;
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.22);
  color: white;
}

/* Breadcrumb */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb li + li::before {
  content: '‹';
  margin-inline-end: var(--space-2);
  opacity: 0.7;
}

.breadcrumb a {
  color: white;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ==========================================
   SERVICE DETAIL — تفاصيل الخدمة
   ========================================== */
.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--space-12);
  align-items: start;
}

.prose h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-5);
  color: var(--clr-secondary);
}

.prose h3 {
  font-size: var(--text-xl);
  margin-block: var(--space-8) var(--space-3);
  color: var(--clr-secondary);
}

.prose p {
  color: var(--clr-text-light);
  line-height: 1.95;
  margin-bottom: var(--space-4);
  font-size: var(--text-lg);
}

.prose ul,
.prose ol {
  color: var(--clr-text-light);
  line-height: 1.9;
  margin: 0 0 var(--space-5);
  padding-inline-start: var(--space-6);
  font-size: var(--text-lg);
}

.prose li {
  margin-bottom: var(--space-2);
}

.prose a {
  color: var(--clr-primary);
  font-weight: var(--font-semibold);
}

.prose img {
  width: 100%;
  border-radius: var(--radius-xl);
  margin-block: var(--space-6);
  box-shadow: var(--shadow-md);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: var(--space-8) 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--clr-surface-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  font-weight: var(--font-semibold);
  color: var(--clr-text);
  box-shadow: var(--shadow-sm);
}

.check-list svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: white;
  margin-top: 2px;
}

/* Sidebar — كارت الحجز */
.booking-card {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-6));
  background: var(--clr-surface-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.booking-card__head {
  background: var(--gradient-cta);
  color: white;
  padding: var(--space-6);
  text-align: center;
}

.booking-card__head strong {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--font-black);
  line-height: 1.1;
}

.booking-card__head span {
  font-size: var(--text-sm);
  opacity: 0.9;
}

.booking-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.booking-card__body .btn {
  width: 100%;
  justify-content: center;
}

.booking-card__list {
  list-style: none;
  padding: 0;
  margin: var(--space-2) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--clr-text-light);
}

.booking-card__list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.booking-card__list svg {
  width: 18px;
  height: 18px;
  color: var(--clr-primary);
  flex-shrink: 0;
}

/* Steps — خطوات العمل */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--clr-surface-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6) var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step__num {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--font-black);
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-glow);
}

.step h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
  color: var(--clr-secondary);
}

.step p {
  color: var(--clr-text-muted);
  line-height: 1.8;
}

/* Areas — الأحياء المخدومة */
.areas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  list-style: none;
  padding: 0;
  margin: 0;
}

.areas li {
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  background: var(--clr-surface-white);
  border: 1px solid var(--clr-border);
  font-weight: var(--font-semibold);
  color: var(--clr-text-light);
  box-shadow: var(--shadow-sm);
}

/* ==========================================
   ARTICLE — مقالات المدونة
   ========================================== */
.article-layout {
  max-width: 820px;
  margin-inline: auto;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.88);
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.article-meta svg {
  width: 16px;
  height: 16px;
}

.article-cover {
  margin-top: calc(var(--space-12) * -1);
  position: relative;
  z-index: 2;
}

.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  margin: 0;
}

.callout {
  background: var(--gradient-mint);
  border-inline-start: 4px solid var(--clr-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  margin-block: var(--space-6);
}

.callout p {
  margin: 0;
}

.article-cta {
  margin-top: var(--space-12);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  background: var(--gradient-cta);
  color: white;
  text-align: center;
}

.article-cta h2 {
  color: white;
  -webkit-text-fill-color: white;
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.article-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-6);
}

/* ==========================================
   CONTACT PAGE — صفحة التواصل
   ========================================== */
.help-box {
  margin-top: var(--space-8);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background: var(--gradient-cta);
  color: white;
}

.help-box h3 {
  color: white;
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.help-box p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-5);
}

.contact-info__text a,
.footer__contact-item span {
  overflow-wrap: anywhere;
}

/* صفحة التواصل بتستخدم h2/h3 بدل h3/h4 (ترتيب عناوين صحيح لأن فيها h1) */
.contact-info__text h3 {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  margin-bottom: var(--space-1);
  font-weight: var(--font-semibold);
}

.contact-form h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-8);
  text-align: center;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-card__title a {
  color: inherit;
}

/* ==========================================
   404
   ========================================== */
.notfound {
  text-align: center;
  padding-block: var(--space-24);
}

.notfound__code {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 18vw, 10rem);
  font-weight: var(--font-black);
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.notfound p {
  color: var(--clr-text-muted);
  font-size: var(--text-lg);
  margin-block: var(--space-4) var(--space-8);
}

.notfound__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .service-layout {
    grid-template-columns: 1fr;
  }

  .booking-card {
    position: static;
  }

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

@media (max-width: 768px) {
  .page-hero {
    padding-block: var(--space-12) var(--space-10);
  }

  .check-list,
  .steps {
    grid-template-columns: 1fr;
  }

  .prose p,
  .prose ul,
  .prose ol {
    font-size: var(--text-base);
  }

  .article-cover {
    margin-top: calc(var(--space-6) * -1);
  }

  .page-hero__actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}
