/* =========================================================
   Burkervan Soğutma & Paslanmaz - Ana Stil Dosyası (Responsive)
   ========================================================= */

:root {
  --primary: #0B5ED7;
  --primary-dark: #094aad;
  --secondary: #1E3A8A;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --bg-light: #F5F8FC;
  --bg-white: #FFFFFF;
  --text-dark: #1B2430;
  --text-muted: #6B7A90;
  --border-color: #E4E9F1;
  --radius: 16px;
  --shadow-soft: 0 10px 30px rgba(11, 94, 215, 0.08);
  --shadow-hover: 0 20px 40px rgba(11, 94, 215, 0.16);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.25; color: var(--text-dark); }

/* ---------------- Topbar ---------------- */
.topbar { background: var(--secondary); color: #dce6fa; font-size: 13px; padding: 8px 0; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar-left span { margin-right: 20px; }
.topbar-left i { color: #9dc0ff; margin-right: 6px; }
.topbar-right a { color: #dce6fa; margin-left: 14px; font-size: 14px; transition: var(--transition); }
.topbar-right a:hover { color: #fff; }

/* ---------------- Header ---------------- */
.main-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 24px; }
.logo img { height: 46px; }
.main-nav ul { display: flex; gap: 4px; align-items: center; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block; padding: 12px 16px; font-weight: 600; font-size: 15px;
  color: var(--text-dark); border-radius: 10px; transition: var(--transition);
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active { color: var(--primary); background: rgba(11,94,215,0.08); }
.has-dropdown .dropdown {
  position: absolute; top: 100%; left: 0; background: #fff; min-width: 220px;
  border-radius: 12px; box-shadow: var(--shadow-hover); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: var(--transition); border: 1px solid var(--border-color);
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown .dropdown li a { padding: 10px 14px; border-radius: 8px; display: block; font-weight: 500; }
.has-dropdown .dropdown li a:hover { background: var(--bg-light); color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-whatsapp {
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff; font-size: 20px; transition: var(--transition);
}
.btn-whatsapp:hover { transform: scale(1.08); }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; color: var(--text-dark); cursor: pointer; }

/* ---------------- Buttons ---------------- */
.btn-gradient {
  background: var(--gradient); color: #fff; font-weight: 600; padding: 12px 26px;
  border-radius: 50px; display: inline-block; border: none; cursor: pointer;
  box-shadow: 0 8px 20px rgba(11,94,215,0.3); transition: var(--transition);
}
.btn-gradient:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(11,94,215,0.4); color: #fff; }
.btn-outline {
  border: 2px solid var(--primary); color: var(--primary); font-weight: 600; padding: 10px 24px;
  border-radius: 50px; display: inline-block; transition: var(--transition); background: transparent;
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ---------------- Glass Cards ---------------- */
.glass {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.5);
}
.card {
  background: var(--bg-white); border-radius: var(--radius); box-shadow: var(--shadow-soft);
  overflow: hidden; transition: var(--transition); border: 1px solid var(--border-color);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }

/* ---------------- Hero / Slider ---------------- */
.hero-slider { position: relative; height: 640px; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  display: flex; align-items: center; opacity: 0; transition: opacity 1s ease; z-index: 1;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,26,58,0.82) 0%, rgba(15,26,58,0.45) 60%, rgba(15,26,58,0.15) 100%);
}
.hero-content { position: relative; z-index: 3; color: #fff; max-width: 640px; padding: 0 24px; }
.hero-content h1 { font-size: 46px; margin-bottom: 18px; }
.hero-content p { font-size: 18px; margin-bottom: 28px; color: #dce6fa; }
.hero-dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 4; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; cursor: pointer; }
.hero-dots button.active { background: #fff; width: 30px; border-radius: 8px; transition: var(--transition); }

/* ---------------- Sections ---------------- */
.section { padding: 90px 0; }
.section-tight { padding: 60px 0; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section-header .eyebrow {
  color: var(--primary); font-weight: 700; text-transform: uppercase; font-size: 13px;
  letter-spacing: 1.5px; display: inline-block; margin-bottom: 12px;
}
.section-header h2 { font-size: 36px; margin-bottom: 14px; }
.section-header p { color: var(--text-muted); font-size: 16px; }
.bg-alt { background: var(--bg-white); }

/* ---------------- Grids ---------------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------------- Service Card ---------------- */
.service-card { padding: 36px 28px; text-align: center; }
.service-card .icon {
  width: 76px; height: 76px; border-radius: 20px; background: var(--gradient); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 30px; margin: 0 auto 20px;
}
.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 16px; }

/* ---------------- Product Card ---------------- */
.product-card .img-wrap { height: 220px; overflow: hidden; position: relative; }
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .img-wrap img { transform: scale(1.08); }
.product-card .body { padding: 22px; }
.product-card .cat-tag { color: var(--primary); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.product-card h3 { font-size: 18px; margin: 8px 0 10px; }
.product-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }
.product-card .card-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.product-card .card-actions a { flex: 1; text-align: center; font-size: 13.5px; padding: 10px 14px; white-space: nowrap; }

/* ---------------- Stats ---------------- */
.stats-section { background: var(--gradient); color: #fff; }
.stat-item { text-align: center; }
.stat-item .number { font-size: 44px; font-weight: 800; margin-bottom: 6px; }
.stat-item .label { color: #d6e4ff; font-size: 14.5px; }

/* ---------------- Testimonials ---------------- */
.testimonial-card { padding: 32px; position: relative; }
.testimonial-card i.fa-quote-left { color: var(--primary); font-size: 26px; opacity: 0.3; margin-bottom: 14px; }
.testimonial-card p { font-style: italic; color: var(--text-muted); margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author .avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--gradient); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* ---------------- Blog Card ---------------- */
.blog-card .img-wrap { height: 200px; overflow: hidden; }
.blog-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .img-wrap img { transform: scale(1.08); }
.blog-card .body { padding: 22px; }
.blog-card .meta { font-size: 12.5px; color: var(--text-muted); margin-bottom: 8px; }
.blog-card h3 { font-size: 18px; margin-bottom: 10px; }
.blog-card p { color: var(--text-muted); font-size: 14px; }

/* ---------------- Reference Logos ---------------- */
.reference-card { text-align: center; padding: 28px; }
.reference-card h4 { margin-top: 14px; font-size: 16px; }
.reference-card span { color: var(--text-muted); font-size: 13px; }

/* ---------------- Gallery ---------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { border-radius: 14px; overflow: hidden; cursor: pointer; position: relative; height: 220px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item::after {
  content: '\f00e'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; inset: 0;
  background: rgba(11,94,215,0.55); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 24px; opacity: 0; transition: var(--transition);
}
.gallery-item:hover::after { opacity: 1; }

/* ---------------- Forms ---------------- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14.5px; }
.form-control {
  width: 100%; padding: 13px 16px; border: 1px solid var(--border-color); border-radius: 10px;
  font-size: 14.5px; font-family: inherit; transition: var(--transition); background: #fff;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,94,215,0.12); }
textarea.form-control { resize: vertical; min-height: 130px; }

/* ---------------- Contact ---------------- */
.contact-info-card { padding: 26px; display: flex; gap: 16px; align-items: flex-start; }
.contact-info-card .icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--gradient); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.map-embed iframe { width: 100%; height: 350px; border-radius: var(--radius); border: 0; }

/* ---------------- Footer ---------------- */
.main-footer { background: #0F1A3A; color: #b8c4de; padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer-logo { height: 44px; margin-bottom: 16px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #b8c4de; transition: var(--transition); font-size: 14.5px; }
.footer-col ul li a:hover { color: #fff; padding-left: 4px; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 14px; font-size: 14px; }
.footer-contact li i { color: var(--primary); margin-top: 3px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 0; text-align: center; font-size: 13.5px; }

/* ---------------- Floating Buttons ---------------- */
.whatsapp-float {
  position: fixed; bottom: 26px; left: 26px; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: 0 10px 24px rgba(37,211,102,0.4); z-index: 400; transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); }
.back-to-top {
  position: fixed; bottom: 26px; right: 26px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--gradient); color: #fff; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition); z-index: 400;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------------- Breadcrumb / Page Header ---------------- */
.page-header { background: var(--gradient); color: #fff; padding: 70px 0; text-align: center; }
.page-header h1 { font-size: 36px; margin-bottom: 10px; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; font-size: 14px; color: #d6e4ff; flex-wrap: wrap; }
.breadcrumb a { color: #d6e4ff; }
.breadcrumb a:hover { color: #fff; }

/* ---------------- Pagination ---------------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span {
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--border-color); font-weight: 600; transition: var(--transition);
}
.pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .active { background: var(--gradient); color: #fff; border-color: transparent; }

/* ---------------- Utilities ---------------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; } .mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; } .mb-4 { margin-bottom: 32px; }
.alert { padding: 16px 20px; border-radius: 10px; margin-bottom: 20px; font-size: 14.5px; }
.alert-success { background: #E7F7EE; color: #14804A; border: 1px solid #BEEBD1; }
.alert-error { background: #FDECEC; color: #B42318; border: 1px solid #F6C6C2; }

/* ---------------- FAQ Accordion ---------------- */
.faq-answer { display: none; }
.card.open .faq-answer { display: block; }
.card.open .faq-question i { transform: rotate(180deg); }
.faq-question i { transition: var(--transition); }

/* ============ MOBİL ÜRÜN FİLTRELERİ (ürünler.php için) ============ */
.mobile-filters { display: none; margin-bottom: 20px; }
.mobile-filters .search-row { display: flex; gap: 8px; margin-bottom: 14px; }
.mobile-filters .search-row input { flex: 1; }
.mobile-filters .category-scroll {
  display: flex; overflow-x: auto; white-space: nowrap; padding-bottom: 8px;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.mobile-filters .category-scroll a {
  display: inline-block; padding: 8px 16px; margin-right: 8px; border-radius: 50px; font-size: 13px;
  font-weight: 600; text-decoration: none; transition: var(--transition);
  background: #f0f4fa; color: var(--text-dark); flex-shrink: 0;
}
.mobile-filters .category-scroll a.active,
.mobile-filters .category-scroll a:hover {
  background: var(--gradient); color: #fff;
}

/* Sidebar (ürünler sayfasındaki sol filtre) */
.desktop-filters { display: block; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Topbar */
  .topbar-left span:last-child { display: none; }

  /* Mobil menü */
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: #fff;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1); transition: right 0.35s ease; padding: 90px 24px 24px; z-index: 600;
    overflow-y: auto;
  }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .has-dropdown .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    display: none; margin-left: 15px; border-left: 2px solid var(--primary);
  }
  .has-dropdown.open .dropdown { display: block; }
  .header-actions .btn-gradient { display: none; }

  /* Hero */
  .hero-content h1 { font-size: 28px; }
  .hero-content p { font-size: 16px; }
  .hero-slider { height: 480px; }
  .hero-slide::before {
    background: linear-gradient(0deg, rgba(15,26,58,0.85) 0%, rgba(15,26,58,0.5) 100%);
  }

  /* Genel gridler tek sütun */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }

  /* Section boşluk */
  .section { padding: 60px 0; }
  .page-header { padding: 50px 0; }
  .page-header h1 { font-size: 28px; }

  /* Butonlar tam genişlik (opsiyonel) */
  .btn-gradient, .btn-outline { display: block; width: 100%; text-align: center; }

  /* Product card actions alt alta */
  .product-card .card-actions { flex-direction: column; }
  .product-card .card-actions a { width: 100%; }

  /* Harita yüksekliği */
  .map-embed iframe { height: 250px; }

  /* İstatistikler */
  .stat-item .number { font-size: 36px; }

  /* Blog detay görseli */
  .blog-detail-img { border-radius: 12px; }

  /* Mobil ürün filtreleri görünür, masaüstü sidebar gizlenir */
  .mobile-filters { display: block; }
  .desktop-filters { display: none; }

  /* Hizmet detay / hakkımızda resimleri ortala */
  .about-img, .service-img {
    max-width: 280px; margin: 0 auto 20px; display: block;
  }
  .service-icon { margin-left: auto; margin-right: auto; }

  /* Footer */
  .footer-grid { gap: 30px; }
  .footer-col { text-align: center; }
  .footer-social { justify-content: center; }
  .footer-contact li { justify-content: center; }

  /* WhatsApp butonu mobilde boyut */
  .whatsapp-float { width: 50px; height: 50px; font-size: 24px; bottom: 20px; left: 20px; }
  .back-to-top { width: 42px; height: 42px; bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 24px; }
  .hero-slider { height: 400px; }
  .section-header h2 { font-size: 26px; }
  .section { padding: 50px 0; }
  .gallery-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }

  /* Ürün kartı görseli */
  .product-card .img-wrap { height: 180px; }
  .blog-card .img-wrap { height: 180px; }
  .card-actions .btn-outline, .card-actions .btn-gradient { font-size: 13px; padding: 8px; }
  
  /* Mobil filtreler */
  .mobile-filters .category-scroll a { font-size: 12px; padding: 6px 12px; }

  .stat-item .number { font-size: 30px; }
}