/* ============================================================
   Xhamia & Qendra Islame Pisa — static site
   ============================================================ */

:root {
  --green-900: #0d3b2e;
  --green-800: #11402f;
  --green-700: #1a4e3a;
  --green-600: #245a45;
  --green-100: #e6efe9;
  --green-50:  #f1f6f2;
  --gold-600:  #c98947;
  --gold-500:  #d99757;
  --gold-300:  #e5b079;
  --cream:     #f5efe6;
  --cream-2:   #efe7d7;
  --line:      #e8e2d5;
  --line-2:    #ece6d8;
  --text:      #1f2a26;
  --muted:     #6b7672;
  --white:     #ffffff;

  --shadow-sm: 0 1px 2px rgba(13, 59, 46, .05), 0 1px 1px rgba(13, 59, 46, .04);
  --shadow:    0 8px 24px rgba(13, 59, 46, .07), 0 2px 6px rgba(13, 59, 46, .04);
  --radius:    10px;
  --radius-lg: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; color: var(--green-900); }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ============ TOPBAR ============ */
.topbar {
  background: var(--green-900);
  color: #d9e1dc;
  font-size: 12.5px;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 36px;
  gap: 24px;
}
.topbar__quote { margin: 0; opacity: .92; }
.topbar__quote-ar { font-family: 'Cormorant Garamond', serif; font-size: 14px; margin-right: 8px; }
.topbar__quote-sep { opacity: .5; margin: 0 6px; }
.topbar__social {
  display: flex; gap: 14px; align-items: center;
}
.topbar__social svg { width: 16px; height: 16px; opacity: .85; transition: .2s; }
.topbar__social a:hover svg { opacity: 1; color: var(--gold-300); }

/* ============ HEADER ============ */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 78px; gap: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 50px;
  color: var(--green-900);
}
.brand__mark svg { width: 100%; height: 100%; }
.brand__text strong {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 700;
  color: var(--green-900);
  letter-spacing: .04em;
  line-height: 1.15;
}
.brand__text small {
  display: block;
  font-size: 10px; font-weight: 500;
  color: var(--gold-600);
  letter-spacing: .14em;
  margin-top: 3px;
}

.nav ul { display: flex; gap: 28px; }
.nav a {
  font-size: 14px; font-weight: 500;
  color: #2a3a33;
  position: relative;
  padding: 8px 0;
  transition: color .2s;
}
.nav a:hover { color: var(--green-900); }
.nav a.is-active { color: var(--green-900); font-weight: 600; }
.nav a.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--gold-500); border-radius: 2px;
}

.header__right { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; gap: 6px; align-items: center; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px; font-weight: 600;
  color: #3c4a44;
  background: #fff;
  transition: .2s;
}
.lang__btn:hover { border-color: var(--green-600); color: var(--green-900); }
.lang__btn.is-active { border-color: var(--green-700); background: var(--green-50); color: var(--green-900); }
.flag { width: 16px; height: 11px; border-radius: 1px; display: inline-block; background: #ccc; }
.flag--al { background: linear-gradient(#e41e20 50%, #c30) ; }
.flag--it { background: linear-gradient(to right, #009246 33%, #fff 33% 66%, #ce2b37 66%); }
.flag--sa { background: linear-gradient(#006c35 50%, #fff 50%); position: relative; }
.flag--en { background: linear-gradient(#012169, #012169); position: relative; }
.flag--en::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(to bottom right, transparent 45%, #fff 45% 55%, transparent 55%),
  linear-gradient(to top right,    transparent 45%, #fff 45% 55%, transparent 55%);
}

.header__mobile { display: none; align-items: center; gap: 8px; }
.lang-mini {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--line); padding: 6px 8px; border-radius: 6px;
  font-size: 12px; color: var(--green-900); font-weight: 600;
}
.lang-mini svg { width: 14px; height: 14px; }
.lang-mini .caret { width: 12px; height: 12px; opacity: .6; }
.burger {
  width: 36px; height: 36px;
  display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 0 8px;
}
.burger span {
  display: block; height: 2px; background: var(--green-900); border-radius: 2px;
}

.drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.drawer ul { padding: 8px 24px 16px; }
.drawer a {
  display: block; padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 15px; font-weight: 500; color: var(--green-900);
}
.drawer.is-open { display: block; }

/* ============ HERO ============ */
.hero {
  position: relative;
  background: var(--cream);
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(245,239,230,0) 70%, rgba(245,239,230,.55) 100%),
    url('assets/mosque.svg') center right/cover no-repeat,
    linear-gradient(180deg, #cfe1ee 0%, #e8eee8 60%, #d2c9b7 100%);
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(245,239,230,.85) 0%, rgba(245,239,230,.55) 28%, rgba(245,239,230,.1) 48%, rgba(245,239,230,0) 60%);
}
.hero__inner {
  position: relative; z-index: 2;
  padding: 110px 24px 140px;
  min-height: 620px;
  display: flex; align-items: center;
}
.hero__copy { max-width: 620px; }
.hero h1 {
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--green-900);
}
.hero p {
  margin: 20px 0 28px;
  font-size: 17px; color: #2c3a34;
  max-width: 540px;
}
.hero__cta {
  display: flex; flex-wrap: wrap; gap: 12px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px;
  border-radius: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--green-900); color: #fff; }
.btn--primary:hover { background: var(--green-700); transform: translateY(-1px); }
.btn--ghost {
  background: #fff; color: var(--green-900); border-color: #d8d3c5;
}
.btn--ghost:hover { border-color: var(--green-900); }
.btn--outline {
  background: #fff; color: var(--green-900); border-color: var(--line);
}
.btn--outline:hover { background: var(--green-50); }
.btn--accent { background: var(--gold-500); color: #fff; }
.btn--accent:hover { background: var(--gold-600); }
.btn--block { width: 100%; }

/* ============ FEATURES ============ */
.features {
  margin-top: -40px;
  position: relative;
  z-index: 3;
  padding-bottom: 28px;
}
.features__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 8px;
}
.feature__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-50);
  color: var(--green-900);
  margin-bottom: 4px;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; }
.feature p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ============ MAIN GRID ============ */
.main-grid { padding: 28px 0 56px; }
.main-grid__wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 0.62fr;
  gap: 18px;
  align-items: start;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.card__head { margin-bottom: 16px; }
.section-title {
  font-size: 22px;
  position: relative;
  padding-bottom: 8px;
  display: inline-block;
}
.section-title::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 36px; height: 3px; background: var(--gold-500); border-radius: 2px;
}
.section-title .muted { color: var(--muted); font-weight: 500; font-size: 18px; }

/* video */
.video {
  position: relative; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden;
  margin-bottom: 14px;
}
.video__thumb {
  position: absolute; inset: 0;
  background: url('assets/mosque.svg') center/cover no-repeat,
    linear-gradient(#bcd2c1, #6e8a78);
  filter: saturate(.95);
}
.video__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: var(--green-900);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: .2s;
}
.video__play:hover { transform: translate(-50%, -50%) scale(1.06); }
.video__play svg { width: 22px; height: 22px; margin-left: 3px; }

.project-meta {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin-bottom: 16px;
  font-size: 12.5px; color: var(--muted);
}
.project-meta li { display: flex; align-items: center; gap: 8px; }
.project-meta svg { width: 16px; height: 16px; color: var(--green-700); }

/* prayer */
.datebar {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; margin-bottom: 12px;
  font-size: 13.5px; color: var(--green-900); font-weight: 500;
}
.datebar span { display: inline-flex; align-items: center; gap: 8px; }
.datebar svg { width: 16px; height: 16px; }
.datebar button {
  width: 28px; height: 28px; border-radius: 6px;
  color: var(--green-900); font-size: 18px; line-height: 1;
}
.datebar button:hover { background: var(--green-50); }
.prayers li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line-2);
  font-size: 14.5px;
}
.prayers li:last-child { border-bottom: 0; }
.prayer__name { display: inline-flex; align-items: center; gap: 10px; color: var(--green-900); font-weight: 500; }
.prayer__icon {
  width: 18px; height: 14px; display: inline-block; position: relative;
}
.prayer__icon::before {
  content: ''; position: absolute; inset: auto 0 0 0; height: 10px;
  border: 1.5px solid var(--gold-600);
  border-bottom: 0;
  border-top-left-radius: 9px 14px; border-top-right-radius: 9px 14px;
}
.prayer__icon::after {
  content: ''; position: absolute; left: 50%; top: -2px; width: 2px; height: 5px;
  background: var(--gold-600); transform: translateX(-50%);
}
.prayer__time { color: var(--green-900); font-weight: 600; }

/* activities */
.activities li {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
}
.activities li:last-child { border-bottom: 0; }
.activity__img {
  width: 72px; height: 56px; border-radius: 8px;
  background-color: #d6d1c2;
  background-size: cover; background-position: center;
  flex-shrink: 0;
}
.activity__img--1 { background-image: linear-gradient(135deg, #1a4e3a 0%, #2a6b50 100%); }
.activity__img--2 { background-image: linear-gradient(135deg, #c98947 0%, #e5b079 100%); }
.activity__img--3 { background-image: linear-gradient(135deg, #8da89a 0%, #b8c8b9 100%); }
.activities h4 {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px; font-weight: 600; color: var(--green-900);
  line-height: 1.35;
}
.activities time { font-size: 12px; color: var(--muted); }

/* donate */
.card--donate {
  background: var(--green-900);
  color: #e7eee9;
  border-color: var(--green-800);
}
.card--donate h3, .card--donate p { color: #fff; }
.donate__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.donate__head svg { width: 20px; height: 20px; color: var(--gold-300); }
.donate__head h3 { font-size: 20px; color: #fff; }
.card--donate > p { font-size: 13px; opacity: .85; margin: 0 0 14px; }
.donate__amounts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px;
}
.donate__amounts button {
  padding: 9px 0; border-radius: 6px; font-weight: 600; font-size: 13px;
  background: rgba(255,255,255,.06); color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  transition: .2s;
}
.donate__amounts button:hover { background: rgba(255,255,255,.12); }
.donate__amounts button.is-active { background: var(--gold-500); border-color: var(--gold-500); }
.donate__other {
  width: 100%; padding: 9px 0; border-radius: 6px;
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  font-size: 13px; font-weight: 500;
  margin-bottom: 14px;
}
.donate__other:hover { background: rgba(255,255,255,.08); }
.donate__qr { text-align: center; margin-top: 14px; }
.donate__qr p { font-size: 12px; opacity: .8; margin: 0 0 8px; }
.qr {
  width: 110px; height: 110px; margin: 0 auto;
  background: #fff; padding: 6px; border-radius: 6px;
}

/* ============ STATS ============ */
.stats {
  background: var(--green-900);
  color: #d8e2dc;
}
.stats__inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.6fr;
  gap: 28px;
  padding: 30px 24px;
  align-items: center;
}
.stats__item { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.stats__item small { font-size: 11px; opacity: .65; text-transform: uppercase; letter-spacing: .08em; }
.stats__item strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px; color: #fff; font-weight: 600;
}
.stats__item span { font-size: 12.5px; opacity: .8; }
.stats__ico {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
  color: var(--gold-300);
}
.stats__ico svg { width: 18px; height: 18px; }
.stats__bar {
  width: 100%; height: 4px; background: rgba(255,255,255,.12);
  border-radius: 2px; margin-top: 8px;
}
.stats__bar i {
  display: block; height: 100%; background: var(--gold-500); border-radius: 2px;
}
.stats__quote {
  text-align: right;
  font-family: 'Cormorant Garamond', serif;
  color: rgba(255,255,255,.85);
  font-style: italic;
  font-size: 14.5px;
  border-left: 1px solid rgba(255,255,255,.15);
  padding-left: 28px;
  line-height: 1.5;
}
.stats__quote p { margin: 0; }
.stats__quote cite { font-size: 12px; opacity: .65; font-style: normal; }

/* ============ FOOTER ============ */
.footer {
  background: #082921;
  color: #b8c4bd;
  padding-top: 56px;
}
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px;
  padding-bottom: 36px;
}
.brand--light .brand__mark { color: #fff; }
.brand--light .brand__text strong { color: #fff; }
.brand--light .brand__text small { color: var(--gold-300); }
.footer__about { font-size: 13.5px; max-width: 320px; margin-top: 16px; }
.footer h4 {
  color: #fff; font-family: 'Inter', sans-serif; font-size: 13px;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px;
}
.footer ul li { font-size: 13.5px; padding: 5px 0; }
.footer a:hover { color: var(--gold-300); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 18px 0;
  font-size: 12.5px;
  color: rgba(255,255,255,.5);
}

/* ============ MOBILE BOTTOM NAV (hidden on desktop) ============ */
.tabbar { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  .nav ul { gap: 18px; }
  .lang__btn { padding: 5px 7px; font-size: 11.5px; }
  .main-grid__wrap { grid-template-columns: 1fr 1fr; }
  .card--donate { grid-column: span 2; }
  .stats__inner { grid-template-columns: 1fr 1fr 1fr; }
  .stats__quote { grid-column: span 3; text-align: left; border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; }
}

@media (max-width: 860px) {
  .topbar, .nav, .lang { display: none; }
  .header__mobile { display: inline-flex; }
  .header__inner { min-height: 64px; }
  .brand__text strong { font-size: 12px; }
  .brand__text small { font-size: 9px; }
  .brand__mark { width: 36px; height: 42px; }

  /* Hero — on mobile: title, image, then CTAs */
  .hero {
    display: flex;
    flex-direction: column;
    background: var(--cream);
  }
  .hero__inner {
    position: static;
    padding: 0;
    min-height: 0;
    display: contents;
  }
  .hero__copy {
    display: contents;
  }
  .hero__copy h1 {
    order: 1;
    padding: 22px 20px 0;
    font-size: 26px;
    line-height: 1.15;
  }
  .hero__copy p {
    order: 2;
    padding: 6px 20px 12px;
    margin: 0;
    font-size: 13.5px;
    color: var(--muted);
  }
  .hero__media {
    order: 3;
    position: relative;
    inset: auto;
    height: 270px;
    margin: 0;
  }
  .hero__overlay { display: none; }
  .hero__cta {
    order: 4;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px 20px 6px;
  }
  .hero__cta .btn {
    width: 100%; padding: 14px 8px; font-size: 11px; letter-spacing: .05em;
  }
  .hero__cta .btn svg { width: 14px; height: 14px; }
  .hero__cta .btn--primary { grid-column: span 2; padding: 16px; font-size: 12px; }

  /* Features become 4-up compact icons row */
  .features { margin-top: 0; padding: 4px 12px 16px; }
  .features__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 16px 4px 18px;
  }
  .feature {
    background: transparent; border: 0; box-shadow: none; padding: 0 2px;
    align-items: center; text-align: center; gap: 4px;
    min-width: 0;
  }
  .feature__icon {
    background: var(--green-900); color: #fff;
    width: 42px; height: 42px;
    margin-bottom: 2px;
  }
  .feature__icon svg { width: 20px; height: 20px; }
  .feature h3 { font-size: 12.5px; margin-top: 0; }
  .feature p { font-size: 10px; line-height: 1.3; }
  .feature p br { display: none; }

  /* Main grid stacks */
  .main-grid { padding: 12px 12px 24px; }
  .main-grid__wrap { grid-template-columns: 1fr; gap: 14px; }
  .card--donate { grid-column: span 1; }
  .project-meta { grid-template-columns: repeat(2, 1fr); gap: 10px 16px; }
  .project-meta li { font-size: 12px; }

  /* Section titles get a "see more" treatment in mobile */
  .card__head { display: flex; align-items: center; justify-content: space-between; }
  .card__head::after {
    content: 'Shiko më shumë ›';
    font-size: 12.5px; color: var(--gold-600); font-weight: 600;
  }
  .card--prayer .card__head::after { content: 'Shiko orarin e plotë ›'; }
  .card--activities .card__head::after { content: 'Të gjitha ›'; }
  .card--donate .card__head::after { display: none; }

  /* Stats stack */
  .stats__inner {
    grid-template-columns: repeat(2, 1fr);
    padding: 28px 20px;
  }
  .stats__item--raised { grid-column: span 2; }
  .stats__quote { grid-column: span 2; }

  /* Footer collapses */
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }

  /* Make space for bottom nav */
  body { padding-bottom: 76px; }

  /* Bottom tabbar */
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0;
    background: var(--green-900); color: #cdd9d2;
    padding: 8px 4px 10px;
    z-index: 60;
    box-shadow: 0 -6px 20px rgba(0,0,0,.18);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    font-size: 10px; color: #b9c8c0;
    padding: 4px 2px;
    min-width: 0;
  }
  .tabbar span {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
  }
  .tabbar svg { width: 22px; height: 22px; flex-shrink: 0; }
  .tabbar .is-active { color: var(--gold-300); }
}

@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
  .stats__inner { grid-template-columns: 1fr; }
  .stats__item--raised, .stats__quote { grid-column: span 1; }
  .topbar__quote-sq { display: none; }
}
