/* =============================================
   TOPEH CREATES — RESPONSIVE.CSS
   Breakpoints: 1280 / 1024 / 768 / 480 / 320
   ============================================= */

/* ─── 1280px ─────────────────────────────────── */
@media screen and (max-width: 1280px) {
  .container { padding: 0 2.5rem; }

  .hero-title {
    font-size: clamp(4rem, 9vw, 7rem);
  }

  .about-grid {
    gap: 3.5rem;
  }

  .services-header {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .services-intro {
    max-width: 600px;
  }
}

/* ─── 1024px ─────────────────────────────────── */
@media screen and (max-width: 1024px) {
  .container { padding: 0 2rem; }

  /* Hero: stack vertically */
  .hero-container {
    grid-template-columns: 1fr;
    padding-top: 6rem;
    gap: 3rem;
  }

  .hero-photo-col {
    padding-right: 0;
    max-width: 420px;
    margin: 0 auto;
  }

  .hero-photo {
    max-height: 55vh;
  }

  .hero-text-col {
    padding-left: 0;
    text-align: center;
  }

  .hero-eyebrow {
    justify-content: center;
  }

  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-skills {
    padding-top: 0;
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-card.card-wide {
    grid-column: span 2;
  }

  /* Services */
  .service-item {
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
  }

  .service-cta {
    grid-column: 2;
    justify-self: start;
  }

  /* FAQ */
  .faq-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .faq-left {
    position: static;
  }

  .faq-bg-text {
    display: none;
  }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* ─── 768px ──────────────────────────────────── */
@media screen and (max-width: 768px) {
  .section { padding: 6rem 0; }

  .container { padding: 0 1.5rem; }

  /* Navigation: mobile menu */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 80vw);
    height: 100dvh;
    background: rgba(6, 6, 6, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--border-gold);
    padding: 7rem 2.5rem 3rem;
    z-index: 799;
    transition: right 0.4s var(--ease-out);
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 0;
  }

  .nav-menu ul li {
    border-bottom: 1px solid var(--border);
  }

  .nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
  }

  .hamburger { display: flex; }

  /* Hide cursor on touch */
  .cursor-dot,
  .cursor-ring { display: none; }

  body { cursor: auto; }

  /* Hero */
  .hero-title {
    font-size: clamp(3.5rem, 14vw, 5rem);
  }

  .hero-photo-col {
    max-width: 320px;
  }

  /* Portfolio: single column */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card.card-wide {
    grid-column: span 1;
    aspect-ratio: 4 / 3;
  }

  /* Portfolio header: stack */
  .portfolio-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-tabs::-webkit-scrollbar { display: none; }

  /* Services */
  .service-item {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .service-num { font-size: 1.8rem; }

  .service-cta { grid-column: auto; }

  /* Inquire form */
  .inquire-form {
    grid-template-columns: 1fr;
  }

  .inquire-form-wrapper {
    padding: 2rem 1.5rem;
  }

  /* Floating badges */
  .available-badge {
    bottom: 1.2rem;
    right: 1.2rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.68rem;
  }

  .back-to-top {
    bottom: 1.2rem;
    left: 1.2rem;
    width: 40px;
    height: 40px;
  }

  /* Footer */
  .footer-social { gap: 1.5rem; }
}

/* ─── 480px ──────────────────────────────────── */
@media screen and (max-width: 480px) {
  .section { padding: 5rem 0; }

  .container { padding: 0 1.2rem; }

  /* Hero */
  .hero-container { padding-top: 5.5rem; }

  .hero-title {
    font-size: clamp(3rem, 16vw, 4rem);
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .btn { width: 100%; text-align: center; }

  .hero-stats {
    gap: 1.2rem;
  }

  .stat-num { font-size: 1.6rem; }

  /* About */
  .achievements { gap: 0.8rem; }

  /* Marquee */
  .marquee-inner { font-size: 0.7rem; }

  /* Services header */
  .services-header { margin-bottom: 2rem; }

  /* Inquire */
  .inquire-form-wrapper { padding: 1.5rem 1rem; }

  /* Footer */
  .footer-wordmark { letter-spacing: 0.15em; }
  .footer-bottom { flex-direction: column; gap: 0.4rem; }

  /* Available badge — text only */
  .available-text { display: none; }

  .available-badge { padding: 0.5rem 0.6rem; border-radius: 50%; }
}

/* ─── 320px ──────────────────────────────────── */
@media screen and (max-width: 320px) {
  .hero-title { font-size: 2.6rem; }

  .section-title { font-size: 2rem; }

  .hero-photo-col { max-width: 260px; }

  .nav-menu { width: 90vw; }
}

/* ─── REDUCED MOTION ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .marquee-inner { animation: none; }
  .loader-brand span { opacity: 1; transform: none; }
}