/* ==========================================================================
   RESPONSIVE — Breakpoint overrides and touch device adjustments
   ========================================================================== */

/* Ultra wide */
@media (min-width: 1920px) {
  :root {
    --container-max: 1600px;
  }
}

/* Laptop */
@media (max-width: 1280px) {
  :root {
    --section-padding: clamp(4rem, 8vw, 7rem);
  }
}

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --nav-height: 72px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
    --section-padding: clamp(2.75rem, 7vw, 4rem);
    --space-xl: 2.5rem;
    --space-2xl: 3.5rem;
  }

  .btn {
    padding: 0.85rem 1.5rem;
  }

  .section__title {
    font-size: var(--text-2xl);
  }

  .section__subtitle {
    font-size: var(--text-base);
  }

  /* Reduce stacked empty gaps between consecutive sections */
  .section + .section {
    padding-top: clamp(2rem, 5vw, 3rem);
  }

  .hero {
    min-height: auto;
    padding-bottom: var(--space-lg);
  }

  .hero__visual {
    min-height: 280px;
    margin-top: var(--space-md);
  }

  .hero__portrait-wrap {
    width: 220px;
    height: 280px;
  }

  .hero__stats {
    gap: var(--space-sm);
  }

  .marquee-section {
    padding-block: var(--space-md);
  }

  .marquee__text {
    font-size: var(--text-lg);
  }

  /* Tight About → Why Me junction on mobile */
  #about.section {
    padding-bottom: 0.5rem;
  }

  #why-me.section {
    padding-top: 0.5rem;
  }

  .scroll-indicator {
    display: none;
  }

  .social-dock {
    display: none;
  }
}

/* Small devices */
@media (max-width: 480px) {
  :root {
    --container-padding: 1rem;
    --section-padding: clamp(2.25rem, 6vw, 3.25rem);
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__float-card {
    display: none;
  }

  .hero__visual {
    min-height: 240px;
  }

  .hero__portrait-wrap {
    width: 180px;
    height: 230px;
  }

  .section__title br {
    display: none;
  }
}

/* Touch devices — disable custom cursor */
@media (hover: none) and (pointer: coarse) {
  body.custom-cursor-active {
    cursor: auto;
  }

  body.custom-cursor-active a,
  body.custom-cursor-active button {
    cursor: pointer;
  }

  .cursor {
    display: none !important;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .marquee__content {
    animation: none;
  }

  .hero__blob,
  .consultation__shape {
    animation: none;
  }
}

/* Print */
@media print {
  .navbar,
  .preloader,
  .cursor,
  .social-dock,
  .scroll-top,
  .scroll-indicator,
  .scroll-progress,
  .noise-overlay,
  .spotlight {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
