/*
Theme Name: SEDOL Foundation
Theme URI: https://sedolfoundation.org/
Author: Codiffy
Description: Custom WordPress theme for the SEDOL Foundation homepage.
Version: 1.0.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);
}

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: 16px;
  font-weight: 400;
  line-height: 1.42;
}

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: 70px;
  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: 40px;
  font-weight: 600;
  line-height: 1.04;
  margin-bottom: 20px;
}

.section-heading span {
  display: block;
  font-size: 60px;
}

.section-description {
  color: var(--body-gray);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.43;
}

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

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

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

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

.btn-purple:hover {
  background: #AF80B9;
}

.btn-green:hover {
  background: #8BCF7E;
}

.btn-orange:hover {
  background: #F7A862;
}

.btn-blue:hover {
  background: #4DA1D3;
}

.video-modal-close:hover,
.scroll-btn:hover {
  background: #8BCF7E;
  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;
}

.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);
}

@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) {
  body {
    font-size: 16px;
  }

  .container {
    max-width: calc(100% - 34px);
  }

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

  .hero-heading {
    font-size: 42px;
  }

  .section-heading {
    font-size: 36px;
  }

  .section-heading span {
    font-size: 40px;
  }

  .section-description,
  .callout-text {
    font-size: 16px;
  }

  .desktop-break {
    display: none;
  }

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