/* ==============================================
   COMPONENTS.CSS
   Custom buttons, cards, and UI elements
   ============================================== */

/* ===== BUTTONS ===== */
/* Override/enhance Blocksy buttons with design guidelines */

.wp-block-button__link,
.wp-element-button,
button.single_add_to_cart_button {
  min-height: 56px;
  padding: 0 clamp(32px, 4vw, 40px) !important;
  border-radius: 10px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: clamp(16px, 2vw, 18px) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

/* Desktop hover effect */
@media (min-width: 768px) {
  .wp-block-button__link:hover,
  .wp-element-button:hover,
  button.single_add_to_cart_button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 0 var(--theme-palette-color-4); /* Baby blue shadow */
  }
}

/* Mobile tap effect */
@media (max-width: 767px) {
  .wp-block-button__link:active,
  .wp-element-button:active,
  button.single_add_to_cart_button:active {
    transform: scale(0.97);
  }
}

/* ===== CARDS ===== */
/* Custom card component for services, features, etc. */

.custom-card {
  min-width: 320px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 12px;
  border: 1px solid var(--theme-palette-color-5); /* rgba(0,0,0,0.08) */
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

@media (min-width: 768px) {
  .custom-card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 0 var(--theme-palette-color-4); /* Baby blue shadow */
  }
}

/* Card title */
.custom-card h3 {
  margin-bottom: 16px;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

/* Card content */
.custom-card p {
  line-height: 1.6;
  margin-bottom: 0;
}

/* ===== ICON STYLING ===== */
/* For service highlights with icons */

.service-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--theme-palette-color-4); /* Baby blue background */
}

.service-icon svg,
.service-icon img {
  width: 32px;
  height: 32px;
}