/* Fitly church sites — shared layout. Theme files add the personality. */
:root {
  --accent: #2f6db6;
  --ink: #1d2530;
  --muted: #5c6675;
  --bg: #ffffff;
  --band: #f5f6f8;
  --dark: #171e28;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--bg); line-height: 1.65;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 0 0 18px; }
h3 { font-size: 1.08rem; margin: 0 0 6px; }
a { color: var(--accent); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }
.center h2 { margin-bottom: 26px; }

.preview-band {
  background: #d9a441; color: #241c0c; text-align: center; font-weight: 700;
  padding: 6px 10px; font-size: .9rem; position: sticky; top: 0; z-index: 99;
}

/* Header / nav */
.site-head {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 16px 26px; position: absolute; top: 0; left: 0; right: 0; z-index: 10;
}
.site-brand { font-weight: 800; font-size: 1.2rem; color: #fff; text-decoration: none; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.site-brand img { height: 44px; width: auto; display: block; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 7px 13px; border-radius: 8px; text-shadow: 0 1px 6px rgba(0,0,0,.35);
}
.site-nav a:hover { background: rgba(255,255,255,.16); }
body.no-hero .site-head { position: static; background: var(--dark); }

/* Sections */
.sec { padding: 64px 0; }
.band-alt { background: var(--band); }

.sec-hero {
  min-height: 460px; display: grid; place-items: center; text-align: center;
  background: var(--dark) center/cover no-repeat; color: #fff; position: relative;
  padding: 110px 22px 70px;
}
.sec-hero::before { content: ''; position: absolute; inset: 0; background: rgba(12, 18, 28, .45); }
.sec-hero.h-full { min-height: 92vh; }
.sec-hero.h-short { min-height: 320px; }
.hero-inner { position: relative; max-width: 720px; }
.hero-inner h1 { font-size: clamp(2rem, 6vw, 3.4rem); margin: 0 0 12px; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.hero-inner p { font-size: clamp(1.05rem, 2.4vw, 1.3rem); margin: 0 0 26px; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; padding: 13px 26px; border-radius: 10px; font-size: 1rem;
}
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: rgba(255,255,255,.14); outline: 1.5px solid rgba(255,255,255,.65); }
.btn-light { background: #fff; color: var(--accent); }

.sec-times .times-line { font-size: 1.25rem; font-weight: 700; margin: 4px 0; }
.sec-times .times-addr { color: var(--muted); margin: 8px 0 0; }
.sec-times .times-note { color: var(--muted); font-size: .95rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split.right { direction: rtl; } .split.right > * { direction: ltr; }
.text-img img { border-radius: 14px; width: 100%; object-fit: cover; }
.rich p { margin: 0 0 14px; }
.rich img { border-radius: 10px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.s-card {
  background: #fff; border-radius: 14px; overflow: hidden; text-decoration: none;
  color: inherit; box-shadow: 0 2px 14px rgba(23, 33, 48, .08); display: block;
}
.band-alt .s-card { box-shadow: 0 2px 10px rgba(23, 33, 48, .1); }
a.s-card:hover { transform: translateY(-3px); transition: transform .15s; }
.s-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; }
.s-card-body { padding: 18px 20px 20px; }
.s-card-body p { margin: 0; color: var(--muted); font-size: .95rem; }

.staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 26px; text-align: center; }
.staff-card img, .staff-ph {
  width: 132px; height: 132px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; display: block;
  background: var(--band);
}
.staff-card p { color: var(--muted); margin: 0; font-size: .93rem; }

.event-row { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid #e8eaef; }
.event-row:last-child { border-bottom: 0; }
.event-when { font-weight: 700; color: var(--accent); }
.event-row p { margin: 4px 0 0; color: var(--muted); }

.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gal-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; display: block; }

.sec-cta { background: var(--accent); color: #fff; padding: 62px 0; text-align: center; }
.sec-cta p { font-size: 1.1rem; margin: 0 0 24px; opacity: .92; }

.sec-contact .c-line { margin: 0 0 14px; }
.c-map iframe { width: 100%; height: 320px; border: 0; border-radius: 14px; }

.site-foot { background: var(--dark); color: #b9c2ce; padding: 44px 26px 30px; margin-top: 0; }
.foot-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.site-foot strong { color: #fff; font-size: 1.05rem; }
.site-foot p { margin: 6px 0; }
.site-foot a { color: #dbe4ee; }
.foot-social { display: flex; gap: 14px; }
.foot-note { max-width: 1080px; margin: 26px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; color: #8a95a5; }

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: 26px; }
  .split.right { direction: ltr; }
  .sec { padding: 46px 0; }
  .site-head { padding: 12px 16px; }
  .event-row { grid-template-columns: 1fr; gap: 2px; }
  .foot-grid { grid-template-columns: 1fr; }
}
