/**
 * Kuza ERP homepage — mobile & tablet responsive layer (320px–979px).
 * Desktop layout at min-width: 980px is unchanged.
 */

/* ── Global containment ───────────────────────────────────────────── */
body:has(.kuza-simple) {
  overflow-x: clip;
}

.kuza-simple {
  overflow-x: clip;
  min-width: 0;
}

.kuza-simple section,
.kuza-simple .k-hero-inner,
.kuza-simple .k-problem-inner,
.kuza-simple .k-industries-inner,
.kuza-simple .k-partners,
.kuza-simple .k-curved-cta-inner,
.kuza-simple .k-home-faq-inner {
  min-width: 0;
}

.kuza-simple img,
.kuza-simple video {
  max-width: 100%;
}

/* ── Hero: tablet + mobile (≤979px) ──────────────────────────────── */
@media (max-width: 979px) {
  .kuza-simple .k-hero {
    padding-top: 2.5rem;
    padding-bottom: 2.75rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    min-height: clamp(420px, 72vh, 560px);
  }

  .kuza-simple .k-hero-inner {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    align-items: stretch;
  }

  .kuza-simple .k-hero-copy {
    max-width: none;
    width: 100%;
    min-height: 0;
    justify-content: flex-start;
  }

  .kuza-simple .k-hero-title {
    max-width: none;
  }

  .kuza-simple .k-hero-visual {
    display: none !important;
  }

  .kuza-simple .k-hero-mobile-card {
    display: block;
    margin-top: 0.35rem;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.86rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
  }
}

@media (max-width: 768px) {
  .kuza-simple .k-hero {
    padding-top: 2rem;
    padding-bottom: 2.4rem;
  }

  .kuza-simple .k-hero-inner {
    gap: 1.15rem;
  }

  .kuza-simple .k-hero-title {
    font-size: clamp(1.55rem, 7vw, 2.15rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .kuza-simple .k-hero-eyebrow {
    font-size: 0.75rem;
    max-width: 100%;
  }

  .kuza-simple .k-hero-sub {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .kuza-simple .k-hero-tagline {
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
  }

  .kuza-simple .k-hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.55rem;
  }

  .kuza-simple .k-hero .btn-cta,
  .kuza-simple .k-hero .btn-outline-cta {
    width: 100%;
    min-height: 44px;
    padding: 0.72rem 1rem;
    font-size: 0.9rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .kuza-simple .k-hero-hide-mobile {
    display: none !important;
  }
  .kuza-simple .k-hero-animated {
    display: block;
    min-width: 0;
    margin-top: 0.15rem;
  }
}

/* ── Problem / industries ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .kuza-simple .k-problem {
    padding: 2.5rem 1rem 2.75rem;
  }

  .kuza-simple .k-problem-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .kuza-simple .k-problem-cta a {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
  }

  .kuza-simple .k-industries {
    padding: 2.5rem 1rem 2.75rem;
  }

  .kuza-simple .k-industries-head {
    margin-bottom: 1.5rem;
  }

  .kuza-simple .k-industries-lead {
    font-size: 0.92rem;
  }

  .kuza-simple .k-industries-cta {
    width: 100%;
    box-sizing: border-box;
  }

  .kuza-simple .k-industries-cards {
    gap: 0.65rem;
  }

  .kuza-simple .k-industry-card {
    padding: 0.85rem 0.9rem;
  }

  .kuza-simple .k-industry-card__title {
    font-size: 0.88rem;
  }

  .kuza-simple .k-industry-card__desc {
    font-size: 0.76rem;
    -webkit-line-clamp: 3;
  }

  .kuza-simple .k-industries-figure {
    aspect-ratio: 16 / 10;
  }

  .kuza-simple .k-industries-brand-panel {
    padding: 0.65rem 0.75rem;
  }

  .kuza-simple .k-industries-brand-tagline {
    font-size: 0.62rem;
  }

  .kuza-simple .k-industry-pill {
    font-size: 0.78rem;
    padding: 0.4rem 0.7rem;
    min-height: 36px;
    box-sizing: border-box;
  }

  .kuza-simple .k-partners-copy {
    padding: 2.5rem 1rem;
  }

  .kuza-simple .k-partners h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .kuza-simple .k-partners-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    text-align: center;
  }

  .kuza-simple .k-partners-image {
    min-height: 220px;
  }
}

/* ── Curved CTA ───────────────────────────────────────────────────── */
.kuza-simple .k-curved-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .kuza-simple .k-curved-cta {
    padding: 4.5rem 1rem 3rem;
  }

  .kuza-simple .k-curved-cta::before {
    top: -80px;
    height: 120px;
  }

  .kuza-simple .k-curved-cta-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .kuza-simple .k-curved-cta .k-curved-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}

/* ── Home quick links ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .kuza-simple .k-home-links {
    padding: 0.85rem 1rem;
    overflow-x: clip;
  }

  .kuza-simple .k-home-links-inner {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 0.5rem 0.75rem;
  }

  .kuza-simple .k-home-links a {
    white-space: normal;
    flex-shrink: 1;
    line-height: 1.35;
  }

  .kuza-simple .k-home-links strong {
    flex: 0 0 100%;
    margin-bottom: 0.15rem;
  }
}

/* ── FAQ ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .kuza-simple .k-home-faq {
    padding: 2.5rem 1rem 3rem;
  }

  .kuza-simple .k-home-faq-item summary {
    padding: 0.9rem 1rem;
    font-size: 0.92rem;
    line-height: 1.45;
    padding-right: 2rem;
  }

  .kuza-simple .k-home-faq-item summary::after {
    margin-top: 0.1rem;
  }
}

/* ── CTA strip ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .kuza-simple .k-cta {
    padding: 2.5rem 1rem;
  }

  .kuza-simple .k-cta .btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.72rem 1.25rem;
  }
}
