/* =========================================================
   Music page — First Presbyterian Church of Lockport
   Standalone stylesheet (no Mobirise dependencies).
   Everything is scoped under .fpc-music so it can't
   collide with the legacy site CSS.
   ========================================================= */

.fpc-music {
  --navy: #263652;
  --navy-deep: #1c2940;
  --blue: #3b6e8f;
  --terracotta: #d17756;
  --terracotta-dark: #b8603f;
  --gold: #e6c16d;
  --cream: #fdfcfa;
  --paper: #f6f2ea;
  --ink: #232323;
  --muted: #5d6573;
  --line: #e4ddd0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 41, 64, 0.12);
  --serif: 'Gloock', Georgia, 'Times New Roman', serif;
  --sans: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;

  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.fpc-music *,
.fpc-music *::before,
.fpc-music *::after { box-sizing: border-box; }

.fpc-music img { max-width: 100%; height: auto; display: block; }

/* Undo legacy theme rules (theme/css/style.css forces line-height:1 on
   p/span/a and a white background on every <section>). :where() keeps
   specificity low so the component rules below still win. */
.fpc-music :where(p, span, a, li) { line-height: inherit; }
.fpc-music :where(section) { background-color: transparent; }

.fpc-music h1,
.fpc-music h2,
.fpc-music h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: 0.5px;
  margin: 0 0 0.75rem;
}

.fpc-music p { margin: 0 0 1rem; }

.fpc-music a { color: var(--terracotta-dark); }
.fpc-music a:hover { color: var(--navy); }

.fm-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.fm-eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

.fm-section { padding: 88px 0; background: var(--cream); }
.fm-section--paper { background: var(--paper); }

.fm-section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.fm-section-head h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
.fm-section-head p { color: var(--muted); }

/* ---------- Buttons ---------- */
.fm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1.2;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.fm-btn:hover { transform: translateY(-1px); }
.fpc-music .fm-btn--primary { background: var(--terracotta); color: #fff; }
.fpc-music .fm-btn--primary:hover { background: var(--terracotta-dark); color: #fff; }
.fpc-music .fm-btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.fpc-music .fm-btn--ghost:hover { background: #fff; color: var(--navy); }
.fpc-music .fm-btn--outline { border-color: var(--navy); color: var(--navy); }
.fpc-music .fm-btn--outline:hover { background: var(--navy); color: #fff; }

/* ---------- Hero ---------- */
.fm-hero {
  background: var(--navy);
  color: #fff;
  /* clears the fixed site navbar */
  padding-top: 170px;
  overflow: hidden;
}
.fm-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 56px;
  padding-bottom: 80px;
}
.fpc-music .fm-hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  margin-bottom: 1.25rem;
}
.fm-hero .fm-eyebrow { color: var(--gold); }
.fm-hero__lead {
  font-size: 1.2rem;
  color: rgba(255,255,255,.88);
  max-width: 34ch;
  margin-bottom: 2rem;
}
.fm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fm-hero__art { position: relative; }
.fm-hero__art img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.fm-hero__art::before {
  content: "";
  position: absolute;
  inset: -14px 14px 14px -14px;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  z-index: 0;
}
.fm-hero__art img { position: relative; z-index: 1; }
.fm-hero__art figcaption {
  font-size: 0.8rem;
  color: rgba(255,255,255,.65);
  margin-top: 12px;
  text-align: right;
}

/* ---------- Announcement band ---------- */
.fm-band {
  background: var(--terracotta);
  color: #fff;
  padding: 22px 0;
  text-align: center;
}
.fm-band p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  letter-spacing: 0.4px;
}
.fm-band strong { color: var(--navy-deep); font-weight: 400; }

/* ---------- Choir cards ---------- */
.fm-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.fm-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.fm-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.fm-card__body { padding: 28px 30px 32px; }
.fm-card h3 { font-size: 1.75rem; }
.fm-card p { color: var(--muted); margin-bottom: 0; }

/* ---------- Director / contact ---------- */
.fm-director {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  max-width: 960px;
  margin: 0 auto;
}
.fm-director img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 10px;
}
.fm-director h2 { font-size: clamp(1.8rem, 3.5vw, 2.3rem); margin-bottom: 0.25rem; }
.fm-director__role {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.fm-director__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

/* ---------- Organ: stats ---------- */
.fm-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.fm-stat {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.fm-stat__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  color: var(--gold);
  line-height: 1.1;
}
.fm-stat__label {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
}

/* ---------- Organ: history timeline ---------- */
.fm-history {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
}
.fm-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.fm-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}
.fm-timeline li {
  position: relative;
  padding: 0 0 36px 44px;
}
.fm-timeline li:last-child { padding-bottom: 0; }
.fm-timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--terracotta);
}
.fm-timeline__year {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--terracotta-dark);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}
.fm-timeline h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.fm-timeline p { color: #3c4350; margin-bottom: 0.6rem; }
.fm-timeline p:last-child { margin-bottom: 0; }

.fm-aside { position: sticky; top: 110px; }
.fm-aside figure { margin: 0 0 24px; }
.fm-aside img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.fm-aside figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

.fm-fund {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
}
.fpc-music .fm-fund h3 { color: #fff; font-size: 1.4rem; }
.fm-fund p { color: rgba(255,255,255,.85); font-size: 0.98rem; }
.fm-fund .fm-btn { margin-top: 6px; }

/* ---------- Site contact block (replaces Mobirise contact section) ---------- */
.fm-contact {
  background: var(--paper);
  padding: 72px 0;
}
.fm-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.fm-contact h2 { font-size: clamp(1.9rem, 3.5vw, 2.4rem); }
.fm-contact ul { list-style: none; padding: 0; margin: 0; }
.fm-contact li {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.fm-contact li:last-child { border-bottom: 0; }
.fm-contact__label {
  font-weight: 600;
  color: var(--navy);
}
.fm-map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow);
}
.fm-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- Footer ---------- */
.fm-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.8);
  text-align: center;
  padding: 28px 0;
  font-size: 0.9rem;
}
.fm-footer p { margin: 0; }
.fpc-music .fm-footer a { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .fm-hero { padding-top: 120px; }
  .fm-hero__grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 64px; }
  .fm-hero__lead { max-width: none; }
  .fm-history { grid-template-columns: 1fr; }
  .fm-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
  .fm-aside figure { margin: 0; }
  .fm-aside img { max-height: 560px; object-fit: cover; object-position: center 70%; }
}

@media (max-width: 767px) {
  .fm-section { padding: 64px 0; }
  .fm-wrap { padding: 0 18px; }
  .fm-cards { grid-template-columns: 1fr; }
  .fm-director { grid-template-columns: 1fr; text-align: center; padding: 28px 22px; }
  .fm-director img { max-width: 220px; margin: 0 auto; }
  .fm-director__actions { justify-content: center; }
  .fm-stats { grid-template-columns: 1fr; gap: 14px; }
  .fm-aside { grid-template-columns: 1fr; }
  .fm-contact__grid { grid-template-columns: 1fr; }
  .fm-hero__art::before { display: none; }
}
