/* =========================================================================
   HMD Kumaş — cihaz uyumu katmanı
   theme.css ve widgets.css'ten SONRA yüklenir, onların üzerine yazar.
   Sıra: yapısal düzeltmeler → büyük ekrandan küçüğe.
   ========================================================================= */

/* -------------------------------------------------------------------------
   YAPISAL: footer başlığındaki dekoratif çizgi
   Sabit 170px genişlikte, mutlak konumluydu; her ekranda sayfayı yatayda
   taşırıyordu. Artık kalan boşluğu esnek biçimde dolduruyor.
   ------------------------------------------------------------------------- */
.hmd-footer__title{display:flex;align-items:center;gap:20px}
.hmd-footer__title::after{
	content:"";position:static;flex:1 1 auto;width:auto;height:1px;
	background:rgba(255,255,255,.2);
}

/* Hiçbir bölüm sayfayı yatayda taşırmasın */
html,body{max-width:100%;overflow-x:hidden}

/* -------------------------------------------------------------------------
   YAPISAL: logo ölçüsü
   Logo neredeyse kare (1.29:1). Geniş logolar için tasarlanmış 46px'lik
   yükseklikte görsel ağırlığı çok düşük kalıyordu; header yüksekliğinin
   (105px) izin verdiği ölçüye çıkarıldı.
   ------------------------------------------------------------------------- */
.hmd-logo img{max-height:78px;width:auto}
.hmd-footer .hmd-logo img,.hmd-logo--footer img{max-height:88px}
.hmd-mobile-panel .hmd-logo img{max-height:52px}

/* Kaydırınca sabitlenen header: eğik beyaz panel kalkar, logo içerik
   kenarına hizalanır (sağdaki menüyle simetrik). */
.hmd-header.is-stuck .hmd-logo img{max-height:72px}
.hmd-header.is-transparent.is-stuck .hmd-header__bar{padding-left:30px}
.hmd-header.is-transparent.is-stuck .hmd-header__logo{padding:0}

/* Logo paneli büyüyen logoya göre nefes alsın */
.hmd-header.is-transparent .hmd-header__logo{padding:0 92px 0 58px}

/* =========================================================================
   BÜYÜK MONİTÖR — 1920px ve üzeri
   ========================================================================= */
@media (min-width:1920px){
	:root{--hmd-header-h:112px}
	body{font-size:17px;line-height:32px}

	.hmd-container{max-width:1520px}
	.e-con{--container-max-width:1440px}

	/* Header tam genişlik: logo paneli sol kenara yapışsın */
	.hmd-header__bar{max-width:none;padding-right:70px}
	.hmd-menu{gap:40px}

	.hmd-hero__slide{min-height:900px}
	.hmd-hero__content{max-width:780px}
	.hmd-hero__title{font-size:66px;line-height:80px}
	.hmd-hero__text{font-size:20px;line-height:34px;max-width:620px}

	.hmd-heading__title{font-size:42px;line-height:56px}
	.hmd-counter__number{font-size:52px;line-height:52px}
	.hmd-counter__title{font-size:19px}
	.hmd-page-header{padding:240px 0 115px}
	.hmd-page-header__title{font-size:52px}
	.hmd-cta__title{font-size:30px;line-height:40px}
}

/* =========================================================================
   MONİTÖR — 1600 – 1919px
   ========================================================================= */
@media (min-width:1600px) and (max-width:1919px){
	.hmd-container{max-width:1390px}
	.e-con{--container-max-width:1320px}
	.hmd-header__bar{max-width:1560px}

	.hmd-hero__slide{min-height:860px}
	.hmd-hero__title{font-size:62px;line-height:76px}
	.hmd-hero__text{font-size:19px}
	.hmd-heading__title{font-size:39px;line-height:52px}
	.hmd-page-header{padding:210px 0 100px}
	.hmd-page-header__title{font-size:48px}
}

/* =========================================================================
   BÜYÜK LAPTOP — 1441px altı: header'ı sıkılaştır
   ========================================================================= */
@media (max-width:1440px){
	.hmd-header__bar{max-width:100%;padding:0 26px}
	.hmd-header.is-transparent .hmd-header__bar{padding-left:0}
	.hmd-header.is-transparent.is-stuck .hmd-header__bar{padding-left:26px}
	.hmd-menu{gap:24px}
	.hmd-header__actions{margin-left:20px;gap:12px}
	.hmd-header.is-transparent .hmd-header__logo{padding:0 76px 0 36px}
	.hmd-logo img{max-height:72px}
	.hmd-header.is-stuck .hmd-logo img{max-height:66px}
	.hmd-hero__title{font-size:54px;line-height:66px}
}

/* =========================================================================
   LAPTOP — 1320px altı
   ========================================================================= */
@media (max-width:1320px){
	.hmd-menu{gap:16px}
	.hmd-menu > li > a{font-size:15px}
	.hmd-header__actions{margin-left:12px;gap:8px}
	.hmd-header__cta{height:40px;padding:0 18px;font-size:13px}
	.hmd-lang__item{min-width:32px;height:28px;padding:0 6px;font-size:12px}
	.hmd-icon-btn{width:34px;height:34px;font-size:16px}
	.hmd-header.is-transparent .hmd-header__logo{padding:0 60px 0 26px}
	.hmd-logo--text span{font-size:26px}
	.hmd-logo img{max-height:64px}
	.hmd-header.is-stuck .hmd-logo img{max-height:60px}

	.hmd-hero__title{font-size:48px;line-height:60px}
	.hmd-hero__content{padding-left:26px}
	.hmd-heading__title{font-size:33px;line-height:44px}
}

/* =========================================================================
   TABLET (yatay) — 1024px altı: menü hamburger'e döner
   ========================================================================= */
@media (max-width:1024px){
	.hmd-header.is-transparent.is-stuck .hmd-header__bar{padding-left:20px}

	/* Header 80px'e düşüyor, logo da orantılı küçülsün */
	.hmd-logo img,.hmd-header.is-stuck .hmd-logo img{max-height:58px}

	/* Hero yüksekliği: panelden verilen değeri ezmeden sınırla */
	.hmd-hero__slide{max-height:620px;min-height:0}
	.hmd-hero__title{font-size:38px;line-height:50px}
	.hmd-hero__text{font-size:16px;line-height:28px}

	.hmd-features--panel{padding:40px 14px}
	.hmd-feature{padding:0 20px}
	.hmd-page-header{padding:150px 0 70px}
	.hmd-page-header__title{font-size:34px}
	.hmd-icon-grid__item{min-height:150px;gap:10px}
	.hmd-icon-grid__icon{font-size:32px}
	.hmd-icon-grid__title{font-size:15px;line-height:22px}
	.hmd-cta{padding:34px 28px}
	.hmd-cta__title{font-size:23px;line-height:31px}
}

/* =========================================================================
   TABLET (dikey) — 900px altı: iki sütunlu satırları alt alta al
   ========================================================================= */
@media (max-width:900px){
	/* Elementor satır kapsayıcıları sarmalansın, sütunlar tam genişlik olsun */
	.e-con.e-flex{--flex-wrap:wrap}
	.e-con.e-flex > .e-con,
	.e-con.e-flex > .e-con-inner > .e-con{--width:100%!important}

	.hmd-counters{gap:26px 20px}

	.hmd-about-media{padding:24px 0 0 18px}
	.hmd-about-media__badge{font-size:17px;padding:22px 11px}
	.hmd-footer__grid{grid-template-columns:1fr 1fr;gap:34px}
	.hmd-footer__col--news{grid-column:1/-1}
	.hmd-tabs__nav{gap:24px}
}

/* =========================================================================
   TELEFON — 767px altı
   ========================================================================= */
@media (max-width:767px){
	.hmd-logo img,.hmd-header.is-stuck .hmd-logo img{max-height:54px}

	/* ---- Mobilde logo ortada ----
	   Eğik beyaz panel kaldırılır, header düz beyaz bir şerit olur ve
	   slider'ın üstüne binmez. Logo tam ortada, arama + menü sağda. */
	.hmd-header,
	.hmd-header.is-transparent{
		position:relative;background:#fff;
		box-shadow:0 2px 18px rgba(43,44,43,.08);
	}
	.hmd-header__bar{position:relative;justify-content:flex-end;padding:0 14px}
	.hmd-header.is-transparent .hmd-header__bar{padding-left:14px}
	.hmd-header.is-transparent.is-stuck .hmd-header__bar{padding-left:14px}

	.hmd-header__logo,
	.hmd-header.is-transparent .hmd-header__logo,
	.hmd-header.is-transparent.is-stuck .hmd-header__logo{
		position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
		background:none;clip-path:none;padding:0;height:auto;
	}
	.hmd-header__actions{margin-left:auto;position:relative;z-index:2}

	/* Beyaz zemine göre ikon ve yazı renkleri */
	.hmd-header.is-transparent .hmd-icon-btn,
	.hmd-header.is-transparent .hmd-lang__item,
	.hmd-header.is-transparent .hmd-logo--text span{color:var(--hmd-heading)}
	.hmd-header.is-transparent .hmd-burger span{background:var(--hmd-heading)}

	/* Header artık yer kapladığı için başlık bandı boşluğu azalır */
	.hmd-page-header{padding:62px 0 46px}

	.hmd-hero__slide{max-height:520px}
	.hmd-hero__title{font-size:30px;line-height:40px}
	.hmd-hero__content{padding-left:0}
	.hmd-hero__text{margin-bottom:26px}

	.hmd-counters{gap:22px 16px}
	.hmd-counter__icon{font-size:34px}
	.hmd-counter__number{font-size:34px;line-height:34px}
	.hmd-counter__title{font-size:16px;line-height:26px}

	.hmd-case{padding-bottom:60px}
	.hmd-case__box{left:16px;right:16px;padding:16px 18px 20px}
	.hmd-case__title{font-size:18px;line-height:24px}

	.hmd-page-header{padding:120px 0 52px}
	.hmd-page-header__title{font-size:27px;line-height:36px}
	.hmd-breadcrumb{font-size:14px;gap:8px}

	.hmd-signature__person{gap:14px}
	.hmd-footer__top{padding:56px 0 46px}
	.hmd-totop{right:16px;bottom:16px;width:44px;height:44px}
}

/* =========================================================================
   KÜÇÜK TELEFON — 480px altı
   ========================================================================= */
@media (max-width:480px){
	body{font-size:15px;line-height:27px}
	.hmd-container{padding:0 16px}
	.hmd-section{padding:46px 0}

	.hmd-hero__slide{max-height:440px}
	.hmd-hero__title{font-size:26px;line-height:35px}
	.hmd-hero__text{font-size:15px;line-height:26px}

	/* Uzun site adı küçük telefonda header'ı taşırıyordu */
	.hmd-logo--text span{font-size:17px;letter-spacing:-.3px}
	.hmd-logo img,.hmd-header.is-stuck .hmd-logo img{max-height:48px}
	.hmd-header__actions{gap:4px}
	.hmd-icon-btn{width:32px;height:32px;font-size:15px}
	.hmd-burger{width:38px}

	.hmd-heading__title{font-size:23px;line-height:32px}
	.hmd-heading__sub{font-size:15px;gap:12px}
	.hmd-heading__line{width:34px}

	.hmd-features--panel{padding:26px 6px}
	.hmd-feature{padding:0 14px}
	.hmd-feature__title{font-size:18px;line-height:24px}

	.hmd-btn{height:48px;padding:0 24px;font-size:14px}
	.hmd-cta{padding:26px 18px}
	.hmd-cta__title{font-size:20px;line-height:28px}

	.hmd-icon-grid__item{min-height:126px;padding:16px 8px}
	.hmd-icon-grid__icon{font-size:27px}
	.hmd-icon-grid__title{font-size:13px;line-height:19px}

	.hmd-counter{justify-content:flex-start}

	.hmd-page-header__title{font-size:24px;line-height:32px}
	.hmd-404__code{font-size:78px}
	.hmd-testimonial__avatar,.hmd-testimonial__avatar img{width:118px;height:118px}
	.hmd-form input,.hmd-form textarea{padding:0 15px}
	.hmd-form textarea{padding:14px 15px}
}

/* =========================================================================
   ÇOK KÜÇÜK TELEFON — 360px altı
   ========================================================================= */
@media (max-width:360px){
	.hmd-container{padding:0 13px}
	.hmd-header__bar{padding:0 10px}
	.hmd-logo--text span{font-size:15px}
	.hmd-logo img,.hmd-header.is-stuck .hmd-logo img{max-height:42px}
	.hmd-header__actions{gap:2px}

	.hmd-hero__title{font-size:23px;line-height:31px}
	.hmd-heading__title{font-size:21px;line-height:30px}
	.hmd-btn{padding:0 20px;font-size:13px}
	.hmd-page-header__title{font-size:22px;line-height:30px}
	.hmd-mobile-panel{width:100%;max-width:100%}
}

/* =========================================================================
   YATAY TELEFON — alçak ekranlarda hero kısalsın
   ========================================================================= */
@media (max-height:520px) and (orientation:landscape){
	.hmd-hero__slide{max-height:440px}
	.hmd-page-header{padding:110px 0 46px}
}

/* =========================================================================
   BASKI
   ========================================================================= */
@media print{
	.hmd-header,.hmd-footer,.hmd-totop,.hmd-hero__nav,.hmd-mobile-panel,
	.hmd-search-overlay,.hmd-overlay{display:none!important}
	body{font-size:12pt;color:#000}
	.hmd-section{padding:0}
}
