/*
 * styles-mobile.css — Mobil & tablet düzenlemeleri
 * Ana stiller: styles.css (varsayılan + min-width ile büyük ekran)
 * Bu dosya styles.css’ten SONRA yüklenir; max-width ile küçük ekran düzeltmeleri burada toplanır.
 */

/* -------------------------------------------------------------------------
   ≤1023px — Ana container: yan boşluk artırılır (içerik alanı daralır)
   ------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .container,
  .container--relative {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* -------------------------------------------------------------------------
   ≤1023px — Our Services: arka plan görselleri her zaman görünsün (hover/3D yok)
   ------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .services__card {
    perspective: none;
  }

  .services__card-inner {
    transform: none !important;
    -webkit-transform: none !important;
    transition: box-shadow 0.2s ease;
    min-height: 260px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .services__card-inner::before {
    background: rgb(7 28 56 / 62%);
  }

  .services__card-inner .services__card-content,
  .services__card-inner .services__card-btn {
    transform: none !important;
    -webkit-transform: none !important;
  }

  .services__card:hover .services__card-inner,
  .services__card:hover .services__card-inner .services__card-content,
  .services__card:hover .services__card-inner .services__card-btn {
    transform: none !important;
    -webkit-transform: none !important;
  }

  /* Her kartın görseli (masaüstü hover ile aynı dosyalar) */
  .services__card:nth-child(1) .services__card-inner {
    background-image: url('assets/images/stage_equipment_rental.png') !important;
  }
  .services__card:nth-child(2) .services__card-inner {
    background-image: url('assets/images/technical_event_support.png') !important;
  }
  .services__card:nth-child(3) .services__card-inner {
    background-image: url('assets/images/online_hybrid_events.png') !important;
  }
  .services__card:nth-child(4) .services__card-inner {
    background-image: url('assets/images/internet_streaming.png') !important;
  }
  .services__card:nth-child(5) .services__card-inner {
    background-image: url('assets/images/simultaneous_interpretation.png') !important;
  }

  /* Test-reverse kart: mobilde düz yüzey, görsel hep açık */
  .services__card.services__card--test-reverse .services__card-inner {
    transform: none !important;
    -webkit-transform: none !important;
    background-image: url('assets/images/stage_equipment_rental.png') !important;
  }
  .services__card.services__card--test-reverse .services__card-inner .services__card-content,
  .services__card.services__card--test-reverse .services__card-inner .services__card-btn {
    transform: none !important;
    -webkit-transform: none !important;
  }
  .services__card.services__card--test-reverse:hover .services__card-inner {
    transform: none !important;
    -webkit-transform: none !important;
    background-image: url('assets/images/stage_equipment_rental.png') !important;
  }
  .services__card.services__card--test-reverse:hover .services__card-inner .services__card-content,
  .services__card.services__card--test-reverse:hover .services__card-inner .services__card-btn {
    transform: none !important;
    -webkit-transform: none !important;
  }
}

/* -------------------------------------------------------------------------
   Mobil header — masaüstü ile aynı renk ve logo; sol telefon, ortada logo, sağda hamburger
   ------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .header .header-container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .header-bar {
    border-radius: 20px;
    padding: 12px 20px;
    justify-content: space-between;
    background: linear-gradient(145deg, #071c38 0%, #0d2844 50%, #071c38 100%);
    box-shadow:
      0 4px 24px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(70, 120, 170, 0.18);
  }
  .header-phone-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #fff;
    flex-shrink: 0;
  }
  .header-phone-btn .header-phone-icon {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: brightness(0) invert(1);
  }
  .header-phone-btn:hover .header-phone-icon {
    opacity: 0.9;
    filter: brightness(0) invert(1);
  }
  .header-logo-mobile-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    min-width: 0;
  }
  .header-logo-shape {
    display: block;
    background: transparent;
    padding: 0;
    clip-path: none;
    flex-shrink: 0;
  }
  .header-logo-shape .header-logo-img {
    display: block;
    width: 120px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: none;
  }
  .header-tagline-mobile {
    display: none !important;
  }
  .header-right .header-btn,
  .header-right .header-search-btn,
  .header-right .header-lang {
    display: none !important;
  }
  .header-right .header-burger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #fff;
    flex-shrink: 0;
  }
  .header-right .header-burger .header-icon-fa {
    font-size: 1.35rem;
  }
}

@media (min-width: 1024px) {
  .header-logo-mobile-wrap {
    display: block;
    flex: none;
    min-width: 0;
  }
  .header-tagline-mobile { display: none !important; }
  .header-logo-shape {
    display: block;
    background: transparent;
    padding: 0;
    clip-path: none;
  }
  .header-logo-shape .header-logo-img {
    max-height: none;
    filter: none;
    width: 150px;
  }
}

/* -------------------------------------------------------------------------
   ≤1023px — Hero: koyu gradient kart, başlık, eğik kenarlı görsel, metin, outline CTA
   ------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .container .hero {
    height: auto;
    min-height: 0;
    margin-top: 30px;
    margin-bottom: 0;
    border-radius: clamp(20px, 5vw, 28px);
    overflow: hidden;
    background-image: none;
    background: linear-gradient(165deg, #09101d 0%, #0b1321 30%, #0a111e 58%, #1b2841 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.32);
  }

  .hero__overlay {
    display: none !important;
  }

  .hero__content {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding-top: clamp(1.25rem, 4vw, 1.5rem);
    padding-bottom: clamp(1.35rem, 4.5vw, 1.75rem);
    padding-left: 0;
    padding-right: 0;
  }

  .hero__image-wrap {
    display: block;
    width: 100%;
    margin: 0 0 1.1rem;
    padding: 0;
  }

  .hero__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 15rem;
    object-fit: cover;
    object-position: center;
    /* Üst kenar soldan sağa hafif yukarı, alt kenar daha belirgin eğim */
    clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
  }

  .hero__title {
    margin: 0;
    max-width: none;
    font-size: clamp(1.35rem, 5.2vw, 1.7rem);
    line-height: 1.22;
    text-align: left;
    padding: 30px 15px;
    font-weight: 300;
  }

  .hero__desc {
    margin: 0;
    max-width: none;
    text-align: left;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.94);
    padding: 30px 15px;
  }

  .hero__cta-wrap {
    padding-left: 15px;
    padding-right: 15px;
  }

  .hero__cta {
    width: 100%;
    max-width: none;
    margin-top: 0;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.92);
    box-sizing: border-box;
    align-self: stretch;
  }
}

/* -------------------------------------------------------------------------
   ≤1023px — We in figures: dikey kartlar; sayı + ikon yan yana, satır ortada; metin ortalı
   ------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .figures__grid {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .figures__card {
    width: 100%;
  }

  .figures__card-inner {
    aspect-ratio: auto;
    min-height: 0;
    padding: 1.25rem 1.25rem 1.5rem;
    border-radius: 18px;
    background: linear-gradient(165deg, #0d1520 0%, #132238 40%, #0f1c2e 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  }

  .figures__card-blur {
    opacity: 0.4;
  }

  .figures__card-content {
    min-height: 0;
    gap: 1rem;
  }

  .figures__number-block {
    flex-grow: 0;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.75rem;
    padding: 0 0 0.75rem;
    margin-bottom: 0.25rem;
    width: 100%;
  }

  .figures__number-inner {
    justify-content: center;
    flex-shrink: 0;
  }

  .figures__number-placeholder,
  .figures__number-visible {
    font-size: clamp(2.25rem, 10vw, 3.25rem);
    font-weight: 300;
  }

  .figures__number-icons {
    margin-left: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  .figures__number-unit {
    font-size: 1rem;
    font-weight: 300;
    margin-right: 0;
  }

  .figures__svg {
    width: 2rem;
    height: 2rem;
    opacity: 0.9;
  }

  .figures__desc {
    text-align: center;
    padding: 0 0.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92);
    min-height: 0;
  }
}

/* -------------------------------------------------------------------------
   Mobil menü: sağdan beyaz panel + karartılmış arka plan
   ------------------------------------------------------------------------- */
.mobile-drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 10001;
  pointer-events: none;
}
.mobile-drawer-layer.is-open {
  pointer-events: auto;
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(7, 28, 56, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.mobile-drawer-layer.is-open .mobile-menu-backdrop {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1023px) {
  /* Drawer panel – sağdan sola kayar; .mobile-drawer-layer içine taşındığında gösterilir */
  .mobile-drawer-layer .header-nav,
  .header-nav {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(420px, 88vw);
    max-width: 85vw;
    margin: 0;
    padding: 1.35rem 1.25rem 2rem;
    gap: 0;
    background: #fff;
    border-radius: 40px 0 0 0;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 1;
    pointer-events: none;
    will-change: transform;
  }
  .mobile-drawer-layer .header-nav.open,
  .header-nav.open {
    transform: translateX(0);
    pointer-events: auto;
  }

  .mobile-drawer-head {
    flex-shrink: 0;
    margin-bottom: 1rem;
  }
  .mobile-drawer-title {
    margin: 0 0 0.85rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--header-bg);
    letter-spacing: -0.02em;
  }
  .mobile-drawer-search-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
  }
  .mobile-drawer-search {
    position: relative;
    flex: 1;
    min-width: 0;
  }
  .mobile-drawer-input {
    width: 100%;
    padding: 0.65rem 2.5rem 0.65rem 1rem;
    border: 2px solid var(--header-accent);
    border-radius: 9999px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--header-bg);
    background: #fff;
    outline: none;
  }
  .mobile-drawer-input::placeholder {
    color: #6b7280;
  }
  .mobile-drawer-search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--header-accent);
    font-size: 1rem;
    pointer-events: none;
  }
  .mobile-drawer-close {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--header-accent);
    font-size: 1.35rem;
    border-radius: 12px;
  }
  .mobile-drawer-close:active {
    background: #e9f1f9;
  }

  .mobile-drawer-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    margin-bottom: 1.25rem;
  }
  .mobile-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 0.35rem;
    background: #e9f1f9;
    border-radius: 10px;
    text-decoration: none;
    color: var(--header-bg);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    transition: background 0.2s, transform 0.15s;
  }
  .mobile-cat-card:active {
    transform: scale(0.98);
    background: #d4e2f2;
  }
  .mobile-cat-card__icon {
    font-size: 1.35rem;
    color: var(--header-accent);
  }
  .mobile-cat-card__label {
    line-height: 1.2;
  }
  .mobile-drawer-categories .mobile-cat-card:nth-child(5),
  .mobile-drawer-categories .mobile-cat-card:nth-child(6) {
    grid-column: span 1;
  }
  @media (min-width: 380px) {
    .mobile-drawer-categories {
      grid-template-columns: repeat(3, 1fr);
    }
    .mobile-drawer-categories .mobile-cat-card:nth-child(5),
    .mobile-drawer-categories .mobile-cat-card:nth-child(6) {
      grid-column: auto;
    }
  }

  .mobile-drawer-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .mobile-drawer-nav-links .nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #e9f1f9;
    border-radius: 12px;
    color: var(--header-bg) !important;
    font-weight: 600;
    font-size: 1rem !important;
    text-decoration: none;
    margin: 0;
  }
  .mobile-drawer-nav-links .nav-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #e9f1f9;
    border-radius: 12px;
    color: var(--header-bg) !important;
    font-weight: 600;
    font-size:1rem !important;
  }
  .mobile-drawer-nav-links .nav-trigger .nav-trigger-tab {
    display: none;
  }
  .mobile-drawer-nav-links .nav-chevron {
    color: var(--header-accent);
  }
  .header-nav .nav-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: #e9f1f9;
    border-radius: 10px;
    margin-top: 0.35rem;
    padding: 0.35rem 0;
    display: none;
  }
  .header-nav .nav-dropdown.open .dropdown-menu {
    display: block;
  }
  .header-nav .dropdown-menu .dropdown-item {
    color: #444 !important;
    font-size: 0.9rem !important;
  }
  .header-nav .dropdown-menu .dropdown-item:hover {
    color: var(--header-accent) !important;
    background: #d4e2f2;
  }
  .header-nav .dropdown-item .dropdown-item-icon {
    color: var(--header-accent);
  }

  .dropdown-submenu-list {
    position: static;
    box-shadow: none;
    background: rgba(70, 120, 170, 0.12);
    border-radius: 0.5rem;
    margin-top: 0.25rem;
    margin-left: 0.5rem;
    padding-left: 0.35rem;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.25s ease;
  }
  .header-nav .dropdown-submenu.open .dropdown-submenu-list {
    max-height: 500px;
  }

  .header-burger { display: flex !important; }

  .gallery__list {
    overflow-x: auto;
    overflow-y: hidden;
    flex-direction: row;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .gallery__list::-webkit-scrollbar {
    height: 6px;
  }
  .gallery__list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
  }
  .gallery__list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
  }

  .gallery__item {
    width: 17.5rem;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  /* Our Team: sol/sağ ileri–geri okları (<768’de varsayılan gizliydi) */
  .team-swiper-wrap {
    padding-left: 2.75rem;
    padding-right: 2.75rem;
  }
  .team-swiper-nav {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    top: 50%;
    transform: translateY(-50%);
  }
  .team-swiper-nav--prev {
    left: 0.15rem;
  }
  .team-swiper-nav--next {
    right: 0.15rem;
  }
  .team-swiper-nav:active {
    background: rgba(255, 255, 255, 0.2);
  }

  .swiper-team .swiper-slide__inner {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
