/* medyaXpress phone layout. Desktop rules remain in main.css/revisions.css. */
@media only screen and (max-width: 767px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  body { font-size: 1.6rem; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  .mxd-section, .mxd-project, .mxd-page-content, .mxd-wrapper {
    min-width: 0; max-width: 100%;
  }
  .mxd-section, .mxd-block, .mxd-container, .container, .container-fluid,
  .row, [class*="col-"] { min-width: 0; }
  img, picture, video, canvas, iframe, embed, object, svg { max-width: 100%; }
  h1, h2, h3, h4, h5, h6, p, a, span, .btn-caption {
    overflow-wrap: anywhere; word-break: normal;
  }

  h1 { font-size: clamp(4rem, 12vw, 5.2rem); line-height: 1.02; letter-spacing: -.04rem; }
  h2 { font-size: clamp(3.6rem, 10.5vw, 4.6rem); line-height: 1.06; letter-spacing: -.04rem; }
  h3 { font-size: clamp(2.9rem, 8vw, 3.6rem); line-height: 1.1; }
  h4 { font-size: clamp(2.5rem, 7vw, 3rem); line-height: 1.15; }
  h5 { font-size: clamp(2.1rem, 6vw, 2.6rem); }
  h6 { font-size: clamp(1.9rem, 5.5vw, 2.2rem); }
  p, p.t-small, p.t-small-mobile, .mxd-services-list__descr p,
  .mxd-services-list__tagslist ul li p {
    font-size: clamp(1.5rem, 4.2vw, 1.7rem); line-height: 1.5;
  }
  p.t-large, .mxd-point-subtitle, .mxd-blog-preview__data p,
  .mxd-blog-preview__data a {
    font-size: clamp(1.8rem, 5.2vw, 2.2rem); line-height: 1.35;
  }
  .mxd-manifest { font-size: clamp(2.3rem, 6.5vw, 2.9rem); line-height: 1.45; }

  .mxd-container, .mxd-container.grid-container, .mxd-container.grid-l-container {
    width: 100%; padding-right: 1.6rem; padding-left: 1.6rem;
  }
  .mxd-grid-item, .mxd-grid-item-l { padding-right: .8rem; padding-left: .8rem; }
  .mxd-section.padding-default, .mxd-section.padding-pre-footer,
  .mxd-section.padding-pre-pinned-img, .mxd-section.padding-pre-grid,
  .mxd-section.padding-pre-title, .mxd-section.padding-pre-manifest,
  .mxd-section.padding-pre-stack, .mxd-section.padding-grid-pre-pinned,
  .mxd-section.padding-grid-pre-mtext, .mxd-section.padding-pinned-img-pre-mtext,
  .mxd-section.padding-mtext, .mxd-section.padding-mtext-pre-title,
  .mxd-section.padding-mtext-pre-grid, .mxd-section.padding-mtext-pre-pinned,
  .mxd-section.padding-blog { padding-bottom: clamp(6rem, 18vw, 8rem); }
  .mxd-section.padding-stacked-section, .mxd-section.padding-stacked-pre-mtext,
  .mxd-section.padding-mtext-pre-stack { padding-bottom: 3rem; }

  .mxd-section-title, .mxd-section-title.h2-only, .mxd-section-title.no-controls,
  .mxd-section-title.pre-grid, .mxd-section-title.pre-block {
    gap: 2rem; margin-bottom: 3.6rem;
  }
  .mxd-section-title__descr, .mxd-section-title__hrdescr {
    width: 100%; max-width: 100%; padding-right: 0; margin-top: 1.4rem;
  }
  .mxd-section-title__controls, .mxd-section-title__hrcontrols,
  .mxd-section-title__controls.pre-title, .mxd-section-title__hrcontrols.pre-title {
    margin-top: 2rem;
  }

  /* Header and full-screen menu */
  .mxd-header { padding-right: 1.6rem; padding-left: 1.6rem; }
  .mxd-logo .mxd-logo__brand-image { height: 4rem; max-width: min(48vw, 16rem); }
  .mxd-menu__wrapper { min-height: 100dvh; padding: 1rem; }
  .mxd-menu__inner { padding-top: 6.8rem; }
  .mxd-menu__left, .mxd-menu__data { padding-right: 1.8rem; padding-left: 1.8rem; }
  .main-menu__link, .main-menu__link .btn-caption {
    max-width: 100%; font-size: clamp(3rem, 9vw, 4.2rem); line-height: 1.08;
    white-space: normal;
  }
  .mxd-menu__caption { font-size: 1.5rem; }
  /* Dar ekranda katalog hamburger menüde kalır; başlık kontrolleri üst üste binmez. */
  .mxd-header-catalog { display: none !important; }

  /* Home hero */
  .mxd-hero-fullheight, .mxd-hero-01__wrap { min-height: 100svh; height: auto; }
  .mxd-hero-01__title-wrap {
    min-height: 26rem;
    padding-bottom: 7.2rem;
    isolation: isolate;
  }
  .hero-01-title {
    position: relative; z-index: 1;
    width: 100%; max-width: 100%; gap: clamp(9.2rem, 26vw, 11rem);
    font-size: clamp(3.6rem, 12vw, 5.2rem); line-height: .98;
  }
  .hero-01-title__row { width: 100%; gap: 0; }
  .hero-01-title__item { max-width: 100%; text-align: center; }
  .hero-01-title__item.title-item-transparent {
    display: none;
  }
  .mxd-hero-01__marquee {
    top: 6.2rem; right: 0; z-index: 1;
    width: 100%; height: clamp(6.2rem, 18vw, 7.2rem);
    border-radius: 4rem;
  }
  .mxd-hero-01__marquee .marquee,
  .mxd-hero-01__marquee .marquee__toright,
  .mxd-hero-01__marquee .marquee-flex {
    height: 100%;
  }
  .mxd-hero-01__images {
    display: block; pointer-events: none; z-index: 2;
  }
  .hero-01-image { display: block; }
  .hero-01-image.image-01 {
    top: 0; left: -.4rem; width: clamp(7rem, 22vw, 8.8rem);
  }
  .hero-01-image.image-02 {
    top: 1rem; right: -.4rem; width: clamp(5.8rem, 17vw, 6.8rem);
  }
  .hero-01-image.image-03 {
    top: auto; right: auto; bottom: 0; left: 50%;
    width: clamp(5.8rem, 16vw, 6.6rem);
    transform: translateX(-50%);
  }
  .mxd-hero-01__data-wrap { gap: 2.4rem; padding-top: 5rem; padding-bottom: 5rem; }
  .mxd-hero-01__data-descr, .mxd-hero-01__data-socials, .mxd-hero-01__data-btn {
    width: 100%; max-width: 100%;
  }
  .mxd-hero-01__video-wrap {
    width: 100%; min-height: 0; aspect-ratio: 16 / 9;
    border-radius: 1.8rem; overflow: hidden;
  }

  /* Statistics */
  .mxd-stats-cards__inner {
    min-height: min(128vw, 54rem); height: auto; padding: 2.4rem;
  }
  .mxd-stats-cards__item:first-child .mxd-counter { max-width: 48%; }
  .mxd-stats-number, .mxd-stats-number.small, .mxd-stats-number.xsmall {
    font-size: clamp(4.8rem, 17vw, 7rem); line-height: .9; letter-spacing: -.15rem;
  }
  .mxd-counter__descr { max-width: 15rem; }

  /* Project, blog, team and gallery cards */
  .mxd-pinned-projects__static-inner { min-height: 0; padding-bottom: 3rem; }
  .mxd-project-item__media, .mxd-project-item__preview,
  .mxd-blog-preview__media, .mxd-blog-preview__image,
  .mxd-team-cards__media, .mxd-team-cards__photo, .mxd-block__image {
    width: 100%; height: auto; min-height: 0; aspect-ratio: 4 / 5;
  }
  .mxd-project-item__promo, .mxd-blog-preview__data {
    padding-right: 1.8rem; padding-left: 1.8rem;
  }
  .mxd-project-item__name a, .mxd-project-item__name.small a {
    font-size: clamp(2rem, 5.8vw, 2.6rem); line-height: 1.28;
  }
  .mxd-blog-preview__tags, .mxd-project-item__tags { padding: 1.8rem; }

  /* Services and products */
  .mxd-services-list.grid-top { padding-top: 7rem; }
  .mxd-services-list__inner { padding: 3.6rem 0; }
  .mxd-services-list__title { margin-bottom: 2.2rem; }
  .mxd-services-list__title p {
    font-size: clamp(3.2rem, 10vw, 4.4rem); line-height: 1.02;
    letter-spacing: -.04rem;
  }
  .stack-item { height: auto; min-height: 0; }
  .mxd-services-stack__inner {
    height: auto; min-height: min(150vw, 64rem); padding: 2.4rem 2rem 2rem;
  }
  .mxd-services-stack__controls { top: 1.6rem; right: 1.6rem; }
  .mxd-services-stack__controls .btn-round-large { width: 5rem; height: 5rem; }
  .mxd-services-stack__title, .mxd-services-stack__title.width-60,
  .mxd-services-stack__title.width-70 {
    width: 100%; max-width: 100%; margin-bottom: 2rem; padding-right: 5.4rem;
  }
  .mxd-services-stack__title h3 {
    font-size: clamp(2.8rem, 8.5vw, 3.6rem); line-height: 1.08;
  }
  .mxd-services-stack__title h3 i {
    display: inline-block; margin-right: .5rem; font-size: .8em;
  }
  .mxd-services-stack__info, .mxd-services-stack__info.width-60,
  .mxd-services-stack__info.width-70 {
    width: 100%; max-width: 100%; margin-bottom: 2rem;
  }
  .mxd-services-cards__tags, .mxd-services-stack__tags,
  .mxd-services-list__tagslist ul, .mxd-projects-list__tagslist ul,
  .inner-headline__tags { display: flex; flex-wrap: wrap; gap: .7rem; }
  .services-stack__image {
    width: 100%; min-height: 24rem; margin-top: auto;
    border-radius: 1.8rem;
  }
  .services-stack__image .service-img, .services-stack__image .service-img-s {
    display: block; width: 100%; height: 100%; min-height: 24rem;
    object-fit: var(--service-mobile-fit, contain); object-position: center;
  }

  .mxd-responsive-divider-image {
    background-image: var(--divider-mobile-image);
    background-size: var(--divider-mobile-fit, contain);
    background-repeat: no-repeat;
    background-position: center;
  }

  .mxd-project-cards__inner .responsive-module-image {
    width: 100%; height: 100%;
    object-fit: var(--mobile-object-fit, contain);
    object-position: center;
  }

  /* Listing and detail modules */
  .mxd-projects-list__inner, .mxd-projects-list__inner-v2 { padding: 3rem 0; }
  .mxd-projects-list__title, .mxd-projects-list__title-v2 {
    align-items: flex-start; margin-bottom: 2.4rem;
  }
  .mxd-projects-list__title p, .mxd-projects-list__title-v2 p {
    max-width: 100%; font-size: clamp(2.7rem, 8vw, 3.6rem); line-height: 1.12;
  }
  .mxd-projects-list__image img, .mxd-project-cards__inner img,
  .mxd-divider__image img, .mxd-article__thumb img {
    width: 100%; height: auto; object-fit: contain;
  }
  .mxd-project-cards__item { height: auto; min-height: 0; aspect-ratio: 4 / 5; }
  .mxd-project__block { margin-top: 7rem; margin-bottom: 7rem; }
  .mxd-project__nav { padding-bottom: 7rem; }
  .mxd-project__link, .mxd-project__client-name {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
  }
  .mxd-article-container, .mxd-article__content, .mxd-article__headline,
  .mxd-article__data { width: 100%; max-width: 100%; }
  .mxd-article__title h2, .mxd-article__secondary-title {
    font-size: clamp(3.2rem, 9.5vw, 4.4rem); line-height: 1.08;
  }
  .mxd-article__content table {
    display: block; width: 100%; max-width: 100%; overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mxd-article__content pre, .mxd-article__content code {
    max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere;
  }

  /* Shared contact CTA */
  .mxd-promo__inner { min-height: 52rem; padding-right: 2rem; padding-left: 2rem; }
  .mxd-promo__bg {
    inset: 0; width: 100%; height: 100%; background-position: center; opacity: .38;
  }
  .mxd-promo__content { z-index: 1; width: 100%; gap: 3rem; margin: 7rem 0; }
  .mxd-promo__title { width: 100%; max-width: 100%; }
  .mxd-promo__caption {
    display: block; max-width: 100%; font-size: clamp(3.4rem, 10vw, 4.5rem);
    line-height: 1.08; overflow-wrap: anywhere;
  }

  /* Forms, maps and embedded documents */
  input, select, textarea, button { max-width: 100%; font-size: 16px; }
  .form-container, .form-group, .mxd-contact-form, #contactForm {
    width: 100%; max-width: 100%;
  }
  #contactForm .mxd-contact-actions { width: 100%; gap: 1.8rem; }
  #contactForm .mxd-contact-consent { align-items: flex-start; width: 100%; }
  #contactForm .g-recaptcha {
    max-width: 100%; transform: scale(.88); transform-origin: left top;
  }
  .mxd-footer-map, .mxd-contact-map-section iframe {
    width: 100%; height: min(62vw, 24rem); min-height: 18rem;
  }

  /* Footer */
  .mxd-footer { width: 100%; max-width: 100%; padding-bottom: 2rem; }
  .mxd-footer__footer-blocks, .footer-blocks__column, .footer-blocks__card {
    width: 100%; min-width: 0; height: auto;
  }
  .footer-blocks__card,
  .mxd-footer__footer-blocks .footer-blocks__card.fullheight-card { padding: 2.2rem; }
  .mxd-footer__footer-blocks .footer-nav { gap: .2rem; }
  .mxd-footer__footer-blocks .footer-nav__link,
  .mxd-footer__footer-blocks .footer-nav__link .btn-caption {
    font-size: clamp(1.9rem, 6vw, 2.4rem); line-height: 1.08;
  }
  .footer-blocks__title-l { font-size: clamp(2.6rem, 7vw, 3.4rem); }
  .footer-blocks__title-m, .footer-socials__link,
  .footer-blocks__card .mxd-point-subtitle {
    font-size: clamp(1.7rem, 5vw, 2.1rem);
  }
  .footer-blocks__card .mxd-point-subtitle,
  .footer-blocks__card .mxd-point-subtitle a {
    max-width: 100%; overflow-wrap: anywhere;
  }

  /* Brand lanes */
  .mxd-brand-lane { padding: 4rem 0; }
  .mxd-brand-lane__heading {
    flex-direction: column; align-items: flex-start; gap: 1.5rem;
  }
  .mxd-brand-lane__heading h2 { font-size: clamp(3rem, 9vw, 4rem); }
  .mxd-brand-lane__heading .btn { max-width: 100%; }

  /* Legacy inventory partials still used by optional modules. */
  .py-120, .py-100 { padding-top: 7rem !important; padding-bottom: 7rem !important; }
  .pt-60 { padding-top: 5rem !important; }
  .mt-100 { margin-top: 5rem !important; }
  .site-heading { max-width: 100%; margin-bottom: 3rem !important; }
  .site-title {
    max-width: 100%; font-size: clamp(3rem, 9vw, 4.2rem) !important;
    line-height: 1.08 !important;
  }
  .site-title-tagline { font-size: 1.4rem !important; line-height: 1.3; }
  .category-title, .service-title, .card-title {
    font-size: clamp(1.9rem, 5.5vw, 2.4rem) !important; line-height: 1.2;
  }
  .category-card .image-wrapper { height: min(54vw, 20rem) !important; padding: 1.5rem; }
  .category-card .card-content { padding: 1.8rem; }
  .read-more-btn, .theme-btn { max-width: 100%; font-size: 1.4rem !important; }
  .video-info, .video-wrapper, .service-item, .category-card,
  .gallery-item, .card { width: 100%; max-width: 100%; }
  .video-wrapper { margin-top: 2.4rem !important; border-radius: 1.8rem; }
  .gallery-img p { max-width: calc(100% - 2rem); font-size: 1.5rem !important; }
  .pagination { flex-wrap: wrap; gap: .5rem; }
  .page-link, .list-group-item { font-size: 1.5rem; }

  /* Floating actions share separate safe areas. */
  #to-top { right: 1.6rem; bottom: 2rem; }
  .mxd-whatsapp { right: 7.2rem; bottom: 2rem; }
}

/* Large phones in landscape and compact tablets. */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .mxd-section, .mxd-project { min-width: 0; }
  h1 { font-size: clamp(5rem, 8vw, 6.4rem); }
  h2 { font-size: clamp(4.4rem, 7vw, 5.6rem); }
  h3 { font-size: clamp(3.5rem, 5.5vw, 4.4rem); }
  h4 { font-size: clamp(2.8rem, 4.5vw, 3.6rem); }
  p.t-large { font-size: 2.2rem; }
  .hero-01-title { font-size: clamp(5rem, 8vw, 6.4rem); }
  .main-menu__link, .main-menu__link .btn-caption {
    font-size: clamp(4rem, 7vw, 5.6rem); line-height: 1.08; white-space: normal;
  }
  .mxd-section-title__descr, .mxd-section-title__hrdescr { padding-right: 0; }
  .mxd-services-stack__title h3 { font-size: clamp(3.6rem, 5.5vw, 4.6rem); }
  .mxd-promo__title { width: 68%; }
  .mxd-promo__caption { font-size: clamp(4.8rem, 7vw, 6rem); line-height: 1.08; }
  .mxd-projects-list__title p, .mxd-projects-list__title-v2 p {
    font-size: clamp(3.4rem, 5vw, 4.4rem);
  }
  input, select, textarea, button { font-size: 16px; }
}

@media only screen and (max-width: 479px) {
  .mxd-container, .mxd-container.grid-container, .mxd-container.grid-l-container {
    padding-right: 1.2rem; padding-left: 1.2rem;
  }
  h1 { font-size: clamp(3.5rem, 12vw, 4.5rem); }
  h2 { font-size: clamp(3.1rem, 10.5vw, 4rem); }
  .hero-01-title { font-size: clamp(3.3rem, 11.7vw, 4.5rem); }
  .mxd-stats-cards__inner { min-height: min(138vw, 50rem); padding: 2rem; }
  .mxd-services-stack__inner {
    min-height: min(168vw, 61rem); padding-right: 1.6rem; padding-left: 1.6rem;
  }
  .mxd-services-stack__title h3 { font-size: clamp(2.6rem, 8.2vw, 3.2rem); }
  .mxd-promo__inner { min-height: 46rem; }
  .mxd-promo__caption { font-size: clamp(3rem, 9.6vw, 3.9rem); }
  .mxd-project__navitem { min-width: 0; padding-right: .6rem; padding-left: .6rem; }
  .mxd-project__link { font-size: 1.6rem; }
  .mxd-brand-lane__set { grid-auto-columns: min(76vw, 24rem); }
  #contactForm .g-recaptcha { transform: scale(.8); }
  .mxd-whatsapp__panel { width: min(20rem, calc(100vw - 2rem)); }
}

/* Contact CTA: text and artwork always own separate regions. */
@media only screen and (max-width: 1199px) {
  .mxd-promo__inner {
    display: flex;
    min-height: 0;
  }
  .mxd-promo__content {
    order: 1;
    z-index: 1;
    width: 100%;
    margin: clamp(4.5rem, 10vw, 7rem) 0;
  }
  .mxd-promo__title,
  .mxd-promo__caption {
    width: 100%;
    max-width: 100%;
  }
  .mxd-promo__bg {
    position: relative;
    inset: auto;
    order: 2;
    flex: 0 0 auto;
    width: calc(100% + 6rem);
    height: auto;
    aspect-ratio: 14 / 9;
    margin: 0 -3rem;
    background-position: center;
    background-size: cover;
    opacity: 1;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1199px) {
  .mxd-promo__bg {
    width: calc(100% + 10rem);
    margin-right: -5rem;
    margin-left: -5rem;
  }
}

@media only screen and (min-width: 1200px) {
  .mxd-promo__content { width: 46%; }
  .mxd-promo__title, .mxd-promo__caption { width: 100%; max-width: 100%; }
  .mxd-promo__bg { width: 50%; }
}
