/* ==========================================================================
   responsive.css — kırılım noktaları
   Mobil, masaüstünün küçültülmüş hali değil; her kırılımda düzen yeniden kurulur.
   1400 · 1200 · 992 · 768 · 576 · 400
   ========================================================================== */

/* ---------- ≤ 1400px ---------- */
/* 1399.98 kullanılır; dosyadaki diğer kırılımlarla ve telefon kuralıyla
   tam olarak 1400px'te çakışmaması için. */
@media (max-width: 1399.98px) {
  :root { --container: 1180px; --section-y: 96px; }
  .cta-band { padding: 64px 54px; }
  .online-panel__content { padding: 56px 48px; }
  .location-panel__info { padding: 42px 38px; }
}

/* ---------- ≤ 1200px ---------- */
/* Kapsayıcı 1400 altında 1180px'e iner; başlık içeriği (marka + 8 menü
   bağlantısı + telefon + CTA) bu genişliğe sığmadığı için telefon numarası
   yerine yalnızca simge gösterilir. 1400 üzerinde numara geri gelir. */
@media (max-width: 1399.98px) and (min-width: 1200px) {
  .header-phone span:not(.visually-hidden) { display: none; }
  .header-phone {
    width: 44px; height: 44px; justify-content: center;
    padding-left: 0; margin-left: 0; border-left: 0;
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  }
}

@media (max-width: 1199.98px) {
  :root { --section-y: 88px; --gutter: 22px; }

  /* Oluk (gutter) negatif kenar boşluğu kapsayıcı dolgusunu aşmasın */
  .row.g-5, .row.gx-5 { --bs-gutter-x: 2.5rem; }

  /* Menü mobil panele geçer */
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions { gap: 9px; }
  .header-phone {
    width: 46px; height: 46px; justify-content: center;
    padding-left: 0; margin-left: 0;
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  }
  .header-phone span:not(.visually-hidden) { display: none; }
  /* Bootstrap kapatma düğmesi varsayılan 32px — dokunma hedefi için büyütülür */
  .mobile-menu .btn-close { width: 44px; height: 44px; background-size: 14px; }

  .hero { min-height: clamp(520px, 70vh, 680px); padding: 96px 0 64px; }

  .split { gap: 52px; }
  .privacy-band__grid { gap: 48px; }
  .appointment-split { gap: 48px; }

  .trust-item { padding-right: 22px; }
  .trust-item:not(:first-child) { padding-left: 22px; }

  .gallery-grid { grid-auto-rows: 148px; }

  .expert-hero { gap: 42px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.15fr; }
  .footer-grid > :nth-child(4) { grid-column: 4; }
  .footer-grid > :nth-child(5) { grid-column: 2 / -1; }
}

/* ---------- ≤ 992px (tablet) ---------- */
@media (max-width: 991.98px) {
  :root { --section-y: 76px; --header-h: 72px; --header-h-sticky: 64px; }

  body { font-size: 16.5px; }

  .header-actions .btn-primary { --btn-h: 44px; padding: 0 18px; font-size: .885rem; }

  /* Hero tek kolon */
  /* Tablet ve altında bindirme kalkar: önce içerik, sonra tam genişlik görsel.
     Metnin fotoğraf üzerinde okunurluğu riske atılmaz. */
  .hero {
    display: block;
    min-height: 0;
    padding: 58px 0 0;
    background: var(--bg-soft);
  }
  .hero__bg {
    position: static;
    margin-top: 44px;
  }
  .hero__bg::after { content: none; }
  .hero__bg img { aspect-ratio: 16 / 9; height: auto; object-position: center 58%; }
  .hero__title { max-width: 15em; font-size: clamp(2.3rem, 1.6rem + 3.2vw, 2.9rem); }
  .hero__note { margin-bottom: 0; }

  /* Izgaralar */
  .trust-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-bottom: 1px solid var(--border); padding-block: 26px; }
  .trust-item:nth-child(2n) { border-right: 0; }
  .trust-item:nth-last-child(-n+2) { border-bottom: 0; }

  .areas-grid { grid-template-columns: repeat(2, 1fr); }

  .split,
  .privacy-band__grid,
  .online-panel,
  .location-panel,
  .appointment-split,
  .cta-band__grid,
  .expert-hero,
  .section-head-split {
    grid-template-columns: 1fr;
  }
  .split { gap: 34px; }
  .split--reverse .split__media { order: 0; }
  .split__content, .split--reverse .split__content { max-width: 640px; margin-left: 0; }
  .split__media--tall { aspect-ratio: 16 / 11; }

  .section-head-split { gap: 14px; align-items: start; }
  .section-head { margin-bottom: 40px; }

  .privacy-band { padding-block: 64px; }
  .privacy-band__grid { gap: 36px; }

  .process__grid { grid-template-columns: 1fr; border-top: 0; }
  .process__step {
    padding: 0 0 26px 30px !important;
    border-right: 0 !important;
    border-left: 1px solid var(--border);
  }
  .process__step:last-child { padding-bottom: 0 !important; border-left-color: transparent; }
  .process__step::before { left: -5px !important; top: 6px; }
  .process__no { margin-bottom: 8px; }

  .online-panel__content { padding: 40px 30px 44px; }
  .online-panel__media { min-height: 260px; order: -1; }

  .location-panel__info { padding: 34px 28px 38px; }
  .location-panel__map { min-height: 300px; }

  .expert-hero__media { position: static; aspect-ratio: 16 / 11; }
  .expert-hero__media img { object-position: center 22%; }

  .cta-band { padding: 48px 34px; border-radius: var(--radius-md); }
  .cta-band__grid { gap: 28px; }
  .cta-band__actions { justify-content: flex-start; }
  .cta-soft { padding: 38px 30px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 168px); }
  .gallery-item--a { grid-column: 1 / 3; grid-row: 1; }
  .gallery-item--b { grid-column: 1;     grid-row: 2; }
  .gallery-item--c { grid-column: 2;     grid-row: 2; }
  .gallery-item--d { grid-column: 1 / 3; grid-row: 3; }
  .gallery-item--e { display: none; }

  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .expert-facts { grid-template-columns: 1fr; }

  .post-row { grid-template-columns: 180px minmax(0, 1fr); gap: 20px; }

  .form-panel { padding: 30px 24px; }
  .faq-item__inner { padding-right: 24px; }

  .anchor-nav { position: static; border-left: 0; border-bottom: 1px solid var(--border); display: flex; overflow-x: auto; }
  .anchor-nav ul { display: flex; gap: 4px; }
  .anchor-nav a { padding: 10px 14px; border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .anchor-nav a.is-active { border-left: 0; border-bottom-color: var(--primary); }

  /* Alt bilgi */
  .site-footer { padding-top: 60px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 30px; padding-bottom: 44px; }
  .footer-grid > :nth-child(1) { grid-column: 1 / -1; }
  .footer-grid > :nth-child(4) { grid-column: auto; }
  .footer-grid > :nth-child(5) { grid-column: 1 / -1; }
  .footer-about { max-width: 460px; }

  /* Mobil sabit CTA görünür */
  .mobile-cta { display: flex; }
  .wa-float { display: none; }
  body.has-mobile-cta { padding-bottom: 72px; }
}

/* ---------- ≤ 768px (mobil) ---------- */
@media (max-width: 767.98px) {
  :root { --section-y: 60px; --section-y-sm: 48px; --gutter: 20px; }

  body { font-size: 16px; line-height: 1.68; }

  /* Bootstrap g-5 yatay oluğu (48px) kapsayıcı dolgusundan (20px) büyük
     olduğu için negatif kenar boşluğu taşmaya yol açıyordu. Dikey ritim
     korunarak yalnızca yatay oluk küçültülür. */
  .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; }
  .row.g-5 { --bs-gutter-y: 2.5rem; }

  h1, .h1 { font-size: clamp(2.05rem, 1.55rem + 2.6vw, 2.6rem); }
  h2, .h2 { font-size: clamp(1.65rem, 1.3rem + 1.8vw, 2.1rem); }
  h3, .h3 { font-size: 1.22rem; }
  .lead { font-size: 1.02rem; }

  .brand__tag { display: none; }
  .brand__mark { width: 35px; height: 35px; }
  .brand__name { font-size: 1rem; }

  .hero { padding-top: 42px; }
  .hero__eyebrow { margin-bottom: 14px; }
  .hero__title { font-size: clamp(2.05rem, 1.5rem + 2.8vw, 2.55rem); margin-bottom: 18px; }
  .hero__text { font-size: 1rem; margin-bottom: 24px; }
  .hero__actions { gap: 10px; margin-bottom: 22px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__bg { margin-top: 34px; }
  .hero__bg img { aspect-ratio: 16 / 10; }

  .areas-grid { grid-template-columns: 1fr; }
  .area-card { padding: 24px 22px 26px; }

  .trust-bar__grid { grid-template-columns: 1fr; }
  .trust-item {
    border-right: 0;
    padding: 22px 0 !important;
  }
  .trust-item:last-child { border-bottom: 0; }

  .section-head { margin-bottom: 32px; }
  .section-head-split { padding-bottom: 22px; margin-bottom: 32px; }

  .numbered-list li { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .service-row { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .service-row__no { padding-top: 0; }

  .privacy-band { padding-block: 52px; }
  .privacy-points li { grid-template-columns: 22px minmax(0, 1fr); gap: 13px; padding: 17px 0; }

  .online-panel__content { padding: 32px 22px 36px; }
  .online-specs { grid-template-columns: 1fr; gap: 18px; }
  .online-panel__media { min-height: 210px; }

  .gallery-grid { grid-template-rows: repeat(3, 128px); gap: 10px; }

  .stat-strip { grid-template-columns: 1fr; }
  .stat-strip__item { padding: 22px 20px; }

  .cta-band { padding: 40px 24px; }
  .cta-band__actions .btn,
  .cta-soft .btn,
  .form-success .btn { width: 100%; }
  .cta-soft { padding: 30px 22px; }

  .form-panel { padding: 24px 20px 26px; }
  .choice-group { grid-template-columns: 1fr; }
  .slot-group { grid-template-columns: repeat(2, 1fr); }
  .field { margin-bottom: 17px; }
  .form-control, .form-select { font-size: 16px; } /* iOS yakınlaştırmasını engeller */

  .location-panel__info { padding: 28px 22px 32px; }
  .location-panel__map { min-height: 240px; }

  .post-row { grid-template-columns: 1fr; gap: 16px; }
  .post-row__media { aspect-ratio: 16 / 9; }

  .article-body { font-size: 1.02rem; }
  .article-body h2 { font-size: 1.42rem; }
  .article-body blockquote { font-size: 1.06rem; padding-left: 18px; }

  .faq-item__btn { font-size: .985rem; gap: 18px; padding: 21px 2px; }
  .faq-item__inner { padding: 0 8px 23px 2px; font-size: .93rem; }

  .filter-bar { gap: 7px; margin-bottom: 32px; padding-bottom: 20px; }
  /* Dokunma hedefi minimumu: 44px */
  .filter-chip { min-height: 44px; padding: 0 15px; font-size: .845rem; }
  .filter-count { width: 100%; margin-left: 0; }

  .expert-facts { margin: 22px 0 26px; }
  .media-pair__item:last-child { margin-top: 24px; }

  .page-head { padding-block: 34px 40px; }
  .page-head p { font-size: 1rem; }
  .page-hero { min-height: 320px; }
  .page-hero__inner { padding-block: 40px 40px; }

  .pagination-nav { margin-top: 40px; flex-wrap: wrap; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid > * { grid-column: 1 / -1 !important; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .site-footer { padding-top: 48px; }

  .toast-stack { left: 16px; right: 16px; bottom: 84px; max-width: none; }
}

/* ---------- ≤ 576px ---------- */
@media (max-width: 575.98px) {
  /* Dar ekranda kısa etiket: "Randevu" */
  .header-cta { padding: 0 14px; }
  .header-cta__long { display: none; }
  .header-cta__short { display: inline; }

  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 175px); }
  .gallery-item--a { grid-column: 1; grid-row: 1; }
  .gallery-item--b { grid-column: 1; grid-row: 2; }
  .gallery-item--c { grid-column: 1; grid-row: 3; }
  .gallery-item--d { grid-column: 1; grid-row: 4; }

  .slot-group { grid-template-columns: 1fr 1fr; }
  .btn { font-size: .92rem; }
  .mobile-cta .btn-outline { flex: 0 0 44%; }
}

/* ---------- ≤ 400px ---------- */
@media (max-width: 400px) {
  :root { --gutter: 16px; }
  .brand__name { font-size: .95rem; }
  .hero__title { font-size: 1.92rem; }
  .trust-item__value { font-size: 1.45rem; }
}

/* ---------- ≤ 380px (küçük telefonlar: iPhone SE, Galaxy S8) ----------
   Bu genişlikte marka + telefon + randevu + hamburger yan yana sığmıyordu.
   Randevu butonu ikona indirgenir; erişim kaybolmaz. */
@media (max-width: 379.98px) {
  :root { --gutter: 14px; --header-gap: 10px; }

  .brand__mark { width: 32px; height: 32px; }
  .brand__name { font-size: .88rem; }
  .brand__logo { max-height: 32px; }

  .header-actions { gap: 5px; }
  .header-phone { width: 44px; height: 44px; }
  .nav-toggle { width: 44px; height: 44px; font-size: 1.2rem; }

  /* En dar ekranda yalnızca ikon; erişilebilir ad korunur */
  .header-cta {
    --btn-h: 44px;
    width: 44px;
    padding: 0;
    justify-content: center;
  }
  .header-cta__long,
  .header-cta__short { display: none; }
  .header-cta > i { display: inline; font-size: 1.05rem; }

  .hero__title { font-size: 1.78rem; }
  .btn { font-size: .88rem; padding: 0 18px; }
  .mobile-cta { padding-inline: 10px; gap: 8px; }
  .mobile-cta .btn { padding: 0 12px; font-size: .85rem; }
}

/* ---------- Yazdırma ---------- */
@media print {
  .site-header, .mobile-cta, .wa-float, .toast-stack,
  .cta-band, .cta-soft, .site-footer, .filter-bar { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .section { padding-block: 18pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
}
