/* Service Detail Pages — Online/Offline Hizmetlerimiz */
/* Sayfa hero stilleri: css/page-hero.css (.page-hero) */

/* ----- Service Marquee ----- */
.service-marquee {
  background: var(--color-black);
  padding: 44px 0;
  overflow: hidden;
}

.service-marquee__track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: service-marquee 45s linear infinite;
}

.service-marquee__group {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-shrink: 0;
}

.service-marquee__group span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--color-bg);
  white-space: nowrap;
}

@keyframes service-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  .service-marquee {
    padding: 28px 0;
  }

  .service-marquee__group span {
    font-size: 18px;
  }

  .service-marquee__group {
    gap: 40px;
  }

  .service-marquee__track {
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .service-marquee {
    padding: 29px 0;
  }

  .service-marquee__group span {
    font-size: 16px;
  }

  .service-marquee__group {
    gap: 26px;
  }

  .service-marquee__track {
    gap: 26px;
  }
}

/* ----- Service List ----- */
.service-list {
  display: flex;
  flex-direction: column;
}

.service-row {
  display: flex;
  width: 100%;
}

.service-row--reverse {
  flex-direction: row-reverse;
}

.service-row__media {
  flex: 0 0 50%;
  width: 50%;
  height: 720px;
  overflow: hidden;
  background: #fff;
  position: relative;
}

.service-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-row:hover .service-row__media img {
  transform: scale(1.03);
}

.service-row__card {
  flex: 0 0 50%;
  width: 50%;
  height: 720px;
  background: var(--color-bg);
  border: 1px solid var(--color-black);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.service-row__card-icon {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-row__card-icon img {
  width: 100px;
  height: 100px;
  transform: rotate(90deg);
}

.service-row__card-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-row__card-content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.1;
  margin: 0;
  color: var(--color-black);
}

.service-row__card-content p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
  color: var(--color-black);
}

.service-row__link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-purple);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.service-row__link:hover {
  opacity: 0.7;
}

@media (max-width: 1024px) {
  .service-row__media,
  .service-row__card {
    height: 600px;
  }

  .service-row__card {
    padding: 32px;
  }

  .service-row__card-content h2 {
    font-size: 28px;
  }

  .service-row__card-content p {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .service-row,
  .service-row--reverse {
    flex-direction: column;
  }

  .service-row__media,
  .service-row__card {
    flex: none;
    width: 100%;
    height: auto;
  }

  .service-row__media {
    height: 375px;
    aspect-ratio: 1 / 1;
  }

  .service-row__card {
    min-height: 375px;
    padding: 20px;
    gap: 40px;
    justify-content: flex-start;
  }

  .service-row__card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 0;
  }

  .service-row__card-icon img {
    width: 32px;
    height: 32px;
  }

  .service-row__card-content {
    gap: 12px;
  }

  .service-row__card-content h2 {
    font-size: 24px;
    line-height: 1.2;
  }

  .service-row__card-content p {
    font-size: 14px;
    line-height: 1.5;
  }

  .service-row__link {
    font-size: 14px;
  }
}

/* ----- Active nav state ----- */
.site-header__nav-active {
  color: var(--color-purple) !important;
}

/* ----- Service page specific header adjustments ----- */
.page-hero + .service-marquee {
  margin-top: 0;
}

/* ========================================
   Single Service Detail Page
   ======================================== */

/* ----- Single Service Hero ----- */
.single-service-hero {
  padding-top: calc(var(--site-header-h) + 80px);
  padding-bottom: 40px;
  background: var(--color-bg);
}

.single-service-hero__category {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--color-purple);
  margin: 0 0 20px;
}

.single-service-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.08;
  color: var(--color-black);
  margin: 0 0 60px;
  max-width: 1240px;
}

.single-service-hero__desc {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.4;
  color: #020b22;
  margin: 0;
  max-width: 776px;
}

@media (max-width: 900px) {
  .single-service-hero {
    padding-top: calc(var(--site-header-h) + 40px);
    padding-bottom: 24px;
  }

  .single-service-hero__category {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .single-service-hero__title {
    font-size: clamp(32px, 8vw, 56px);
    margin-bottom: 32px;
  }

  .single-service-hero__desc {
    font-size: 16px;
  }
}

/* ----- Single Service Content ----- */
.single-service-content {
  padding-bottom: 120px;
}

.single-service-content__hero-image {
  width: 100%;
  max-width: 1040px;
  margin: 60px auto;
  padding: 0 var(--container-pad);
  overflow: hidden;
}

.single-service-content__hero-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1040 / 584;
  object-fit: cover;
}

/* ----- Single Service Block ----- */
.single-service-block {
  display: flex;
  gap: 100px;
  align-items: flex-start;
  margin-bottom: 100px;
}

.single-service-block:last-child {
  margin-bottom: 0;
}

.single-service-block--reverse {
  flex-direction: row-reverse;
}

.single-service-block--full {
  flex-direction: column;
  gap: 32px;
}

.single-service-block__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.single-service-block__text h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.15;
  color: #020b22;
  margin: 0;
}

.single-service-block__text p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  color: #020b22;
  margin: 0;
}

.single-service-block__image {
  flex: 1;
  overflow: hidden;
}

.single-service-block__image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.single-service-block__image--wide {
  max-width: 1040px;
}

.single-service-block__image--wide img {
  aspect-ratio: 1040 / 584;
}

.single-service-block--full h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.15;
  color: #020b22;
  margin: 0;
}

.single-service-block--full p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  color: #020b22;
  margin: 0;
  max-width: 1040px;
}

/* Panel gövdesi (WYSIWYG) — iç içe etiketler */
.single-service-block--wysiwyg h2,
.single-service-block--wysiwyg h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.15;
  color: #020b22;
  margin: 1.25em 0 0.5em;
}

.single-service-block--wysiwyg h2:first-child,
.single-service-block--wysiwyg h3:first-child {
  margin-top: 0;
}

.single-service-block--wysiwyg p,
.single-service-block--wysiwyg li {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  color: #020b22;
}

.single-service-block--wysiwyg p {
  margin: 0 0 1em;
  max-width: 1040px;
}

.single-service-block--wysiwyg ul,
.single-service-block--wysiwyg ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
  max-width: 1040px;
}

.single-service-block--wysiwyg img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5em 0;
}

@media (max-width: 900px) {
  .single-service-content {
    padding-bottom: 60px;
  }

  .single-service-content__hero-image {
    margin: 40px auto;
  }

  .single-service-block {
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
  }

  .single-service-block--reverse {
    flex-direction: column;
  }

  .single-service-block__text {
    gap: 20px;
  }

  .single-service-block__text h2 {
    font-size: clamp(24px, 6vw, 40px);
  }

  .single-service-block__text p {
    font-size: 16px;
  }

  .single-service-block--wysiwyg p,
  .single-service-block--wysiwyg li {
    font-size: 16px;
  }

  .single-service-block__image img {
    aspect-ratio: 16 / 10;
  }
}

/* ----- Client Strip Logos variant ----- */
.client-strip--logos {
  padding: 74px 0;
}

@media (max-width: 900px) {
  .client-strip--logos {
    padding: 40px 0;
  }
}

/* ----- Related Services ----- */
.related-services {
  padding: 110px 0;
  background: var(--color-bg);
}

.related-services__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-black);
  margin: 0 0 60px;
}

.related-services__grid {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.related-service-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.related-service-card:hover {
  opacity: 0.85;
}

.related-service-card__image {
  width: 320px;
  height: 320px;
  overflow: hidden;
  background: #fff;
}

.related-service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-service-card:hover .related-service-card__image img {
  transform: scale(1.05);
}

.related-service-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: #020b22;
  margin: 0;
  max-width: 320px;
}

@media (max-width: 768px) {
  .related-services {
    padding: 60px 0;
  }

  .related-services__title {
    margin-bottom: 40px;
  }

  .related-services__grid {
    flex-direction: column;
    align-items: center;
  }

  .related-service-card__image {
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .related-service-card h3 {
    font-size: 20px;
    max-width: 100%;
  }
}
