/*
 * Temporary Online Giving page (static, standalone).
 * Mirrors iamgladney theme tokens: sites/all/themes/iamgladney/scss/components/_variables.scss
 */

@font-face {
  font-family: 'U59';
  src: url('../fonts/U59.woff') format('woff'),
       url('../fonts/U59.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary: #2ab36c;      /* jungle-green */
  --color-primary-dark: #22925a; /* darken 8% */
  --color-secondary: #173f54;    /* nile-blue */
  --color-tertiary: #c8dd84;     /* yellow-green */
  --color-text: #5d5d5d;
  --color-border: #e1e1e1;       /* mercury */
  --color-bg-soft: #f2f2f2;      /* concrete */
  --color-under-footer: #dddddd; /* alto */
  --font-regular: 'Lora', Georgia, serif;
  --font-title: 'U59', 'Arial Narrow', Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: #fff;
  font-family: var(--font-regular);
  font-size: 14px;
  color: var(--color-text);
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

h1, h2 {
  font-family: var(--font-title);
  font-weight: normal;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--color-secondary);
}

p {
  line-height: 1.94;
  margin: 0 0 1.25em;
}

/* Header ------------------------------------------------------------ */

.site-header {
  background: #fff;
  border-bottom: 6px solid var(--color-primary);
}

.site-header__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  justify-content: center;
}

.site-header__logo img {
  width: 90px;
}

/* Main -------------------------------------------------------------- */

.giving {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 0;
}

.giving__banner img {
  width: 100%;
  margin: 0 auto;
}

.giving__content {
  text-align: center;
  padding-top: 24px;
}

.giving__title {
  font-size: 30px;
  margin: 0 0 20px;
  color: var(--color-primary);
}

.giving__cta {
  margin: 30px 0;
}

.btn-give {
  display: inline-block;
  font-family: var(--font-title);
  text-transform: uppercase;
  line-height: 1.25;
  font-size: 22px;
  padding: 14px 24px;
  background: var(--color-primary);
  color: #fff;
  border: 0;
  border-radius: 0;
  transition: background-color 0.25s;
}

.btn-give:hover,
.btn-give:focus {
  background: var(--color-primary-dark);
  color: #fff;
  text-decoration: none;
}

.btn-give:focus-visible {
  outline: 3px solid var(--color-tertiary);
  outline-offset: 3px;
}

.giving__thanks {
  font-style: italic;
  color: var(--color-secondary);
}

.giving__boxes {
  display: grid;
  gap: 16px;
  margin-top: 30px;
  text-align: left;
}

.giving__box {
  background: var(--color-bg-soft);
  border-left: 6px solid var(--color-primary);
  padding: 20px;
}

.giving__box h2 {
  font-size: 20px;
  margin: 0 0 12px;
}

.giving__box address {
  font-style: normal;
  line-height: 1.6;
  color: var(--color-secondary);
}

.giving__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 1.94;
}

.giving__contact li {
  position: relative;
  padding-left: 26px;
}

.giving__contact li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

/* Footer ------------------------------------------------------------ */

.site-footer {
  background: var(--color-secondary);
  color: #fff;
  margin-top: 3em;
  padding: 24px 16px;
}

.site-footer__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.site-footer__logo {
  width: 70px;
}

.site-footer__text p {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.4;
}

.site-footer__name {
  font-family: var(--font-title);
  text-transform: uppercase;
  font-size: 18px !important;
  color: var(--color-primary);
}

.site-footer a {
  color: #fff;
}

/* Tablet and up ----------------------------------------------------- */

@media (min-width: 768px) {
  body,
  p {
    font-size: 18px; /* 14 * 1.285, matches theme */
  }

  .site-header__logo img {
    width: 120px;
  }

  .giving {
    padding-top: 40px;
  }

  .giving__title {
    font-size: 40px;
  }

  .btn-give {
    font-size: 32px;
    padding: 21px 32px;
  }

  .giving__boxes {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer {
    padding: 40px 16px;
  }

  .site-footer__logo {
    width: 90px;
  }

  .site-footer__text p {
    font-size: 14px;
  }
}

/* Touch targets (>= 44px) on contact links -------------------------- */

.giving__contact a {
  display: inline-block;
  padding: 8px 0;
}

.giving__contact li::before {
  top: 8px;
}

.site-footer__text a {
  display: inline-block;
  padding: 12px 4px;
}
