/* Hayal Tesisat — etkileşim & responsive (tasarım inline-style; bu dosya interaktif bileşenler) */
/* Yatay taşma önleme: sağdan açılan mobil menü (translateX) ekran dışında durduğu için
   belge genişliğini taşırıyordu. overflow-x:clip yatayı kırpar ama sticky header'ı bozmaz
   (overflow-x:hidden'ın aksine diğer ekseni 'auto'ya zorlamaz). */
html, body { overflow-x: clip; }
[data-hover]{transition:all .2s ease}

/* ===== Dropdown menüler ===== */
.ht-dropdown > .ht-panel{opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .2s ease,transform .2s ease,visibility .2s ease}
.ht-dropdown:hover > .ht-panel{opacity:1;visibility:visible;transform:translateY(0)}

/* ===== Hero slider ===== */
#htHero [data-ht-slide]{transition:opacity .7s ease}

/* ===== SSS akordeon ===== */
.ht-faq-a{display:none}
.ht-faq.open .ht-faq-a{display:block}
.ht-faq.open .ht-faq-ic{transform:rotate(180deg)}
.ht-faq-ic{transition:transform .25s ease}

/* ===== Mobil menü ===== */
.ht-burger{display:none;flex-direction:column;gap:5px;width:46px;height:46px;border:0;background:transparent;cursor:pointer;padding:0;align-items:center;justify-content:center}
.ht-burger span{display:block;width:26px;height:3px;background:#0B2440;border-radius:3px;transition:.3s}
.ht-burger.open span:nth-child(1){transform:translateY(8px) rotate(45deg)}
.ht-burger.open span:nth-child(2){opacity:0}
.ht-burger.open span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
.ht-mobov{position:fixed;inset:0;background:rgba(7,32,63,.55);opacity:0;visibility:hidden;transition:.3s;z-index:999}
.ht-mobov.open{opacity:1;visibility:visible}
.ht-mobnav{position:fixed;top:0;right:0;width:330px;max-width:88vw;height:100dvh;background:#fff;z-index:1000;transform:translateX(100%);transition:transform .32s cubic-bezier(.4,0,.2,1);overflow-y:auto;box-shadow:-12px 0 44px rgba(0,0,0,.25);display:flex;flex-direction:column}
.ht-mobnav.open{transform:translateX(0)}
body.ht-lock{overflow:hidden}
/* başlık */
.ht-mob-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #eef2f7}
.ht-mob-logo{display:flex;align-items:center;gap:9px}
.ht-mob-logo-ic{display:inline-flex;width:34px;height:34px;border-radius:10px;background:#0F2A48;align-items:center;justify-content:center}
.ht-mob-logo-tx{font-family:'Sora';font-weight:800;font-size:17px;color:#07203F;letter-spacing:-.02em}
.ht-mob-logo-tx span{color:#1C5A97}
.ht-mob-close{font-size:32px;line-height:1;border:0;background:none;cursor:pointer;color:#0B2440;width:40px;height:40px}
/* hızlı CTA */
.ht-mob-cta{display:flex;gap:10px;padding:16px 20px}
.ht-mob-cta a{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:13px;border-radius:11px;font-weight:700;font-size:14.5px;color:#fff}
.ht-mob-call{background:#FF6A1A}
.ht-mob-wa{background:#25D366}
/* linkler */
.ht-mob-links{padding:4px 0;flex:1}
.ht-mob-link{display:block;padding:14px 20px;font-weight:600;font-size:16px;color:#0B2440;border-bottom:1px solid #f1f5f9}
.ht-mob-link:hover{background:#f4f8fc;color:#1C5A97}
/* akordeon */
.ht-mob-acc{border-bottom:1px solid #f1f5f9}
.ht-mob-acc-t{display:flex;align-items:center;justify-content:space-between;width:100%;padding:14px 20px;border:0;background:none;cursor:pointer;font-family:inherit;font-weight:600;font-size:16px;color:#0B2440}
.ht-mob-acc-t svg{transition:transform .25s ease;color:#7C90A8}
.ht-mob-acc.open .ht-mob-acc-t{color:#1C5A97}
.ht-mob-acc.open .ht-mob-acc-t svg{transform:rotate(180deg);color:#1C5A97}
.ht-mob-acc-p{max-height:0;overflow:hidden;transition:max-height .3s ease;background:#F6F9FC}
.ht-mob-acc.open .ht-mob-acc-p{max-height:420px}
.ht-mob-acc-p a{display:block;padding:11px 20px 11px 34px;font-size:14.5px;font-weight:500;color:#33465E}
.ht-mob-acc-p a:hover{color:#1C5A97}
.ht-mob-acc-all{font-weight:700 !important;color:#1C5A97 !important}
/* alt iletişim */
.ht-mob-foot{padding:18px 20px;background:#07203F;display:flex;flex-direction:column;gap:12px}
.ht-mob-foot a{display:flex;align-items:center;gap:9px;font-size:13.5px;color:#cfe0f5;font-weight:500}

/* ===== Bölge-hizmet (SEO) sayfası ===== */
.ht-content-grid > aside details, details > summary::-webkit-details-marker{}
.ht-content-grid details[open] summary{color:#1C5A97}

@media(max-width:980px){
  .ht-desktop-nav{display:none !important}
  .ht-burger{display:flex}
  /* mobil header: CTA buton sığmıyordu → gizle (arama: hamburger menü + yüzen buton). topbar telefonları sarmasın → gizle. logo normal boyutta kalsın (yer var). */
  .ht-header-cta{display:none !important}
  .ht-logo-img{height:46px !important}
  .ht-topbar-phones{display:none !important}
  .ht-hero-grid{grid-template-columns:1fr !important}
  .ht-hero-grid img{height:240px !important}
  .ht-content-grid{grid-template-columns:1fr !important}
  .ht-content-grid aside{position:static !important}
  .ht-cards-4{grid-template-columns:repeat(2,1fr) !important}
  /* anasayfa: çok kartlı gridler tablette 2 sütun */
  .svc-grid,.work-grid,.steps-grid{grid-template-columns:repeat(2,1fr) !important}
  /* 3 bloklu gridler 2+1 (öksüz kart) olmasın → direkt tek sütun */
  .rev-grid,.home-gallery,.why-grid,.region-grid{grid-template-columns:1fr !important}
  /* footer: 4 sütun → tablette 2 sütun */
  .foot-grid{grid-template-columns:1fr 1fr !important;gap:32px !important}
  /* elle yapılan hizmet detay + iletişim sayfaları */
  .svc-hero,.why2,.svc-gallery,.ct-grid{grid-template-columns:1fr !important}
  .why2{padding:28px !important}
  .sub-grid{grid-template-columns:repeat(2,1fr) !important}
}
@media(max-width:680px){
  .ht-stat-row{grid-template-columns:repeat(2,1fr) !important}
  .ht-cards-2{grid-template-columns:1fr !important}
  .ht-cards-4{grid-template-columns:1fr !important}
  /* anasayfa + hizmet detay + iletişim form satırları — tek sütun */
  .svc-grid,.work-grid,.rev-grid,.steps-grid,.sub-grid,.ct-row{grid-template-columns:1fr !important}
  /* footer: telefonda tek sütun (sol hizalı, temiz yığma) + alt bar ortalı */
  .foot-grid{grid-template-columns:1fr !important;gap:28px !important}
  .foot-bottom{justify-content:center !important;text-align:center}
  .stats-grid{grid-template-columns:repeat(2,1fr) !important;text-align:center}
  .why-cards{grid-template-columns:1fr !important}
  /* galeri mozaiğini sıfırla */
  .shots-grid{grid-template-columns:repeat(2,1fr) !important;grid-auto-rows:150px !important}
  .shots-grid img{grid-column:auto !important;grid-row:auto !important}
}
