/* ============================================================
   RESPONSIVE.CSS — CrazyDI Landing Page
   Breakpoints: 1200px (large tablet), 768px (tablet), 480px (mobile)
   ============================================================ */

/* ===========================
   Large Tablet: 1200px
   =========================== */
@media (max-width: 1280px) {
  .header-logo { margin-left: 40px; }
  .header-cta { margin-left: 32px; }

  .hero-title { font-size: 72px; }
  .hero-description { font-size: 17px; }

  .service-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  /* Results carousel: scale down */
  .result-mockup { width: 400px; }
  .mockup-greencard { width: 384px; height: 382px; }
  .mockup-body { top: 78px; left: 24px; width: 336px; height: 218px; }
  .mockup-screen { top: 11px; left: 11px; right: 11px; bottom: 11px; }
  .mockup-badge-traffic { top: 32px; left: 24px; font-size: 20px; }
  .mockup-chart-overlay { top: 30px; left: 176px; width: 150px; height: 102px; }
  .mockup-linkedin-overlay { bottom: 30px; right: 24px; width: 110px; height: 108px; }
  .mockup-caption { font-size: 19px; }
  .mockup-keyboard { width: 400px; height: 10px; }
  .result-slide-inner { gap: 40px; }
  .results-heading { font-size: 52px; line-height: 60px; }

  .howwework-inner {
    grid-template-columns: 360px 1fr;
    gap: 60px;
  }

  .footer-inner {
    grid-template-columns: 280px 140px 140px 1fr;
    gap: 40px;
  }
}

/* ===========================
   Tablet: 768px
   =========================== */
@media (max-width: 900px) {
  /* Header */
  .header-logo { margin-left: 20px; }
  .header-nav { display: none; }
  .header-cta { display: none; }
  .hamburger { display: flex; }

  /* Mobile nav open state */
  .header-nav.nav-open {
    display: flex;
    position: fixed;
    top: 92px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px 24px 30px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .header-nav.nav-open .nav-list {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
  }

  .header-nav.nav-open + .header-cta {
    display: flex;
    padding: 0 24px 20px;
  }

  /* Hero */
  .hero-section { min-height: auto; padding-bottom: 60px; }
  .hero-title { font-size: clamp(40px, 8vw, 68px); }
  .hero-subtitle { font-size: 28px; }
  .hero-description { font-size: 15px; }
  .hero-cta-group { gap: 16px; }
  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-outline { font-size: 16px; padding: 12px 22px; }

  .stats-pill {
    max-width: 100%;
    flex-direction: row;
    padding: 20px 24px;
  }
  .stat-number { font-size: 36px; }
  .stat-label { font-size: 13px; }
  .stat-divider { height: 60px; }

  /* What We Do */
  .service-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
    gap: 24px;
  }

  /* Results carousel — tablet: stack laptop above text */
  .results-heading-row { flex-direction: column; gap: 24px; }
  .results-heading { font-size: 42px; line-height: 52px; }
  .results-description { font-size: 16px; }

  .result-slide { padding: 20px 0; }
  .result-slide-bg { top: 0; height: 100%; left: -200vw !important; right: -200vw !important; }
  .result-slide-inner {
    flex-direction: column;
    gap: 28px;
    align-items: center;
    min-height: auto;
  }
  .result-slide--reversed .result-mockup { order: 2; }

  .result-mockup { width: 100%; max-width: 440px; margin-left: 0 !important; margin-right: 0 !important; }
  .result-content { padding-top: 20px; padding-right: 50px; }
  .result-slide-arrow { right: 0; }
  .mockup-greencard { width: 100%; max-width: 400px; height: 320px; margin: 0 auto; }
  .mockup-body { top: 60px; left: 20px; right: 20px; width: auto; height: 200px; }
  .mockup-badge-traffic { top: 24px; left: 20px; font-size: 18px; }
  .mockup-chart-overlay { top: 20px; left: auto; right: 10px; width: 120px; height: 82px; }
  .mockup-linkedin-overlay { bottom: 20px; right: 16px; width: 90px; height: 88px; }
  .mockup-caption { font-size: 16px; }
  .mockup-keyboard { width: 100%; max-width: 440px; height: 10px; }

  .result-client { font-size: 22px; }
  .result-headline { font-size: 22px; line-height: 1.3; }
  .result-tag { font-size: 14px; }
  .result-divider { width: 100%; }

  /* How We Work — disable sticky on tablet/mobile */
  .howwework-section { min-height: auto; overflow: hidden; padding-top: 60px; }
  .howwework-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 120px;
    padding-bottom: 80px;
  }
  .howwework-left {
    position: static;
  }
  .howwework-right {
    padding-top: 0;
  }
  .howwework-heading { font-size: clamp(28px, 5vw, 44px); }
  .work-step-title { font-size: 28px; }
  .work-step-desc { font-size: 16px; }

  /* Testimonials */
  .testimonials-track {
    padding: 0 24px;
  }
  .testimonial-card { width: 320px; }

  /* Team — stack photo above info card */
  .team-card {
    flex: 0 0 min(340px, 80vw);
    flex-direction: column;
    padding-left: 0;
    align-items: center;
  }
  .team-photo-wrap {
    position: relative;
    top: auto;
    transform: none;
    width: 180px;
    height: 180px;
    margin-bottom: -50px;
    z-index: 2;
  }
  .team-info-card {
    padding: 62px 24px 24px;
    text-align: center;
    min-height: auto;
    width: 100%;
  }
  .team-social-links { justify-content: center; }
  .team-slider-wrap { padding: 0 48px; }
  .team-slider-viewport::before,
  .team-slider-viewport::after { width: 30px; }
  .team-arrow { top: 55%; }

  /* Blog */
  .blog-heading { font-size: 48px; line-height: 1.1; }
  .blog-row-top { flex-direction: column; }
  .blog-card-wide { flex: none; width: 100%; flex-direction: column; }
  .blog-card-wide__image { flex: none; height: 220px; width: 100%; }
  .blog-card-dark { min-height: 260px; }
  .blog-row-bottom { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-col--brand { grid-column: 1 / -1; }
}

/* ===========================
   Mobile: 480px
   =========================== */
@media (max-width: 480px) {
  .container { padding: 0 20px; }

  /* Header */
  .site-header { height: 72px; }
  .header-logo img { width: 55px; height: 48px; }
  .hero-section { padding-top: 72px; }
  .header-nav.nav-open { top: 72px; }

  /* Hero */
  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 22px; }
  .hero-content { padding-top: 60px; }

  .stats-pill {
    flex-direction: row;
    border-radius: 20px;
    padding: 16px 12px;
    max-width: 100%;
  }
  .stat-item { padding: 0 8px; }
  .stat-number { font-size: 28px; }
  .stat-label { font-size: 11px; text-align: center; }
  .stat-divider { height: 50px; }

  /* Service Cards */
  .service-card { padding: 28px 20px; min-height: auto; }
  .service-card-icon { width: 140px; height: 140px; }
  .service-card-title { font-size: 18px; }

  /* Results carousel — mobile */
  .results-heading { font-size: 36px; line-height: 44px; }
  .mockup-greencard { height: 240px; }
  .mockup-body { top: 44px; height: 150px; }
  .mockup-badge-traffic { font-size: 15px; top: 16px; left: 16px; }
  .mockup-chart-overlay { width: 90px; height: 62px; top: 14px; }
  .mockup-linkedin-overlay { width: 70px; height: 68px; }
  .mockup-caption { font-size: 13px; }
  .result-client { font-size: 18px; }
  .result-headline { font-size: 18px; line-height: 1.3; }
  .result-tag { font-size: 13px; padding: 2px 10px; }
  .result-body { font-size: 14px; }
  .result-slide-arrow svg { width: 40px; height: 40px; }
  .results-dots { padding: 16px 0 40px; }

  /* How We Work */
  .work-step { grid-template-columns: 40px 1fr; gap: 20px; }
  .work-step-number { width: 40px; height: 40px; }
  .work-step-number span { font-size: 20px; }
  .work-step-title { font-size: 22px; }
  .work-step-desc { font-size: 14px; }
  .work-step-divider { margin-left: 60px; }

  /* Testimonials */
  .testimonials-track { padding: 0 20px; }
  .testimonial-card { width: 280px; padding: 20px; }

  /* Team */
  .team-slider-wrap { padding: 0 16px; }
  .team-card { flex: 0 0 min(280px, 78vw); }
  .team-photo-wrap { width: 140px; height: 140px; margin-bottom: -40px; }
  .team-info-card { padding: 52px 16px 20px; }
  .team-name { font-size: 20px; }
  .team-role { font-size: 13px; }
  .team-bio { font-size: 12px; line-height: 1.4; }
  .team-slider-viewport::before,
  .team-slider-viewport::after { width: 16px; }
  .team-arrow svg { width: 36px; height: 36px; }

  /* Blog */
  .blog-heading-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .blog-heading { font-size: 40px; line-height: 1.1; }
  .blog-editors-pick { font-size: 18px; }
  .blog-row-bottom { grid-template-columns: 1fr; }
  .blog-title { font-size: 20px; }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-social { flex-wrap: wrap; }
}

/* ===========================
   Hamburger Active State
   =========================== */
.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
