/* ===== FONTS ===== */

@font-face {
  font-family: "Alegreya Sans";
  font-weight: 400;
  src: url('assets/fonts/alegreyasans-regular-webfont.woff2') format('woff2'),
       url('assets/fonts/alegreyasans-regular-webfont.woff') format('woff');
}

@font-face {
  font-family: "Alegreya Sans";
  font-weight: 500;
  src: url('assets/fonts/alegreyasans-medium-webfont.woff2') format('woff2'),
       url('assets/fonts/alegreyasans-medium-webfont.woff') format('woff');
}

@font-face {
  font-family: "Alegreya Sans";
  font-weight: 700;
  src: url('assets/fonts/alegreyasans-bold-webfont.woff2') format('woff2'),
       url('assets/fonts/alegreyasans-bold-webfont.woff') format('woff');
}

@font-face {
  font-family: "Caudex";
  font-weight: 400;
  src: url('assets/fonts/caudex-regular-webfont.woff2') format('woff2'),
       url('assets/fonts/caudex-regular-webfont.woff') format('woff');
}


/* ===== RESET ===== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

:root { 
  --primary-color: #224333;
  --secondary-color: #128d45;
  --third-color: #e4fff7;
  --background-color: #FDFBF6;
  --white: white;
  --black: #2b2d2b;
  --border: 1px solid var(--secondary-color);
  --shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px,
    rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background-color: var(--primary-color);
}

body {
  font-family: inherit;
  background-color: var(--white);
  color: var(--primary-color);
  line-break: auto;
}

::selection {
  background-color: #bcf587;
}

h1 {
font-family: "Caudex", serif;
font-weight: 400;
font-style: normal;
line-height: 100%;
}

h2 {
font-family: "Alegreya Sans", sans-serif;
font-weight: 600;
font-style: normal;
margin-bottom: 1rem;
text-align: center;
font-size: 2.5rem;
color: var(--primary-color);
}

h3 {
font-family: "Alegreya Sans", sans-serif;
font-weight: 400;
font-style: normal;
color: var(--primary-color);
font-size: 1.8rem;
margin-bottom: .6rem;
font-weight: 600;
}

p {
  font-family: Verdana, Geneva, Tahoma, sans-serif
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}


/* ===== NEW NAVIGATION BAR ===== */


.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
  padding: 1.2rem;
  background-color: var(--background-color);
  color: var(--primary-color);
  position: fixed;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links li a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: var(--secondary-color);
}

.menu {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 17px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: 0.3s ease;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--background-color);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s ease-in-out, opacity 0.4s ease-in-out;
    padding: 1rem;
    z-index: 500;
    height: 100dvh;
  }

  .nav-links.open {
    transform: translateY(0%);
    opacity: 1;
    pointer-events: auto;
    z-index: 500;
  }

  .logo img {
    max-width: 140px;
  }

  .nav-links li a {
    font-size: 3rem;
  }

}

/* Animate Hamburger into X */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ===== BUTTON STYLES ===== */


button {
  border: none;
  background-color: transparent;
  cursor: pointer;
  color: inherit;
}

.btn {
  display: inline-block;
  text-align: center;
  padding: 0.8rem 1.4rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 30px;
transition: background 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border: 2px solid var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
}

.btn-secondary {
  display: inline-flex;
  background-color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  color: var(--white);
  align-items: center;
}

.whatsapp {
  display: inline-flex;
  background-color: #25d366;
  border: 2px solid #25d366;
  color: var(--primary-color);
  align-items: center;
  .btn-icon {
    filter: brightness(1) invert(0);
  }
}

.whatsapp:hover .btn-icon {
  translate: 0 -2px;
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  border: 2px solid var(--white);
}

.icon {
  padding: 0.5rem;
  background-color: var(--primary-color);
  border-radius: 10px;
}

.btn-icon {
  width: 22px;
  height: 20px;
margin-right: .3rem;
  filter: brightness(0) invert(1);
}


/* ===== HERO ===== */


.hero {
  padding-top: 90px;
  background-color: var(--background-color);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;

@media screen and (min-width: 1200px) {
  height: 100vh;  
}

}

.hero-overlay {
    flex: 3 1 400px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background-image: url('images/Esperanza-greens-background.webp');
    background-position: left bottom;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: contain;
@media screen and (max-width: 1200px) {
 background-size: cover;
 background-attachment: scroll;
}
}

.hero-txt {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--primary-color);
    text-align: left;
    max-width: 600px;
    height: 100%;
    justify-content: space-between;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-image {
flex: 4 1 400px;
height: 100%;
max-height: 100dvh;
overflow: clip;
}

.hero-image img {
display: block;
  height: 100%;
  width: 100%;
  object-fit:cover;
  object-position: right bottom;
}

.hero-txt h1 {
  font-size: clamp(3.5rem, 3.0909rem + 1.8182vw, 4.3em);;
  margin-bottom: 1rem;
}

.hero-txt h2 {
  font-size: clamp(1.3125rem, 1.1335rem + 0.7955vw, 1.75rem);
  text-align: left;
  word-spacing: 5px;
  font-weight: 600;
text-transform: uppercase;
}

.hero-txt p {
margin-bottom: 1.3rem;
}

@media (max-width: 700px) {

.contact-head * {
text-align: left;
}

}


/* ===== FOLIAGE SECTION ===== */


section.foliage {
padding: 4rem 2rem;
background-color: var(--background-color);
}

.foliage-grid {
    display: flex;
    max-width: 1300px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1.2rem;
    padding-top: 2rem;
    justify-content: center;
    align-items: flex-start;
}

.foliage-grid figure {
  flex-basis: 300px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  text-align: center;
}

@media (prefers-reduced-motion: no-preference) {

  .foliage-grid > figure {
opacity: .4;
animation: fade-in linear forwards;
animation-timeline: view();
animation-range: entry 100px;
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

}

.foliage-grid img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  height: 300px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.foliage-grid figcaption p {
color: var(--primary-color);
font-size: 1.1rem;
}


/* ===== FORM SECTION ===== */


.contact {
  background: var(--third-color);
  padding: 4rem 2rem;
  text-align: left;
}

.contact-head {
  max-width: 700px;
  text-align: center;
  margin: 0 auto;
  margin-bottom: 3rem;
}

.contact-options {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
}

.direct-contact {
background-color: var(--primary-color);
padding: 2rem;
flex: 1 1 200px;
border-radius: 20px;
h3, p {
  color: var(--white);
}
p {
margin-block: 1rem;
}
}

.form-container {
  margin: 0 auto;
  flex: 2 1 200px;
}

.form-container p {
  margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
}

.contact-form select {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
  background-color: white;
}

/* CHECKBOX SECTION */
.checkbox-section {
  text-align: left;
  margin-bottom: 1.5rem;
      display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
}

.checkbox-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
}

.checkbox-section label {
  display: flex;
  font-size: 1rem;
  cursor: pointer;
  align-items: center;
}

.checkbox-section input[type="checkbox"] {
  margin-right: .5rem;
margin-bottom: 0;
}


/* ===== FOOTER ===== */


footer {
    padding: 3rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--background-color);
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding-block: 2rem;
    justify-content: center;
    align-items: flex-end;
}

.footer-menu li:hover {
  transition: all 0.5s ease;
  color: var(--third-color);
  translate: 0 -0.1rem;
}

footer img {
  filter: brightness(0) invert(1);
}


@media (prefers-reduced-motion: no-preference) {

  footer > * {
  scale: .8;
opacity: .4;
animation: fade-in linear forwards;
animation-timeline: view();
animation-range: entry;
}

@keyframes fade-in {
  to {
    scale: 1;
    opacity: 1;
  }
}

}













