/* Colors */
:root {
  --flame: #d55e27;
  --cerulean: #00a9d7;
  --eminence: #6b297d;
  --indigo: #1a4174;
  --yellow: #e19225;
  --gold: #e49624;
  --text: #2e2e2e;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
}

h1, h2, h3, h4, h5, p {
  margin: 0;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

a {
  text-decoration: none;
}

/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-medium {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 16px;
}

.container-narrow {
  max-width: 940px;
  margin: 0 auto;
}

/* Text colors */
.text-cerulean { color: var(--cerulean); }
.text-flame { color: var(--flame); }
.text-eminence { color: var(--eminence); }
.text-yellow { color: var(--yellow); }
.text-indigo { color: var(--indigo); }

/* Headings */
.heading-xl {
  font-family: Cabin, sans-serif;
  font-size: 64.8px;
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
  text-align: center;
}

.heading-lg {
  font-size: 47.2px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
}

.heading-sm {
  font-size: 28.8px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
  color: var(--white);
}

/* Buttons: angled bottom-right corner */
.button {
  display: inline-block;
  width: 250px;
  padding: 12px 32px;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  color: var(--white);
}

.button-flame { background: linear-gradient(135deg, var(--flame) 93%, transparent 93%); }
.button-cerulean { background: linear-gradient(135deg, var(--cerulean) 93%, transparent 93%); }
.button-eminence { background: linear-gradient(135deg, var(--eminence) 93%, transparent 93%); }

.button-white {
  font-size: 17.6px;
  line-height: 26.4px;
  padding: 12px 24px;
  color: var(--flame);
  background: linear-gradient(135deg, var(--white) 93%, transparent 93%);
}

.button-ghost {
  font-size: 17.6px;
  line-height: 26.4px;
  background:
    linear-gradient(135deg, transparent 92%, var(--white) 92%, var(--white) 93%, var(--cerulean) 93%),
    linear-gradient(90deg, transparent 99.3%, var(--white) 99.3%),
    linear-gradient(0deg, transparent 97%, var(--white) 97%),
    linear-gradient(90deg, var(--white) 0.7%, transparent 0.7%),
    linear-gradient(180deg, transparent 97%, var(--white) 97%);
}

.button-flame:hover,
.button-cerulean:hover,
.button-eminence:hover,
.button-white:hover,
.button-ghost:hover {
  opacity: 0.85;
}

.button-solid {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 32px;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 17.6px;
  font-weight: 700;
  line-height: 26.4px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--flame);
  border: 2px solid var(--white);
}

.button-submit {
  display: inline-block;
  padding: 8px 16px;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(135deg, var(--cerulean) 90%, transparent 90%);
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

/* Button with a line running off the left edge of the page */
.button-row {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.button-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100vw;
  right: 32px;
  height: 3px;
}

.container-medium.button-row::before {
  right: 16px;
}

.line-cerulean::before { background: var(--cerulean); }
.line-eminence::before { background: var(--eminence); }
.line-flame::before { background: var(--flame); }

/* Header */
.header-top {
  background: var(--white);
}

.header-inner {
  position: relative;
}

.logo {
  position: absolute;
  top: -12px;
  left: 32px;
  z-index: 20;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--white) url("images/logo.jpg") center / 85% no-repeat;
}

.nav-top {
  display: flex;
  justify-content: center;
  height: 48px;
  margin-left: 120px;
}

.nav-top-link {
  display: flex;
  align-items: center;
  padding: 0 40px;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 17.6px;
  text-transform: uppercase;
  color: var(--eminence);
}

.nav-top-link:hover {
  color: var(--flame);
}

.nav-top-link.get-help,
.nav-top-link.donate {
  padding: 0 32px;
  font-family: Roboto, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  background: var(--cerulean);
}

.nav-top-link.donate {
  margin: 0 4px;
  font-weight: 900;
  background: var(--flame);
}

.header-bottom {
  position: relative;
  background: var(--eminence);
}

.nav-main {
  display: flex;
  justify-content: center;
  height: 48px;
  margin-left: 120px;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 32px;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 18.4px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
}

/* Dropdown panels open on hover, full width under the menu bar */
.dropdown-panel {
  display: none;
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  z-index: 10;
  height: 272px;
}

.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel {
  display: block;
}

.dropdown-inner {
  display: flex;
  height: 100%;
  padding-left: 128px;
}

.dropdown-col {
  display: flex;
  flex-direction: column;
  padding-top: 32px;
}

.dropdown-col:first-child {
  width: 393px;
}

.dropdown-col:nth-child(2) {
  width: 270px;
}

.dropdown-col a {
  padding: 8px 0;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 18.4px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
}

.dropdown-col a:hover {
  text-decoration: underline;
}

.dropdown-image {
  width: 345px;
  margin-left: 16px;
  background-size: auto 100%;
  background-position: 70% 50%;
  background-repeat: no-repeat;
}

.who-we-are .dropdown-panel,
.who-we-are:hover .dropdown-toggle {
  background: linear-gradient(to right, #e59623, var(--flame));
}

.what-we-offer .dropdown-panel,
.what-we-offer:hover .dropdown-toggle {
  background: linear-gradient(to right, #b24db5, var(--eminence));
}

.ways-to-give .dropdown-panel,
.ways-to-give:hover .dropdown-toggle {
  background: linear-gradient(135deg, var(--yellow) 48%, #ecbc1f 75%, #f7e219);
}

.get-involved .dropdown-panel,
.get-involved:hover .dropdown-toggle {
  background: linear-gradient(135deg, var(--cerulean), var(--indigo) 45%);
}

.who-we-are .dropdown-image { background-image: url("images/nav-who-we-are.png"); }
.what-we-offer .dropdown-image { background-image: url("images/nav-what-we-offer.png"); }
.ways-to-give .dropdown-image { background-image: url("images/nav-ways-to-give.png"); }
.get-involved .dropdown-image { background-image: url("images/nav-get-involved.png"); }

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 733px;
  padding-bottom: 77px;
  overflow: hidden;
  background: #333 url("images/hero-poster.jpg") center / cover;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

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

.hero-headline {
  margin-bottom: 32px;
  font-family: Cabin, sans-serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 2px 2px 8px #2e2e2e;
}

/* Intro */
.intro {
  padding: 64px 0 48px;
}

.intro-text {
  max-width: 1184px;
  margin: 0 auto;
  font-size: 24px;
  line-height: 36px;
  text-align: center;
}

.welcome {
  display: grid;
  grid-template-columns: 480px 480px;
  gap: 32px;
  align-items: center;
  justify-content: center;
  margin-top: 64px;
}

.welcome-image {
  text-align: center;
}

.welcome-image img {
  display: block;
  margin: 0 auto;
}

.welcome-content h3 {
  margin-bottom: 8px;
  font-size: 40px;
  font-weight: 700;
  line-height: 48px;
  text-transform: uppercase;
  color: var(--cerulean);
}

.welcome-content p {
  margin-bottom: 32px;
  font-size: 18px;
  line-height: 27px;
}

.welcome-content p:last-child {
  margin-bottom: 0;
}

/* Get help */
.get-help {
  padding: 48px 0;
  text-align: center;
  color: var(--white);
  background: var(--flame);
}

.get-help p {
  margin: 32px 0 64px;
}

/* Medical respite statement */
.respite {
  padding: 64px 16px;
}

.respite-subtitle {
  margin-bottom: 27px;
  font-family: Cabin, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  text-align: center;
  color: #000;
}

.respite p {
  margin-bottom: 27px;
  line-height: 27px;
}

.respite sup {
  line-height: 0;
}

.respite-buttons {
  margin-top: 64px;
}

/* Medical respite question form */
.respite-question {
  padding: 48px 0;
  text-align: center;
  color: var(--white);
  background: var(--indigo) linear-gradient(#216faa, rgba(255, 255, 255, 0));
}

.respite-question p {
  margin: 32px 0;
}

.text-large {
  font-size: 24px;
  line-height: 36px;
}

.question-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 480px;
  margin: 0 auto;
}

.question-form input[type="text"],
.question-form input[type="email"],
.question-form textarea {
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  font-family: Roboto, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  border: 1px solid #ccc;
}

.question-form textarea {
  height: 130px;
  resize: vertical;
}

.question-form .button-submit {
  margin-top: 136px;
}

/* Explore */
.explore {
  padding: 112px 0;
}

.explore-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.explore-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 64px;
  text-align: center;
}

.explore-icon {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 112px;
  height: 112px;
}

.explore-icon img {
  height: 84px;
}

.explore-item h3 {
  font-size: 40px;
  font-weight: 700;
  line-height: 48px;
  text-transform: uppercase;
}

.explore-item p {
  margin-bottom: 32px;
  line-height: 27px;
  color: var(--text);
}

/* Photo banners */
.banner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 350px;
  padding: 0 16px;
  color: var(--white);
  background-size: cover;
  background-position: center;
}

.banner-impact { background-image: url("images/impact-bg.jpg"); }
.banner-stories { background-image: url("images/stories-bg.jpg"); }
.banner-help { background-image: url("images/help-bg.jpg"); }

/* Impact */
.impact-content {
  padding-top: 112px;
  padding-bottom: 48px;
}

.impact-component {
  max-width: 773px;
  margin: 0 auto;
}

.impact-component h3 {
  margin-bottom: 32px;
}

.impact-row {
  display: flex;
  justify-content: center;
}

.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat.w-30 { flex: 0 0 30%; }
.stat.w-20 { flex: 0 0 20%; }

.stat img {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.stat-number {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 60px;
  font-weight: 300;
  line-height: 60px;
  color: var(--eminence);
}

.stat p {
  max-width: 320px;
  margin-bottom: 16px;
  font-size: 19.2px;
  line-height: 28.8px;
}

.impact .button-row {
  margin-bottom: 112px;
}

/* Stories */
.stories-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 112px;
  padding-bottom: 128px;
}

.story {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
  text-align: center;
}

.story-name {
  margin-bottom: 8px;
  font-size: 32px;
  font-weight: 700;
  line-height: 41.6px;
  text-transform: uppercase;
}

.story img {
  width: 260px;
  margin-bottom: 24px;
}

.story-headline {
  font-size: 24px;
  font-weight: 700;
  line-height: 28.8px;
  text-transform: uppercase;
  color: var(--indigo);
}

.story p {
  flex: 1;
  margin-bottom: 8px;
  line-height: 27px;
}

/* Your help is important */
.help-content {
  padding-top: 112px;
  padding-bottom: 32px;
}

.help-content p {
  margin-top: 16px;
  line-height: 27px;
}

.help .button-row {
  margin-bottom: 112px;
}

/* Impact partners */
.partners {
  padding: 112px 0;
  color: var(--white);
  background: var(--cerulean);
}

.partners p {
  margin: 32px 0 64px;
  line-height: 27px;
}

.partner-logos {
  display: flex;
  gap: 25px;
  max-width: 1104px;
  margin: 0 auto;
  padding: 60px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.partner-logo {
  flex: 0 0 192px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 192px;
  padding: 16px;
  border-radius: 50%;
  background: var(--white);
  opacity: 0.5;
  scroll-snap-align: center;
  transition: opacity 0.2s, transform 0.2s;
}

.partner-logo img {
  max-height: 140px;
  filter: grayscale(100%);
}

.partner-logo:hover {
  opacity: 1;
}

.partner-logo:hover img {
  filter: none;
}

/* Featured logo, enlarged in the middle like the live carousel */
.partner-logo.featured {
  position: relative;
  z-index: 1;
  opacity: 1;
  transform: scale(1.55);
  border: 12px solid rgba(26, 65, 116, 0.5);
  background-clip: padding-box;
}

.partner-logo.featured img {
  filter: none;
}

.partner-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

/* Annual report */
.annual-report {
  padding-bottom: 40px;
  color: var(--white);
  background: var(--gold);
}

.annual-report h2 {
  padding: 40px 16px;
}

.report-embed {
  position: relative;
  height: 564px;
}

.report-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.site-footer {
  padding: 64px 0;
  font-size: 16px;
  color: var(--white);
  background: var(--indigo);
}

.footer-grid {
  display: grid;
  grid-template-columns: 240px 1fr 200px;
  gap: 23px;
}

.footer-logo {
  width: 128px;
  margin-bottom: 16px;
}

.footer-line {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.85);
}

.footer-line img {
  width: 26px;
}

.footer-line a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-line a:hover,
.footer-links a:hover,
.footer-privacy:hover {
  text-decoration: underline;
}

.copyright {
  font-size: 12px;
}

.footer-headline {
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  text-transform: uppercase;
  color: var(--cerulean);
}

.footer-newsletter p {
  line-height: 24px;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 195px 178px 178px auto;
  gap: 5px;
  margin: 16px 0 112px;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
  height: 44px;
  padding: 8px;
  font-family: Roboto, sans-serif;
  font-size: 14px;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--white);
  border-radius: 0;
}

.newsletter-form ::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-form .button-submit {
  height: 44px;
  font-size: 17.6px;
}

.footer-privacy,
.footer-links a {
  font-size: 13.6px;
  text-transform: uppercase;
  color: var(--white);
}

.footer-privacy {
  display: inline-block;
  padding: 0 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  margin-top: 16px;
}

.footer-links a {
  padding: 8px;
}

.footer-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}

.footer-badges p {
  margin-top: -8px;
  line-height: 24px;
}

.footer-social {
  display: flex;
  gap: 24px;
  margin-top: 64px;
}

.footer-social img {
  width: 24px;
}

/* Tablet */
@media (max-width: 991px) {
  .logo {
    width: 96px;
    height: 96px;
    top: 0;
    left: 16px;
  }

  .nav-top,
  .nav-main {
    margin-left: 112px;
    justify-content: flex-end;
  }

  .nav-top-link {
    padding: 0 12px;
    font-size: 15px;
  }

  .nav-top-link.get-help,
  .nav-top-link.donate {
    padding: 0 16px;
    font-size: 16px;
  }

  .dropdown-toggle {
    padding: 0 12px;
    font-size: 15px;
    letter-spacing: 1px;
  }

  .dropdown-panel {
    display: none !important;
  }

  .heading-xl { font-size: 48px; }
  .heading-lg { font-size: 36px; }

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

  .welcome-content {
    text-align: center;
  }

  .explore-item {
    padding: 16px;
  }

  .stories-list {
    grid-template-columns: 1fr;
    gap: 64px;
  }

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

  .newsletter-form {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 32px;
  }

  .footer-badges {
    align-items: flex-start;
    text-align: left;
  }

  .footer-social {
    margin-top: 0;
  }
}

/* Phone */
@media (max-width: 767px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .button-row::before {
    right: 16px;
  }

  .header-top .container {
    padding-right: 0;
  }

  .nav-top {
    height: auto;
    flex-wrap: wrap;
    margin-left: 88px;
  }

  .nav-top-link {
    height: 40px;
  }

  .nav-top-link:not(.get-help):not(.donate) {
    display: none;
  }

  .logo {
    width: 80px;
    height: 80px;
    top: 4px;
  }

  .nav-main {
    height: auto;
    flex-wrap: wrap;
    margin-left: 88px;
  }

  .dropdown-toggle {
    height: 40px;
    padding: 0 8px;
    font-size: 13px;
  }

  .hero {
    min-height: 480px;
    padding-bottom: 48px;
  }

  .hero-headline {
    font-size: 36px;
    padding: 0 16px;
  }

  .heading-xl { font-size: 40px; }
  .heading-lg { font-size: 30px; }
  .heading-sm { font-size: 24px; }

  .intro-text {
    font-size: 20px;
    line-height: 30px;
  }

  .welcome-content h3,
  .explore-item h3 {
    font-size: 32px;
  }

  .explore {
    padding: 64px 0;
  }

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

  .banner {
    height: 240px;
  }

  .impact-row {
    flex-wrap: wrap;
  }

  .stat,
  .stat.w-30,
  .stat.w-20 {
    flex: 0 0 50%;
  }

  .impact-row:first-of-type .stat,
  .impact-row .stat.w-30 {
    flex-basis: 100%;
  }

  .respite-buttons .button-solid {
    display: block;
    text-align: center;
  }

  .partner-buttons {
    flex-direction: column;
    align-items: center;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }
}
