/* Reusable section styles shared by more than one frontend page (currently
   Home and About). Anything homepage-only stays in home-custom.css instead —
   this file is for designs meant to look identical everywhere they appear. */

/* ---------- Icon feature card (Home "Why Choose Us", Services "Why Work
   With Us") ---------- */
.feature-card {
  background: var(--surface-color);
  border-radius: 14px;
  padding: 32px 26px;
  height: 100%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent-color), transparent 60%);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--default-color), transparent 90%);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  color: var(--accent-color);
  font-size: 26px;
  margin-bottom: 18px;
  transition: background 0.3s ease, color 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--accent-color);
  color: #fff;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

/* ---------- Product/service showcase card (Home Featured Products,
   Services "Our Services", Products listing) ---------- */
.product-showcase-card {
  position: relative;
  height: 100%;
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.product-showcase-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent-color), transparent 70%);
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.08);
}

.product-showcase-card-image-box {
  width: 100%;
  aspect-ratio: 16 / 11;
  background-color: color-mix(in srgb, var(--heading-color), transparent 95%);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 6px;
}

.product-showcase-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-showcase-card:hover .product-showcase-card-image {
  transform: scale(1.02);
}

.product-showcase-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 2px 4px 4px;
}

.product-showcase-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.product-showcase-card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-showcase-card-price {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-color);
}

.product-showcase-card-subtitle {
  margin: 0;
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-showcase-card-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--heading-color);
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.product-showcase-card:hover .product-showcase-card-arrow {
  background-color: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
  transform: translateX(2px);
}

@media (max-width: 1200px) {
  .product-showcase-card {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-showcase-card,
  .product-showcase-card:hover,
  .product-showcase-card-image,
  .product-showcase-card:hover .product-showcase-card-image,
  .product-showcase-card-arrow,
  .product-showcase-card:hover .product-showcase-card-arrow {
    transform: none;
  }
}


/* Footer links whose labels are long enough to wrap onto two lines (e.g. the
   market landing pages): the theme's line-height:1 would stack the wrapped
   lines on top of each other, so these get normal line spacing and an even
   gap above and below. */
.footer .footer-links ul li.footer-link-wrap {
  align-items: flex-start;
  padding: 7px 0;
}

.footer .footer-links ul li.footer-link-wrap a {
  line-height: 1.4;
}
