/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*===== VARIABLES CSS =====*/
:root {
  --header-height: 3rem;

  /*========== Colors ==========*/
  --first-color: #069C54;
  --first-color-alt: #048654;
  --title-color: #393939;
  --text-color: #707070;
  --text-color-light: #A6A6A6;
  --body-color: #FBFEFD;
  --container-color: #FFFFFF;

  /*========== Font and typography ==========*/
  --body-font: 'Poppins', sans-serif;
  --biggest-font-size: 2.25rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== Margenes ==========*/
  --mb-1: .5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (min-width: 768px) {
  :root {
    --biggest-font-size: 4rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*========== BASE ==========*/
*,
::before,
::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/*========== Variables Dark theme ==========*/
body.dark-theme {
  --title-color: #F1F3F2;
  --text-color: #C7D1CC;
  --body-color: #1D2521;
  --container-color: #27302C;
}

/*========== Button Dark/Light ==========*/
.change-theme {
  position: absolute;
  right: 1rem;
  top: 1.8rem;
  color: var(--text-color);
  font-size: 1rem;
  cursor: pointer;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*========== CLASS CSS ==========*/
.section {
  padding: 2rem 0 2rem;
}

.section-title,
.section-subtitle {
  text-align: center;
}

.section-title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-3);
}

.section-subtitle {
  display: block;
  color: var(--first-color);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-1);
}

/*========== LAYOUT ==========*/
.bd-container {
  max-width: 960px;
  width: calc(100% - 2rem);
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}

.bd-grid {
  display: grid;
  gap: 1.5rem;
}

.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--body-color);
}

/*========== NAV ==========*/
.nav {
  max-width: 1024px;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    padding: 1.5rem 0 1rem;
    text-align: center;
    background-color: var(--body-color);
    transition: .4s;
    box-shadow: 0 4px 4px rgba(0, 0, 0, .1);
    border-radius: 0 0 1rem 1rem;
    z-index: var(--z-fixed);
  }
}

.nav__item {
  margin-bottom: var(--mb-2);
}

.nav__link,
.nav__logo,
.nav__toggle {
  color: var(--text-color);
  font-weight: var(--font-medium);
}

.nav__logo:hover {
  color: var(--first-color);
}

.nav__link {
  transition: .3s;
}

.nav__link:hover {
  color: var(--first-color);
}

.nav__toggle {
  font-size: 1.3rem;
  cursor: pointer;
}

/* Show menu */
.show-menu {
  top: var(--header-height);
}

/* Active menu */
.active-link {
  color: var(--first-color);
}

/* Change background header */
.scroll-header {
  box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

/* Scroll top */
.scrolltop {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: .3rem;
  background: rgba(6, 156, 84, .5);
  border-radius: .4rem;
  z-index: var(--z-tooltip);
  transition: .4s;
  visibility: hidden;
}

.scrolltop:hover {
  background-color: var(--first-color-alt);
}

.scrolltop__icon {
  font-size: 1.8rem;
  color: var(--body-color);
}

/* Show scrolltop */
.show-scroll {
  visibility: visible;
  bottom: 1.5rem;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  /* Position it directly below the parent */
  left: 0;
  background-color: white;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  min-width: 160px;
  z-index: 10;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  display: block;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: #198754;
}

/* Responsive Dropdown for Mobile */
@media screen and (max-width: 768px) {
  .dropdown-menu {
    position: static;
    background-color: transparent;
    box-shadow: none;
  }

  .dropdown-item {
    padding: 10px 20px;
    background-color: transparent;
    color: #ffffff;
  }

  .dropdown-item:hover {
    background-color: #198754;
  }
}

/*========== HOME ==========*/
.home__container {
  height: calc(100vh - var(--header-height));
  align-content: center;
}

.home__title {
  font-size: var(--biggest-font-size);
  color: var(--first-color);
  margin-bottom: var(--mb-1);
}

.home__subtitle {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-4);
}

.home__img {
  width: 300px;
  justify-self: center;
}

/*========== BUTTONS ==========*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #FFF;
  padding: .75rem 1rem;
  border-radius: .5rem;
  transition: .3s;
}

.button:hover {
  background-color: var(--first-color-alt);
}

/*========== ABOUT ==========*/
.about__data {
  text-align: center;
}

.about__description {
  margin-bottom: var(--mb-3);
}

.about__descriptions {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}

.about__img {
  width: 100%;
  max-width: 450px;
  /* Pwede mong taasan ito kung gusto mo pang mas malaki */
  aspect-ratio: 16 / 9;
  border-radius: .5rem;
  object-fit: cover;
  justify-self: center;
}


/*========== SERVICES ==========*/
.services__container {
  row-gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.services__content {
  text-align: center;
}

.services__img {
  width: 64px;
  height: 64px;
  fill: var(--first-color);
  margin-bottom: var(--mb-2);
  border-radius: 50% !important;
  /* Para sigurado */
  object-fit: cover !important;
  /* Para sure na sakto */
  border: 2px solid #198754 !important;
  /* Green border */
}

.services__title {
  font-size: var(--h3-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-1);
}

.services__description {
  padding: 0 1.5rem;
}

.buttongroup {
  margin-top: 3rem;
  text-align: center;
}

.buttongroup {
  margin-top: 3rem;
  text-align: center;
}

.buttongroup .btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 5px;
  transition: 0.3s;
}

.buttongroup .btn:hover {
  background-color: #218838;
  color: #fff;
}

@media (max-width: 768px) {
  .buttongroup {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .buttongroup .btn {
    width: auto;
    margin: 0 auto;
  }
}

/*========== BLOGS ==========*/
.blogs__container {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, 1fr);
  /* Tig-tatlo sa desktop */
  margin-top: 2rem;
}

@media (max-width: 992px) {
  .blogs__container {
    grid-template-columns: repeat(2, 1fr);
    /* Tig-dalawa sa tablet */
  }
}

@media (max-width: 576px) {
  .blogs__container {
    grid-template-columns: 1fr;
    /* Isa-isa sa mobile */
  }
}

.blog__content {
  background-color: #f5f5f5;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.blog__content:hover {
  transform: translateY(-5px);
}

.blog__img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.blog__title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #198754;
}

.blog__description {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #555;
}

.blog__link {
  text-decoration: none;
  color: #198754;
  font-weight: bold;
  transition: color 0.3s ease;
}

.blog__link:hover {
  color: #14532d;
}

/*========== GROUPS ==========*/
.groups__container {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 2rem;
}

.group__content {
  background-color: #f5f5f5;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.group__content:hover {
  transform: translateY(-5px);
}

.group__img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 3px solid #198754;
  box-shadow: 0 4px 6px rgba(25, 135, 84, 0.3);
}

.group__title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.group__description {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #555;
  flex-grow: 1;
}

.group__button {
  text-decoration: none;
  background-color: #198754;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.group__button:hover {
  background-color: #14532d;
}

@media (max-width: 768px) {
  .groups__container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/*========== MENU ==========*/
.menu__container {
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
}

.menu__content {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--container-color);
  border-radius: .5rem;
  box-shadow: 0 2px 4px rgba(3, 74, 40, .15);
  padding: .55rem;
}

.menu__img {
  width: 100% !important;
  /* Para sumakop sa buong width ng container */
  height: 200px !important;
  /* Para mas mataas */
  align-self: center;
  margin-bottom: var(--mb-2);
  object-fit: cover !important;
  border-radius: 10px !important;
}

.menu__name,
.menu__preci {
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.menu__name {
  font-size: var(--normal-font-size);
}

.menu__detail,
.menu__preci {
  font-size: var(--small-font-size);
}

.menu__detail {
  margin-bottom: var(--mb-1);
}

.menu__button {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  padding: .625rem .813rem;
  border-radius: .5rem 0 .5rem 0;
}

.features-section{
  background-color: var(--container-color);
  box-shadow: 0 2px 4px rgba(3, 74, 40, .15);
}

.filter-bar{
  background-color: var(--container-color);
  box-shadow: 0 2px 4px rgba(3, 74, 40, .15);
}

.category-buttons button {
  margin: 2px;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .filter-bar {
      flex-direction: column;
      align-items: stretch;
  }

  .filter-bar input,
  .filter-bar select {
      width: 100%;
      margin-bottom: 5px;
  }

  .filter-bar .d-flex {
      flex-wrap: wrap;
  }
}


/*========== CATALOUGE ==========*/
.catalog {
  padding: 2rem 0;
}

.catalog__container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.catalog__text {
  flex: 1;
}

.catalog__video {
  width: 100%;
  max-width: 560px;
  /* Adjust as needed */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  /* Optional: Rounded corners */
}

.catalog__video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.catalog__description {
  margin: 1rem 0;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .catalog__container {
    flex-direction: column;
    align-items: center;
  }

  .catalog__video {
    width: 100%;
  }
}

/*========== FOOD SOLUTION ==========*/
.food-solution__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.food-solution__data {
  flex: 1;
  min-width: 300px;
}

.food-solution__img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  flex: 1;
  min-width: 280px;
}

@media screen and (max-width: 768px) {
  .food-solution__container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .food-solution__img {
    margin-top: 1.5rem;
  }
}

/*========== APP ==========*/
.app__data {
  text-align: center;
}

.app__description {
  margin-bottom: var(--mb-5);
}

.app__stores {
  margin-bottom: var(--mb-4);
}

.app__store {
  width: 120px;
  margin: 0 var(--mb-1);
}

.app__img {
  width: 230px;
  justify-self: center;
}

/*========== CONTACT ==========*/
.contact__container {
  text-align: center;
}

.contact__description {
  margin-bottom: var(--mb-3);
}

.contact__button .btn-success {
  width: 100%;
  padding: 12px;
  font-size: 18px;
}

.modal-content {
  border-radius: 8px;
}

.modal-title i,
h4 i,
label i {
  color: #333;
  margin-right: 8px;
}

.btn-success {
  float: right;
}

.form-label {
  color: #333;
  font-weight: bold;
}

/* New CSS for modal fonts */
.modal-content,
.modal-title,
.modal-body,
.modal-header,
.modal-body p,
.modal-body h4,
.modal-body label,
.modal-body input,
.modal-body textarea {
  color: #333;
}

iframe {
  width: 100%;
  height: 310px;
  border: none;
  border-radius: 5px;
}

/*========== FOOTER ==========*/
.footer__container {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  row-gap: 2rem;
}

.footer__logo {
  font-size: var(--h3-font-size);
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
}

.footer__description {
  display: block;
  font-size: var(--small-font-size);
  margin: .25rem 0 var(--mb-3);
}

.footer__social {
  font-size: 1.5rem;
  color: var(--title-color);
  margin-right: var(--mb-2);
}

.footer__title {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-2);
}

.footer__link {
  display: inline-block;
  color: var(--text-color);
  margin-bottom: var(--mb-1);
}

.footer__link:hover {
  color: var(--first-color);
}

.footer__copy {
  text-align: center;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  margin-top: 3.5rem;
}

/*========== MEDIA QUERIES ==========*/
@media screen and (min-width: 576px) {

  .home__container,
  .about__container,
  .app__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .about__data,
  .about__initial,
  .app__data,
  .app__initial,
  .contact__container,
  .contact__initial {
    text-align: initial;
  }

  .about__img,
  .app__img {
    width: 380px;
    order: -1;
  }

  .contact__container {
    grid-template-columns: 1.75fr 1fr;
    align-items: center;
  }

  .contact__button {
    justify-self: center;
  }
}

@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }

  /* .section {
    padding-top: 3rem;
  } */

  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }

  .nav__list {
    display: flex;
  }

  .nav__item {
    margin-left: var(--mb-5);
    margin-bottom: 0;
  }

  .nav__toggle {
    display: none;
  }

  .change-theme {
    position: initial;
    margin-left: var(--mb-2);
  }

  .home__container {
    height: 85vh;
    justify-items: center;
  }

  .services__container,
  .menu__container {
    margin-top: var(--mb-6);
  }

  .menu__container {
    grid-template-columns: repeat(4, 210px);
    column-gap: 3rem;
  }

  .menu__content {
    padding: 1.5rem;
  }

  .menu__img {
    width: 130px;
  }

  .app__store {
    margin: 0 var(--mb-1) 0 0;
  }
}

@media screen and (min-width: 960px) {
  .bd-container {
    margin-left: auto;
    margin-right: auto;
  }

  .home__img {
    width: 500px;
  }

  .about__container,
  .app__container {
    column-gap: 7rem;
  }
}

/* For tall screens on mobiles y desktop*/
@media screen and (min-height: 721px) {
  .home__container {
    height: 640px;
  }
}

@media (max-width: 768px) {
  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #27302C;
    display: none;
    box-shadow: 0px 4px 6px rgba(27, 112, 66, 0.1);
  }

  .nav__menu.active {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    padding: 10px 0;
  }

  .nav__item {
    text-align: center;
    padding: 10px 0;
  }

  .nav__toggle {
    display: block;
  }
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  /* Espasyo sa pagitan ng logo at text */
  text-decoration: none;
  color: inherit;
  /* Para di magbago ang kulay */
}

.nav__logo-img {
  width: 40px;
  /* Palitan mo kung gusto mong mas malaki/maliit */
  height: auto;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  /* Adjust kung gusto mong mas malaki o mas maliit */
  margin: 0 auto;
}

.video-container::before {
  content: "";
  display: block;
  padding-top: 56.25%;
  /* 16:9 Aspect Ratio */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  /* Optional: Para sa rounded corners */
}