/*
   Modern + Mobil uyumluluk + SEO dostu stiller
   Art Epoksi - Tüm sayfalarda kullanılır
*/

/* === Temel mobil ve modern === */
:root {
  --epoksi-primary: #006dd2;
  --epoksi-text: #222;
  --epoksi-muted: #6c757d;
  --touch-min: 44px;
  --container-padding: 15px;
  --safe-area-inset: env(safe-area-inset-bottom, 0);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Mobil: dokunmatik hedefler en az 44px (shortcut butonları hariç) */
@media (max-width: 991px) {
  .header-nav .navbar-nav a,
  .site-header a[href^="tel:"],
  .btn-orange,
  .site-button {
    min-height: var(--touch-min);
    min-width: var(--touch-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
  }

  .navbar-nav > li > a {
    padding: 14px 18px;
  }
}

/* === Modern WhatsApp & Arama (floating) – tek blok, masaüstü + mobil === */
.shortcut_container {
  position: fixed !important;
  left: 12px !important;
  bottom: max(20px, env(safe-area-inset-bottom, 20px)) !important;
  width: auto !important;
  height: auto !important;
  z-index: 999;
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}
.shortcut_container > a {
  pointer-events: auto;
}
.shortcut_icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15) !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
  overflow: hidden;
}
.shortcut_icon:hover {
  margin-left: 0 !important;
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2) !important;
}
.shortcut_icon img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .shortcut_container {
    left: max(12px, env(safe-area-inset-left, 12px)) !important;
    bottom: max(16px, env(safe-area-inset-bottom, 16px)) !important;
    gap: 12px;
  }
  .shortcut_icon {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
  }
}

/* Responsive görseller - taşmayı önle */
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.page-content .container img,
.dlab-media img,
.referans-card img {
  max-width: 100%;
  height: auto;
}

/* Mobil menü kapatıldığında scroll kilidi kaldır */
body.menu-open {
  overflow: hidden;
}

@media (max-width: 991px) {
  .header-nav.collapse:not(.show) {
    display: none;
  }
  .header-nav.collapse.show {
    display: block;
    max-height: 90vh;
    overflow-y: auto;
  }
  .sub-menu {
    padding-left: 1rem;
  }
}

/* Hizmet kartları mobil */
@media (max-width: 767px) {
  .service-box-2 .dlab-media img,
  .dlab-box.service-box-2 img {
    width: 100%;
    height: auto !important;
    min-height: 180px;
    object-fit: cover;
  }
  .section-head .title {
    font-size: 1.5rem;
  }
  .content-block .container {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }
}

/* Referanslar grid mobil */
@media (max-width: 576px) {
  .referans-card {
    min-height: 120px;
    padding: 15px;
  }
  .referans-card img {
    max-height: 60px;
  }
}

/* Footer mobil */
@media (max-width: 767px) {
  .site-footer .widget-link ul li {
    display: block;
    margin-bottom: 8px;
  }
  .site-footer .p-tb60 {
    padding-top: 2rem;
    padding-bottom: calc(2rem + var(--safe-area-inset));
  }
}

/* SEO: başlık hiyerarşisi görsel */
h1 { font-size: 1.75rem; }
@media (min-width: 768px) {
  h1 { font-size: 2rem; }
}

/* Skip link - erişilebilirlik ve SEO */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 12px 24px;
  background: var(--epoksi-primary);
  color: #fff;
  border-radius: 4px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 10px;
}

/* CTA buton mobil */
.btn-orange {
  min-height: var(--touch-min);
  padding: 12px 24px;
  font-size: 1rem;
}

/* Container genişlik sınırı - okunabilirlik */
@media (min-width: 1200px) {
  .content-block .container {
    max-width: 1140px;
  }
}

/* container-fluid: soldan sağdan boşluk */
.container-fluid {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* İletişim sayfası: iki sütun, modern form ve bilgiler */
.contact-modern .contact-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
}
.contact-form-modern .form-group-modern {
  margin-bottom: 1.25rem;
}
.contact-form-modern label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #444;
  margin-bottom: 0.4rem;
}
.contact-form-modern .form-control-modern {
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form-modern .form-control-modern:focus {
  outline: 0;
  border-color: #006dd2;
  box-shadow: 0 0 0 3px rgba(0, 109, 210, 0.15);
}
.contact-form-modern .form-control-textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-form-modern .btn-contact-submit {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #006dd2;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form-modern .btn-contact-submit:hover {
  background: #005aad;
}
.contact-form-modern .contact-form-msg {
  margin-top: 1rem;
  font-size: 0.95rem;
  padding: 0.5rem 0;
}
.contact-form-modern .contact-form-msg.success { color: #0d6a2e; }
.contact-form-modern .contact-form-msg.error { color: #c00; }

.contact-info-list { margin-bottom: 1.5rem; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #444;
}
.contact-info-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 109, 210, 0.1);
  color: #006dd2;
  border-radius: 8px;
  font-size: 1.1rem;
}
.contact-info-text a { color: #006dd2; text-decoration: none; }
.contact-info-text a:hover { text-decoration: underline; }

.contact-social-modern {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.contact-social-modern .contact-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f0f0f0;
  color: #555;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.contact-social-modern .contact-social-icon:hover {
  background: #006dd2;
  color: #fff;
}
.contact-map-wrap { border-radius: 8px; overflow: hidden; }
@media (max-width: 991px) {
  .contact-modern .contact-section-title { margin-top: 1rem; }
  .contact-modern .col-lg-6:first-child .contact-section-title { margin-top: 0; }
}

/* Sika bölümü – mobil uyumlu */
@media (max-width: 991px) {
  .sika-section .sika-cert-img { margin-top: 0.5rem; }
}
