/* =========================================================
   STORY.CSS — صفحة قصتنا (مستقلة عن index.css)
   ========================================================= */

/* ================= BASE / RESET / VARIABLES ================= */
:root{
  --navy:#0B3665;
  --navy-deep:#082747;
  --navy-ink:#06203C;
  --teal:#17B2A2;
  --teal-soft:#5fd3c4;
  --gray:#6A7177;
  --white:#FFFFFF;
  --paper:#FAFAF7;
  --line:#DCE2E4;
  --line-dark:rgba(255,255,255,.14);
  --ease:cubic-bezier(.22,.61,.36,1);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:'Tajawal',sans-serif !important;
  color:var(--navy);
  background:var(--white);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{text-decoration:none;color:inherit;}
ul{list-style:none;margin:0;padding:0;}
button{font-family:inherit;cursor:pointer;border:none;background:none;}
.en{font-family:'Poppins',sans-serif;direction:ltr;unicode-bidi:isolate;}
.wrap{max-width:1240px;margin:0 auto; padding:0 28px;}
section{position:relative;}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms !important; transition-duration:.001ms !important;}
}

a:focus-visible, button:focus-visible{
  outline:2px solid var(--teal); outline-offset:3px;
}

h1,h2,h3,h4{margin:0;color:var(--navy);}

/* ================= BUTTONS ================= */
.btn{
  display:inline-flex; align-items:center; gap:8px; padding:13px 28px;
  border-radius:2px; font-weight:700; font-size:16.5px;
  transition:transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn-teal{background:var(--teal); color:var(--white);}
.btn-teal:hover{background:var(--teal-soft);}
.btn-primary{background:var(--navy); color:var(--white);}
.btn-primary:hover{background:var(--teal);}

/* ================= TOAST / BACK-TO-TOP ================= */
.toast{
  position:fixed; bottom:28px; left:50%; transform:translateX(-50%) translateY(20px);
  background:var(--navy-ink); color:var(--white); padding:14px 26px; font-size:16px; font-weight:600;
  opacity:0; pointer-events:none; transition:all .35s var(--ease); z-index:200; white-space:nowrap;
}
.toast.show{opacity:1; transform:translateX(-50%) translateY(0);}
.back-top{
  position:fixed; bottom:28px; inset-inline-end:28px; width:48px; height:48px; background:var(--navy);
  display:flex; align-items:center; justify-content:center; opacity:0; visibility:hidden; transform:translateY(10px);
  transition:all .3s var(--ease); z-index:150;
}
.back-top.show{opacity:1; visibility:visible; transform:translateY(0);}
.back-top svg{width:18px; height:18px; stroke:var(--white);}
.back-top:hover{background:var(--teal);}

/* ================= PAGE HERO / BREADCRUMB ================= */
.page-hero{
  padding:180px 0 70px; background:var(--navy-ink);
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size:26px 26px;
}
.breadcrumb{display:flex; align-items:center; gap:8px; font-size:15px; color:rgba(255,255,255,.55); margin-bottom:22px;}
.breadcrumb a{color:rgba(255,255,255,.75); transition:color .25s var(--ease);}
.breadcrumb a:hover{color:var(--teal-soft);}
.breadcrumb span:last-child{color:var(--teal-soft);}
.page-hero h1{color:var(--white); font-size:clamp(28px,4vw,42px); font-weight:800; margin:0 0 16px;}
.page-hero p{color:rgba(255,255,255,.62); font-size:17px; line-height:1.95; max-width:640px; margin:0;}

/* ================= SECTION HEAD (shared pattern) ================= */
.struct-head{max-width:720px; margin:0 0 52px;}
.struct-kicker{
  display:inline-block;  font-weight:600;
  letter-spacing:.06em; color:var(--teal); text-transform:uppercase; margin-bottom:14px;
}
.struct-head h2{font-size:clamp(24px,2.8vw,32px); font-weight:800; line-height:1.5; margin-bottom:14px;}
.struct-head p{color:var(--gray); font-size:16.5px; line-height:1.9; margin:0;}

/* ================= NARRATIVE ================= */
.story-narrative{padding:100px 0; background:var(--white);}
.narrative-grid{display:grid; grid-template-columns:280px 1fr; gap:70px; align-items:stretch;}
.narrative-figure{
  display:flex; align-items:center; justify-content:center;
  height:100%; min-height:100%;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size:18px 18px;
  border:1px solid var(--line-dark);
  overflow:hidden;
}
.narrative-figure img{width:100%; height:100%; object-fit:cover;}
.narrative-copy p{color:var(--gray); font-size:17px; line-height:2; margin:0 0 22px; text-align:justify;}
.narrative-copy p:last-child{margin-bottom:0;}


/* ================= RESPONSIVE ================= */
@media (max-width:960px){
  .narrative-grid{grid-template-columns:1fr; gap:36px;}
  .narrative-figure{height:auto; aspect-ratio:4/3;}
  .principle-grid{grid-template-columns:repeat(3,1fr);}
}
@media (max-width:640px){
  .page-hero{padding:150px 0 56px;}
  .story-narrative{padding:64px 0;}
  .evolution-section{padding:10px 0 64px;}
  .principles-section{padding:10px 0 64px;}
  .struct-head{margin-bottom:34px;}
  .evolution-flow{flex-direction:column;}
  .evolution-connector{width:auto; height:36px;}
  .evolution-connector svg{transform:rotate(-90deg);}
  .principle-grid{grid-template-columns:repeat(2,1fr);}
  .narrative-copy p{font-size:16px; line-height:1.9;}
}