/* --- Reset --- */

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

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  line-height: 1.5;
  font-family: 'Lato', sans-serif;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
  height: auto;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

:root {
  --grid-columns: 1fr repeat(12, minmax(auto, 80px)) 1fr;
  --grid-areas: 'left one two three four five six seven eight nine ten eleven twelve right';
  --grid-gap: 20px;
  --c-brand-primary: #FF6600;
  --c-brand-dark: #303438;
  --heading-color: var(--c-brand-primary);

  /* Hubspot form styles */
  --hsf-background__padding: 0;
  --hsf-background__background-color: transparent;
  --hsf-global__font-family: Lato, sans-serif;
  --hsf-global__color: white;
  --hsf-global__error-color: rgb(229 114 120);
  --hsf-button__color: #303438;
  --hsf-button__background-color: #bbbbbb;
  --hsf-row__vertical-spacing: 10px;
  --hsf-erroralert__font-size: 14px;
}

.lead:not(:last-child) {
  margin-bottom: 1.5em;
}

h1, h2, h3 {
  color: var(--heading-color);
  font-weight: 600;
  line-height: 1.15;
}

h1 {
  margin-bottom: 45px;
}

h1 img {
  margin: 0 auto;
}

h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

h3 {
  font-size: 18px;
  margin-bottom: 15px;
}

h4 {
  font-size: 16px;
  margin-bottom: 15px;
}

ul {
  padding-left: 2em;
}

.content {
  text-align: left;
}

.button {
  border: none;
  font-family: inherit;
  background-color: var(--c-brand-dark);
  font-weight: bold;
  line-height: 1;
  color: white;
  padding: 18px 30px;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 200ms, color 200ms;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.button:hover, .button:focus {
  background-color: #566069;
}

.button--reversed {
  background-color: #D1D3D4;
  color: var(--c-brand-dark);
}

.button--reversed:hover, .button--reversed:focus {
  background-color: #BBBBBB;
  color: var(--c-brand-dark);
}

header {
  background-color: #005B97;
  color: white;
  --heading-color: white;
  text-align: center;
  position: relative;
  padding: 0 30px;
  padding-top: 158px;
  padding-bottom: 133px;
}

header > img,
.callout > img {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  object-fit: cover;
}

header .content,
.callout .content {
  text-align: center;
  position: relative;
}

.header-cover,
.callout-cover {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #303438;
  opacity: 0.80;
}

section {
  padding: 60px 30px;
}

section.muted {
  background-color: #f1f2f2;
}

section.renewables {
  background-color: #389137;
  color: white;
  --heading-color: white;
  background-image: url(./images/renewables-background.jpg);
  background-position: right bottom;
  background-size: auto 198px;
  background-repeat: no-repeat;
  padding: 48px 30px;
}

.callout {
  position: relative;
  overflow: hidden;
  color: white;
  --heading-color: white;
}

.grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.grid--expanding-image {
  padding-left: 0;
  padding-right: 0;
}

.grid--expanding-image .content {
  padding: 0 30px;
}

.feature-grid {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.feature-grid p {
  font-weight: 600;
}

.training__image {
  text-align: center;
}

.training__image img {
  margin-left: auto;
  margin-right: auto;
}

.training__content {
  padding: 30px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.training__copy {
  flex: 1;
}

.training__button {
  margin-top: 30px;
  text-align: center;
}

.icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.icons > * {
  height: 48px;
  width: auto;
}

footer {
  background: #303438;
  color: white;
  --heading-color: white;
  padding: 0 30px;
  padding-top: 62px;
  padding-bottom: 100px;
  background-image: url(./images/footer-pattern-2x.png);
  background-repeat: repeat-x;
  background-size: 859px 244px;
  background-position: center bottom;
}

footer.grid {
  gap: 50px;
}

footer a {
  text-decoration: underline;
  font: inherit;
  color: inherit;
}

footer a:hover {
  text-decoration: none;
}

footer h2 {
  font-size: 21px;
  margin-bottom: 0.75em;
}

footer h3 {
  font-size: 16px;
  margin-bottom: 0.75em;
}

.copyright {
  text-align: center;
  font-size: 13px;
}

.space-above {
  margin-top: 1em;
}

.gcg-pcb {
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  align-items: center;
  cursor: pointer;
  color: inherit;
  display: inline-flex;
  height: 42px;
}

.gcg-pcb:not(.gcg-pcb--enabled) {
  display: none !important;
}

.gcg-pcb-text {
  color: white;
  padding-right: 10px;
}

.gcg-pcb-svg {
  display: block;
}

.gcg-pcb-svg--light {
  fill: #fff;
}

.gcg-pcb-svg--dark {
  fill: #1576ff;
}

.gcg-pcb:hover {
  opacity: 0.8;
}

.gcg-pcb:hover .gcg-pcb-svg--light {
  fill: #fff;
}

.gcg-pcb:hover .gcg-pcb-svg--dark {
  fill: #1576ff;
}

@media (min-width: 500px) {
  .lead {
    font-size: 21px;
  }

  h2 {
    font-size: 40px;
  }

  h3 {
    font-size: 35px;
  }

  h4 {
    font-size: 21px;
  }

  header {
    padding-bottom: 164px;
    padding-top: 250px;
  }

  .grid > img,
  .grid > picture {
    max-width: 320px;
  }

  .feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--grid-gap);
  }

  section {
    text-align: center;
    padding: 98px 30px;
  }

  .copyright {
    margin-top: 93px;
    font-size: 16px;
  }

  .space-above {
    margin-top: 2em;
  }

  .icons {
    gap: var(--grid-gap);
    justify-content: center;
  }

  .icons > * {
    height: 64px;
  }
}

@media (min-width: 768px) {
 .grid--training .training__image {
    grid-column: one / four;
  }

  .grid--training .training__content {
    grid-column: five / twelve;
  }

  .grid--training .training__copy {
    padding-right: 60px;
  }
}

@media (max-width: 1023px) {
  .grid--training .training__content {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (min-width: 1024px) {
  .callout {
    padding: 180px 30px;
  }

  .grid {
    display: grid;
    grid-template-columns: var(--grid-columns);
    grid-template-areas: var(--grid-areas);
    gap: var(--grid-gap);
    grid-auto-flow: column;
  }

  footer.grid {
    gap: var(--grid-gap);
  }

  .grid > * {
    grid-column: three / ten;
  }

  .grid > .span-full {
    grid-column: one / twelve;
  }

  .grid > .span-wide {
    grid-column: two / eleven;
  }

  .grid--expanding-image {
    align-items: center;
    padding: 0;
  }

  .grid--expanding-image > picture,
  .grid--expanding-image > img {
    grid-column: left / four;
    width: 100%;
    height: auto;
    max-width: none;
    align-self: end;
  }

  .grid--expanding-image .content {
    grid-column: five / twelve;
    padding: 98px 0;
  }

  .grid--content-image {
    align-items: center;
  }

  .grid--content-image .content {
    grid-column: one / eight;
  }

  .grid--content-image img,
  .grid--content-image .renewable-logo-container {
    grid-column: nine / twelve;
    width: 100%;
    height: auto;
  }

  .grid--footer > .content:first-child {
    grid-column: one / six;
  }

  .grid--footer > .content:nth-child(2) {
    grid-column: eight / twelve;
  }

  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid--training .training__content {
    flex-direction: row;
  }

  .grid--training .training__button {
    margin-top: 0;
  }
}

.privacy-links {
  display: flex;
  flex-wrap: wrap;
  row-gap: 5px;
  column-gap: 10px;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 10px;
}

.hsfc-DataPrivacyField {
  line-height: 1.2;
  font-size: 14px;
  opacity: 0.75;
}

.hsfc-DataPrivacyField a {
  text-decoration: underline;
}
