

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

:root {
  --body-font-family: "Roboto", sans-serif;
  --heading-font-family: "Abril Fatface", cursive;

  --brand-color-blue: #58769e;
  --brand-color-tan: #ded7cd;
  --color-white: #ffffff;
  --color-dark-blue: #263952;
  --color-dark-blue-border: #3c506b;
  --color-pink: #9e688c;
  --color-gray: #96a0ae;
}

html,
body {
  background-color: var(--brand-color-tan);
  font-family: var(--body-font-family);
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font-family);
  letter-spacing: 0.0625rem;
}







.navbar {
  display: flex;
  flex-direction: column;
}
@media screen and (min-width: 48rem) {
  .navbar {
    display: flex;
    flex-direction: row;
  }

  .navbar__brand {
    width: 18.75rem;
  }

  .navbar__nav {
    flex-grow: 1;
    align-self: center;
  }
}

@media screen and (min-width: 64rem) {
  .navbar {
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
  }
}







.brand {
  display: flex;
  align-items: center;
  justify-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
}
.brand:link,
.brand:visited {
  color: var(--brand-color-blue);
  text-decoration: none;
  transition: opacity 300ms;
}
.brand:hover,
.brand:focus,
.brand:active {
  color: var(--brand-color-blue);
  text-decoration: none;
  opacity: 0.75;
}

.brand__logo {
  height: 3.75rem;
  padding: 0.5rem 1rem;
  padding-left: 0;
}
.brand__name {
  flex-basis: min-content;
  font-family: "Abril Fatface", cursive;
  font-size: 1.5rem;
  line-height: 1.5rem;
  letter-spacing: 0.0625rem;
  border-left: 0.125rem solid var(--brand-color-blue);
  padding: 0.5rem 1rem;
}







/*.nav {}*/

.nav__items {
  display: flex;
  align-items: center;
  justify-items: center;
  justify-content: space-evenly;

  list-style-type: none;
  margin: 0;
  padding: 0;
}
.nav__item {
  display: flex;
  align-items: flex-start;
  height: 2rem;
}

@media screen and (min-width: 48rem) {
  .nav__item {
    align-items: center;
  }
}

.nav__link {
  color: var(--brand-color-blue);
  text-decoration: none;
  border-bottom: 0.125rem solid transparent;
  transition: border-bottom-color 300ms;
}

.nav__link:link,
.nav__link:visited {
  color: var(--brand-color-blue);
  text-decoration: none;
}
.nav__link:hover,
.nav__link:focus,
.nav__link:active {
  border-bottom-color: var(--brand-color-blue);
}







.hero {
  position: relative;
}
.hero__image {
  position: absolute;
  display: block;
  width: 100%;
  height: auto;
}
.hero__content-container {
  position: relative;
  padding: 2rem;
  padding-top: calc((100vw / 1.5) - 4rem);
  background: center top / contain no-repeat
    linear-gradient(
      180deg,
      rgba(38, 57, 82, 0) calc((100vw / 1.5) / 2),
      rgb(38, 57, 82) calc(100vw / 1.5)
    );
  color: var(--color-white);
}
.hero__content {
  max-width: 21.875rem;
  margin: auto;
}
.hero__content-title {
  margin: 2rem 0;
  padding: 0;
  font-family: var(--heading-font-family);
  font-size: 2rem;
  line-height: 2.125rem;
  letter-spacing: 0.125rem;
}
.hero__content-text {
  margin: 1rem 0;
  padding: 0;
  font-family: var(--body-font-family);
  font-size: 1rem;
  line-height: 1.125rem;
}
.hero__content-link,
.hero__content-link:link,
.hero__content-link:visited {
  display: inline-block;
  color: var(--color-white);
  text-decoration: none;
}
.hero__content-link::after {
  content: "›";
  margin-left: 0.3125rem;
}
.hero__content-link:hover::after,
.hero__content-link:focus::after,
.hero__content-link:active::after {
  content: "»";
  margin-left: 0.3125rem;
}

.hero__cta {
  max-width: 21.875rem;
  margin: 4rem auto 2rem auto;
  padding: 0;
}
.hero__cta-links {
  display: flex;
  align-items: center;
  justify-items: center;
  justify-content: space-between;

  margin: 0;
  padding: 0;
  list-style-type: none;
}
.hero__cta-item {
  display: flex;
}
.hero__cta-link,
.hero__cta-link:link,
.hero__cta-link:visited {
  color: var(--color-white);
  text-decoration: none;
  font-weight: bold;
  border: 0.125rem solid var(--color-white);
  border-radius: 3.125rem;
  display: flex;
  align-items: center;
  height: 2rem;
  padding: 0.5rem 1rem;
  transition: background-color 300ms, color 300ms;
}
.hero__cta-link:hover,
.hero__cta-link:focus,
.hero__cta-link:active {
  background-color: var(--color-white);
  color: var(--color-dark-blue);
}

@media screen and (min-width: 48rem) {
  .hero {
    overflow: hidden;
  }
  .hero__image {
    position: absolute;
    width: auto;
    height: 100%;
    top: 50%;
    right: 0;
    translate: 0 -50%;
  }
  .hero__content-container {
    padding-top: 2rem;
    margin-top: 0;
    background: center top / contain no-repeat
      linear-gradient(
        90deg,
        rgb(38, 57, 82) 50%,
        rgba(38, 57, 82, 0) calc(100vw / 1.5)
      );
  }
  .hero__content {
    margin-left: 0;
    margin-right: 0;
  }
  .hero__content-title {
    margin: 0;
  }
  .hero__cta {
    margin: 2rem 0 0 0;
  }
}
@media screen and (min-width: 56.25rem) {
  .hero__image {
    position: absolute;
    width: 50%;
    height: auto;
    top: 50%;
    right: 0;
    translate: 0 -50%;
  }
}
@media screen and (min-width: 64rem) {
  .hero {
    background-color: var(--color-dark-blue);
  }
  .hero__content-container {
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
    background: center top / contain no-repeat
      linear-gradient(90deg, rgb(38, 57, 82) 50%, rgba(38, 57, 82, 0) 100%);
  }
}







.donation-cta {
  padding: 2rem 1rem;
  margin: auto;
}
.donation-cta__title {
  margin: auto;
  padding: 0 0 2rem 0;
  font-family: var(--body-font-family);
  font-size: 2rem;
  font-weight: 600;
  color: var(--brand-color-blue);
  text-align: center;
  max-width: 21rem;
}
.donation-cta__content {
  display: flex;
}
.donation-cta__facts {
  width: 100%;
  max-width: 100%;
}
.donation-cta__fact {
  margin: 1rem 0;
  padding: 0;
  display: flex;
  align-items: center;
}
.donation-cta__fact-icon {
  display: block;
  height: 2rem;
  width: 2rem;
}
.donation-cta__fact-text {
  margin: 0;
  padding: 0 0 0 1rem;
  font-family: var(--body-font-family);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-dark-blue);
}
.donation-cta__fact-attention {
  display: block;
  font-weight: 600;
}
.donation-cta__donate-btn {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
}
.donation-cta__donate-btn-link {
  display: flex;
  background: transparent center center no-repeat;
  background-image: url("/img/icons/icon-heart.svg");
  background-size: contain;
  flex: 1 1 auto;
  font-family: var(--body-font-family);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  text-decoration: none;
  display: flex;
  align-content: center;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-width: 9.375rem;
  max-height: 9.375rem;
  padding-top: 1.125rem;
}
.donation-cta__donate-btn-link:hover {
  color: var(--color-dark-blue);
  transition: color 300ms;
}
.donation-cta__donate-btn-link::after {
  content: "›";
  display: block;
  text-align: center;
  font-family: var(--body-font-family);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-white);
  border: 0.0625rem solid var(--color-white);
  border-color: var(--color-white);
  border-radius: 6.25rem;
  height: 1.875rem;
  width: 1.875rem;
  line-height: 1.5625rem;
  margin: 0.5rem auto;
}

.donation-cta__donate-btn-link:hover::after {
  color: var(--color-dark-blue);
  border-color: var(--color-dark-blue);
  transition: color 300ms, border-color 300ms;
}
@media screen and (min-width: 48rem) {
  .donation-cta__title,
  .donation-cta__content {
    margin-left: auto;
    margin-right: auto;
    max-width: 60rem;
  }
  .donation-cta__facts {
    display: flex;
    justify-content: space-around;
    flex: 1 1 auto;
    max-width: 100%;
  }
  .donation-cta__donate-btn-link {
    width: 9.375rem;
    height: 9.375rem;
  }
}
@media screen and (min-width: 64rem) {
  .donation-cta {
    padding: 4rem;
  }
}







.donation-calculator {
  padding: 2rem 1rem;
  max-width: 21.875rem;
  margin: auto;
}
.donation-calculator__title {
  margin: auto;
  padding: 0 0 1rem 0;
  font-family: var(--body-font-family);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--brand-color-blue);
  text-align: center;
  max-width: 21rem;
}
.donation-calculator__calc-amount,
.donation-calculator__calc-meals {
  color: var(--color-pink);
}
@media screen and (min-width: 48rem) {
  .donation-calculator {
    padding: 2rem;
    max-width: 42rem;
    margin: auto;
  }
  .donation-calculator__title {
    max-width: 100%;
  }
}

.field__group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.field {
  width: 100%;
  height: 2rem;
  display: flex;
  align-items: stretch;
  align-content: stretch;
  justify-content: center;
}
.field--radio-btn .field__input {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}
.field--radio-btn .field__label {
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: center;
  width: 100%;

  font-family: var(--body-font-family);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;

  color: var(--color-white);
  background-color: var(--color-gray);
  border: 0.0625rem solid var(--brand-color-blue);
  border-radius: 0.25rem;
}
.field--radio-btn .field__input:checked + .field__label,
.field--radio-btn .field__input:active + .field__label,
.field--radio-btn .field__input:hover + .field__label,
.field__label:active {
  background-color: var(--color-pink);
  border: 0.0625rem solid var(--color-dark-blue-border);
}
@media screen and (min-width: 48rem) {
  .field {
    width: initial;
    height: initial;
    flex: 1 1 auto;
  }
}

.field--text {
  position: relative;
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: center;
  width: 100%;

  font-family: var(--body-font-family);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-white);
  background-color: var(--color-gray);
  border: 0.0625rem solid var(--brand-color-blue);
  border-radius: 0.25rem;
}
@media screen and (min-width: 48rem) {
  .field--text {
    width: initial;
  }
}

.field--text .field__input {
  position: relative;
  background-color: transparent;
  border: transparent;
  font-family: var(--body-font-family);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-white);
  width: 2.875rem;
}

.field--text .field__input::placeholder {
  font-family: var(--body-font-family);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-white);
}
.field--text .field__input:focus {
  background-color: transparent;
  border: transparent;
  color: var(--color-white);
  box-shadow: none;
  outline: none;
}
.field--text .field__input:focus::placeholder {
  color: transparent;
}

.field--text.field--active {
  background-color: var(--color-pink);
  border: 0.0625rem solid var(--color-dark-blue-border);
}

.field--submit {
  height: auto;
}
.field--submit .field__submit {
  color: var(--brand-color-blue);
  background-color: var(--brand-color-tan);
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  border: 0.125rem solid var(--brand-color-blue);
  border-radius: 3.125rem;
  display: flex;
  align-items: center;
  height: 3rem;
  padding: 0.5rem 1rem;
  transition: background-color 300ms, color 300ms;
}
.field--submit .field__submit:hover,
.field--submit .field__submit:focus,
.field--submit .field__submit:active {
  background-color: var(--brand-color-blue);
  color: var(--color-white);
}

.partners {
  background-color: var(--brand-color-blue);
}
.partners__title {
  margin: 0;
  padding: 2rem;
  font-family: var(--heading-font-family);
  font-size: 2rem;
  letter-spacing: 0.125rem;
  color: var(--color-white);
}
.partners__logos {
  display: flex;
  flex-wrap: wrap;
}
.partners__logo {
  width: 50%;
  margin: 0;
  padding: 0;
  position: relative;
}

.partners__logo-image {
  display: block;
  width: 100%;
  height: auto;
  border: 0.125rem solid transparent;
}
.partners__logo::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--brand-color-blue);
  opacity: 0.3;
}
@media screen and (min-width: 28.125rem) {
  .partners__logo {
    width: calc(100% / 3);
  }
}
@media screen and (min-width: 48rem) {
  .partners__logo {
    width: calc(100% / 4);
  }
}
@media screen and (min-width: 64rem) {
  .partners__title,
  .partners__logos {
    max-width: 64rem;
    margin: auto;
  }
}
