/* GLOBAL RESETS */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* NAVBAR */
.navbar {
  background-color: #DCE0E0 !important;
  height: 40px !important;
  padding: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

/* NAVBAR STYLES */
.navbar-nav .nav-item {
  flex: 1;
  height: 100%;
}

.navbar-nav .nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 100%;
  text-decoration: none;
  color: #000;
  transition: background-color 0.3s ease;
  padding: 0;
  border-radius: 0;
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background-color: #E1C69D;
  font-weight: 800 !important;
}

/* SECTION STYLES */
.section-1 {
  height: calc(100vh - 40px); /* Full viewport height minus navbar */
  margin-top: 40px; /* To avoid content under navbar */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  box-sizing: border-box;
  position: relative;
  padding-top: 4rem;   /* Adjust this as needed */
  padding-bottom: 4rem; /* Adjust this as needed */
}

/* SECTION STYLES */
.section-2 {
    height: calc(100vh - 40px);
    min-height: calc(100vh - 40px);
    display: flex;
    align-items: center;
}





/* CONTAINER */
.custom-container {
  max-width: 1600px;
  width: 100%;
  height: 100%; /* Fill the section minus 5vh top and bottom */
  display: flex;
  flex-direction: row;
  border-radius: 1rem;
  overflow: hidden;
  background-color: #B8BCA3;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.custom-container > .image-half,
.custom-container > .text-half {
    width: 50%;
    height: 100%;
}


/* IMAGE HALF */
.image-half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* TEXT HALF */
.text-half {
    background-color: #DCE0E0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    text-align: center;
}

/* TEXT CONTENT */
.text-content {
    padding: 2rem;
    text-align: left;
}

.text-content p {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.section-title {
    font-family: 'gd-sage', serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-align: left;
    min-height: 5rem;
}

.section-subtitle {
  font-family: 'gd-sage', serif;
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}


/* General Card Styles */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 700px; /* adjust as needed for consistent height */
  border: none;
  border-radius: 5px;
  overflow: hidden;
}

/* Image should take up 60% of the card height */
.card-img-top {
  flex: 0 0 50%;
  width: 100%;
  object-fit: cover;
}

/* Text should take up 40% of the card height */
.card-body {
  flex: 0 0 50%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.card-body p {
  font-size: 0.9rem;
  text-align: left;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.card-header {
  background-color: #A6B4CC;
  border-bottom: none;
}

/* Equal height columns in desktop layout */
.card-row > div {
  display: flex;
}

/* Carousel-specific override if needed */
.carousel-item .card {
  height: 600px; 
} 

.carousel-item .card-body {
  text-align: center;
  justify-content: center;
}



/* Cards (Section 2) */
.section-2 .card-row,
.card-row {
  height: calc(90vh - 100px);
  align-items: stretch;
}

.section-2 .card,
.card {
  height: 100%;
  border: none;
  background-color: inherit;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  color: #2D2D2D;
}

.smaller-text {
  font-size: 0.8rem;
}






.icon-card {
  border-radius: 1rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  color: #2D2D2D;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

.icon-card:hover {
  transform: translateY(-4px);
}

.icon i {
  color: #5C2A3D; /* Matte Plum or adjust to contrast */
}

/* Background colors for each box */
.bg-box-1 { background-color: #B8BCA3; } /* soft olive sage */
.bg-box-2 { background-color: #A6B4CC; } /* muted periwinkle */
.bg-box-3 { background-color: #E1C69D; } /* warm sand */
.bg-box-4 { background-color: #E6CAD5; } /* pale rose */
.bg-box-5 { background-color: #A57A91; } /* mauve plum */

/* Optional: make sure text is readable */
.bg-box-1, .bg-box-2, .bg-box-3, .bg-box-4, .bg-box-5 {
  color: #2D2D2D;
}



.icon-card-2 {
  position: relative;
  color: black;
  padding: 2rem;
  border-radius: 0.75rem;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
}

.icon-card-2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6); /* light overlay */
  z-index: 1;
}

.icon-card-2 h5 {
    font-size: 1.6rem;
    /* font-family: 'gd-sage', serif;
    font-weight: bold; */
}


.icon-card-2 h5,
.icon-card-2 p {
  z-index: 2;
  position: relative;
}


.bg-box-img-1 {
  background: url("../images/wine-barrell.jpg") center center / cover no-repeat;
}

.bg-box-img-2 {
  background: url("../static/images/collect-2.jpg") center center / cover no-repeat;
}

.bg-box-img-3 {
  background: url("../static/images/collect-3.jpg") center center / cover no-repeat;
}

.bg-box-img-4 {
  background: url("../static/images/collect-4.jpg") center center / cover no-repeat;
}

.bg-box-img-5 {
  background: url("../static/images/collect-5.jpg") center center / cover no-repeat;
}




@media (max-width: 768px) {
    .custom-container {
        width: 90%;
        flex-direction: column;
    }

    .custom-container > .image-half,
    .custom-container > .text-half {
        width: 100%;
        height: 50%;
    }

    .section-title {
        font-size: 2.6rem;
    }

    .section-subtitle {
        font-size: 2rem;
    }    

    .text-content p {
        font-size: 1rem;
    }

    .card-body p  {
        font-size: 0.8rem;
    }

    .card {
        min-height: 500px;
    }


    /* .carousel-item .card {
        height: 90%;
    } */

}


@media (max-width: 480px) {
    .custom-container {
        width: 90%;
        flex-direction: column;
    }

    .custom-container > .image-half,
    .custom-container > .text-half {
        width: 100%;
        height: 50%;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.6rem;
    }    

    .text-content p {
        font-size: 0.8rem;
    }

    .card-body p  {
        font-size: 0.7rem;
    }

    .card {
        min-height: 450px;
    }

}

    /* .carousel-item .card {
        height: 90%;
    } */



















.scroll-up {
  position: fixed;
  top: 3.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  background: #2D2D2D;
  border-radius: 5%;
  padding: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}
.scroll-up.visible {
  opacity: 1;
  pointer-events: auto;
}



.scroll-down {
  position: fixed;
  bottom: 3.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  background: #2D2D2D;
  border-radius: 5%;
  padding: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: opacity 0.3s ease;
  opacity: 1;
  pointer-events: auto;
}
.scroll-down.hidden {
  opacity: 0;
  pointer-events: none;
}



