/* ==============================================
   Responsive Fixes — Krish DigiSolutions
   ============================================== */

/* Fix 1: Prevent horizontal scroll on the entire page */
html, body {
  overflow-x: hidden;
}

/* Fix 2: Footer stats grid — stack to 1 column on mobile */
/* Targets: grid grid-cols-3 gap-4 md:gap-12 border-t border-white/10 pt-10 */
@media (max-width: 639px) {
  .grid.grid-cols-3.border-t {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
}

/* Fix 3: Footer links — larger tap targets on mobile */
@media (max-width: 767px) {
  footer ul.space-y-4 li a {
    display: block;
    padding-block: 0.5rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* Fix 4: Decorative w-64 h-64 containers — scale down on small screens */
@media (max-width: 639px) {
  .w-64.h-64.rounded-3xl {
    width: 12rem;
    height: 12rem;
  }
}

/* Fix 5: Form inputs & selects — increase touch target to 44px */
@media (max-width: 767px) {
  input.rounded-xl,
  select.rounded-xl,
  textarea.rounded-xl {
    padding-block: 0.875rem;
    min-height: 44px;
  }
}

/* Fix 6: Gentle top announcement bar */
body::before {
  content: "Free AI Workshop on March 5 — Open to everyone. No experience needed. →";
  display: block;
  background-color: #e8853d;
  color: #fff;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif);
  letter-spacing: 0.02em;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
}

/* Push everything down to make room for the fixed bar (~36px) */
body {
  padding-top: 36px !important;
}

/* Push the fixed navbar below the announcement bar */
.fixed.z-50,
.fixed.z-40 {
  top: 36px !important;
}

@media (max-width: 639px) {
  body::before {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
  body {
    padding-top: 32px !important;
  }
  .fixed.z-50,
  .fixed.z-40 {
    top: 32px !important;
  }
}
