/* UPDATED 2025-08-19 */

@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap");

[hidden] {
  display: none !important;
}

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

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  background-color: black;
}

/* ensure content isn't hidden under a fixed nav */
body {
  padding-top: 75px;
}

.hero {
  width: 100%;
  background-blend-mode: darken;
}

.nav {
  height: 75px;
  position: fixed;
  font-family: "Josefin Sans", sans-serif;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.575);
  background-blend-mode: darken;
  backdrop-filter: blur(5px);
  top: 0;
  left: 0;
  z-index: 1200;
}

.hero-txt {
  position: absolute;
  color: white;
  font-family: "Josefin Sans", sans-serif;
  font-size: 3rem;
  line-height: 4rem;
}

.hero-body-txt {
  /* top: 22vh; */
  margin-top: 200px;
  position: absolute;
  color: white;
  font-family: "Josefin Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  width: 80%;
}

.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

.hero-link {
  color: white;
  font-family: "Josefin Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  text-decoration: none;
  margin-top: 10%;
}

.hero-link::after {
  content: "";
  position: absolute;
  width: 275px;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: white;
  transform-origin: bottom left;
  transition: transform 0.25s ease-out;
}
.hero-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.arrow-hero-link {
  height: 3vh;
  padding-left: 5%;
  position: absolute;
}

.link-container {
  margin-top: 5%;
}

.main-txt {
  position: absolute;
  top: 30vh;
  margin-left: 2%;
  width: 40%;
}

.top {
  position: relative;
}
.logo-text {
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
  font-weight: bold;
  flex: 1;
  text-align: left;
  margin-left: 2%;
  margin-top: 10px;
  transition: color 0.35s ease-in-out;
  background-image: linear-gradient(to right, #1b98ff, #357dfa);
  background-clip: text;
  -webkit-background-clip: text;
}

.logo-text:hover,
.logo-text:focus-visible {
  color: transparent;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.75rem;
  margin-right: 1rem;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* keep nav items on a single line on wide screens */
.nav-links a,
.navlink {
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
  display: inline-block;
}

.donate {
  padding: 0.5rem 0.95rem;
  border-radius: 10px;
}
.donate {
  line-height: 1;
}

/* mobile menu open state */
.menu-open .nav-links {
  display: flex;
}

.navlink {
  color: white;
  font-size: 1.5rem;
  text-align: right;
  text-decoration: none;
  padding-right: 3%;
  margin-top: 10px;
  margin-bottom: 10px;
  transition: all 0.4s ease-in-out;
  background-clip: text;
  background-image: linear-gradient(to right, #1b98ff, #357dfa);
}

.navlink:hover {
  color: transparent;
}

.donate {
  text-decoration: none;
  font-size: 1.5rem;
  color: black;
  background-color: white;
  border-radius: 10px;
  padding-right: 0%;
  margin-top: 10px;
  margin-bottom: 10px;
  margin-right: 3%;
  padding: 0.5%;
  transition: all 0.4s ease-in-out;
  border: transparent 2px solid;
}

.donate:hover {
  background-color: transparent;
  color: white;
  border: white 2px solid;
}

.arrow-down {
  position: absolute;
  top: 15vh;
}

/* ensure hero image anchors to top on small screens */
.hero {
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* hide nav overlap on large screens if nav height changes */
@media (min-width: 901px) {
  body {
    padding-top: 75px;
  }
}

.main-content {
  margin-top: 10%;
}

.section-title {
  font-family: "Josefin Sans", sans-serif;
  color: white;
  text-align: center;
  font-size: 3rem;
}

.focuses {
  display: flex;
  justify-content: space-around;
  margin-top: 5%;
}

.focus {
  text-align: center;
  width: 20%;
}

.focus-title {
  font-family: "Josefin Sans", sans-serif;
  color: white;
  font-size: 2rem;
}

.focus-desc {
  font-family: "Josefin Sans", sans-serif;
  color: white;
  font-size: 1rem;
}

.focus-container {
  display: flex;
  justify-content: center;
  margin-top: 5%;
  gap: 5%;
  margin-left: 5%;
  margin-right: 5%;
}

.focus-content-container {
}

.focus-img {
  width: 600px;
  border-radius: 20px;
}

.focus-container-title {
  font-family: "Josefin Sans", sans-serif;
  color: white;
  font-size: 3rem;
  text-align: right;
}

.focus-container-text {
  font-family: "Josefin Sans", sans-serif;
  color: white;
  font-size: 1.25rem;
  text-align: right;
}

.focuses-link {
  font-family: "Josefin Sans", sans-serif;
  color: white;
  text-decoration: none;
  display: inline-block;
  position: relative;
}

.focuses-link::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: white;
  transform-origin: bottom left;
  transition: transform 0.25s ease-out;
}
.focuses-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

hr {
  margin-top: 5%;
  color: rgba(255, 255, 255, 0.647);
}

footer {
  display: flex;
  justify-content: space-around;
  width: 100%;
}
.footer-logo {
  color: white;
  font-family: "Josefin Sans", sans-serif;
  font-size: 2rem;
  line-height: 3rem;
  left: 3%;
  padding-bottom: 1%;
  margin-top: 2%;
}

.footer-links {
  color: white;
  font-family: "Josefin Sans", sans-serif;
  font-size: 1rem;
  text-align: right;
  margin-top: 3%;
  /* width: 50%; */
  margin-right: 0%;
}

.footer-link {
  font-family: "Josefin Sans", sans-serif;
  color: white;
  text-decoration: none;
  display: inline-block;
  position: relative;
}

.footer-link::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: white;
  transform-origin: bottom left;
  transition: transform 0.25s ease-out;
}

.footer-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* .footer-link-donate::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  transform-origin: bottom left;
  transition: transform 0.25s ease-out;
  background-color: linear-gradient(to right, #1b98ff, #3935fa);
}

.footer-link-donate:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
} */

.footer-link-donate {
  background-image: linear-gradient(to right, #1b98ff, #357dfa);
  background-clip: text;
  color: #fff;
  transition: all 0.4s ease-in-out;
  display: inline-block;
  position: relative;
  text-decoration: none;
}

.footer-link-donate:hover {
  color: transparent;
}

.social-media {
  text-align: right;
  margin-top: 3%;
  margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .nav {
    height: auto;
    padding: 0.75rem 1rem 0;
    align-items: center;
    gap: 0.5rem;
    position: relative; /* allow nav to expand and push content */
  }

  .menu-toggle {
    display: block;
  }
  .menu-toggle {
    margin-left: auto;
    margin-right: 0.75rem;
    order: 2;
    font-size: 2.25rem;
  }

  .logo-text {
    position: absolute;
    left: 50%;
    transform: translateX(-56%);
    margin-left: 0;
    top: 0.75rem;
    margin-top: 0;
    text-align: center;
    width: auto;
    flex: none;
    z-index: 1202;
  }

  .nav-links {
    display: none;
  }

  /* mobile: nav becomes a vertical block (pushes content) */
  .nav-links {
    position: static;
    background-color: rgba(0, 0, 0, 0.92);
    flex-direction: column;
    align-items: flex-end; /* right-justify items */
    gap: 0;
    padding: 0.1rem 0.5rem 0.5rem;
    width: 100%;
  }

  .nav-links a,
  .nav-links .donate {
    display: block;
    width: fit-content;
    max-width: 100%;
    text-align: right; /* right-justify link text */
    padding: 0.75rem 1rem;
    margin: 0.125rem 0;
    font-size: 1.25rem;
  }

  .nav-links .donate {
    margin-bottom: 0.25rem;
    align-self: flex-end;
    width: fit-content;
    display: inline-flex;
  }

  /* remove the extra body padding for mobile so nav height flows into document */
  body {
    padding-top: 0;
  }

  .logo-text {
    font-size: 1.125rem;
    margin-left: 0.5rem;
  }

  .navlink,
  .donate {
    font-size: 1rem;
    padding: 0.4rem 0.6rem;
  }

  .main-txt {
    position: relative;
    z-index: 2;
    margin: 1.5rem 1rem 1rem;
    width: auto;
    top: auto;
  }

  .hero-txt {
    position: static;
    font-size: 2rem;
    line-height: 2.4rem;
    margin: 0 0 0.5rem;
    text-align: left;
  }

  .hero-body-txt {
    position: static;
    margin-top: 0.5rem;
    width: 100%;
  }

  .top {
    display: flex;
    flex-direction: column;
    min-height: 70vh;
    background-image: url("../img/hero.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
  }

  .hero {
    display: none;
  }

  .arrow-down {
    display: none;
  }

  .focus-container {
    flex-direction: column;
    align-items: center;
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .focus-img {
    width: 100%;
    max-width: 520px;
  }

  .focuses {
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .focus {
    width: 45%;
    padding: 0 0.5rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 520px) {
  .nav {
    flex-wrap: wrap;
    height: auto;
    padding: 0.5rem 0.75rem;
  }

  .navlink,
  .donate {
    font-size: 0.95rem;
    padding: 0.5rem 0.6rem;
    margin: 0.25rem 0.25rem;
  }

  .main-txt {
    margin: 1rem;
  }

  .hero-txt {
    font-size: 1.6rem;
    text-align: left;
  }
  .hero-body-txt {
    font-size: 0.95rem;
  }

  .focus {
    width: 100%;
    padding: 0 0.75rem;
  }
  .focus-title {
    font-size: 1.25rem;
  }
  .focus-desc {
    font-size: 0.95rem;
  }

  footer {
    display: block;
    padding: 1rem;
  }

  .footer-logo {
    text-align: center;
    display: block;
    margin: 0 auto 0.75rem;
  }
  .footer-links {
    text-align: center;
    display: block;
  }
  .social-media {
    text-align: center;
    margin-top: 0.5rem;
  }
}

/* Utility: make images and svgs responsive by default */
img,
svg {
  max-width: 100%;
  height: auto;
}

.in_need_container {
  text-align: center;
  color: white;
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.5rem;
  text-decoration: none;
  margin-left: 10%;
  margin-right: 10%;
}
