/* ============================================================
   Tecrübe Yalıtım – Responsive Styles
============================================================ */

/* ── Large Desktop (1400px+) ────────────────────────────── */
@media (min-width: 1400px) {
  .container { max-width: 1360px; }
  .hero-title { font-size: 5.5rem; }
}

/* ── Desktop (1024px - 1280px) ──────────────────────────── */
@media (max-width: 1280px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
    gap: 1.5rem;
  }
}

/* ── Tablet Landscape (1024px) ──────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --spacing-xl: 5rem;
    --spacing-2xl: 6rem;
  }

  .why-us-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .stats-grid { grid-template-columns: repeat(4, 1fr); }

  .cta-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-brand { grid-column: 1 / -1; }
  .footer-brand .footer-desc { max-width: 100%; }
}

/* ── Tablet Portrait (768px) ────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --navbar-height: 70px;
    --spacing-xl: 4rem;
    --spacing-2xl: 5rem;
    --spacing-lg: 3rem;
  }

  /* Navbar */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .mobile-menu.open {
    display: flex;
  }

  .btn-nav-cta span { display: none; }
  .btn-nav-cta { padding: 0.55rem 0.9rem; }

  /* Hero */
  .hero { height: 100svh; min-height: 580px; }
  .hero-title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .hero-stats { gap: 1.5rem; }
  .hero-stat-num { font-size: 1.6rem; }

  .slider-controls { display: none; }

  /* Grids */
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .why-us-features { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; }

  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }

  /* Page hero */
  .page-hero { padding: 8rem 0 3.5rem; }
  .page-hero-title { font-size: clamp(1.8rem, 7vw, 2.8rem); }

  /* Section */
  .section { padding: 3.5rem 0; }
  .section-lg { padding: 5rem 0; }
  .section-sm { padding: 2.5rem 0; }

  /* CTA */
  .cta-inner { gap: 2rem; }
  .cta-text h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
}

/* ── Mobile Large (640px) ───────────────────────────────── */
@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }

  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .section-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }

  .stat-number { font-size: 2.4rem; }

  .cta-form { padding: 1.75rem; }

  .services-grid { gap: 1rem; }
  .projects-grid { gap: 1rem; }

  .project-card img { height: 240px; }

  /* WhatsApp + Back to top */
  .whatsapp-float { width: 52px; height: 52px; font-size: 1.4rem; bottom: 1.5rem; right: 1.5rem; }
  .back-to-top { bottom: 5.5rem; right: 1.5rem; }

  .footer-social { flex-wrap: wrap; }
}

/* ── Mobile Small (480px) ───────────────────────────────── */
@media (max-width: 480px) {
  :root { --spacing-xl: 3rem; }

  .hero-title { font-size: 2rem; }
  .hero-badge { font-size: 0.7rem; }
  .hero-desc  { font-size: 0.95rem; }

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

  .page-hero { padding: 7rem 0 3rem; }

  .nav-logo .logo-sub { display: none; }
}

/* ── Reduced Motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .refs-track { animation: none; }
}
