/* charity: water Brand Colors & Fonts

Primary Colors:
- Yellow:     #FFC907
- Blue:       #2E9DF7

Secondary Colors:
- Light Blue: #8BD1CB
- Green:      #4FCB53
- Orange:     #FF902A
- Red:        #F5402C
- Dark Green: #159A48
- Pink:       #F16061

Fonts:
- Proxima Nova
- Avenir

*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', 'sans-serif';
  color: #333;
}

header {
  position: sticky;
  top: 0;
}

.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  position: relative; /* Added position relative */
}

.header-align {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.logo img {
  height: 35px;
  display: block;
}

nav {
  margin-left: 50px;
}

nav a {
  margin: 0 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.sign-in-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ffcc00; /* You can choose any color */
  color: #000000;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.sign-in-button:hover {
  background-color: #daa51f; /* Darker shade on hover */
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  min-height: 40vh;
  text-align: center
}

.hero-text {
  flex: 1;
  background-color: #74a6b9;
  padding: 60px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-text h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1rem;
  margin-bottom: 40px;
  line-height: 1.6;
}

.email-wrapper {
  font-family: 'Montserrat', sans-serif;
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 20px auto 0 auto; /* centers horizontally */
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky; /* Makes the email input stick as you scroll */
  top: 80px; /* Adjust as needed so it sits below the header */
}




.email-input {
  width: 100%;
  height: 120%;
  padding: 12px 130px 12px 15px; /* enough padding-right for the button */
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px; /* Less rounded than 25px */
  outline: none;
}

.give-now-button {
  position: absolute;
  right: 5px;
  padding: 10px 16px;
  font-size: 0.9rem;
  border: none;
  border-radius: 6px;
  background-color: #fdd835;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.give-now-button:hover {
  background-color: #daa51f;
}


.btn-outline {
  background-color: #fff;
  color: #333;
}

.btn-yellow {
  display: inline-block;
  padding: 10px 20px;
  background-color: #fdd835; /* Yellow shade */
  color: black;
  text-decoration: none;
  border: none;
  border-radius: 8px; /* Makes it rounded */
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-yellow:hover {
  background-color: #daa51f; /* Slightly darker yellow on hover */
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #eee;
}

.hero-image img {

max-width: 100%;
height: auto;}


@media (max-width: 768px) {
  /* Hero layout: put image above text */
  .hero {
    flex-direction: column-reverse; /* image above text */
  }

  /* Center hero text content */
  .hero-text {
    align-items: center;
    text-align: center;
    padding: 40px 20px;
  }

  /* Make hero image full width with some spacing */
  .hero-image {
    width: 100%;
    margin-bottom: 20px;
  }

  /* Make nav links stack vertically and fill width */
  nav {
    margin-left: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  nav a {
    margin: 10px 0; /* vertical spacing */
    padding: 10px 20px;
    text-align: center;
  }
  
  /* Optional: Adjust header layout for smaller screens */
  .heading {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
    position: relative; /* Keep position relative for hamburger */
  }

  .header-align {
    width: 100%;
    justify-content: space-between;
  }

  /* Hamburger menu styles for mobile */
  .hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    margin-left: 20px;
    /* Place hamburger at the top right for all screens */
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 100;
  }

  .hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
    border-radius: 2px;
  }

  /* Hide nav links by default on mobile */
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fff;
    position: absolute;
    top: 60px;
    left: 0;
    z-index: 10;
    border-bottom: 1px solid #ddd;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    margin: 10px 0;
    padding: 15px 0;
    text-align: center;
    border-top: 1px solid #eee;
  }

  /* Make logo bigger and centered on mobile */
  .logo img {
    height: 40px;
    margin: 10px auto;
  }

  /* Hero section: put image under blue block for mobile */
  .hero {
    flex-direction: column;
    min-height: auto;
    text-align: center;
  }

  /* Blue block (hero-text) comes first, image comes after */
  .hero-text {
    order: 1;
    align-items: center;
    text-align: center;
    padding: 30px 10px;
  }

  .hero-image {
    order: 2;
    width: 100%;
    margin-bottom: 20px;
  }

  .hero-image img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }

  /* Email input and button stack for easier tapping */
  .email-wrapper {
    flex-direction: column;
    max-width: 100%;
    margin: 20px 0 0 0;
    align-items: stretch;
    justify-content: center;
    position: static; /* Not sticky on mobile */
  }

  .email-input {
    padding: 12px 15px;
    font-size: 1rem;
    border-radius: 6px;
    margin-bottom: 10px;
  }

  .give-now-button {
    position: static;
    width: 100%;
    margin: 0;
    border-radius: 6px;
  }
}
/* Final Version With Clickable CTA */