/* ==========================================================================
   Children of Islam — Books Home Page
   Load AFTER coi-shared.css
   ========================================================================== */

.coi-proof-strip {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--deep);
}
.coi-proof-strip span { display: inline-flex; align-items: center; gap: 8px; }

/* ============ HERO ============ */
.coi-hero {
  position: relative;
  padding: 70px 0 90px;
  overflow: hidden;
  background: var(--cream);
}
.coi-hero__bg-arc {
  position: absolute;
  top: -180px;
  right: -220px;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--lime-2) 0%, var(--lime) 55%, transparent 75%);
  opacity: 0.35;
  z-index: 0;
}
.coi-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.coi-hero__visual { position: relative; height: 460px; }

.coi-fan { position: relative; width: 100%; height: 100%; }
.coi-fan__book {
  position: absolute;
  width: 190px;
  border-radius: 10px;
  box-shadow: 0 22px 40px -12px rgba(15, 74, 50, 0.35), 0 4px 10px rgba(15,74,50,0.12);
  border: 5px solid var(--white);
  transition: transform 0.35s ease;
}
.coi-fan__book img { border-radius: 5px; width: 100%; }
.coi-fan__book:hover { transform: translateY(-10px) scale(1.02); }
.coi-fan__book--1 { left: 4%;  top: 30%; transform: rotate(-12deg); z-index: 1; }
.coi-fan__book--2 { left: 26%; top: 6%;  transform: rotate(-3deg);  z-index: 2; }
.coi-fan__book--3 { left: 49%; top: 14%; transform: rotate(6deg);   z-index: 3; }
.coi-fan__book--4 { left: 68%; top: 34%; transform: rotate(14deg);  z-index: 1; }

.coi-fan__crescent { position: absolute; top: -6%; right: 6%; width: 92px; height: 92px; z-index: 0; }
.coi-fan__star { position: absolute; fill: var(--amber); }

/* ============ SPREAD ============ */
.coi-spread { padding: 90px 0; background: var(--white); }
.coi-spread__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.coi-spread__art {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-2);
  aspect-ratio: 16/11;
  display: flex; align-items: center; justify-content: center;
}
.coi-spread__art img { width: 100%; height: 100%; object-fit: cover; }
.coi-spread__points { margin-top: 30px; display: flex; flex-direction: column; gap: 22px; }
.coi-point { display: flex; gap: 16px; align-items: flex-start; }
.coi-point__mark {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--lime-2); display: flex; align-items: center; justify-content: center;
}
.coi-point__mark svg { width: 18px; height: 18px; }
.coi-point__text { font-size: 1.02rem; color: var(--ink); line-height: 1.5; padding-top: 4px; }
.coi-point__text strong { color: var(--deep); }

/* ============ SHELF STRIP ============ */
.coi-shelf { padding: 90px 0 100px; background: var(--cream); }
.coi-shelf__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.coi-shelf__track {
  display: flex; gap: 26px; overflow-x: auto; padding-bottom: 18px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.coi-shelf__track::-webkit-scrollbar { height: 6px; }
.coi-shelf__track::-webkit-scrollbar-thumb { background: var(--cream-2); border-radius: 3px; }
.coi-shelf__card {
  scroll-snap-align: start; flex: 0 0 200px; background: var(--white);
  border-radius: var(--radius-md); padding: 18px 18px 22px;
  box-shadow: 0 10px 26px -10px rgba(15,74,50,0.16); transition: transform 0.2s ease;
}
.coi-shelf__card:hover { transform: translateY(-6px); }
.coi-shelf__cover { border-radius: 8px; overflow: hidden; margin-bottom: 14px; box-shadow: 0 4px 14px rgba(0,0,0,0.12); }
.coi-shelf__age { margin-bottom: 10px; }
.coi-shelf__title { font-family: var(--font-body); font-weight: 700; font-size: 0.98rem; color: var(--ink); margin: 10px 0 14px; line-height: 1.3; }
.coi-shelf__link { font-size: 0.86rem; font-weight: 700; color: var(--deep); display: inline-flex; align-items: center; gap: 6px; }
.coi-shelf__link svg { width: 14px; height: 14px; }

/* ============ TRUST BAND ============ */
.coi-trust { background: var(--deep); color: var(--cream); padding: 64px 0; position: relative; overflow: hidden; }
.coi-trust::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 64px);
  pointer-events: none;
}
.coi-trust__grid { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; }
.coi-trust__big { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 5.2rem); color: var(--lime); line-height: 1; }
.coi-trust__copy { font-size: 1.05rem; line-height: 1.6; max-width: 42ch; color: var(--cream); opacity: 0.92; }
.coi-trust__copy strong { color: var(--lime-2); }

/* ============ AUDIENCE PANELS ============ */
.coi-audience { padding: 90px 0; background: var(--white); }
.coi-audience__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; }
.coi-audience__panel {
  border-radius: var(--radius-lg); padding: 44px; position: relative; overflow: hidden;
  min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end;
}
.coi-audience__panel--mothers { background: linear-gradient(160deg, var(--lime-2) 0%, var(--lime) 100%); }
.coi-audience__panel--schools { background: var(--cream-2); }
.coi-audience__panel h3 { margin-bottom: 10px; }
.coi-audience__panel--mothers h3 { color: var(--deep-2); }
.coi-audience__panel p { font-size: 1rem; line-height: 1.55; max-width: 36ch; margin-bottom: 22px; }
.coi-audience__panel--mothers p { color: var(--deep-2); }
.coi-audience__panel--schools p { color: var(--ink-soft); }

/* ============ FINAL CTA ============ */
.coi-final { padding: 100px 0 110px; background: var(--cream); text-align: center; }
.coi-final__wrap { max-width: 640px; margin: 0 auto; }
.coi-final .coi-cta-row { justify-content: center; }
.coi-final .coi-lede { margin-inline: auto; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .coi-hero__grid { grid-template-columns: 1fr; }
  .coi-hero__visual { height: 380px; order: -1; }
  .coi-spread__grid { grid-template-columns: 1fr; }
  .coi-spread__art { aspect-ratio: 16/10; }
  .coi-trust__grid { grid-template-columns: 1fr; text-align: center; }
  .coi-audience__grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .coi-hero { padding: 50px 0 90px; }
  .coi-h1 { font-size: 2.4rem; }
  .coi-fan__book { width: 130px; }
  .coi-fan__book--1 { left: 0%; top: 36%; }
  .coi-fan__book--2 { left: 22%; top: 10%; }
  .coi-fan__book--3 { left: 46%; top: 18%; }
  .coi-fan__book--4 { left: 66%; top: 38%; }
  .coi-shelf__card { flex: 0 0 165px; }
  .coi-audience__panel { padding: 32px; min-height: 260px; }
  .coi-lede { margin-bottom: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .coi-fan__book, .coi-shelf__card { transition: none; }
}
