/* ============================================
   OPTIMAL İKLİMLENDİRME — Responsive
   ============================================ */

/* --- Large Screens (1400px+) --- */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* --- Laptop / Small Desktop (max 1200px) --- */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 32px;
  }

  .stats-grid {
    gap: 20px;
  }
}

/* --- Tablet Landscape (max 1024px) --- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
  }

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

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

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* --- Tablet Portrait (max 768px) --- */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
    --container-padding: 0 20px;
  }

  /* Navbar */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 40px;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: -1;
  }

  .nav-menu.open::before {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 1.15rem;
    padding: 14px 24px;
    width: 100%;
    text-align: center;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: 90vh;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-scroll {
    display: none;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 30px 24px;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat-item {
    padding: 24px 16px;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-form {
    padding: 30px 24px;
  }

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

  /* Testimonials */
  .testimonial-content {
    padding: 30px 24px;
  }

  .testimonial-text {
    font-size: 1rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  /* Page Header */
  .page-header {
    padding: 130px 0 60px;
  }

  /* Products */
  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: 200px;
  }

  /* About */
  .about-values {
    grid-template-columns: 1fr;
  }

  /* Section Header */
  .section-header {
    margin-bottom: 40px;
  }

  /* CTA */
  .cta-phone {
    flex-direction: column;
  }

  /* Map */
  .map-container {
    height: 300px;
  }
}

/* --- Mobile (max 480px) --- */
@media (max-width: 480px) {
  :root {
    --section-padding: 48px 0;
    --container-padding: 0 16px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-tagline {
    font-size: 0.82rem;
    padding: 8px 20px;
  }

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

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

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
  }

  .section-badge {
    font-size: 0.75rem;
    padding: 6px 16px;
  }

  .btn {
    padding: 12px 28px;
    font-size: 0.92rem;
  }

  .btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
  }

  .product-body {
    padding: 24px;
  }

  .product-image {
    height: 180px;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }

  .navbar {
    padding: 12px 0;
  }

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

  .nav-logo-text {
    font-size: 1.2rem;
  }

  .nav-logo-text span {
    font-size: 0.55rem;
    letter-spacing: 2px;
  }
}

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

  html {
    scroll-behavior: auto;
  }

  .brands-track {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
