/* ============================================================
   RESPONSIVE — Akıncı Oto Kurtarıcı
   Breakpoints:
     Desktop  : ≥ 1024px
     Tablet   : 600px – 1023px
     Mobile   : ≤ 599px
     XSmall   : ≤ 400px
   ============================================================ */

:root {
  --gutter:       16px;
  --gutter-left:  max(16px, env(safe-area-inset-left,  0px));
  --gutter-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ============================================================
   DESKTOP (≥ 1024px) — mobil bileşenleri gizle
   ============================================================ */
@media (min-width: 1024px) {
  .menu-toggle           { display: none; }
  .header-call           { display: inline-flex; }
  .nav-cta               { display: none; }
  .mobile-emergency-bar  { display: none !important; }
  body                   { padding-bottom: 0; }
  .nav                   { position: static; opacity: 1; pointer-events: auto;
                           transform: none; background: none; border: none;
                           padding: 0; backdrop-filter: none; }
}

/* ============================================================
   TABLET + MOBİL (≤ 1023px) — ortak temel ayarlar
   ============================================================ */
@media (max-width: 1023px) {

  /* ---- Yatay taşmayı tamamen kilitle ---- */
  html {
    overflow-x: clip;
    width: 100%;
  }
  body {
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
  }
  main, .hero, .ticker, .hs, .hs-scroll, .hs-pin,
  .akinci-section, .contact-section, .svc-shell, .contact-shell {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-inline: 0 !important;
    box-sizing: border-box !important;
  }

  /* ---- Uzun kelimeleri kır ---- */
  h1, h2, h3,
  .svc-title, .hs-heading, .contact-title, .contact-brand {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* ---- İmleç efektlerini kapat ---- */
  .cursor-glow,
  .akinci-glow { display: none !important; }

  /* ---- Reveal animasyonlarını sadeleştir ---- */
  [data-reveal="left"],
  [data-reveal="right"] {
    transform: translate3d(0, 36px, 0);
  }

  /* ---- Header ---- */
  .site-header {
    top: max(10px, env(safe-area-inset-top, 0px)) !important;
    right: var(--gutter-right) !important;
    left:  var(--gutter-left)  !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    padding: 8px 12px;
  }

  .header-actions .header-call { display: none !important; }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
  }

  /* Açılır nav menü */
  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    z-index: 60;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(5, 5, 5, 0.96);
    backdrop-filter: blur(22px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav a {
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 0.95rem;
    white-space: normal;
  }
  .nav a:hover { background: rgba(255, 255, 255, 0.08); }
  .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #130c00 !important;
    font-weight: 900;
  }

  /* ---- Section scroll-margin ---- */
  .section-snap { scroll-margin-top: 88px; }

  /* ---- Hero — tek sütun, dikey akış ---- */
  .hero {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }
  .hero-copy {
    order: 1;
    min-height: auto;
    padding: 116px clamp(20px, 4vw, 40px) 22px;
    background:
      linear-gradient(180deg, rgba(5,5,5,1) 0%, rgba(5,5,5,0.98) 100%),
      radial-gradient(circle at 18% 28%, rgba(255,176,0,0.14), transparent 18rem);
  }
  .hero-copy::after { display: none; }
  .hero h1 {
    font-size: clamp(2.1rem, 5.2vw, 3.2rem);
    line-height: 1.04;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .hero-actions .btn { min-height: 52px; }

  /* Arama paneli — sticky'den çıkar */
  .hero-quick-actions {
    position: relative;
    top: auto;
    right: auto;
    order: 2;
    width: min(calc(100% - 40px), 440px);
    margin: 0 auto 18px;
    animation: none;
  }

  .hero-visual {
    order: 3;
    min-height: 44svh;
    max-height: 52svh;
  }
  .hero-card  { inset: 0; width: 100%; height: 100%; transform: none; }
  .hero-visual::before {
    background:
      linear-gradient(0deg, rgba(5,5,5,0.88), transparent 48%),
      linear-gradient(90deg, rgba(5,5,5,0.62), transparent 55%);
  }

  /* ---- Hizmetler — sticky scroll kapat ---- */
  .hs-scroll {
    height: auto !important;
  }
  .hs-pin {
    position: static !important;
    height: auto !important;
    padding-bottom: 16px;
  }
  .hs-eyebrow-bar {
    padding-top: 96px;
    padding-inline: 16px;
    margin-inline: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .hs-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    height: auto;
    padding-inline: 16px;
    margin-inline: 0;
    box-sizing: border-box;
  }
  .hs-video-col {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9;
    min-height: 0;
    border-radius: 16px;
    overflow: hidden;
  }
  .hs-video-col video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    transform: none !important;
    animation: none !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
  .hs-deck { min-height: 0 !important; }

  /* Kartlar static + görünür hale getir */
  .hs-card {
    position: relative !important;
    inset: auto !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    margin-bottom: 14px;
  }
  .hs-card.is-leaving {
    opacity: 1 !important;
    transform: none !important;
  }
  .hs-deck-dots { display: none; }

  .hs-stats-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    padding-inline: 16px;
    margin-inline: 0;
    box-sizing: border-box;
  }

  /* ---- Neden Akıncı ---- */
  .akinci-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* Mobilde hover olmaz — metni her zaman göster */
  .ak-card-body p {
    max-height: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  /* ---- İletişim ---- */
  .contact-section { min-height: auto; }
  .contact-grid    { grid-template-columns: 1fr; }
  .contact-info, .contact-map-wrap { min-height: auto; }
  .contact-map-frame { min-height: 300px; }

  /* ---- Padding yardımcıları ---- */
  .svc-shell,
  .contact-shell,
  .hs-eyebrow-bar,
  .hs-split,
  .hs-stats-row,
  .svc-head,
  .footer-bar {
    padding-left:  var(--gutter-left)  !important;
    padding-right: var(--gutter-right) !important;
    box-sizing: border-box !important;
  }
  .hero .eyebrow,
  .hero h1,
  .hero-text,
  .hero-actions,
  .hero-stats,
  .hero-quick-actions {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left:  var(--gutter-left)  !important;
    padding-right: var(--gutter-right) !important;
    box-sizing: border-box !important;
  }
  .hero-visual {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
  }
  .hs-video-col,
  .hs-deck,
  .hs-card,
  .hs-card-inner,
  .contact-info,
  .contact-map-wrap,
  .contact-map-frame,
  .ak-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .ticker {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .mobile-emergency-bar {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left:  var(--gutter-left)  !important;
    padding-right: var(--gutter-right) !important;
  }
  .mobile-emergency-call,
  .mobile-emergency-wa { min-width: 0 !important; }
  .btn, .header-call, .hero-bubble, .nav-cta {
    max-width: 100% !important;
  }
}

/* ============================================================
   MOBİL (≤ 767px) — telefon özelinde ayrıntılı stil
   ============================================================ */
@media (max-width: 767px) {

  :root {
    --gutter:       14px;
    --gutter-left:  max(14px, env(safe-area-inset-left,  0px));
    --gutter-right: max(14px, env(safe-area-inset-right, 0px));
  }

  /* Sabit acil bar için boşluk */
  body {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  /* ---- Header ---- */
  .site-header { padding: 6px 10px; }
  .brand       { gap: 8px; }
  .brand strong { font-size: 0.88rem; }
  .brand small  { display: none; }
  .brand-mark   { width: 36px; height: 36px; font-size: 0.8rem; }
  .menu-toggle  { width: 40px; height: 40px; }

  .section-snap { scroll-margin-top: 76px; }

  /* ---- Hero — tam yeniden düzenleme ---- */
  /*
     Sıra: eyebrow → başlık → açıklama → görsel → butonlar → istatistikler → iletişim kutusu
     .hero-copy display:contents ile elemanlar doğrudan flex akışına girer.
  */
  .hero {
    padding: 96px 0 14px;
    background:
      linear-gradient(180deg, rgba(5,5,5,1) 0%, rgba(5,5,5,0.97) 100%),
      radial-gradient(circle at 18% 28%, rgba(255,176,0,0.14), transparent 18rem);
  }
  /* display:contents ile data-reveal opacity:0 çakışmasını önle */
  .hero-copy {
    display: contents;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero .eyebrow {
    order: 1;
    font-size: 0.72rem;
    margin: 0 0 10px;
  }
  .hero h1 {
    order: 2;
    font-size: clamp(2.2rem, 8.5vw, 2.8rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
    margin: 0 0 12px;
  }
  .hero-text {
    order: 3;
    font-size: 0.92rem;
    line-height: 1.58;
    margin: 0 0 14px;
    max-width: none;
  }

  /* Görsel — orta */
  .hero-visual {
    order: 4;
    min-height: 34svh;
    max-height: 40svh;
    margin: 0 0 14px;
  }
  .hero-visual::before {
    background:
      linear-gradient(0deg, rgba(5,5,5,1), rgba(5,5,5,0.1) 44%, transparent 68%),
      linear-gradient(90deg, rgba(5,5,5,0.55), transparent 55%);
  }

  /* Butonlar — tam genişlik, büyük dokunma hedefi */
  .hero-actions {
    order: 5;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0;
  }
  .hero-actions .btn {
    width: 100%;
    min-height: 56px;
    font-size: 1rem;
    border-radius: 16px;
  }

  /* İstatistikler */
  .hero-stats {
    order: 6;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0 0;
  }
  .hero-stats span   { padding: 10px 6px; border-radius: 14px; text-align: center; }
  .hero-stats strong { font-size: 1.25rem; }
  .hero-stats small  { font-size: 0.64rem; line-height: 1.25; }

  /* Ara/WhatsApp kutusu */
  .hero-quick-actions {
    order: 7;
    position: relative;
    top: auto; right: auto;
    width: 100%;
    max-width: 100%;
    border-radius: 20px;
    margin: 12px 0 0;
    animation: none;
  }
  .hero-bubble { min-height: 60px; }
  .hero-bubble-text strong { font-size: 1.05rem; }

  /* ---- Ticker ---- */
  .ticker-track span { font-size: 0.84rem; }

  /* ---- Hizmetler ---- */
  .hs { padding-bottom: 32px; }

  .hs-eyebrow-bar {
    padding-top: 84px;
    margin-bottom: 10px;
  }
  .hs-heading  { font-size: clamp(1.42rem, 6vw, 1.82rem); line-height: 1.1; }
  .hs-subtitle { font-size: 0.86rem; }

  .hs-video-col { aspect-ratio: 16 / 10; }

  .hs-card-inner { padding: 18px; }
  .hs-name { font-size: clamp(1.35rem, 5vw, 1.65rem); }

  .hs-stats-row div { padding: 14px 12px; }

  /* ---- Neden Akıncı ---- */
  .akinci-section { padding: 56px 0; }

  .svc-shell {
    width: 100%;
    max-width: 100%;
    padding-inline: var(--gutter-left) var(--gutter-right);
    margin-inline: 0;
    box-sizing: border-box;
  }

  .akinci-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .ak-card-media { aspect-ratio: 3 / 4; }

  .svc-head   { margin-bottom: 22px; padding-inline: 0; }
  .svc-title  { font-size: clamp(1.65rem, 6.5vw, 2.1rem); }
  .svc-lead   { font-size: 0.94rem; }

  /* ---- İletişim / Footer ---- */
  .contact-section {
    min-height: auto;
    /* acil bar + safe area için ekstra boşluk */
    padding: 80px 0 calc(98px + env(safe-area-inset-bottom, 0px));
  }

  .contact-shell {
    width: 100%;
    max-width: 100%;
    padding-inline: var(--gutter-left) var(--gutter-right);
    margin-inline: 0;
    box-sizing: border-box;
  }

  .contact-head   { margin-bottom: 12px; }
  .contact-title  { font-size: clamp(1.45rem, 6.5vw, 1.9rem); }

  .contact-grid { gap: 10px; }

  .contact-info,
  .contact-map-wrap {
    border-radius: 20px;
    min-height: auto;
  }

  .contact-info-head    { gap: 8px; }
  .contact-brand        { font-size: clamp(1.75rem, 8vw, 2.1rem); }
  .contact-info-head h3 { font-size: clamp(1rem, 4vw, 1.18rem); }
  .contact-info-desc    { font-size: 0.9rem; }

  .contact-channels     { gap: 8px; }
  .contact-channels li  {
    grid-template-columns: 86px 1fr;
    gap: 8px;
    padding: 12px 14px;
  }

  /* Ara + WhatsApp yan yana */
  .contact-cta {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .contact-cta .btn { min-height: 52px; font-size: 0.94rem; }

  .contact-map-frame { min-height: 230px; }

  .footer-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    font-size: 0.8rem;
  }

  /* ---- Sabit acil iletişim çubuğu ---- */
  .mobile-emergency-bar {
    position: fixed;
    right: 0; bottom: 0; left: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 10px;
    padding:
      10px
      max(var(--gutter-right), env(safe-area-inset-right, 0px))
      calc(10px + env(safe-area-inset-bottom, 0px))
      max(var(--gutter-left),  env(safe-area-inset-left,  0px));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(4, 4, 4, 0.97);
    backdrop-filter: blur(22px);
    box-shadow: 0 -14px 44px rgba(0, 0, 0, 0.55);
  }

  .mobile-emergency-call,
  .mobile-emergency-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 54px;
    border-radius: 16px;
    font-size: 0.96rem;
    font-weight: 900;
    letter-spacing: -0.01em;
  }
  .mobile-emergency-call {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #130c00;
    box-shadow: 0 10px 28px rgba(255, 120, 0, 0.3);
  }
  .mobile-emergency-wa {
    border: 1px solid rgba(37, 211, 102, 0.38);
    background: rgba(8, 8, 8, 0.95);
    color: #dfffea;
  }
}

/* ============================================================
   KÜÇÜK MOBİL (≤ 479px) — 5 inç ve altı telefonlar
   ============================================================ */
@media (max-width: 479px) {

  .hero h1 { font-size: clamp(1.95rem, 9.5vw, 2.3rem); }

  /* İstatistikler dikey — daha okunabilir */
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .hero-stats span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    padding: 12px 14px;
  }
  .hero-stats strong { font-size: 1.4rem; }
  .hero-stats small  { font-size: 0.72rem; }

  /* İletişim kanalları — etiket üstte */
  .contact-channels li { grid-template-columns: 1fr; gap: 4px; }

  .contact-brand { font-size: clamp(1.62rem, 9vw, 2rem); }

  /* Hizmetler istatistikleri — tek sütun */
  .hs-stats-row { grid-template-columns: 1fr; }

  /* CTA butonlar — tek sütun */
  .contact-cta { grid-template-columns: 1fr; }
  .hero-quick-actions { border-radius: 16px; }
}

/* ============================================================
   ÇOK KÜÇÜK MOBİL (≤ 380px) — Galaxy A serisi, eski telefonlar
   ============================================================ */
@media (max-width: 380px) {

  :root {
    --gutter:       12px;
    --gutter-left:  max(12px, env(safe-area-inset-left,  0px));
    --gutter-right: max(12px, env(safe-area-inset-right, 0px));
  }

  .hero h1 { font-size: 1.78rem; letter-spacing: -0.035em; }

  .brand strong { font-size: 0.82rem; }
  .brand-mark   { width: 32px; height: 32px; font-size: 0.75rem; }
  .menu-toggle  { width: 38px; height: 38px; }

  /* Neden Akıncı — çok dar telefonlarda tek sütun */
  .akinci-grid { grid-template-columns: 1fr; }

  .hero-bubble          { min-height: 56px; }
  .hero-bubble-text strong { font-size: 0.96rem; }
  .hero-bubble-text small  { font-size: 0.7rem; }

  .hs-heading { font-size: 1.35rem; }
  .svc-title  { font-size: 1.55rem; }

  .mobile-emergency-call,
  .mobile-emergency-wa { min-height: 50px; font-size: 0.9rem; }
}

/* ============================================================
   TABLET — orta ekranlar (600px – 1023px) için ince ayar
   ============================================================ */
@media (min-width: 600px) and (max-width: 1023px) {

  .hero-copy {
    padding-top: 128px;
    padding-inline: clamp(24px, 5vw, 48px);
  }
  .hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 3.4rem);
    line-height: 1.02;
  }

  /* Hero butonları tablet'te yan yana */
  .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* İstatistikler 3 sütun kalsın */
  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Ara/WA paneli ortalı sabit genişlik */
  .hero-quick-actions {
    width: min(calc(100% - 48px), 480px);
    margin-inline: auto;
  }

  /* Neden Akıncı — 2x2 grid */
  .akinci-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .ak-card-media { aspect-ratio: 16 / 11; }

  /* Hizmetler istatistikleri — 4 sütun kalsın */
  .hs-stats-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* İletişim CTA yan yana */
  .contact-cta { grid-template-columns: 1fr 1fr; }

  /* Haritalı iletişim kutusu daha yüksek */
  .contact-map-frame { min-height: 320px; }

  /* Video 16/9 oran */
  .hs-video-col { aspect-ratio: 16 / 9; }
}
