/* ============================================================
   RESPONSIVE.CSS — Mobile-first Breakpoints
   375 · 768 · 1024 · 1280 · 1920
   ============================================================ */

/* ── Base: 375px (mobile default in main.css) ──────────────── */

/* Tablet: 768px */
@media (min-width: 768px) {
  :root {
    --gutter: 48px;
  }

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

  .hero__content {
    max-width: 600px;
  }

  .hero__deco {
    right: -40px;
  }

  /* Process timeline: vertical on mobile → horizontal 768+ */
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-timeline::before {
    display: none;
  }

  .process-detail {
    grid-template-columns: 120px 1fr;
    gap: var(--space-6);
  }
}

/* Tablet: testimonials 2 columns at 768 */
@media (min-width: 768px) and (max-width: 1023px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: 1024px */
@media (min-width: 1024px) {
  :root {
    --gutter: 64px;
  }

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

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

  /* Process timeline: full 4 columns */
  .process-timeline {
    grid-template-columns: repeat(4, 1fr);
  }

  .process-timeline::before {
    display: block;
  }

  .founder-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--space-10);
    align-items: start;
  }

  .process-detail {
    grid-template-columns: 160px 1fr;
    gap: var(--space-8);
  }
}

/* Wide desktop: 1280px */
@media (min-width: 1280px) {
  :root {
    --gutter: 80px;
  }

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

  .hero__content {
    max-width: 680px;
  }
}

/* ── Mobile-specific overrides ──────────────────────────────── */
@media (max-width: 767px) {
  /* Typography scale down */
  .t-display    { font-size: clamp(42px, 11vw, 64px); }
  .t-display-lg { font-size: clamp(48px, 13vw, 72px); }

  /* Section spacing */
  .section      { padding-block: var(--space-10); }
  .section--narrow { padding-block: var(--space-8); }

  /* Navigation — pill adapts to full width minus gutters */
  .nav { padding: 12px 16px; }
  .nav__links { display: none; }
  .nav__cta.nav__cta--desktop { display: none; }
  .nav__hamburger { display: flex; }
  .nav__inner { padding: 8px 8px 8px 16px; }

  /* Hero */
  .hero {
    padding-top: 100px;
    padding-bottom: var(--space-10);
    min-height: 100svh;
  }

  .hero__deco {
    right: -100px;
    top: 60%;
    width: 80vw;
    height: 80vw;
    opacity: 0.03;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__ctas .btn {
    width: 100%;
    justify-content: center;
  }

  /* Cards — single column */
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  /* Problem columns */
  .problem-cols {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
  }

  /* Process timeline */
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .process-timeline::before {
    display: none;
  }

  .process-step {
    padding-top: 0;
    padding-left: var(--space-8);
    padding-bottom: var(--space-7);
    border-left: 1px solid var(--color-border);
    position: relative;
  }

  .process-step:last-child {
    border-left: none;
    padding-left: var(--space-8);
  }

  .process-step:last-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 50%;
    width: 1px;
    background: var(--color-border);
  }

  .process-step__dot {
    top: 2px;
    left: -6px;
    right: auto;
  }

  /* Founder */
  .founder-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
  }

  .founder-image {
    aspect-ratio: unset;
    height: auto;
    max-height: none;
  }

  .founder-image img {
    position: static;
    width: 100%;
    height: auto;
    object-fit: unset;
  }

  /* FAQ */
  .faq-trigger {
    font-size: 18px;
  }

  /* Footer */
  .footer__top {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
  }

  .footer__nav {
    flex-wrap: wrap;
    gap: var(--space-4);
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .stat__divider { display: none; }

  /* Testimonials */
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  /* Sticky CTA */
  .sticky-cta__text {
    font-size: 13px;
  }

  /* Section numbers */
  .section-number {
    font-size: 120px;
    opacity: 0.025;
  }

  /* Process detail */
  .process-detail {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .process-detail__num {
    font-size: 56px;
  }

  /* Scroll indicator */
  .scroll-indicator {
    display: none;
  }

  /* CTA section */
  .cta-section {
    padding-block: var(--space-10);
  }

  /* Service detail */
  .service-detail__grid {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }

  /* Nav overlay mobile CTA */
  .nav__overlay .btn {
    width: 80%;
    justify-content: center;
  }
}

/* ── Hover: only on capable devices ────────────────────────── */
@media (hover: none) {
  .cursor { display: none; }

  .nav__link::after {
    display: none;
  }

  .card {
    transition: none;
  }
}

/* ── Print ──────────────────────────────────────────────────── */
@media print {
  .nav, .cursor, .scroll-indicator,
  .hero__deco, .cta-section, .footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
