/* =========================================================
   NUTRIONA COMPANY FOR FEEDS AND PACKING TRADING - F.Z.E
   Agri-industrial corporate stylesheet
   Palette derived from company logo (deep forest green)
   ========================================================= */

:root {
  --primary-color: #015433;
  --primary-light: #0a7a4c;
  --secondary-color: #3e7d64;
  --secondary-light: #5e9c83;
  --accent-color: #d4a02a;
  --accent-dark: #b4861c;

  --sand: #f6f4ed;
  --sand-deep: #efece0;
  --ink: #16241d;
  --muted: #5c6b63;
  --line: #e3e0d5;

  --head-font: 'Manrope', system-ui, sans-serif;
  --body-font: 'Karla', system-ui, sans-serif;

  --radius: 4px;
  --shell: 110px;
}

/* ---------- base ---------- */
html, body { overflow-x: hidden; max-width: 100%; }

body {
  font-family: var(--body-font);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--head-font);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

a { text-decoration: none; transition: color .2s ease; }
img { max-width: 100%; }

::selection { background: var(--primary-color); color: #fff; }

.section-padding { padding: var(--shell) 0; }
.bg-light-soft { background: var(--sand); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--head-font);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.section-tag::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--accent-color);
}
.text-center .section-tag::after {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--accent-color);
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  margin-bottom: 20px;
}
.section-title + p { max-width: 720px; }
.text-center .section-title + p { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn-brand,
.btn-brand-secondary,
.btn-brand-outline {
  font-family: var(--head-font);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  border-radius: var(--radius);
  padding: 12px 26px;
  border: 2px solid transparent;
  transition: all .25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-brand {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #1d1503;
}
.btn-brand:hover,
.btn-brand:focus {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}
.btn-brand-secondary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
.btn-brand-secondary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: #fff;
}
.btn-brand-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, .75);
  color: #fff;
}
.btn-brand-outline:hover {
  background: #fff;
  border-color: #fff;
  color: var(--primary-color);
}
.btn-lg { padding: 14px 32px; font-size: 15px; }

/* ---------- top bar ---------- */
.top-bar {
  background: var(--primary-color);
  color: rgba(255, 255, 255, .82);
  font-size: 13.5px;
  padding: 9px 0;
  border-bottom: 3px solid var(--accent-color);
}
.top-bar a { color: rgba(255, 255, 255, .82); }
.top-bar a:hover { color: var(--accent-color); }
.top-bar i { color: var(--accent-color); margin-right: 8px; }

/* ---------- navbar ---------- */
.main-navbar {
  background: #fff;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, padding .25s ease;
  z-index: 1030;
}
.main-navbar.scrolled {
  padding: 9px 0;
  box-shadow: 0 6px 26px rgba(1, 84, 51, .12);
}
.main-navbar .navbar-brand { padding: 0; margin-right: 20px; }
.main-navbar .navbar-brand img { height: 40px; width: auto; display: block; }

.main-navbar .nav-link {
  font-family: var(--head-font);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  padding: 8px 15px !important;
  position: relative;
}
.main-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 0;
  height: 2px;
  background: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active { color: var(--primary-color); }
.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after { transform: scaleX(1); }

.main-navbar .btn-brand { padding: 10px 20px; font-size: 13.5px; }

.navbar-toggler {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 10px;
}
.navbar-toggler:focus { box-shadow: none; }

.nav-products-row { display: flex; align-items: center; justify-content: space-between; }
.mobile-cat-toggle {
  background: transparent;
  border: 0;
  color: var(--primary-color);
  padding: 6px 12px;
  font-size: 15px;
}
.mobile-cat-toggle.open i { transform: rotate(180deg); }
.mobile-cat-toggle i { transition: transform .25s ease; display: inline-block; }

.main-navbar .dropdown-menu {
  border: 0;
  border-top: 3px solid var(--accent-color);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 14px 34px rgba(1, 84, 51, .16);
  padding: 8px 0;
  margin-top: 10px;
  min-width: 250px;
}
.main-navbar .dropdown-item {
  font-family: var(--head-font);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  padding: 10px 20px;
}
.main-navbar .dropdown-item:hover {
  background: var(--sand);
  color: var(--primary-color);
}

/* ---------- hero slider ---------- */
.hero-slider { position: relative; }
.hero-slide {
  min-height: 640px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(1, 42, 26, .94) 0%,
    rgba(1, 66, 41, .86) 34%,
    rgba(1, 84, 51, .45) 62%,
    rgba(1, 84, 51, .12) 100%);
}
.hero-slide .container { position: relative; z-index: 2; max-width: 1180px; }
.hero-slide > .container { padding-block: 60px; }

.hero-tag {
  display: inline-block;
  font-family: var(--head-font);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #f4d98c;
  border-left: 3px solid var(--accent-color);
  padding-left: 14px;
  margin-bottom: 22px;
}
.hero-slide h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.9rem);
  max-width: 830px;
  margin-bottom: 20px;
}
.hero-slide p {
  color: rgba(255, 255, 255, .86);
  font-size: 1.08rem;
  max-width: 620px;
  margin-bottom: 32px;
}

.hero-slider .carousel-indicators {
  margin-bottom: 34px;
  justify-content: flex-start;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  max-width: 1180px;
  width: 100%;
  padding-inline: 12px;
}
.hero-slider .carousel-indicators [data-bs-target] {
  width: 46px;
  height: 3px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, .35);
  opacity: 1;
  margin: 0 8px 0 0;
}
.hero-slider .carousel-indicators .active { background: var(--accent-color); }

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next { width: 7%; opacity: .55; }
.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover { opacity: 1; }

/* ---------- page hero ---------- */
.page-hero {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 132px 0 118px;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(1, 42, 26, .92) 0%, rgba(1, 84, 51, .68) 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  margin-bottom: 10px;
}
.breadcrumb-custom {
  font-family: var(--head-font);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .72);
  text-transform: uppercase;
}
.breadcrumb-custom a { color: var(--accent-color); }
.breadcrumb-custom a:hover { color: #fff; }

/* ---------- about blocks ---------- */
.about-img-wrap { position: relative; isolation: isolate; }
.about-img-wrap img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}
.about-img-wrap::after {
  content: "";
  position: absolute;
  left: -18px;
  bottom: -18px;
  width: 108px;
  height: 108px;
  border-left: 5px solid var(--accent-color);
  border-bottom: 5px solid var(--accent-color);
  z-index: -1;
}
.badge-float {
  position: absolute;
  right: -14px;
  bottom: 26px;
  background: var(--primary-color);
  color: rgba(255, 255, 255, .82);
  font-family: var(--head-font);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.35;
  padding: 18px 22px;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent-color);
  max-width: 190px;
}
.badge-float .num {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fff;
  text-transform: none;
}

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 12px;
  font-weight: 500;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 13px;
  height: 7px;
  border-left: 2.5px solid var(--accent-dark);
  border-bottom: 2.5px solid var(--accent-dark);
  transform: rotate(-45deg);
}

/* ---------- feature cards ---------- */
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 30px 34px;
  height: 100%;
  position: relative;
  transition: transform .28s ease, border-color .28s ease;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 58px;
  height: 4px;
  background: var(--accent-color);
  transition: width .32s ease;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--secondary-light); }
.feature-card:hover::before { width: calc(100% + 2px); }
.feature-card .icon-wrap {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand);
  border-radius: var(--radius);
  margin-bottom: 22px;
  transition: background .28s ease;
}
.feature-card:hover .icon-wrap { background: var(--primary-color); }
.feature-card .icon-wrap i { font-size: 25px; color: var(--primary-color); transition: color .28s ease; }
.feature-card:hover .icon-wrap i { color: var(--accent-color); }
.feature-card h5 { font-size: 1.14rem; margin-bottom: 10px; }
.feature-card p { font-size: 15px; margin-bottom: 0; }

/* ---------- mission / vision (deep green band) ---------- */
.mv-band { background: var(--primary-color); }
.mv-band .section-tag { color: #f4d98c; }
.mv-band .section-title { color: #fff; }
.mv-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  padding: 40px 34px;
  height: 100%;
  transition: background .28s ease;
}
.mv-card:hover { background: rgba(255, 255, 255, .1); }
.mv-card > i {
  font-size: 30px;
  color: var(--accent-color);
  display: block;
  margin-bottom: 18px;
}
.mv-card h4 { color: #fff; font-size: 1.4rem; margin-bottom: 14px; }
.mv-card p { color: rgba(255, 255, 255, .78); margin-bottom: 0; font-size: 15.5px; }

/* ---------- value pills (available if used) ---------- */
.value-pill {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-color);
  border-radius: var(--radius);
  padding: 28px 24px;
  height: 100%;
}
.value-pill i { font-size: 24px; color: var(--primary-color); margin-bottom: 14px; display: block; }
.value-pill h6 { font-size: 1.05rem; margin-bottom: 8px; }
.value-pill p { font-size: 14.5px; margin-bottom: 0; }

/* ---------- product / item cards ---------- */
.category-card-link { display: block; height: 100%; }

.product-card,
.item-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.product-card:hover,
.item-card:hover {
  transform: translateY(-6px);
  border-color: var(--secondary-light);
  box-shadow: 0 18px 38px rgba(1, 84, 51, .14);
}
.product-img,
.item-img { overflow: hidden; background: var(--sand-deep); }
.product-img img,
.item-img img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.product-card:hover .product-img img,
.item-card:hover .item-img img { transform: scale(1.07); }

.product-body,
.item-body {
  padding: 22px 22px;
  border-top: 3px solid var(--accent-color);
  text-align: center;
}
.product-body h5,
.item-body h5 {
  font-size: 1.02rem;
  margin: 0;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.category-card-link:hover .product-body h5 { color: var(--primary-color); }

/* legacy helpers */
.category-count, .browse-link, .item-list, .map-frame, .footer-social { display: none !important; }

/* ---------- CTA ---------- */
.cta-section {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(1, 42, 26, .93) 0%, rgba(1, 84, 51, .82) 100%);
}
.cta-section .container { position: relative; z-index: 2; }
.cta-section h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  max-width: 860px;
  margin: 0 auto 14px;
}
.cta-section p {
  color: rgba(255, 255, 255, .82);
  max-width: 660px;
  margin-inline: auto;
}

/* ---------- contact ---------- */
.contact-info-card {
  background: var(--primary-color);
  border-radius: var(--radius);
  padding: 40px 32px;
  height: 100%;
}
.contact-info-card h4 {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.contact-info-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-info-item:last-child { margin-bottom: 0; }
.ci-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ci-icon i { color: var(--accent-color); font-size: 18px; }
.ci-text small {
  display: block;
  font-family: var(--head-font);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 3px;
}
.ci-text span, .ci-text a {
  color: rgba(255, 255, 255, .88);
  font-size: 15px;
  line-height: 1.6;
  word-break: break-word;
}
.ci-text a:hover { color: #fff; }

.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 34px;
  height: 100%;
}
.contact-form-wrap h4 { font-size: 1.35rem; }
.contact-form-wrap form > [class*="col-"] { padding: 0 10px 18px; }
.contact-form-wrap form { margin: 0 -10px; }
.contact-form-wrap .form-label { font-family: var(--head-font); font-size: 14px; color: var(--ink); }
.form-control {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 15px;
  font-size: 15px;
  background: var(--sand);
}
.form-control:focus {
  background: #fff;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(62, 125, 100, .14);
}

/* ---------- footer ---------- */
.site-footer { background: black; }
.footer-top {
  padding: 76px 0 62px;
  border-top: 4px solid var(--accent-color);
}
.footer-brand { margin-bottom: 22px; }
.footer-brand img { height: 46px; width: auto; display: block; }
.footer-brand-text {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--head-font);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 18px;
}
.footer-top p { font-size: 15px; color:white; margin-bottom: 0; max-width: 460px; }
.footer-top h5 {
  font-size: 1.02rem;
  color:white;
  margin-bottom: 22px;
  padding-bottom: 12px;
  position: relative;
}
.footer-top h5::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 38px;
  height: 3px;
  background: white;
}
.footer-top ul { list-style: none; padding: 0; margin: 0; }
.footer-top ul li { margin-bottom: 12px; font-size: 15px; color: white; display: flex; }
.footer-top ul li i { color: white; margin-top: 5px; }
.footer-top ul li a { color: white; word-break: break-word; }
.footer-top ul li a:hover { color: var(--primary-color); }

.footer-bottom {
  background: var(--primary-color);
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  padding: 18px 0;
}

/* ---------- back to top ---------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--primary-color);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .3s ease;
  z-index: 1040;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-color); color: var(--primary-color); }

/* ---------- responsive ---------- */
@media (max-width: 1199.98px) {
  .main-navbar .nav-link { padding: 8px 11px !important; font-size: 14.5px; }
  .main-navbar .navbar-brand img { height: 34px; }
}

@media (max-width: 991.98px) {
  :root { --shell: 74px; }

  .top-bar { display: none; }

  .main-navbar .navbar-brand img { height: 27px; }
  .main-navbar .navbar-collapse {
    flex-basis: 100%;
    margin-top: 14px;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }
  .main-navbar .nav-link { padding: 11px 0 !important; }
  .main-navbar .nav-link::after { left: 0; right: 0; }
  .main-navbar .dropdown-menu {
    border-top: 0;
    border-left: 3px solid var(--accent-color);
    box-shadow: none;
    margin: 0 0 8px;
    padding-left: 6px;
  }
  .main-navbar .btn-brand { width: 100%; }

  .hero-slide { min-height: 500px; }
  .hero-slider .carousel-control-prev,
  .hero-slider .carousel-control-next { display: none; }

  .page-hero { padding: 92px 0 82px; }

  .about-img-wrap::after { display: none; }
  .badge-float { right: 14px; bottom: 14px; }

  .cta-section { background-attachment: scroll; }

  .footer-top { padding: 56px 0 44px; }
}

@media (max-width: 575.98px) {
  .main-navbar .navbar-brand img { height: 25px; }
  .hero-slide { min-height: 460px; }
  .hero-slide .btn { width: 100%; margin: 0 0 10px !important; }
  .contact-info-card, .contact-form-wrap { padding: 30px 22px; }
  .feature-card { padding: 30px 24px; }
}
