/* The Catholic Community of Alexandria — St. Cyril of Alexandria & St. Francis Xavier
   ---------------------------------------------------------------------------------
   Colours, type and proportions carried over from the previous Joomla/Nicepage site
   (measured from the live page); layout is plain CSS grid and flexbox. */

:root {
  --ink:        #111111;
  --blue:       #478ac9;
  --blue-dark:  #3a6f9f;
  --grey-light: #e5e5e5;   /* masthead, appeal band */
  --grey-mid:   #808080;   /* contact section */
  --grey-dark:  #666666;   /* bulletin band, info strip, Donate text */
  --wrap:       940px;
  --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 { font-weight: 400; line-height: 1.2; margin: 0; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
a:focus-visible, iframe:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.band { padding: 48px 0; }
.band-light { background: var(--grey-light); }
.band-dark  { background: var(--grey-dark); }

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

.masthead { background: var(--grey-light); padding: 38px 0 39px; }

.site-title {
  font: 700 20px/1.6 Georgia, "Times New Roman", serif;
  color: #000;
}

/* ---------- hero ----------------------------------------------------- */

.hero {
  background: #444 url("../images/hero-st-cyrils.webp") 50% 50% / cover no-repeat;
  color: #fff;
}

.hero-inner {
  min-height: 364px;
  display: flex;
  flex-direction: column;
  padding-top: 60px;
  padding-bottom: 59px;
}

.hero-title {
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .55);   /* keeps the white text legible on the stonework */
}
.hero-welcome { display: block; font-size: 48px; line-height: 1.35; }
.hero-sub     { display: block; font-size: 30px; line-height: 1.6; }

.btn-donate {
  align-self: flex-end;
  margin-top: auto;
  display: inline-block;
  background: #fff;
  color: var(--grey-dark);
  border: 1px solid var(--grey-dark);
  border-radius: 4px;
  padding: 19px 64px 20px 63px;
  font-weight: 700;
  text-decoration: none;
}
.btn-donate:hover { background: var(--grey-dark); color: #fff; }

/* ---------- two-up rows (video + text / photo) ----------------------- */

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
  align-items: center;
}
.pair + .pair { margin-top: 48px; }

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

/* ---------- Bishop's Fund appeal & reorganization -------------------- */

.appeal { text-align: center; }
.appeal-org   { font-size: 24px; line-height: 1.5; }
.appeal-title { font-family: "Open Sans", Arial, Helvetica, sans-serif; font-size: 30px; margin: 4px 0 10px; }
.appeal p:last-child { font-size: 20px; line-height: 1.6; }

.reorg { font-size: 18px; }
.reorg-title { font-family: "Open Sans", Arial, Helvetica, sans-serif; font-size: 24px; margin-bottom: 12px; }
.reorg p + p { margin-top: 12px; }
.reorg a { overflow-wrap: anywhere; }

/* ---------- bulletin widget ------------------------------------------ */

.bulletin { padding: 14px 0 22px; }
.bulletin-widget {
  display: block;
  width: 100%;
  height: 465px;
  border: 0;
  background: #fff;
}

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

.mission-title { font-family: Roboto, Arial, Helvetica, sans-serif; font-size: 36px; margin-bottom: 40px; }
.mission p { font-size: 18px; }

/* ---------- churches -------------------------------------------------- */

.church img { margin: 0 auto; width: 305px; }

/* ---------- contact --------------------------------------------------- */

.contact { background: var(--grey-mid); }

.contact-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
  align-items: start;
  padding-top: 53px;
  padding-bottom: 60px;
}
.contact-photo { width: 100%; margin-top: 140px; }

.contact-title { font-family: Roboto, Arial, Helvetica, sans-serif; font-size: 48px; margin-bottom: 30px; }

.staff { font-size: 18px; }
.staff a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 2px; overflow-wrap: anywhere; }
.staff a:hover { color: #000; }
.person + .person { margin-top: 22px; }
.person-name { font-weight: 700; }

.deacons { list-style: none; margin: 22px 0 0; padding: 0; }
.deacons li + li { margin-top: 4px; }

/* The four info columns sit on the darker grey: white text on the section's
   #808080 is below WCAG AA for 18px type (3.9:1); on #666 it is 5.7:1. */
.info { background: var(--grey-dark); color: #fff; padding: 40px 0 48px; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 30px;
  font-size: 18px;
}
.info-grid p + p { margin-top: 10px; }
.info-grid a { color: #fff; text-underline-offset: 2px; }

.info-head {
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.info-head img { width: 23px; height: 23px; flex: none; }

/* ---------- responsive ------------------------------------------------ */

@media (max-width: 900px) {
  .pair, .contact-top { grid-template-columns: 1fr; }
  .pair-flip .church { order: 2; }            /* video first on narrow screens, like the row above */
  .contact-photo { margin-top: 0; max-width: 520px; }
  .contact-top .staff { order: -1; }          /* contacts before the decorative photo */
  .info-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 575px) {
  :root { --gutter: 20px; }
  .masthead { padding: 24px 0; }
  .hero-inner { min-height: 300px; padding-top: 40px; padding-bottom: 32px; }
  .hero-welcome { font-size: 38px; }
  .hero-sub     { font-size: 22px; }
  .btn-donate { align-self: center; margin-top: 28px; }
  .band { padding: 36px 0; }
  .mission-title { font-size: 30px; margin-bottom: 20px; }
  .contact-title { font-size: 38px; }
  .info-grid { grid-template-columns: 1fr; }
}
