/* Catholic Charities, Diocese of Ogdensburg
   ------------------------------------------------------------------
   Colours and type are carried over from the previous site so the page
   looks the same; the layout is plain CSS grid and flexbox. */

:root {
  --blue:        #478ac9;
  --blue-light:  #77aad9;
  --blue-dark:   #4c7397;
  --card:        #e9f2fa;
  --ink:         #111111;
  --rule:        #454545;
  --footer-bg:   #333333;
  --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;
  margin: 0;
}

p { margin: 0; }

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

a { color: var(--blue); }
a:hover { color: var(--blue-light); }

u { text-decoration: underline; }

/* ---------- shared layout ---------------------------------------- */

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 60px 0; }

.rule {
  max-width: 912px;
  margin: 57px auto 60px;
  border: 0;
  border-top: 3px solid var(--rule);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.stack     { display: grid; gap: 20px; }
.center    { text-align: center; }
.county    { font-size: 36px; line-height: 1.2; }
.county u  { display: inline-block; margin-bottom: 24px; }
.office    { font-size: 20px; line-height: 1.5; display: block; margin-top: 16px; }

/* photographs that sit in a two-column block */
.photo {
  width: 100%;
  height: 287px;
  object-fit: cover;
}

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

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 1px;
  padding: 18px 26px;
  border-radius: 50px;
  transition: background-color .2s;
}

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

.btn--wide  { display: block; font-size: 14px; padding: 19px 26px; }
.btn--plain {
  border-radius: 0;
  text-transform: none;
  font-size: 16px;
  padding: 23px 30px;
}

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

.masthead {
  display: flex;
  justify-content: center;
  padding: 24px var(--gutter);
}

.masthead img { width: 200px; }

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

.hero {
  min-height: 338px;
  display: flex;
  align-items: center;
  background: url("../images/GSg07Gkeago.jpeg") 50% 50% / cover no-repeat;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.1;
  max-width: 520px;
  margin-left: auto;          /* sits on the clear right side of the photo */
  text-shadow: 0 2px 8px #808080;
}

/* ---------- donation form ----------------------------------------- */

.donate { padding: 40px 0 60px; }

/* ---------- appeal poster ------------------------------------------ */

.poster { padding: 20px 0 40px; }
.poster img { width: 383px; margin: 0 auto; }

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

.mission {
  min-height: 764px;
  display: flex;
  align-items: flex-end;
  background: url("../images/CChands1.jpg") 50% 8.77% / cover no-repeat;
}

.mission blockquote {
  margin: 0 0 60px;
  color: #fff;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 24px;
  line-height: 1.2;
  text-align: justify;
}

/* ---------- Plattsburgh: logo beside the button --------------------- */

.emdt {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.emdt img { width: 253px; }
.emdt .btn { flex: 1; min-width: 200px; }

/* ---------- programme cards (image over button) --------------------- */

.programs { margin-top: 40px; }
.program .btn { margin-top: 24px; }

/* ---------- AmeriCorps --------------------------------------------- */

.americorps-intro {
  display: grid;
  grid-template-columns: 226px 1fr;
  gap: 40px;
  align-items: center;
}

.americorps-offices { margin-top: 40px; display: grid; gap: 32px; }

.americorps .btn { display: block; width: max-content; max-width: 100%; margin: 40px auto 0; }

/* ---------- location cards ------------------------------------------ */

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

.card {
  background: var(--card);
  border-radius: 30px;
  padding: 40px;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 24px;
  line-height: 1.2;
}

.card svg { width: 52px; height: 52px; fill: var(--ink); margin-bottom: 20px; }
.card h3  { font-size: 24px; margin-bottom: 20px; }
.card address { font-style: normal; }

/* ---------- assistance --------------------------------------------- */

.assistance h2 { font-size: 36px; margin-bottom: 40px; }
.assistance p  { font-family: Roboto, Arial, Helvetica, sans-serif; font-size: 24px; line-height: 1.2; }

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

.site-footer {
  background: var(--footer-bg);
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 44px;
  padding-top: 52px;
  padding-bottom: 42px;
}

/* the logo is dark line art on transparent, so knock it out white */
.footer-logo { width: 96px; margin-bottom: 16px; filter: brightness(0) invert(1); }

.footer-org {
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.site-footer address { font-style: normal; color: rgba(255, 255, 255, .72); }

.footer-head {
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9cc4e8;
  margin-bottom: 14px;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  color: rgba(255, 255, 255, .82);
}

.footer-list b { display: block; font-weight: 600; color: #fff; }

.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover,
.site-footer a:focus-visible { text-decoration: underline; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .13); }

.footer-bottom .wrap {
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .55);
}

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

@media (max-width: 900px) {
  .two-col,
  .cards,
  .americorps-intro { grid-template-columns: 1fr; }

  .footer-main { grid-template-columns: 1fr; gap: 30px; }

  .americorps-intro img { margin: 0 auto; }

  .hero { min-height: 260px; }
  .hero h1 { font-size: 34px; margin-left: 0; }

  .mission { min-height: 420px; }
  .mission blockquote { font-size: 20px; text-align: left; margin-bottom: 40px; }

  .county { font-size: 28px; }
  .card, .assistance p { font-size: 20px; }
  .assistance h2 { font-size: 28px; }
  .poster img { width: 100%; max-width: 383px; }
}

@media (max-width: 575px) {
  :root { --gutter: 20px; }
  .photo { height: 220px; }
  .hero h1 { font-size: 28px; }
  .card { padding: 28px; }
  .emdt .btn { width: 100%; }
}
