/* =========================================================
   BRANDS.CSS
   صفحات العلامات التجارية — العالمية
   مخصص لتصميم صفحات العلامات مثل توشيبا وسامسونج
   الهيدر والفوتر والناف بار لهم ملفات CSS مستقلة
========================================================= */


/* =========================================================
   1. الألوان والإعدادات الأساسية
========================================================= */
:root {
  --brand-primary: #6F1D2E;
  --brand-primary-dark: #3D0B17;
  --brand-accent: #D89B4C;

  --brand-bg: #FFF8F6;
  --brand-bg-soft: #F6E3E4;
  --brand-card: #FFFFFF;

  --brand-text: #24161A;
  --brand-muted: #6D5B5F;

  --brand-shadow: rgba(111, 29, 46, 0.18);

  --whatsapp-green: #25D366;
  --whatsapp-green-dark: #128C7E;

  --brand-radius: 18px;
  --brand-radius-large: 24px;

  --brand-transition: 0.3s ease;

  --brand-container-width: 1140px;
}


/* =========================================================
   2. الأساسيات
========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body.site-brand {
  min-height: 100%;
  margin: 0;
  padding-top: 75px;
  overflow-x: hidden;

  background: var(--brand-bg);
  color: var(--brand-text);

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

.site-brand img {
  max-width: 100%;
}

.site-brand a {
  transition:
    color var(--brand-transition),
    background-color var(--brand-transition),
    border-color var(--brand-transition);
}

.site-brand main section {
  scroll-margin-top: 100px;
}

.site-brand .container {
  max-width: var(--brand-container-width);
}


/* =========================================================
   3. العناوين والنصوص المشتركة
========================================================= */
.site-brand .eyebrow {
  margin: 0 0 12px;

  color: var(--brand-accent);

  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1.7;
}

.site-brand .section-heading {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.site-brand .section-heading h2 {
  margin: 0 0 14px;

  color: var(--brand-primary);

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

.site-brand .section-heading > p:last-child {
  margin: 0;

  color: var(--brand-muted);

  font-size: 1rem;
  line-height: 1.9;
}


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

  padding: 12px 25px;

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

  background: var(--brand-accent);
  color: var(--brand-primary-dark);

  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.6;
  text-decoration: none;

  box-shadow: 0 8px 20px rgba(111, 29, 46, 0.18);

  transition:
    transform var(--brand-transition),
    box-shadow var(--brand-transition),
    background-color var(--brand-transition);
}

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

  background: #E8B36B;
  color: var(--brand-primary-dark);

  box-shadow: 0 12px 24px rgba(111, 29, 46, 0.24);
}

.site-brand .btn-hotline:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 4px;
}


/* =========================================================
   5. الهيرو — مقدمة صفحة العلامة التجارية
========================================================= */
.site-brand .inner-hero.brand-hero {
  position: relative;

  display: block;
  min-height: auto;
  height: auto;

  padding: 70px 0 82px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 15% 10%,
      #8B3A4C 0,
      var(--brand-primary) 45%,
      var(--brand-primary-dark) 100%
    );

  color: #FFFFFF;
  text-align: right;

  border-radius: 0 0 var(--brand-radius) var(--brand-radius);
}

.site-brand .brand-hero .brand-hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.site-brand .brand-hero-row > div {
  flex: 1;
  min-width: 0;
  max-width: 820px;
}

.site-brand .brand-hero .eyebrow {
  margin: 0 0 14px;
  color: var(--brand-accent);
}

.site-brand .brand-hero h1 {
  max-width: 850px;

  margin: 0 0 20px;

  color: #FFFFFF;

  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.35;

  text-shadow: none;
  animation: none;
  opacity: 1;
  transform: none;
}

.site-brand .brand-hero .inner-hero-lead {
  max-width: 700px;

  margin: 0 0 26px;

  color: rgba(255, 255, 255, 0.86);

  font-size: 1.1rem;
  line-height: 2;

  animation: none;
  opacity: 1;
  transform: none;
}


/* =========================================================
   6. مقدمة الصفحة ولوحة اللوجو
========================================================= */
.site-brand .brand-intro {
  display: grid;
  grid-template-columns: minmax(210px, 0.5fr) minmax(0, 1.5fr);
  align-items: center;
  gap: 50px;

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

.site-brand .brand-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;

  width: 100%;
  min-width: 0;
  min-height: 0;

  padding: 28px 22px;

  border: 1px solid rgba(216, 155, 76, 0.35);
  border-radius: var(--brand-radius-large);

  background: var(--brand-primary);
  color: #FFFFFF;

  box-shadow: 0 18px 34px rgba(111, 29, 46, 0.15);

  text-align: center;
}

/* صورة اللوجو المربعة */
.site-brand .brand-panel .brand-panel-logo {
  display: block;

  width: min(100%, 280px);
  aspect-ratio: 1 / 1;
  height: auto;

  min-width: 0;
  flex: 0 0 auto;

  padding: 16px;

  object-fit: contain;
  object-position: center;

  background: #FFFFFF;

  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;

  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

/* اسم العلامة التجارية */
.site-brand .brand-panel strong {
  display: block;

  margin: 0;

  color: #FFFFFF;

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

/* الوصف أسفل اللوجو */
.site-brand .brand-panel small {
  display: block;

  margin: 0;

  color: rgba(255, 255, 255, 0.82);

  font-size: 0.9rem;
  line-height: 1.7;
}

.site-brand .brand-intro h2 {
  margin: 0 0 16px;

  color: var(--brand-primary);

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

.site-brand .brand-intro > div:last-child > p:not(.eyebrow) {
  margin: 0 0 15px;

  color: var(--brand-muted);

  font-size: 1rem;
  line-height: 2;
}


/* =========================================================
   7. قائمة المميزات
========================================================= */
.site-brand .check-list {
  display: grid;
  gap: 12px;

  margin: 25px 0 0;
  padding: 0;

  list-style: none;
}

.site-brand .check-list li {
  color: var(--brand-text);
  font-size: 0.98rem;
  line-height: 1.8;
}

.site-brand .check-list i {
  margin-left: 8px;
  color: var(--brand-accent);
}


/* =========================================================
   8. قسم خدمات الأجهزة
========================================================= */
.site-brand .brand-section {
  padding: 80px 0;
  background: #FFFFFF;
}

.site-brand .brand-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.site-brand .brand-feature-grid article {
  min-width: 0;
  height: 100%;

  padding: 28px;

  border: 1px solid rgba(111, 29, 46, 0.09);
  border-radius: var(--brand-radius);

  background: var(--brand-bg);

  transition:
    transform var(--brand-transition),
    box-shadow var(--brand-transition),
    border-color var(--brand-transition);
}

.site-brand .brand-feature-grid article:hover {
  transform: translateY(-5px);

  border-color: rgba(216, 155, 76, 0.55);

  box-shadow: 0 14px 28px rgba(111, 29, 46, 0.1);
}

.site-brand .brand-feature-grid article > i {
  display: grid;

  width: 48px;
  height: 48px;

  margin-bottom: 18px;

  place-items: center;

  border-radius: 14px;

  background: var(--brand-bg-soft);
  color: var(--brand-primary);

  font-size: 1.2rem;
}

.site-brand .brand-feature-grid h3 {
  margin: 0 0 12px;

  color: var(--brand-primary);

  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.6;
}

.site-brand .brand-feature-grid p {
  margin: 0;

  color: var(--brand-muted);

  font-size: 0.96rem;
  line-height: 1.9;
}


/* =========================================================
   9. محتوى السيو
========================================================= */
.site-brand .seo-rich-content {
  padding: 80px 0;
  background: #FFFFFF;
}

.site-brand .seo-rich-layout {
  display: block;
  width: 100%;
}

.site-brand .seo-main-copy {
  width: 100%;
  min-width: 0;
}

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

  color: var(--brand-muted);

  font-size: 1rem;
  line-height: 2;
}

.site-brand .seo-copy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;

  margin-top: 28px;
}

.site-brand .seo-copy-grid article {
  min-width: 0;

  padding: 25px;

  border: 1px solid rgba(111, 29, 46, 0.1);
  border-radius: 16px;

  background: var(--brand-bg);

  transition:
    border-color var(--brand-transition),
    box-shadow var(--brand-transition);
}

.site-brand .seo-copy-grid article:hover {
  border-color: rgba(216, 155, 76, 0.6);
  box-shadow: 0 10px 22px rgba(111, 29, 46, 0.06);
}

.site-brand .seo-copy-grid h3 {
  margin: 0 0 12px;

  color: var(--brand-primary);

  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.7;
}

.site-brand .seo-copy-grid p {
  margin: 0;

  color: var(--brand-muted);

  font-size: 0.96rem;
  line-height: 1.95;
}


/* =========================================================
   10. الأسئلة الشائعة
========================================================= */
.site-brand .faq-list {
  padding: 80px 0;
  background: var(--brand-bg);
}

.site-brand .faq-list .section-heading {
  margin-bottom: 36px;
}

.site-brand .faq-list details {
  overflow: hidden;

  margin: 0 0 12px;

  border: 1px solid rgba(111, 29, 46, 0.1);
  border-radius: 14px;

  background: #FFFFFF;

  transition:
    border-color var(--brand-transition),
    box-shadow var(--brand-transition);
}

.site-brand .faq-list details[open] {
  border-color: rgba(216, 155, 76, 0.65);
  box-shadow: 0 8px 20px rgba(111, 29, 46, 0.05);
}

.site-brand .faq-list summary {
  position: relative;

  padding: 20px 24px 20px 55px;

  color: var(--brand-primary);

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

  cursor: pointer;
  list-style: none;
}

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

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

  content: "+";

  color: var(--brand-accent);

  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;

  transform: translateY(-50%);
}

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

.site-brand .faq-list summary:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: -4px;
}

.site-brand .faq-list details p {
  margin: 0;
  padding: 0 24px 22px;

  color: var(--brand-muted);

  font-size: 0.96rem;
  line-height: 1.95;
}


/* =========================================================
   11. الدعوة النهائية للاتصال
========================================================= */
.site-brand .detail-cta {
  padding: 75px 0;

  background:
    linear-gradient(
      135deg,
      var(--brand-primary),
      var(--brand-primary-dark)
    );

  color: #FFFFFF;
  text-align: center;
}

.site-brand .detail-cta h2 {
  margin: 0 0 14px;

  color: #FFFFFF;

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

.site-brand .detail-cta p {
  max-width: 700px;

  margin: 0 auto 25px;

  color: rgba(255, 255, 255, 0.82);

  font-size: 1rem;
  line-height: 1.9;
}


/* =========================================================
   12. تجاوب الشاشات المتوسطة
========================================================= */
@media (max-width: 991.98px) {

  .site-brand .brand-intro {
    grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1.35fr);
    gap: 30px;
  }

  .site-brand .brand-panel .brand-panel-logo {
    width: min(100%, 240px);
    padding: 14px;
  }

  .site-brand .brand-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-brand .brand-feature-grid article:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

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


/* =========================================================
   13. تجاوب الموبايل
========================================================= */
@media (max-width: 767.98px) {

  body.site-brand {
    padding-top: 68px;
  }

  .site-brand .inner-hero.brand-hero {
    padding: 42px 0 52px;
    border-radius: 0 0 16px 16px;
  }

  .site-brand .brand-hero .brand-hero-row {
    display: block;
  }

  .site-brand .brand-hero .eyebrow {
    margin-bottom: 12px;
  }

  .site-brand .brand-hero h1 {
    font-size: clamp(1.85rem, 7vw, 2.6rem);
    line-height: 1.45;
  }

  .site-brand .brand-hero .inner-hero-lead {
    font-size: 1rem;
    line-height: 1.9;
  }

  .site-brand .brand-intro {
    grid-template-columns: 1fr;
    gap: 28px;

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

  .site-brand .brand-panel {
    width: 100%;
    padding: 24px 18px;
    gap: 12px;
  }

  .site-brand .brand-panel .brand-panel-logo {
    width: min(100%, 250px);
    padding: 14px;
    border-radius: 18px;
  }

  .site-brand .brand-panel strong {
    font-size: 1.3rem;
  }

  .site-brand .brand-panel small {
    font-size: 0.88rem;
  }

  .site-brand .brand-intro h2 {
    font-size: 1.8rem;
  }

  .site-brand .brand-section,
  .site-brand .seo-rich-content,
  .site-brand .faq-list {
    padding: 55px 0;
  }

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

  .site-brand .section-heading h2 {
    font-size: 1.8rem;
  }

  .site-brand .brand-feature-grid {
    grid-template-columns: 1fr;
  }

  .site-brand .brand-feature-grid article:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .site-brand .brand-feature-grid article {
    padding: 23px;
  }

  .site-brand .seo-copy-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .site-brand .seo-copy-grid article {
    padding: 22px;
  }

  .site-brand .faq-list summary {
    padding: 17px 18px 17px 48px;
    font-size: 0.95rem;
  }

  .site-brand .faq-list summary::after {
    left: 17px;
  }

  .site-brand .faq-list details p {
    padding: 0 18px 20px;
    font-size: 0.94rem;
  }

  .site-brand .detail-cta {
    padding: 55px 0;
  }

  .site-brand .detail-cta h2 {
    font-size: 1.8rem;
  }

  .site-brand .btn-hotline {
    max-width: 100%;
    padding: 12px 22px;
    font-size: 0.96rem;
  }
}


/* =========================================================
   14. الشاشات الصغيرة جدًا
========================================================= */
@media (max-width: 380px) {

  .site-brand .brand-hero h1 {
    font-size: 1.75rem;
  }

  .site-brand .brand-hero .inner-hero-lead {
    font-size: 0.94rem;
  }

  .site-brand .section-heading h2,
  .site-brand .brand-intro h2 {
    font-size: 1.55rem;
  }

  .site-brand .brand-feature-grid article,
  .site-brand .seo-copy-grid article {
    padding: 18px;
  }

  .site-brand .brand-panel .brand-panel-logo {
    width: min(100%, 220px);
    padding: 12px;
  }

  .site-brand .faq-list summary {
    padding-right: 15px;
    font-size: 0.9rem;
  }
}


/* =========================================================
   15. تقليل الحركة لمن يفضّلون ذلك
========================================================= */
@media (prefers-reduced-motion: reduce) {

  .site-brand *,
  .site-brand *::before,
  .site-brand *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}