/* General Reset */
body {
  font-family: 'Helvetica', sans-serif;
  margin: 0;
  padding: 0;

  color: white;
  line-height: 1.6;
}


#hamburger {
  font-size: 2rem;
  cursor: pointer;
  color: white;
}


#hamburger {
  display: none;
}

#nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #022242;
  padding: 0.5rem 2rem;
  /* Use fixed padding instead of percentage */
  position: fixed;
  width: 100%;
  /* Ensures it takes up the full viewport width */
  max-width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  min-height: 7rem;
  box-sizing: border-box;
}


#nav-brand {

  display: flex;
  align-items: center;
  gap: 2rem;
  /* Space between logo and text */
}

/* Smaller Logo */
#nav-brand img {
  width: 4rem;
  /* Adjusted to fit better */
  height: auto;
}

/* Church Name Styling */
#nav-text {
  font-size: 2rem;
  /* Adjusted to fit navbar */

  font-family: 'Futura', sans-serif;


  white-space: nowrap;
  /* Prevents text from breaking */
  display: flex;
  align-items: center;


}

/* Nav Links */
#nav-list {
  font-family: 'Helvetica ', sans-serif;
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

#nav-list li a {
  /* color: rgb(211, 151, 0); */
  color: white;
  text-decoration: none;
  font-size: 1.4rem;
  font-family: 'Futura', sans-serif;
  /* font-weight: bold; */
  transition: color 0.3s ease;
  /* text-shadow: 1px 1px 18px #fefefe; */

}

#nav-list li a:hover,
#nav-list li a:focus {
  color: #871d38;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #871d38;
  padding: 1rem;
  list-style: none;
  top: 100%;
  left: 0;
  z-index: 999;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dropdown:hover .dropdown-menu {
  display: block;

}

.dropdown-menu li {
  margin-bottom: 0.5rem;
}

.dropdown-menu li a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  display: block;
}

.dropdown-menu li a:hover {
  color: white;
}


/* Hero */
.contact-hero {
  background-color: #022242;
  /* color: white; */
  height: 40rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 2rem;
}

.contact-hero h1 {
  font-size: 5rem;
  margin: 0;
  font-weight: bold;
}

.contact-hero p {
  font-size: 3.4rem;
  margin-top: 1rem;
  font-weight: 300;
}

/* Contact Section */
.contact-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 4rem;
  background-color: white;
}

.contact-form {
  flex: 1;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form label {
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.contact-form button {
  background-color: #022242;
  color: white;
  padding: 1rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #871d38;
}

.contact-form label {
  color: #003366;
}



/* Contact Info */
.contact-info {
  flex: 1;
  max-width: 400px;
  color: #003366;
}

.contact-info h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: #871d38;
}

.contact-info a {
  color: #022242;
  text-decoration: underline;
}

.contact-info a:hover {
  color: #871d38;
}

/* Footer */
#footer {
  background-color: #022242;
  color: white;
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.6rem;
  font-family: 'Futura', sans-serif;
}

.footer-brand img {
  width: 3rem;
  height: auto;
}



.footer-links a:hover {
  color: white;
}

.footer-contact p {
  margin: 0.25rem 0;
  font-size: 1.2rem;
}

.footer-contact a {
  color: goldenrod;
  text-decoration: underline;
}

.footer-contact a:hover {
  color: white;
}

.footer-copy {
  font-size: 1rem;
  color: #aaa;
  margin-top: 1rem;
}

/* mobile */
@media (max-width: 768px) {

  #hamburger {

    display: block;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    padding: 0.5rem 1rem;
    margin-left: auto;

  }

  #nav-list {
    display: none;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 7rem;
    /* match navbar height */
    left: 0;
    width: 100%;
    background-color: #161414d1;
    /* or any color you want */
    padding: 1rem 0;
    z-index: 999;
  }


  #nav-list.show {
    display: flex;
  }

  #nav-list.hidden {
    display: none;
  }

  /*  NAVBAR */
  #nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }


  #nav-brand {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
  }

  #nav-brand img {
    width: 3rem;
  }

  #nav-text {
    font-size: 1.2rem;
    text-align: center;
  }


  .dropdown-menu {
    position: static;
    max-height: 40vh;
    overflow-y: auto;
    width: 100%;
    background-color: #871d38;
    text-align: center;
    padding: 0.5rem 0;
  }

  .contact-info {
    order: -1;
  }

  /* HERO */
  .contact-hero {
    height: auto;
    padding: 8rem 1rem 3rem;
  }

  .contact-hero h1 {
    font-size: 2.4rem;
  }

  .contact-hero p {
    font-size: 1.4rem;
  }

  /* FORM SECTION STACK */
  .contact-section {
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 2rem;
  }

  .contact-form,
  .contact-info {
    max-width: 100%;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 1rem;
  }

  .contact-form button {
    font-size: 1rem;
  }

  .contact-info h2 {
    font-size: 1.5rem;
    text-align: center;
  }

  .contact-info p,
  .contact-info a {
    font-size: 1rem;
    text-align: center;
    display: block;
  }


  /* FOOTER */
  .footer-links {
    flex-direction: column;
    align-items: center;
  }

  .footer-brand {
    flex-direction: column;
    text-align: center;
  }

  .footer-contact {
    text-align: center;
  }
}


@media (max-width: 600px) {
  .contact-info {
    order: -1;
  }

  /* NAV TWEAKS */
  #nav-text {
    font-size: 1rem;
  }

  #nav-brand img {
    width: 2.5rem;
  }

  #nav-list {
    gap: 0.8rem;
  }

  /* HERO */
  .contact-hero h1 {
    font-size: 2rem;
  }

  .contact-hero p {
    font-size: 1.2rem;
  }

  /* FORM ELEMENTS */
  .contact-form input,
  .contact-form textarea {
    font-size: 0.95rem;
    padding: 0.6rem;
  }

  .contact-form button {
    font-size: 0.95rem;
    padding: 0.8rem;
  }

  /* INFO SECTION */
  .contact-info h2 {
    font-size: 1.3rem;
  }

  .contact-info p,
  .contact-info a {
    font-size: 0.95rem;
  }

  /* FOOTER TWEAKS */
  .footer-brand img {
    width: 2.5rem;
  }

  .footer-contact p {
    font-size: 0.95rem;
  }

  .footer-copy {
    font-size: 0.85rem;
  }
}