/* Prevent data-width image flash before JS runs */
img[data-width="90"] { width: 90px; height: auto; }
img[data-width="120"] { width: 120px; height: auto; }
img[data-width="180"] { width: 180px; height: auto; }
img[data-width="200"] { width: 200px; height: auto; }
video[data-width="650"] { width: 650px; max-width: 100%; height: auto; }

.px-header-logo img {
  width: 180px;
  height: auto;
  display: block;
}

/* Sticky header: don't nudge logo with extra padding */
.header-fixed.sticky-bg .px-header-logo {
  padding-top: 0;
}

/* Client brand logos — fixed box keeps SVG visible, original colors preserved */
.px-brand-style-3 .px-brand-item img {
   height: 140px;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.25s ease;
}

.px-brand-style-3 .px-brand-item:hover img {
  opacity: 1;
}

/* Premium hero — keep template title scale, refine surrounding copy */
.px-hero-eyebrow {
  display: inline-block;
  margin-bottom: 37px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(0 0 0);
}

.px-hero-lead {
  margin: 32px 0 0;
  max-width: 540px;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  color: rgba(10, 10, 10, 0.58);
}

@media (max-width: 767px) {
  .px-hero-eyebrow {
    margin-bottom: 14px;
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  .px-hero-lead {
    margin-top: 22px;
    font-size: 15px;
  }
}

/* Language switch */
.px-header-box {
  gap: 40px;
}

.px-header-menu {
  margin-right: 12px;
}

.px-header-action {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 16px;
}

.px-lang-switch {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 4px;
  border: 1px solid rgba(10, 10, 10, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.px-lang-switch__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.45);
  transition: color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.px-lang-switch__item:hover {
  color: rgba(10, 10, 10, 0.85);
}

.px-lang-switch__item.is-active {
  color: #fff;
  background-color: #0a0a0a;
  box-shadow: 0 4px 14px rgba(10, 10, 10, 0.18);
  pointer-events: none;
}

.px-lang-switch__item:not(.is-active):focus-visible {
  outline: 2px solid rgba(10, 10, 10, 0.35);
  outline-offset: 2px;
}

.px-header-action .px-header-bar {
  margin-left: 0;
}

/* Hamburger sadece mobilde / tablet’te (menü xl’de açık) */
@media (min-width: 1200px) {
  .px-header-action .px-header-bar.tp-offcanvas-open-btn {
    display: none !important;
  }
}

@media (max-width: 1199px) {
  .px-header-box {
    gap: 16px;
  }

  .px-header-action {
    gap: 18px;
  }
}

@media (max-width: 575px) {
  .px-header-action {
    gap: 14px;
  }

  .px-lang-switch {
    padding: 3px;
  }

  .px-lang-switch__item {
    min-width: 36px;
    height: 30px;
    padding: 0 11px;
    font-size: 11px;
  }
}

/* Project grid cards */
.px-project-3-thumb img {
  width: 100%;
}

.px-project-3-content {
  flex-wrap: wrap;
  align-items: flex-start !important;
  gap: 10px 16px;
}

.px-project-3-content .px-project-3-title {
  flex: 1 1 160px;
  min-width: 0;
  max-width: 100%;
  padding-right: 0;
  margin-bottom: 0;
}

.px-project-3-content .px-project-3-category {
  flex: 1 1 200px;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.px-project-3-content .px-project-3-category span {
  margin-left: 0 !important;
  max-width: 100%;
  white-space: normal;
  line-height: 1.35;
  text-align: center;
}

@media (max-width: 767px) {
  .px-project-3-content .px-project-3-category {
    justify-content: flex-start;
  }
}

/* Project detail — Taximpro style (gallery left, copy right) */
.tx-project-detail__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.tx-project-detail__nav a,
.tx-project-detail__nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tx-project-detail__nav a:hover,
.tx-project-detail__nav-links a:hover {
  color: #0a0a0a;
}

.tx-project-detail__nav-links {
  display: flex;
  gap: 28px;
}

.tx-project-detail__title {
  margin: 0;
  font-family: var(--tp-ff-thundermed, inherit);
  font-size: clamp(42px, 6vw, 80px);
  line-height: 1.05;
  color: #0a0a0a;
}

.tx-project-detail__gallery {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.tx-project-detail__shot {
  width: 100%;
  overflow: hidden;
  background: #f0f0f0;
}

.tx-project-detail__shot img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.tx-project-detail__row {
  align-items: flex-start;
}

.tx-project-detail__row > [class*="col-"] {
  padding-top: 0;
}

.tx-project-detail__aside {
  position: sticky;
  top: 100px;
  margin-top: 0;
  padding-top: 0;
  padding-left: 10px;
}

.tx-project-detail__aside-title {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: #0a0a0a;
}

.tx-project-detail__text {
  margin-top: 0;
}

.tx-project-detail__text p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(10, 10, 10, 0.72);
}

.tx-project-detail__text p:first-child {
  margin-top: 0;
}

.tx-project-detail__service {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #0a0a0a;
}

.tx-project-detail__service strong {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 991px) {
  .tx-project-detail__aside {
    position: static;
    padding-left: 0;
    margin-top: 40px;
  }
}
