/* Hero: tek tam genişlik slider */
html {
  overflow-x: hidden;
}

body.home,
body.ty-home-hero {
  overflow-x: hidden;
  max-width: 100%;
}

/* Tema .container ana sayfada slider'ı daraltıyor — kaldır */
body.home .page-area > .container,
body.ty-home-hero .page-area > .container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.home .page-area > .container > .row,
body.ty-home-hero .page-area > .container > .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.home .page-area > .container > .row > [class*='col-'],
body.ty-home-hero .page-area > .container > .row > [class*='col-'] {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.ty-home-hero .page-content-wrapper,
.ty-home-hero .page-content,
body.home .page-content-wrapper,
body.home .page-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: none !important;
  width: 100% !important;
  overflow-x: hidden;
}

.ty-home-hero .elementor-element:has(.banner-three-section),
.ty-home-hero .e-con:has(.banner-three-section),
body.home .elementor-element:has(.banner-three-section),
body.home .e-con:has(.banner-three-section),
body.home .elementor-widget-banner_widget,
body.ty-home-hero .elementor-widget-banner_widget {
  --width: 100% !important;
  --container-max-width: 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.ty-home-hero .banner-three-section,
body.home .banner-three-section,
.ty-home-hero .ty-hero-full,
body.home .ty-hero-full {
  position: relative;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 0 !important;
  overflow: hidden;
}

.ty-home-hero .elementor-element:has(.service-tab-section),
.ty-home-hero .e-con:has(.service-tab-section),
.ty-home-hero .elementor-element:has(.faq-section),
.ty-home-hero .e-con:has(.faq-section) {
  --width: 100% !important;
  --container-max-width: 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.ty-home-hero .banner-three-section > .container-fluid,
body.home .banner-three-section > .container-fluid {
  display: none !important;
}

.ty-hero-full {
  min-height: clamp(460px, 72vh, 780px);
  background: #0b1a33;
}

.ty-hero-flow {
  position: absolute;
  inset: 0;
}

.ty-hero-flow__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}

.ty-hero-flow__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.ty-hero-flow__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  image-rendering: auto;
}

.ty-hero-flow__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 14, 30, 0.15) 0%, rgba(6, 14, 30, 0.55) 100%);
  pointer-events: none;
}

.ty-hero-flow__caption {
  position: absolute;
  left: clamp(20px, 5vw, 72px);
  bottom: clamp(56px, 9vh, 96px);
  z-index: 4;
  margin: 0;
  max-width: min(680px, 86vw);
  color: #fff;
  font-family: 'Manrope', 'Roboto', sans-serif;
  font-size: clamp(26px, 4.2vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.ty-hero-flow__slide.is-active .ty-hero-flow__caption {
  opacity: 1;
  transform: translateY(0);
}

.ty-hero-flow__dots {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 3vh, 28px);
  z-index: 5;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.ty-hero-flow__dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: width 0.25s ease, background 0.25s ease;
}

.ty-hero-flow__dots button.is-active {
  width: 28px;
  background: #d89a31;
}

.ty-hero-whatsapp {
  position: absolute;
  right: clamp(16px, 3vw, 40px);
  bottom: clamp(56px, 9vh, 96px);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  background: #25d366;
  color: #fff !important;
  font-family: 'Manrope', 'Roboto', sans-serif;
  font-weight: 800;
  font-size: clamp(14px, 1.6vw, 16px);
  text-decoration: none !important;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ty-hero-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.34);
  color: #fff !important;
}

.ty-hero-whatsapp svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

@media (max-width: 767px) {
  .ty-hero-full {
    min-height: clamp(360px, 58vh, 520px);
  }

  .ty-hero-flow__caption {
    font-size: clamp(22px, 6vw, 32px);
    bottom: 108px;
    left: 16px;
    right: 16px;
    max-width: none;
  }

  .ty-hero-whatsapp {
    left: 50%;
    right: auto;
    bottom: 18px;
    transform: translateX(-50%);
    padding: 11px 16px;
    font-size: 13px;
    gap: 8px;
    white-space: nowrap;
  }

  .ty-hero-whatsapp:hover {
    transform: translateX(-50%) translateY(-2px);
  }

  .ty-hero-whatsapp span {
    max-width: none;
    line-height: 1.2;
  }

  .ty-hero-flow__dots {
    bottom: 62px;
  }

  .ty-work-gallery {
    padding: 0 12px;
    margin-bottom: 18px;
  }

  .ty-work-gallery__shell {
    padding: 18px 16px;
    border-radius: 22px;
  }

  .ty-work-gallery__head {
    gap: 14px;
  }

  .ty-work-gallery__actions {
    width: 100%;
    justify-content: flex-end;
  }

  .ty-home-hero .service-tab-btn-area ul .nav-link {
    width: 100%;
    max-width: 100%;
    gap: 16px;
    padding: 18px 16px;
    font-size: 17px;
  }

  .ty-home-hero .service-tab-btn-area ul .nav-link:before {
    display: none;
  }

  .ty-home-hero .service-tab-content {
    padding: 20px 16px;
    gap: 24px;
  }

  .ty-home-hero .service-tab-title-area {
    align-items: flex-start;
    gap: 16px;
  }

  .ty-home-hero .small-container,
  .ty-home-hero .faq-section .small-container,
  .ty-home-hero .service-tab-section .small-container,
  .ty-home-hero .ty-blog-flow .small-container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Proje galerileri — tesliminsaat tarzı */
.ty-work-gallery {
  --ty-dark: #171717;
  --ty-orange: #d89a31;
  --ty-soft: #f7f3ec;
  --ty-line: #e8dfd3;
  --ty-muted: #5f5a54;
  margin: 0 auto 26px;
  max-width: 1290px;
  padding: 0 15px;
  font-family: 'Manrope', 'Roboto', sans-serif;
}

.ty-work-gallery *,
.elementor-widget-html .ty-work-gallery * {
  font-family: 'Manrope', 'Roboto', sans-serif;
}

.ty-work-gallery__shell {
  border: 1px solid var(--ty-line);
  border-radius: 30px;
  padding: clamp(22px, 3vw, 34px);
  background: #fff;
  box-shadow: 0 18px 50px rgba(45, 34, 18, 0.06);
}

.ty-work-gallery--tone-soft .ty-work-gallery__shell {
  background: linear-gradient(180deg, #fff 0%, var(--ty-soft) 100%);
}

.ty-work-gallery--tone-light .ty-work-gallery__shell {
  background: #fff;
  border-color: #e8edf5;
}

.ty-work-gallery--tone-dark .ty-work-gallery__shell {
  background: linear-gradient(135deg, #141414, #221b14);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.ty-work-gallery--tone-dark .ty-work-gallery__title,
.ty-work-gallery--tone-dark .ty-work-gallery__title a,
.ty-work-gallery--tone-dark .ty-work-gallery__desc {
  color: #fff;
}

.ty-work-gallery--tone-dark .ty-work-gallery__desc {
  color: rgba(255, 255, 255, 0.78);
}

.ty-work-gallery--tone-dark .ty-work-gallery__actions button {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.ty-work-gallery__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.ty-work-gallery__kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(219, 155, 46, 0.14);
  color: var(--ty-orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.ty-work-gallery__title {
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.08;
  margin: 0 0 10px;
  color: var(--ty-dark);
  letter-spacing: -0.035em;
  font-weight: 800;
}

.ty-work-gallery__title a {
  color: inherit;
  text-decoration: none;
}

.ty-work-gallery__title a:hover {
  color: var(--ty-orange);
}

.ty-work-gallery__desc {
  margin: 0 0 16px;
  max-width: 760px;
  line-height: 1.72;
  color: var(--ty-muted);
}

.ty-work-gallery__btn {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--ty-orange);
  color: #111 !important;
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(219, 155, 46, 0.24);
}

.ty-work-gallery__body {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  align-items: stretch;
}

.ty-work-gallery--layout-track-only .ty-work-gallery__body {
  grid-template-columns: 1fr;
}

.ty-work-gallery--layout-track-only .ty-gallery-item {
  flex: 0 0 clamp(260px, 42vw, 420px);
}

.ty-work-gallery__feature {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  min-height: 280px;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
  background: #dfe5ee;
}

.ty-work-gallery__feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.ty-work-gallery__feature:hover img {
  transform: scale(1.04);
}

.ty-work-gallery__feature span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 11px 14px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.ty-work-gallery__actions {
  display: inline-flex;
  gap: 10px;
  flex: 0 0 auto;
}

.ty-work-gallery__actions button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--ty-line);
  background: #fff;
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.ty-gallery-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 16px;
  scrollbar-width: thin;
  align-items: flex-start;
}

.ty-gallery-item {
  flex: 0 0 calc(50% - 9px);
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 280px;
  border-radius: 24px;
  overflow: hidden;
  background: #dfe5ee;
  scroll-snap-align: start;
  text-decoration: none !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.11);
}

.ty-gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.ty-gallery-item:hover img {
  transform: scale(1.04);
}

.ty-gallery-item strong {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 11px 14px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.ty-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  padding: 34px;
}

.ty-lightbox.is-open {
  display: flex;
}

.ty-lightbox__inner img {
  max-width: min(1120px, 92vw);
  max-height: 78vh;
  border-radius: 18px;
  object-fit: contain;
}

.ty-lightbox p {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  margin: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  border-radius: 999px;
  padding: 10px 18px;
}

.ty-lightbox button {
  position: fixed;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.ty-lightbox__close { right: 28px; top: 24px; }
.ty-lightbox__prev { left: 28px; top: 50%; transform: translateY(-50%); }
.ty-lightbox__next { right: 28px; top: 50%; transform: translateY(-50%); }

body.ty-lightbox-open { overflow: hidden; }

body.elementor-editor-active .ty-work-gallery,
.elementor-editor-active .ty-work-gallery,
body.elementor-editor-active .ty-blog-flow,
.elementor-editor-active .ty-blog-flow {
  opacity: 1 !important;
  visibility: visible !important;
}

@media (max-width: 991px) {
  .ty-work-gallery__head { flex-direction: column; align-items: flex-start; }
  .ty-work-gallery__body { grid-template-columns: 1fr; }
  .ty-gallery-item { flex-basis: 88%; min-height: 240px; }
}

/* Blog carousel — 3 kart görünür, tüm yazılar döner */
.ty-blog-flow {
  overflow: hidden;
}

.ty-blog-flow__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.ty-blog-flow__viewport {
  overflow: hidden;
  width: 100%;
  container-type: inline-size;
  container-name: ty-blog;
}

.ty-blog-flow__track {
  display: flex;
  gap: 24px;
  transition: transform 0.65s ease;
  will-change: transform;
}

.ty-blog-card {
  flex: 0 0 calc((100cqi - 48px) / 3);
  min-width: 0;
  border: 1px solid #e4eaf2;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 31, 61, 0.08);
}

@container ty-blog (max-width: 767px) {
  .ty-blog-card {
    flex: 0 0 100cqi;
  }
}

@supports not (width: 100cqi) {
  .ty-blog-card {
    flex: 0 0 100%;
  }
}

.ty-blog-card__image {
  display: block;
  height: 220px;
  overflow: hidden;
}

.ty-blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.ty-blog-card:hover .ty-blog-card__image img {
  transform: scale(1.05);
}

.ty-blog-card__body {
  padding: 20px 22px 24px;
}

.ty-blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #5a6478;
  margin-bottom: 12px;
}

.ty-blog-card__meta i {
  color: #db9b2e;
  margin-right: 4px;
}

.ty-blog-card__title {
  margin: 0 0 10px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.25;
}

.ty-blog-card__title a {
  color: #0f1f3d;
  text-decoration: none;
}

.ty-blog-card__title a:hover {
  color: #db9b2e;
}

.ty-blog-card__excerpt {
  margin: 0 0 16px;
  color: #5a6478;
  line-height: 1.65;
  font-size: 14px;
}

@media (max-width: 767px) {
  .ty-blog-flow__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@supports not (width: 100cqi) {
  @media (min-width: 768px) {
    .ty-blog-card {
      flex: 0 0 calc(33.333% - 16px);
    }
  }
}

/* Hizmet sekmeleri — kenar boşluksuz tam genişlik */
.ty-home-hero .service-tab-section {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.ty-home-hero .service-tab-section .small-container {
  max-width: 1290px;
  width: 100%;
}

/* SSS — kenar boşluksuz tam genişlik */
.ty-home-hero .faq-section {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.ty-home-hero .faq-section .small-container {
  max-width: 1290px;
  width: 100%;
}

/* Footer üstü ince beyaz boşluk */
body.home footer,
body.page-id-1281 footer {
  padding-top: clamp(20px, 3vw, 36px);
  background-color: #ffffff;
}
