/*
 RIC Homepage 2026 — Stage G
 Current Masjid → Approved Expansion Plan

 Strict imagery policy:
 - real current masjid image only
 - approved architectural plan only
 - no AI future rendering
 - no decorative substitute imagery
*/

.ric-g-expansion{
  width:min(
    calc(100% - clamp(24px,5vw,80px)),
    1600px
  );

  margin:
    clamp(18px,3vw,34px)
    auto;

  padding:
    clamp(20px,3vw,36px);

  border-radius:24px;

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

  border:
    1px solid rgba(15,91,69,.12);

  box-shadow:
    0 16px 42px rgba(0,61,48,.10);
}

.ric-g-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  flex-wrap:wrap;

  margin-bottom:
    clamp(16px,2vw,24px);
}

.ric-g-eyebrow{
  margin-bottom:5px;

  color:#b88926;

  font-size:11px;
  font-weight:900;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.ric-g-title{
  margin:0;

  color:#073e31;

  font-size:
    clamp(1.8rem,3.4vw,3.4rem);

  line-height:1.02;
}

.ric-g-intro{
  max-width:680px;

  margin:
    8px 0 0;

  color:#4f665e;

  font-size:
    clamp(.94rem,1.15vw,1.06rem);

  line-height:1.5;
}

.ric-g-address{
  display:inline-flex;
  align-items:center;
  gap:6px;

  padding:
    7px 11px;

  border-radius:999px;

  background:#eef6f2;
  color:#24584a;

  border:
    1px solid #dcebe4;

  font-size:10px;
  font-weight:750;
}

/* -----------------------------------
   Current → Future visual comparison
----------------------------------- */

.ric-g-compare{
  display:grid;

  grid-template-columns:
    minmax(0,1fr)
    auto
    minmax(0,1fr);

  gap:
    clamp(12px,1.8vw,22px);

  align-items:stretch;
}

.ric-g-card{
  min-width:0;

  overflow:hidden;

  border-radius:19px;

  background:#f7faf8;

  border:
    1px solid #dce9e3;
}

.ric-g-card-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;

  padding:
    12px 14px;

  background:#f1f7f4;
}

.ric-g-card-title{
  margin:0;

  color:#0b4d3c;

  font-size:
    clamp(1rem,1.5vw,1.2rem);
}

.ric-g-tag{
  padding:
    4px 8px;

  border-radius:999px;

  background:#0e6a50;
  color:#fff;

  font-size:9px;
  font-weight:850;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.ric-g-card.is-approved
.ric-g-tag{
  background:#b98a28;
}

.ric-g-media{
  position:relative;

  min-height:
    clamp(240px,31vw,470px);

  display:grid;
  place-items:center;

  overflow:hidden;

  background:
    #edf2ef;
}

.ric-g-media img{
  width:100%;
  height:100%;

  position:absolute;
  inset:0;

  object-fit:cover;
}

.ric-g-card.is-approved
.ric-g-media img{
  object-fit:contain;

  padding:
    clamp(8px,1.5vw,18px);

  background:#fff;
}

.ric-g-placeholder{
  position:relative;
  z-index:1;

  width:min(80%,420px);

  padding:25px;

  text-align:center;

  color:#667b73;

  border:
    1px dashed #afc3ba;

  border-radius:14px;

  background:
    rgba(255,255,255,.72);
}

.ric-g-placeholder strong{
  display:block;

  margin-bottom:5px;

  color:#315d50;

  font-size:14px;
}

.ric-g-placeholder span{
  font-size:11px;
  line-height:1.45;
}

.ric-g-card.has-image
.ric-g-placeholder{
  display:none;
}

.ric-g-caption{
  padding:
    11px 14px 14px;

  color:#63766e;

  font-size:11px;
  line-height:1.45;
}

.ric-g-arrow{
  align-self:center;

  width:
    clamp(38px,4vw,55px);

  height:
    clamp(38px,4vw,55px);

  display:grid;
  place-items:center;

  border-radius:50%;

  background:#0d684f;
  color:#fff;

  border:
    4px solid #edf5f1;

  box-shadow:
    0 8px 20px rgba(0,65,50,.15);

  font-size:
    clamp(1.25rem,2vw,1.8rem);

  font-weight:900;
}

/* -----------------------------------
   Stats
----------------------------------- */

.ric-g-stats{
  display:grid;

  grid-template-columns:
    repeat(4,minmax(0,1fr));

  gap:
    clamp(8px,1vw,14px);

  margin-top:
    clamp(14px,2vw,24px);
}

.ric-g-stat{
  padding:
    clamp(12px,1.6vw,18px);

  border-radius:15px;

  background:#f2f7f4;

  border:
    1px solid #e0ebe6;
}

.ric-g-stat-label{
  color:#698078;

  font-size:9px;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.ric-g-stat-value{
  margin-top:4px;

  color:#0d4f3e;

  font-size:
    clamp(1.25rem,2.2vw,2rem);

  font-weight:900;
  line-height:1;
}

.ric-g-stat-note{
  margin-top:4px;

  color:#768981;

  font-size:9px;
}

/* -----------------------------------
   Mission line
----------------------------------- */

.ric-g-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;

  margin-top:
    clamp(14px,2vw,22px);

  padding-top:
    clamp(13px,1.6vw,19px);

  border-top:
    1px solid #e2ebe7;
}

.ric-g-footer strong{
  color:#0b4d3c;

  font-size:
    clamp(1rem,1.4vw,1.18rem);
}

.ric-g-footer p{
  margin:3px 0 0;

  color:#697b74;

  font-size:11px;
}

.ric-g-footer a{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  min-height:42px;

  padding:
    9px 15px;

  border-radius:999px;

  background:#0d684f;
  color:#fff;

  text-decoration:none;

  font-size:11px;
  font-weight:850;
}

/* -----------------------------------
   Responsive
----------------------------------- */

@media (max-width:860px){

  .ric-g-compare{
    grid-template-columns:1fr;
  }

  .ric-g-arrow{
    transform:rotate(90deg);
    justify-self:center;
  }

  .ric-g-stats{
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }

}

@media (max-width:480px){

  .ric-g-stats{
    grid-template-columns:1fr 1fr;
  }

  .ric-g-footer a{
    width:100%;
  }

}
