.hero{
    background-image: url(../images/home/vvm-hero.webp);

}


:root {
  --green: #4CAF50; /* môžeš upraviť odtieň podľa potreby */
  --text-color: #333;
  --bg-color: #fff;
  --white: #ffffff;
}

h2 {
    margin: 1rem auto;
    text-align: center;
}


/*
----------- offer section -----------
*/


.vvm-offer-container {
    margin: 2rem auto;
    display: flex;
    max-width: 1000px;
    width: 100%;
    gap: 2rem;;
}

.img-container {
    overflow: hidden;
    flex: 2;
}


.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s ease-in-out;
}

.img-container img:hover {
    transform: scale(1.05);
}


.offer-content {
    flex: 2;
    
}

.offer-content p {
    border-left: 5px solid var(--green);
    padding-left: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* Responzivita */
@media (max-width: 768px) {
    .vvm-offer-container {
        flex-direction: column;
    }

    .img-container img {
        width: 100%;
    }
}



/*
------------- wrap section -------------
*/


:root {
  --green: #3a913f;
  --overlay: rgba(58, 145, 63, 0.5);
}

.vvm-why-choose {
  padding: 2rem 1rem;
  text-align: center;
}

.why-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  max-width: 1200px;
  margin: 2rem auto;
}

.why-item {
  position: relative;
  flex: 1 1 calc(25% - 1rem);
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  min-width: 250px;
}

.why-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.why-item h3 {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: #fff;
  font-size: 1.5rem;
  transition: transform 0.4s ease;
  z-index: 2;
}

/* skrytý popis na začiatku */
.why-item p {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  opacity: 0;
  transform: translateY(20px);
  color: #fff;
  z-index: 2;
  transition: opacity 0.4s ease, transform 0.4s ease;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* zelený overlay */
.why-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

/* Hover efekty */
.why-item:hover img {
  transform: scale(1.05);
}

.why-item:hover::before {
  opacity: 1;
}

.why-item:hover h3 {
  transform: translate(-50%, -6rem);
}

.why-item:hover p {
  opacity: 1;
  transform: translateY(0);
}

/* Responsivita */
@media (max-width: 768px) {
  .why-item {
    /* Tablet: 2 stĺpce */
    flex: 1 1 calc(50% - 1rem);
  }
}

@media (max-width: 480px) {
  .why-item {
    /* Mobil: Stále vynucujeme 2 stĺpce */
    flex: 1 1 calc(50% - 0.5rem); 
    
    /* DÔLEŽITÉ: Musíme zrušiť alebo zmenšiť pôvodný limit 250px */
    min-width: 0; 
  }
  
  /* Voliteľné: Zmenšenie medzery na mobiloch, aby sa tam karty lepšie zmestili */
  .why-container {
    gap: 0.5rem;
  }
  
  /* Voliteľné: Úprava písma pre malé karty */
  .why-item h3 {
    font-size: 1.1rem; /* Menšie písmo nadpisu */
    bottom: 0.5rem;
  }
  .why-item:hover h3 {
  transform: translate(-50%, -9rem);
  }
}


/*
----------------- pricing section -----------------
*/

.price {
  background-image: url('../images/vvm/tomatos.webp'); /* nahraď svojím obrázkom */
  background-attachment: fixed; /* parallax efekt */
  background-size: cover;
  background-position: center;
  padding: 6rem 1rem;
  text-align: center;
  color: white;
  position: relative;
}

.price h2 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.price h4 {
    color: #fff;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Ak chceš zlepšiť čitateľnosť cez tmavý overlay */
.price::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4); /* tmavý filter cez obrázok */
  z-index: 1;
}

.price h2,
.price h4 {
  position: relative;
  z-index: 2;
}

#arrow {
  display: block;
  margin: 2rem auto 0 auto; /* hore medzera, auto pre centrovanie */
  width: 40px;              /* zmenši podľa potreby */
  height: auto;
  transition: 0.3s ease-in-out;
  opacity: 0.8;
}

#arrow:hover {
  transform: scale(1.1);
  
}



/*
-------------- partners ---------------
*/

.partners-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

#partners-img {
  width: 60vw;
  max-width: 100%;
  height: auto;
  display: block;
}





/*
---------------- products section ----------------
*/


.vvm-products {
  max-width: 1200px;
  margin: 2rem auto;
}

.vvm-products h2 {
  margin-bottom: 0.1rem;
}

.products-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}

.product {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

}

.product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product h4 {
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 0;
  padding: 1rem;
  padding-top: 2rem;
  width: 100%;

  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;

  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.686) 100%
  );
}


/* Prvý veľký obrázok */
.product.large {
  grid-column: span 2;
  grid-row: span 2;
}

.product.large-height {
  grid-row: span 2;
}

.product.large-width {
  grid-column: span 2;
}

#show-product-list {
    cursor: pointer;
    text-align: center;
    font-size: 1.1rem;
}

#show-product-list:hover {
    color: var(--green);
}

#vvm-produts-p {
    text-align: center;
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

/* Responzívne - na mobile stack pod seba */
@media (max-width: 768px) {
  
  .products-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem; 
  }

  .vvm-products {
    margin: 0 0.5rem;
  }



  /* Veľký obrázok - bude cez celú šírku (2 stĺpce) */
  .product.large {
    grid-column: 1 / -1; /* Roztiahne sa od začiatku po koniec gridu */
  }

  /* Úprava textu pre mobil */
  .product h4 {
    font-size: 0.85rem; /* Menšie písmo pre malé dlaždice */
    padding: 0.4rem;
    line-height: 1.2;
  }

  /* Text na veľkom obrázku môže ostať väčší */
  .product.large h4 {
    font-size: 1.2rem;
    padding: 0.8rem;
  }
}

/* Pre veľmi malé displeje (voliteľné) */
@media (max-width: 360px) {
    .products-container {
        grid-auto-rows: 120px; /* Ešte nižšie dlaždice pre mini displeje */
    }
}

.products-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease, opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

.products-list.open {
  opacity: 1;
  pointer-events: auto;
}
.product-column h4 {
  margin-bottom: 0.5rem;
}

.product-column ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

/* Desktop - 3 rows*/
@media (min-width: 992px) {
  .products-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}


.offer-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.line {
  flex: 1;
  height: 2px;
  background-color: black;
  max-width: 300px;
}

.title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title-block h3 {
  margin: 0;
  font-size: 1.5rem;
}

.title-block img:hover {
  transform: scale(1.3);
}

.title-block img {
  width: 30px;
  height: auto;
  margin-top: 0.5rem;
  transition: 0.3s ease-in-out;
  cursor: pointer;
}



/*
---------------- link to vvm.sk section ----------------
*/

.link-to-vvm-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.link-to-vvm-img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.link-to-vvm-btn {
  display: block;
  width: 100%;
  max-width: 1200px;
  text-align: center;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  background-color: var(--green);
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.link-to-vvm-btn:hover {
  background-color: #2e7332;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(58, 145, 63, 0.4);
}

@media (max-width: 768px) {
  .link-to-vvm-container {
    margin: 1.5rem auto;
    gap: 1rem;
  }

  .link-to-vvm-btn {
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .link-to-vvm-btn {
    padding: 0.75rem 0.85rem;
    font-size: 0.95rem;
  }
}


/*
---------------- contact section ----------------
*/

.contact-section {
    background-color: var(--white);
    padding: 60px 0px 0;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.contact-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto 40px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    text-align: left;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.card-header i {
    font-size: 1.25rem;
    background-color: var(--green);
    color: var(--white);
    padding: 12px;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.card-header i:hover {
    transform: scaleX(-1);
    background-color: var(--white);
    color: var(--green);
    box-shadow: 0 0 0 2px var(--green);
}

.card-header h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
}

.card-body {
    padding-left: 60px;
}

.card-body p {
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0;
}

.card-body strong {
    font-weight: 600;
    color: var(--text-dark);
}

.contact-single {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-single h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--green);
    margin-top: 1rem;
}



.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    max-width: 400px;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-content i {
    font-size: 1.25rem;
}

.toast-success {
    border-left: 4px solid var(--green);
}

.toast-success i {
    color: var(--green);
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-error i {
    color: #ef4444;
}

.toast-content span {
    color: var(--text-dark);
    font-weight: 500;
}

.form-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.form-container h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: var(--text-dark);
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.submit-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: var(--green);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.submit-btn:hover {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn svg {
    width: 20px;
    height: 20px;
}

#map {
    width: 100%;
    margin: 0;
}

#map iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

@media (max-width: 968px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info {
        max-width: 600px;
        margin: 0 auto;
    }

    .info-card {
        text-align: center;
    }

    .card-header {
        justify-content: center;
    }

    .card-body {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .contact-header h2 {
        font-size: 2rem;
    }

    .form-container {
        padding: 30px 24px;
    }

    .form-container h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 40px 15px;
    }

    .contact-header h2 {
        font-size: 1.75rem;
    }

    .contact-subtitle,
    .form-subtitle {
        font-size: 0.9rem;
    }

    .card-header {
        flex-direction: column;
    }

    .toast {
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
    }
}