/* ═══════════════════════════════════════════════════════════
   responsive.css — WebKreasiAdhi V3
   Breakpoints: 1280 · 1024 · 768 · 640 · 480
   ═══════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────
   LARGE DESKTOP — 1280px+
─────────────────────────────────────────────────────────── */
@media (min-width: 1280px) {
  :root {
    --container-max: 1200px;
  }
}


/* ───────────────────────────────────────────────────────────
   TABLET LANDSCAPE — max 1024px
─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --section-py: clamp(48px, 7vw, 80px);
  }

  /* Services */
  .services__grid {
    grid-template-columns: 1fr;
  }

  /* About story */
  .about__story {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .about__story-image {
    max-height: 300px;
  }

  /* About stats */
  .about__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr 2fr;
    gap: var(--space-10);
  }

  .footer__brand {
    grid-column: span 2;
  }
}


/* ───────────────────────────────────────────────────────────
   TABLET PORTRAIT — max 768px
─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --nav-height:        60px;
    --nav-height-scroll: 56px;
    --section-py:        48px;
    --container-px:      20px;
  }

  /* Typography scale down */
  .section__title {
    font-size: clamp(var(--text-2xl), 6vw, var(--text-4xl));
  }

  .section__subtitle {
    font-size: var(--text-base);
  }

  /* Hero */
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-8);
  }

  .hero__content {
    align-items: center;
    order: 2;
  }

  .hero__visual {
    order: 1;
    height: 260px;
    width: 100%;
  }

  .hero__cta {
    justify-content: center;
    flex-direction: column;
    width: 100%;
  }

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

  .hero__stats {
    justify-content: center;
    gap: var(--space-5);
    flex-wrap: wrap;
  }

  .hero__stat {
    text-align: center;
    min-width: 80px;
  }

  /* Services */
  .services__grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .service-card {
    padding: var(--space-6);
  }

  /* Portfolio */
  .portfolio__grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card--featured {
    grid-column: span 1;
  }

  .portfolio__filter {
    padding: var(--space-1);
    gap: var(--space-1);
    overflow-x: auto;
    border-radius: var(--radius-lg);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .portfolio__filter::-webkit-scrollbar {
    display: none;
  }

  .portfolio__filter-btn {
    padding: 7px 16px;
    font-size: var(--text-xs);
    flex-shrink: 0;
  }

  /* Solution */
  .solution-card {
    grid-template-columns: 1fr;
    padding: var(--space-6);
    gap: var(--space-6);
  }

  .solution-card--reversed {
    direction: ltr;
  }

  .solution-card__stats {
    gap: var(--space-4);
  }

  /* About */
  .about__story {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

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

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

  .value-card {
    flex-direction: row;
  }

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

  .milestones-list::before {
    left: 66px;
  }

  /* Contact */
  .contact__layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .contact__fields {
    grid-template-columns: 1fr;
  }

  .contact__fields .form-group--full {
    grid-column: span 1;
  }

  .contact__form-wrap {
    padding: var(--space-5);
  }

  /* Section bottom CTA */
  .section__bottom-cta {
    padding: var(--space-6) var(--space-4);
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer__brand {
    grid-column: auto;
  }

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

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-2);
  }

  /* Floating buttons */
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }

  .back-to-top {
    bottom: 80px;
    right: 20px;
  }
}


/* ───────────────────────────────────────────────────────────
   MOBILE — max 640px
─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  :root {
    --container-px: 16px;
  }

  /* Hero headline smaller */
  .hero__headline {
    font-size: clamp(var(--text-3xl), 8vw, var(--text-5xl));
  }

  .hero__stats {
    gap: var(--space-4);
  }

  .hero__stat-value {
    font-size: var(--text-2xl);
  }

  /* About stats 2-col */
  .about__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Team 1-col */
  .about__team-grid {
    grid-template-columns: 1fr;
  }

  /* Solution stats */
  .solution-card__stats {
    flex-direction: column;
    gap: var(--space-3);
  }

  /* Footer links single col */
  .footer__links {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

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

  /* Milestones */
  .milestones-list::before {
    left: 56px;
  }

  .milestone-item {
    gap: var(--space-4);
  }

  .milestone-item__year {
    min-width: 44px;
    font-size: var(--text-xs);
  }
}


/* ───────────────────────────────────────────────────────────
   VERY SMALL — max 480px
─────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  :root {
    --container-px: 14px;
  }

  .hero__visual {
    height: 220px;
  }

  .service-card {
    padding: var(--space-5);
  }

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

  .solution-card {
    padding: var(--space-5);
  }

  .section__bottom-cta {
    padding: var(--space-5) var(--space-4);
  }

  .btn--xl {
    padding: 14px 28px;
    font-size: var(--text-base);
  }
}


/* ───────────────────────────────────────────────────────────
   PRINT
─────────────────────────────────────────────────────────── */
@media print {
  #site-header,
  .whatsapp-float,
  .back-to-top,
  .hero__canvas,
  .hero__gradient-orb,
  .hero__3d-canvas {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: black;
    background: white;
  }

  .section {
    padding-block: 24pt;
    page-break-inside: avoid;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  .btn {
    border: 1px solid black;
    padding: 4pt 12pt;
  }
}
