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

/*=============================================================================
  VARIABLES & GLOBAL STYLES
=============================================================================*/
:root {
  /* Typography */
  --font: 'Roboto', 'Open Sans', sans-serif;
  --fs-base: 1rem;
  --fw-base: 400;
  --lh-base: 1.5;

  /* Colors (Brazil Forest Theme) */
  --bg-light: #fff;
  --bg-light-2: #f5f5f5;
  --bg-dark: #333;
  --text-dark: #1a1a1a;
  --text-muted: #e0e0e0;
  --forest-dark: #121F04;       /* Deep forest green */
  --forest-mid: #1F6B1F;        /* Mid-tone green */
  --forest-light: #73994B;      /* Lighter forest green */
  --accent: #A3C586;            /* Vibrant accent from nature */

  /* Semantic */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* Effects */
  --shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.1);
  --transition: 0.5s ease-in-out;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  transition: var(--transition);
}

body {
  font: var(--fw-base) var(--fs-base)/var(--lh-base) var(--font);
  color: var(--text-dark);
  background: var(--bg-light);
}

/*=============================================================================
  HEADER & NAVIGATION (FULL-WIDTH)
=============================================================================*/

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  z-index: 1000;
  background: transparent; /* Adjust as needed */
}

header nav {
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1,
header nav a {
  color: var(--text-muted);
  text-decoration: none;
}

header nav a.active {
  color: var(--forest-light);
}

header h1 {
  font-size: 2.2rem;
}

.menu {
  display: flex;
  gap: 1.5rem;
}

.menu a {
  font-size: 1.1rem;
}

header.scrolled {
  background: var(--forest-dark);
  box-shadow: var(--shadow);
  padding: 0 2rem;
}

header.scrolled nav {
  justify-content: space-around;
}

header.scrolled h1 {
  font-size: 1.6rem;
}

/* Hide mobile toggle elements on larger screens */
.nav-toggle-checkbox,
.menu-toggle {
  display: none;
}

/* Overlay for blur effect */
.dropdown-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(0); /* No blur by default */
  background: rgba(0, 0, 0, 0); /* Transparent by default */
  z-index: 900; /* Below header but above main content */
  pointer-events: none; /* Allows clicks to pass through */
  transition: backdrop-filter 0.3s ease, background 0.3s ease;
}

/* Prevent content from hiding behind the fixed header */
.main-content {
  padding-top: 5rem;
}

/*=============================================================================
  HOME / BANNER SECTION (FULL-WIDTH)
=============================================================================*/
#home {
  position: relative;
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url("images/banner.jpg");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  font-weight: light;
}

.scroll-down .arrow {
  display: block;
  width: 2rem;
  height: 2rem;
  border-bottom: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: rotate(45deg);
  margin-bottom: 0.5rem;
  animation: scrollDown 2s infinite;
}

.scroll-down .text {
  font-size: 1rem;
  max-width: 4.5rem;
  text-align: center;
  animation: fadeText 2s infinite;
}

@keyframes scrollDown {
  0% {
    transform: translateY(0) rotate(45deg);
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(1rem) rotate(45deg);
    opacity: 0;
  }
}

@keyframes fadeText {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}


/*=============================================================================
  CONTAINED SECTIONS
=============================================================================*/
.container {
  padding: 2rem 1rem;
  max-width: 75rem; /* Approximately 1200px if 1rem=16px */
  margin: 0 auto;
}

.container h2 {
  font-size: 1.6rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.content {
  width: 100%;
}


/* Link styles */
a {
  color: var(--forest-light);
  font-size: 1rem;
}

/*=============================================================================
  ABOUT SECTION
=============================================================================*/
.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4rem;
}

.about-content {
  flex: 1 1 25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-content p {
  line-height: var(--lh-base);
  margin-bottom: 0.6rem;
}

.about-logo {
  flex: 1 1 18.75rem;
  display: flex;
  justify-content: center;
}

.about-logo img {
  max-width: 100%;
  border-radius: 0.25rem;
}

/*=============================================================================
  SIGNUP SECTION
=============================================================================*/

#signup {
  padding: 2rem 0;
  background-color: var(--bg-light-2);
}

.signup-container {
  display: flex;
  flex-direction: column;
  align-items: center;  
}

.signup-content, .signup-content figure {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.signup-content ul {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-left: 1rem;
  line-height: var(--lh-base);
}

/*=============================================================================
  GAlLERY SECTION
=============================================================================*/

/* Gallery Section Base */
#gallery {
  padding: 2rem 0;
  background-color: var(--bg-light);
}

/* Gallery Container */
.gallery-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Grid Layout for Gallery Items */
.gallery-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

/* Gallery Item Wrapper */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.25rem;
}

/* Image Styling with Zoom and Darken on Hover */
.gallery-item img {
  display: block;
  width: 100%;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Label styling */
.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: 0 0 1rem 1rem;
  color: var(--text-muted);
  font-size: 1.2rem;
  font-weight: bold;
  opacity: 0;
  transform: translateY(-200%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hover Effects: Image zooms and darkens, label appears */
.gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(0.6); /* Lower brightness darkens the image */
}

.gallery-item:hover .gallery-label {
  opacity: 1;
  transform: translateY(0);
}


/*=============================================================================
  CONTACT SECTION
=============================================================================*/

/* #contact {
  padding: 4rem 2rem;
  background-color: var(--bg-light);
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
} */


/*=============================================================================
  FOOTER
=============================================================================*/
/* footer {
  padding: 2rem;
  text-align: center;
  background: var(--forest-dark);
  color: var(--text-muted);
} */

/* Footer Base */
footer {
  background: var(--forest-dark);
  color: var(--text-muted);
  padding: 2rem 0 0;
}

/* Footer Content Layout */
.footer-content {
  display: flex;
  justify-content: space-between;
  max-width: 75rem;
  margin: 0 auto 2rem;
  padding: 1rem;
  gap: 6rem;
}

/* Info Section */
.footer-info {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-info .footer-about {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 80%;
}

.footer-info .footer-about h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--forest-light);
}

/* Contact Section */
.footer-contact {
  flex: 1 1 50%;
}

.footer-contact h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--forest-light);
}

.footer-contact p {
  font-size: 1rem;
  line-height: var(--lh-base);
}

.footer-contact a {
  color: var(--forest-light);
  font-weight: bold;
  text-decoration: underline;
  transition: color 0.3s;
}

.footer-contact a:hover {
  color: var(--accent);
}

/* Logos Section */
.footer-logos {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-logos img {
  max-width: 7rem;
  filter: brightness(0) invert(1); /* Optional: Makes logos adapt to dark background */
  transition: filter 0.3s;
}

/* .footer-logos img:hover {
  filter: brightness(1);
} */

/* Copyright */
.footer-copy {
  max-width: 75rem;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  text-align: center;
}


/*=============================================================================
  RESPONSIVE DESIGN
=============================================================================*/

@media (max-width: 1024px) {
  .container {
    padding: 2rem 1rem;
  }

  /* ABOUT */
  #about {
    padding: 1rem 0;
  }

  .about-container {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }

  .about-logo {
    max-width: 20rem;
  }

  /* FOOTER */
  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-info .footer-about {
    width: 100%;
  }

  /* Logos Section */
  .footer-logos {
    gap: 1rem;
  }

  .footer-logos img {
    max-width: 8rem;
  }
}

@media (max-width: 860px) {
  /* Existing styles remain unchanged up to the overlay section */

  /* Top row: logo and bars icon side by side */
  .nav-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  header nav {
    flex-direction: column;
    align-items: stretch;
    padding: .6rem 0;
  }

  header h1 {
    font-size: 1.8rem;
  }

  header.scrolled h1 {
    font-size: 1.4rem;
  }
  
  /* Show the hamburger icon on mobile */
  .menu-toggle {
    display: block;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-muted);
  }
  
  /* Animate dropdown menu from top to bottom */
  .menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
  }
  
  .menu a {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  /* When the checkbox is checked, expand the menu */
  .nav-toggle-checkbox:checked ~ .menu {
    opacity: 1;
    margin-top: 1rem;
    transform: translateY(0);
    max-height: 500px; /* sufficiently large to show all items */
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  /* Remaining media query styles (e.g., gallery, footer) remain unchanged */

  .container {
    padding: 1.2rem 0.8rem;
  }

  .container h2 {
    text-align: center;
  }

  /* GALLERY */

  #gallery {
    background-color: var(--bg-light);
  }

  .gallery-container {
    margin: 1rem 0;
  }

  .gallery-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item {
    max-width: 100%;
  }

  /* FOOTER */
  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }

  /* Logos Section */
  .footer-logos {
    gap: 1rem;
  }

  .footer-logos img {
    max-width: 6rem;
  }
}