/*
Theme Name: SEDOL Foundation
Theme URI: https://sedolfoundation.org/
Author: Haroon, Development, The Loop Marketing
Author URI: https://theloopmarketing.com/
Description: Custom WordPress theme for the SEDOL Foundation. Page content and site settings are edited in wp-admin (needs Secure Custom Fields).
Version: 1.1.0
Text Domain: sedol-foundation
*/

@font-face {
  font-family: "Gabarito";
  src: url("assets/fonts/Gabarito-VariableFont_wght.ttf")
    format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Reddit Sans";
  src: url("assets/fonts/RedditSans-VariableFont_wght.ttf")
    format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --primary-clr: #4d2855;
  --secondary-clr: #8c499b;
  --tertiary-clr: #d1b6d7;
  --blue-clr: #0079c0;
  --sky-clr: #4da1d3;
  --orange-clr: #f3821f;
  --green-clr: #59ba46;
  --red-clr: #ed2e30;
  --white-clr: #fffbf8;
  --soft-gray: #efedf0;
  --body-gray: #5f6263;
  --black-clr: #1b1e20;
  --heading-font: "Gabarito", Arial, sans-serif;
  --body-font: "Reddit Sans", Arial, sans-serif;
  --container: 1280px;
  --radius-4: 4px;
  --design-shadow: 0 3px 6px rgba(0, 0, 0, 0.1608);
  --header-shadow: 0 12px 6px rgba(0, 0, 0, 0.1608);
  --media-shadow: 4px 6.928px 25.5px rgba(0, 0, 0, 0.051);
  /* Type scale from the client's brand doc (desktop sizes). */
  --fs-title: 60px;
  --fs-h1: 48px;
  --fs-h2: 40px;
  --fs-h3: 32px;
  --fs-h4: 26px;
  --fs-h5: 21px;
  --fs-body: 18px;
  --fs-callout: 21px;
  --fs-btn: 18px;
}

@media only screen and (max-width: 1023px) {
  :root {
    --fs-title: 52px;
    --fs-h1: 42px;
    --fs-h2: 36px;
    --fs-h3: 28px;
    --fs-h4: 24px;
  }
}

@media only screen and (max-width: 767px) {
  :root {
    --fs-title: 42px;
    --fs-h1: 36px;
    --fs-h2: 32px;
    --fs-h3: 26px;
    --fs-h4: 22px;
    --fs-h5: 20px;
    --fs-callout: 19px;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--white-clr);
  color: var(--body-gray);
  font-family: var(--body-font);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  line-height: 1.15;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 600;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
}

h4 {
  font-size: var(--fs-h4);
  font-weight: 400;
}

h5,
h6 {
  font-size: var(--fs-h5);
  font-weight: 400;
}

strong,
b {
  font-weight: 600;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  border: 0;
  border-radius: 0;
  color: inherit;
  font: inherit;
  outline: none;
}

button {
  cursor: pointer;
  background: transparent;
}

ul,
li {
  list-style: none;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

section {
  position: relative;
  overflow: hidden;
}

section .content {
  position: relative;
  z-index: 2;
}

.container {
  width: var(--container);
  max-width: 90%;
  margin: 0 auto;
}

.section-padding {
  padding: 112px 0;
}

.hero-heading {
  color: var(--white-clr);
  font-family: var(--heading-font);
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: 1.05;
  text-align: center;
  text-shadow: var(--design-shadow);
}

.section-heading {
  color: var(--primary-clr);
  font-family: var(--heading-font);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-heading span {
  display: block;
  font-size: var(--fs-title);
  font-weight: 600;
}

.section-description {
  color: var(--body-gray);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.5;
}

.section-description p:not(:last-child) {
  margin-bottom: 24px;
}

.callout-text {
  color: var(--body-gray);
  font-family: var(--body-font);
  font-size: var(--fs-callout);
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 26px;
}

.btn,
.gform_button {
  align-items: center !important;
  display: inline-flex !important;
  justify-content: center !important;
  min-height: 0 !important;
  min-width: 0 !important;
  padding: 20px 30px !important;
  color: var(--white-clr) !important;
  font-family: var(--heading-font) !important;
  font-size: var(--fs-btn) !important;
  font-weight: 400 !important;
  letter-spacing: 0.06em !important;
  line-height: 1 !important;
  text-align: center !important;
  text-transform: uppercase !important;
  box-shadow: var(--design-shadow) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1608) !important;
  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover,
.gform_button:hover {
  box-shadow: 0 9px 14px rgba(0, 0, 0, 0.24) !important;
  transform: translateY(-1px) !important;
}

/* Hover colours stay inside the brand palette. */
.btn-purple:hover,
.btn-green:hover,
.btn-orange:hover,
.btn-blue:hover {
  background: var(--primary-clr);
}

.video-modal-close:hover,
.scroll-btn:hover {
  background: var(--primary-clr);
  box-shadow: 0 9px 14px rgba(0, 0, 0, 0.24);
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.video-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 30, 32, 0.76);
}

.video-modal-dialog {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  aspect-ratio: 16 / 9;
  background: var(--black-clr);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.video-modal-dialog iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal-close {
  position: absolute;
  right: -18px;
  top: -18px;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--green-clr);
  color: var(--white-clr);
  box-shadow: var(--design-shadow);
}

.btn-purple {
  background: var(--secondary-clr);
}

.btn-green {
  background: var(--green-clr);
}

.btn-orange {
  background: var(--orange-clr);
}

.btn-blue {
  background: var(--blue-clr);
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.desktop-break {
  display: block;
}

.grid-cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.scroll-btn {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 50;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-clr);
  color: var(--white-clr);
  font-family: var(--heading-font);
  font-size: 22px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.scroll-btn.show {
  opacity: 1;
  visibility: visible;
}

.scroll-btn:hover {
  transform: translateY(-4px);
}

.animation-ready [data-animate] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--animate-delay, 0ms);
  will-change: opacity, transform;
}

.animation-ready [data-animate="fade-left"] {
  transform: translate3d(32px, 0, 0);
}

.animation-ready [data-animate="fade-right"] {
  transform: translate3d(-32px, 0, 0);
}

.animation-ready [data-animate="zoom-in"] {
  transform: scale(0.94);
}

.animation-ready [data-animate].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .animation-ready [data-animate] {
    opacity: 1;
    transform: none;
  }
}

@media only screen and (max-width: 1023px) {
  .container {
    max-width: calc(100% - 64px);
  }

  .section-padding {
    padding: 82px 0;
  }

  .grid-cols-2,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

@media only screen and (max-width: 767px) {
  .container {
    max-width: calc(100% - 34px);
  }

  .section-padding {
    padding: 62px 0;
  }

  .desktop-break {
    display: none;
  }

  .btn,
  .button-group .btn {
    min-width: 0;
    width: 100%;
  }
}
