/* Scotia Community Support Initiatives - About page
   Rebuilt from the Wayback snapshot 20230404014637.
   Palette, type scale and section rhythm follow the original Pagelayer build. */

:root {
  --ink: #404042;
  --body-text: #444444;
  --amber: #efa141;
  --amber-bright: #feb209;
  --amber-btn: #faaf3e;
  --sheet: #eeeeee;
  --muted: #9a9b9e;
  --header-bg: rgba(30, 26, 26, 0.7);
  --max-width: 1170px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Keep anchor targets clear of the sticky header */
[id] {
  scroll-margin-top: 80px;
}

body {
  margin: 0;
  font-family: Cabin, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-text);
  background: #ffffff;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 400;
  background: var(--amber-bright);
  color: #11100e;
  padding: 10px 16px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

:focus-visible {
  outline: 3px solid #0b5fa5;
  outline-offset: 2px;
}

/* Header / navigation */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--header-bg);
}

body:has(.site-header) main {
  padding-top: 0;
}

.site-header > .nav-desktop {
  padding: 5px 0;
}

.nav-desktop {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-desktop a {
  display: block;
  padding: 8px 20px;
  color: #f6f6f6;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease;
}

.nav-desktop a:hover,
.nav-desktop a:focus-visible {
  background: var(--amber-bright);
  color: #1b1b1b;
}

.nav-desktop a.is-current {
  background: var(--amber-bright);
  color: #171717;
}

.nav-toggle {
  display: none;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  text-align: right;
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 19px;
}

.nav-toggle-bars i {
  display: block;
  height: 3px;
  background: currentColor;
  border-radius: 1px;
}

.nav-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(320px, 80%);
  padding: 56px 0 24px;
  background: #11100e;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 260ms ease, visibility 260ms ease;
  z-index: 300;
  visibility: hidden;
  pointer-events: none;
}

.nav-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.nav-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-drawer a {
  display: block;
  padding: 12px 24px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.03em;
}

.nav-drawer a:hover,
.nav-drawer a:focus-visible,
.nav-drawer a.is-current {
  background: var(--amber-bright);
  color: #171717;
}

.nav-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: #f9f9f8;
  border: 0;
  color: #0e1b01;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.nav-close:hover {
  background: #0e1b01;
  color: #fcfcfc;
}

body.menu-open {
  overflow: hidden;
}

/* Hero */

.hero {
  position: relative;
}

.hero-bg {
  height: 403px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../img/hero-students.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Impact counters */

.impact {
  position: relative;
  z-index: 50;
  background: var(--amber);
  padding: 39px 0 59px;
}

.impact-inner {
  display: flex;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 10px;
}

.impact-item {
  position: relative;
  width: 50%;
  padding: 0 10px;
  text-align: center;
}

.impact-number {
  display: block;
  color: #ffffff;
  font-size: 65px;
  font-weight: 700;
  line-height: 1.2;
}

.impact-label {
  display: block;
  margin-top: 4px;
  color: rgba(19, 19, 1, 0.97);
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Sheet stands in for the original's #eeeeee rows */

.sheet {
  background: var(--sheet);
}

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

.wrap-narrow {
  max-width: 790px;
}

.section-about {
  padding-top: 4em;
}

.eyebrow {
  margin: 0;
  font-family: Hind, Cabin, sans-serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1em;
  letter-spacing: 5px;
  text-align: center;
  text-transform: uppercase;
  color: var(--amber-bright);
}

.section-copy {
  padding-bottom: 60px;
}

.prose {
  font-size: 18px;
  line-height: 1.38;
  text-align: justify;
}

.prose p {
  margin: 0 0 1em;
}

/* Team */

.section-team {
  padding-bottom: 60px;
}

.section-team-last {
  padding-bottom: 80px;
}

.team-heading {
  flex-basis: 100%;
  margin: 0 0 20px;
  font-family: Hind, Cabin, sans-serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  color: var(--ink);
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  padding-top: 10px;
}

.team-grid-4 > .person {
  width: 25%;
}

.team-grid-2 > .person {
  width: 25%;
}

.team-grid-1 > .person {
  width: 25%;
}

.person {
  padding: 10px;
  text-align: center;
}

.person-photo {
  overflow: hidden;
  background: #ffffff;
}

.person-photo img {
  width: 100%;
  height: 244px;
  object-fit: cover;
  object-position: center top;
  transition: transform 400ms ease;
}

.person:hover .person-photo img {
  transform: scale(1.03);
}

.person-name {
  margin: 20px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}

.person-role {
  margin: 0;
  color: var(--muted);
  font-family: Roboto, Cabin, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.btn-read {
  display: inline-block;
  margin-top: 20px;
  padding: 15px 30px;
  background: var(--amber-btn);
  color: #ffffff;
  font-family: Roboto, Cabin, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 250ms ease, color 250ms ease;
}

.btn-read:hover,
.btn-read:focus-visible {
  background: #e4972a;
  color: #ffffff;
}

/* Inner pages: page hero */

.page-hero {
  padding: 145px 0 90px;
  background: #1e1a1a;
  text-align: center;
}

.page-title {
  margin: 0 0 14px;
  font-family: Hind, Cabin, sans-serif;
  font-size: 52px;
  font-weight: 600;
  line-height: 1.15;
  color: #ffffff;
}

.page-title-accent {
  color: var(--amber-bright);
}

.page-lead {
  margin: 0 auto;
  max-width: 640px;
  color: #e6e3df;
  font-size: 18px;
  line-height: 1.6;
}

/* Inner pages: content blocks */

.section-block {
  padding: 60px 0;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 10px 0 0;
}

.program {
  padding: 26px 24px;
  background: #ffffff;
  border-left: 5px solid var(--amber);
}

.program h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
}

.program p {
  margin: 0;
  color: var(--body-text);
  font-size: 16px;
  line-height: 1.6;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 0 0;
}

.gallery-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  background: #ffffff;
}

.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center top;
  transition: transform 400ms ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.04);
}

.section-donate,
.section-impact-band {
  padding: 60px 0 80px;
  background: var(--amber);
  text-align: center;
}

.section-donate .team-heading,
.section-impact-band .team-heading {
  color: #3a2a0b;
}

.section-donate .donate-copy,
.donate-copy {
  margin: 0 auto 8px;
  max-width: 620px;
  color: #3a2a0b;
  font-size: 18px;
  line-height: 1.6;
}

.section-impact-band .impact-number {
  color: #3a2a0b;
}

.section-impact-band .impact-label {
  color: #4a3610;
}

.impact-inner-static {
  padding-top: 20px;
}

.btn-read-lg {
  margin-top: 20px;
  padding: 18px 44px;
  font-size: 16px;
  font-weight: 500;
}

/* Contact form and details */

.contact-form {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 32px;
  background: #ffffff;
  border-top: 5px solid var(--amber-bright);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: #f7f7f7;
  border: 1px solid #d9d9d9;
  border-radius: 0;
  font-family: inherit;
  font-size: 16px;
  color: var(--body-text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--amber);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(254, 178, 9, 0.25);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form .btn-read {
  border: 0;
  cursor: pointer;
}

.section-contact-details {
  padding: 60px 0 80px;
  background: #1e1a1a;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.detail {
  padding: 26px 24px;
  background: rgba(255, 255, 255, 0.06);
  border-top: 4px solid var(--amber-bright);
}

.detail h3 {
  margin: 0 0 10px;
  font-family: Hind, Cabin, sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--amber-bright);
}

.detail p {
  margin: 0;
  color: #e6e3df;
  font-size: 16px;
  line-height: 1.6;
}

.detail a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Home page */

.home-hero {
  position: relative;
  padding: 250px 0 143px;
  background-image: url("../img/home-food.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: #191c1d;
  opacity: 0.6;
}

.home-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.home-hero-title {
  margin: 0;
  color: #f3f4f3;
  font-family: Cabin, sans-serif;
  font-size: 79px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 8px;
  text-transform: uppercase;
}

.home-hero-sub {
  margin: 26px 0 0;
  color: #ffffff;
  font-family: Cabin, sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.4;
}

.home-hero-copy {
  margin: 22px auto 0;
  max-width: 780px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.6;
}

.home-hero-pull {
  margin: 18px 0 0;
  color: var(--amber-bright);
  font-size: 18px;
  font-style: italic;
}

.social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 41px;
  height: 41px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: Georgia, serif;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 200ms ease;
}

.social a:hover,
.social a:focus-visible {
  background: var(--amber-bright);
  color: #171717;
}

.home-pillars {
  position: relative;
  padding: 0 0 60px;
  background-image: url("../img/home-banner.jpg");
  background-position: center;
  background-size: cover;
}

.home-pillars-bg {
  position: absolute;
  inset: 0;
  background: #090909;
  opacity: 0.2;
}

.home-pillars .wrap {
  position: relative;
  z-index: 1;
}

.pillar-strip {
  padding: 40px 32px;
  background: #ffffff;
  text-align: center;
}

.pillar-strip p {
  margin: 0;
  color: var(--body-text);
  font-size: 18px;
  line-height: 1.6;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.pillar {
  padding: 32px 24px;
  background: #ffffff;
  border-top: 5px solid var(--amber-bright);
  text-align: center;
}

.pillar h3 {
  margin: 0 0 12px;
  font-family: Hind, Cabin, sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
}

.pillar p {
  margin: 0;
  color: var(--body-text);
  font-size: 17px;
  line-height: 1.6;
}

.home-impact {
  padding: 60px 0;
  background: var(--amber);
}

.home-strip {
  padding: 70px 0 90px;
  background: #eeeeee;
  text-align: center;
}

.strip-title {
  margin: 0 0 14px;
  font-family: Hind, Cabin, sans-serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}

.strip-copy {
  margin: 0 auto 8px;
  max-width: 620px;
  color: var(--body-text);
  font-size: 18px;
  line-height: 1.6;
}

/* Footer */

.site-footer {
  padding: 50px 0 40px;
  background: #171717;
  color: #d7d5d2;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.footer-logo {
  width: 180px;
  height: auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
}

.footer-nav a {
  color: #d7d5d2;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--amber-bright);
}

.footer-legal {
  margin: 0;
  color: #8f8c88;
  font-size: 13px;
}

/* Scroll reveal (stands in for the Pagelayer wow.js animations) */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .person-photo img,
  .nav-drawer,
  .btn-read {
    transition: none;
  }
}

/* Tablet */

@media (max-width: 1024px) {
  .nav-desktop a {
    padding: 7px 12px;
    font-size: 15px;
  }

  .team-grid-4 > .person {
    width: 33.333%;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero-bg {
    height: 220px;
  }

  .impact {
    padding: 60px 0;
  }

  .impact-number {
    font-size: 40px;
  }

  .impact-label {
    font-size: 14px;
  }

  .team-heading {
    font-size: 30px;
  }

  .team-grid-4 > .person,
  .team-grid-2 > .person {
    width: 50%;
  }

  .team-grid-1 > .person {
    width: 50%;
  }

  .person-name {
    font-size: 22px;
  }

  .team-heading {
    font-size: 30px;
  }

  .program-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero {
    padding: 50px 0 60px;
  }

  .page-title {
    font-size: 40px;
  }

  .home-hero {
    padding: 120px 0 90px;
  }

  .home-hero-title {
    font-size: 44px;
    letter-spacing: 4px;
  }

  .home-hero-sub {
    font-size: 22px;
  }

  .pillar-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .strip-title {
    font-size: 30px;
  }
}

/* Mobile */

@media (max-width: 500px) {
  .hero {
    /* hero keeps its height on small screens */
  }

  .hero-bg {
    height: 190px;
  }

  .impact {
    padding: 40px 0;
  }

  .impact-inner {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .impact-item {
    width: 100%;
  }

  .impact-number {
    font-size: 40px;
  }

  .section-about {
    padding-top: 30px;
  }

  .eyebrow {
    font-size: 22px;
    letter-spacing: 3px;
  }

  .prose {
    font-size: 16px;
    text-align: left;
  }

  .team-heading {
    font-size: 25px;
  }

  .team-grid-4 > .person,
  .team-grid-2 > .person,
  .team-grid-1 > .person {
    width: 100%;
  }

  .section-copy,
  .section-team {
    padding-bottom: 30px;
  }

  .section-block {
    padding: 36px 0;
  }

  .program-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    height: 200px;
  }

  .page-hero {
    padding: 36px 0 44px;
  }

  .page-title {
    font-size: 32px;
  }

  .page-lead {
    font-size: 16px;
  }

  .home-hero {
    padding: 90px 0 60px;
  }

  .home-hero-title {
    font-size: 31px;
    letter-spacing: 2px;
  }

  .home-hero-sub {
    margin-top: 16px;
    font-size: 18px;
  }

  .home-hero-copy,
  .home-hero-pull {
    font-size: 16px;
  }

  .pillar-strip {
    padding: 26px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form {
    padding: 24px 18px;
  }

  .section-contact-details {
    padding: 36px 0 50px;
  }

  .strip-title {
    font-size: 25px;
  }

  .home-strip {
    padding: 40px 0 50px;
  }
}
