/*
Global styles that apply to all components and pages.
Includes:
  - body
  - header
  - footer

Screen sizes to consider (https://screensiz.es/):
  - desktop: 1920 x 1080
  - laptop: 1300 wide
  - phone: 600 wide
*/
:root {
  /* Colors */
  --blue: #438fef;
  --blue-mid: #104485;
  --blue-dark: #00377b;
  --blue-light: #eff6ff;
  --gold: #ebb900;
  --gold-light: #fff9e8;
  --peach: #f37365;
  --grey: #434343;
  --dark-0: #000;
  --dark-1: #18191f;
  --dark-3: #333;
  --dark-4: #3f3f3f;
  --dark-5: #454545;
  --dark-6: #505050;
  --grey: #e8f1f5;
  --grey-2: #d9dbe1;
  --white: #fff;
  /* Sizes */
  --header-height: 63px;
  --header-padding-top: 60px;

  --header-offset-top: 60px;
  --header-height-total: calc(var(--header-height) + var(--header-offset-top));
  --container-max-width: 1240px;
  --container-article-max-width: 950px;
  /* Fonts - too many? */
  --font-serif: "Abhaya Libre", serif;
  --font-sans: "Nunito Sans", sans-serif;
  --font-sans-alt-1: "Nunito", sans-serif;
  --font-sans-alt-2: "DM Sans", sans-serif;
  /* Static content urls */
  --url-footer-cta-img: url("/static/web/img/footer-cta-phones.fc8f820cbc29.png");
  --url-chevron-down-svg: url("/static/web/img/chevron-down.3a4e378167af.svg");
  --url-landing-hero-phone-img: url("/static/web/img/landing-hero-1080.c64577e7faf5.jpg");

  /* Responsive variables */
  --container-padding: 135px;
  --container-wide-padding: 100px;
  --header-font-size: 50px;
  --header-line-height: 58px;
  --header-mini-font-size: 25px;
  --body-font-size: 20px;
  --body-line-height: 34px;
  --radius-multiplier: 1;
  --hero-external-radius: 300px;
}

/* Responsive variables (tablet / half screen) */
@media (max-width: 1300px) {
  :root {
    --header-font-size: 36px;
    --header-line-height: 44px;
    --header-mini-font-size: 20px;
    --body-font-size: 18px;
    --body-line-height: 28px;
  }
}

@media (min-width: 768px) {
  #closure-notice {
    position: sticky;
  }
}

/* Responsive variables (phone) */
@media (max-width: 600px) {
  :root {
    --header-height: 46px;
    --header-padding-top: 30px;
    --hero-external-radius: 124px;
    --header-font-size: 26px;
    --header-line-height: 32px;
    --header-mini-font-size: 18px;
    --body-font-size: 16px;
    --body-line-height: 25px;
    --radius-multiplier: 0.3;
    --container-padding: 24px;
    --container-wide-padding: 24px;
  }
}

/* Whole page body */
html,
body {
  scrollbar-width: thin;
  margin: 0;
  padding: 0;
  min-height: 100%;
  box-sizing: border-box;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--body-font-size);
  line-height: 1.3333333;
  color: var(--dark-0);
}

a {
  text-decoration: none;
}

/* Page header */
.header-message {
  text-align: center;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--blue-dark);
  color: var(--white) !important;
  line-height: 100%;
  position: relative;
  top: 0;
  z-index: 2;
  padding: 30px;
}

header {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  width: calc(100vw - 2 * var(--container-wide-padding));
  height: var(--header-height);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  padding-top: var(--header-padding-top);
}

header img {
  height: var(--header-height);
}

header nav.large {
  display: flex;
  align-items: center;
  gap: calc(33px - 24px);
}

header nav.small,
header nav.small .menu {
  display: none;
}

header nav.small img {
  height: 20px;
}

header nav.small .menu.active {
  display: unset;
  position: absolute;
  background-color: var(--white);
  box-shadow: 0px 4px 41px rgba(0, 55, 123, 0.15);
  border-radius: 3px;
  left: calc(-1 * var(--container-wide-padding) - 1px);
  right: calc(-1 * var(--container-wide-padding));
  width: calc(100vw + 1px);
  box-sizing: border-box;
  padding: 16px 16px 44px 16px;
  top: var(--header-height-total);
}

header nav.small .menu.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  top: calc(-1 * (var(--header-height-total) + var(--header-offset-top)));
  bottom: 100%;
  background: var(--white);
  z-index: -1;
}

@media (max-width: 1300px) {
  header nav.small {
    display: flex;
    align-items: center;
  }

  header nav.large {
    display: none;
  }
}

header nav a,
header nav .dropdown {
  text-decoration: none;
  font-size: 16px;
  font-family: var(--font-sans-alt-1);
  font-weight: 700;
  color: var(--dark-1);
  text-decoration: none;
}

header nav .dropdown {
  position: relative;
  padding: 12px;
  display: block;
}

header nav .dropdown .title {
  position: relative;
  padding-right: 19px;
  cursor: pointer;
}

header nav .dropdown .title:after {
  position: absolute;
  background: var(--url-chevron-down-svg) no-repeat;
  background-size: contain;
  width: 12px;
  height: 6px;
  content: "";
  top: 8px;
  right: 0;
}

header nav.small .dropdown .options {
  display: none;
}

header nav.small .dropdown {
  margin-bottom: 4px;
}

header nav.small .dropdown.active > .options {
  display: flex;
  flex-direction: column;
  padding: 0 12px 0 18px;
  gap: 1rem;
}

header nav.large .dropdown .options {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  left: 0;
  margin-top: 12px;
  display: none;
  border-radius: 0 0 0 12px;
}

header nav .dropdown .options a {
  font-weight: 500;
}

header nav.small .dropdown .options a {
  margin: 18px 0 0 0;
}

header nav.large .dropdown:hover {
  background-color: var(--gold-light);
  box-shadow: 0px 4px 41px rgba(0, 55, 123, 0.15);
  border-radius: 0 12px 0 0;
}

header nav.large .dropdown:hover > .options,
header nav.large .dropdown:focus-within > .options,
header nav.large .dropdown .options:hover {
  visibility: visible;
  opacity: 1;
  width: 200px;
  display: flex;
  flex-direction: column;
  background: var(--gold-light);
  padding: 12px 12px 16px 12px;
  gap: 1rem;
}

header nav .dropdown .options a {
  clear: both;
  width: 100%;
  cursor: pointer;
}

header nav .dropdown .options a:hover {
  text-decoration: underline;
}

header nav a button#donate {
  font-size: 16px;
  background: var(--blue-mid);
  padding: 8px 36px 7px 36px;
}

header nav.small a button#donate {
  margin: 38px 0 0 0;
  width: unset;
}

header nav a:visited {
  color: var(--dark);
}

/* Page footer */
footer {
  background-color: var(--blue-dark);
  font-family: var(--font-sans-alt-2);
  padding: 100px 0 150px 0;
  display: flex;
  justify-content: center;
}

footer .inner {
  display: grid;
  grid-template-columns: repeat(4, 25%);
  grid-gap: 30px;
  width: calc(100vw - 2 * 165px);
  justify-content: center;
  max-width: 1080px;
}

@media (max-width: 1300px) {
  footer {
    padding: 55px 0 75px 0;
  }

  footer .inner {
    grid-template-columns: 270px;
  }
}

footer h3 {
  color: var(--white);
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
  margin-bottom: 24px;
  margin-top: 0;
}

footer p {
  font-size: 14px;
  color: var(--grey-2);
  line-height: 24px;
  margin-bottom: 12px;
}

footer a {
  color: var(--grey-2);
  text-decoration: none;
}

footer a:visited {
  color: var(--grey-2);
}

footer .column {
  display: flex;
  flex-direction: column;
}

#social-media {
  width: 146;
  display: grid;
  grid-template-columns: repeat(4, 24px 16px);
}

footer p.icon {
  padding-left: 35px;
  position: relative;
}

footer p.icon img {
  height: 25px;
  position: absolute;
  top: 0;
  left: 0;
}

/* 
Optional call to action section thar sits just above the footer.
 */
#footer-cta {
  background-image: var(--url-footer-cta-img);
  background-repeat: no-repeat;
  background-position: calc(50% + 300px) 100%;
}

#footer-cta .content {
  padding: 80px 0;
  max-width: 540px;
}

#footer-cta .content h2 {
  color: var(--dark-1);
  font-size: 48px;
}

#footer-cta .content p {
  color: var(--dark-5);
  font-size: 18px;
  line-height: 32px;
}

@media (max-width: 1300px) {
  #footer-cta {
    background-image: none;
    padding-top: 80px;
  }

  #footer-cta:before {
    height: 80px;
    border-radius: 0 0 0 75%/ 0 0 0 100%;
  }

  #footer-cta .content {
    padding: 50px 0;
  }

  #footer-cta .content h2 {
    font-size: 26px;
  }

  #footer-cta .content p {
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 35px;
  }
}

/* Hide the reCAPTCHA badge */
.grecaptcha-badge {
  visibility: hidden;
}

.grecaptcha-branding {
  font-size: 11px;
  color: #adb5bd;
}
