/* ==========================================================================
   MDL Medikal — mobil uyumluluk ve performans düzeltmeleri
   Masaüstü görünümünü değiştirmez; tablet/telefon boyutlarında devreye girer.
   ========================================================================== */

/* Alt bilgi iletişim satırları her ekranda okunur olsun (mavi zemin üzerinde açık mavi idi) */
.contact-info-footer p,
.contact-info-footer a { color: #fff !important; }
.contact-info-footer a:hover { text-decoration: underline; }

/* Yatay kayma/titreme önleme: taşmayı body yerine kökte kırp (iOS'ta body overflow sarsıntı yapar) */
html { overflow-x: clip; }
img, video, iframe { max-width: 100%; }

/* Anahtar kelime şeridi: bağlantı olmaktan çıkan kelimeler temadaki görünümünü korusun */
.marquee-card span { font-size: 56px; font-weight: 700; font-family: var(--title-font); color: var(--title-color); display: inline-block; line-height: 0.75em; margin-left: 30px; }
@media (max-width: 1199px) { .marquee-card span { font-size: 40px; } }
@media (max-width: 767.98px) { .marquee-card span { font-size: 26px; margin-left: 18px; } }

/* ---------- Alt bilgi (footer) sütunları ---------- */
.widget-area .mdl-foot { --bs-gutter-x: 40px; row-gap: 36px; align-items: flex-start; }
.mdl-foot-col { height: 100%; }
.mdl-foot-logo img { width: 200px; height: auto; display: block; margin-bottom: 18px; }
.mdl-foot-about { color: rgba(255, 255, 255, .82); font-size: 15px; line-height: 1.7; max-width: 40ch; margin: 0 0 22px; }
.mdl-foot-social { display: flex; gap: 10px; flex-wrap: wrap; }
.mdl-foot-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff; font-size: 16px; transition: background .2s, transform .2s; }
.mdl-foot-social a:hover { background: #fff; color: #0a6ea6; transform: translateY(-2px); }
.mdl-foot-title { color: #fff; font-size: 19px; font-weight: 700; margin: 6px 0 22px; padding-bottom: 12px; position: relative; }
.mdl-foot-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; border-radius: 2px; background: #ee7d22; }
.mdl-foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.mdl-foot-links a { color: rgba(255, 255, 255, .82); font-size: 15px; line-height: 1.4; text-decoration: none; transition: color .2s, padding-left .2s; }
.mdl-foot-links a:hover { color: #fff; padding-left: 4px; }
.mdl-foot-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mdl-foot-contact li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: rgba(255, 255, 255, .86); font-size: 15px; line-height: 1.55; }
.mdl-foot-contact i { color: #8fd3f5; font-size: 16px; margin-top: 3px; text-align: center; }
.mdl-foot-contact a { color: #fff; text-decoration: none; word-break: break-word; }
.mdl-foot-contact a:hover { text-decoration: underline; }
@media (max-width: 991.98px) {
  .widget-area .mdl-foot { --bs-gutter-x: 24px; row-gap: 30px; }
  .mdl-foot-title { font-size: 17px; margin-bottom: 16px; }
  .mdl-foot-links { gap: 9px; }
  .mdl-foot-links a, .mdl-foot-contact li { font-size: 14px; }
}

/* Kayarak belirme (scrollCue) dokunmatik/küçük ekranda ve hareket azaltmada kapalı (main.js).
   Tema bu öğeleri başlangıçta opacity:0 yapıyor; kapalıyken her zaman görünür olsunlar (iPhone'da beyaz alan hatası). */
@media (max-width: 991.98px), (hover: none), (prefers-reduced-motion: reduce) {
  [data-cue], [data-cues] > * { opacity: 1 !important; visibility: visible !important; animation: none !important; transform: none !important; }
}

/* Hareket azaltmayı tercih eden kullanıcılar */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Tablet ve telefon ---------- */
@media (max-width: 991.98px) {
  :root { --section-space: 64px; --section-space-mobile: 56px; }
  .space-extra, .space-extra-top { padding-top: 40px; }
  .space-extra, .space-extra-bottom { padding-bottom: 40px; }

  .sec-title { font-size: clamp(25px, 6vw, 34px) !important; line-height: 1.22 !important; }
  .title-area { margin-bottom: 28px !important; }
  .shadow-title, .shadow-text { display: none !important; }       /* dev arka plan yazıları */
  .shape-mockup { display: none !important; }                       /* dekoratif şekiller */

  /* Biz kimiz: büyük logo kaldırılır, iki fotoğraf yan yana */
  #about-sec .col-xxl-4.align-self-center { display: none !important; }
  #about-sec .row.gy-40 > .col-md-6 { width: 50%; flex: 0 0 50%; }
  #about-sec .img-box1 .img1 img { border-radius: 14px; aspect-ratio: 489 / 446; object-fit: cover; }

  /* Neden biz: dönen daire gizlenir, görsel yüksekliği sınırlanır */
  .why-sec-1 .circle-tag { display: none !important; }
  .why-sec-1 img { max-height: 420px; width: 100%; object-fit: cover; border-radius: 16px; }

  /* SSS: büyük soru işareti görseli gizlenir */
  .overflow-hidden.space .col-xxl-6.align-self-center:has(img[src*="sikca-sorulan"]) { display: none !important; }

  /* Gelişmiş teknoloji video alanı */
  .video-area-1 video { max-height: 56vw; object-fit: cover; }
}

@media (max-width: 767.98px) {
  /* Ürün kartları 2 sütun, kompakt */
  #service-sec .row.gy-4 { --bs-gutter-x: 12px; --bs-gutter-y: 12px; }
  #service-sec .row.gy-4 > [class*="col-"] { width: 50%; flex: 0 0 50%; }
  #service-sec .service-card { padding: 16px 14px 14px; border-radius: 14px; height: 100%; display: flex; flex-direction: column; }
  #service-sec .service-card .box-icon { margin-bottom: 10px; }
  #service-sec .service-card .box-title { font-size: 15.5px; line-height: 1.3; margin-bottom: 6px; }
  #service-sec .service-card .box-text { font-size: 13px; line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  #service-sec .service-card .link-btn { margin-top: auto; font-size: 13px; }

  /* Gelişmiş teknoloji kartları 2 sütun */
  #feature-sec .row.gy-4 > [class*="col-"] { width: 50%; flex: 0 0 50%; }
  #feature-sec .row.gy-4 { --bs-gutter-x: 12px; --bs-gutter-y: 12px; }
  #feature-sec .feature-card { padding: 18px 12px; border-radius: 14px; height: 100%; }
  #feature-sec .feature-card .box-title { font-size: 15.5px; }
  #feature-sec .feature-card .box-text { font-size: 12.5px; line-height: 1.5; }

  /* Biz kimiz kartları */
  .about-feature-card { padding: 4px 0; }

  /* Marka şeridi */
  .brand-area-1 { padding-top: 28px !important; padding-bottom: 28px !important; }
  .brand-box img { max-height: 34px; width: auto; }

  /* Anahtar kelime şeridi */

  /* Alt bilgi üst bandı (Teknoloji ve Sağlığı Buluşturuyoruz) */
  .footer-cta-wrap .sec-title { font-size: 26px !important; }
  .footer-cta-thumb img { max-height: 340px; width: auto; margin: 0 auto; display: block; }

  /* Sabit düğmeler alt menünün üstünde kalsın */
  .whatsapp-float { bottom: 86px !important; right: 14px !important; }
  .dmo-float { bottom: 86px !important; left: 14px !important; }
}

@media (max-width: 380px) {
  #service-sec .row.gy-4 > [class*="col-"],
  #feature-sec .row.gy-4 > [class*="col-"] { width: 100%; flex: 0 0 100%; }
}

/* Footer: dekoratif arka plan katmanı tıklamaları yutmasın */
.footer-default .widget-area .footer-widget-bg { pointer-events: none; }
.footer-default .widget-area > .container { position: relative; z-index: 1; }

/* Sitenin kaydırma çubuğu (body ile aynı: tema renginde çizgili tutamak) — iç kaydırmalı kutular */
.mdl-shop-cats::-webkit-scrollbar, .mdl-quote-dialog::-webkit-scrollbar, .mdl-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.mdl-shop-cats::-webkit-scrollbar-track, .mdl-quote-dialog::-webkit-scrollbar-track, .mdl-scroll::-webkit-scrollbar-track { background: rgba(252, 0, 18, .1); box-shadow: inset 0 0 6px rgba(0, 0, 0, .3); border-radius: 8px; }
.mdl-shop-cats::-webkit-scrollbar-thumb, .mdl-quote-dialog::-webkit-scrollbar-thumb, .mdl-scroll::-webkit-scrollbar-thumb {
  background-color: var(--theme-color, #00a4c2); border-radius: 8px;
  background-image: linear-gradient(45deg, rgba(255, 255, 255, .3) 25%, transparent 20%, transparent 50%, rgba(255, 255, 255, .3) 50%, rgba(255, 255, 255, .3) 75%, transparent 75%, transparent);
}
.mdl-quote-dialog::-webkit-scrollbar-track { margin: 14px 0; }
@supports not selector(::-webkit-scrollbar) {
  .mdl-shop-cats, .mdl-quote-dialog, .mdl-scroll { scrollbar-width: thin; scrollbar-color: var(--theme-color, #00a4c2) rgba(252, 0, 18, .1); }
}
