/*
Theme Name:         Big Give Theme
Version:            1.0.0
Author:             Big Give
License:            MIT License
License URI:        http://opensource.org/licenses/MIT
*/

html {
  scroll-padding-top: 152px;
}

body {
  padding: 130px 0 0 0; /* Top padding is biggive-main-menu desktop height */
  margin: 0;
  font-family: "Euclid Triangle", sans-serif;
  font-size: 17px;
  line-height: 24px;

  @media (max-width: 968px) { /* must match components $screen-large */
    padding-top: 60px; /* biggive-main-menu mobile height */
  }
}

body.philco {
  font-family: 'Bitter', serif;
  font-size: 16px;
  line-height: 1.2rem;
}

body.philco .wp-block-heading, body.philco h1, body.philco h2, body.philco h3 {
  font-family: 'Garage Gothic', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  margin-top: 0.1rem;
  margin-bottom: 0.1rem;
}

body.philco h1 {
  font-size: 4rem;
}

body.philco h2 {
  font-size: 2.5rem;
}

body.philco h3 {
  font-size: 1.8rem;
}

h1.hkb-article__title {
  line-height: 1;
}

#site-content {
  padding: 30px;
}

body.uses-components #site-content {
  padding: 0;
}

figure.wp-embed-aspect-16-9 .wp-block-embed__wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
}

figure.wp-embed-aspect-16-9 iframe {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  height: 100%;
  width: 100%;
  display: block;
}

#cookie-banner {
  /* will be displayed by JS when required */
  display: none;

  position: fixed;
  bottom: 3em;
  right: 3em;
  z-index: 10;
}

.skip-to-content-link {
  z-index: 10;
  margin: auto;
  text-align: center;
  width: 100%;
  position: absolute;
  font-size: 16px;
  transform: translateY(-1000%);
  transition: transform 0.3s;

}

.skip-to-content-link a {
  background-color: #f4f4f4;
  padding: 5px;
  border-radius: 3px;
}

.skip-to-content-link:focus-within {
  transform: translateY(0%);
}

/**
 Copied from where we use the input component in frontend, as this part couldn't easily be done within the component
 library.

 https://github.com/thebiggive/donate-frontend/blob/e25ffa4c7f7c1b818998577e4ee6bcb0fa0a2d58/src/app/donation-start/donation-start-form/donation-start-form.component.scss#L283
*/
.contact-us input, .contact-us textarea {
  outline: none;
  border: none;
  background-color: transparent;
  width: 100%;
  padding: 0; /* We rely on containing element margin, and don't want vendor-dependent extra padding. */
  font-size: 18px;
  line-height: 27px;
}

.contact-us .inputWrapper {
  margin-bottom: 25px;
}

.contact-us .buttonWrapper {
  text-align: center;
}

.philco-contact-us label {
  display: block;
}

.philco-contact-us label.for-checkbox {
  display: inline-block;
  line-height: 0.2;
  margin-bottom: -15px;
  text-indent: 5px hanging;
}

.philco-contact-us .form-row {
  margin-top: 10px;
}

.philco-contact-us .form-row.submit {
  margin-top: 25px;
}

.philco-contact-us .form-row span.eyebrow {
  position: relative;
  top: 10px;
  left: 15px;
  padding-left: 10px;
  padding-right: 10px;
  background-color: white;
}

.philco-contact-us input[type='checkbox'] {
  width: auto;
  vertical-align: middle;
  accent-color: #1D1D1B;
}

.philco-contact-us label span {
  vertical-align: middle;
}

.philco-contact-us input,
.philco-contact-us textarea {
  font-family: inherit;
  padding: 1px 15px;
  margin-left: -15px; /* Has to offset padding-left so elements stay horizontally centred relative to viewport */
  width: 100%;
  min-height: 3em;
  border-radius: 10px;
  border: 1px solid #1D1D1B; /* philco-grey-90 */
}

.philco-contact-us textarea {
  padding-top: 1em;
}

.philco-contact-us #row-qualification-evidence p {
  position: relative;
  top: 15px;
}

.philco-hero-image-new {
  /** class renamed to avoid conflict with previous custom html block */
  container-type: inline-size;
  min-height: 500px;
  flex-direction: column-reverse;
  display: flex;
}

.philco-hero-image-new .textside {
  color: #1D1D1B; /* philco-grey-90 */
  padding-top: 20px;
}

.philco-hero-image-new .textside h1 {
  font-size: 95px;
  line-height: 85px;
  font-weight: bold;
  text-transform: uppercase;
  max-width: 700px;
}

.philco-hero-image-new .textside p {
  max-width: 450px;
}

.philco-hero-image-new img {
  width: 333px;
  height: 333px;
  margin: auto;
}

@media (min-width: 1050px) {
  .philco-hero-image-new {
    flex-direction: row;
    display: flex;
  }

  .philco-hero-image-new .textside {
    max-width: 800px;
    padding-top: 70px;
    float: left;
  }

  .philco-hero-image-new .textside p {
    max-width: 400px;
  }

  .philco-hero-image-new img {
    transform: inherit;
    width: 533px;
    height: 533px;
  }
}
