/**
 * ALI YILDIZ — HAIR & BEAUTY CARE
 * Responsive & Mobile Design (Section 29)
 */

@media (max-width: 1024px) {
  :root {
    --header-height: 84px;
    --header-height-scrolled: 72px;
  }

  .desktop-nav {
    display: none;
  }

  .header-actions .btn-header-cta {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

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

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

  .editorial-split,
  .editorial-split.reversed {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .intro-stage {
    height: 180vh; /* Shorter runway on tablet */
  }

  .floating-service-preview {
    display: none; /* Disable cursor follow on touch devices */
  }
}

@media (max-width: 768px) {
  :root {
    --container-pad: 1.25rem;
    --space-section: clamp(4.0rem, 8vw, 6.0rem);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

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

  .chapter-row {
    grid-template-columns: 48px 1fr auto;
    padding: var(--space-md) 0;
  }

  .chapter-title {
    font-size: var(--text-xl);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    align-items: flex-start;
  }

  .intro-stage {
    height: 150vh; /* Smooth and swift on mobile */
  }

  .intro-hero-img {
    object-position: 38% top; /* Keep the storefront sign in view, centered on the sliding door */
  }

  .intro-logo-wrap {
    width: 90vw;
  }

  .ph-auto {
    min-height: 340px;
  }
}

@media (max-width: 480px) {
  .brand-wordmark-title {
    font-size: 1.05rem;
  }

  .brand-wordmark-sub {
    font-size: 0.52rem;
    letter-spacing: 0.32em;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    padding: 1.0rem 1.5rem;
  }
}

/* Long Turkish words must fit on narrow phones (overrides per-heading inline sizes) */
@media (max-width: 480px) {
  .display-title {
    font-size: clamp(1.8rem, 8.2vw, 2.4rem) !important;
    overflow-wrap: break-word;
  }
}
