/* =============================================================================
   3-button.css — Pill buttons site-wide
   Size tiers: .button--section (home CTA, client app, send message)
               .button--small   (nav CTA, coming soon, WhatsApp)
   ============================================================================= */

/* ---------- Default — base .button ---------- */

/* White pill — fill, label, and shadow (contact submit, links with .button) */
.button {
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-radius: 4rem;
  border: none;
  background-color: var(--color-cta-bg);
  color: var(--color-cta-text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  box-shadow: 0 8px 28px hsla(150, 40%, 12%, 0.18);
  transition: box-shadow 0.3s, transform 0.3s;
  cursor: pointer;
}

/* Arrow / icon inside .button */
.button i {
  font-size: 1.5rem;
  transition: transform 0.3s;
}

/* ---------- Modifiers — size tiers ---------- */

/* Compact tier — header “Get a Quote”, “Coming soon”, WhatsApp */
.button--small,
.button.button--small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.4rem;
  box-sizing: border-box;
  padding: 0.4rem 0.85rem;
  min-height: 2.125rem;
  font-size: var(--text-small);
  line-height: 1;
  font-weight: var(--weight-semibold);
}

.button--small i,
.button.button--small i {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

/* Section tier — home “Get a Quote”, services “Client app” */
.button--section,
.button.button--section {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.5rem;
  box-sizing: border-box;
  padding: 0.7rem 1.35rem;
  min-height: 2.75rem;
  font-size: var(--text-small);
  line-height: 1;
}

.button--section i,
.button.button--section i {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

/* WhatsApp — brand dark green on top of .button--small (matches Client app colours) */
.button--whatsapp {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  box-shadow: 0 6px 20px hsla(120, 18%, 8%, 0.3);
}

/* ---------- States — hover ---------- */

.button:hover {
  box-shadow: 0 12px 36px hsla(150, 40%, 12%, 0.24);
  transform: translateY(-1px);
}

.button:hover i {
  transform: translateX(0.25rem);
}

.button--whatsapp:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  box-shadow: 0 8px 32px hsla(120, 18%, 8%, 0.45);
  transform: translateY(-1px);
}

.button--whatsapp:hover i {
  transform: none;
}

/* ---------- Responsive — 768px up ---------- */

@media (min-width: 768px) {
  .button--small,
  .button.button--small {
    padding: 0.55rem 1rem;
    min-height: 2.375rem;
  }

  .button--section,
  .button.button--section {
    padding: 1rem 1.5rem;
    min-height: 3.25rem;
    font-size: var(--text-body);
  }

  .button--section i,
  .button.button--section i {
    font-size: 1.5rem;
  }

  .button--whatsapp {
    box-shadow: 0 8px 24px hsla(120, 18%, 8%, 0.35);
  }

  .button--whatsapp:hover {
    box-shadow: 0 8px 32px hsla(120, 18%, 8%, 0.45);
  }
}
