/* تعريف الخط السعودي */
@font-face {
    font-family: "Saudi";
    src: url("SA_Font/Saudi-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Saudi";
    src: url("SA_Font/Saudi-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}


  :root{
    --bg: #ECE2CC;
    --bg-alt: #F6EFDE;
    --card: #FBF7EC;
    --ink: #2A2318;
    --ink-soft: #5B5140;
    --green: #1F3B2C;
    --green-deep: #142A1F;
    --gold: #B8873B;
    --gold-light: #D9AE63;
    --clay: #9C4A28;
    --line: rgba(31,59,44,0.16);
    --shadow: 0 18px 40px -22px rgba(20,42,31,0.35);
    --radius: 4px;
  }
  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  @media (prefers-reduced-motion: reduce){
    html{scroll-behavior:auto;}
    *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important;}
  }

    body{
    margin:0;
    background:var(--bg);
    color:var(--ink);
    font-family: "Saudi", sans-serif;
    line-height:1.75;
    -webkit-font-smoothing:antialiased;
  }

    h1,h2,h3,.display{
    font-family: "Saudi", sans-serif;
    font-weight:700;
    color:var(--green-deep);
    margin:0;
  }
  a{color:inherit;text-decoration:none;}
  ul{margin:0;padding:0;list-style:none;}
  img,svg{display:block;max-width:100%;}
  .container{
    max-width:1120px;
    margin:0 auto;
    padding:0 28px;
  }
  section{scroll-margin-top:84px;}

  
  /* ---------- Sadu pattern (signature element) ---------- */
  .sadu-defs{position:absolute;width:0;height:0;overflow:hidden;}
  .sadu-strip{
    width:100%;
    height:26px;
    display:block;
  }
  .sadu-strip--tall{height:40px;}

  /* ---------- Header ---------- */
  header{
    position:sticky;
    top:0;
    z-index:100;
    background:rgba(236,226,204,0.92);
    backdrop-filter:blur(8px);
    border-bottom:1px solid var(--line);
  }
  .nav-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    height:76px;
  }
  .brand{
    display:flex;
    align-items:center;
    gap:12px;
  }
  .brand-mark{width:38px;height:38px;flex-shrink:0;}
  .brand-text{
    font-family: "Saudi", sans-serif;
    font-size:30px;
    font-weight:700;
    color:var(--green-deep);
    line-height:1;
  }
  .brand-text small{
    display:block;
    font-family: "Saudi", sans-serif;
    font-size:0.62rem;
    font-weight:500;
    letter-spacing:0.12em;
    color:var(--gold);
    margin-top:4px;
  }
  nav.links{
    display:flex;
    gap:6px;
  }
  nav.links button{
    background:none;
    border:none;
    font-family: "Saudi", sans-serif;
    font-size:20px;
    font-weight:500;
    color:var(--ink-soft);
    padding:10px 30px;
    border-radius:var(--radius);
    cursor:pointer;
    position:relative;
    transition:color .2s ease;
  }
  nav.links button::after{
    content:"";
    position:absolute;
    right:16px;
    left:16px;
    bottom:5px;
    height:2px;
    background:var(--gold);
    transform:scaleX(0);
    transition:transform .25s ease;
  }
  nav.links button:hover{color:var(--green-deep);}
  nav.links button.active{color:var(--green-deep); font-weight:700;}
  nav.links button:hover::after{transform:scaleX(1);}
  .menu-toggle{
    display:none;
    background:none;
    border:1px solid var(--line);
    border-radius:var(--radius);
    width:42px;height:42px;
    cursor:pointer;
    align-items:center;
    justify-content:center;
  }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after{
    content:"";
    display:block;
    width:18px;height:2px;
    background:var(--green-deep);
    position:relative;
  }
  .menu-toggle span::before{position:absolute;top:-6px;}
  .menu-toggle span::after{position:absolute;top:6px;}

  /* @media (max-width: 860px){
    nav.links{
      position:fixed;
      inset:76px 0 auto 0;
      background:var(--bg-alt);
      flex-direction:column;
      padding:10px 24px 20px;
      border-bottom:1px solid var(--line);
      transform:translateY(-8px);
      opacity:0;
      pointer-events:none;
      transition:opacity .2s ease, transform .2s ease;
    }
    nav.links.open{opacity:1; transform:translateY(0); pointer-events:auto;}
    nav.links button{text-align:right; width:100%;}
    .menu-toggle{display:flex;}
  }

  .back-btn {
    display: flex;
    align-items: center;
    gap: 12px;
} */

/* السهم الي جنب زر العودة  */
/* الدائرة */
.back-btn {
    display: flex;
    align-items: center;
    gap: 12px;

    direction: rtl;

    text-decoration: none;
    color: var(--ink-soft);
}

.back-text {
    order: 1;
}

.back-arrow {
    order: 2;

    width: 32px;
    height: 32px;

    flex: 0 0 32px;

    border: 2px solid var(--green-deep);
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    line-height: 1;

    color: var(--green-deep);

    transition: .25s ease;
}

.back-btn:hover .back-arrow {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateX(-4px);
}

/* نهاية ستلايل السهم الي جنب زر العودة */


/* ========================================
   Details Section
======================================== */

.details-section {
    background: var(--bg);
    padding: 90px 0;
}


/* عنوان الصفحة */

.details-head {
    max-width: 720px;

    margin-bottom: 55px;

    text-align: right;
}

.details-head .eyebrow {
    color: var(--gold);

    font-size: 15px;
    font-weight: 700;

    margin-bottom: 14px;
}

.details-head h1 {
    color: var(--green-deep);

    font-family: "Saudi", sans-serif;

    font-size: clamp(2rem, 4vw, 3rem);

    margin: 0 0 14px;
}

.details-head p {
    color: var(--ink-soft);

    font-size: 1rem;

    line-height: 1.8;

    margin: 0;
}


/* شبكة الكروت */

/* =========================================
   مسار التفاصيل
========================================= */

.details-flow {
    display: grid;

    /* كرت - سهم - كرت - سهم - كرت */
    grid-template-columns:
        minmax(0, 1fr)
        64px
        minmax(0, 1fr)
        64px
        minmax(0, 1fr);

    gap: 34px 10px;

    align-items: stretch;

    direction: rtl;
}


/* =========================================
   الكروت
========================================= */


.detail-card {
    position: relative;

    min-height: 300px;

    padding: 42px 34px 34px;

    background: var(--card);

    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);

    border-radius: 18px;

    box-shadow: var(--shadow);

    display: flex;
    flex-direction: column;

    /* مهم: لا نوسّط المحتوى عموديًا */
    justify-content: flex-start;

    text-align: right;

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


.detail-card:hover {
    transform: translateY(-5px);

    border-color: rgba(184, 135, 59, .55);

    box-shadow:
        0 18px 35px -22px rgba(20, 42, 31, .35);
}


/* الرقم */

.detail-number {
    position: absolute;

    top: 22px;
    right: 26px;

    color: var(--gold);

    font-size: 1.5rem;
    font-weight: 700;
}


/* عنوان الكارد */

.detail-card h2 {
    color: var(--green-deep);

    font-family: "Saudi", sans-serif;

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

    margin: 55px 0 20px;

    /* مساحة موحدة للعناوين */
    min-height: 82px;

    display: flex;
    align-items: flex-start;
}


/* تفاصيل الكارد */

.detail-card p {
    color: var(--ink-soft);

    font-size: .95rem;
    line-height: 2.15;

    margin: 0;

    text-align: right;
}


/* =========================================
   الأسهم بين الكروت
========================================= */

.detail-arrow {
    display: flex;

    align-items: center;
    justify-content: center;

    color: var(--gold);
}


.detail-arrow svg {
    width: 34px;
    height: 34px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================
   سهم النزول بين الصفوف
========================================= */

.row-turn {
    grid-column: 1 / -1;

    height: 45px;

    display: flex;

    align-items: center;

    color: var(--gold);
}


.row-turn svg {
    width: 32px;
    height: 32px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* نزول من نهاية الصف الأول */

.row-turn-left {
    justify-content: flex-end;

    padding-left: 10%;
}


/* نزول من نهاية الصف الثاني */

.row-turn-right {
    justify-content: flex-start;

    padding-right: 10%;
}


/* =========================================
   Responsive
========================================= */

@media (max-width: 1000px) {

    .details-flow {
        grid-template-columns: 1fr;

        gap: 14px;
    }


    .detail-card {
        min-height: 230px;
    }


    /* جميع الأسهم تصبح للأسفل بالجوال */

    .detail-arrow,
    .row-turn {
        height: 42px;

        justify-content: center;

        padding: 0;

        grid-column: auto;
    }


    .detail-arrow svg {
        transform: rotate(-90deg);
    }


    .row-turn svg {
        width: 30px;
        height: 30px;
    }

}

/* الخط قبل العنوان الصغير الاصفر العنوان */
.details-head .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 700;

    position: relative;
}

.details-head .eyebrow::before {
    content: "";

    display: block;

    width: 22px;
    height: 1px;

    background-color: #B8873B;

    flex-shrink: 0;
}
/* Responsive */

@media (max-width: 1100px) {

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

}


@media (max-width: 600px) {

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

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

    .detail-card {
        min-height: 190px;
    }

}
/* ==================================================
   مربع التواصل للحصول على الكتاب
================================================== */

.book-contact {
    width: 100%;

    margin-top: 55px;

    padding: 42px 48px;

    background: var(--green-deep);

    border: 1px solid rgba(217, 174, 99, .28);
    border-top: 3px solid var(--gold);

    border-radius: 20px;

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


/* ==================================================
   العناوين
================================================== */

.book-contact-head {
    margin-bottom: 32px;

    text-align: right;
}


/* العنوان الصغير */

.book-contact-eyebrow {
    display: flex;
    align-items: center;

    gap: 12px;

    color: var(--gold-light);

    font-size: .88rem;
    font-weight: 700;

    margin-bottom: 10px;
}


/* الخط بجانب العنوان */

.book-contact-eyebrow::before {
    content: "";

    width: 25px;
    height: 1px;

    background: var(--gold);

    flex-shrink: 0;
}


/* العنوان الرئيسي */

.book-contact-head h2 {
    color: #F3E8CB;

    font-size: 2rem;
    font-weight: 700;

    margin: 0 0 8px;

    line-height: 1.5;
}


/* العنوان الفرعي */

.book-contact-head p {
    color: #C9BE9E;

    font-size: .95rem;

    line-height: 1.8;

    margin: 0;

    max-width: 650px;
}


/* ==================================================
   الجزء السفلي
================================================== */

.book-contact-content {
    display: grid;

    /*
       الصورة | وسائل التواصل
    */

    grid-template-columns: 280px 1fr;

    gap: 40px;

    align-items: stretch;
}


/* ==================================================
   صورة الكتاب
================================================== */

.book-image-area {
    display: flex;

    align-items: center;
    justify-content: center;
}


.book-image-box {
    width: 100%;
    height: 100%;

    min-height: 310px;

    padding: 12px;

    background: rgba(246, 239, 222, .06);

    border: 1px solid rgba(217, 174, 99, .35);

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}


.book-image-box img {
    width: 100%;
    height: 100%;

    max-height: 320px;

    object-fit: contain;

    display: block;
}


/* ==================================================
   أرقام التواصل + Instagram
================================================== */

.book-contact-links {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;
}


/* كل مربع */

.book-contact-item {
    min-height: 100px;

    padding: 16px 18px;

    display: flex;
    align-items: center;

    gap: 14px;

    background: rgba(255, 255, 255, .035);

    border: 1px solid rgba(217, 174, 99, .20);

    border-radius: 12px;

    transition:
        background .25s ease,
        border-color .25s ease,
        transform .25s ease;
}


.book-contact-item:hover {
    background: rgba(184, 135, 59, .10);

    border-color: var(--gold);

    transform: translateY(-2px);
}


/* الأيقونة */

.book-contact-icon {
    width: 44px;
    height: 44px;

    min-width: 44px;

    border: 1px solid rgba(217, 174, 99, .45);

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--gold-light);
}


.book-contact-icon svg {
    width: 20px;
    height: 20px;
}


/* النص */

.book-contact-text {
    display: flex;

    flex-direction: column;

    gap: 2px;
}


.book-contact-text span {
    color: #C9BE9E;

    font-size: .75rem;
}


.book-contact-text strong {
    color: #F3E8CB;

    font-size: 1rem;
    font-weight: 700;
}


/* الأرقام الإنجليزية */

.book-contact-item:not(.instagram-item) strong {
    direction: ltr;

    text-align: right;
}


/* Instagram */

.instagram-item {
    border-color: rgba(217, 174, 99, .40);
}


.instagram-item .book-contact-icon {
    color: var(--gold);
}


.instagram-item strong {
    color: var(--gold-light);
}


/* ==================================================
   Responsive
================================================== */

@media (max-width: 800px) {

    .book-contact {
        padding: 32px 24px;
    }


    .book-contact-content {
        grid-template-columns: 1fr;
    }


    .book-image-box {
        max-width: 300px;

        min-height: 300px;

        margin: 0 auto;
    }


    .book-contact-links {
        grid-template-columns: 1fr;
    }

}


  /* ---------- Footer ---------- */
  footer{background:var(--green-deep); color:#C9BE9E; padding:56px 0 34px;}
  .footer-grid{
    display:grid;
    grid-template-columns:1.2fr 1fr 1fr;
    gap:40px;
    padding-bottom:36px;

  }
  .footer-brand .brand-text{color:#F3E8CB;}
  .footer-brand p{margin-top:16px; font-size:0.9rem; max-width:34ch; color:#B8AD8C;}
  footer h4{font-size:0.85rem; color:#F3E8CB; margin-bottom:16px; font-family:"Saudi",sans-serif; font-weight:700;}
  footer ul li{font-size:0.88rem; padding:6px 0; color:#B8AD8C;}
  .footer-bottom{
    border-top:1px solid rgba(237,227,200,0.14);
    padding-top:24px;
    display:flex;
    justify-content:space-between;
    font-size:0.8rem;
    color:#8E8468;
    flex-wrap:wrap;
    gap:10px;
  }
  @media (max-width:720px){.footer-grid{grid-template-columns:1fr;}}

/* حساب الانستقرام  */

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: inherit;
    text-decoration: none;

    transition: .25s ease;
}

.instagram-icon {
    width: 20px;
    height: 20px;

    color: var(--gold-light);
}

.instagram-link:hover {
    color: var(--gold-light);
}

.instagram-link:hover .instagram-icon {
    color: var(--gold-light);
}

/*  نهايه التصميم حق الانستقرام */

/* زرالعوده للجوال  */

@media (max-width: 600px) {

    .nav-row {
        width: 100%;

        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 12px;
    }


    .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }


    .back-arrow {
        width: 29px;
        height: 29px;

        font-size: 18px;

        flex-shrink: 0;
    }

}