@import url("../blocks/home.css");
@import url("../blocks/what-we-do.css");
@import url("../blocks/mission.css");
@import url("../blocks/upcoming-event.css");
@import url("../blocks/contact.css");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100vw;
}

body {
  font-family: "Poppins";
}

ul,
ul.nav {
  list-style: none;
}

.about-actions {
  display: flex;
  flex-direction: column;
}
a {
  color: inherit;
}

.logo {
  height: 100px;
  width: 100px;
  opacity: 0.8;
}

header {
  margin-top: 10px;
  position: absolute; /* Position the header on top of the banner */
  top: 0;
  left: 0;
  width: 100%;
  height: 100px; /* Adjust the height as needed */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 1000; /* Ensure it appears above the banner */
  color: white;
}

header ul.nav {
  display: flex;
}

header ul.nav li {
  font-weight: 600;
  display: flex;
  margin: 0 30px;
  align-items: center;
}

header ul.nav a {
  white-space: nowrap;
}

/* Basic link styling */
.nav li a {
  text-decoration: none;
  font-size: 20px;
  color: white;
  padding-bottom: 5px; /* Adds spacing for the hover line */
  position: relative; /* Necessary for the hover underline */
}

/* Hover effect - changes color and adds an underline */
.nav li a:hover {
  color: #ca9e81;
}

/* Optional: Add a line under the link on hover using ::after */
.nav li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #a3826c; /* Color of the hover underline */
  bottom: -2px; /* Position the line just below the text */
  left: 0;
  transition: width 0.3s ease;
}

/* Expand the underline on hover */
.nav li a:hover::after {
  width: 100%; /* Full width of the link */
}

/* Active state - this applies to the current page */
.nav li a.active {
  color: #caa084;
  background-image: white;
}

/* Ensure the underline stays on the active link */
.nav li a.active::after {
  content: "";
  position: absolute;
  width: 100%; /* Full width for the active link */
  height: 2px;
  background-color: #a3826c; /* Color of the underline */
  bottom: -2px; /* Position the line just below the text */
  left: 0;
}

.nav li {
  position: relative;
}

.nav li .dropdown-menu a::after {
  content: none;
}

.dropdown-menu {
  display: none;
  z-index: 1000;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 100px;
  padding-top: 10px;
}

.dropdown-menu a {
  min-width: 100px;
  top: 10px;
  right: 30px;
}

.dropdown-menu li:nth-child(2) {
  padding-top: 20px;
}

.nav li:hover .dropdown-menu {
  display: block;
}

.banner-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0) 50%
  );
}

#about {
  padding: 50px 60px;
  text-align: center;
  background-color: #f9f9f9;
  margin-top: 0; /* Removes any overlap */
}

.about-title {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 50px;
  padding: 20px 20px 20px 0;
}

/* Wrapper */
.nav-donate-wrapper {
  position: relative;
}

/* Donate button (already styled, just reused) */
.nav-donate {
  background: #a3826c;
  color: #fff !important;
  padding: 14px 20px;
  border-radius: 10px;
  font-weight: 550;
  cursor: pointer;
  list-style: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.nav-donate:active {
  transform: scale(1.02);
}

.nav-donate:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(163, 130, 108, 0.45);
}

/* Donate button stays enlarged when dropdown is open */
.donate-dropdown[open] > .nav-donate {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(163, 130, 108, 0.45);
}

/* Remove default marker */
.donate-dropdown summary::-webkit-details-marker {
  display: none;
}

/* Dropdown panel */
.donate-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  padding: 16px;
  border-radius: 16px;
  background: #3e3d3d;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 999;
}

/* Text */
.donate-title {
  font-weight: 700;
  margin: 0;
}
.donate-subtitle {
  font-size: 13px;
  opacity: 0.8;
  margin: 0;
  text-align: center;
}

/* QR */
.donate-qr {
  width: 160px;
  height: 160px;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
}

/* Handle */
.donate-handle {
  font-size: 13px;
  opacity: 0.85;
  margin: 0;
}

/* Button inside panel */
.btn-donate-panel {
  background: #a3826c;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  width: 100%;
  text-align: center;
}

.donate-panel a::after,
.btn-donate-panel::after {
  content: none !important;
}

/* Keep donate panel buttons white on hover (stop nav hover color) */
.donate-panel a:hover,
.btn-donate-panel:hover {
  color: #fff !important;
}

.btn-donate-panel:hover {
  filter: brightness(1.05);
}

.donate-panel a {
  position: static;
}

/* -----------------------------
   GLOBAL RESPONSIVE FIXES
   Put at bottom of index.css
------------------------------ */

/* Prevent horizontal scroll on mobile */
html {
  width: 100%;
}
body {
  overflow-x: hidden;
}

/* Make images flexible by default */
img {
  max-width: 100%;
  height: auto;
}

.navlogo {
  display: none;
}

.home-img_1 img {
  width: 45%;
}

.mission-area .elsa-role {
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
  padding-bottom: 15px;
}

/* ====== Large desktops (1200px+) ====== */
@media (min-width: 1200px) {
  header ul.nav li {
    margin: 0 30px;
  }
}

/* ====== Laptops / small desktops (992px–1199px) ====== */
@media (max-width: 1199px) {
  header ul.nav li {
    margin: 0 18px;
  }
}

/* ====== Tablets (768px–991px) ====== */
@media (max-width: 991px) {
  header {
    padding: 0 16px;
  }

  .logo {
    height: 80px;
    width: 80px;
  }

  .nav li a {
    font-size: 16px;
  }

  header ul.nav li {
    margin: 0 12px;
  }

  section #home-content p {
    font-size: 24px;
  }

  #about {
    padding: 40px 24px;
  }

  .about-title {
    font-size: 40px;
  }

  .home-img_1 img {
    width: 45%;
  }

  #about-mission img {
    height: 24rem;
    width: 24rem;
  }
}

/* ========= Mobile Navbar ========= */

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

/* hamburger button (hidden on desktop) */
/* Hamburger base */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  cursor: pointer;
}

/* Bars */
.nav-toggle .bar {
  position: absolute;
  left: 50%;
  width: 25px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Bar positions */
.nav-toggle .bar:nth-child(2) {
  top: 14px;
}
.nav-toggle .bar:nth-child(3) {
  top: 21px;
}
.nav-toggle .bar:nth-child(4) {
  top: 28px;
}

/* OPEN STATE → X */
.nav-toggle.is-open .bar:nth-child(2) {
  transform: translateX(-50%) translateY(7px) rotate(45deg);
}

.nav-toggle.is-open .bar:nth-child(3) {
  opacity: 0;
}

.nav-toggle.is-open .bar:nth-child(4) {
  transform: translateX(-50%) translateY(-7px) rotate(-45deg);
}

/* About button looks like your links */
.dropdown-btn {
  background: none;
  border: none;
  font: inherit;
  color: #fff;
  cursor: pointer;
  padding-bottom: 5px;
  position: relative;
}

.dropdown-btn:hover {
  color: #ca9e81;
}

/* IMPORTANT: stop underline animation on the button */
.dropdown-btn::after {
  content: none !important;
}

/* keep your desktop hover dropdown behavior */
.nav-about {
  position: relative;
}
.nav-about:hover .dropdown-menu {
  display: block;
}

/* Donate: keep "active/enlarged" while open */
.donate-dropdown[open] > .nav-donate {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(163, 130, 108, 0.45);
}

/* ===== Elsabet section verse formatting ===== */
#about-me {
  display: flex;
  flex-direction: column;
}

#about-me p,
.elsa-verse {
  max-width: 620px;
}

.elsa-verse {
  margin-top: 22px;
  padding-left: 16px;
  border-left: 4px solid #a3826c;
  font-style: italic;
  color: #444;
  line-height: 1.6;
}

.elsa-verse__ref {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: #111;
  margin-bottom: 6px;
}

.elsa-verse__text {
  display: block;
}

@media (max-width: 810px) {
  section #home-content p {
    font-size: 23px;
  }
  #about-mission img {
    height: 22rem;
    width: 22rem;
  }

  #about-mission li {
    padding: 0 0 20px;
  }

  #about-me {
    padding-left: 2rem;
  }
}

/* ---------- Mobile breakpoint ---------- */
@media (max-width: 767px) {
  header {
    background-color: rgb(74 74 74 / 50%);
    backdrop-filter: blur(3px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(1px); /* Safari */
    position: fixed;
    height: auto;
    padding: 8px 12px;
    align-items: center;
    margin: 0;
  }

  .navlogo {
    display: flex;
    max-width: 100%;
    height: 4rem;
    width: 4rem;
    position: absolute;
    top: 10px;
    left: 10px;
  }

  .logo {
    height: 60px;
    width: 60px;
  }

  /* show hamburger */
  .nav-toggle {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 3500;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .nav-toggle:focus {
    outline: none;
  }

  .nav-toggle:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 3px;
  }

  /* turn your UL into a dropdown panel */
  ul.nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
    padding: 90px 22px 30px; /* room for header/top */
    display: none; /* closed by default */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    z-index: 3000;
  }

  /* open state toggled by JS */
  ul.nav.is-open {
    display: flex;
    background-color: white;
  }

  .nav.is-open {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: 100vh;
  }

  html.menu-open,
  body.menu-open {
    height: 100%;
  }

  body.menu-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
    touch-action: none;
  }

  header ul.nav {
    display: none;
  }

  header ul.nav li {
    margin: 0;
    display: block;
  }

  .nav li a:hover {
    color: none;
  }

  .nav li a,
  .dropdown-btn {
    border: none !important;
    color: #2b2b2b !important;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 0.2px;
    text-decoration: none;
    text-align: center;
    width: auto;
    display: inline-block;
  }

  #btn-donate-panel {
    color: white !important;
    font-weight: 600;
    font-size: 20px;
    padding: 12px 15px;
  }

  #btn-donate-panel:hover {
    background-color: #ca9e81;
  }

  .nav li a::after {
    content: none !important;
  }

  .nav li a:hover,
  .dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }
  /* About submenu becomes inline for mobile */
  .nav-about .dropdown-menu {
    position: static;
    display: none;
    padding: 10px 0 0;
    margin: 0;
    text-align: center;
  }

  .nav-about.open .dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .nav-about .dropdown-menu a {
    font-size: 22px;
    opacity: 0.85;
  }

  /* Donate becomes button at bottom */
  .nav-donate-wrapper {
    margin-top: 12px;
  }

  .nav-donate {
    width: 220px;
    text-align: center;
    padding: 14px 18px;
    border-radius: 10px;
    background: #a3826c !important;
    color: #fff !important;
    font-size: 24px;
    font-weight: 600;
  }

  /* Donate panel should not absolute-position off screen */
  .donate-panel {
    position: absolute;
    top: -23rem;
    right: -23px;
    width: 270px;
    margin-top: 10px;
  }

  section #home-content p {
    font-size: 22px;
  }
  .home-section {
    padding-bottom: 2rem;
  }

  #about {
    display: flex;
    flex-direction: column;
  }

  #about-me {
    align-self: center;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 20px 0;
  }

  #about-mission li {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
  }

  #about-mission li p {
    font-size: 20px;
  }

  footer p {
    text-align: center;
    padding: 30px;
  }
}

@media (max-width: 570px) {
  section ul .home-img_1 {
    flex-direction: column;
  }
  .home-img_1 img {
    width: 60%;
  }

  .about-btn {
    margin-top: 2rem;
  }

  #Elsa,
  .content-area {
    padding-top: 3rem;
  }

  #about-mission li {
    padding: 0;
  }
}

/* ====== Small phones (<= 420px) ====== */
@media (max-width: 420px) {
  .banner-area {
    height: 40vh !important;
  }

  .home-img_1 img {
    width: 70%;
  }

  .nav-donate {
    padding: 11px 14px;
    width: 13rem;
  }

  section #home-content p {
    padding: 0;
  }

  .donate-panel {
    width: 280px;
    top: -24rem;
    right: -36px;
    height: 355px;
  }

  .about-title {
    padding: 0 0 10px;
    font-size: 30px;
  }

  #about-mission img {
    height: 17rem;
    width: 18rem;
  }

  section #home-content p {
    font-size: 20px;
  }
}

@media (max-width: 320px) {
  .home-img_1 img {
    width: 80%;
  }

  .nav-donate {
    width: 11rem;
  }

  .donate-panel {
    right: -53px;
  }

  .about-area p {
    padding: 0;
    font-size: 16px;
  }

  .about-btn {
    padding: 22px 36px;
  }

  .home-section {
    padding-bottom: 2rem;
  }

  #Elsa,
  .content-area {
    padding: 2rem 1rem 1rem;
  }

  #about-mission li p {
    font-size: 17px;
  }

  section #home-content p {
    font-size: 17;
  }

  footer p {
    font-size: 12px;
  }
}

/* ====== Landscape phones ====== */
@media (max-width: 900px) and (orientation: landscape) {
  #home-banner {
    height: 85vh;
  }

  header {
    padding-top: 6px;
  }
}
