/* =========================================================
   Path to Better — shared stylesheet
   Used across all pages (index, about, the-issue, solutions, contact)
   ========================================================= */

:root{
  --purple:#534AB7;
  --terracotta:#D85A30;
  --green:#0F6E56;
  --purple-lt:#EEEDFE;
  --peach-lt:#FAECE7;
  --green-lt:#E1F5EE;
  --ink:#1C1730;
  --paper:#FFFDF9;
  --max: 1180px;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:'Tajawal', sans-serif;
  color:var(--ink);
  background:var(--paper);
  line-height:1.8;
  overflow-x:hidden;
}
h1,h2,h3,h4{
  font-family:'Cairo', sans-serif;
  font-weight:800;
  line-height:1.3;
}
a{text-decoration:none; color:inherit;}
ul{list-style:none;}
img{max-width:100%; display:block;}
.wrap{max-width:var(--max); margin:0 auto; padding:0 32px;}

/* dotted texture util */
.dots{
  background-image: radial-gradient(currentColor 1.6px, transparent 1.6px);
  background-size: 16px 16px;
}

/* ============ NAV ============ */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,253,249,.92);
  backdrop-filter:blur(6px);
  border-bottom:1px solid rgba(28,23,48,.08);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 32px; max-width:var(--max); margin:0 auto;
}
.logo{display:flex; align-items:center; gap:5px; padding:3px 0 3px 0;}
.logo img{
  height:70px; width:auto; display:block;
}
nav.nav-links{
  margin-inline-start: auto;
}
nav.nav-links ul{display:flex; gap:30px; font-weight:700; font-size:15px;}
nav.nav-links ul li a{position:relative; padding:6px 2px; transition:color .2s;}
nav.nav-links ul li a:hover{color:var(--terracotta);}
nav.nav-links ul li a.current{color:var(--purple);}
nav.nav-links ul li a.current::after{
  content:""; position:absolute; bottom:-4px; right:0; left:0; height:3px;
  background:var(--purple); border-radius:2px;
}
.nav-right{display:flex; align-items:center; gap:22px;}
.nav-cta{
  background:var(--terracotta); color:#fff; font-weight:700; font-size:14px;
  padding:10px 20px; border-radius:30px; white-space:nowrap;
}

/* hamburger */
.nav-toggle{
  display:none;
  width:44px; height:44px; border-radius:12px; border:none;
  background:var(--green-lt); cursor:pointer;
  align-items:center; justify-content:center;
  flex-direction:column; gap:5px;
}
.nav-toggle span{
  display:block; width:22px; height:3px; border-radius:3px;
  background:var(--green); transition:transform .25s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1){transform:translateY(8px) rotate(45deg);}
.nav-toggle.is-open span:nth-child(2){opacity:0;}
.nav-toggle.is-open span:nth-child(3){transform:translateY(-8px) rotate(-45deg);}

/* mobile drawer */
.mobile-menu{
  display:none;
  position:fixed; inset:0; z-index:60;
  background:rgba(28,23,48,.45);
  opacity:0; pointer-events:none;
  transition:opacity .25s ease;
}
.mobile-menu.is-open{
  display:block;
  opacity:1; pointer-events:auto;
}
.mobile-panel{
  position:absolute; top:0; inset-inline-end:0; height:100%;
  width:min(78vw, 320px); background:#fff;
  padding:26px 26px 30px; box-shadow:-12px 0 30px rgba(0,0,0,.18);
  transform:translateX(100%);
  transition:transform .3s ease;
  display:flex; flex-direction:column;
}
[dir="rtl"] .mobile-panel{transform:translateX(-100%);}
.mobile-menu.is-open .mobile-panel{transform:translateX(0);}
.mobile-panel-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:30px;}
.mobile-panel-head img{height:56px;}
.mobile-close{
  width:38px; height:38px; border-radius:10px; border:none; background:var(--green-lt);
  cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.mobile-panel ul{display:flex; flex-direction:column; gap:6px; margin-bottom:26px;}
.mobile-panel ul li a{
  display:block; padding:14px 6px; font-weight:700; font-size:17px;
  border-bottom:1px solid rgba(28,23,48,.08);
}
.mobile-panel ul li a.current{color:var(--purple);}
.mobile-panel .nav-cta{text-align:center; margin-top:auto;}

/* ============ HERO ============ */
.hero{
  position:relative; padding:76px 0 110px; overflow:hidden;
  background:var(--green-lt);
}
.hero .dots{position:absolute; inset:0; color:rgba(15,110,86,.16); z-index:0;}
.blob{
  position:absolute; border-radius:42% 58% 65% 35% / 45% 40% 60% 55%;
}
.hero .blob1{
  width:560px; height:560px; background:var(--green); opacity:.14;
  top:-220px; inset-inline-start:-160px;
}
.hero .blob2{
  width:340px; height:340px; background:var(--terracotta); opacity:.13;
  bottom:-140px; inset-inline-end:-90px;
}
.hero-inner{
  position:relative; z-index:2;
}
.hero-copy{
  max-width:560px;
  margin-inline-end:auto;
}
.hero-photo{
  position:absolute; left:0; top:0; bottom:0;
  width:54%;
  background:url('images/hero.jpg') center/cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, black 55%, transparent 100%);
          mask-image: linear-gradient(to right, black 55%, transparent 100%);
  z-index:1;
}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  background:#fff; color:var(--green); font-weight:700; font-size:14px;
  padding:8px 16px; border-radius:30px; margin-bottom:22px;
  box-shadow:0 4px 14px rgba(15,110,86,.12);
}
.eyebrow span.dot{width:8px;height:8px;border-radius:50%;background:var(--terracotta);}
.hero h1{
  font-size:44px; color:var(--green); margin-bottom:22px;
}
.hero h1 em{color:var(--terracotta); font-style:normal;}
.hero p.lead{
  font-size:19px; max-width:52ch; color:#2b2440; margin-bottom:32px;
}
.hero-ctas{display:flex; gap:14px; flex-wrap:wrap;}
.btn{
  display:inline-flex; align-items:center; gap:8px;
  font-weight:700; font-size:15px; padding:14px 26px; border-radius:34px;
  transition:transform .18s ease, box-shadow .18s ease;
}
.btn:hover{transform:translateY(-2px);}
.btn-primary{background:var(--green); color:#fff; box-shadow:0 10px 24px rgba(15,110,86,.28);}
.btn-outline{background:transparent; color:var(--green); border:2px solid var(--green);}

.hero-visual{position:relative; display:flex; justify-content:center;}
.hero-card{
  width:100%; max-width:360px; background:#fff; border-radius:28px;
  padding:34px 30px; box-shadow:0 24px 50px rgba(28,23,48,.14);
  position:relative;
}
.hero-card .flame-icon{width:54px;height:54px; margin-bottom:18px;}
.hero-card h3{font-size:20px; color:var(--ink); margin-bottom:10px;}
.hero-card p{font-size:15px; color:#4a4360;}
.hero-badge{
  position:absolute; top:-18px; inset-inline-start:-18px;
  background:var(--terracotta); color:#fff; font-family:'Cairo',sans-serif;
  font-weight:800; font-size:13px; padding:10px 16px; border-radius:16px;
  box-shadow:0 10px 20px rgba(216,90,48,.35);
  transform:rotate(-6deg);
}

/* ============ PATH DIVIDER (signature element) ============ */
.path-track{
  position:relative; height:90px; max-width:var(--max); margin:0 auto;
  display:flex; align-items:center; justify-content:center;
}
.path-track svg{width:100%; height:100%;}

/* ============ INTRO / WHY SECTION ============ */
.intro{padding:20px 0 40px;}
.intro-grid{display:grid; grid-template-columns:.85fr 1.15fr; gap:64px; align-items:start;}
.kicker{
  font-family:'Cairo',sans-serif; font-weight:800; font-size:13px;
  color:var(--terracotta); letter-spacing:1px; margin-bottom:14px;
  display:flex; align-items:center; gap:10px;
}
.kicker::before{content:""; width:26px; height:3px; background:var(--terracotta); border-radius:3px;}
.intro h2{font-size:32px; color:var(--purple); margin-bottom:18px;}
.intro-grid p{font-size:17px; color:#372f52; margin-bottom:18px;}
.pull-note{
  background:var(--purple-lt); border-radius:20px; padding:26px 28px;
  font-family:'Cairo',sans-serif; font-weight:700; font-size:18px; color:var(--purple);
  position:relative;
}
.pull-note::before{
  content:"”"; font-family:Georgia, serif; font-size:60px; color:var(--purple);
  opacity:.25; position:absolute; top:-6px; inset-inline-start:22px;
}

.intro-img{
  width:100%;
  height:100%;
  min-height:280px;
  object-fit:cover;
  border-radius:24px;
  box-shadow:0 20px 44px rgba(28,23,48,.12);
}

.intro-photo{
  padding: 0 0 70px;
}
.intro-photo img{
  width:100%;
  max-height:480px;
  object-fit:cover;
  border-radius:28px;
  box-shadow:0 20px 44px rgba(28,23,48,.12);
}

/* ============ FIND HERE ============ */
.find{
  padding:50px 0 60px; background:var(--peach-lt); position:relative; overflow:hidden;
}
.find .dots{position:absolute; inset:0; color:rgba(216,90,48,.14);}
.find-head{position:relative; z-index:1; text-align:center; max-width:640px; margin:0 auto 50px;}
.find-head h2{font-size:32px; color:var(--terracotta); margin-bottom:14px;}
.find-head p{font-size:17px; color:#3d2f2a;}
.find-cards{position:relative; z-index:1; display:grid; grid-template-columns:repeat(3,1fr); gap:26px;}
.find-card{
  background:#fff; border-radius:24px; padding:34px 28px; text-align:start;
  box-shadow:0 14px 34px rgba(28,23,48,.08);
  transition:transform .2s ease;
}
.find-card:hover{transform:translateY(-6px);}
.find-num{
  width:44px; height:44px; border-radius:50%; background:var(--terracotta); color:#fff;
  display:flex; align-items:center; justify-content:center; font-family:'Cairo',sans-serif;
  font-weight:800; font-size:17px; margin-bottom:18px;
}
.find-card h3{font-size:19px; margin-bottom:10px; color:var(--ink);}
.find-card p{font-size:15px; color:#4a4360;}

/* ============ THREE PATHS (CTA cards) ============ */
.paths{padding:60px 0 80px;}
.paths-head{max-width:640px; margin:0 auto 50px; text-align:center;}
.paths-head h2{font-size:32px; color:var(--green); margin-bottom:14px;}
.paths-head p{font-size:17px; color:#372f52;}
.paths-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:26px;}
.path-card{
  border-radius:26px; padding:36px 30px; position:relative; overflow:hidden;
  color:#fff; min-height:250px; display:flex; flex-direction:column; justify-content:space-between;
  box-shadow:0 18px 38px rgba(28,23,48,.14);
}
.path-card .pc-dots{position:absolute; inset:0; opacity:.12;}
.path-card.c-purple{background:linear-gradient(155deg, var(--purple), #423795);}
.path-card.c-terra{background:linear-gradient(155deg, var(--terracotta), #b8461f);}
.path-card.c-green{background:linear-gradient(155deg, var(--green), #0a4c3c);}
.path-card .step{font-family:'Cairo',sans-serif; font-weight:800; font-size:13px; opacity:.85; margin-bottom:14px;}
.path-card h3{font-size:23px; margin-bottom:12px; position:relative; z-index:1;}
.path-card p{font-size:15px; opacity:.92; margin-bottom:26px; position:relative; z-index:1;}
.path-card .go{
  display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:15px;
  background:rgba(255,255,255,.16); padding:12px 20px; border-radius:30px;
  width:fit-content; position:relative; z-index:1; transition:background .2s;
}
.path-card:hover .go{background:rgba(255,255,255,.28);}
.go svg{width:18px; height:18px; transform:scaleX(-1);}

/* ============ FOOTER ============ */
footer{background:var(--ink); color:#fff; padding:56px 0 28px;}
.foot-grid{display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:40px; margin-bottom:40px;}
.foot-logo{display:flex; align-items:center; margin-bottom:14px;}
.foot-logo img{height:72px; filter:brightness(0) invert(1);}
footer p{color:#c9c4dc; font-size:14.5px; max-width:38ch;}
footer h4{font-family:'Cairo',sans-serif; font-size:15px; margin-bottom:16px; color:#fff;}
footer ul li{margin-bottom:10px;}
footer ul li a{color:#c9c4dc; font-size:14.5px; transition:color .2s;}
footer ul li a:hover{color:var(--terracotta);}
.foot-bottom{
  border-top:1px solid rgba(255,255,255,.12); padding-top:22px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
  font-size:13px; color:#948da8;
}
.sociallinks {
  display: flex;
  gap: 14px;
}
.sociallinks svg {
  width: 24px;
  height: 24px;
  fill: #c9c4dc;
  transition: fill .2s ease;
}
.sociallinks a:hover svg {
  fill: var(--terracotta);
}

/* ============ RESPONSIVE ============ */
@media (max-width:900px){
  nav.nav-links{display:none;}
  .nav-right .nav-cta{display:none;}
  .nav-toggle{display:flex;}
  .hero {padding:0 0 40px 0;}
  .hero-inner{grid-template-columns:1fr; text-align:center;}
  .hero p.lead{margin-inline:auto;}
   .hero-photo{
    position:relative; left:auto; width:100%; height:260px; margin: auto;
    -webkit-mask-image:none; mask-image:none;
    margin-bottom:24px;
  }
  .hero-inner{ margin-left:0; max-width:100%; text-align:center; }
  .hero-ctas{justify-content:center;}
  .intro-grid{grid-template-columns:1fr;}
  .find-cards{grid-template-columns:1fr;}
  .paths-grid{grid-template-columns:1fr;}
  .foot-grid{grid-template-columns:1fr; gap:28px;}
  .hero h1{font-size:34px;}
}

@media (min-width:901px){
  .mobile-menu{display:none !important;}
}


/* =========================================================
   ABOUT PAGE ADDITIONS
   ========================================================= */

/* ---- PAGE HERO (lighter-weight version of homepage .hero, no photo) ---- */
.page-hero{
  position:relative; padding:44px 0 40px; overflow:hidden;
  background:var(--green-lt);
}
.page-hero .dots{position:absolute; inset:0; color:rgba(15,110,86,.16); z-index:0;}
.page-hero h1{font-size:40px; color:var(--green); margin-bottom:16px;}
.page-hero .lead{font-size:18px; color:#2b2440; margin-bottom:0;}

.page-hero .wrap{
  position:relative; z-index:1;
}
.page-hero-inner{
  max-width:640px;
  margin-inline-start:0;
  margin-inline-end:auto;
}

/* ---- PRINCIPLES (4-card variant of .find-card grid) ---- */
.principles-grid{
  grid-template-columns:repeat(2,1fr);
}
.principle-text{
  font-size:17px; font-weight:700; color:var(--ink); line-height:1.7;
}

/* ---- WHAT WE DO block ---- */
.what-we-do{
  max-width:760px; margin:0 auto; text-align:center;
}
.what-we-do h2{font-size:32px; color:var(--purple); margin-bottom:18px;}
.what-we-do p{font-size:17px; color:#372f52; margin-bottom:28px;}

/* ---- 2-card variant of .paths-grid (About page "keep exploring") ---- */
.paths-grid-2{
  grid-template-columns:repeat(2,1fr);
}

/* ---- RESPONSIVE additions ---- */
@media (max-width:900px){
  .page-hero h1{font-size:30px;}
  .principles-grid{grid-template-columns:1fr;}
  .paths-grid-2{grid-template-columns:1fr;}
}

/* =========================================================
   THE ISSUE PAGE ADDITIONS (v2 — varied layout)
   ========================================================= */

/* ---- Highlighted numbers within stat text ---- */
.stat-num{
  color:var(--terracotta);
  font-weight:800;
}

/* ---- Bold lead-in line before a CTA button ---- */
.prompt-line{
  font-family:'Cairo',sans-serif;
  font-weight:700;
  font-size:18px;
  color:var(--ink);
  margin-bottom:20px;
}

/* ---- Page hero icon badge (this page only) ---- */
.page-hero--issue .page-hero-inner{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
}
.hero-icon{
  width:52px; height:52px; margin-bottom:16px;
}
.hero-icon svg{width:100%; height:100%;}

/* ---- Full-width media placeholder (hero photo, infographics) ---- */
.media-placeholder{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:14px;
  border:2px dashed rgba(28,23,48,.22);
  border-radius:24px;
  background:rgba(28,23,48,.03);
  color:rgba(28,23,48,.45);
  text-align:center;
  padding:32px;
}
.media-placeholder svg{
  width:40px; height:40px;
  color:rgba(28,23,48,.32);
}
.media-placeholder p{
  font-size:13px; font-weight:700; letter-spacing:.3px;
  text-transform:uppercase; color:rgba(28,23,48,.4);
  max-width:38ch;
}
.media-placeholder--hero{
  aspect-ratio:16/7;
}
.media-placeholder--wide{
  aspect-ratio:16/8;
  margin-bottom:44px;
}
.media-placeholder--tall{
  aspect-ratio:4/5;
  height:100%;
}

/* ---- "Ask anyone" centered lead + big quote ---- */
.issue-lead{
  max-width:820px;
  text-align:center;
}
.issue-lead p:first-child{
  font-size:18px; color:#372f52; margin-bottom:8px;
}
.big-quote{
  font-family:'Cairo',sans-serif;
  font-weight:800;
  font-size:28px;
  line-height:1.5;
  color:var(--terracotta);
  margin:0;
}
.big-quote--start{
  text-align:start;
  font-size:21px;
  color:var(--purple);
}

/* ---- Stat band: full-width dark section for the scale stats ---- */
.stat-band{
  background:var(--ink);
  padding:64px 0;
}
.stat-band .wrap{
  max-width:900px;
}
.stat-band p{
  font-size:21px;
  line-height:1.9;
  color:#f2f0f8;
  text-align:center;
}
.stat-band .stat-num{
  color:#ff9d73;
}

/* ---- CTA band: tinted background wrapper for closing CTA section ---- */
.cta-band{
  background:var(--peach-lt);
  padding:70px 0;
}

/* ---- RESPONSIVE additions ---- */
@media (max-width:900px){
  .page-hero--issue .page-hero-inner{ align-items:center; }
  .media-placeholder--hero{ aspect-ratio:4/3; }
  .media-placeholder--wide{ aspect-ratio:4/3; margin-bottom:32px; }
  .media-placeholder--tall{ aspect-ratio:16/9; margin-top:24px; }
  .big-quote{ font-size:22px; }
  .big-quote--start{ text-align:center; font-size:19px; }
  .issue-lead{ text-align:center; }
  .stat-band p{ font-size:18px; }
}

/* ============ COOKIE CONSENT BANNER (CNDP COMPLIANT) ============ */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  inset-inline: 20px;
  max-width: 520px;
  margin-inline-start: auto;
  background: #ffffff;
  color: var(--ink);
  padding: 24px 28px;
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(28, 23, 48, 0.2);
  border: 1px solid rgba(28, 23, 48, 0.1);
  z-index: 9999;
  display: none;
  flex-direction: column;
  gap: 16px;
}
.cookie-banner.is-visible {
  display: flex;
}
.cookie-banner h4 {
  font-size: 18px;
  color: var(--purple);
  margin: 0;
}
.cookie-banner p {
  font-size: 14px;
  color: #4a4360;
  line-height: 1.6;
  margin: 0;
}
.cookie-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.btn-cookie-accept {
  background: var(--green);
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: 30px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-cookie-deny {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(28, 23, 48, 0.2);
  padding: 10px 22px;
  border-radius: 30px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-cookie-accept:hover { opacity: 0.9; }
.btn-cookie-deny:hover { background: rgba(28, 23, 48, 0.05); }

@media (max-width: 600px) {
  .cookie-banner {
    bottom: 12px;
    inset-inline: 12px;
    padding: 20px;
  }
  .cookie-actions {
    flex-direction: column;
  }
  .btn-cookie-accept, .btn-cookie-deny {
    width: 100%;
    text-align: center;
  }
}