/* ===============================
   REUSABLE COMPONENTS
   =============================== */

/* Product image wrappers */
.product-img-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f6f6f6;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Landscape & wide variants */
.product-img-wrapper.landscape {
  aspect-ratio: 4 / 3;
}

.product-img-wrapper.wide {
  aspect-ratio: 16 / 6;
}

.product-img-wrapper.featured {
  height: 320px;
}

@media (max-width: 768px) {
  .product-img-wrapper.featured {
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

/* Gallery */
.gallery-img-wrapper {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f8f8f8;
  padding: 2px;
}

.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Service cards */
.service-item {
  background: #fff;
  border-radius: 6px;
  height: 100%;
}

/* Course / product cards */
.course-item {
  border-radius: 6px;
  overflow: hidden;
}

/* Team cards */
.team-item {
  border-radius: 6px;
  overflow: hidden;
}

/* CTA form */
.catalog-row {
    display: flex;
    flex-direction: column; /* mobile friendly layout */
    gap: 10px;
    max-width: 620px;
    margin: 0 auto;
  }

  .catalog-row input,
  .catalog-row select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
  }

  .catalog-row button {
    padding: 10px 15px;
    border-radius: 6px;
    background: #2f8f46; /* ARCHA green */
    color: #fff;
    border: none;
    cursor: pointer;
  }

  @media(min-width: 768px) {
    .catalog-row {
      flex-direction: column; /* stays column even on desktop */
    }
  }

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 28px;
  z-index: 99999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  text-decoration: none;
  transition: bottom 220ms ease;
}
.whatsapp-float i, .whatsapp-float img {
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: block;
}

/* Slightly bigger on larger screens */
@media (min-width: 1200px) {
  .whatsapp-float { width: 62px; height: 62px; }
  .whatsapp-float i, .whatsapp-float img { font-size: 28px; }
}

/* Avoid hiding when keyboard is up on mobile (some devices) */
@media (max-height: 600px) {
  .whatsapp-float { bottom: 90px !important; }
}
