/* ══════════════════════════════════════════════════
   KREATIFART — RESPONSIVE / MOBILE CSS
   Breakpoints: 1024px | 768px | 480px
   ══════════════════════════════════════════════════ */

/* ── LOGO — desktop boyutu ── */
.nav-logo-img {
  height: 140px;
}

/* ── TABLET (≤ 1024px) ── */
@media (max-width: 1024px) {
  nav {
    padding: 20px 32px;
  }

  .nav-links {
    gap: 24px;
  }

  .nav-cta {
    padding: 8px 18px;
  }

  .capabilities-inner {
    padding: 0 48px;
  }

  .cap-header {
    flex-direction: column;
    gap: 32px;
    margin-bottom: 60px;
  }

  .cap-header-right {
    max-width: 100%;
    text-align: left;
  }

  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-inner {
    padding: 0 48px;
  }

  .process-header {
    margin-bottom: 60px;
    gap: 40px;
  }

  .stats-grid {
    gap: 40px;
  }

  .feature-content {
    padding: 0 32px;
  }

  #cta {
    padding: 140px 0;
  }

  footer {
    padding: 48px 48px;
    gap: 24px;
  }
}

/* ── TABLET SMALL (≤ 768px) ── */
@media (max-width: 768px) {

  /* Cursor — kapat */
  #cursor,
  #cursor-ring {
    display: none;
  }

  body {
    cursor: auto;
  }

  a,
  button {
    cursor: pointer !important;
  }

  /* ── NAV ── */
  nav {
    padding: 10px 16px;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
  }

  /* Logo küçült */
  .nav-logo-img {
    height: 75px !important;
    left: 20px !important;
    top: 20px !important;
  }

  /* Menü linklerini gizle */
  .nav-links {
    display: none;
  }

  /* CTA sağda küçük */
  .nav-cta {
    font-size: 10px;
    padding: 7px 14px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .lang-switcher {
    margin-left: 0;
  }

  /* Hero */
  .hero-title {
    white-space: normal;
    text-align: center;
  }

  #hero-scroll {
    height: 100vh;
  }

  /* Intro */
  #intro {
    padding: 100px 0;
  }

  .intro-inner {
    padding: 0 28px;
  }

  /* Capabilities — 2 sütun */
  #capabilities {
    padding: 100px 0;
  }

  .capabilities-inner {
    padding: 0 20px;
  }

  .cap-header {
    margin-bottom: 40px;
    align-items: flex-start; /* flex-end mobilde sağ hizalar, flex-start sol yapar */
  }

  .cap-header-left {
    text-align: left;
  }

  .cap-grid {
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
  }

  .cap-item {
    padding: 28px 20px;
    overflow: hidden;
  }

  .cap-title {
    font-size: 20px;
    word-break: break-word;
  }

  .cap-desc {
    font-size: 12px;
  }

  .cap-arrow {
    display: none;
  }

  /* Feature */
  #feature {
    height: auto;
    min-height: 100vh;
    padding: 80px 0;
  }

  .feature-content {
    padding: 0 24px;
  }

  /* Process — numara kolonu küçük */
  #process {
    padding: 100px 0;
  }

  .process-inner {
    padding: 0 20px;
  }

  .process-header {
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
  }

  .process-step {
    grid-template-columns: 40px 1fr !important;
    gap: 16px;
    padding: 24px 0;
  }

  .step-num {
    font-size: 11px;
  }

  .step-arrow {
    display: none;
  }

  .step-content h3 {
    font-size: 20px;
  }

  .step-content p {
    font-size: 13px;
  }

  /* Stats */
  #stats-feature {
    padding: 80px 24px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  /* CTA — tam genişlik buton */
  #cta {
    padding: 100px 24px;
  }

  .cta-title {
    font-size: clamp(40px, 9vw, 80px);
  }

  .cta-btn {
    display: flex !important;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  /* Footer */
  footer {
    padding: 48px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 20px;
  }

  /* Modal */
  #contact-modal {
    padding: 16px;
    align-items: flex-end;
  }

  #contact-modal>div:last-child {
    padding: 40px 24px 32px !important;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Gallery overlay */
  .slide-overlay {
    background: linear-gradient(to right,
        rgba(8, 8, 8, 0.72) 0%,
        rgba(8, 8, 8, 0.5) 60%,
        rgba(8, 8, 8, 0.2) 100%);
  }
}

/* ── MOBILE (≤ 480px) ── */
@media (max-width: 480px) {

  /* NAV */
  nav {
    padding: 8px 12px;
  }

  .nav-logo-img {
    height: 66px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    font-size: 9px;
    padding: 6px 12px;
  }

  /* Hero */
  .hero-eyebrow {
    font-size: 9px;
    letter-spacing: .3em;
    margin-bottom: 20px;
  }

  .hero-subtitle {
    font-size: 11px;
    letter-spacing: .08em;
    margin-top: 24px;
  }

  #hero-scroll {
    height: 100vh;
  }

  /* Intro */
  #intro {
    padding: 80px 0;
  }

  .intro-inner {
    padding: 0 20px;
  }

  .intro-label {
    font-size: 10px;
    margin-bottom: 24px;
  }

  .intro-body {
    font-size: 14px;
  }

  /* Capabilities — tek sütun */
  #capabilities {
    padding: 80px 0;
  }

  .capabilities-inner {
    padding: 0 14px;
  }

  .cap-header {
    margin-bottom: 40px;
  }

  .cap-header-left h2 {
    font-size: clamp(32px, 9vw, 52px);
  }

  .cap-grid {
    grid-template-columns: 1fr;
  }

  .cap-item {
    padding: 28px 20px;
  }

  .cap-title {
    font-size: 22px;
  }

  /* Feature */
  #feature {
    min-height: auto;
    padding: 80px 0;
  }

  .feature-content {
    padding: 0 20px;
  }

  .feature-label {
    font-size: 10px;
    margin-bottom: 24px;
  }

  .feature-stat-row {
    flex-direction: column;
    gap: 36px;
    margin-top: 48px;
  }

  /* Process */
  #process {
    padding: 80px 0;
  }

  .process-inner {
    padding: 0 14px;
  }

  .process-header {
    margin-bottom: 36px;
  }

  .process-header-left h2 {
    font-size: clamp(28px, 9vw, 48px);
  }

  .process-step {
    grid-template-columns: 32px 1fr !important;
    gap: 14px;
    padding: 22px 0;
  }

  .step-num {
    font-size: 10px;
    letter-spacing: .15em;
    padding-top: 4px;
  }

  .step-content h3 {
    font-size: 18px;
  }

  .step-content p {
    font-size: 12px;
  }

  /* Stats */
  #stats-feature {
    padding: 64px 16px;
    min-height: auto;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .stat-item .stat-num {
    font-size: clamp(36px, 9vw, 56px);
  }

  .stat-item .stat-label {
    font-size: 11px;
    letter-spacing: .2em;
  }

  /* CTA */
  #cta {
    padding: 80px 16px;
  }

  .cta-label {
    font-size: 10px;
    margin-bottom: 24px;
  }

  .cta-title {
    font-size: clamp(36px, 10vw, 64px);
    margin-bottom: 32px;
  }

  .cta-btn {
    display: flex !important;
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 11px;
    box-sizing: border-box;
  }

  /* Footer */
  footer {
    padding: 40px 16px;
    gap: 24px;
  }

  .footer-links {
    gap: 16px;
  }

  .footer-links a {
    font-size: 10px;
  }

  .footer-copy {
    font-size: 10px;
  }

  /* Modal */
  #contact-modal {
    padding: 0;
    align-items: flex-end;
  }

  #contact-modal>div:last-child {
    padding: 32px 16px 24px !important;
    border-radius: 0 !important;
    max-height: 92vh;
    width: 100% !important;
    max-width: 100% !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
  }

  #contact-modal h2 {
    font-size: 32px !important;
    margin-bottom: 28px !important;
  }

  .modal-grid {
    grid-template-columns: 1fr !important;
  }

  .runner-item {
    padding: 0 28px;
    font-size: 11px;
  }

    /* ── CAPABILITIES MOBILE FIX ── */
    .cap-expand-inner {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        padding: 48px 20px !important;
    }

    .cap-expand-left {
        padding-right: 0 !important;
        border-right: none !important;
        text-align: left;
    }

    .cap-expand-title {
        font-size: 32px !important;
        margin-bottom: 16px !important;
    }

    .cap-expand-desc {
        max-width: 100% !important;
        font-size: 13px !important;
        line-height: 1.6 !important;
    }

    .cap-expand-panel.is-open {
        max-height: 2000px !important; /* Allow enough height for stacking */
    }

    .cap-expand-images {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin-top: 10px;
    }

    .cap-img-slot {
        aspect-ratio: 1 / 1 !important; /* Squares look better on mobile grid */
    }
}

/* ── HERO TITLE (≤ 600px) ── */
@media (max-width: 600px) {
  .hero-title {
    white-space: normal;
    word-break: break-word;
    padding: 0 12px;
  }

  .hero-title em {
    display: block;
  }
}

/* ── SAFE AREA (iPhone notch) ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  @media (max-width: 768px) {
    nav {
      padding-top: calc(8px + env(safe-area-inset-top));
      padding-left: calc(12px + env(safe-area-inset-left));
      padding-right: calc(12px + env(safe-area-inset-right));
    }

    footer {
      padding-bottom: calc(40px + env(safe-area-inset-bottom));
    }

    #contact-modal>div:last-child {
      padding-bottom: calc(24px + env(safe-area-inset-bottom)) !important;
    }
  }
}