/* === Connections Ministry — shared styles === */
:root {
  --teal-dark: #0D4F5C;
  --teal-main: #1A7A8C;
  --teal-light: #E8F4F4;
  --teal-mid: #D4EBEB;
  --accent: #FFE8A0;
  --ink: #1A3A3A;
  --max: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.55;
  background: #fff;
  font-size: 18px;            /* large, readable base type */
}

a { color: var(--teal-main); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* --- Header / nav --- */
.site-header {
  background: var(--teal-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  gap: 12px;
}
.nav .brand { font-weight: 700; font-size: 20px; color: #fff; text-decoration: none; }
.nav .brand span { color: var(--accent); }
.nav-toggle {
  display: none;
  background: none; border: 2px solid #fff; color: #fff;
  font-size: 18px; border-radius: 6px; padding: 4px 10px; cursor: pointer;
}
.nav-links { display: flex; gap: 18px; list-style: none; }
.nav-links a {
  color: #fff; text-decoration: none; font-weight: 600; padding: 6px 4px;
  border-bottom: 3px solid transparent;
}
.nav-links a:hover, .nav-links a:focus, .nav-links a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

/* --- Hero --- */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 64px 20px;
  background: linear-gradient(rgba(13,79,92,.78), rgba(13,79,92,.78)),
              url("../images/church_exterior.png") center/cover no-repeat;
}
.hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.15; }
.hero h1 span { color: var(--accent); }
.hero .meta { font-size: clamp(18px, 2.5vw, 22px); margin-top: 10px; }
.hero .time {
  display: inline-block; margin-top: 14px; background: var(--accent);
  color: var(--teal-dark); font-weight: 700; padding: 8px 16px; border-radius: 8px;
}

/* --- Sections & cards --- */
section { padding: 40px 0; }
section h2 { color: var(--teal-dark); font-size: clamp(24px, 3.5vw, 32px); margin-bottom: 16px; }
.lead { font-size: 20px; max-width: 760px; }

.card {
  background: var(--teal-light);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 20px;
}
.card h3 { color: var(--teal-dark); margin-bottom: 8px; }
.card p + p { margin-top: 10px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* Two independent columns; each stacks its own cards with gap (no trailing margin) */
.verse-columns { display: flex; gap: 24px; align-items: flex-start; }
.verse-col { flex: 1; display: flex; flex-direction: column; gap: 0px; }
.verse-col .card { margin-bottom: 0; }

.check-list { list-style: none; }
.check-list li { padding: 6px 0 6px 28px; position: relative; }
.check-list li::before {
  content: "\2713"; color: var(--teal-main); font-weight: 700;
  position: absolute; left: 0;
}

.person { display: flex; gap: 18px; align-items: flex-start; }
.person img {
  width: 130px; height: 130px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--teal-dark); flex-shrink: 0;
}
/* Center each crop on the subjects' faces (default center lands on torsos) */
.person img.photo-mariah { object-position: center center; }
.person img.photo-pastor { object-position: center 0%; }

.btn {
  display: inline-block; background: var(--teal-main); color: #fff;
  text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 8px;
}
.btn:hover, .btn:focus { background: var(--teal-dark); }

/* --- Connect / QR --- */
.qr-row { display: flex; gap: 24px; flex-wrap: wrap; }
.qr-item { text-align: center; }
.qr-item img { width: 150px; height: 150px; margin: 0 auto 8px; }

.map-embed { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; }

/* --- Photo gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.gallery-grid a { display: block; border-radius: 10px; overflow: hidden; }
.gallery-grid img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  transition: transform 0.2s ease;
}
.gallery-grid a:hover img, .gallery-grid a:focus img { transform: scale(1.04); }

/* --- Lightbox --- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.9);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 85vh;
  object-fit: contain; border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.lb-btn {
  position: absolute; border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.15); color: #fff;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; line-height: 1;
}
.lb-btn:hover, .lb-btn:focus { background: rgba(255, 255, 255, 0.32); }
/* ‹ › glyphs sit low in their line box; padding-bottom recentres them in the circle */
.lb-prev, .lb-next { padding-bottom: 7px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-close { top: 18px; right: 18px; width: 48px; height: 48px; font-size: 26px; }
@media (max-width: 760px) {
  .lb-btn { width: 46px; height: 46px; font-size: 28px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}

/* --- Footer --- */
.site-footer {
  background: var(--teal-dark); color: #fff; margin-top: 40px;
  padding: 28px 20px; text-align: center; line-height: 1.6;
}
.site-footer a { color: var(--accent); }

/* --- Responsive --- */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--teal-dark); flex-direction: column; gap: 0; padding: 8px 20px 16px;
  }
  .nav-links.open { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .verse-columns { flex-direction: column; }
  .person { flex-direction: column; align-items: center; text-align: center; }
}

/* --- Accessibility helpers --- */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--accent);
  color: var(--teal-dark); padding: 8px 14px; font-weight: 700; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }
