/* =================================================================
   landing.css — styles for the home page (index.html)
   ================================================================= */

/* Hero — full viewport height (using dvh for mobile), centered */
.hero{
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 24px 60px;
  padding-top: calc(80px + var(--safe-top));
  text-align: center;
  overflow: hidden;
}

/* Decorative Islamic geometric background pattern (SVG data URI, very
   subtle green-on-cream). Pairs with the radial gradient body bg. */
.hero::before{
  content:"";
  position: absolute; inset:0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><g fill='none' stroke='%230F5257' stroke-opacity='0.06' stroke-width='1'><path d='M40 0 L80 40 L40 80 L0 40 Z'/><circle cx='40' cy='40' r='18'/><path d='M0 0 L80 80 M80 0 L0 80'/></g></svg>");
  background-size: 80px 80px;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}
/* Soft vignette so center text reads cleanly */
.hero::after{
  content:"";
  position: absolute; inset:0;
  background: radial-gradient(circle at center, transparent 0%, var(--paper-dark) 90%);
  z-index: 1;
  pointer-events: none;
}

.hero-content{
  position: relative; z-index: 2;
  max-width: 860px;
}

.hero-badge{
  display: inline-flex; align-items:center; gap:8px;
  background: var(--surface);
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.hero-title{
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 9vw, 96px);
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.5px;
  line-height: 1.05;
  margin: 0 0 8px;
}
.hero-title-arabic{
  font-family: 'Amiri Quran', 'Amiri', serif;
  font-size: clamp(28px, 5vw, 44px);
  color: var(--green);
  margin: 0 0 24px;
  direction: rtl;
}
.hero-subtitle{
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--ink-soft);
  margin: 0 0 32px;
  font-weight: 500;
  max-width: 640px;
  margin-left: auto; margin-right: auto;
}

.hero-cta{
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  margin-top: 8px;
}
.hero-cta .btn{ font-size: 15px; padding: 14px 24px; min-height: 52px; }

.hero-icon-row{
  margin-top: 40px;
  display: flex; gap: 28px; justify-content: center; flex-wrap: wrap;
  color: var(--ink-soft); font-size: 12px;
}
.hero-icon-row span{ display: inline-flex; align-items: center; gap: 6px; }

/* Section block — used for Objective, Mushaf info, Project by, Credits preview */
.section{
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px;
}
.section--alt{ background: var(--paper); }
.section-head{
  text-align: center;
  margin-bottom: 32px;
}
.section-head h2{
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 5vw, 42px);
  color: var(--green);
  margin: 0 0 8px;
  font-weight: 700;
}
.section-head .eyebrow{
  display: inline-block;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--blue); font-weight: 700;
  margin-bottom: 12px;
}
.section-head p{
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 640px;
  margin: 0 auto;
}

/* Card grid — for the 3 main features */
.card-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card{
  background: var(--surface);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  text-align: center;
}
.card:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15,82,87,0.18);
}
.card-icon{
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}
.card h3{
  font-family: 'Cormorant Garamond', serif;
  color: var(--blue);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
}
.card p{
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 16px;
  line-height: 1.6;
}
.card .card-link{
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--green); font-weight: 600; font-size: 13px;
  text-decoration: none;
}
.card .card-link:hover{ color: var(--blue); }

/* Info / feature list */
.info-list{
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px; margin-top: 20px;
}
.info-item{
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--paper-line);
  border-radius: 12px;
}
.info-item .info-check{
  flex: 0 0 28px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.info-item .info-body h4{
  font-family: 'Work Sans', sans-serif;
  font-size: 14px; font-weight: 700;
  color: var(--ink); margin: 0 0 4px;
}
.info-item .info-body p{
  font-size: 13px; color: var(--ink-soft);
  margin: 0; line-height: 1.5;
}

/* Two-column "Project by" + "Resources" block */
.two-col{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 760px){ .two-col{ grid-template-columns: 1fr; } }

.col-block{
  background: var(--surface);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow);
}
.col-block h3{
  font-family: 'Cormorant Garamond', serif;
  color: var(--blue);
  font-size: 22px; font-weight: 700;
  margin: 0 0 12px;
}
.col-block ul{
  padding-left: 18px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}
.col-block ul li{ margin-bottom: 6px; }
.col-block p{
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 12px;
}

/* Centered CTA at bottom of landing */
.cta-bottom{
  text-align: center;
  padding: 60px 24px calc(80px + var(--safe-bot));
}
.cta-bottom h2{
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 5vw, 38px);
  color: var(--green);
  margin: 0 0 14px;
}
.cta-bottom p{
  color: var(--ink-soft);
  margin: 0 0 24px;
  font-size: 15px;
  max-width: 540px;
  margin-left: auto; margin-right: auto;
}

/* Embedded inline SVG <metadata> ownership marker (Layer D).
   Visually this SVG renders as a tiny dot; its <metadata> contains
   the ownership string in RDF format. */
.ownership-svg{
  position: absolute; width: 2px; height: 2px;
  overflow: hidden; opacity: 0; pointer-events: none;
  left: -10px; top: -10px;
}
