/* ==========================================================================
   Landing page
   Tokens (--brand-*, --ink, --muted, --radius, --shadow-*) come from app.css.
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

/* Anchor targets must clear the sticky navbar. */
.landing section[id] {
  scroll-margin-top: 4.5rem;
}

.landing .section-eyebrow {
  display: inline-block;
  margin-bottom: .6rem;
  padding: .3rem .8rem;
  border-radius: 2rem;
  background: var(--brand-green-light);
  color: var(--brand-green-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.landing .section-title {
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}

.landing .section-lead {
  max-width: 40rem;
  margin-inline: auto;
  color: var(--muted);
}

/* ---------- Navbar ---------- */
.site-nav {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(15, 110, 79, .08);
}

.site-nav .nav-link {
  color: var(--ink);
  font-weight: 500;
  font-size: .93rem;
  border-radius: .5rem;
  transition: color .15s ease, background-color .15s ease;
}

.site-nav .nav-link:hover {
  color: var(--brand-green);
  background: var(--brand-green-light);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: .65rem;
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-dark));
  color: #fff;
  font-size: 1.05rem;
}

/* ---------- Hero ---------- */
.landing-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .10) 0, transparent 42%),
    radial-gradient(circle at 92% 0%, rgba(200, 149, 44, .30) 0, transparent 45%),
    linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cpath d='M36 6l7 14 15-7-7 15 14 7-14 7 7 15-15-7-7 14-7-14-15 7 7-15-14-7 14-7-7-15 15 7z' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1'/%3E%3C/svg%3E");
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}

.landing-hero .container {
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .9rem .4rem .5rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 2rem;
  background: rgba(255, 255, 255, .10);
  font-size: .85rem;
  font-weight: 600;
}

.hero-badge .dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--brand-gold);
  color: #fff;
  font-size: .7rem;
}

.hero-title {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.025em;
}

.hero-title .accent {
  color: #f1c768;
}

.hero-lead {
  max-width: 34rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .88);
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  color: rgba(255, 255, 255, .9);
  font-size: .9rem;
}

.hero-points li {
  white-space: nowrap;
}

/* Wide enough for one row; below this the points wrap onto two lines. */
@media (min-width: 1200px) {
  .hero-points {
    flex-wrap: nowrap;
  }
}

.hero-points i {
  color: #f1c768;
  margin-right: .35rem;
}

/* Hero actions: side by side on desktop, stacked full-width on phones. */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.btn-hero {
  padding: .75rem 1.35rem;
  font-size: 1rem;
  line-height: 1.4;
  white-space: nowrap;
}

/* Narrow desktop/laptop: the text column is only ~456px, so tighten the buttons to keep them on one row. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .btn-hero {
    padding: .7rem 1.05rem;
    font-size: .94rem;
  }

  .hero-actions {
    gap: .55rem;
  }
}

@media (max-width: 575.98px) {
  .hero-actions .btn-hero {
    flex: 1 1 100%;
    text-align: center;
  }
}

.btn-hero-primary {
  background: #fff;
  color: var(--brand-green-dark);
  font-weight: 700;
  border: none;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45);
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn-hero-primary:hover {
  background: #fff;
  color: var(--brand-green);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(0, 0, 0, .5);
}

.btn-hero-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .45);
  font-weight: 600;
}

.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border-color: #fff;
}

/* ---------- TV mockup ---------- */
.tv-wrap {
  position: relative;
  max-width: 560px;
  margin-inline: auto;
}

.tv-wrap::before {
  content: "";
  position: absolute;
  inset: 8% -4% -6%;
  background: radial-gradient(closest-side, rgba(241, 199, 104, .35), transparent 70%);
  filter: blur(18px);
}

.tv {
  position: relative;
  padding: .7rem;
  border-radius: 1.1rem;
  background: #0b1412;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
  transition: transform .4s ease;
}

.tv:hover {
  transform: perspective(1200px) rotateY(0) rotateX(0);
}

.tv-stand {
  width: 38%;
  height: .55rem;
  margin: .55rem auto 0;
  border-radius: 0 0 .6rem .6rem;
  background: linear-gradient(#1c2b28, #0b1412);
}

.tv-screen {
  position: relative;
  overflow: hidden;
  border-radius: .7rem;
  background:
    radial-gradient(circle at 85% 0%, rgba(200, 149, 44, .22) 0, transparent 45%),
    linear-gradient(160deg, #0d3b2d 0%, #082a20 100%);
  color: #fff;
  text-align: left;
}

.tv-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem .6rem;
}

.tv-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .01em;
}

.tv-city {
  font-size: .72rem;
  color: rgba(255, 255, 255, .6);
}

.tv-clock {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #f1c768;
}

.tv-next {
  margin: 0 1.1rem;
  padding: .55rem .8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: .6rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
  font-size: .78rem;
}

.tv-next strong {
  color: #f1c768;
}

.tv-count {
  font-weight: 800;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.tv-times {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .45rem;
  padding: .8rem 1.1rem;
}

.tv-time {
  padding: .55rem .2rem;
  border-radius: .55rem;
  background: rgba(255, 255, 255, .06);
  text-align: center;
  transition: background-color .3s ease, transform .3s ease;
}

.tv-time .n {
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}

.tv-time .t {
  margin-top: .15rem;
  font-size: .95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.tv-time.is-next {
  background: linear-gradient(160deg, #d6a13a, #b07d1c);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -8px rgba(200, 149, 44, .8);
}

.tv-time.is-next .n {
  color: rgba(255, 255, 255, .85);
}

.tv-ticker {
  overflow: hidden;
  white-space: nowrap;
  padding: .5rem 0;
  background: rgba(0, 0, 0, .28);
  font-size: .72rem;
  color: rgba(255, 255, 255, .85);
}

.tv-ticker span {
  display: inline-block;
  padding-left: 100%;
  animation: tv-marquee 22s linear infinite;
}

.tv-caption {
  position: relative;
  margin-top: .9rem;
  /* Leaves room for the stats card that overlaps the hero's bottom edge. */
  margin-bottom: 2.4rem;
  text-align: center;
  font-size: .78rem;
  color: rgba(255, 255, 255, .7);
}

.float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .8rem;
  border-radius: .8rem;
  background: #fff;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 700;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
  animation: chip-float 5s ease-in-out infinite;
}

.float-chip i {
  color: var(--brand-green);
  font-size: 1.1rem;
}

.float-chip.chip-a { top: -1rem; right: -.5rem; }
.float-chip.chip-b { bottom: 2.4rem; left: -1.2rem; animation-delay: -2.4s; }

@keyframes tv-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- Stats strip ---------- */
.stats-strip {
  position: relative;
  z-index: 2;
  margin-top: -2.2rem;
}

.stats-card {
  padding: 1.4rem .5rem;
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.stat-item {
  padding: .4rem 1rem;
  text-align: center;
}

.stat-item + .stat-item {
  border-left: 1px solid #e9f0ed;
}

.stat-num {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--brand-green);
}

.stat-label {
  font-size: .82rem;
  color: var(--muted);
}

@media (max-width: 767.98px) {
  .stat-item:nth-child(3) { border-left: 0; }
  .stat-item:nth-child(n+3) { margin-top: .8rem; padding-top: 1rem; border-top: 1px solid #e9f0ed; }
}

/* ---------- Steps ---------- */
.step-card {
  position: relative;
  height: 100%;
  padding: 1.8rem 1.5rem 1.5rem;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.step-num {
  position: absolute;
  top: -1.1rem;
  left: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: .75rem;
  background: linear-gradient(135deg, var(--brand-gold), #a87a1d);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 16px -8px rgba(168, 122, 29, .9);
}

.step-icon {
  font-size: 1.7rem;
  color: var(--brand-green);
}

@media (min-width: 992px) {
  .steps-row > div:not(:last-child) .step-card::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -1.6rem;
    width: 1.6rem;
    border-top: 2px dashed rgba(15, 110, 79, .3);
  }
}

/* ---------- Features ---------- */
.feature-card {
  position: relative;
  height: 100%;
  padding: 1.6rem;
  border: 1px solid #e8efec;
  border-radius: var(--radius);
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 110, 79, .35);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: .85rem;
  background: var(--brand-green-light);
  color: var(--brand-green);
  font-size: 1.4rem;
  transition: background-color .18s ease, color .18s ease;
}

.feature-card:hover .feature-icon {
  background: var(--brand-green);
  color: #fff;
}

.feature-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
}

.feature-card.is-featured {
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(200, 149, 44, .35) 0, transparent 50%),
    linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
}

.feature-card.is-featured .feature-icon {
  background: rgba(255, 255, 255, .15);
  color: #f1c768;
}

.feature-card.is-featured p {
  color: rgba(255, 255, 255, .85);
}

.feature-card.is-featured .tag {
  display: inline-block;
  margin: .9rem .4rem 0 0;
  padding: .25rem .65rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, .14);
  font-size: .75rem;
  font-weight: 600;
}

/* ---------- Mosque directory ---------- */
.mosque-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.4rem;
  border: 1px solid #e8efec;
  border-radius: var(--radius);
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.mosque-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 110, 79, .35);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.mosque-avatar {
  width: 3.2rem;
  height: 3.2rem;
  flex-shrink: 0;
  border-radius: .9rem;
  object-fit: cover;
  background: var(--brand-green-light);
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.mosque-card .go {
  margin-top: auto;
  padding-top: 1rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--brand-green);
}

.mosque-card .go i {
  transition: transform .18s ease;
}

.mosque-card:hover .go i {
  transform: translateX(4px);
}

.mosque-card.is-cta {
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed rgba(15, 110, 79, .3);
  background: var(--brand-green-light);
}

/* ---------- Testimonials ---------- */
.testi-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.6rem;
  border: 1px solid #e8efec;
  border-radius: var(--radius);
  background: #fff;
}

.testi-quote {
  font-size: 2.2rem;
  line-height: 1;
  color: var(--brand-gold);
  opacity: .6;
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .9rem;
  border-radius: 2rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: .88rem;
}

/* ---------- Donation ---------- */
.donate-card {
  overflow: hidden;
  border-radius: 1.2rem;
  border: 1px solid #efe3c6;
  background: linear-gradient(135deg, #fffaf0 0%, #fff 60%);
}

.donate-box {
  height: 100%;
  padding: 1rem 1.1rem;
  border-radius: .9rem;
  background: #fff;
  border: 1px solid #efe3c6;
}

.donate-box .copy-btn {
  border: 0;
  background: transparent;
  color: var(--brand-gold);
  font-size: .8rem;
  font-weight: 700;
  padding: 0;
}

.donate-box .copy-btn:hover {
  color: #8d6416;
}

/* ---------- FAQ ---------- */
.faq .accordion-item {
  margin-bottom: .7rem;
  border: 1px solid #e8efec;
  border-radius: .9rem !important;
  overflow: hidden;
}

.faq .accordion-button {
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  box-shadow: none;
}

.faq .accordion-button:not(.collapsed) {
  color: var(--brand-green-dark);
  background: var(--brand-green-light);
}

.faq .accordion-button:focus {
  box-shadow: 0 0 0 .2rem rgba(15, 110, 79, .15);
}

.faq .accordion-body {
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- Final CTA ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 3rem 1.5rem;
  border-radius: 1.4rem;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .12) 0, transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(200, 149, 44, .35) 0, transparent 45%),
    linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 4rem;
  background: #0b2a21;
  color: rgba(255, 255, 255, .72);
}

.site-footer a {
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
}

.site-footer a:hover {
  color: #f1c768;
}

.site-footer h4 {
  margin-bottom: .9rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li + li {
  margin-top: .45rem;
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .82rem;
}

/* ---------- Scroll reveal (progressive enhancement) ---------- */
.js .reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--d, 0s);
}

.js .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 575.98px) {
  .float-chip { display: none; }
  .tv { transform: none; }
  .tv-clock { font-size: 1.5rem; }
  .tv-time .t { font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tv, .tv:hover { transform: none; }
  .tv-ticker span, .float-chip { animation: none; }
  .tv-ticker span { padding-left: 0; }
  .js .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
}
