/* =====================================================================
   Arıtma Sitesi - Genel Stil (Mobile-first, responsive)
   ===================================================================== */
:root {
  --color-primary: #0a6f9e;
  --color-primary-dark: #084f6f;
  --color-accent: #14b8a6;
  --color-accent-light: #e6f7f5;
  --color-bordo: #862343;
  --color-dark: #102632;
  --color-light: #eef7f9;
  --color-border: #dbe9ed;
  --color-text: #24363f;
  --max-width: 1200px;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(10, 111, 158, 0.10);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100%; }
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--color-text);
  line-height: 1.6;
  background-color: #ffffff;
  background-image:
    radial-gradient(circle at 6% 8%, rgba(20,184,166,.08), transparent 30%),
    radial-gradient(circle at 95% 12%, rgba(10,111,158,.07), transparent 28%),
    radial-gradient(circle at 10% 90%, rgba(10,111,158,.06), transparent 30%),
    radial-gradient(circle at 92% 94%, rgba(20,184,166,.07), transparent 28%),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22160%22%20height%3D%22160%22%3E%3Ccircle%20cx%3D%2220%22%20cy%3D%2220%22%20r%3D%221.6%22%20fill%3D%22%230a6f9e%22%20opacity%3D%220.10%22/%3E%3Ccircle%20cx%3D%22100%22%20cy%3D%2260%22%20r%3D%221.2%22%20fill%3D%22%2314b8a6%22%20opacity%3D%220.10%22/%3E%3Ccircle%20cx%3D%2260%22%20cy%3D%22110%22%20r%3D%221.8%22%20fill%3D%22%230a6f9e%22%20opacity%3D%220.08%22/%3E%3Ccircle%20cx%3D%22140%22%20cy%3D%22130%22%20r%3D%221.3%22%20fill%3D%22%2314b8a6%22%20opacity%3D%220.09%22/%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%22140%22%20r%3D%221%22%20fill%3D%22%230a6f9e%22%20opacity%3D%220.09%22/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat;
  background-attachment: fixed, fixed, fixed, fixed, fixed;
}

@media (max-width: 700px) {
  /* Mobilde fixed arka plan performans sorunu yaratabildiği için kapatılır */
  body { background-attachment: scroll, scroll, scroll, scroll, scroll; }
}
img { max-width: 100%; display: block; }
iframe, video, embed, object { max-width: 100%; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 30px;
  background: var(--color-primary); color: #fff; font-weight: 600;
  border: none; cursor: pointer; transition: background .2s ease;
}
.btn:hover { background: var(--color-primary-dark); color: #fff; }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--color-primary); }

/* Teklif Alın ile aynı stil (şeffaf zemin + çerçeve), sadece çerçeve/dolgu
   rengi bordo - iki butonun birbirinden ayırt edilmesi için */
.btn-outline-bordo { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline-bordo:hover { background: var(--color-bordo); color: #fff; border-color: var(--color-bordo); }

/* ---------- Top Bar (WhatsApp/e-posta + sosyal medya) ---------- */
.top-bar { background: var(--color-dark); color: #cfe3ea; font-size: 13px; }
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px; gap: 16px; }
.top-bar-left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.top-bar-link { display: inline-flex; align-items: center; gap: 6px; color: #cfe3ea; font-weight: 500; }
.top-bar-link:hover { color: var(--color-accent); }
.tb-icon { width: 15px; height: 15px; flex-shrink: 0; }
.top-bar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #ffffff;
  transition: background .2s ease, transform .2s ease;
}
.social-icon svg { width: 14px; height: 14px; }
.social-icon:hover { background: var(--color-accent); color: #fff; transform: translateY(-1px); }
@media (max-width: 700px) {
  .top-bar-link span { display: none; } /* mobilde sadece ikon, metin gizlenir */
  .top-bar-inner { padding: 8px 16px; }
}
@media (max-width: 420px) {
  .top-bar-left { gap: 14px; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: var(--color-dark); }
.logo img { max-height: 48px; width: auto; }
.main-nav > ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.main-nav a { font-weight: 600; color: var(--color-dark); padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--color-primary); border-color: var(--color-primary); }
.nav-toggle { display: none; background: none; border: none; font-size: 28px; cursor: pointer; color: var(--color-dark); }

/* ---------- Ürünler menüsü altındaki kategori dropdown'ı ---------- */
.has-dropdown { position: relative; }
.dropdown-caret { font-size: 10px; margin-left: 2px; display: inline-block; }
.dropdown-menu { list-style: none; margin: 0; padding: 0; display: block; }
.dropdown-menu li { display: block; }

@media (min-width: 861px) {
  .dropdown-menu {
    position: absolute; top: 100%; left: 0; width: max-content; min-width: 230px; max-width: 320px;
    margin-top: 6px; background: #fff; border-radius: 10px; box-shadow: 0 12px 28px rgba(0,0,0,.14);
    padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 200;
  }
  .has-dropdown:hover .dropdown-menu,
  .has-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
  .dropdown-menu li { border-bottom: none !important; }
  .dropdown-menu a {
    display: block; padding: 10px 20px !important; font-weight: 500 !important;
    color: var(--color-dark); border-bottom: none !important; white-space: nowrap;
  }
  .dropdown-menu a:hover { background: var(--color-light); color: var(--color-primary); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,.08); max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 80vh; overflow-y: auto; }
  .main-nav > ul { flex-direction: column; gap: 0; padding: 10px 20px; }
  .main-nav li { border-bottom: 1px solid var(--color-border); }
  .main-nav a { display: block; padding: 14px 0; }

  /* Mobilde dropdown, Ürünler linkinin altında girintili sabit bir liste olarak görünür */
  .dropdown-menu { background: var(--color-light); margin: 0 -20px; padding: 6px 0; }
  .dropdown-menu li { border-bottom: 1px solid var(--color-border); }
  .dropdown-menu li:last-child { border-bottom: none; }
  .dropdown-menu a { padding: 10px 20px 10px 34px !important; font-size: 13.5px; font-weight: 500; color: #5c7078; }
  .dropdown-caret { display: none; }
}

/* ---------- Anasayfa üst Banner Slider ---------- */
.banner-slider {
  position: relative; overflow: hidden; background: var(--color-light);
  aspect-ratio: 21/7; max-height: 520px;
}
.banner-track { display: flex; height: 100%; transition: transform .8s ease; }
.banner-slide { flex: 0 0 100%; height: 100%; }
.banner-slide a { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; }
.banner-slide a.banner-slide-nolink { cursor: default; pointer-events: none; }
/* Fotoğrafın kendisinin bulanıklaştırılmış kopyası, alanı tamamen kaplar */
.banner-backdrop {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: blur(30px) brightness(1.05); transform: scale(1.2); z-index: 0;
}
/* Orijinal fotoğraf HİÇ KIRPILMADAN, oranı korunarak ortalanır */
.banner-img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.85); color: var(--color-dark); font-size: 17px;
  box-shadow: 0 2px 10px rgba(0,0,0,.18); transition: background .2s ease;
}
.banner-arrow:hover { background: #fff; color: var(--color-primary); }
.banner-arrow-prev { left: 18px; }
.banner-arrow-next { right: 18px; }
.banner-play-pause {
  position: absolute; bottom: 16px; right: 18px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.85); color: var(--color-dark); font-size: 11px;
  box-shadow: 0 2px 8px rgba(0,0,0,.16); transition: background .2s ease;
  display: flex; align-items: center; justify-content: center;
}
.banner-play-pause:hover { background: #fff; color: var(--color-primary); }
.banner-dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.banner-dot {
  width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.55);
  border: none; cursor: pointer; padding: 0; transition: background .2s ease, transform .2s ease;
}
.banner-dot.active { background: #fff; transform: scale(1.25); }
@media (max-width: 700px) {
  .banner-slider { aspect-ratio: 4/3; max-height: 360px; }
  .banner-arrow { width: 36px; height: 36px; font-size: 14px; }
  .banner-play-pause { width: 28px; height: 28px; bottom: 12px; right: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background-color: var(--color-primary-dark);
  background-image:
    linear-gradient(135deg, rgba(10,111,158,.95) 0%, rgba(8,79,111,.97) 100%),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22240%22%20height%3D%22240%22%3E%3Ccircle%20cx%3D%2224%22%20cy%3D%2234%22%20r%3D%223%22%20fill%3D%22white%22%20opacity%3D%220.14%22/%3E%3Ccircle%20cx%3D%22150%22%20cy%3D%2270%22%20r%3D%225%22%20fill%3D%22white%22%20opacity%3D%220.10%22/%3E%3Ccircle%20cx%3D%2290%22%20cy%3D%22150%22%20r%3D%222.5%22%20fill%3D%22white%22%20opacity%3D%220.16%22/%3E%3Ccircle%20cx%3D%22200%22%20cy%3D%22190%22%20r%3D%224%22%20fill%3D%22white%22%20opacity%3D%220.09%22/%3E%3Ccircle%20cx%3D%2260%22%20cy%3D%22200%22%20r%3D%222%22%20fill%3D%22white%22%20opacity%3D%220.13%22/%3E%3Ccircle%20cx%3D%22180%22%20cy%3D%2220%22%20r%3D%223.5%22%20fill%3D%22white%22%20opacity%3D%220.11%22/%3E%3C/svg%3E");
  background-repeat: no-repeat, repeat;
  background-size: cover, 240px 240px;
  background-attachment: scroll, fixed;
  color: #fff; padding: 80px 20px 110px; text-align: center;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px;
  background: url("data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%201200%20120%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M0%2C50%20C250%2C120%20350%2C0%20600%2C45%20C850%2C90%20950%2C10%201200%2C55%20L1200%2C120%20L0%2C120%20Z%22%20fill%3D%22%23ffffff%22/%3E%3C/svg%3E")
    no-repeat bottom center / 100% 100%;
}
.hero h1 { position: relative; font-size: clamp(26px, 4vw, 44px); margin: 0 0 14px; }
.hero p { position: relative; font-size: clamp(15px, 2vw, 19px); max-width: 700px; margin: 0 auto 26px; opacity: .95; }
.hero .hero-actions { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 700px) {
  /* Mobilde background-attachment: fixed performans sorunu yaratabildiği için kapatılır */
  .hero { background-attachment: scroll, scroll; }
}

/* ---------- Sections ---------- */
.section { padding: 60px 20px; }
.section-light { background: var(--color-light); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 {
  font-size: clamp(22px, 3vw, 32px); color: var(--color-dark); margin: 0 0 12px;
  position: relative; padding-bottom: 14px; display: inline-block;
}
.section-title h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 48px; height: 3px; background: var(--color-accent); border-radius: 2px;
}
.section-title p { color: #647680; max-width: 600px; margin: 0 auto; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--color-border); border-top: 3px solid var(--color-accent);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(10,111,158,.16); }
.card-img {
  width: 100%; aspect-ratio: 4/3; object-fit: contain; object-position: center;
  background: var(--color-light); padding: 14px;
}
.card-body { padding: 18px; }
.card-body h3 { margin: 0 0 8px; font-size: 18px; color: var(--color-dark); }
.card-body p { color: #647680; font-size: 14px; margin: 0 0 12px; }
.card-price { font-weight: 700; color: var(--color-primary); font-size: 16px; }

/* ---------- Category filter (Ürünler) ---------- */
.category-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; justify-content: center; }
.category-filter a {
  padding: 8px 18px; border-radius: 20px; border: 1px solid var(--color-border);
  color: var(--color-dark); font-weight: 600; font-size: 14px; transition: all .2s ease;
}
.category-filter a.active, .category-filter a:hover {
  background: var(--color-accent); color: #fff; border-color: var(--color-accent);
}

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .product-detail { grid-template-columns: 1fr; } }
.gallery-main {
  position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 12px;
  border: 1px solid var(--color-border); background: var(--color-light);
}
.detail-main-img { width: 100%; max-height: 460px; object-fit: contain; object-position: center; background: var(--color-light); cursor: zoom-in; display: block; margin: 0 auto; }
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.85); color: var(--color-dark); font-size: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15); transition: background .2s ease;
}
.gallery-arrow:hover { background: #fff; color: var(--color-primary); }
.gallery-arrow-prev { left: 12px; }
.gallery-arrow-next { right: 12px; }
.gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.gallery-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; background: var(--color-light); }
.gallery-thumbs img.active { border-color: var(--color-primary); }
.product-price-box { font-size: 24px; color: var(--color-primary); font-weight: 700; margin: 14px 0; }

/* ---------- Lightbox (tam ekran zoom görüntüleyici) ---------- */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(9,22,28,.94); z-index: 1000;
  display: none; align-items: center; justify-content: center; flex-direction: column;
}
.lightbox-overlay.open { display: flex; }
.lightbox-stage { max-width: 92vw; max-height: 78vh; overflow: hidden; display: flex; align-items: center; justify-content: center; touch-action: none; }
.lightbox-img { max-width: 92vw; max-height: 78vh; transition: transform .12s ease-out; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.lightbox-close { position: absolute; top: 18px; right: 24px; background: none; border: none; color: #fff; font-size: 32px; cursor: pointer; line-height: 1; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.14);
  border: none; color: #fff; font-size: 20px; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  transition: background .2s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,.28); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-hint { color: #cfe3ea; font-size: 13px; margin-top: 16px; opacity: .85; text-align: center; padding: 0 20px; }
@media (max-width: 700px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 17px; }
  .lightbox-close { font-size: 28px; }
  .gallery-arrow { width: 36px; height: 36px; font-size: 14px; }
}

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.pagination a, .pagination span {
  min-width: 38px; text-align: center; padding: 8px; border-radius: 6px; border: 1px solid var(--color-border); font-weight: 600;
}
.pagination .active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--color-dark); }
.form-control {
  width: 100%; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 8px;
  font-size: 15px; font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--color-primary); }
textarea.form-control { min-height: 140px; resize: vertical; }
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-weight: 600; }
.alert-success { background: #e5f8f0; color: #0d7a4f; border: 1px solid #b7ebd2; }
.alert-error { background: #fdecec; color: #b3261e; border: 1px solid #f5c2c0; }

/* ---------- About / Contact info blocks ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.info-list li b { color: var(--color-dark); min-width: 90px; }

/* İletişim sayfasındaki harita embed alanı - admin panelinden girilen
   iframe kodu sabit piksel genişlikte gelse bile taşmayı engeller */
.two-col > div:last-child { max-width: 100%; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; background: var(--color-dark); color: #cfe3ea;
  padding: 60px 20px 20px; margin-top: 40px;
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -49px; height: 50px;
  background: url("data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%201200%20120%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M0%2C50%20C250%2C120%20350%2C0%20600%2C45%20C850%2C90%20950%2C10%201200%2C55%20L1200%2C120%20L0%2C120%20Z%22%20fill%3D%22%23102632%22/%3E%3C/svg%3E")
    no-repeat bottom center / 100% 100%;
}
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; max-width: var(--max-width); margin: 0 auto; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; margin: 0 0 14px; position: relative; padding-bottom: 8px; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; background: var(--color-accent); border-radius: 2px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cfe3ea; }
.site-footer a:hover { color: var(--color-accent); }
.footer-bottom { text-align: center; margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #8fa9b3; }

.empty-state { text-align: center; padding: 60px 20px; color: #8098a3; }

/* ---------- Sabit WhatsApp Balonu ---------- */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 500;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 8px 22px rgba(0,0,0,.3); color: #fff; }
.whatsapp-float-icon { width: 30px; height: 30px; }
.whatsapp-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #25D366; opacity: .55; animation: whatsapp-pulse 2.2s ease-out infinite;
  z-index: -1;
}
@keyframes whatsapp-pulse {
  0%   { transform: scale(1);   opacity: .55; }
  100% { transform: scale(1.7); opacity: 0; }
}
@media (max-width: 700px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .whatsapp-float-icon { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float::before { animation: none; }
}

/* ---------- Referanslar / Müşterilerimiz ---------- */
.reference-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
@media (max-width: 960px) { .reference-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .reference-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .reference-grid { grid-template-columns: 1fr; } }

.reference-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.reference-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(10,111,158,.14); }

/* Logo hiç kırpılmadan, oranı korunarak gösterilir (ürün kartlarıyla tutarlı);
   tıklanınca lightbox açıldığı için zoom-in imleci gösterilir */
.reference-logo {
  width: 100%; height: 80px; object-fit: contain; object-position: center;
  cursor: zoom-in;
}
.reference-name { font-weight: 700; color: var(--color-dark); font-size: 15px; }
.reference-comment {
  font-size: 13.5px; color: #647680; font-style: italic; line-height: 1.5;
  padding-top: 6px; border-top: 1px dashed var(--color-border); width: 100%;
}
.reference-website-link {
  font-size: 12.5px; font-weight: 600; color: var(--color-primary);
  margin-top: -4px;
}
.reference-website-link:hover { color: var(--color-primary-dark); }

/* ---------- Hizmetler ---------- */
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px;
}
@media (max-width: 860px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  background: #fff; border: 1px solid var(--color-border); border-top: 3px solid var(--color-accent);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 24px;
  text-align: center; transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(10,111,158,.14); }

.service-icon {
  width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--color-accent-light); display: flex; align-items: center; justify-content: center;
  font-size: 32px; line-height: 1;
}
.service-title { margin: 0 0 10px; font-size: 17px; color: var(--color-dark); }
.service-description { margin: 0; font-size: 14px; color: #647680; line-height: 1.6; }

.service-cta {
  text-align: center; padding: 32px 20px; background: var(--color-light);
  border-radius: var(--radius); border: 1px solid var(--color-border);
}
.service-cta p { margin: 0 0 16px; color: var(--color-dark); font-weight: 600; }

/* ---------- Sertifikalar ---------- */
.certificate-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
@media (max-width: 960px) { .certificate-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .certificate-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .certificate-grid { grid-template-columns: 1fr; } }

.certificate-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.certificate-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(10,111,158,.14); }

.certificate-preview {
  aspect-ratio: 3/4; background: var(--color-light); display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--color-border); overflow: hidden;
}
/* Belge görseli HİÇ KIRPILMADAN, oranı korunarak gösterilir (site genelindeki politikayla tutarlı) */
.certificate-image { width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 10px; }

.certificate-pdf-preview {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--color-primary);
}
.certificate-pdf-icon { font-size: 52px; line-height: 1; }
.certificate-pdf-label {
  font-size: 12px; font-weight: 700; letter-spacing: .5px; color: #fff;
  background: var(--color-bordo); padding: 2px 10px; border-radius: 4px;
}

.certificate-body { padding: 16px; text-align: center; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.certificate-title { font-weight: 700; color: var(--color-dark); font-size: 14.5px; line-height: 1.4; flex: 1; }
.certificate-action {
  display: inline-block; padding: 8px 14px; border-radius: 20px; font-size: 12.5px; font-weight: 700;
  background: var(--color-accent-light); color: var(--color-primary-dark);
  transition: background .2s ease, color .2s ease;
}
.certificate-action:hover { background: var(--color-accent); color: #fff; }
