/* Churches of Lebanon — homepage / directory. Mobile-first, RTL-aware. */

:root {
  --navy: #1e3a5f;
  --navy-deep: #12253d;
  --blue: #3d6b9e;
  --gold: #b8863b;
  --gold-soft: #e6c66a;
  --cream: #f7f2e7;
  --ink: #23282e;
  --muted: #6a7178;
  --line: #e4dccb;
  --bg: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(18, 37, 61, 0.10);
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Kufi Arabic",
    "Noto Sans Arabic", Arial, sans-serif;
  --serif: Georgia, "Amiri", "Noto Naskh Arabic", "Times New Roman", serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 0.4em; }
.muted { color: var(--muted); }

.skip-link { position: absolute; inset-inline-start: -999px; top: 0; background: var(--navy); color: #fff; padding: 0.6em 1em; z-index: 200; }
.skip-link:focus { inset-inline-start: 0; }

/* Header */
.site-header { background: var(--navy); color: var(--cream); }
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding-inline: 1rem;
  max-width: var(--wrap);
  margin-inline: auto;
}
.brand { color: var(--cream); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.lang-toggle { display: flex; gap: 0.35rem; }
.lang-item { font-size: 0.85rem; padding: 0.3rem 0.6rem; border-radius: 999px; color: var(--cream); text-decoration: none; border: 1px solid rgba(247, 242, 231, 0.3); }
.lang-item.is-active { background: var(--gold); border-color: var(--gold); color: #23180a; font-weight: 600; }

/* Hero */
.home-hero {
  background: linear-gradient(135deg, var(--navy-deep), var(--blue));
  color: var(--cream);
  padding: 3rem 1.2rem;
}
.home-hero-inner { max-width: var(--wrap); margin-inline: auto; }
.home-hero h1 { color: #fff; font-size: clamp(1.8rem, 6vw, 3rem); margin-bottom: 0.3em; }
.lede { font-size: clamp(1rem, 2.6vw, 1.25rem); max-width: 46ch; margin: 0; color: rgba(247, 242, 231, 0.92); }

/* Sections */
.section { max-width: var(--wrap); margin-inline: auto; padding: 2rem 1.2rem; }
.section-alt { background: var(--cream); }
.section-title { font-size: clamp(1.3rem, 4vw, 1.8rem); color: var(--navy); }

/* Controls */
.controls { display: grid; gap: 0.7rem; grid-template-columns: 1fr; margin-bottom: 1rem; }
.search, .sect-filter {
  font: inherit;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
.search:focus, .sect-filter:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.results-count { color: var(--muted); margin: 0 0 1.2rem; font-size: 0.95rem; }
.results-count .rc-n { font-weight: 700; color: var(--navy); }

/* Church grid */
.church-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
.church-card { display: flex; }
.church-card-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.church-card-link:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(18, 37, 61, 0.16); }
.church-thumb { display: block; }
.church-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.church-card-body { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.9rem 1rem 1.1rem; }
.church-sect {
  align-self: flex-start;
  background: var(--gold);
  color: #23180a;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
}
.church-name { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); font-weight: 600; }
.church-place { color: var(--muted); font-size: 0.92rem; }
.church-cta { color: var(--blue); font-weight: 600; font-size: 0.9rem; margin-top: 0.3rem; }

.no-results { color: var(--muted); padding: 1.5rem 0; }

/* Buttons + report */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
}
.btn:hover { background: var(--blue); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.report-inner { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.report-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1rem; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(247, 242, 231, 0.85); padding: 1.6rem 1.2rem; }
.fineprint { max-width: var(--wrap); margin-inline: auto; font-size: 0.9rem; }

@media (min-width: 620px) {
  .controls { grid-template-columns: 1fr 220px; }
  .church-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .church-grid { grid-template-columns: repeat(3, 1fr); }
}
