/* The Roman Catholic Church in Brushton, Hopkinton, North Bangor & St. Regis Falls
   -------------------------------------------------------------------------------
   Colours, type and proportions carried over from the previous Joomla/Nicepage
   site; layout is plain CSS grid and flexbox. */

:root {
  --gold:       #f1c50e;
  --gold-pale:  #f9e79b;
  --gold-dark:  #c9a30b;
  --slate:      #b9c1cc;
  --ink:        #111111;
  --muted:      #4a4a4a;
  --grey-bg:    #f2f2f2;
  --rule:       #dcdcdc;
  --wrap:       1140px;
  --gutter:     30px;
}

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

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

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

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 50px 0; }
.section--pale { background: var(--gold-pale); }
.stack { display: grid; gap: 18px; }
.center { text-align: center; }
.measure { max-width: 70ch; }

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

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

.site-title {
  font-size: 48px;
  text-align: center;
  text-wrap: balance;
  max-width: var(--wrap);
  margin: 0 auto;
}

.banner img { width: 100%; }

.rule-band { height: 34px; background: var(--slate); }

/* ---------- headings ----------------------------------------------- */

.section-title { font-size: 48px; margin-bottom: 26px; }
.block-title { font-size: 26px; margin-bottom: 14px; }

/* ---------- buttons -------------------------------------------------- */

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  padding: 16px 26px;
  transition: background-color .2s;
}

.btn:hover, .btn:focus-visible { background: var(--gold-dark); color: var(--ink); }
.btn--block { display: block; width: 100%; }

/* ---------- two-column blocks ----------------------------------------- */

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.two-col--center { align-items: center; }

/* ---------- welcome cards ---------------------------------------------- */

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

.card {
  display: block;
  min-height: 260px;
  padding: 26px;
  color: #fff;
  text-decoration: none;
  background-size: cover;
  background-position: 50% 50%;
  display: flex;
  align-items: flex-end;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,.05), rgba(0,0,0,.62));
}

.card h3 { position: relative; font-size: 28px; color: #fff; }
.card:hover h3, .card:focus-visible h3 { text-decoration: underline; }

/* ---------- media blocks ------------------------------------------------ */

.video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.bulletin { width: 100%; height: 465px; border: 0; }

.formed-logo { width: 200px; margin-bottom: 16px; }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; }

.facebook img { width: 220px; }

/* ---------- religious education ------------------------------------------ */

.re-actions { display: grid; gap: 18px; align-content: start; }

/* ---------- sacraments page ----------------------------------------------- */

.page-hero {
  min-height: 420px;
  display: flex;
  align-items: center;
  background: url("../images/sacraments-hero.jpg") 50% 50% / cover no-repeat;
}

.page-hero h1 { font-size: 60px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.55); }

.sacrament { border-top: 1px solid var(--rule); padding: 38px 0; }
.sacrament:first-of-type { border-top: 0; }

.sacrament-head { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.sacrament-head img { width: 92px; height: 92px; object-fit: cover; border-radius: 50%; flex: none; }

.sacrament-head h2 {
  font-family: Montserrat, Roboto, Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.scripture {
  margin: 0 0 16px;
  padding-left: 20px;
  border-left: 4px solid var(--gold);
  font-style: italic;
  color: var(--muted);
}

.scripture cite { display: block; margin-top: 8px; font-style: normal; font-size: 15px; }

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

.site-footer { background: var(--grey-bg); padding: 40px var(--gutter); text-align: center; }
.site-footer p { line-height: 1.7; }

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

@media (max-width: 900px) {
  body { font-size: 17px; }

  .two-col,
  .cards { grid-template-columns: 1fr; }

  .site-title { font-size: 30px; }
  .section-title { font-size: 30px; }
  .block-title { font-size: 22px; }
  .page-hero { min-height: 260px; }
  .page-hero h1 { font-size: 36px; }
  .bulletin { height: 560px; }

  .sacrament-head { gap: 14px; }
  .sacrament-head img { width: 64px; height: 64px; }
  .sacrament-head h2 { font-size: 20px; }
}

@media (max-width: 575px) {
  :root { --gutter: 20px; }
  .site-title { font-size: 24px; }
  .section-title { font-size: 25px; }
  .page-hero h1 { font-size: 28px; }
}
