/* ==========================================================================
   VerdaCrop Agrisciences — Responsive Layer
   Breakpoints follow Bootstrap 5: xxl 1400 / xl 1200 / lg 992 / md 768 / sm 576
   ========================================================================== */

@media (max-width: 1399.98px) {
  :root { --vc-section-y: 96px; }
  .vc-hero { height: 84vh; }
}

@media (max-width: 1199.98px) {
  .vc-nav__link { padding: 24px 11px; font-size: .9rem; }
  .vc-cta { padding: 44px 36px; }
  .vc-badge-years { right: 8px; }
}

@media (max-width: 991.98px) {
  :root { --vc-section-y: 78px; }

  .vc-hero { height: auto; min-height: 0; padding: 118px 0 96px; }
  .vc-hero__slide { position: relative; display: none; }
  .vc-hero__slide.is-active { display: flex; }
  .vc-hero__ctrl { display: none; }
  .vc-hero__text { max-width: 100%; }

  .vc-banner { padding: 96px 0 78px; }
  .vc-about__media { margin-bottom: 46px; }
  .vc-about__media::after { display: none; }
  .vc-form-card { padding: 30px; }
  .vc-cta { text-align: center; }
  .vc-cta::after { display: none; }
  .vc-detail-media { padding: 30px; }
  .vc-footer { padding-top: 64px; }
  .vc-footer__bottom { margin-top: 46px; text-align: center; }
}

@media (max-width: 767.98px) {
  :root { --vc-section-y: 64px; }

  body { font-size: .97rem; }
  .vc-topbar { text-align: center; }
  .vc-brand img { width: 40px; }
  .vc-brand__name { font-size: 1.05rem; }

  .vc-hero { padding: 96px 0 78px; }
  .vc-hero__dots { bottom: 22px; }
  .vc-hero .btn-vc, .vc-hero .btn-vc-outline { width: 100%; }

  .vc-counter__num { font-size: 2.1rem; }
  .vc-gcard { height: 230px; }
  .vc-testi { padding: 26px; }
  .vc-cta { padding: 34px 22px; }
  .vc-form-card { padding: 24px; }
  .vc-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

@media (max-width: 575.98px) {
  :root { --vc-section-y: 54px; }

  .vc-heading { font-size: 1.7rem; }
  .vc-hero__title { font-size: 2rem; }
  .vc-hero__badge { font-size: .68rem; padding: 6px 14px; }
  .vc-cat { padding: 26px 16px; }
  .vc-cat__icon { width: 64px; height: 64px; font-size: 1.6rem; }
  .vc-product__media { min-height: 200px; }
  .vc-product__media img { max-height: 156px; }
  .vc-filter button { padding: 8px 16px; font-size: .82rem; }
  .vc-detail-media { padding: 22px; }
  .btn-vc, .btn-vc-gold, .btn-vc-outline, .btn-vc-ghost { padding: 12px 24px; font-size: .9rem; }
}


/* ==========================================================================
   GH Crop Protection — Extended Responsive Fixes
   Covers small phones, tablets, laptops, large desktops and touch devices.
   ========================================================================== */

/* Global overflow and media safety */
html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

.container,
.container-fluid {
  width: 100%;
}

/* Keep long content from breaking layouts */
h1, h2, h3, h4, h5, h6,
p, a, li, td, th, .btn {
  overflow-wrap: anywhere;
}

/* Header */
.vc-header {
  width: 100%;
}

.vc-brand {
  flex: 0 0 auto;
  width: 130px;
}

.vc-brand img {
  display: block;
  width: 130px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.vc-header > .container > .d-flex {
  min-height: 76px;
}

.vc-burger {
  flex: 0 0 auto;
}

/* Touch-friendly controls */
button,
.btn,
.vc-nav__link,
.vc-drawer__link {
  -webkit-tap-highlight-color: transparent;
}

/* Hero content should never touch viewport edges */
.vc-hero .container,
.vc-banner .container {
  position: relative;
  z-index: 2;
}

.vc-hero__title,
.vc-banner h1 {
  max-width: 100%;
  word-break: normal;
  overflow-wrap: anywhere;
}

.vc-hero__text {
  line-height: 1.7;
}

/* Product/detail images */
.vc-product__media img,
.vc-detail-media img,
.vc-thumb img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.vc-detail-media img {
  width: auto;
  max-height: 520px;
}

/* Tables: prevent the whole page from becoming wider than the viewport */
.vc-spec-table {
  width: 100%;
}

.table-responsive {
  -webkit-overflow-scrolling: touch;
}

.vc-spec-table th,
.vc-spec-table td {
  vertical-align: top;
  overflow-wrap: anywhere;
}

/* Forms */
.form-control,
.form-select,
textarea {
  max-width: 100%;
}

textarea.form-control {
  min-height: 130px;
}

/* Gallery/cards */
.vc-gcard img,
.vc-post img {
  max-width: 100%;
}

/* Footer */
.vc-footer .footer-logo {
  width: min(300px, 100%) !important;
  height: auto;
}

/* ---------- Large desktop ---------- */
@media (min-width: 1400px) {
  .vc-header > .container > .d-flex {
    min-height: 82px;
  }

  .vc-hero__text {
    max-width: 600px;
  }
}

/* ---------- Laptop / small desktop ---------- */
@media (max-width: 1199.98px) and (min-width: 992px) {
  .vc-brand,
  .vc-brand img {
    width: 115px;
  }

  .vc-nav {
    gap: 0;
  }

  .vc-nav__link {
    padding-left: 9px;
    padding-right: 9px;
    font-size: .86rem;
  }

  .vc-nav__link::after {
    left: 9px;
    right: 9px;
  }

  .vc-hero {
    min-height: 560px;
  }

  .vc-hero__ctrl--prev {
    left: 14px;
  }

  .vc-hero__ctrl--next {
    right: 14px;
  }
}

/* ---------- Tablet ---------- */
@media (max-width: 991.98px) {
  .vc-header > .container > .d-flex {
    min-height: 70px;
  }

  .vc-brand,
  .vc-brand img {
    width: 125px;
  }

  .vc-hero {
    min-height: 0;
    height: 529px!important;
  }

  .vc-hero__slide.is-active {
    min-height: 620px;
  }

  .vc-hero__inner {
    padding-top: 18px;
    padding-bottom: 38px;
  }

  .vc-hero__title {
    font-size: clamp(2.15rem, 6vw, 3.5rem);
  }

  .vc-banner {
    min-height: 300px;
    display: flex;
    align-items: center;
  }

  .vc-about__media img {
    width: 100%;
  }

  .vc-detail-media {
    width: 100%;
  }

  .vc-form-card {
    width: 100%;
  }

  .vc-footer .row {
    --bs-gutter-y: 2.5rem;
  }

  .vc-footer__bottom .text-md-end {
    text-align: left !important;
  }
}

/* ---------- Phones ---------- */
@media (max-width: 767.98px) {
  .container {
    --bs-gutter-x: 1.5rem;
  }

  .vc-header > .container > .d-flex {
    min-height: 66px;
  }

  .vc-brand,
  .vc-brand img {
    width: 112px;
  }

  .vc-burger {
    width: 44px;
    height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
  }

  .vc-drawer {
    width: min(340px, 88vw);
    padding: 22px 20px 34px;
  }

  .vc-hero {
    padding: 0;
  }

  .vc-hero__slide.is-active {
    min-height: 650px;
    align-items: center;
  }

  .vc-hero__inner {
    padding: 58px 0 70px;
  }

  .vc-hero__badge {
    max-width: 100%;
    line-height: 1.45;
    letter-spacing: .11em;
  }

  .vc-hero__title {
    font-size: clamp(2rem, 10vw, 2.75rem);
    line-height: 1.12;
    margin-top: 18px;
  }

  .vc-hero__text {
    font-size: .98rem;
    line-height: 1.65;
  }

  .vc-hero .d-flex {
    width: 100%;
  }

  .vc-hero .btn-vc,
  .vc-hero .btn-vc-gold,
  .vc-hero .btn-vc-outline {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }

  .vc-hero__dots {
    bottom: 20px;
  }

  .vc-banner {
    min-height: 250px;
    padding: 78px 0 58px;
  }

  .vc-banner h1 {
    font-size: clamp(1.9rem, 8vw, 2.7rem);
  }

  .vc-banner .breadcrumb {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .vc-heading {
    font-size: clamp(1.65rem, 7vw, 2.25rem);
    line-height: 1.2;
  }

  .vc-subheading {
    line-height: 1.65;
  }

  .vc-cat {
    min-height: 100%;
    padding: 24px 14px;
  }

  .vc-cat h5 {
    font-size: 1rem;
  }

  .vc-cat p {
    font-size: .86rem;
  }

  .vc-product__media {
    min-height: 210px;
    padding: 22px 14px;
  }

  .vc-product__media img {
    max-width: 90%;
    max-height: 165px;
  }

  .vc-product__tag {
    top: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    font-size: .62rem;
    padding: 5px 9px;
  }

  .vc-product__body {
    padding: 18px 15px 20px;
  }

  .vc-product__body h5 {
    font-size: 1rem;
  }

  .vc-product__body p {
    font-size: .84rem;
    line-height: 1.55;
  }

  .vc-product__link {
    font-size: .84rem;
  }

  .vc-about__media {
    margin-bottom: 28px;
  }

  .vc-badge-years {
    right: 10px;
    bottom: 10px;
    top: 165px ;
    transform: scale(.85);
    transform-origin: bottom right;
    height: 90px ;
  }

  .vc-cta {
    border-radius: 18px;
  }

  .vc-detail-media {
    padding: 22px 16px;
  }

  .vc-detail-media img {
    max-height: 390px;
    width: 100%;
  }

  .vc-thumb {
    padding: 8px;
  }

  .vc-spec-table th,
  .vc-spec-table td {
    padding: 10px 11px;
    font-size: .86rem;
  }

  .nav-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .nav-tabs .nav-link {
    white-space: nowrap;
    padding: 11px 14px;
  }

  .vc-gcard {
    height: 240px;
  }

  .vc-gcard__caption {
    opacity: 1;
    transform: none;
    bottom: 14px;
  }

  .vc-gcard::after {
    opacity: 1;
  }

  .vc-footer {
    padding-top: 54px;
  }
  .bc-footer{
    width: 134px !important;
        padding: 0px 0 0px 0;
  }

  .vc-footer .footer-logo {
    width: min(250px, 100%) !important;
  }

  .vc-footer__bottom {
    margin-top: 40px;
  }

  .vc-footer__bottom .row > div {
    text-align: center !important;
  }
}

/* ---------- Small phones ---------- */
@media (max-width: 575.98px) {
  .container {
    --bs-gutter-x: 1.25rem;
  }

  .vc-header > .container > .d-flex {
    min-height: 62px;
  }

  .vc-brand,
  .vc-brand img {
    width: 105px;
  }

  .vc-hero__slide.is-active {
    min-height: 620px;
  }

  .vc-hero__inner {
    padding-top: 0px;
    padding-bottom: 60px;
  }

  .vc-hero__title {
    font-size: clamp(1.85rem, 9.5vw, 2.35rem);
  }

  .vc-hero__badge {
    font-size: .62rem;
    padding: 6px 11px;
  }

  .vc-hero__text {
    font-size: .91rem;
  }

  .section,
  .section-tight {
    padding-top: var(--vc-section-y);
    padding-bottom: var(--vc-section-y);
  }

  .row.g-5 {
    --bs-gutter-y: 2.25rem;
  }

  .vc-form-card {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .vc-cta {
    padding: 28px 18px;
  }

  .vc-detail-media {
    padding: 18px 12px;
  }

  .vc-detail-media img {
    max-height: 330px;
  }

  .vc-spec-table {
    min-width: 520px;
  }

  .vc-spec-table th,
  .vc-spec-table td {
    font-size: .8rem;
  }

  .vc-top {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
  }

  .vc-footer .col-6 {
    width: 100%;
  }
}

/* ---------- Very small phones ---------- */
@media (max-width: 380px) {
  .vc-brand,
  .vc-brand img {
    width: 120px !important;
  }

  .vc-hero__slide.is-active {
    min-height: 560px;
  }

  .vc-cat {
    padding-left: 10px;
    padding-right: 10px;
  }

  .vc-cat__icon {
    width: 58px;
    height: 58px;
  }

  .vc-product__media {
    min-height: 190px;
  }
}

/* ---------- Touch / reduced motion ---------- */
@media (hover: none) and (pointer: coarse) {
  .vc-product:hover,
  .vc-cat:hover,
  .vc-gcard:hover img {
    transform: none;
  }

  .vc-product:hover .vc-product__media img {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
