/* ===================================================
   OMIR NÜKTESI — Responsive Design
   Mobile-first breakpoints
   =================================================== */

/* === Tablet (max-width: 1024px) === */
@media (max-width: 1024px) {
  :root {
    --font-size-6xl: 3.5rem;
    --font-size-5xl: 2.8rem;
    --font-size-4xl: 2.2rem;
  }

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

  .hero__image {
    width: 40%;
  }

  .hero__content {
    max-width: 55%;
  }

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

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

  .gallery-item--wide {
    grid-column: span 1;
  }
}

/* === Mobile Large (max-width: 768px) === */
@media (max-width: 768px) {
  :root {
    --font-size-6xl: 2.5rem;
    --font-size-5xl: 2.2rem;
    --font-size-4xl: 1.8rem;
    --font-size-3xl: 1.5rem;
    --space-5xl: 5rem;
    --space-4xl: 3.5rem;
    --navbar-height: 70px;
  }

  /* Navbar mobile */
  .navbar__nav {
    display: none;
  }

  .navbar__toggle {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .navbar__actions {
    gap: var(--space-sm);
  }

  .navbar__actions .btn {
    display: none;
  }

  .lang-switcher {
    position: relative;
    z-index: 1001;
  }

  /* Hero mobile */
  .hero {
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__image {
    display: none;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero__stats {
    justify-content: center;
  }

  /* Grid mobile */
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  /* Footer mobile */
  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand {
    max-width: 100%;
  }

  .footer__social {
    justify-content: center;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  /* CTA mobile */
  .cta {
    margin: var(--space-md);
    padding: var(--space-2xl) var(--space-lg);
    border-radius: var(--radius-xl);
  }

  /* Gallery mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item--wide,
  .gallery-item--tall {
    grid-column: auto;
    grid-row: auto;
  }

  /* Mobile center buttons */
  .mobile-center-btn {
    text-align: center;
  }

  /* Feature item mobile */
  .feature-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Testimonials slider */
  .testimonials-slider__controls {
    gap: var(--space-sm);
  }

  /* WhatsApp float */
  .whatsapp-float {
    bottom: 20px;
    left: 20px;
    width: 52px;
    height: 52px;
    font-size: 24px;
  }

  .whatsapp-float__tooltip {
    display: none;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }

  /* Page hero mobile */
  .page-hero {
    padding-top: calc(var(--navbar-height) + var(--space-2xl));
    padding-bottom: var(--space-2xl);
  }

  /* Pricing table scrollable */
  .pricing-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pricing-table {
    min-width: 500px;
  }

  /* Section padding */
  .section {
    padding: var(--space-4xl) 0;
  }

  .section-header {
    margin-bottom: var(--space-2xl);
  }

  .container {
    padding: 0 var(--space-lg);
  }

  /* Two-column layout */
  .about-grid {
    grid-template-columns: 1fr !important;
  }

  .about-image {
    order: -1;
  }

  /* Tabs wrap nicely */
  .tabs {
    gap: var(--space-xs);
  }

  .tab-btn {
    padding: 10px 18px;
    font-size: var(--font-size-xs);
  }
}

/* === Mobile Small (max-width: 480px) === */
@media (max-width: 480px) {
  :root {
    --font-size-6xl: 2rem;
    --font-size-5xl: 1.8rem;
    --font-size-4xl: 1.5rem;
    --font-size-3xl: 1.3rem;
    --space-5xl: 4rem;
    --space-4xl: 2.5rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: var(--font-size-xs);
  }

  .btn--lg {
    padding: 14px 30px;
    font-size: var(--font-size-sm);
  }

  .hero__stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
  }

  .hero__stat-number {
    font-size: 1.5rem;
  }

  .hero__stat-label {
    font-size: 0.75rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .card__body {
    padding: var(--space-lg);
  }

  .product-card__body {
    padding: var(--space-lg);
  }

  .mobile-menu__link {
    font-size: var(--font-size-xl);
  }
}

/* === Desktop Large (min-width: 1400px) === */
@media (min-width: 1400px) {
  :root {
    --container-max: 1320px;
  }
}

/* === Accessibility: 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;
  }
}

/* === Print === */
@media print {
  .navbar,
  .whatsapp-float,
  .back-to-top,
  .mobile-menu {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  body {
    color: #000;
    background: #fff;
  }
}

/* Swipe Hint */
.swipe-hint {
  display: none;
}
@media (max-width: 768px) {
  .swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-pink-500);
    margin-bottom: 0.75rem;
    animation: swipe-hint-pulse 2s infinite ease-in-out;
  }
  .swipe-hint svg {
    width: 20px;
    height: 20px;
  }
}
@keyframes swipe-hint-pulse {
  0%, 100% { opacity: 0.6; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(5px); }
}
