/* =========================================================
   AKDENIZ MAKINELERI — Agricultural & Industrial Machinery
   Design: grounded, engineered, agrarian. Forest green + wheat gold.
   Each section carries its own distinct structural treatment.
   ========================================================= */

:root {
  --primary-color: #2E7D32;   /* Forest green (wordmark) */
  --primary-light: #43A047;
  --primary-dark:  #1B5E20;
  --secondary-color: #C79A1E; /* Deep wheat gold */
  --secondary-light: #E0B84E;
  --accent-color: #E0A82E;    /* Amber highlight for CTAs */
  --accent-dark:  #C6891A;
  --text-dark: #1E2A1F;
  --text-muted: #5F6B60;
  --light-bg: #F3F7EF;        /* soft sage tint */
  --line: #E4EADD;
  --white: #FFFFFF;
  --head: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --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(--body);
  color: var(--text-dark);
  line-height: 1.75;
  background: var(--white);
}
a { text-decoration: none; transition: all .25s ease; }
img { max-width: 100%; }

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

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

/* Section tag — gold uppercase with a short leading bar */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--secondary-color);
  font-family: var(--head);
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 14px;
}
.section-tag::before {
  content: '';
  width: 30px; height: 3px;
  background: var(--accent-color);
  display: inline-block;
}
.text-center .section-tag { justify-content: center; }

.section-title {
  font-size: 2.35rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}
@media (max-width: 767px){ .section-title { font-size: 1.8rem; } }
.lead-muted { color: var(--text-muted); }

.bg-light-soft { background-color: var(--light-bg); }
.bg-green-deep { background-color: var(--primary-dark); }

/* =========================================================
   BUTTONS — squared industrial edges
   ========================================================= */
.btn-brand {
  background-color: var(--accent-color);
  color: var(--primary-dark);
  border: none;
  font-family: var(--head);
  font-weight: 700;
  padding: 13px 32px;
  border-radius: 3px;
  letter-spacing: .3px;
  transition: all .25s ease;
}
.btn-brand:hover {
  background-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(198,137,26,0.32);
}
.btn-brand-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.75);
  font-family: var(--head);
  font-weight: 700;
  padding: 11px 28px;
  border-radius: 3px;
}
.btn-brand-outline:hover { background-color: var(--white); color: var(--primary-dark); }
.btn-brand-secondary {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  font-family: var(--head);
  font-weight: 700;
  padding: 13px 32px;
  border-radius: 3px;
}
.btn-brand-secondary:hover { background-color: var(--primary-dark); color: var(--white); transform: translateY(-2px); }

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

/* =========================================================
   NAVBAR
   ========================================================= */
.main-navbar {
  background-color: var(--white);
  padding: 12px 0;
  box-shadow: 0 2px 18px rgba(27,94,32,0.08);
  border-bottom: 3px solid var(--primary-color);
  transition: all .3s ease;
}
.main-navbar.scrolled { padding: 6px 0; }
.main-navbar .navbar-brand img { height: 70px; }
.main-navbar .nav-link {
  color: var(--primary-dark);
  font-family: var(--head);
  font-weight: 600;
  margin: 0 13px;
  padding: 8px 0 !important;
  position: relative;
  font-size: .95rem;
}
.main-navbar .nav-link.active,
.main-navbar .nav-link:hover { color: var(--secondary-color); }
.main-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 3px;
  background-color: var(--accent-color);
}
.main-navbar .btn-brand { font-size: 0.8rem; white-space: nowrap; padding: 10px 20px; }

/* =========================================================
   HERO SLIDER — left green diagonal panel, left aligned
   ========================================================= */
.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(20,66,24,0.94) 0%, rgba(27,94,32,0.80) 42%, rgba(27,94,32,0.25) 78%, rgba(27,94,32,0.10) 100%);
}
.hero-slide .container { position: relative; z-index: 2; }
.hero-slide .hero-inner { max-width: 660px; }
.hero-slide .hero-tag {
  display: inline-block;
  color: var(--primary-dark);
  background: var(--accent-color);
  font-family: var(--head);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.76rem;
  padding: 6px 16px;
  border-radius: 2px;
  margin-bottom: 20px;
}
.hero-slide h1 {
  color: var(--white);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 18px;
}
.hero-slide p {
  color: #E8F1E4;
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 0 34px;
}
@media (max-width: 767px) {
  .hero-slide { height: 84vh; min-height: 480px; }
  .hero-slide h1 { font-size: 2.15rem; }
  .hero-slide p { font-size: 1rem; }
  .hero-slide::before { background: linear-gradient(180deg, rgba(20,66,24,0.90), rgba(27,94,32,0.72)); }
}
.hero-slider .carousel-indicators { bottom: 22px; margin-left: 12%; justify-content: flex-start; }
@media (max-width: 767px){ .hero-slider .carousel-indicators { justify-content: center; margin-left: 0; } }
.hero-slider .carousel-indicators button {
  width: 34px; height: 4px; border-radius: 0;
  background-color: rgba(255,255,255,.5);
}
.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.6; }

/* PAGE HERO (sub pages) — compact strip, centered */
.page-hero {
  height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,66,24,0.78) 0%, rgba(27,94,32,0.86) 100%);
}
.page-hero::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: var(--accent-color);
}
.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: #E8F1E4; font-family: var(--head); font-weight: 600; font-size: .9rem;
  letter-spacing: .5px;
}
.page-hero .breadcrumb-custom a { color: var(--accent-color); }
.page-hero .breadcrumb-custom a:hover { color: #fff; }

/* =========================================================
   ABOUT (home + about page) — framed image + floating stat
   ========================================================= */
.about-img-wrap { position: relative; padding: 14px; }
.about-img-wrap::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 60%; height: 60%;
  border-top: 4px solid var(--accent-color);
  border-left: 4px solid var(--accent-color);
  border-radius: 6px 0 0 0;
}
.about-img-wrap::after {
  content: '';
  position: absolute; bottom: 0; right: 0;
  width: 60%; height: 60%;
  border-bottom: 4px solid var(--primary-color);
  border-right: 4px solid var(--primary-color);
  border-radius: 0 0 6px 0;
}
.about-img-wrap img {
  border-radius: 4px;
  width: 100%;
  position: relative; z-index: 1;
  box-shadow: 0 22px 44px rgba(27,94,32,0.20);
}
.about-img-wrap .badge-float {
  position: absolute;
  bottom: 30px; right: -18px;
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 18px 26px;
  border-radius: 4px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.28);
  text-align: center;
  z-index: 3;
}
@media (max-width: 991px) { .about-img-wrap .badge-float { right: 6px; } }
.about-img-wrap .badge-float .num {
  font-family: var(--head); font-size: 1.9rem; font-weight: 800;
  color: var(--accent-color); display: block; line-height: 1;
}
.about-img-wrap .badge-float { font-size: .82rem; font-family: var(--head); font-weight:600; letter-spacing:.5px; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding-left: 36px;
  position: relative;
  margin-bottom: 14px;
  color: var(--text-dark);
  font-weight: 500;
}
.check-list li::before {
  content: '\2713';
  position: absolute; left: 0; top: 2px;
  width: 24px; height: 24px;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 0.75rem; font-weight: 700;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}

/* =========================================================
   WHY CHOOSE US — feature cards with index number + left reveal
   ========================================================= */
.feature-card {
  background-color: var(--white);
  border-radius: 4px;
  padding: 34px 30px 32px;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 4px solid var(--secondary-light);
  transition: all .3s ease;
}
.feature-card::before {
  content: attr(data-index);
  position: absolute;
  top: 14px; right: 20px;
  font-family: var(--head);
  font-size: 3.4rem; font-weight: 800;
  color: var(--light-bg);
  line-height: 1; z-index: 0;
  transition: color .3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-left-color: var(--accent-color);
  box-shadow: 0 18px 38px rgba(27,94,32,0.14);
}
.feature-card:hover::before { color: #EFF4E7; }
.feature-card .icon-wrap {
  width: 58px; height: 58px;
  border-radius: 4px;
  background-color: var(--primary-color);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.55rem;
  margin-bottom: 20px;
  position: relative; z-index: 1;
  transition: background-color .3s ease;
}
.feature-card:hover .icon-wrap { background-color: var(--accent-color); color: var(--primary-dark); }
.feature-card h5 { font-size: 1.12rem; margin-bottom: 10px; position: relative; z-index: 1; }
.feature-card p { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 0; position: relative; z-index: 1; }

/* =========================================================
   CTA — green diagonal band with image
   ========================================================= */
.cta-section {
  background-color: var(--primary-dark);
  background-size: cover;
  background-position: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(20,66,24,0.95) 0%, rgba(27,94,32,0.86) 55%, rgba(198,137,26,0.55) 100%);
  z-index: 0;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: var(--white); margin-bottom: 12px; font-size: 2.3rem; }
.cta-section p { color: #EAF2E6; margin-bottom: 0; font-size: 1.08rem; }

/* =========================================================
   PRODUCTS / CATEGORY CARDS — image with sliding label bar
   ========================================================= */
.product-card {
  background-color: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(27,94,32,0.09);
  transition: all .3s ease;
  height: 100%;
  border: 1px solid var(--line);
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(27,94,32,0.16); }
.product-card .product-img { height: 240px; overflow: hidden; position: relative; }
.product-card .product-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,94,32,0) 45%, rgba(20,66,24,0.55) 100%);
}
.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: 22px 24px;
  border-top: 3px solid var(--accent-color);
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.product-card .product-body h5 { margin-bottom: 0; font-size: 1.15rem; }
.product-card .product-body::after {
  content: '\F138';
  font-family: 'bootstrap-icons';
  color: var(--secondary-color);
  font-size: 1.2rem;
  transition: transform .25s ease;
}
.category-card-link { display: block; color: inherit; }
.category-card-link:hover .product-body h5 { color: var(--secondary-color); }
.category-card-link:hover .product-body::after { transform: translateX(4px); }

/* ITEM CARDS (category pages) — clean image + name strip */
.item-card {
  background-color: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(27,94,32,0.08);
  transition: all .3s ease;
  height: 100%;
  border: 1px solid var(--line);
}
.item-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(27,94,32,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: 18px 20px; border-left: 4px solid var(--primary-color); }
.item-card .item-body h5 { margin-bottom: 0; font-size: 1.02rem; }

/* =========================================================
   MISSION / VISION — two-tone (filled + outlined)
   ========================================================= */
.mv-card {
  border-radius: 4px;
  padding: 42px 36px;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.mv-card i { font-size: 2.1rem; margin-bottom: 18px; display: block; }
.mv-card h4 { margin-bottom: 14px; font-size: 1.4rem; }
.mv-card p { margin-bottom: 0; }
/* Mission = green filled */
.mv-card.mv-mission {
  background-color: var(--primary-dark);
  color: #fff;
}
.mv-card.mv-mission h4, .mv-card.mv-mission i { color: var(--accent-color); }
.mv-card.mv-mission p { color: #E7EFE3; }
.mv-card.mv-mission::after {
  content: '\F5D2'; font-family: 'bootstrap-icons';
  position: absolute; right: -10px; bottom: -20px; font-size: 8rem; opacity: .08; color: #fff;
}
/* Vision = light outlined */
.mv-card.mv-vision {
  background-color: var(--white);
  border: 2px solid var(--primary-color);
  color: var(--text-dark);
}
.mv-card.mv-vision h4 { color: var(--primary-dark); }
.mv-card.mv-vision i { color: var(--secondary-color); }
.mv-card.mv-vision p { color: var(--text-muted); }

/* CORE VALUES pills (defined for class inventory; not used unless in doc) */
.value-pill {
  background-color: var(--white);
  border-radius: 4px;
  padding: 28px 22px;
  text-align: center;
  height: 100%;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent-color);
}
.value-pill i {
  font-size: 1.7rem; color: var(--primary-color);
  background-color: var(--light-bg);
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.value-pill h6 { font-weight: 700; margin-bottom: 8px; }
.value-pill p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0; }

/* =========================================================
   STATS STRIP (home, distinct dark band)
   ========================================================= */
.stats-strip { background-color: var(--primary-dark); color: #fff; padding: 46px 0; }
.stat-item { text-align: center; padding: 10px 0; }
.stat-item .stat-num {
  font-family: var(--head); font-weight: 800; font-size: 2.6rem; color: var(--accent-color); line-height: 1;
}
.stat-item .stat-label { color: #D6E4D1; font-size: .92rem; letter-spacing: .5px; margin-top: 6px; }
.stat-item + .stat-item { border-left: 1px solid rgba(255,255,255,.14); }
@media (max-width: 767px){ .stat-item + .stat-item { border-left: none; } }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-info-card {
  background-color: var(--primary-dark);
  color: var(--white);
  border-radius: 4px;
  padding: 42px 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: 46px; height: 46px;
  background-color: var(--accent-color);
  color: var(--primary-dark);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  margin-right: 16px; flex-shrink: 0; font-size: 1.1rem;
}
.contact-info-item .ci-text small {
  display: block; color: var(--accent-color);
  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; }
.contact-info-item .ci-text a:hover { color: var(--accent-color); }

.contact-form-wrap {
  background-color: var(--white);
  border-radius: 4px;
  padding: 42px;
  box-shadow: 0 6px 30px rgba(27,94,32,0.09);
  border: 1px solid var(--line);
}
.contact-form-wrap .form-control {
  border: 1px solid #D5DECB;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.contact-form-wrap .form-label { color: var(--primary-dark); }
.contact-form-wrap .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(46,125,50,0.14);
}
.contact-form-wrap .row > [class*="col-"] { margin-bottom: 12px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background-color: var(--primary-dark); color: #CBDAC4; }
.site-footer .footer-top { padding: 72px 0 42px; }
.site-footer h5 {
  color: var(--white); font-size: 1.05rem; margin-bottom: 22px;
  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);
}
.site-footer .footer-brand-text {
  color: var(--white); font-family: var(--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: 76px; }
.site-footer p { font-size: 0.92rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 12px; display: flex; align-items: flex-start; }
.site-footer .footer-links li a { color: #CBDAC4; font-size: 0.94rem; }
.site-footer .footer-links li a:hover { color: var(--accent-color); padding-left: 4px; }
.site-footer .footer-contact li i { color: var(--accent-color); margin-top: 5px; }
.site-footer .footer-contact li a { color: #CBDAC4; }
.site-footer .footer-contact li a:hover { color: var(--accent-color); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0; font-size: 0.85rem; color: #B9CBB2;
}
.footer-bottom a { color: var(--accent-color); }

/* =========================================================
   MISC
   ========================================================= */
.back-to-top {
  position: fixed; bottom: 26px; right: 26px;
  width: 46px; height: 46px;
  background-color: var(--accent-color);
  color: var(--primary-dark);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.24);
  opacity: 0; visibility: hidden; transition: all .3s ease; z-index: 999; font-size: 1.1rem;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background-color: var(--accent-dark); color: #fff; }

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

/* =========================================================
   MOBILE NAVBAR
   ========================================================= */
@media (max-width: 991.98px) {
  .top-bar { display: none; }
  .main-navbar .navbar-brand img { height: 40px; }
  .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: 10px 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(--primary-dark);
    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; }
}

/* =========================================================
   PRODUCTS DROPDOWN
   ========================================================= */
.main-navbar .dropdown-menu {
  border: none; border-radius: 4px;
  box-shadow: 0 14px 32px rgba(27,94,32,0.18);
  padding: 10px; margin-top: 6px; min-width: 270px;
  border-top: 3px solid var(--accent-color);
}
.main-navbar .dropdown-item {
  color: var(--primary-dark); font-family: var(--head); font-weight: 500; font-size: .92rem;
  padding: 10px 16px; border-radius: 3px;
}
.main-navbar .dropdown-item:hover, .main-navbar .dropdown-item:focus {
  background-color: var(--light-bg); color: var(--secondary-color);
}
@media (min-width: 992px) {
  .main-navbar .dropdown-menu { display: none; animation: fadeInUp .2s ease both; }
  .main-navbar .dropdown-menu.show { display: block; }
}
