@charset "UTF-8";

/* global */
* {
  box-sizing: border-box;
  transition: all ease 0.3s;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-family: "Inter", sans-serif;
}
h1 {
  padding: 0;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 1.5rem 0;
  font-family: "Poppins", sans-serif;
}
h2 {
  padding: 0;
  font-weight: 800;
  line-height: 1.25;
  margin: 0.5rem 0;
  color: var(--clr-darkblue);
  font-size: var(--fs-xl);
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
}
h2:first-child {
  margin-top: 0;
}
h3 {
  padding: 0;
  font-weight: 600;
  line-height: 1.4;
  margin: 0.5rem 0;
  font-size: var(--fs-large);
  color: var(--clr-darkblue);
  font-family: "Poppins", sans-serif;
}
h3:first-child {
  margin-top: 0;
}
h4 {
  padding: 0;
  font-weight: 600;
  line-height: 1.4;
  margin: 0.5rem 0;
  font-size: var(--fs-medium);
  color: var(--clr-darkblue);
  font-family: "Poppins", sans-serif;
}
h4:first-child {
  margin-top: 0;
}
p {
  padding: 0;
  font-weight: 400;
  line-height: 1.4;
  margin: 0.75rem 0;
  font-size: var(--fs-small);
  color: var(--clr-midblue);
}
p:first-child {
  padding: 0;
  margin-top: 0;
}
a:link,
a:visited {
  color: var(--clr-midblue);
}
a:hover,
a:active {
  color: var(--clr-darkblue);
}
ul,
ol,
li {
  padding: 0;
  margin: 0.5rem 0;
  line-height: 1.4;
  font-size: var(--fs-small);
  color: var(--clr-midblue);
}
ul,
ol {
  padding-left: 1.25rem;
}
hr {
  border: none;
}
strong {
  font-weight: 600;
}
#about-us,
#news-section,
#our-team,
#contact-us,
#faq {
  position: absolute;
  top: -6rem;
}

@media only screen and (max-width: 720px) {
  #about-us,
  #news-section,
  #our-team,
  #contact-us,
  #faq {
    position: absolute;
    top: 0rem;
  }
}

:root {
  --clr-black: #000;
  --clr-darkblue: #12284c;
  --clr-midblue: #838fa1;
  --clr-grey: #b7b7b7;
  --clr-lightgrey: #dbdbdb;
  --clr-green: #578875;
  --clr-gold: #e4ba66;
  --clr-offwhite: #f4f5f6;
  --clr-white: #fff;
  --fs-xl: 3rem;
  --fs-large: 1.625rem;
  --fs-medium: 1.125rem;
  --fs-small: 0.9375rem;
  --fs-xs: 0.8125rem;
  --pad-96: 6rem;
  --pad-72: 4.5rem;
  --pad-48: 3rem;
  --pad-24: 1.5rem;
  --pad-16: 1rem;
  --pad-8: 0.5rem;
}

@media only screen and (max-width: 768px) {
  :root {
    --fs-xl: 2.25rem;
    --fs-large: 1.218rem;
    --fs-medium: 1rem;
    --pad-96: 4.5rem;
    --pad-72: 3.375rem;
    --pad-48: 2.25rem;
  }
}
@media only screen and (max-width: 512px) {
  :root {
    --fs-xl: 1.687rem;
    --fs-large: 0.937rem;
    --fs-medium: 1rem;
    --fs-small: 0.875rem;
    --pad-96: 3.375rem;
    --pad-72: 2.531rem;
    --pad-48: 1.687rem;
  }
}

/* header */
header {
  width: 100%;
}
header a:link,
header a:visited {
  color: var(--clr-white);
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
}
header a:hover,
header a:active {
  color: var(--clr-gold);
}
#header__logo,
#header__logoMobile {
  flex: none;
  background-image: url("../images/eastree-media-logo-gold.svg");
  background-size: cover;
  background-repeat: no-repeat;
}
#header__logoMobile {
  width: 9rem;
  height: 3rem;
}
.logo--idle {
  width: 12rem;
  height: 4rem;
}
.logo--scrolled {
  width: 9rem;
  height: 3rem;
}
.nav--idle {
  padding: var(--pad-48) var(--pad-96);
}
.nav--scrolled {
  padding: var(--pad-24) var(--pad-96);
  background: var(--clr-darkblue);
}
.whiteHeader .nav--idle {
  padding: var(--pad-48) var(--pad-96);
  border-bottom: 1px solid var(--clr-lightgrey);
}
.whiteHeader .nav--scrolled {
  padding: var(--pad-24) var(--pad-96);
  background: var(--clr-darkblue);
}
.whiteHeader .nav--idle a:link,
.whiteHeader .nav--idle a:visited {
  color: var(--clr-darkblue);
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
}
.whiteHeader .nav--idle a:hover,
.whiteHeader .nav--idle a:active {
  color: var(--clr-gold);
}

.navDesktop {
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 100;
}
.navDesktop__items--inline {
  display: inline-block;
  margin-right: var(--pad-24);
}
.navDesktop__items--inline:last-of-type {
  margin: 0;
}

.navMobile {
  width: 100%;
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 0;
  z-index: 100;
  padding: var(--pad-48);
}
.whiteHeader .navMobile {
  border-bottom: 1px solid var(--clr-lightgrey);
}
#navMobile__menu {
  display: none;
}
#navMobile__menu h2 {
  color: var(--clr-white);
}
#navMobile__menu h2:hover {
  color: var(--clr-gold);
  cursor: pointer;
}
.navMobile__menuItems {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  background-color: var(--clr-darkblue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--pad-24);
}
.navMobile__hamburger {
  width: 42px;
  height: 42px;
}
.navMobile__hamburger .material-symbols-outlined {
  font-size: 40px;
  color: var(--clr-white);
  cursor: pointer;
}
.whiteHeader .material-symbols-outlined {
  color: var(--clr-darkblue);
}
.navMobile__hamburger .material-symbols-outlined:hover {
  color: var(--clr-gold);
}
.navMobile__hamburgerClose {
  width: 42px;
  height: 42px;
  position: absolute;
  top: var(--pad-48);
  right: var(--pad-48);
}
.navMobile__hamburgerClose .material-symbols-outlined {
  color: var(--clr-white);
}
.navMobile__menu--appear {
  animation: appear 0.3s ease;
}

@media only screen and (min-width: 721px) {
  .navMobile {
    display: none;
  }
}
@media only screen and (max-width: 720px) {
  .header__logo {
    width: 9rem;
    height: 3rem;
  }
  .navDesktop {
    display: none;
  }
  .nav--hideOnMobile {
    display: none;
  }
}
@keyframes appear {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* hero */
#hero {
  width: 100%;
  height: 100vh;
  min-height: 480px;
  background: var(--clr-darkblue);
  background-image: linear-gradient(to left top, #fec565, #d8c161, #b4bb64, #94b36b, #78a973, #559c77, #318e7c, #007f7e, #006a80, #00537b, #003b6d, #252155);
  position: relative;
}
.hero__angle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.hero__carousel {
  width: 100%;
  height: 100vh;
  min-height: 480px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__carouselItem {
  padding: 0 var(--pad-96);
  text-align: center;
}
.hero__carouselItem--hide {
  display: none;
}
.hero__carouselItem--text {
  color: var(--clr-white);
  font-size: var(--fs-xl);
  max-width: 800px;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.1;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
}
.hero__carouselItem--emphasis {
  color: var(--clr-gold);
}
.dotWrapper {
  position: absolute;
  right: var(--pad-48);
  bottom: var(--pad-48);
  left: var(--pad-48);
  display: flex;
  justify-content: center;
}
.dot {
  width: 24px;
  height: 3px;
  margin: 0 3px;
  background-color: var(--clr-white);
  opacity: 0.25;
  display: inline-block;
  transition: all 0.5s ease;
}
.active {
  opacity: 1;
}
.carouselAnimation {
  animation: carouselAnimation 7.5s ease;
}
@keyframes carouselAnimation {
  0% {
    transform: translate(100vw, 100vh);
    opacity: 0;
  }
  5% {
    transform: translate(100vw, 100vh);
    opacity: 0;
  }
  30% {
    transform: translate(0rem, 0rem);
    opacity: 1;
  }
  80% {
  }
  90% {
  }
  100% {
  }
}

/* section: about */
#about {
  width: 100%;
  background-color: var(--clr-offwhite);
  position: relative;
}
#about h2 {
  text-align: center;
  margin-bottom: var(--pad-72);
}
#about h3 {
  margin: 0;
  margin-right: 5%;
}
#about hr {
  border-top: 1px solid var(--clr-grey);
  margin: var(--pad-48) 0;
}
.about__sectionWrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--pad-96);
}
.about__columnWrapper {
  width: 100%;
  display: flex;
  gap: var(--pad-48);
}
.about__column {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.about__line {
  width: 100%;
  height: var(--pad-8);
  background: var(--clr-gold);
  margin-bottom: var(--pad-48);
}

@media only screen and (max-width: 960px) {
  #about h3 {
    margin-right: 0;
  }
  .about__columnWrapper {
    flex-direction: column;
  }
  .about__column:last-child {
    border-top: 1px solid var(--clr-grey);
    padding-top: var(--pad-24);
  }
  .about__line--hideOnMobile {
    display: none;
  }
}
@media only screen and (max-width: 380px) {
  .about__sectionWrapper {
    padding: var(--pad-96) var(--pad-48);
  }
}

/* section: news */
#news {
  width: 100%;
  background-color: var(--clr-white);
  position: relative;
}
#news h2 {
  text-align: center;
  margin-bottom: var(--pad-72);
}
#news h3 {
  margin: 0;
  margin-right: 5%;
  font-size: var(--fs-medium);
}
#news h4 {
  font-size: var(--fs-xs);
  margin: 0;
  font-weight: 400;
  color: var(--clr-midblue);
  margin-bottom: var(--pad-8);
}
.news__textWrapper a:link,
.news__textWrapper a:visited {
  text-decoration: none;
  font-weight: 800;
  padding: 0;
  margin: 0;
  color: var(--clr-darkblue);
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
}
.news__textWrapper a:hover,
.news__textWrapper a:active {
  color: var(--clr-gold);
  cursor: pointer;
}
.news__textWrapper:last-child p {
  margin-bottom: 0;
}
.news__sectionWrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--pad-96);
}
.news__postWrapper {
  background-color: var(--clr-offwhite);
  position: relative;
  display: flex;
}
.news__banner {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 48%;
  object-fit: cover;
}
.news__logo {
  height: auto;
  width: 9rem;
  object-fit: cover;
  border: 1px solid var(--clr-lightgrey);
}
.news__textWrapper {
  background-color: var(--clr-white);
  width: 100%;
  margin: var(--pad-48) var(--pad-48) var(--pad-48) calc(48% - var(--pad-48));
  padding: var(--pad-48);
  border-left: var(--pad-8) solid var(--clr-gold);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  align-items: flex-start;
}
.news__columnWrapper {
  margin-top: var(--pad-24);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-direction: column;
  row-gap: var(--pad-48);
}

@media only screen and (max-width: 1100px) {
  .news__sectionWrapper {
    padding: var(--pad-96) var(--pad-16);
  }
  .news__postWrapper {
    max-width: 720px;
    margin: 0 auto;
  }
  .news__banner {
    width: 100%;
    height: 320px;
  }
  .news__textWrapper {
    margin: calc(320px - var(--pad-48)) var(--pad-48) var(--pad-48) var(--pad-48);
    padding: var(--pad-48);
    border-top: var(--pad-8) solid var(--clr-gold);
    border-left: none;
  }
}

@media only screen and (max-width: 380px) {
  .news__banner {
    height: 200px;
  }
  .news__textWrapper {
    margin: calc(200px - var(--pad-24)) var(--pad-24) var(--pad-24) var(--pad-24);
  }
  .news__logo {
    width: 6rem;
  }
}

/* section: text */
#text {
  width: 100%;
  background-color: var(--clr-white);
}
#text h2 {
  text-align: center;
  margin-bottom: var(--pad-72);
}
#text h3 {
  margin: 0;
}
#text h4 {
  font-size: var(--fs-small);
  margin: 0;
  font-weight: 400;
  color: var(--clr-midblue);
}
.text__sectionWrapper {
  max-width: 1440px;
  margin: 6.5rem auto 0 auto;
  padding: var(--pad-96) var(--pad-96) 0 var(--pad-96);
}
.text__heroBanner {
  object-fit: cover;
  max-height: 480px;
  width: 100%;
}
.text__textWrapper {
  max-width: 960px;
  margin: var(--pad-48) auto 0 auto;
}
.text__publisherWrapper {
  display: flex;
  align-items: center;
  gap: var(--pad-24);
  margin: var(--pad-48) 0;
}
.text__publisherSpacing {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.text__heroLogo {
  height: auto;
  width: 12rem;
  object-fit: cover;
  background-color: var(--clr-white);
  padding: var(--pad-24);
  border: 1px solid var(--clr-lightgrey);
}

@media only screen and (max-width: 720px) {
  .text__sectionWrapper {
    margin-top: 5rem;
  }
}
@media only screen and (max-width: 512px) {
  .text__heroLogo {
    width: 6rem;
    padding: var(--pad-16);
  }
}
@media only screen and (max-width: 380px) {
  .text__sectionWrapper {
    padding: var(--pad-96) var(--pad-48);
  }
  .text__publisherWrapper {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
  .text__heroLogo {
    width: 12rem;
    padding: var(--pad-24);
  }
}

/* section: team */
#team {
  width: 100%;
  background-color: var(--clr-offwhite);
  position: relative;
}
#team h2 {
  text-align: center;
  margin-bottom: var(--pad-72);
}
#team h3 {
  font-size: var(--fs-medium);
  margin-bottom: 2px;
}
#team h4 {
  font-size: var(--fs-xs);
  margin: 0;
  font-weight: 400;
  color: var(--clr-midblue);
}
.team__sectionWrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--pad-96);
}
.team__profileWrapper {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: var(--pad-48);
  padding-top: var(--pad-48);
}
.team__profile {
  width: calc(50% - 1.5rem);
  border-bottom: 1px solid var(--clr-grey);
  display: flex;
  gap: var(--pad-24);
}
.team__profileText {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: var(--pad-8);
}
.team__profileImage {
  max-width: 320px;
}
.team__profileImage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
.team__line {
  width: 100%;
  height: var(--pad-8);
  background: var(--clr-gold);
}

@media only screen and (max-width: 960px) {
  .team__profile {
    width: 100%;
  }
}
@media only screen and (max-width: 720px) {
  #team h3 {
    font-size: var(--fs-large);
    margin-bottom: 2px;
  }
  .team__profile {
    flex-direction: column;
    gap: 0;
    align-items: flex-end;
  }
  .team__profileText {
    padding-bottom: 0;
  }
  .team__profileImage {
    max-width: 240px;
  }
  .team__profileImage img {
    object-position: right bottom;
  }
}
@media only screen and (max-width: 512px) {
  .team__profileImage {
    max-width: 200px;
  }
}
@media only screen and (max-width: 380px) {
  .team__sectionWrapper {
    padding: var(--pad-96) var(--pad-48);
  }
}

/* section: contact */
#contact {
  width: 100%;
  background-color: var(--clr-white);
  position: relative;
}
#contact h2 {
  padding-bottom: var(--pad-24);
}
#contact p {
  margin-top: 0;
}
.contact__sectionWrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: calc(1.5 * var(--pad-96)) var(--pad-96) var(--pad-48) var(--pad-96);
}
.contact__contentWrapper {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: var(--pad-48);
  align-items: center;
}
.contact__text {
  width: calc(50% - 2.25rem);
  padding-right: 5%;
}
.contact__form {
  width: calc(50% - 2.25rem);
  background: var(--clr-green);
  border-radius: 4px;
  padding: var(--pad-72);
}
.contact__line {
  width: 100%;
  height: var(--pad-8);
  background: var(--clr-gold);
  margin-bottom: var(--pad-48);
}
.contact__line--hideOnDesktop {
  display: none;
}

label {
  font-size: var(--fs-xs);
  color: var(--clr-white);
}
input {
  font-size: var(--fs-small);
  color: var(--clr-midblue);
  font-family: "Poppins", sans-serif;
}
textarea {
  resize: vertical;
  font-size: var(--fs-small);
  color: var(--clr-midblue);
  font-family: "Poppins", sans-serif;
}
input[type="submit"] {
  width: 100%;
  height: 40px;
  border-radius: 4px;
  border: none;
  background: var(--clr-darkblue);
  color: var(--clr-white);
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
}
input[type="submit"]:hover {
  background: var(--clr-gold);
}
input[type="checkbox"] {
  accent-color: var(--clr-gold);
}
input[type="text"],
input[type="email"] {
  height: 40px;
}
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  border-radius: 4px;
  border: none;
  padding: 12px;
  margin-top: 4px;
  margin-bottom: var(--pad-16);
  background: var(--clr-white);
  box-sizing: border-box;
}
form a:link,
form a:visited {
  color: var(--clr-white);
}
form a:hover,
form a:active {
  color: var(--clr-darkblue);
}
.checkboxWrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: var(--pad-24);
}

.form__errors {
  background: rgba(255, 255, 244, 0.25);
  padding: 0.5rem;
  border-radius: 4px;
  margin-top: 1rem;
}
.form__errors li {
  color: #fff;
}

@media only screen and (max-width: 1200px) {
  .contact__form {
    padding: var(--pad-48);
  }
}
@media only screen and (max-width: 1024px) {
  #contact h2 {
    padding-bottom: var(--pad-72);
    margin: 0;
    text-align: center;
  }
  .contact__sectionWrapper {
    padding: var(--pad-96) var(--pad-96) 0 var(--pad-96);
  }
  .contact__text {
    width: 100%;
    padding-right: 0;
  }
  .contact__form {
    width: 100%;
  }
  .contact__line--hideOnDesktop {
    display: inline-block;
  }
}
@media only screen and (max-width: 380px) {
  .contact__sectionWrapper {
    padding: var(--pad-96) var(--pad-48) 0 var(--pad-48);
  }
}

/* footer */
footer {
  width: 100%;
  background-color: var(--clr-white);
}
footer p {
  font-size: 12px;
  margin: 0;
}
.footer__sectionWrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--pad-96);
}
.footer__contentWrapper {
  width: 100%;
  display: flex;
  gap: var(--pad-48);
  align-items: center;
}
.footer__logo {
  width: 12rem;
  height: 4rem;
  flex: none;
  background-image: url("../images/eastree-media-logo-gold.svg");
  background-size: cover;
  background-repeat: no-repeat;
}
.footer__info {
  width: 100%;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: var(--pad-8);
}
.footer__line {
  width: 100%;
  height: var(--pad-8);
  background: var(--clr-gold);
}

@media only screen and (max-width: 720px) {
  .footer__contentWrapper {
    flex-direction: column;
  }
  .footer__info {
    text-align: center;
  }
  .footer__logo {
    width: 9rem;
    height: 3rem;
  }
}
@media only screen and (max-width: 380px) {
  .footer__sectionWrapper {
    padding: var(--pad-96) var(--pad-48);
  }
}

/* animation: reveal on scroll */
.reveal-1 {
  position: relative;
  transform: translateY(6rem);
  opacity: 0;
  transition: 0.75s all ease-out;
}
.reveal-1.active {
  transform: translateY(0);
  opacity: 1;
}
.reveal-2 {
  position: relative;
  width: 0;
  transition: 0.5s all ease-out;
}
.reveal-2.active {
  width: 100%;
}
