@import url("https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Playwrite+NZ+Basic+Guides&family=Playwrite+NZ+Basic:wght@100..400&display=swap");

:root {
  --special-color: #ff9900;
  background-color: rgb(129, 94, 7);
}

body {
  box-sizing: border-box;
  width: 99vw;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: full;
  height: auto;
  padding: 20px;
  /* border: 1px solid black; */
}
p {
  line-height: 1.6; /* Sets line spacing to 1.6 times the font size */
}
.primary-font {
  font-family: "Playwrite NZ Basic", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-size: 3rem;
}
.secondary-font {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 1.1rem;
  color: #f8e3f6;
}

.logo {
  width: 110px; /* Set your desired width */
  height: auto; /* Automatically adjusts to prevent distortion */
}

.navbar {
  position: fixed; /* helps keep the navbar stick to top*/
  top: 0; /* helps keep the navbar stick to top*/
  z-index: 999; /* Keeps navbar above other content */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: nowrap;
  background: rgb(216, 167, 44); /* Optional background */
  border-radius: 5px;
  margin: 10px auto;
  box-shadow: 5px 5px 10px 3px rgba(0, 0, 0, 0.2); /* h v blur spread color */
}

.hero {
  width: 100%;
  padding-top: 10px;
  display: flex;
  align-items: self-end;
  justify-content: baseline;
  flex-wrap: wrap;
}

.bottom-text {
  justify-content: flex-end; /* Pushes content to the bottom */
}

.special-color {
  color: #ffc1f9;
}

.horizontal-menu {
  display: flex; /* Aligns items in a row */
  list-style: none; /* Removes bullet points */
  padding: 0; /* Removes default padding */
  margin: 0; /* Removes default margin */
}
.vertical-menu {
  display: flex; /* Aligns items in a col */
  flex-direction: column;
  list-style: none; /* Removes bullet points */
  padding: 0; /* Removes default padding */
  margin: 0; /* Removes default margin */
}
.vertical-menu a {
  /* Styles the links as blocks to fill the width */
  display: block;
  padding: 5px 5px; /* Adds padding inside each menu item */
  background-color: #010b3d8f;
  color: var(--special-color);
  text-decoration: none; /* Removes default underline */
  border-radius: 4px;
}

.vertical-menu a:hover {
  background-color: #ffffff;
}
.horizontal-menu li {
  padding: 10px 10px; /* Adds spacing around menu items */
}

.vertical-menu li {
  padding: 3px 3px; /* Adds spacing around menu items */
  max-width: 200px;
}

.horizontal-menu a {
  color: rgb(42, 43, 29);
  text-decoration: none; /* Removes underlines */
  font-size: 1.1rem;
  font-weight: 600;
}

.horizontal-menu a:hover {
  color: rgb(243, 194, 232);
}

.banner {
  margin: 10px auto;
  display: grid;
  max-width: 90%;
  grid-template-columns: 1fr 1fr; /* Two equal columns */
  justify-items: flex-end;
  align-items: center;
  gap: 40px;
}

.banner-image {
  width: 40vw;
  display: inline-block;
}

.plants {
  width: 80vw;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  padding: 20px;
}

.card {
  background-color: rgb(216, 174, 35);
  margin: 5px;
  padding: 10px;
  border-radius: 10px;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.1),
    0 6px 20px rgba(0, 0, 0, 0.1);
}
.card img {
  /* Essential image styles */
  width: 290px; /* Image takes the full width of the card container */
  height: 300px; /* Example fixed height for uniform cards */
  object-fit: cover; /* Crops the image to cover the area while maintaining aspect ratio */

  /* Optional: Round the top corners of the image to match the card */
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

button {
  display: inline-block; /* Allows padding and margin, and keeps it inline */
  padding: 10px 10px; /* Space between text and border (top/bottom, left/right) */
  text-align: center; /* Center the text */
  text-decoration: none; /* Remove underlines from <a> tags */

  /* Color and background */
  background-color: var(--special-color);
  color: white; /* White text color */

  /* Font and appearance */
  font-size: 16px; /* Increase font size */
  cursor: pointer; /* Change mouse cursor to a hand on hover */
  border: none; /* Remove default border */
  border-radius: 8px; /* Rounded corners */
  transition: background-color 0.3s; /* Smooth transition for hover effect */
}

button:hover {
  /* Hover effect: changes background color when the user hovers over the button */

  background-color: #f8b6da; /* A different color on hover */
}

.news-letter-container {
  position: relative; /* Essential for positioning the pseudo-element */
  width: 100%;
  height: 600px;
  color: rgb(184, 137, 36);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.news-letter-container::before {
  content: "";
  background-image: url("../assets/Background.jpg");
  background-size: cover;
  position: absolute;
  /* top: 0;
    left: 0; */
  width: 100%;
  height: 100%;
  opacity: 1; /* Set desired opacity here (0.0 to 1.0) */
  z-index: -1; /* Places the image behind the container's content */
}

footer {
  width: 99%;
  /* position: fixed; */
  bottom: 0;
  z-index: 999;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  background: rgb(218, 176, 25); /* Optional background */
  /* max-width: fit-content; */
  padding: 40px;
  gap: 20px;
  box-shadow: 5px 5px 5px 2px rgba(0, 0, 0, 0.2); /* h v blur spread color */
}

/* for smaller screen */
@media screen and (max-width: 768px) {
  body {
    width: 90%;
    margin: 0 auto;
    padding: auto;
  }
  .horizontal-menu li {
    padding: 5px 5px; /* Adds spacing around menu items */
  }

  .banner {
    width: fit-content;
    display: flex; /* Hide an element on small screens */
    flex-wrap: wrap;
    flex-direction: column-reverse;
    justify-items: baseline;
    align-items: flex-start;
  }
  .banner-image {
    width: 90vw;
  }

  .cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 5px;
  }

  .email-div {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
  }
  footer {
    display: grid;
    position: relative;
    grid-template-columns: 1fr;
    padding: 10px;
    gap: 10px;
  }
}


/* --- Dropdown: Theme-Aligned Styles --- */

/* Button matches your site’s button style but sized for the nav */
.dropbtn {
  display: block;
  width: 100%;
  padding: 8px 10px;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;

  /* Color & background consistent with your design language */
  background-color: var(--special-color);        /* #ff9900 */
  color: #ffffff;                                 /* good contrast on --special-color */
  border: none;
  border-radius: 4px;                             /* matches .vertical-menu a */
  transition: background-color 0.2s ease, transform 0.08s ease;
}

.dropbtn:hover,
.dropbtn:focus-visible {
  background-color: #f8b6da;                      /* you already use this on button:hover */
  outline: none;
}

.dropbtn:active {
  transform: translateY(1px);
}

/* Positioning wrapper */
.dropdown {
  position: relative;
  display: inline-block;
  width: 100%; /* keep it aligned with .vertical-menu li width */
  max-width: 200px; /* matches your .vertical-menu li max width */
}

/* Panel: hidden by default, styled to echo your palette */
.dropdown-content {
  display: none;           /* start hidden; JS toggles .show */
  position: absolute;
  inset: auto 0 0 auto;    /* anchor below the button, left-aligned */
  top: calc(100% + 6px);   /* small offset below button */
  background-color: #6a0a0a; /* your deep maroon */
  color: #f8e3f6;            /* same as .secondary-font color for readability */
  min-width: 220px;          /* a bit wider for content */
  padding: 12px 14px;
  border-radius: 8px;        /* matches card & site curvature */
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.12);

  /* Start state for animation */
  opacity: 0;
  transform: translateY(-6px);
  visibility: hidden;
  transition:
    opacity 140ms ease,
    transform 140ms ease,
    visibility 0s linear 140ms; /* delay visibility toggle so it doesn't trap focus */
}

/* Show state toggled by JS */
.dropdown-content.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition:
    opacity 140ms ease,
    transform 140ms ease,
    visibility 0s; /* visible immediately */
}

.dropdown-content .tos-heading {
  font-family: "Playwrite NZ Basic", serif; 
  font-weight: 600;
  font-size: 0.95rem; 
  margin: 0;
  line-height: 1.4;
  color: #f8e3f6; 
}

.dropdown-content a {
  display: block;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--special-color); 
  background-color: rgba(1, 11, 61, 0.16); 
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-content a:hover,
.dropdown-content a:focus-visible {
  background-color: #ffffff;  
  color: #ff7272;           
  outline: none;
}

.vertical-menu li {
  position: relative; 
}

@media screen and (max-width: 768px) {
  .dropdown {
    max-width: 100%;
  }
  .dropdown-content,
  .dropdown-content.show {
    position: static;   
    width: 100%;
    min-width: 0;
    box-shadow: none;
    margin-top: 8px;
  }
}
