/* MedyaXpress meeting revisions — keeps the original Rayo layout and only
   corrects content fitting, responsive visibility and scroll geometry. */

/* Statistics: keep the numbers inside their own column and preserve rounding. */
.mxd-logo .mxd-logo__brand-image {
  width: auto;
  height: 4.6rem;
  max-width: min(48vw, 18rem);
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 768px) {
  .mxd-logo .mxd-logo__brand-image {
    height: 5.6rem;
    max-width: 22rem;
  }
}

.mxd-stats-cards__inner {
  border-radius: var(--_radius-m);
  isolation: isolate;
}

.mxd-stats-cards__item:first-child .mxd-counter {
  position: relative;
  z-index: 2;
  max-width: 46%;
}

.mxd-stats-cards__item:first-child .mxd-stats-number {
  white-space: nowrap;
}

@media (min-width: 1200px) and (max-width: 1599px) {
  .mxd-stats-cards__item:first-child .mxd-stats-number {
    font-size: clamp(5.8rem, 5.4vw, 7.2rem);
    letter-spacing: -0.3rem;
  }
  .mxd-stats-cards__image.mxd-stats-cards-image-1 {
    width: 56%;
    left: 0;
  }
}

/* Project and article artwork must remain fully visible. */
.mxd-project-item__preview,
.mxd-blog-preview__image {
  background-size: contain;
  background-position: center;
  background-color: var(--base-tint);
}

/* Brand marks are shown in their original colours; hover deliberately reverses
   the treatment to monochrome. */
.mxd-partners-cards__logo img,
html[color-scheme="dark"] .mxd-partners-cards__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: filter var(--_animspeed-medium) ease, opacity var(--_animspeed-medium) ease;
}

.mxd-partners-cards__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(78%, 28rem);
  height: min(68%, 16rem);
}

.mxd-brand-lane__card .mxd-partners-cards__logo {
  width: min(82%, 24rem);
  height: min(72%, 11rem);
}

.no-touch .mxd-partners-cards__inner:hover .mxd-partners-cards__logo img,
html[color-scheme="dark"] .no-touch .mxd-partners-cards__inner:hover .mxd-partners-cards__logo img,
.mxd-partners-cards__inner:focus-visible .mxd-partners-cards__logo img {
  filter: grayscale(1);
  opacity: .68;
}

.mxd-home-partners-link {
  display: block;
  color: inherit;
}

.mxd-brand-lane {
  padding: clamp(3rem, 5vw, 7rem) 0;
}

.mxd-brand-lane + .mxd-brand-lane {
  border-top: 1px solid var(--st-muted);
}

.mxd-brand-lane__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.mxd-brand-lane__heading h2 {
  margin: .6rem 0 0;
  font-size: clamp(3.2rem, 4vw, 6.4rem);
}

.mxd-brand-lane__eyebrow {
  color: var(--t-muted);
  font-size: 1.4rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mxd-brand-lane__rule {
  width: 100%;
  height: 1px;
  margin-bottom: 2.4rem;
  background: var(--st-muted);
}

.mxd-brand-lane__viewport {
  width: 100%;
  overflow: hidden;
}

.mxd-brand-lane__viewport + .mxd-brand-lane__viewport {
  margin-top: 1.6rem;
}

.mxd-brand-lane__track {
  --brand-gap: 1.6rem;
  display: flex;
  width: max-content;
  gap: var(--brand-gap);
  will-change: transform;
}

.mxd-brand-lane__set {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(var(--brand-rows), 15rem);
  grid-auto-columns: clamp(22rem, 20vw, 31rem);
  gap: var(--brand-gap);
  width: max-content;
}

.mxd-brand-lane__card {
  width: 100%;
  height: 15rem;
  min-height: 0;
}

.mxd-brand-lane__track.is-overflowing {
  animation: mxd-brand-lane-scroll var(--brand-duration, 28s) linear infinite;
}

.mxd-brand-lane__viewport:hover .mxd-brand-lane__track.is-overflowing,
.mxd-brand-lane__viewport:focus-within .mxd-brand-lane__track.is-overflowing {
  animation-play-state: paused;
}

@keyframes mxd-brand-lane-scroll {
  to { transform: translate3d(calc(-1 * var(--brand-shift)), 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .mxd-brand-lane__track.is-overflowing { animation: none; }
}

/* Hero alt açıklamasını tasarımdaki metin kutusu genişliğine sabitle. */
@media only screen and (min-width: 1200px) {
  .mxd-hero-01__data-descr {
    width: clamp(44rem, 30vw, 52rem);
    flex: 0 0 clamp(44rem, 30vw, 52rem);
  }

  .mxd-services-stack__title h3 {
    line-height: 1.04;
  }

  .mxd-promo__title {
    width: 46%;
  }

  .mxd-promo__caption {
    display: block;
    font-size: clamp(6rem, 5vw, 8.2rem);
    line-height: 1.08;
    overflow-wrap: break-word;
  }
}

/* Contact form: KVKK, captcha and submit controls form one compact block. */
#contactForm .mxd-contact-consent {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  width: fit-content;
  cursor: pointer;
  color: var(--t-bright);
}

#contactForm .mxd-contact-consent input[type="checkbox"] {
  appearance: auto;
  flex: 0 0 2.2rem;
  width: 2.2rem;
  height: 2.2rem;
  margin: 0;
  accent-color: #007fce;
}

#contactForm .mxd-contact-kvkk-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1rem;
  color: #007fce;
  text-decoration: underline;
  text-underline-offset: .3rem;
}

#contactForm .mxd-contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.4rem;
}

#contactForm .mxd-contact-captcha {
  max-width: 100%;
  overflow: hidden;
}

.mxd-section.mxd-contact-map-section {
  padding-bottom: 4rem !important;
}

@media (max-width: 767px) {
  #contactForm .mxd-contact-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  #contactForm .mxd-contact-captcha {
    transform-origin: left top;
  }

  .mxd-section.mxd-contact-map-section {
    padding-bottom: 2rem !important;
  }
}

/* The service stack starts after the projects block and leaves no empty screen. */
.stack-wrapper.in-content-stack {
  margin-top: 0;
}

.stack-wrapper.in-content-stack .stack-offset {
  height: 2rem;
}

.mxd-section.padding-stacked-section {
  padding-top: 2rem;
}

/* Responsive in-place hero video / YouTube player. */
.mxd-hero-01__video-wrap {
  aspect-ratio: 16 / 9;
  min-height: 18rem;
  background: var(--base-tint);
}

.mxd-hero-01__video-embed {
  border: 0;
}

.mxd-youtube-poster {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: clamp(2.4rem, 4vw, 5rem);
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  cursor: pointer;
  isolation: isolate;
}

.mxd-youtube-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 9, 18, .05) 20%, rgba(10, 9, 18, .84) 100%);
}

.mxd-youtube-poster__content {
  display: flex;
  flex-direction: column;
  max-width: calc(100% - 7rem);
  overflow: hidden;
  color: #fff;
}

.mxd-youtube-poster__logo {
  display: block;
  width: clamp(8rem, 10vw, 12rem);
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  object-fit: contain;
  object-position: left center;
}

.mxd-youtube-poster__content strong {
  display: block;
  max-width: 100%;
  font-size: clamp(1.8rem, 1.7vw, 2.6rem);
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
}

.mxd-youtube-poster__play {
  position: absolute;
  z-index: 3;
  right: clamp(1.8rem, 3vw, 3rem);
  bottom: clamp(1.8rem, 3vw, 3rem);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(4.4rem, 4vw, 5.6rem);
  height: clamp(4.4rem, 4vw, 5.6rem);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  color: #fff;
  background: #007fce;
  box-shadow: 0 1rem 3rem rgba(15, 10, 35, .42);
  font-size: clamp(1.5rem, 1.5vw, 1.9rem);
  transition: transform .3s ease, box-shadow .3s ease;
}

.mxd-youtube-poster:hover .mxd-youtube-poster__play {
  transform: scale(1.08);
  box-shadow: 0 1.6rem 4rem rgba(var(--accent-rgb), .28);
}

/* Footer navigation must remain inside its card even with long CMS labels. */
.footer-nav__link,
.footer-nav__link .btn-caption {
  max-width: 100%;
  font-size: clamp(2rem, 2vw, 3.2rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.footer-nav__item {
  margin-bottom: 0;
}

/* Each pinned service stack owns its scroll space; the next module cannot overlap it. */
.mxd-services-home-section {
  position: relative;
  z-index: 1;
  overflow: clip;
}

/* Keep each service detail action below the fixed hamburger's top-right safe area. */
.mxd-services-stack__controls {
  top: 9rem;
}

@media (min-width: 768px) {
  .mxd-services-stack__controls {
    top: 11rem;
    right: 2rem;
  }
}

/* Generated Projects CTA artwork; retain the original split-card geometry. */
.mxd-promo__inner {
  border-radius: var(--_radius-l);
}

.mxd-promo__bg {
  background-color: #11131d;
}

@media (min-width: 1200px) {
  .mxd-hero-01__video-wrap {
    aspect-ratio: auto;
    min-height: 0;
  }
}

/* The three original floating hero assets also belong to the mobile design. */
@media (max-width: 767px) {
  .mxd-brand-lane__heading {
    align-items: flex-start;
  }

  .mxd-brand-lane__heading .btn {
    flex: 0 0 auto;
  }

  .mxd-brand-lane__set {
    grid-template-rows: repeat(var(--brand-rows), 12rem);
    grid-auto-columns: min(68vw, 25rem);
  }

  .mxd-brand-lane__card {
    height: 12rem;
  }

  .mxd-footer__footer-blocks .footer-blocks__column:first-child {
    flex: 0 0 auto;
  }

  .mxd-footer__footer-blocks .footer-blocks__card.fullheight-card {
    height: auto;
    padding: 2.4rem 3rem;
  }

  .mxd-footer__footer-blocks .footer-nav {
    gap: .6rem;
  }

  .mxd-footer__footer-blocks .footer-nav__link,
  .mxd-footer__footer-blocks .footer-nav__link .btn-caption {
    height: auto;
    font-size: 2.6rem;
    line-height: 1.12;
  }

  .mxd-footer__footer-blocks .footer-blocks__links {
    margin-top: 1.4rem;
  }

  .stack-wrapper.in-content-stack {
    margin-top: 0;
  }

  .stack-wrapper.in-content-stack .stack-offset {
    display: none;
  }

  .services-stack {
    display: grid;
    gap: 2rem;
    height: auto;
    min-height: 0;
  }

  .stack-item {
    position: relative;
    height: min(72rem, 82vh);
    min-height: 58rem;
    padding-bottom: 0;
    transform: none !important;
  }

  .mxd-youtube-poster {
    min-height: 0;
    padding: 1.8rem;
  }

  .mxd-youtube-poster__content {
    max-width: calc(100% - 5.8rem);
  }

  .mxd-youtube-poster__logo {
    width: 8.5rem;
    margin-bottom: .7rem;
  }

  .mxd-youtube-poster__content strong {
    max-width: 100%;
    font-size: 1.6rem;
  }

  .mxd-youtube-poster__play {
    right: 1.6rem;
    bottom: 1.6rem;
    width: 4.4rem;
    height: 4.4rem;
  }

  .mxd-hero-01__title-wrap {
    isolation: isolate;
  }

  .mxd-hero-01__images {
    display: block;
    pointer-events: none;
    z-index: 0;
  }

  .hero-01-title {
    position: relative;
    z-index: 1;
  }

  .mxd-hero-01__marquee {
    z-index: 1;
  }

  .hero-01-image {
    display: block;
  }

  .hero-01-image.image-01 {
    width: 8.8rem;
    top: 2%;
    left: -1.4rem;
  }

  .hero-01-image.image-02 {
    width: 6.8rem;
    top: 12%;
    right: -1rem;
  }

  .hero-01-image.image-03 {
    width: 6.4rem;
    top: auto;
    bottom: 4%;
    left: 1rem;
  }

  .mxd-hero-01__data-wrap {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading__item,
  .loading__fade {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Global WhatsApp contact widget */
.mxd-whatsapp {
  position: fixed;
  right: 9rem;
  bottom: 3rem;
  z-index: 99;
  font-family: var(--_font-default);
}

.mxd-whatsapp__launcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 4.8rem;
  gap: .7rem;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #25d366;
  box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, .22);
  cursor: pointer;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 600;
  transition: transform .25s ease, box-shadow .25s ease;
}

.mxd-whatsapp__launcher:hover {
  transform: translateY(-.3rem);
  box-shadow: 0 1.6rem 3.8rem rgba(0, 0, 0, .28);
}

.mxd-whatsapp__launcher i {
  font-size: 2.4rem;
}

.mxd-whatsapp__launcher span {
  display: inline;
}

.mxd-whatsapp__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 1.4rem);
  width: min(21rem, calc(100vw - 2rem));
  padding: 1.2rem;
  border: 1px solid rgba(127, 127, 127, .2);
  border-radius: 1.4rem;
  color: var(--base-opp);
  background: var(--base);
  box-shadow: 0 2.4rem 7rem rgba(0, 0, 0, .28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.5rem) scale(.97);
  transform-origin: right bottom;
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}

.mxd-whatsapp__panel.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.mxd-whatsapp__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: var(--base-tint);
  cursor: pointer;
}

.mxd-whatsapp__profile {
  position: relative;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: .4rem;
}

.mxd-whatsapp__profile img {
  width: 100%;
  height: 100%;
  padding: .5rem;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.mxd-whatsapp__status {
  position: absolute;
  right: 0;
  bottom: .1rem;
  width: .9rem;
  height: .9rem;
  border: .25rem solid var(--base);
  border-radius: 50%;
  background: #25d366;
}

.mxd-whatsapp__brand {
  margin: 0 0 .4rem;
  color: #007fce;
  font-size: .9rem;
  font-weight: 700;
}

.mxd-whatsapp__panel h2 {
  max-width: 17rem;
  margin: 0 0 .8rem;
  font-size: 1.35rem;
  line-height: 1.12;
}

.mxd-whatsapp__form {
  display: grid;
  gap: .55rem;
}

.mxd-whatsapp__form label,
.mxd-whatsapp__form label > span {
  display: grid;
  gap: .35rem;
}

.mxd-whatsapp__form label > span {
  display: block;
  font-size: .9rem;
  font-weight: 600;
}

.mxd-whatsapp__form small {
  color: var(--t-muted);
  font-size: .8rem;
  font-weight: 400;
}

.mxd-whatsapp__form input,
.mxd-whatsapp__form textarea {
  width: 100%;
  border: 1px solid rgba(127, 127, 127, .28);
  border-radius: .9rem;
  padding: .55rem .75rem;
  color: var(--base-opp);
  background: var(--base-tint);
  font: inherit;
  font-size: 1rem;
  outline: none;
}

.mxd-whatsapp__form input {
  height: 3.1rem;
  min-height: 3.1rem;
}

.mxd-whatsapp__form input:focus,
.mxd-whatsapp__form textarea:focus {
  border-color: #007fce;
  box-shadow: 0 0 0 .3rem rgba(0, 127, 206, .14);
}

.mxd-whatsapp__form textarea {
  height: 5.2rem;
  min-height: 5.2rem;
  max-height: 7rem;
  resize: none;
}

.mxd-whatsapp__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  min-height: 3.4rem;
  margin-top: .3rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #007fce;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
}

@media (max-width: 767px) {
  .mxd-whatsapp {
    right: 9rem;
    bottom: 3rem;
  }

  .mxd-whatsapp__launcher {
    width: 4.2rem;
    min-height: 4.2rem;
    padding: 0;
    opacity: .82;
    box-shadow: 0 .8rem 2rem rgba(0, 0, 0, .18);
  }

  .mxd-whatsapp__launcher span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .mxd-whatsapp__panel {
    position: fixed;
    right: 1rem;
    bottom: 8.2rem;
    left: 1rem;
    width: auto;
    max-height: calc(100vh - 10rem);
    max-height: calc(100dvh - 10rem);
    width: min(21rem, calc(100vw - 2rem));
    right: 1rem;
    left: auto;
    padding: 1.2rem;
    overflow-y: auto;
    transform-origin: center bottom;
  }

  .mxd-whatsapp__panel h2 {
    font-size: 1.35rem;
  }
}

@media (min-width: 768px) {
  .mxd-whatsapp {
    right: 13.6rem;
    bottom: 4rem;
  }
}

@media (min-width: 1600px) {
  .mxd-whatsapp {
    right: 16.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mxd-whatsapp__launcher,
  .mxd-whatsapp__panel {
    transition: none;
  }
}
