/* reset the default settings to remove space on left side*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* header */
header {
    display: flex;
    justify-content: space-between;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
    align-items: center; /* vertically aligns children */
    flex-wrap: wrap; /* allows items to drop below if needed */
    padding: 0 50px; /* add horizontal breathing room */
    background-color:  rgba(218, 165, 32, 0.5);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* nav menu */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    font-size: 18px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
    text-decoration: none;
}

.nav-links a {
    color: darkgreen;
    text-decoration: none;
}

.nav-links a:hover {
    color: darkgoldenrod;
    transform: scale(1.5);    /* Grows the text slightly on hover */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Adds depth */
}

/* top of the page container / image and text side by side */
.intro-container {
    display: flex;
    padding: 10px;
    background-color: rgba(211, 211, 211, 0.5);
    justify-content: space-evenly;
    gap: 30px;
}

.plant-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 35px;
}

/* sizing image on home page */
#home-plants {
    max-width: 100%;
    border: 2px outset rgba(154, 205, 50, 0.8);
    border-radius: 5px;
    height: 100%;   /* image will fill height of the container */
    object-fit: cover; /* prevents image from skewing on larger screen sizes */

}

/* prevents image from shrinking too small when responsive */
.intro-container img {
    min-width: 400px;
}

/* main header in home page container */
.intro-container h1 {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
    font-size: 28px;
    font-weight: bold;
    color: darkgreen;
}

/* additional headers in home page container */
.intro-container h2 {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 24px;
}

.intro-container h3 {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 18px;
    color: darkgreen;
}

/* home page buttons */

.home-buttons {
    display: flex;
    gap: 20px;
}

.home-buttons a, .home-buttons button {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 18px;
    width: 10em;
    height: 5ex;
    background-color: #04AA6D;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
}

.home-buttons a, .home-buttons button:hover {
    background-color: goldenrod;
}

/* about page */
/* about section/ keeps h2 out of container */
.seperate {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
    font-size: 24px;
    color: darkgoldenrod;
    text-align: center;
    margin: 60px;
}

.about-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

#greenhouse-img {
    max-width: 100%;
    border: 2px outset rgba(154, 205, 50, 0.8);
    border-radius: 5px;
    height: 100%;   /* image will fill height of the container */
    object-fit: cover; /* prevents image from skewing on larger screen sizes */
}

.plant-intro h4 {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
    font-size: 24px;
    color: darkgoldenrod;
    text-align: center;
    padding: 50px;
    line-height: 2;
    text-shadow: 1px 1px white;
}

.green-spaced-text {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
    color: darkgreen;
    font-size: 18px;
    text-align: center;
    margin: 50px;
    line-height: 2;
}

/* /* sizing image on about page */
#about-plants {
    height: 400px;
    width: 575px;
    border: 2px outset rgba(154, 205, 50, 0.8);
    border-radius: 5px;
    height: 100%;   /* image will fill height of the container */
    object-fit: cover; /* prevents image from skewing on larger screen sizes */
}

.plant-intro h1 {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
    font-size: 28px;
    font-weight: bold;
    color: darkgreen;
}

/* green text */
.green {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
    font-size: 28px;
    font-weight: bold;
    color: darkgreen;
    text-align: center;
    margin-top: 75px;
}

/* plants page */
#plants-plant {
    border: 2px outset rgba(154, 205, 50, 0.8);
    border-radius: 5px;
    height: 500px;
    width: 600px;
}

.plants-txt-container {
    display: flex;
    padding: 10px;
    justify-content: space-evenly;
    flex-grow: 1;
    flex-direction: column; /* Stack text vertically by default */
}

.plants-txt {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
    color: darkgreen;
    font-size: 14px;
    text-align: center;
    line-height: 1.7;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
    margin: 5px 25px;
}

/* stat boxes */
.stat-box {
    display: flex;
    align-items: center;
    padding: 50px;
    font-size: 26px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.stat-box button {
    width: 3em;
    height: 1.5ex;
    border-radius: 10px;
    background-color: #04AA6D;
    cursor: pointer;
    padding: 10px 20px;
}

.stat-box button:hover {
    background-color: goldenrod;
}

/* partners section */
.partners-container {
    display: flex;
    flex-wrap: wrap;
    border: 2px solid darkgreen;
    justify-content: center;    /* Centers items horizontally */
    gap: 1rem;                  /* Adds space between items */
    margin: auto;          /* Centers the gallery on the page */
    max-width: 1400px;
    background-color: rgba(127, 155, 72, 0.7);
    margin-bottom: 40px;
}

.partner-text {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
    text-align: center;
    margin-top: 100px;
    color: darkgreen;
    font-size: 24px;
    padding: 40px;
}

/* Each image wrapper */
.partner {
    flex: 1 1 180px;
  
    /*
      flex: 1 1 300px;
  
      - flex-grow: 1
        → Allows the item to grow and take up extra space 
          (in proportion to other items with flex-grow set)
  
      - flex-shrink: 1
        → Allows the item to shrink if there's not enough space
  
      - flex-basis: 300px
        → This is the "starting" width the item will try to be before growing/shrinking
  
      This combo means: 
      "Try to be 300px wide, but shrink or grow if needed to fit the row."
    */
  
    justify-content: space-evenly;
  }
  
  /* Makes the image fill its container */
.partner img {
    display: block;            /* Removes space under image */
    border-radius: 8px;        /* Optional: rounded corners */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: auto; /* centers in container */
  }
  
  /* Simple hover effect */
  .partner img:hover {
    transform: scale(1.05);    /* Grows the image slightly on hover */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Adds depth */
  }

/* plants page */
  .plants-container {
    display: flex;              /* Enables Flexbox layout */
    flex-wrap: wrap;            /* Allows items to wrap to the next row */
    justify-content: center;    /* Centers items horizontally */
    gap: .5rem;                  /* Adds space between items */
    max-width: 1200px;          /* Optional: keeps gallery from stretching too wide */
    margin: auto;          /* Centers the gallery on the page */
  }

  .plant {
    flex: 1 1 300px;

  /*
    flex: 1 1 300px;

    - flex-grow: 1
      → Allows the item to grow and take up extra space 
        (in proportion to other items with flex-grow set)

    - flex-shrink: 1
      → Allows the item to shrink if there's not enough space

    - flex-basis: 300px
      → This is the "starting" width the item will try to be before growing/shrinking

    This combo means: 
    "Try to be 300px wide, but shrink or grow if needed to fit the row."
  */

    max-width: 300px;          /* Prevents items from growing wider than 300px */
  }

.plant img {
    max-width: 100%; /* Override fixed height for responsiveness */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove unwanted spacing */
}

  /* footer */
  .footer-container {
    display: flex;
    background-color:  rgba(218, 165, 32, 0.5);
    justify-content: space-evenly;
    clear: both; /* Ensure footer stays below all content */
  }

  .footer-info {
    display: flex;
    flex-wrap: wrap;
    max-width: 500px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
    font-size: 14px;
    margin-top: 20px;
  }


    /* links in footer */
    h4 a {
        font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
        color: darkgreen;
        text-decoration: none;
    }

    h4 a:hover {
        color: darkgoldenrod;
        transform: scale(1.5);    /* Grows the text slightly on hover */
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Adds depth */
    }

    /* grey color background */
  .colored-section {
    background-color:  rgba(211, 211, 211, 0.5);
    min-height: 550px;
    max-width: 100%;
    height: auto; /* Allow height to adjust to content */
  }

/* adjustments for laptop screens */
@media (max-width: 1024px) {
    .intro-container h2 {
        font-size: 18px;
        margin-left: 15px;
    }

    .plant-intro h1 {
        text-align: center;
        margin-top: 15px;
    }

    .intro-container h3 {
        margin-left: 15px;
    }

    .home-buttons {
        margin-left: 30px;
    }

}

/* styles for screens smaller than 950px */
@media (max-width: 950px) {
    .intro-container {
        flex-direction: column-reverse; /* image is displayed on top of text */
    }

    .nav-links {
    justify-content: center;
    }


    header {
        justify-content: center; /*  centers nav menu  */
        gap: 2rem;
    }    

    .intro-container {
        text-align: center; /* centers text in container */
    }

    .plant-intro {
        align-items: center; /* centers items in container */
    }
}

@media (max-width: 768px) {

    .about-container {
        gap: 5px;
    }
}

/* 725px screen size */
@media (max-width: 725px) {
    .about-container {
        flex-direction: column;
        align-items: center;
    }

    .stat-box button {
        padding: 10px 20px;
    }

    .seperate {
        font-size: 18px;
    }

    .footer-info {
        justify-content: space-around;
    }
}


/* styles for screens smaller than 480px */
@media (max-width: 480px) {
    .about-container {
        flex-direction: column; /* switches from a row to a column */
        align-items: center; /* centers content in container */
        gap: 0; /* removes space between stats */
    }

    .seperate {
        font-size: 18px;
    }

    .nav-links {
        flex-direction: column;
        align-content: center;
        text-align: center;
    }

    .intro-container {
        text-align: center; /* aligns text in intro section */
    }

    .plant-intro {
        align-items: center; /* aligns text in container */
    }

   /* Gallery Fix */
   .colored-section { /* .plants-container */
        height: auto; /* Remove fixed height */
        display: flex;
        flex-direction: column; /* Single column for images */
        align-items: center;
        padding: 20px;
        min-height: auto; /* Override desktop min-height */
    }

    .plant {
        max-width: 100%; /* Full width on mobile */
        margin-bottom: 15px; /* Space between images */
    }

    .plant img {
        max-width: 100%; /* Scale images to fit */
        height: auto; /* Maintain aspect ratio */
        display: block;
    }

    #about-plants {
        max-width: 100%;
        margin: auto;
    }

    .stat-box {
        padding: 25px; /* eliminates space between stats */
        font-size: 22px;
    }

    .partners-container {
        gap: .25rem; /* eliminates space after partners container */
        margin: 45px; /* switches images to one column */
    }

    .home-buttons {
        flex-direction: column; /* changes buttons from row to column */
    }

    .partner-text {
        margin-top: 25px; /* eliminates space between stats and partners sections */
    }

    .seperate {
        margin-top: 40px; /* adds space underneath buttons */
    }

    .green-spaced-text h3 {
        font-size: 18px;
    }

    .plant-intro h4 {
        font-size: 18px; /* photo caption */
        padding: 20px; /* space around photo caption */
    }

    div h3 {
        display:none; /* eliminates some text boxes */
    }

    .green {
        margin-top: 50px; /* removes extra space */
        font-size: 24px; 
    }

    .plant-intro h1 {
        font-size: 22px; /* main heading */
    }

    .plant-intro h2 { /* intro */
        font-size: 18px;
        padding: 5px;
        font-size: 18px;
    }

    .plant-intro { /* space between */
        gap: 15px;
    }

    #plants-plant {
        height: 400px; /* resize image top of page */
        width: 350px;
    }

    .plant-intro h1 {
        font-size: 22px;
    }

    .about-container {
        gap: 0px;
    }

    .stat-box {
        font-size: 22px;
    }

    .plants-txt-container {
        display: block; /* Natural flow, no grid */
        padding: 20px;
        text-align: center;
        margin-top: 20px; /* Ensure it stays below images */
    }

    .plants-txt h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .plants-txt {
        padding: 0;
        font-size: 18px;
    }

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

    .footer-container img {
        max-width: 50%;
    }

    header {
        flex-direction: column;
    }

}

@media (max-width: 375px) {

    .intro-container img {
        min-width: 375px;
        margin: -20px;
        margin-top: 5px;
    }

    #foot-logo {
        visibility: hidden;
    }

    .footer-info {
        font-size: 12px;
        gap: 5px;
    }

    .seperate {
        font-size: 18px;
    }
}