/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
 /*background: url('../Images/leafBackground2.png') no-repeat center center fixed;
  background-size: cover;*/
  background-color:#f5f7f6;
  color: #333333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: all 0.3s ease;
}

header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 2;
  transition: all 0.3s ease;
}

/* Logo overlapping header/body with min-width */
header img.logo {
  position: absolute;
  top: 0vh;
  left: 1vw;
  height: auto;
  max-width: 25%;
  min-width: 250px;
  z-index: 3;
  transition: all 0.3s ease;
}

/* Header black bar */
#arch {
  position: absolute;     
  top: 0;
  right: 0;
  opacity: 0.5;
  width: 75vw;            
  max-width: 100%;         
  height: auto;     
  min-height: 75%;      
  z-index: 1;
  transition: all 0.3s ease;             
}
#quote {
  position: absolute;     
  top: 15vh;
  right: 0;
  opacity: 0.7;
  width: 70vw;            
  max-width: 100%;         
  height: auto;     
  min-height: 75%;      
  z-index: 1;
  transition: all 0.3s ease;             
}

nav {
  margin-left: auto;
  display: flex;
  gap: 1.5rem;
  position: relative; 
  z-index: 3;
  padding-right: 3rem;
  transition: all 0.3s ease;
}

/* Fluid nav font size */
nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: clamp(0.9rem, 1.5vw + 0.5rem, 1.5rem);
  transition: all 0.3s ease;
}

nav a:hover {
  color: #ddd;
}

main {
  flex: 1;
  display: flex;
  align-items: flex-start; /* image and text top-aligned */
  /* top padding scales fluidly with viewport + extra space below logo */
  padding: calc(clamp(250px, 12vw, 400px) + 20px) 5vw 2rem;
  gap: 2rem;
  transition: all 0.3s ease;
}

/* Containers for image and text */
.image-container {
  flex: 0 0 clamp(20%, 25%, 30%); /* wide screen image area */
  display: flex;
  justify-content: center; 
  transition: all 0.3s ease;
}

.image-container img {
  height: auto;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
  margin-left: -4vw;
  transition: all 0.3s ease;
}

.text-container {
  flex: 0 0 75%; /* wide screen text area */
  transition: all 0.3s ease;
}

.text-container p {
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  line-height: 1.5;
  transition: all 0.3s ease;
}

footer {
  text-align: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.6);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
#backToTop {
  display: none; /* hidden by default */
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 1000;
  background-color: #4aa8a1;
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: background 0.3s ease;
}

#backToTop:hover {
  background-color: #3a8c87;
}
/* Responsive adjustments for small screens */
@media (max-width: 600px) {
  #quote { 
    width: 0%;
    flex: 0 0 auto;
    padding-left: 15vw;}

}
@media (max-width: 600px) {
  main {
    flex-direction: column; /* stack image and text vertically */
    align-items: center;    /* center image horizontally */
    gap: 1.5rem;
    padding: calc(120px + 1rem) 5vw 2rem; /* smaller top padding */
  }

  .image-container {
    flex: 0 0 auto;
    width: 80%; /* image width on small screens */
    justify-content: center;
  }

  .image-container img {
    margin-left: 0;
  }

  .text-container {
    flex: 0 0 auto;
    width: 90%; /* text width */
    text-align: center; /* center text under image */
  }

  .text-container p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
  }
  
}
