/*!
 * bootstrap_min.css – ParkBirlik
 * Bootstrap 5.3 üzerine marka uyumlu override ve extension.
 * CDN'den sonra yükleyin: <link rel="stylesheet" href="css/bootstrap_min.css">
 *
 * İçerik:
 *  1. Bootstrap CSS Değişkeni Override
 *  2. Navbar (Desktop + Hamburger Mobil)
 *  3. Butonlar
 *  4. Kartlar
 *  5. Form Elemanları
 *  6. Badge & Alert
 *  7. Carousel
 *  8. Responsive Grid Düzeltmeleri
 *  9. Utility Eklemeleri
 */

/* ═══════════════════════════════════════════════════════
   1. BOOTSTRAP CSS DEĞİŞKENİ OVERRIDE
   ═══════════════════════════════════════════════════════ */
:root {
  --bs-primary:           #198754;
  --bs-primary-rgb:       25, 135, 84;
  --bs-success:           #198754;
  --bs-success-rgb:       25, 135, 84;
  --bs-link-color:        #198754;
  --bs-link-hover-color:  #146c43;
  --bs-border-radius:     0.6rem;
  --bs-border-radius-lg:  0.9rem;
  --bs-border-radius-xl:  1.2rem;
  --bs-font-sans-serif:   'Segoe UI', system-ui, -apple-system, sans-serif;
  --bs-body-font-size:    1rem;
  --bs-body-line-height:  1.7;
  --bs-body-color:        #333333;
}

/* ═══════════════════════════════════════════════════════
   2. NAVBAR – RESPONSIVE (DESKTOP + MOBİL HAMBURGER)
   ═══════════════════════════════════════════════════════ */

/* Genel navbar */
.navbar {
  background: #ffffff !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  padding: 0.6rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: box-shadow .3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

/* Marka adı */
.navbar-brand {
  font-size: 1.8rem !important;
  font-weight: 800 !important;
  color: #198754 !important;
  letter-spacing: -0.5px;
}

/* Nav linkleri */
.navbar-nav .nav-link {
  font-weight: 600;
  color: #333 !important;
  padding: 0.5rem 0.9rem !important;
  border-radius: 6px;
  transition: background .2s, color .2s;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #198754 !important;
  background: #e8f5e9;
}

/* Aktif sayfa alt çizgisi */
.navbar-nav .nav-link.active::after {
  content: '';
  display: block;
  height: 2px;
  background: #198754;
  border-radius: 2px;
  position: absolute;
  bottom: 2px;
  left: 0.9rem;
  right: 0.9rem;
}

/* ── Hamburger Butonu ── */
.navbar-toggler {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 6px 10px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(25,135,84,.25) !important;
}

/* Hamburger ikon çizgileri – özel renk */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23198754' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Mobil: menü açıkken stil */
.navbar-collapse {
  transition: all .3s ease;
}

/* ── Mobil (≤768px) ── */
@media (max-width: 767.98px) {
  .navbar-collapse .navbar-nav {
    padding: 12px 0;
    border-top: 1px solid #e8f5e9;
    margin-top: 8px;
  }

  .navbar-nav .nav-link {
    padding: 0.7rem 1rem !important;
    border-radius: 8px;
    margin: 2px 0;
  }

  .navbar-nav .nav-link.active::after {
    display: none;
  }

  .topbar .d-flex {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }
}

/* ─ Topbar responsive ─ */
.topbar {
  font-size: 13px;
}

@media (max-width: 575.98px) {
  .topbar .container > div:last-child {
    display: none; /* Çok dar ekranda e-posta gizle */
  }
}


/* ═══════════════════════════════════════════════════════
   3. BUTONLAR
   ═══════════════════════════════════════════════════════ */

.btn-success {
  background-color: #198754;
  border-color: #198754;
  font-weight: 600;
  padding: 0.55rem 1.4rem;
  border-radius: 8px;
  transition: background .25s, transform .2s, box-shadow .2s;
}

.btn-success:hover,
.btn-success:focus {
  background-color: #146c43;
  border-color: #146c43;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(25,135,84,.35);
}

.btn-outline-success {
  color: #198754;
  border-color: #198754;
  font-weight: 600;
  border-radius: 8px;
}

.btn-outline-success:hover {
  background-color: #198754;
  border-color: #198754;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.05rem;
}

/* ═══════════════════════════════════════════════════════
   4. KARTLAR
   ═══════════════════════════════════════════════════════ */

.card {
  border: none;
  border-radius: var(--bs-border-radius-lg);
  box-shadow: 0 2px 14px rgba(0,0,0,.07);
  transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 28px rgba(0,0,0,.13);
}

.card-img-top {
  border-radius: var(--bs-border-radius-lg) var(--bs-border-radius-lg) 0 0;
  object-fit: cover;
}

.card-body {
  padding: 1.25rem;
}

/* ═══════════════════════════════════════════════════════
   5. FORM ELEMANLARI
   ═══════════════════════════════════════════════════════ */

.form-control,
.form-select {
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  transition: border-color .2s, box-shadow .2s;
}

.form-control:focus,
.form-select:focus {
  border-color: #198754;
  box-shadow: 0 0 0 3px rgba(25,135,84,.15);
}

.form-control.is-valid,
.form-select.is-valid {
  border-color: #198754;
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

/* ═══════════════════════════════════════════════════════
   6. BADGE & ALERT
   ═══════════════════════════════════════════════════════ */

.badge.bg-success {
  background-color: #198754 !important;
}

.alert-success {
  background: #d1e7dd;
  border-color: #a3cfbb;
  color: #0a3622;
  border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════
   7. CAROUSEL
   ═══════════════════════════════════════════════════════ */

.carousel-item img {
  height: 700px;
  object-fit: cover;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(25,135,84,.5);
  border-radius: 50%;
  padding: 6px;
}

.carousel-indicators [data-bs-target] {
  background-color: #198754;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  border: none;
  margin: 0 4px;
}

/* Mobil: slider yüksekliği küçük */
@media (max-width: 767.98px) {
  .carousel-item img {
    height: 260px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .carousel-item img {
    height: 420px;
  }
}

/* ═══════════════════════════════════════════════════════
   8. RESPONSIVE GRID DÜZELTMELERİ
   ═══════════════════════════════════════════════════════ */

/* Section padding mobilde küçülsün */
@media (max-width: 767.98px) {
  .about,
  .services,
  .products,
  .references,
  .cta,
  .stats,
  .about-intro,
  .values,
  .timeline,
  .certifications,
  .contact-section,
  .related-section,
  .detail-section {
    padding: 48px 0 !important;
  }

  .section-title {
    font-size: 26px !important;
  }

  .page-hero {
    padding: 50px 0 !important;
  }

  .page-hero h1 {
    font-size: 30px !important;
  }

  .stats h2 {
    font-size: 36px !important;
  }

  /* Hakkımızda: 2 sütunu üst üste */
  .about .row,
  .about-intro .row {
    flex-direction: column;
  }

  .about img,
  .about-intro img {
    margin-bottom: 24px;
  }

  /* Ürün detay sticky CTA */
  .sticky-cta {
    position: static !important;
  }

  /* Referanslar filtre butonları */
  .filter-btn {
    font-size: 13px;
    padding: 6px 14px;
  }
}

/* Tablet (768–991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .section-title {
    font-size: 30px !important;
  }

  .page-hero h1 {
    font-size: 38px !important;
  }

  .carousel-item img {
    height: 420px;
  }
}

/* ═══════════════════════════════════════════════════════
   9. UTILITY EKLEMELERİ
   ═══════════════════════════════════════════════════════ */

/* Yeşil metin */
.text-pb-green { color: #198754 !important; }

/* Hafif yeşil arka plan */
.bg-pb-light { background-color: #e8f5e9 !important; }

/* Yumuşak gölge */
.shadow-pb { box-shadow: 0 4px 20px rgba(0,0,0,.1) !important; }

/* Yuvarlak köşe standart */
.rounded-pb { border-radius: 12px !important; }

/* Geçiş standardı */
.transition-pb { transition: all .3s ease !important; }

/* Tam yükseklik section */
.section-full { min-height: 100vh; display: flex; align-items: center; }

/* Görsel kapsama */
.img-cover { object-fit: cover; width: 100%; }

/* Link temizleme */
.link-clean {
  text-decoration: none;
  color: inherit;
}
.link-clean:hover { color: #198754; }