@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Indie+Flower&family=Shadows+Into+Light&display=swap");

:root {
  --primary-linear: linear-gradient(to right, #660000, #cc3200);
  --secondary-linear: linear-gradient(to right, #8b8b8b, #aeaeae);

  --base: #ffffff;
  --grey-base: #f6f6f6;
  --separator: #d9d9d9;
  --primary-text: #888888;
  --secondary-text: #cc3200;
  --text-accent1: #0088ff;
  --text-accent2: #00b960;
  --text-accent3: #ffca28;

  --inter-font: "Inter", sans-serif;
  --title-size: 2.488rem;
  --sub-title-size: 1.728rem;
  --content-size: 1.25rem;
  --base-size: 1rem;
  --sub-size: 0.833rem;
  --text-center: center;

  --side-m-pad: 10vw; /*mobile*/
  --side-d-pad: 100px; /*desktop*/
  --section-pad: 40px;
  --button-pad: 10px 15px;
  --section-gap: 30px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0) !important;
  -webkit-focus-ring-color: rgba(255, 255, 255, 0) !important;
  /* scroll-behavior: smooth; */
}
*::-webkit-scrollbar{
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track{
  background: rgba(0, 0, 0, 0.2);
}
*::-webkit-scrollbar-thumb{
  border-radius: 25px;
  background: rgba(0, 0, 0, 0.2);
}
*::-webkit-scrollbar-thumb:hover{
  background: rgba(0, 0, 0, 0.4);
}

body {
  font-family: var(--inter-font);
  text-align: var(--text-center);
}

/* -------NATIVES------- */
h1 {
  font-size: var(--title-size);
}
h3 {
  font-size: var(--sub-title-size);
}
h4 {
  font-size: var(--content-size);
  color: var(--secondary-text);
}
a {
  text-decoration: none;
}
main {
  width: 100%;
}

/* -------SECTIONS------- */
.sections,
footer {
  padding: var(--section-pad) var(--side-d-pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--section-gap);
}
.sections h3,
.relinks {
  background: var(--primary-linear);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  font-weight: 700;
}
.relinks {
  font-size: var(--content-size);
}
.sections p {
  background: var(--secondary-linear);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  font-size: var(--content-size);
}

/* -------HERO------- */
.hero-section {
  background: var(--grey-base);
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(https://images.unsplash.com/flagged/photo-1574097656146-0b43b7660cb6?w=600&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8OHx8aW5kaWFuJTIwc2Nob29sfGVufDB8fDB8fHww);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 60vh;
  padding: 0 var(--side-d-pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.hero-title{
  color: var(--base);
}
.hero-des {
  max-width: 700px;
}
.hero-des {
  color: var(--primary-text);
  color: var(--separator);
}
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ctas-cont {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.donate-cta,
.join-cta {
  padding: var(--button-pad);
  background: var(--separator);
  font-weight: 700;
  border-radius: 1000px;
}
.donate-cta {
  background: var(--primary-linear);
  color: var(--base);
}
.join-cta {
  background: none;
  border: 1px solid var(--base);
  color: var(--base);
}
.donate-count {
  padding: var(--button-pad);
  background: var(--separator);
  font-size: var(--sub-size);
  border-radius: 1000px;
}

/* -------OUR PROGRAMS------- */
.programs {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  text-align: left;
}
.ps p {
  font-size: var(--base-size);
}
.ps {
  width: 100%;
  border: 1px solid var(--separator);
  /* outline: 1px solid var(--separator); */
  border-radius: 10px;
  scroll-margin-top: 100px;
  /* scroll-padding-top: -100px; */
}
.p-block {
  position: relative;
  width: 100%;
  padding: 10px 15px;
  display: grid;
  gap: 10px;
  cursor: pointer;
  overflow: hidden;
}

.drop-down-p {
  width: 16px;
  height: 16px;
  margin-left: 10px;
  padding-top: 2px;
  transition: all 90ms ease-in-out;
}
.drop-down-p1{
  fill: var(--text-accent1);
}
.drop-down-p2{
  fill: var(--text-accent2);
}
.drop-down-p3{
  fill: var(--text-accent3);
}
.p1-title {
  color: var(--text-accent1);
}
.p2-title {
  color: var(--text-accent2);
}
.p3-title {
  color: var(--text-accent3);
}
/* ------NORMAL (remove display none)-------- */
.p-des {
  max-width: 40%;
  /* display: none; */
}
/* ------NORMAL (remove display none)-------- */
.p-dummies {
  width: 100%;
  max-width: 600px;
  justify-content: center;
  display: flex;
  justify-self: right;
  /* display: none; */
  margin: 40px 0 0 0;
}
.p-dummy {
  position: absolute;
  top: 70%;
  width: 30%;
  max-width: 150px;
  height: 200px;
  background: var(--base);
  background: var(--grey-base);
  background: url(https://images.unsplash.com/photo-1569173675610-42c361a86e37?w=600&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTF8fGluZGlhbiUyMHNjaG9vbHxlbnwwfHwwfHx8MA%3D%3D);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  /* border: 1px solid var(--separator); */
  /* border-radius: 10px; */
  overflow: hidden;
}
.p-dummy:nth-child(1) {
  transform: translate(-170px, -5px) rotate(5deg);
}
.p-dummy:nth-child(2) {
  z-index: 2;
  transform: translateY(-25px);
}
.p-dummy:nth-child(3) {
  transform: translate(170px, -50px) rotate(-5deg);
}
.dummy-img{
  /* padding: 5px; */
  width: 100%;
}
/* ------NORMAL (remove display grid)-------- */
.p-content {
  padding: 0 15px;
  padding-bottom: 15px;
  display: none;
  /* display: grid; */
  /* gap: 40px; */
  grid-template-columns: auto 60%;
}

.p-frame-cont {
  width: 100%;
  grid-column-start: 2;
  grid-column-end: -1;
  grid-row-start: 1;
  grid-row-end: 4;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 40px 0;
}
.img-cont {
  width: 45%;
  max-width: 400px;
  height: fit-content;
  background: var(--base);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0px 5px 10px 0 rgba(0, 0, 0, 0.1);
  padding: 5px;
}
.p-img1-cont,
.p-img4-cont {
  transform: rotate(6deg);
}
.p-img2-cont {
  transform: rotate(-6deg);
}
.p-img3-cont {
  width: 100%;
}
.p-imgs {
  width: 100%;
}
.p-imgs img{
  width: 100%;
  max-height: 250px;
  object-fit: cover;
}
.img-cont p {
  line-height: 1;
  font-family: "Indie Flower", cursive;
  font-size: var(--sub-size);
}
.p-imgs-des {
  padding: 10px;
}

/* -----ACCORDION ACTIONS------- */
.ps.open .p-des {
  display: none;
}
.ps.open .p-dummies {
  display: none;
}
.ps.open .p-content {
  display: grid;
}
.ps.open .drop-down-p{
  transform: translateY(2px) rotate(-180deg);
}

/* -----ACCORDION ACTIONS END HERE------- */

.project-cont {
  width: 100%;
  grid-column-start: 1;
  grid-column-end: -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* align-items: flex-start; */
  gap: 10px;
  margin-top: 20px;
}
.project-title {
  grid-column-start: 1;
  grid-column-end: -1;
  margin-top: 20px;
}
.proj {
  width: 100%;
  background: var(--grey-base);
  /* border: 1px solid var(--separator); */
  border-radius: 10px;
  scroll-margin-top: 100px;

}
.proj-block {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 15px;
  cursor: pointer;
}
.proj-title {
  color: var(--primary-text);
  font-size: var(--base-size);
  font-weight: 400;
  font-weight: 500;
  text-wrap: balance;
}
.drop-down-proj {
  max-width: 10px;
  margin-top: 4px;
  fill: var(--primary-text);
  transition: all 90ms ease-in-out;
}
/* ----------NORMAL (remove display flex)-------------- */
.proj-content {
  width: 100%;
  padding: 0 15px;
  padding-bottom: 15px;
  display: none;
  /* display: flex; */
  flex-direction: row-reverse;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
}
.proj-content-img {
  object-fit: contain;
  overflow: hidden;
  width: 50%;
  height: 30vh;
  float: right;
  border: 1px solid var(--separator);
  border-radius: 10px;
}
.proj-des {
  max-width: 50%;
}

/* -----PROJECT ACCORDION ACTIONS------- */
.proj.open .proj-content {
  display: flex;
}
.proj.open {
  grid-column-start: 1;
  grid-column-end: -1;
}
.proj.open .drop-down-proj{
  transform: translateY(2px) rotate(-180deg);
}
/* -----PROJECT ACCORDION ACTIONS END HERE------- */

/* ------FOOTER------- */
footer {
  background: var(--grey-base);
}
.footer-title {
  background: var(--primary-linear);
  color: transparent;
  background-clip: text;
}
.footers {
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--section-gap);
  text-align: left;
}
.adds {
  background: var(--secondary-linear);
  color: transparent;
  background-clip: text;
  margin-bottom: 5px;
}
.pls,
.fls,
.ins,
.footers p {
  color: var(--primary-text);
}
.pl-donate,
.fl-joinus {
  text-decoration: underline;
  color: var(--secondary-text);
}
.flinks {
  display: flex;
  gap: var(--section-gap);
}
.page-links,
.foundation-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.addresses {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contacts {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.contact-form {
  background: var(--base);
  min-width: 200px;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* border: 1px solid var(--separator); */
  border-radius: 10px;
  padding: 20px;
}
.inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.inps {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--separator);
  border-radius: 10px;
}
.submit-btn {
  width: 100%;
  color: var(--base);
  background: var(--primary-linear);
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 10px 0;
}

/* ----------MEDIA QUERIES----------- */
@media (width < 768px) {
  h1 {
    font-size: 2rem;
  }
  .hero-section {
    padding: 0 var(--side-m-pad);
  }

  .p-des {
    max-width: 100%;
  }
  .p-dummy {
    max-width: 200px;
    top: 80%;
  }
  .p-dummy:nth-child(1) {
    transform: translate(-25vw, 5px) rotate(-10deg);
  }
  .p-dummy:nth-child(2) {
    transform: translateY(5px);
  }
  .p-dummy:nth-child(3) {
    transform: translate(25vw, 5px) rotate(10deg);
  }

  .p-content {
    grid-template-columns: auto;
    grid-template-rows: repeat(3, auto);
  }
  .p-frame-cont {
    grid-column-start: 1;
    grid-column-end: -1;
    grid-row-start: 2;
    grid-row-end: 3;
  }
  .img-cont {
    width: 100%;
  }

  .project-cont {
    grid-template-columns: minmax(100px, 1fr);
  }
  .proj-title {
    max-width: 350px;
  }

  .proj-content {
    flex-direction: column;
    align-items: center;
  }
  .proj-content-img {
    width: 100%;
    margin: 0;
  }
  .proj-des {
    max-width: none;
  }

  .sections,
  footer {
    padding: var(--section-pad) var(--side-m-pad);
  }
  .footers {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

@media (1024px >= width >= 768px) {
  .p-des {
    max-width: 100%;
  }
  .p-dummy {
    max-width: 200px;
    top: 80%;
  }
  .p-dummy:nth-child(1) {
    transform: translate(-25vw, 5px) rotate(-10deg);
  }
  .p-dummy:nth-child(2) {
    transform: translateY(5px);
  }
  .p-dummy:nth-child(3) {
    transform: translate(25vw, 5px) rotate(10deg);
  }
  .p-content {
    grid-template-columns: auto;
    grid-template-rows: repeat(3, auto);
  }
  .p-frame-cont {
    grid-column-start: 1;
    grid-column-end: 1;
    grid-row-start: 2;
    grid-row-end: 3;
  }

  .proj.open .proj-content {
    display: block;
  }
  .proj-content-img {
    margin: 0 10px;
  }
  .proj-des {
    max-width: none;
  }
}
