/* =========================================================
   VİMAR MAKİNELERİ TARIM — Site Stylesheet
   Industrial-agriculture identity. Logo-derived green palette
   with a wheat-amber accent. Montserrat + Open Sans.
   ========================================================= */

:root {
  --primary-color: #16814A;   /* Emerald green (logo) */
  --primary-light: #2FB16C;
  --secondary-color: #0C5A34; /* Deep forest green */
  --secondary-light: #14764A;
  --accent-color: #E3A417;    /* Wheat amber */
  --accent-dark: #C4890C;
  --text-dark: #17241C;
  --text-muted: #5A6B60;
  --light-bg: #F2F7F2;
  --line: #E3EBE4;
  --white: #FFFFFF;
  --font-head: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.75;
  background-color: var(--white);
}

a { text-decoration: none; transition: all .25s ease; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--secondary-color);
  letter-spacing: -0.2px;
}

.section-padding { padding: 100px 0; }
@media (max-width: 767px) {
  .section-padding { padding: 60px 0; }
}

/* Section tag — chip/label style (design departure) */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-size: 0.74rem;
  padding: 6px 14px;
  border-radius: 4px;
  background-color: rgba(22,129,74,0.09);
  margin-bottom: 16px;
}
.section-tag::before {
  content: '';
  width: 14px; height: 2px;
  background-color: var(--accent-color);
  display: inline-block;
}

.section-title {
  font-size: 2.3rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}
@media (max-width: 767px) { .section-title { font-size: 1.7rem; } }

.bg-light-soft { background-color: var(--light-bg); }
.lead-muted { color: var(--text-muted); }

/* =========================================================
   BUTTONS — rounded 6px; primary uses amber accent
   ========================================================= */
.btn-brand {
  background-color: var(--accent-color);
  color: #22160A;
  border: none;
  font-family: var(--font-head);
  font-weight: 700;
  padding: 13px 32px;
  border-radius: 6px;
  letter-spacing: .3px;
  transition: all .25s ease;
}
.btn-brand:hover {
  background-color: var(--accent-dark);
  color: #22160A;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(196,137,12,0.28);
}
.btn-brand-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.85);
  font-family: var(--font-head);
  font-weight: 700;
  padding: 11px 30px;
  border-radius: 6px;
}
.btn-brand-outline:hover {
  background-color: var(--white);
  color: var(--secondary-color);
}
.btn-brand-secondary {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  font-family: var(--font-head);
  font-weight: 700;
  padding: 13px 32px;
  border-radius: 6px;
}
.btn-brand-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateY(-2px);
}

/* =========================================================
   TOP BAR
   ========================================================= */
.top-bar {
  background-color: var(--secondary-color);
  color: #D9E8DD;
  font-size: 0.84rem;
  padding: 9px 0;
}
.top-bar a { color: #D9E8DD; }
.top-bar a:hover { color: var(--accent-color); }
.top-bar i { margin-right: 7px; color: var(--accent-color); }

/* =========================================================
   NAVBAR — coloured top accent border on scroll
   ========================================================= */
.main-navbar {
  background-color: var(--white);
  padding: 14px 0;
  box-shadow: 0 2px 16px rgba(12,90,52,0.07);
  border-top: 3px solid var(--primary-color);
  transition: all .3s ease;
}
.main-navbar.scrolled { padding: 8px 0; box-shadow: 0 4px 20px rgba(12,90,52,0.12); }
.main-navbar .navbar-brand img { height: 72px; }
.main-navbar .nav-link {
  color: var(--secondary-color);
  font-family: var(--font-head);
  font-weight: 600;
  margin: 0 12px;
  padding: 8px 0 !important;
  position: relative;
  font-size: 0.95rem;
}
.main-navbar .nav-link.active,
.main-navbar .nav-link:hover { color: var(--primary-color); }
.main-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 3px;
  background-color: var(--accent-color);
  border-radius: 2px;
}
.main-navbar .btn-brand { font-size: 0.82rem; white-space: nowrap; padding: 10px 20px; }

/* =========================================================
   HERO SLIDER — solid forest-green left overlay panel
   ========================================================= */
.hero-slider { position: relative; }
.hero-slide {
  height: 90vh;
  min-height: 560px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(9,58,34,0.94) 0%, rgba(12,90,52,0.82) 42%, rgba(12,90,52,0.30) 78%, rgba(12,90,52,0.12) 100%);
}
.hero-slide .container { position: relative; z-index: 2; }
.hero-slide .hero-tag {
  display: inline-block;
  color: #0E3D24;
  background-color: var(--accent-color);
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 7px 16px;
  border-radius: 4px;
  margin-bottom: 22px;
}
.hero-slide h1 {
  color: var(--white);
  font-size: 3.4rem;
  line-height: 1.12;
  font-weight: 800;
  max-width: 780px;
}
.hero-slide p {
  color: #DCEDE2;
  font-size: 1.15rem;
  max-width: 560px;
  margin: 22px 0 34px;
}
@media (max-width: 767px) {
  .hero-slide { height: 82vh; min-height: 500px; }
  .hero-slide h1 { font-size: 2.1rem; }
  .hero-slide p { font-size: 1rem; }
}
.hero-slider .carousel-indicators { bottom: 24px; }
.hero-slider .carousel-indicators button {
  background-color: transparent;
  border: 2px solid var(--accent-color);
  width: 13px; height: 13px; border-radius: 50%;
  opacity: 1;
}
.hero-slider .carousel-indicators button.active { background-color: var(--accent-color); }
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next { width: 5%; opacity: 0.55; }

/* =========================================================
   PAGE HERO (sub-pages) — compact strip, angled overlay
   ========================================================= */
.page-hero {
  height: 340px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(9,58,34,0.93) 0%, rgba(12,90,52,0.78) 60%, rgba(22,129,74,0.45) 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: 2.7rem; margin-bottom: 10px; }
.page-hero .breadcrumb-custom {
  color: #DCEDE2;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
}
.page-hero .breadcrumb-custom a { color: var(--accent-color); }
.page-hero .breadcrumb-custom a:hover { color: var(--white); }
@media (max-width: 767px) { .page-hero { height: 250px; } .page-hero h1 { font-size: 1.9rem; } }

/* =========================================================
   ABOUT SECTIONS — image with amber corner frame + stat badge
   ========================================================= */
.about-img-wrap { position: relative; padding: 14px; }
.about-img-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 70%; height: 70%;
  border-top: 4px solid var(--accent-color);
  border-left: 4px solid var(--accent-color);
  border-radius: 8px 0 0 0;
}
.about-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 70%; height: 70%;
  border-bottom: 4px solid var(--primary-color);
  border-right: 4px solid var(--primary-color);
  border-radius: 0 0 8px 0;
}
.about-img-wrap img {
  position: relative;
  z-index: 1;
  border-radius: 4px;
  width: 100%;
  box-shadow: 0 22px 44px rgba(12,90,52,0.20);
}
.about-img-wrap .badge-float {
  position: absolute;
  bottom: -18px;
  right: -10px;
  z-index: 2;
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 18px 24px;
  border-radius: 6px;
  box-shadow: 0 14px 30px rgba(9,58,34,0.35);
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.3;
}
@media (max-width: 991px) { .about-img-wrap .badge-float { right: 6px; } }
.about-img-wrap .badge-float .num { font-size: 1.9rem; font-weight: 800; color: var(--accent-color); display: block; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding-left: 34px;
  position: relative;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-weight: 500;
}
.check-list li::before {
  content: '\2713';
  position: absolute;
  left: 0; top: 3px;
  width: 22px; height: 22px;
  background-color: var(--primary-color);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   WHY CHOOSE US — dark forest band + left-accent cards
   ========================================================= */
.why-section { background-color: var(--secondary-color); position: relative; }
.why-section .section-title { color: var(--white); }
.why-section .section-tag {
  color: var(--accent-color);
  background-color: rgba(227,164,23,0.14);
}
.why-section .section-tag::before { background-color: var(--accent-color); }
.why-section .lead-muted { color: #BFD6C7; }

.feature-card {
  background-color: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-left: 4px solid var(--accent-color);
  border-radius: 6px;
  padding: 34px 28px;
  height: 100%;
  text-align: left;
  transition: all .3s ease;
}
.feature-card:hover {
  background-color: rgba(255,255,255,0.08);
  border-left-color: var(--primary-light);
  transform: translateY(-6px);
}
.feature-card .icon-wrap {
  width: 58px; height: 58px;
  border-radius: 6px;
  background-color: var(--accent-color);
  color: #22160A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
}
.feature-card:nth-child(2n) .icon-wrap { background-color: var(--primary-light); color: var(--white); }
.feature-card h5 { color: var(--white); font-family: var(--font-head); font-size: 1.12rem; margin-bottom: 10px; }
.feature-card p { color: #BFD6C7; font-size: 0.94rem; margin-bottom: 0; }

/* =========================================================
   CTA SECTION — brand overlay + amber pill button
   ========================================================= */
.cta-section {
  background-color: var(--secondary-color);
  background-size: cover;
  background-position: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(9,58,34,0.93) 0%, rgba(12,90,52,0.86) 100%);
  z-index: 0;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: var(--white); margin-bottom: 12px; font-size: 2.1rem; }
.cta-section p { color: #CFE3D6; margin-bottom: 0; max-width: 620px; margin-left: auto; margin-right: auto; }

/* =========================================================
   PRODUCTS / CATEGORY CARDS — sharp bottom, image top-accent
   ========================================================= */
.product-card {
  background-color: var(--white);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 6px 22px rgba(12,90,52,0.06);
  transition: all .3s ease;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 38px rgba(12,90,52,0.16);
  border-color: transparent;
}
.product-card .product-img {
  height: 240px;
  overflow: hidden;
  position: relative;
}
.product-card .product-img::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 4px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.product-card:hover .product-img::after { transform: scaleX(1); }
.product-card .product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-img img { transform: scale(1.08); }
.product-card .product-body { padding: 24px 26px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-card .product-body h5 { margin: 0; font-size: 1.16rem; color: var(--secondary-color); font-family: var(--font-head); }
.product-card .product-body .arrow {
  color: var(--primary-color);
  font-size: 1.15rem;
  transition: transform .25s ease;
}
.category-card-link:hover .product-card .arrow { transform: translateX(5px); }

.category-card-link { display: block; color: inherit; }
.category-card-link:hover .product-card h5 { color: var(--primary-color); }

/* =========================================================
   ITEM CARDS (category pages)
   ========================================================= */
.item-card {
  background-color: var(--white);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 6px 22px rgba(12,90,52,0.06);
  transition: all .3s ease;
  height: 100%;
}
.item-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(12,90,52,0.15); }
.item-card .item-img { height: 210px; overflow: hidden; }
.item-card .item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.item-card:hover .item-img img { transform: scale(1.07); }
.item-card .item-body { padding: 20px 22px; border-top: 3px solid var(--accent-color); }
.item-card .item-body h5 { margin: 0; font-size: 1.04rem; color: var(--secondary-color); font-family: var(--font-head); font-weight: 600; }

/* =========================================================
   MISSION / VISION
   ========================================================= */
.mv-card {
  background-color: var(--white);
  border-radius: 6px;
  padding: 40px 34px;
  height: 100%;
  border: 1px solid var(--line);
  box-shadow: 0 8px 26px rgba(12,90,52,0.07);
  position: relative;
  overflow: hidden;
}
.mv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 6px; height: 100%;
  background-color: var(--accent-color);
}
.mv-card:nth-child(2)::before { background-color: var(--primary-color); }
.mv-card .mv-icon {
  width: 62px; height: 62px;
  border-radius: 6px;
  background-color: rgba(22,129,74,0.10);
  color: var(--primary-color);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 20px;
}
.mv-card:nth-child(2) .mv-icon { background-color: rgba(227,164,23,0.16); color: var(--accent-dark); }
.mv-card h4 { margin-bottom: 14px; font-size: 1.4rem; }
.mv-card p { color: var(--text-muted); margin-bottom: 0; }

.value-pill {
  background-color: var(--white);
  border-radius: 6px;
  padding: 28px 22px;
  text-align: center;
  height: 100%;
  border: 1px solid var(--line);
}
.value-pill i {
  font-size: 1.7rem;
  color: var(--primary-color);
  background-color: rgba(22,129,74,0.10);
  width: 58px; height: 58px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.value-pill h6 { font-family: var(--font-head); font-weight: 700; margin-bottom: 8px; }
.value-pill p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-info-card {
  background-color: var(--secondary-color);
  color: var(--white);
  border-radius: 6px;
  padding: 44px 34px;
  height: 100%;
}
.contact-info-card h4 { color: var(--white); margin-bottom: 26px; }
.contact-info-item { display: flex; align-items: flex-start; margin-bottom: 26px; }
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-item .ci-icon {
  width: 48px; height: 48px;
  background-color: var(--accent-color);
  color: #22160A;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
  font-size: 1.15rem;
}
.contact-info-item .ci-text small {
  display: block;
  color: var(--accent-color);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.72rem;
  margin-bottom: 4px;
}
.contact-info-item .ci-text a,
.contact-info-item .ci-text span { color: var(--white); font-weight: 500; word-break: break-word; }
.contact-info-item .ci-text a:hover { color: var(--accent-color); }

.contact-form-wrap {
  background-color: var(--white);
  border-radius: 6px;
  padding: 44px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(12,90,52,0.07);
}
@media (max-width: 767px) { .contact-form-wrap { padding: 28px; } }
.contact-form-wrap .form-label { font-family: var(--font-head); color: var(--secondary-color); }
.contact-form-wrap .form-control {
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 6px;
  background-color: #FAFCFA;
}
.contact-form-wrap .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(22,129,74,0.14);
  background-color: var(--white);
}
.contact-form-wrap .row > [class*="col-"] { margin-bottom: 14px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background-color: #0A3D24; color: #B7CFBE; }
.site-footer .footer-top { padding: 74px 0 44px; }
.site-footer h5 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}
.site-footer h5::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 40px; height: 3px;
  background-color: var(--accent-color);
  border-radius: 2px;
}
.site-footer .footer-brand-text {
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.site-footer .footer-brand-text img { height: 72px; }
.site-footer p { font-size: 0.92rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 12px; }
.site-footer ul li a { color: #B7CFBE; font-size: 0.94rem; }
.site-footer ul li a:hover { color: var(--accent-color); padding-left: 4px; }
.site-footer .contact-list li { display: flex; align-items: flex-start; gap: 4px; }
.site-footer .contact-list i { color: var(--accent-color); margin-top: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0;
  font-size: 0.85rem;
}
.footer-bottom a { color: var(--accent-color); }

/* =========================================================
   MISC
   ========================================================= */
.back-to-top {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 48px; height: 48px;
  background-color: var(--accent-color);
  color: #22160A;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(9,58,34,0.30);
  opacity: 0; visibility: hidden;
  transition: all .3s ease;
  z-index: 999;
  font-size: 1.15rem;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background-color: var(--accent-dark); }

.preloader-fade { animation: fadeInUp .7s ease both; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   PRODUCTS DROPDOWN (navbar)
   ========================================================= */
.main-navbar .dropdown-menu {
  border: none;
  border-top: 3px solid var(--accent-color);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 16px 34px rgba(9,58,34,0.16);
  padding: 10px;
  margin-top: 6px;
  min-width: 260px;
}
.main-navbar .dropdown-item {
  color: var(--secondary-color);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 11px 16px;
  border-radius: 4px;
}
.main-navbar .dropdown-item:hover,
.main-navbar .dropdown-item:focus {
  background-color: rgba(22,129,74,0.09);
  color: var(--primary-color);
}
@media (min-width: 992px) {
  .main-navbar .dropdown-menu { display: none; animation: fadeInUp .2s ease both; }
  .main-navbar .dropdown-menu.show { display: block; }
}

/* =========================================================
   MOBILE NAVBAR
   ========================================================= */
@media (max-width: 991.98px) {
  .top-bar { display: none; }
  .main-navbar .navbar-brand img { height: 42px; }
  .main-navbar .navbar-collapse { flex-basis: 100%; width: 100%; }
  .main-navbar .navbar-collapse.show,
  .main-navbar .navbar-collapse.collapsing {
    padding: 10px 0 14px;
    border-top: 1px solid var(--line);
    margin-top: 8px;
  }
  .main-navbar .navbar-nav { flex-direction: column; align-items: flex-start !important; }
  .main-navbar .navbar-nav .nav-link { margin: 0; padding: 11px 0 !important; }
  .main-navbar .navbar-nav .nav-item { width: 100%; }
  .nav-products-row { display: flex; align-items: center; justify-content: space-between; width: 100%; }
  .mobile-cat-toggle {
    background: none; border: none;
    padding: 6px 8px;
    color: var(--secondary-color);
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform .25s ease;
    line-height: 1;
  }
  .mobile-cat-toggle.open { transform: rotate(180deg); }
  .main-navbar .navbar-nav .dropdown-menu {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    padding: 0 0 4px 16px !important;
    margin-top: 0 !important;
    animation: none !important;
    display: none;
  }
  .main-navbar .navbar-nav .dropdown-menu.show { display: block; }
  .main-navbar .btn-brand { display: inline-block; margin-top: 6px; }
}
