/* =========================================================
   KUĞU DEMİR ÇELİK ENDÜSTRİSİ A.Ş.
   Stylesheet — Industrial iron & steel manufacturing identity
   Palette: industrial forest green + steel graphite + safety lime accent
   Fonts: Montserrat (headings) + Open Sans (body)
   ========================================================= */

:root {
  --primary-color: #1E4D3A;     /* Deep industrial forest green */
  --primary-light: #4B7061;
  --secondary-color: #33393A;   /* Steel graphite grey */
  --secondary-light: #515657;
  --accent-color: #8CC63F;      /* Safety lime green */
  --accent-dark: #7EB238;
  --text-dark: #202524;
  --text-muted: #5B6462;
  --light-bg: #F1F4F1;
  --white: #FFFFFF;
  --font-head: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-main: '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-main);
  color: var(--text-dark);
  line-height: 1.65;
}

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

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

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

.section-tag {
  display: inline-block;
  color: var(--white);
  background-color: var(--primary-color);
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 5px 14px;
  margin-bottom: 14px;
}

.section-title {
  font-size: 2.1rem;
  margin-bottom: 1rem;
}

.bg-light-soft { background-color: var(--light-bg); }
.bg-dark-band {
  background-color: var(--secondary-color);
  color: #C7CDCB;
}
.bg-dark-band h2, .bg-dark-band h3, .bg-dark-band .section-title { color: var(--white); }

/* Buttons — sharp corners, industrial confidence */
.btn-brand {
  background-color: var(--accent-color);
  color: var(--secondary-color);
  border: none;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 3px;
  letter-spacing: .5px;
  text-transform: uppercase;
  font-size: 0.88rem;
  transition: all .22s ease;
  font-family: var(--font-head);
}
.btn-brand:hover {
  background-color: var(--accent-dark);
  color: var(--white);
}
.btn-brand-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--accent-color);
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 3px;
  text-transform: uppercase;
  font-size: 0.88rem;
}
.btn-brand-outline:hover {
  background-color: var(--accent-color);
  color: var(--secondary-color);
}
.btn-brand-secondary {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 3px;
  text-transform: uppercase;
  font-size: 0.88rem;
}
.btn-brand-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--accent-color);
}

/* =========================================================
   TOP BAR
   ========================================================= */
.top-bar {
  background-color: var(--secondary-color);
  color: var(--white);
  font-size: 0.82rem;
  padding: 8px 0;
}
.top-bar a { color: var(--white); opacity: .9; }
.top-bar a:hover { opacity: 1; color: var(--accent-color); }
.top-bar i { margin-right: 6px; color: var(--accent-color); }

/* =========================================================
   NAVBAR
   ========================================================= */
.main-navbar {
  background-color: var(--white);
  padding: 12px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all .3s ease;
  border-top: 4px solid var(--primary-color);
}
.main-navbar.scrolled { padding: 7px 0; }
.main-navbar .navbar-brand img { height: 50px; }
.main-navbar .nav-link {
  color: var(--secondary-color);
  font-weight: 700;
  margin: 0 12px;
  padding: 8px 0 !important;
  position: relative;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.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: 0;
  width: 100%; height: 3px;
  background-color: var(--accent-color);
}
.main-navbar .btn-brand { font-size: 0.78rem; white-space: nowrap; }

/* =========================================================
   HERO SLIDER
   ========================================================= */
.hero-slider { position: relative; }
.hero-slide {
  height: 82vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(32,37,36,0.94) 0%, rgba(30,77,58,0.80) 45%, rgba(32,37,36,0.30) 100%);
}
.hero-slide .container { position: relative; z-index: 2; }
.hero-slide .hero-tag {
  color: var(--accent-color);
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-left: 3px solid var(--accent-color);
  padding-left: 12px;
  display: inline-block;
  margin-bottom: 16px;
}
.hero-slide h1 {
  color: var(--white);
  font-size: 3rem;
  font-weight: 800;
  max-width: 740px;
  line-height: 1.18;
  text-transform: uppercase;
}
.hero-slide p {
  color: #D3DAD8;
  font-size: 1.08rem;
  max-width: 560px;
  margin: 20px 0 30px;
  font-family: var(--font-main);
  text-transform: none;
}
@media (max-width: 767px) {
  .hero-slide { height: 74vh; min-height: 440px; }
  .hero-slide h1 { font-size: 1.9rem; }
  .hero-slide p { font-size: 0.98rem; }
}
.hero-slider .carousel-indicators { bottom: 20px; }
.hero-slider .carousel-indicators button {
  background-color: var(--accent-color);
  width: 26px; height: 4px; border-radius: 0;
  opacity: 0.5;
}
.hero-slider .carousel-indicators button.active { opacity: 1; }
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next { width: 5%; opacity: 0.55; }

/* small inner hero banner for sub pages */
.page-hero {
  height: 260px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(32,37,36,0.95) 0%, rgba(30,77,58,0.82) 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: 2.2rem; margin-bottom: 8px; }
.page-hero .breadcrumb-custom { color: var(--accent-color); font-weight: 600; font-size: 0.9rem; text-transform: none; }
.page-hero .breadcrumb-custom a { color: var(--white); }
.page-hero .breadcrumb-custom a:hover { color: var(--accent-color); }

/* =========================================================
   ABOUT SECTION
   ========================================================= */
.about-img-wrap { position: relative; }
.about-img-wrap img {
  border-radius: 2px;
  width: 100%;
  box-shadow: 0 14px 32px rgba(0,0,0,0.22);
}
.about-img-wrap .badge-float {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 16px 22px;
  border-radius: 2px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.28);
  text-align: center;
  border-left: 4px solid var(--accent-color);
}
@media (max-width: 991px) {
  .about-img-wrap .badge-float { right: 12px; }
}
.about-img-wrap .badge-float .num { font-size: 1.7rem; font-weight: 800; color: var(--accent-color); display: block; font-family: var(--font-head); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-weight: 600;
}
.check-list li::before {
  content: '\2713';
  position: absolute;
  left: 0; top: 1px;
  width: 20px; height: 20px;
  background-color: var(--accent-color);
  color: var(--secondary-color);
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   WHY CHOOSE US — feature cards (left-border accent, sharp)
   ========================================================= */
.feature-card {
  background-color: var(--white);
  border-radius: 2px;
  padding: 32px 26px;
  height: 100%;
  text-align: left;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: all .25s ease;
  border-left: 4px solid var(--primary-color);
}
.feature-card:hover {
  border-left-color: var(--accent-color);
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
  transform: translateX(4px);
}
.feature-card .icon-wrap {
  width: 54px; height: 54px;
  border-radius: 2px;
  background-color: var(--secondary-color);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.feature-card h5 { font-size: 1.05rem; margin-bottom: 10px; color: var(--secondary-color); text-transform: uppercase; }
.feature-card p { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 0; text-transform: none; }

/* =========================================================
   CTA SECTION
   ========================================================= */
.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(115deg, rgba(32,37,36,0.94) 0%, rgba(30,77,58,0.88) 100%);
  z-index: 0;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: var(--white); margin-bottom: 10px; }
.cta-section p { color: #C7CDCB; margin-bottom: 26px; text-transform: none; }

/* =========================================================
   PRODUCTS / CATEGORIES
   ========================================================= */
.product-card {
  background-color: var(--white);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transition: all .25s ease;
  height: 100%;
}
.product-card:hover {
  box-shadow: 0 12px 28px rgba(0,0,0,0.14);
  transform: translateY(-4px);
}
.product-card .product-img {
  height: 220px;
  overflow: hidden;
}
.product-card .product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-img img { transform: scale(1.06); }
.product-card .product-body {
  padding: 18px 22px;
  border-top: 3px solid var(--accent-color);
}
.product-card .product-body h5 { margin-bottom: 0; font-size: 1.02rem; color: var(--secondary-color); }

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

/* =========================================================
   ITEM CARDS (category pages)
   ========================================================= */
.item-card {
  background-color: var(--white);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transition: all .25s ease;
  height: 100%;
}
.item-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.14); }
.item-card .item-img { height: 200px; overflow: hidden; }
.item-card .item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.item-card:hover .item-img img { transform: scale(1.06); }
.item-card .item-body { padding: 16px; border-top: 3px solid var(--primary-color); text-align: center; }
.item-card .item-body h5 { margin-bottom: 0; font-size: 0.95rem; }

/* =========================================================
   MISSION / VISION / VALUES (About page)
   ========================================================= */
.mv-card {
  background-color: var(--white);
  border-radius: 2px;
  padding: 36px 30px;
  height: 100%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  border-top: 4px solid var(--primary-color);
}
.mv-card:nth-child(2) { border-top-color: var(--accent-color); }
.mv-card i { font-size: 1.9rem; color: var(--primary-color); margin-bottom: 16px; display: block; }
.mv-card:nth-child(2) i { color: var(--accent-dark); }
.mv-card h4 { margin-bottom: 12px; }
.mv-card p { color: var(--text-muted); margin-bottom: 0; text-transform: none; }

.value-pill {
  background-color: var(--white);
  border-radius: 2px;
  padding: 24px 20px;
  text-align: center;
  height: 100%;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.value-pill i {
  font-size: 1.6rem;
  color: var(--white);
  background-color: var(--primary-color);
  width: 52px; height: 52px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.value-pill h6 { font-weight: 700; margin-bottom: 8px; font-family: var(--font-head); text-transform: uppercase; }
.value-pill p { font-size: 0.86rem; color: var(--text-muted); margin-bottom: 0; text-transform: none; }

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-info-card {
  background-color: var(--secondary-color);
  color: var(--white);
  border-radius: 2px;
  padding: 38px 32px;
  height: 100%;
  border-left: 4px solid var(--accent-color);
}
.contact-info-card h4 { color: var(--white); margin-bottom: 24px; }
.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: 44px; height: 44px;
  background-color: var(--accent-color);
  color: var(--secondary-color);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
  font-size: 1rem;
}
.contact-info-item .ci-text small {
  display: block;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 0.68rem;
  margin-bottom: 4px;
}
.contact-info-item .ci-text a,
.contact-info-item .ci-text span { color: var(--white); font-weight: 600; text-transform: none; }
.contact-info-item .ci-text a:hover { color: var(--accent-color); }

.contact-form-wrap {
  background-color: var(--white);
  border-radius: 2px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.contact-form-wrap .form-control {
  border: 1px solid #D8DDDA;
  padding: 11px 15px;
  border-radius: 2px;
  margin-bottom: 18px;
}
.contact-form-wrap .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(140,198,63,0.18);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background-color: var(--secondary-color);
  color: #B7BEBC;
}
.site-footer .footer-top { padding: 64px 0 36px; }
.site-footer h5 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.site-footer h5::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 32px; height: 3px;
  background-color: var(--accent-color);
}
.site-footer .footer-brand-text {
  color: var(--white);
  font-weight: 800;
  font-size: 1.08rem;
  font-family: var(--font-head);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.site-footer .footer-brand-text img { height: 36px; }
.site-footer p { font-size: 0.9rem; text-transform: none; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 12px; text-transform: none; }
.site-footer ul li a { color: #B7BEBC; font-size: 0.92rem; }
.site-footer ul li a:hover { color: var(--accent-color); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  font-size: 0.83rem;
  text-transform: none;
}
.footer-bottom a { color: var(--accent-color); }

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

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   MOBILE NAVBAR
   ========================================================= */
@media (max-width: 991.98px) {
  .top-bar { display: none; }
  .main-navbar .navbar-brand img { height: 36px; }
  .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 #eee;
    margin-top: 6px;
  }
  .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-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; }
}

/* =========================================================
   PRODUCTS DROPDOWN (navbar)
   ========================================================= */
.main-navbar .dropdown-menu {
  border: none;
  border-radius: 2px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.16);
  padding: 8px;
  margin-top: 4px;
  min-width: 220px;
}
.main-navbar .dropdown-item {
  color: var(--secondary-color);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.main-navbar .dropdown-item:hover,
.main-navbar .dropdown-item:focus {
  background-color: var(--light-bg);
  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;
  }
}
