/* =========================================================
   BOSPHORE — RESPONSIVE (tüm sayfalar, en son yüklenir)
   Kırılımlar: ≤1100 tablet yatay · ≤960 tablet · ≤760 telefon · ≤420 küçük telefon
   ========================================================= */

/* ---------- 1) Genel: yatay taşma olmasın ---------- */
html,
body { max-width: 100%; overflow-x: clip; }
img,
video,
canvas,
svg,
iframe { max-width: 100%; }
h1, h2, h3, h4 { overflow-wrap: break-word; hyphens: auto; }
.page-content,
.bsp-article__body { overflow-wrap: break-word; }

/* ---------- 2) Header + mobil menü ---------- */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header .site-branding { flex: 0 0 auto; }
.bsp-burger { display: none; }

@media (max-width: 960px) {
  :root { --bsp-header-h: 62px; }
  .site-header {
    position: sticky;
    top: 0;
    min-height: var(--bsp-header-h);
    padding: 0 16px !important;
    flex-wrap: nowrap;
  }
  .site-header .site-title a { width: 150px; height: 36px; }

  .bsp-burger {
    display: grid;
    place-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--bsp-line);
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
  }
  .bsp-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--bsp-fg); transition: transform 0.3s, opacity 0.2s; }
  .home .bsp-burger { border-color: rgba(238, 243, 249, 0.35); }
  .home .bsp-burger span { background: #eef3f9; }
  .site-header.is-open .bsp-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.is-open .bsp-burger span:nth-child(2) { opacity: 0; }
  .site-header.is-open .bsp-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Menü paneli: header'ın altından açılır */
  .site-header .site-navigation {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--bsp-header-h);
    max-height: calc(100dvh - var(--bsp-header-h));
    overflow-y: auto;
    padding: 12px 16px 24px;
    background: #0e1c2e;
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.5);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s, visibility 0s 0.25s;
    z-index: 60;
  }
  .site-header.is-open .site-navigation { opacity: 1; transform: none; visibility: visible; transition: opacity 0.25s, transform 0.25s; }
  .site-header .site-navigation ul.menu { display: flex; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 0; }
  .site-header .site-navigation ul.menu > li { display: block; width: 100%; margin: 0; padding: 0; border: 0; }
  .site-header .site-navigation ul.menu > li > a {
    display: block;
    padding: 14px 12px !important;
    border-radius: 10px;
    color: #eef3f9 !important;
    font: 600 1.05rem/1.2 var(--bsp-sans) !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    box-shadow: none !important;
  }
  .site-header .site-navigation ul.menu > li.current-menu-item > a { background: rgba(79, 192, 245, 0.14); color: #7fd1f7 !important; }

  /* Dil seçici panelin altında, açık liste olarak */
  .site-header .site-navigation ul.menu li.bsp-lang { margin: 10px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(238, 243, 249, 0.12); border-left: 0; }
  .site-header .bsp-lang__dd summary { display: none; }
  .site-header .site-navigation ul.menu li.bsp-lang .bsp-lang__dd ul {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    position: static;
    min-width: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }
  .site-header .bsp-lang__dd ul li a { justify-content: center; padding: 10px 4px !important; color: #eef3f9 !important; background: rgba(238, 243, 249, 0.06); }
  .site-header .bsp-lang__dd ul li a span { display: none; }
  .site-header .bsp-lang__dd ul li a b { width: auto; color: inherit; font-size: 0.85rem; }
  .site-header .bsp-lang__dd ul li a.is-current { background: #0099e2; color: #fff !important; }

  html.bsp-menu-open { overflow: hidden; }
}

/* ---------- 3) Ana sayfa (video + HUD + bölümler) ---------- */
@media (max-width: 960px) {
  .home .site-header { position: fixed; left: 0; right: 0; }
  .bosphore-front .bosphore-section { padding: 0 18px; }
  .bosphore-front .bosphore-section__inner { padding: calc(var(--bsp-header-h) + 2.5rem) 0 8.5rem; justify-content: flex-end; }
  .bosphore-front .bosphore-section__inner > * { max-width: 100%; }
  .hud__corner--tl { top: calc(var(--bsp-header-h) + 12px); left: 16px; }
}
@media (max-width: 760px) {
  .bosphore-front h1 { font-size: clamp(2.5rem, 12.5vw, 4rem); line-height: 1; }
  .bosphore-front h2 { font-size: clamp(1.75rem, 8vw, 2.6rem); max-width: none; }
  .bosphore-front p { font-size: 0.98rem; }
  .bosphore-front .bosphore-lead { font-size: 1.08rem; }
  .bsp-actions { gap: 10px; }
  .bsp-actions .bsp-btn { flex: 1 1 auto; text-align: center; }

  /* Hizmet listesi ve kartlar */
  .bsp-list { grid-template-columns: 1fr; gap: 6px; }
  .bsp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bsp-card { padding: 0.85rem 0.9rem; }
  .bsp-card h4 { font-size: 0.95rem; }
  .bsp-offices { grid-template-columns: 1fr; }
  .bsp-cols { grid-template-columns: 1fr; gap: 14px; }
  .bsp-posts { grid-template-columns: 1fr; }
  .bsp-contact .bsp-phone { width: 100%; justify-content: flex-start; }
  .bsp-steps__list { max-width: none; }
  .bsp-steps__list li { grid-template-columns: 40px 1fr; padding: 0.75rem 0.85rem; }
  .bsp-steps__list b { font-size: 1.3rem; }

  /* HUD: sade (sol üst marka gizli; alt çubuk ve belge paneli yer açar) */
  .hud { padding: 0; }
  .hud__corner--tl { display: none; }
  .hud__bottom { left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 30px); }
  .hud__caption { font-size: 12px; letter-spacing: 0.1em; }
  .hud__ai { right: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); font-size: 9px; }
  .hud__docs { left: 12px; right: 12px; bottom: 96px; width: auto; gap: 6px; }
  .hud__doc { grid-template-columns: 44px 1fr auto; padding: 9px 11px; gap: 8px; }
  .hud__doc b { font-size: 14px; }
  .hud__doc span { font-size: 10px; }
  /* Belge paneli açıkken metin üst üste binmesin */
  .hud.is-docs ~ .bosphore-front .bsp-steps .bosphore-section__inner { justify-content: flex-start; }
}
@media (max-width: 420px) {
  .bsp-cards { grid-template-columns: 1fr; }
}

/* ---------- 4) İç sayfa girişleri (video/harita/pano) ---------- */
@media (max-width: 960px) {
  body:not(.home) .bsp-hero,
  .bsp-sel,
  .bsp-net,
  .bsp-board { margin: 10px 10px 0; border-radius: 22px; }
  .bsp-wrap { padding: 0 18px; }
  .bsp-block { padding: clamp(3rem, 9vw, 5rem) 0; }
  .bsp-h2 { font-size: clamp(1.7rem, 7vw, 2.6rem); max-width: none; }
}
@media (max-width: 760px) {
  body:not(.home) .bsp-hero { min-height: 62svh; padding: 4.5rem 0 2.25rem; }
  .bsp-hero__inner { padding: 0 20px; }
  .bsp-hero__title { font-size: clamp(2.2rem, 11vw, 3.4rem); }
  body:not(.home) .bsp-page--single .bsp-hero__title,
  body:not(.home) .bsp-page--generic .bsp-hero__title,
  body:not(.home) .bsp-page--service .bsp-hero__title { font-size: clamp(1.6rem, 7.5vw, 2.4rem); }
  .bsp-hero__lead { font-size: 1rem; }
  .bsp-hero__hud { inset: 14px 16px 16px; }
  .bsp-hero__ai,
  .bsp-sel .bsp-hero__ai,
  .bsp-sim .bsp-hero__ai { font-size: 9px; right: 12px; }
}

/* ---------- 5) Hizmetlerimiz ---------- */
@media (max-width: 760px) {
  .bsp-sel { min-height: 76svh; }
  .bsp-sel__inner { padding: 2.25rem 20px 1.25rem; gap: 1.5rem; }
  .bsp-sel__title { font-size: clamp(2.3rem, 12vw, 3.4rem); }
  .bsp-sel__lead { font-size: 0.98rem; }
  .bsp-sel__tabs--mini { gap: 6px; }

  .bsp-modules { grid-template-columns: 1fr; gap: 12px; }
  .bsp-module { min-height: 0; padding: 1.4rem 1.25rem; }
  .bsp-module__title { margin-top: 1.25rem; font-size: 1.08rem; }
  .bsp-module__text { max-height: none; opacity: 1; }

  .bsp-counters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bsp-counter { padding: 1.1rem 0.9rem; gap: 10px; flex-direction: column; align-items: flex-start; }
  .bsp-counter img { width: 32px; height: 32px; }
  .bsp-counter b { font-size: 1.6rem; }

  /* Tır simülasyonu */
  .bsp-sim { height: 560svh; margin: 1.5rem 0; }
  .bsp-sim__sticky { margin: 0 8px; border-radius: 20px; top: calc(var(--bsp-header-h) + 6px); height: calc(100svh - var(--bsp-header-h) - 14px); }
  .bsp-sim__head { left: 16px; right: 16px; top: 16px; }
  .bsp-sim__title { font-size: clamp(1.35rem, 6.5vw, 1.9rem); }
  .bsp-sim__steps { left: 10px; right: 10px; bottom: 14px; }
  .bsp-sim__step { padding: 0.8rem 0.9rem; grid-template-columns: 34px 1fr; }
  .bsp-sim__no { width: 34px; height: 34px; }
  .bsp-sim__end { width: calc(100% - 32px); bottom: 2rem; }
  .bsp-sim__claim { font-size: 1.2rem; }

  /* Hizmet noktaları paneli */
  .bsp-points--inline .bsp-points__body { gap: 12px; }
  .bsp-points--inline .bsp-points__map { min-height: 300px; border-radius: 16px; }
  .bsp-points__item { padding: 0.9rem 0.95rem 0.7rem; }
  .bsp-points__actions { padding: 0.6rem 0.95rem 0.8rem; gap: 6px 12px; }
  .bsp-points__actions a { font-size: 0.82rem; }
}

/* ---------- 6) Hakkımızda ---------- */
@media (max-width: 900px) {
  .bsp-net { min-height: 0; padding: 2.25rem 20px 1.5rem; gap: 0.5rem; }
  .bsp-net__title { font-size: clamp(2.3rem, 11vw, 3.6rem); margin-bottom: 1.25rem; }
  .bsp-net__years b { font-size: clamp(4.5rem, 22vw, 6.5rem); }
  .bsp-net__map { margin: 0 -8px; }
  .bsp-net__pt text { font-size: 20px; }
  .bsp-net__pt .bsp-net__year { font-size: 24px; }
  .bsp-split,
  .bsp-split--about { grid-template-columns: 1fr; }
  .bsp-duo { grid-template-columns: 1fr; }
  .bsp-collage { min-height: 300px; }
  .bsp-founder { width: 100%; }
  .bsp-founder img { width: 110px; }
  .bsp-videocard { height: 260px; border-radius: 20px; }
  .bsp-videocard__play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
  .bsp-videocard__play::after { left: 27px; top: 22px; border-width: 12px 0 12px 18px; }
}

/* ---------- 7) İletişim ---------- */
@media (max-width: 760px) {
  .bsp-board { padding: 2rem 16px 1.25rem; }
  .bsp-board__head { flex-direction: column; align-items: stretch; gap: 1rem; }
  .bsp-board__title { font-size: clamp(2.3rem, 12vw, 3.4rem); }
  .bsp-board__call { flex-direction: row; align-items: center; justify-content: space-between; }
  .bsp-board__call b { font-size: 1.15rem; }
  .bsp-board__map { position: relative; inset: auto; height: 210px; margin: 1rem -6px 0; }
  .bsp-board__offices { margin-top: 1rem; grid-template-columns: 1fr; }
  .bsp-board__clock { font-size: 1.8rem; }
  .bsp-block--lift { margin-top: 0; padding-top: 2.5rem; }
  .bsp-quick { grid-template-columns: 1fr; }
  .bsp-formcard { padding: 1.4rem 1.1rem; border-radius: 18px; }
  .bsp-hours { max-width: none; }
}

/* ---------- 8) Blog, yazı, hizmet detayı, genel sayfa ---------- */
@media (max-width: 760px) {
  .bsp-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -18px 1.5rem; padding: 0 18px 6px; scrollbar-width: none; }
  .bsp-chips::-webkit-scrollbar { display: none; }
  .bsp-chip { flex: 0 0 auto; }
  .bsp-posts { grid-template-columns: 1fr; }
  .bsp-post__body { padding: 1.1rem 1.1rem 1.25rem; }

  .bsp-article { padding: 2.25rem 18px; }
  .bsp-article__body { font-size: 1rem; line-height: 1.7; }
  .bsp-article__nav { flex-direction: column; }
  .bsp-layout { padding-top: 2.25rem; padding-bottom: 2.5rem; }
  .bsp-aside { position: static; }
  .bsp-svc__item { grid-template-columns: 42px 1fr; padding: 1rem 0.1rem; }
  .bsp-svc__no { font-size: 1.4rem; }
  .bsp-svc__item p { font-size: 0.98rem; }
  .bsp-svc__item:only-child p { font-size: 1.3rem; }
  .bsp-svc__nav { grid-template-columns: 1fr; }
  .bsp-svc__navlink--next { text-align: left; }
  body:not(.home) .page-header { margin: 10px 10px 0; padding: 3rem 18px 2rem; border-radius: 22px; }
  body:not(.home) .page-content { padding: 2.25rem 18px; }
}

/* ---------- 9) Lojistik sözlüğü: tablo → kart ---------- */
@media (max-width: 700px) {
  .bsp-gl { top: calc(var(--bsp-header-h) + 6px); padding: 0.75rem; gap: 0.5rem; }
  .bsp-gl__search input { padding: 0.75rem 1rem 0.75rem 2.4rem; font-size: 16px; } /* 16px: iOS yakınlaştırmasın */
  .bsp-gl__letters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .bsp-gl__letters::-webkit-scrollbar { display: none; }
  .bsp-gl__letters button { flex: 0 0 auto; }
  .bsp-article__body .bsp-gl__table,
  .bsp-gl__table thead,
  .bsp-gl__table tbody,
  .bsp-gl__table tr,
  .bsp-gl__table td { display: block; width: 100%; }
  .bsp-gl__table { background: none !important; box-shadow: none !important; border: 0; overflow: visible; }
  .bsp-gl__table thead { display: none; }
  .bsp-gl__table tbody tr {
    margin: 0 0 10px;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: var(--bsp-panel);
    box-shadow: var(--bsp-shadow, none);
  }
  .bsp-gl__table tbody tr[hidden] { display: none; }
  .bsp-gl__table td { padding: 0 !important; border: 0 !important; }
  .bsp-gl__table td.bsp-gl__term { margin-bottom: 0.35rem; font-size: 1.1rem; color: var(--bsp-amber) !important; white-space: normal; }
  .bsp-gl__table td:nth-child(2) { font-weight: 600; color: var(--bsp-fg); margin-bottom: 0.25rem; }
  .bsp-gl__table td:nth-child(3) { font-size: 0.92rem; }
  .bsp-gl__anchor { opacity: 1; }
}

/* ---------- 10) Footer + Elementor sayfaları + dokunma ---------- */
@media (max-width: 760px) {
  .bsp-footer { padding: 0 18px; }
  .bsp-footer__inner { padding: 2.75rem 0 1.75rem; gap: 2rem; }
  .bsp-footer__logo { width: 170px; height: 42px; margin-bottom: 1.25rem; }
  .bsp-footer__hours { max-width: none; }
  .bsp-footer__bottom { flex-direction: column; gap: 0.25rem; }

  /* Elementor ile yapılmış eski sayfalar (S.S.S vb.) taşmasın */
  .page-content .elementor-container { flex-direction: column; gap: 14px; }
  .page-content .elementor-column { width: 100% !important; flex: 1 1 auto; }
}

/* Dokunmatik ekranlarda daha büyük dokunma alanları */
@media (hover: none) and (pointer: coarse) {
  .bsp-btn,
  .bsp-chip,
  .bsp-tab,
  .bsp-points__actions a,
  .bsp-footer__menu a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Hizmet noktaları kartı: uzun adres/isim satırı taşmasın (buton içi grid) */
.bsp-points__item > * { min-width: 0; }
.bsp-points__item b,
.bsp-points__item address,
.bsp-points__city { white-space: normal; overflow-wrap: anywhere; }

/* Ana sayfa (telefon): uzun içerikli bölümler sabit kalmasın, normal kaysın; kartlar 2 sütun */
@media (max-width: 760px) {
  .bosphore-front .bsp-services .bosphore-section__inner,
  .bosphore-front .bsp-contact .bosphore-section__inner { position: relative; }
  .bosphore-front .bsp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 340px) {
  .bosphore-front .bsp-cards { grid-template-columns: 1fr; }
}

/* Mobil menü paneli: öğeler tam genişlik */
@media (max-width: 960px) {
  .site-header .site-navigation { display: block !important; }
  .site-header .site-navigation ul.menu { width: 100%; }
  .site-header .site-navigation ul.menu > li { display: block !important; }
  .site-header .site-navigation ul.menu > li > a { width: 100%; }
  .site-header .site-navigation ul.menu li.bsp-lang .bsp-lang__dd { display: block; width: 100%; }
  .site-header .site-navigation ul.menu li.bsp-lang .bsp-lang__dd ul li a { width: 100%; display: flex; }
}

/* Tablet/telefon: HUD rota paneli başlıkla çakışmasın; harita etiketleri telefonda biraz büyük */
@media (max-width: 960px) { .hud__routes { display: none; } }
@media (max-width: 600px) { .bsp-net__pt text { font-size: 26px; } .bsp-net__pt .bsp-net__year { font-size: 30px; } }

/* Tablet: simülasyon adım kartları kenara taşmasın */
@media (max-width: 960px) {
  .bsp-sim__steps { left: 14px; right: 14px; width: auto; max-width: none; }
  .bsp-sim__step { min-width: 0; }
}

/* =========================================================
   Güncelleme: AI rozeti, geniş footer, FR/TR numaralar, Konumları Gör
   ========================================================= */

/* "AI" rozeti (yapay zekâ ile üretilmiş görüntü bilgisi; uzun metin title/aria-label'da) */
.bsp-hero__ai,
.hud__ai {
  padding: 3px 7px !important;
  border: 1px solid rgba(238, 243, 249, 0.35);
  border-radius: 6px;
  background: rgba(8, 18, 31, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(238, 243, 249, 0.85) !important;
  font: 700 10px/1 var(--bsp-sans, sans-serif) !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
  cursor: help;
  opacity: 0.85;
}

/* Footer: masaüstünde sağa-sola geniş */
@media (min-width: 961px) {
  .bsp-footer { padding: 0 clamp(24px, 4vw, 72px); }
  .bsp-footer__inner,
  .bsp-footer__bottom { max-width: none; }
  .bsp-footer__inner { grid-template-columns: minmax(260px, 1.4fr) minmax(180px, 1fr) minmax(280px, 1fr); }
}

/* Ana numaralar (FR / TR) — küçük ülke etiketi */
.bsp-phone a small,
.bsp-board__callnum small,
.bsp-quick__line small,
.bsp-btn small { margin-right: 6px; font-size: 0.72em; font-weight: 700; letter-spacing: 0.1em; opacity: 0.7; }

/* Ana sayfa "Bize Ulaşın": iki numara yan yana */
.bsp-contact .bsp-phone { flex-wrap: wrap; gap: 6px 18px; }
.bsp-contact .bsp-phone > span { color: rgba(238, 243, 249, 0.8); }
.bsp-contact .bsp-phone a { white-space: nowrap; }

/* İletişim panosu: arama kutusu iki numara */
.bsp-board__call { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.bsp-board__call > span { color: rgba(238, 243, 249, 0.6); font-size: 0.85rem; }
.bsp-board__callnum { color: #fff !important; font: 700 1.25rem/1.25 var(--bsp-sans); text-decoration: none; white-space: nowrap; }
.bsp-board__callnum:hover { color: #7fd1f7 !important; }

/* İletişim hızlı kartları: satır linkleri */
.bsp-quick__card { cursor: default; }
.bsp-quick__line { display: block; margin-top: 0.35rem; color: var(--bsp-fg) !important; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.bsp-quick__line:hover { color: var(--bsp-amber) !important; }

/* Aksiyon kartlarındaki iki numara butonu alt alta */
.bsp-aside__card--cta .bsp-btn,
.bsp-split--cta .bsp-btn { white-space: nowrap; }

/* "Konumları Gör": yalnız mobil menüde */
.bsp-menu-mobile { display: none !important; }
@media (max-width: 960px) {
  .site-header .site-navigation ul.menu > li.bsp-menu-mobile { display: block !important; margin-top: 6px; }
  .site-header .site-navigation ul.menu > li.bsp-menu-mobile > a { background: rgba(0, 153, 226, 0.18); color: #7fd1f7 !important; }
}

/* Bölüme yumuşak kaydırma (sabit header kadar boşlukla) */
html { scroll-behavior: smooth; }
#hizmet-noktalari { scroll-margin-top: calc(var(--bsp-header-h, 76px) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Footer: Hello'nun header/footer genişlik sınırını kaldır (masaüstünde tam genişlik) */
.site-footer.bsp-footer { max-width: none !important; width: 100%; margin: 0 !important; }

/* İletişim panosu: 5 ofis tek sırada, haritanın altında */
@media (min-width: 1101px) {
  .bsp-board__offices { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); margin-top: clamp(13rem, 21vw, 17rem); }
  .bsp-board__office { padding: 1rem 1rem 0.9rem; }
  .bsp-board__clock { font-size: 1.7rem; }
  .bsp-board__addr { font-size: 0.8rem; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .bsp-board__offices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
