/**
 * Responsive breakpoints — match demo SPA behavior
 */

@media (max-width: 1024px) {
  .hc-section {
    padding-block: 64px;
  }

  .hc-hide-tablet {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .hc-section {
    padding-block: 48px;
  }

  .hc-container {
    padding-inline: 16px;
  }

  .hc-section-title {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }

  .hc-btn {
    padding: 12px 22px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }

  .hc-btn-row {
    flex-direction: column;
    gap: 12px;
  }

  .hc-hide-mobile {
    display: none !important;
  }

  /* Mobile nav offcanvas */
  .hc-offcanvas {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    visibility: hidden;
  }

  .hc-offcanvas.is-open {
    pointer-events: auto;
    visibility: visible;
  }

  .hc-offcanvas-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .hc-offcanvas.is-open .hc-offcanvas-backdrop {
    opacity: 1;
  }

  .hc-offcanvas-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: var(--hc-white);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 24px;
    overflow-y: auto;
  }

  .hc-offcanvas.is-open .hc-offcanvas-panel {
    transform: translateX(0);
  }

  .hc-offcanvas-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    font-weight: 600;
    border-bottom: 1px solid var(--hc-border);
  }
}

@media (min-width: 768px) {
  .hc-show-mobile-only {
    display: none !important;
  }
}
