/* St. Andre Bessette Roman Catholic Parish, Malone NY
   ---------------------------------------------------------------
   Colours, type and proportions carried over from the previous
   Joomla/Nicepage site; layout is plain CSS grid and flexbox. */

:root {
  --blue:       #478ac9;
  --blue-dark:  #3a71a6;
  --ink:        #111111;
  --muted:      #4a4a4a;
  --grey-bg:    #f2f2f2;
  --grey-mid:   #e5e5e5;
  --rule:       #cccccc;
  --wrap:       1140px;
  --gutter:     30px;
}

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 16px/1.6 "Open Sans", Arial, Helvetica, sans-serif;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4 {
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 48px 0; }
.center { text-align: center; }
.measure { max-width: 74ch; margin: 0 auto; }

/* ---------- masthead --------------------------------------------------- */

.masthead { padding: 30px var(--gutter); background: var(--grey-bg); }

.site-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 48px;
  text-align: center;
  text-wrap: balance;
  max-width: var(--wrap);
  margin: 0 auto;
}

/* ---------- church cards ------------------------------------------------ */

.churches { background: var(--grey-bg); padding: 40px var(--gutter) 30px; }
.churches-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: var(--wrap); margin: 0 auto; }
.church-card { background: #fff; }
.church-card img { width: 100%; }
.church-card figcaption { padding: 16px; text-align: center; font-size: 20px; }

/* ---------- USCCB bar ----------------------------------------------------- */

.usccb-bar {
  max-width: var(--wrap);
  margin: 0 auto;
  border: 1px solid var(--rule);
  padding: 18px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.usccb-bar h2 { font-size: 16px; font-weight: 400; font-family: "Open Sans", Arial, sans-serif; }

.btn-dark {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  padding: 10px 20px;
}

.btn-dark:hover, .btn-dark:focus-visible { background: #333; color: #fff; }

/* ---------- mission ---------------------------------------------------- */

.mission-title { font-size: 36px; text-align: center; margin-bottom: 18px; }
.mission-quote { font-size: 16px; text-align: center; max-width: 60ch; margin: 0 auto; line-height: 1.7; }

/* ---------- info grid ---------------------------------------------------- */

.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--grey-mid); }
.info-grid > div { padding: 34px 26px; text-align: center; border-right: 1px solid #fff; }
.info-grid > div:last-child { border-right: none; }

.info-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  text-decoration: none;
  font-size: 24px;
}

.info-icon:hover, .info-icon:focus-visible { background: var(--blue-dark); }

.info-grid h3 { font-size: 20px; margin-bottom: 14px; }
.info-grid p { font-size: 14px; line-height: 1.6; }

/* ---------- archived bulletins button ------------------------------------- */

.archived-btn-wrap { text-align: center; padding: 34px 0; }

.btn-blue {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  padding: 15px 32px;
  border-radius: 3px;
}

.btn-blue:hover, .btn-blue:focus-visible { background: var(--blue-dark); color: #fff; }

/* ---------- patron feature ------------------------------------------------- */

.patron { display: flex; align-items: center; justify-content: center; gap: 40px; padding: 20px 0 40px; flex-wrap: wrap; }
.patron-text { text-align: center; }
.patron-text h2 { font-size: 36px; margin-bottom: 6px; }
.patron-text p { font-size: 16px; margin-bottom: 16px; }
.patron img { width: 248px; }

/* ---------- fund appeal ------------------------------------------------------ */

.fund-appeal { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 0 0 48px; }
.fund-appeal img { width: 100%; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- tabs -------------------------------------------------------------- */

.tabs-nav { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.tabs-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--wrap);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.tabs-nav a {
  display: block;
  padding: 18px 24px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.tabs-nav a:hover, .tabs-nav a:focus-visible { color: var(--blue); }
.tabs-nav a[aria-current="true"] { color: var(--blue); border-bottom-color: var(--blue); }

.tab-panel { display: none; padding: 40px 0; }
.tab-panel.is-open { display: block; }

.tab-panel h2 { font-size: 24px; margin-bottom: 20px; }
.tab-panel .stack { display: grid; gap: 16px; }
.tab-panel ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; }

/* ---------- coat of arms blazon ------------------------------------------------- */

.coat-of-arms-grid { display: grid; grid-template-columns: 200px 1fr; gap: 34px; align-items: start; }
.coat-of-arms-grid img { width: 100%; }

.blazon-entry { display: grid; gap: 6px; margin-bottom: 22px; }
.blazon-entry cite { display: block; font-style: italic; color: var(--muted); font-size: 15px; }

/* ---------- map + parish info footer block ---------------------------------------- */

.map-frame { width: 100%; height: 480px; border: 0; }

.parish-info { background: var(--grey-bg); padding: 48px var(--gutter); text-align: center; }
.parish-info h2 { font-size: 30px; margin-bottom: 22px; }
.parish-info .stack { display: grid; gap: 10px; margin-bottom: 8px; }

/* ---------- footer ----------------------------------------------------------------- */

.site-footer { background: var(--grey-mid); padding: 40px var(--gutter); text-align: center; }
.site-footer p { font-size: 22px; line-height: 1.5; }

/* ---------- archived bulletins page ------------------------------------------------ */

.bulletin-list { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 4px; max-width: 480px; }
.bulletin-list a {
  display: block;
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
}
.bulletin-list a:hover, .bulletin-list a:focus-visible { color: var(--blue); background: var(--grey-bg); }

/* ---------- learn-more (patron biography) page -------------------------------------- */

.bio { max-width: 74ch; margin: 0 auto; display: grid; gap: 18px; }
.bio h2 { font-size: 32px; text-align: center; margin-bottom: 10px; }
.bio-sub { text-align: center; font-style: italic; color: var(--muted); margin-bottom: 20px; }

/* ---------- narrow screens ------------------------------------------------------------ */

@media (max-width: 900px) {
  .churches-grid, .info-grid { grid-template-columns: 1fr 1fr; }
  .fund-appeal { grid-template-columns: 1fr; }
  .coat-of-arms-grid { grid-template-columns: 1fr; }
  .coat-of-arms-grid img { max-width: 200px; margin: 0 auto; }

  .site-title { font-size: 30px; }
  .mission-title { font-size: 26px; }
  .patron { flex-direction: column; }
  .map-frame { height: 320px; }
}

@media (max-width: 575px) {
  :root { --gutter: 20px; }
  .churches-grid, .info-grid { grid-template-columns: 1fr; }
  .info-grid > div { border-right: none; border-bottom: 1px solid #fff; }
  .site-title { font-size: 24px; }
  .tabs-nav a { padding: 14px 16px; font-size: 15px; }
}
