/*
Theme Name: Christ's Compassion Ministry
Theme URI: http://localhost/godworkinpakistsnamanshahzad/
Author: Christ's Compassion Ministry
Description: Donation website for Christ's Compassion Ministry, led by Moheeb Ashraf in Faisalabad.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: hope-eternal
*/

:root {
  --ink: #101828;
  --navy: #0c1b33;
  --blue: #1d4ed8;
  --gold: #b5812f;
  --text: #1c2838;
  --muted: #5d6b7c;
  --line: rgba(16, 24, 40, .08);
  --paper: #f5f7fb;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(16, 24, 40, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 92px; }

body.admin-bar section[id] { scroll-margin-top: 124px; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  background: var(--navy);
  color: rgba(255, 255, 255, .78);
  padding: 9px 6vw;
  font-size: 13px;
}

.topbar a {
  color: white;
  text-decoration: none;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px 6vw;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

body.admin-bar .nav { top: 32px; }

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 14px;
  flex: none;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--navy);
  line-height: 1.05;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.03em;
}

.brand-sub {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  color: var(--navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 999px;
}

.nav-links a:hover { background: rgba(16, 24, 40, .05); }

.nav-list li:last-child a {
  background: var(--navy);
  color: white;
}

.nav-list li:last-child a:hover { background: #183056; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
  padding: 72px 6vw 88px;
  background:
    radial-gradient(900px 420px at 0% 0%, #e7eefc, transparent 70%),
    var(--paper);
}

.hero h1,
.section-title h2,
.page-intro h1,
.about-copy h3,
.footer h2 {
  color: var(--navy);
  letter-spacing: -.04em;
  line-height: 1.05;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 4.6vw, 68px);
  font-weight: 700;
}

.founder {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
}

.lead,
.about-copy p,
.section-title p,
.card p,
.entry-content p {
  color: #314155;
  font-size: 17px;
  line-height: 1.7;
}

.lead { max-width: 40rem; margin: 0 0 22px; }

.verse {
  margin: 0;
  padding: 2px 0 2px 16px;
  border-left: 2px solid var(--gold);
  color: var(--navy);
  font-size: 16px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.6;
}

.verse cite {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 32px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.stats strong {
  display: block;
  color: var(--navy);
  font-size: 20px;
  letter-spacing: -.03em;
}

.stats span {
  color: var(--muted);
  font-size: 13px;
}

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: white;
  padding: 13px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.btn:hover { background: #183056; }

.btn.gold {
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(16, 24, 40, .16);
}

.btn.gold:hover { background: white; }

.hero-photo img {
  display: block;
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.section { padding: 88px 6vw; }

.section.alt { background: white; }

.section-title {
  max-width: 680px;
  margin: 0 0 40px;
}

.section-title h2,
.page-intro h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
}

.section-title p,
.page-intro p { margin: 0; }

.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.about-photo img {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 28px;
}

.about-copy h3 {
  margin: 0 0 14px;
  font-size: 32px;
}

.about-copy p { margin: 0 0 16px; }

.address-line {
  margin-top: 8px;
  color: var(--navy);
}

.story-rest {
  max-width: 760px;
  margin: 40px 0 0;
}

.story-rest p {
  margin: 0 0 16px;
  color: #314155;
  font-size: 17px;
  line-height: 1.75;
}

.cards-care,
.vision-grid {
  grid-template-columns: repeat(2, 1fr);
}

.donate-grid-two {
  grid-template-columns: .85fr 1.15fr;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
}

.social-card .platform {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.social-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 22px;
  letter-spacing: -.03em;
}

.social-card .handle {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.social-card p:last-of-type {
  margin: 0 0 22px;
  color: #314155;
  font-size: 15px;
  line-height: 1.6;
}

.social-card .btn { margin-top: auto; }

.donate-box a {
  color: var(--navy);
  text-decoration: none;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center 12%;
}

.card-content { padding: 22px 22px 24px; }

.card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 20px;
  letter-spacing: -.03em;
}

.card p { margin: 0 0 16px; font-size: 15px; }

.card .scripture {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f7f3ea;
  color: #5d4820;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.gallery-card {
  position: relative;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 15%;
}

.gallery-card .cap {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  color: var(--navy);
  font-size: 14px;
  line-height: 1.5;
}

.gallery-card .cap span { color: #3d4c60; }

.donate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.donate-box {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 26px 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.donate-box h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 22px;
  letter-spacing: -.03em;
}

.donate-box dl { margin: 0; }

.donate-box dl div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #eef1f5;
}

.donate-box dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.donate-box dd {
  margin: 0;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
}

.entry-content p:first-child { margin-top: 0; }

.footer {
  background: var(--navy);
  color: white;
  padding: 72px 6vw 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px 64px;
  align-items: start;
}

.footer .eyebrow { color: #e2c48a; }

.footer h2 {
  max-width: 12ch;
  margin: 0 0 14px;
  color: white;
  font-size: clamp(32px, 4vw, 48px);
}

.footer-intro p {
  max-width: 460px;
  margin: 0;
  color: rgba(255, 255, 255, .74);
  font-size: 17px;
  line-height: 1.7;
}

.footer-aside {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 32px 56px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}

.footer-label {
  margin: 0 0 4px;
  color: #e2c48a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.footer-links a {
  color: white;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.footer-social a { font-weight: 500; color: rgba(255, 255, 255, .82); }

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
}

.footer-meta a {
  color: white;
  font-weight: 600;
  text-decoration: none;
}

.video-wrap {
  max-width: 960px;
  overflow: hidden;
  background: var(--navy);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.video-frame {
  position: relative;
  padding-top: 56.25%;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.video-note a {
  color: var(--navy);
  font-weight: 700;
}

.cards.cards-care {
  grid-template-columns: repeat(2, 1fr);
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.vision-grid .card img {
  height: 320px;
  object-position: center 15%;
}

@media (max-width: 782px) {
  body.admin-bar .nav { top: 46px; }
}

@media (max-width: 980px) {
  .hero,
  .about-grid,
  .cards,
  .cards-care,
  .vision-grid,
  .donate-grid,
  .donate-grid-two,
  .social-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .footer-aside { justify-content: flex-start; }

  .gallery { grid-template-columns: 1fr; }

  .hero { padding: 40px 22px 56px; gap: 28px; }

  .hero-photo img,
  .about-photo img { height: 420px; }

  .card img,
  .vision-grid .card img,
  .gallery-card img { height: 240px; }

  .section { padding: 64px 22px; }

  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .nav-list { justify-content: flex-start; }

  .topbar { justify-content: center; text-align: center; }
}

@media (max-width: 640px) {
  .donate-box dl div { grid-template-columns: 1fr; gap: 2px; }

  .topbar { flex-direction: column; align-items: center; gap: 4px; }
}
