/* ==========================================================================
   Entegrasyon Bilişim — Responsive Stiller
   Mobile-first breakpoint yaklaşımı
   ========================================================================== */

/* --- Large Desktop (max 1280px) --- */
@media (max-width: 1280px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

/* --- Tablet (max 1024px) --- */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__desc {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    max-width: 560px;
    margin-inline: auto;
  }

  .dashboard-mockup {
    transform: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .timeline::before {
    display: none;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Header: hide desktop nav */
  .nav {
    display: none;
  }

  .header__actions .btn--outline,
  .header__actions .btn--primary:not(.header__cta-contact) {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }
}

/* --- Mobile (max 768px) --- */
@media (max-width: 768px) {
  :root {
    --header-height: 72px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 1.25rem;
  }

  .product-card {
    flex: 0 0 100%;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom__links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .header__phone span {
    display: none;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .cta-box {
    padding: 2.5rem 1.5rem;
  }

  .dashboard-mockup__body {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Small Mobile (max 480px) --- */
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .header__logo img,
  .header__logo-img {
    height: 56px;
    max-width: 260px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header__actions .header__phone {
    display: none;
  }

  .dashboard-mockup__body {
    grid-template-columns: 1fr;
  }
}

/* --- Reduced Motion (Accessibility) --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .logo-slider__track {
    animation: none;
  }
}

/* --- High Contrast --- */
@media (prefers-contrast: more) {
  .btn--outline {
    border-width: 2px;
  }

  .service-card,
  .product-card,
  .faq-item {
    border-width: 2px;
  }
}

/* --- Print --- */
@media print {
  .site-header,
  .mobile-nav,
  .back-to-top,
  .slider-controls,
  .cta-section,
  .hero__bg::before,
  .hero__bg::after {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .hero {
    min-height: auto;
    padding-top: 1rem;
  }
}
