/* =========================================================
   ALALAMIA — SERVICE DETAIL PAGES
   PAGE.CSS
   تصميم الصفحات الداخلية مثل cooker-repair.html
   ألوان الهوية: العنابي والذهبي والعاجي
   الهيدر والناف بار والفوتر لهم ملفات CSS مستقلة
========================================================= */


/* =========================================================
   1. الألوان والإعدادات الأساسية
========================================================= */
:root {
  --page-primary: #74263A;
  --page-primary-dark: #451522;
  --page-primary-soft: #F4E8EB;

  --page-accent: #D8A451;
  --page-accent-dark: #B78335;

  --page-bg: #FFFCFA;
  --page-section-bg: #F8F1EE;
  --page-card-bg: #FFFFFF;

  --page-text-main: #30252A;
  --page-text-muted: #71636A;

  --page-border-soft: #E9DDE0;

  --page-shadow-soft: 0 12px 32px rgba(69, 21, 34, 0.08);
  --page-shadow-hover: 0 18px 38px rgba(69, 21, 34, 0.14);
}


/* =========================================================
   2. أساسيات الصفحة
========================================================= */
html {
  scroll-padding-top: 90px;
  scroll-behavior: smooth;
  direction: rtl;
}

body.site-page {
  min-width: 320px;
  margin: 0;
  padding-top: 0;
  overflow-x: hidden;

  background: var(--page-bg);
  color: var(--page-text-main);

  font-family: "Cairo", sans-serif;
  line-height: 1.8;
}

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

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

.site-page a {
  transition:
    color .2s ease,
    background-color .2s ease,
    border-color .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.site-page a:focus-visible,
.site-page summary:focus-visible {
  outline: 3px solid rgba(216, 164, 81, .7);
  outline-offset: 3px;
}

.site-page .container {
  min-width: 0;
}

.site-page h1,
.site-page h2,
.site-page h3,
.site-page p,
.site-page li,
.site-page a,
.site-page summary {
  overflow-wrap: anywhere;
}


/* =========================================================
   3. الهيرو ومسار التنقل
========================================================= */
.inner-hero {
  position: relative;
  isolation: isolate;

  display: block;

  min-height: auto;
  padding: 124px 0 72px;

  overflow: hidden;

  color: #fff;
  text-align: right;

  background:
    radial-gradient(
      circle at 12% 12%,
      rgba(216, 164, 81, .20),
      transparent 32%
    ),
    linear-gradient(
      125deg,
      var(--page-primary) 0%,
      #602033 48%,
      var(--page-primary-dark) 100%
    );
}

.inner-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;

  content: "";
  pointer-events: none;

  opacity: .28;

  background:
    linear-gradient(
      135deg,
      transparent 0 64%,
      rgba(255, 255, 255, .07) 64.2% 64.5%,
      transparent 64.7%
    );
}

.inner-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;

  color: rgba(255, 255, 255, .7);
  font-size: .84rem;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, .92);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--page-accent);
}

.breadcrumbs i {
  color: var(--page-accent);
  font-size: .75rem;
}

.eyebrow {
  margin: 0 0 10px;

  color: var(--page-accent-dark);

  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .2px;
}

.inner-hero .eyebrow {
  margin-top: 24px;
  color: #F0C779;
}

.inner-hero h1 {
  max-width: 900px;

  margin: 12px 0 18px;

  color: #fff;

  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.3;

  text-wrap: balance;
}

.inner-hero-lead {
  max-width: 760px;

  margin: 0 0 28px;

  color: rgba(255, 255, 255, .86);

  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.9;
}


/* =========================================================
   4. زر الاتصال
========================================================= */
.btn-hotline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  max-width: 100%;
  padding: 12px 24px;

  border: 1px solid transparent;
  border-radius: 999px;

  background:
    linear-gradient(
      135deg,
      #F0C779,
      var(--page-accent)
    );

  color: var(--page-primary-dark);

  font-weight: 800;
  text-decoration: none;
  text-align: center;
  white-space: normal;

  box-shadow: 0 8px 22px rgba(20, 8, 12, .16);
}

.btn-hotline:hover {
  transform: translateY(-2px);

  background: #F5D493;
  color: var(--page-primary-dark);

  box-shadow: 0 12px 26px rgba(20, 8, 12, .22);
}


/* =========================================================
   5. المحتوى الرئيسي للصفحة الداخلية
========================================================= */
.detail-page {
  overflow: hidden;
}

.detail-intro {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);

  padding-top: 76px;
  padding-bottom: 76px;
}

.detail-intro > *,
.seo-rich-layout > *,
.symptoms-grid > *,
.process-grid > *,
.rich-content-grid > *,
.seo-copy-grid > * {
  min-width: 0;
}

.detail-media {
  overflow: hidden;

  border: 1px solid var(--page-border-soft);
  border-radius: 26px;

  background: var(--page-section-bg);

  box-shadow: var(--page-shadow-soft);
}

.detail-media img {
  display: block;

  width: 100%;
  height: auto;

  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.detail-copy,
.seo-main-copy {
  min-width: 0;
}

.detail-copy h2,
.section-heading h2 {
  margin: 0 0 16px;

  color: var(--page-primary);

  font-size: clamp(1.65rem, 3vw, 2.45rem);
  font-weight: 800;
  line-height: 1.4;
}

.detail-copy > p:not(.eyebrow),
.section-heading > p:not(.eyebrow) {
  color: var(--page-text-muted);
  line-height: 1.95;
}


/* =========================================================
   6. قائمة المميزات
========================================================= */
.check-list {
  display: grid;
  gap: 11px;

  margin: 24px 0 0;
  padding: 0;

  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  color: var(--page-text-main);
}

.check-list i {
  flex: 0 0 auto;

  margin-top: 7px;

  color: var(--page-accent-dark);
}


/* =========================================================
   7. الأقسام والعناوين
========================================================= */
.detail-section {
  padding: 76px 0;
}

.detail-section:nth-of-type(even),
.info-section {
  background: var(--page-section-bg);
}

.section-heading {
  max-width: 780px;

  margin: 0 auto 38px;

  text-align: center;
}

.section-heading .eyebrow {
  color: var(--page-accent-dark);
}

.detail-section .container,
.detail-cta .container {
  width: 100%;
}


/* =========================================================
   8. شبكات البطاقات
========================================================= */
.symptoms-grid,
.process-grid,
.rich-content-grid,
.seo-copy-grid {
  display: grid;
  gap: 20px;
}

.symptoms-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.symptoms-grid article,
.rich-content-grid article,
.seo-copy-grid article {
  min-width: 0;

  padding: 26px;

  border: 1px solid var(--page-border-soft);
  border-radius: 18px;

  background: var(--page-card-bg);

  box-shadow: 0 7px 22px rgba(69, 21, 34, .045);
}

.symptoms-grid article {
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.symptoms-grid article:hover,
.rich-content-grid article:hover,
.seo-copy-grid article:hover {
  transform: translateY(-4px);

  border-color: rgba(216, 164, 81, .6);

  box-shadow: var(--page-shadow-hover);
}

.symptoms-grid article > i {
  display: inline-grid;
  place-items: center;

  width: 48px;
  height: 48px;

  margin-bottom: 15px;

  border-radius: 14px;

  background: var(--page-primary-soft);
  color: var(--page-primary);

  font-size: 1.25rem;
}

.symptoms-grid h3,
.process-grid h3,
.rich-content-grid h3,
.seo-copy-grid h3,
.maintenance-note h3,
.seo-checklist h3 {
  margin: 0 0 10px;

  color: var(--page-primary);

  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.5;
}

.symptoms-grid p,
.process-grid p,
.rich-content-grid p,
.seo-copy-grid p,
.maintenance-note p {
  margin: 0;

  color: var(--page-text-muted);
  line-height: 1.9;
}


/* =========================================================
   9. خطوات تنفيذ الخدمة
========================================================= */
.detail-process {
  background: #fff;
}

.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-grid > div {
  position: relative;

  padding: 28px;

  border-right: 3px solid var(--page-accent);
  border-radius: 0 16px 16px 0;

  background: var(--page-section-bg);
}

.process-grid b {
  display: inline-block;

  margin-bottom: 12px;

  color: var(--page-accent-dark);

  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}


/* =========================================================
   10. المحتوى التفصيلي وتحسين محركات البحث
========================================================= */
.rich-content-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.maintenance-note {
  margin-top: 24px;
  padding: 24px 28px;

  border: 1px solid rgba(216, 164, 81, .5);
  border-radius: 18px;

  background: #FFF8E9;
}

.maintenance-note a,
.seo-related a,
.faq-list a {
  color: var(--page-primary);

  font-weight: 800;

  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.maintenance-note a:hover,
.seo-related a:hover,
.faq-list a:hover {
  color: var(--page-accent-dark);
}

.seo-rich-content {
  background: #fff;
}

.seo-rich-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: start;
  gap: 24px;
}

.seo-main-copy > p {
  margin: 0 0 22px;

  color: var(--page-text-muted);
  line-height: 2;
}

.seo-copy-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.seo-copy-grid > article {
  height: 100%;
}

.seo-checklist {
  padding: 25px;

  border: 1px solid var(--page-border-soft);
  border-radius: 18px;

  background: var(--page-primary-soft);
}

.seo-checklist ul {
  display: grid;
  gap: 12px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.seo-checklist li {
  position: relative;

  padding-right: 23px;

  color: var(--page-text-main);
}

.seo-checklist li::before {
  position: absolute;
  top: 0;
  right: 0;

  color: var(--page-accent-dark);

  content: "✓";
  font-weight: 900;
}

.seo-related {
  margin: 26px 0 0;

  color: var(--page-text-muted);
}


/* =========================================================
   11. الأسئلة الشائعة
========================================================= */
.narrow-content {
  max-width: 920px;
}

.detail-section.narrow-content.faq-list {
  width: 100%;
  max-width: none;

  margin-inline: auto;
}

.detail-section.narrow-content.faq-list > .container {
  width: 100%;
  max-width: 1140px;

  margin-inline: auto;
}

.faq-list {
  display: block;
}

.faq-list .container {
  display: block;
}

.faq-list .container > details {
  margin: 0 0 12px;
}

.faq-list .container > details:last-child {
  margin-bottom: 0;
}

.faq-list details {
  overflow: hidden;

  border: 1px solid var(--page-border-soft);
  border-radius: 15px;

  background: #fff;

  transition:
    border-color .2s ease,
    box-shadow .2s ease;
}

.faq-list details[open] {
  border-color: rgba(216, 164, 81, .75);

  box-shadow: 0 8px 24px rgba(69, 21, 34, .06);
}

.faq-list summary {
  position: relative;

  padding: 18px 22px 18px 52px;

  color: var(--page-primary);

  cursor: pointer;

  font-weight: 800;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 50%;
  left: 22px;

  color: var(--page-accent-dark);

  content: "+";

  font-size: 1.45rem;
  line-height: 1;

  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 0;
  padding: 0 22px 20px;

  color: var(--page-text-muted);
  line-height: 1.95;
}


/* =========================================================
   12. القسم الختامي للدعوة إلى التواصل
========================================================= */
.detail-cta {
  padding: 58px 0;

  color: #fff;
  text-align: center;

  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(216, 164, 81, .17),
      transparent 30%
    ),
    linear-gradient(
      125deg,
      var(--page-primary),
      var(--page-primary-dark)
    );
}

.detail-cta h2 {
  margin: 0 0 12px;

  color: #fff;

  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
}

.detail-cta p {
  margin: 0 0 24px;

  color: rgba(255, 255, 255, .82);
}


/* =========================================================
   13. الشاشات المتوسطة
========================================================= */
@media (max-width: 991.98px) {
  .inner-hero {
    padding: 112px 0 60px;
  }

  .detail-intro {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;

    padding-top: 58px;
    padding-bottom: 58px;
  }

  .symptoms-grid,
  .process-grid,
  .rich-content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-rich-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .seo-checklist {
    order: 0;
  }

  .detail-section {
    padding: 60px 0;
  }

  .seo-copy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* =========================================================
   14. الموبايل
========================================================= */
@media (max-width: 767.98px) {
  .inner-hero {
    padding: 92px 0 42px;
  }

  .inner-hero .eyebrow {
    margin-top: 22px;
  }

  .inner-hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .detail-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;

    padding-top: 42px;
    padding-bottom: 42px;
  }

  .detail-media {
    width: 100%;
    max-width: 560px;

    margin: 0 auto;
  }

  .detail-media img {
    max-height: 440px;
  }

  .symptoms-grid,
  .process-grid,
  .rich-content-grid,
  .seo-copy-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-section {
    padding: 48px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .symptoms-grid article,
  .rich-content-grid article,
  .seo-copy-grid article,
  .process-grid > div {
    padding: 20px;
  }

  .faq-list summary {
    padding: 16px 16px 16px 44px;
  }

  .faq-list summary::after {
    left: 16px;
  }

  .faq-list details p {
    padding: 0 16px 16px;
  }

  .maintenance-note {
    padding: 20px;
  }

  .detail-cta {
    padding: 44px 0;
  }

  .detail-section.narrow-content.faq-list > .container {
    padding-inline: 16px;
  }
}


/* =========================================================
   15. الشاشات الصغيرة جدًا
========================================================= */
@media (max-width: 420px) {
  .breadcrumbs {
    gap: 6px;
    font-size: .76rem;
  }

  .btn-hotline {
    padding: 11px 16px;
    font-size: .92rem;
  }

  .section-heading {
    text-align: right;
  }

  .section-heading h2 {
    font-size: 1.55rem;
  }
}


/* =========================================================
   16. تقليل الحركة
========================================================= */
@media (prefers-reduced-motion: reduce) {
  .site-page *,
  .site-page *::before,
  .site-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}