/* ==========================================================================
   RESPONSIVE: large to small. Breakpoints: 1100, 980, 860, 640, 420
   ========================================================================== */

@media (min-width: 1600px) {
  .wrap { max-width: 1340px; }
}

@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .steps li, .steps li + li { padding: 28px 20px 0 0; border-top: 2px solid var(--ink); }
  .steps li + li::before, .steps li::before { left: 0; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan.featured { order: -1; }
  .services li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .services .text-link { grid-column: 2; justify-self: start; }
}

@media (max-width: 980px) {
  .hero-grid, .shift-grid, .about-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: stretch; max-width: 460px; }
  .faq-grid h2 { position: static; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
  
  
  /* Header: menu button and compact WhatsApp icon */
  .site-header .btn-sm { display: none; }
  .icon-btn { display: inline-grid; }
  .icon-btn.wa { display: none; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--mist); padding: 8px var(--pad) 20px; opacity: 0; visibility: hidden; transform: translateY(-10px); box-shadow: 0 30px 40px -30px rgba(18,22,51,.4); }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 16px 4px; font-size: 1.125rem; border-bottom: 1px solid var(--mist); border-radius: 0; background: none !important; }
  .nav a.active { color: var(--cobalt); }
  .nav a.nav-cta { display: inline-flex; justify-content: center; min-height: 54px; margin-top: 18px; border: 0; border-radius: 999px; padding: 0 22px; background: var(--cobalt) !important; color: #fff; }
}

@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 18px 0; border-left: 0; border-top: 0; border-bottom: 1px solid var(--mist); }
  .facts li:first-child { border-top: 1px solid var(--mist); }

  .panel { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .panel .work, .panel[data-layout] .work:nth-of-type(n) { grid-column: auto; aspect-ratio: 4 / 3; }

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

  /* Sticky call to action on phones and small tablets */
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(243,244,248,.96); border-top: 1px solid var(--mist); transform: translateY(110%); transition: transform .35s var(--ease); }
  .sticky-cta.show { transform: none; }
  .site-footer { padding-bottom: 104px; }
  .to-top { bottom: 84px; right: 16px; }
}

@media (max-width: 640px) {
  .services li { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .services .text-link { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .foot { grid-template-columns: 1fr; }

  /* Tabs: share the width, shorter labels */
  .js .tabs { display: flex; width: 100%; }
  .tab { flex: 1; padding: 0 8px; gap: 8px; font-size: .9375rem; }
  .tab .long { display: none; }
  .tab .short { display: inline; }
}

@media (max-width: 420px) {
  :root { --pad: 18px; }
  .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 10px; }
  .hero h1 { font-size: 2.45rem; }
  .btn-lg { padding: 0 20px; font-size: 1rem; }
  .status { font-size: .775rem; padding: 7px 14px;}
  .plan { padding: 28px 22px; }
  .price { font-size: 2.2rem; }
  .skills { padding: 26px 22px 18px; }
  .tab i { display: none; }
}

@media (hover: none) {
  .btn:hover { transform: none; }
}
