/* Reusable UI components — theme pink accents */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  min-height: 48px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font-weight: 650;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s var(--spring), background 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(180deg, #fb7abf, #d63384);
  color: #fff;
  box-shadow: 0 8px 18px rgba(214, 51, 132, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 10px 22px rgba(214, 51, 132, 0.38);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--pink-soft);
  color: var(--pink-deep);
}

.btn-secondary:hover {
  background: #fff;
  border-color: var(--pink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}

.btn-ghost:hover {
  border-color: rgba(214, 51, 132, 0.35);
  color: var(--pink-deep);
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 2px solid var(--pink-deep);
  outline-offset: 3px;
}

.btn-dark {
  background: #2d3338;
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  min-height: 40px;
}

/* Light button on tinted/dark panels */
.btn.btn-primary.btn-inverse,
.btn-inverse {
  background: #fff;
  color: var(--pink-deep);
  box-shadow: var(--shadow-soft);
  border: 2px solid transparent;
}

.btn.btn-primary.btn-inverse:hover,
.btn-inverse:hover {
  box-shadow: var(--shadow-lift);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Cards */
.card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1rem;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border-top: 3px solid var(--pink);
  font-weight: 650;
  color: var(--ink-on-light);
  min-height: 88px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.card-link:hover,
.card-link:active {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-top-color: var(--hot);
}

.category-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  min-height: 100%;
}

.category-card h3 {
  font-size: 1.05rem;
  color: var(--ink);
}

.category-card .card-image {
  width: 100%;
  max-width: 160px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: transparent;
}

.category-card .card-image img,
.category-card .card-image picture {
  max-height: 140px;
  width: auto;
  margin-inline: auto;
  object-fit: contain;
  background: transparent;
}

.category-card .card-image picture {
  display: contents;
}

.category-card.blue { background: var(--cat-blue); }
.category-card.pink { background: var(--cat-pink); }
.category-card.green { background: var(--cat-green); }
.category-card.grey { background: var(--cat-grey); }

/* Feature / approach pills */
.pill-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.15rem 1rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
  font-weight: 650;
  color: var(--mauve);
  border: 1px solid var(--pink-soft);
}

.approach-card {
  background: linear-gradient(160deg, #fff 0%, var(--pink-wash) 100%);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.approach-card-title {
  font-weight: 750;
  font-size: 1.05rem;
  color: var(--mauve);
  line-height: 1.25;
}

.approach-card-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.35;
}

/* Book path switch */
.book-rail {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: 400px;
}

.book-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.3rem;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 18px;
  backdrop-filter: blur(12px);
}

.book-switch a,
.book-switch button {
  appearance: none;
  border: none;
  background: transparent;
  color: #fff;
  border-radius: 14px;
  padding: 0.7rem 0.65rem;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.book-switch a strong,
.book-switch button strong {
  font-size: 0.88rem;
  font-weight: 700;
}

.book-switch a span,
.book-switch button span {
  font-size: 0.72rem;
  opacity: 1;
  color: rgba(255, 255, 255, 0.9);
}

.book-switch a.is-active,
.book-switch button.is-active {
  background: rgba(255, 255, 255, 0.97);
  color: var(--pink-deep);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-shadow: none;
}

.book-switch a.is-active strong,
.book-switch button.is-active strong {
  color: var(--pink-deep);
  text-shadow: none;
}

.book-switch a.is-active span,
.book-switch button.is-active span {
  color: #5a5360;
  opacity: 1;
  text-shadow: none;
}

.book-switch.light {
  background: var(--pink-wash);
  border-color: var(--pink-soft);
}

.book-switch.light a,
.book-switch.light button {
  color: var(--muted);
  text-shadow: none;
}

.book-switch.light a span,
.book-switch.light button span {
  color: #6b6270;
}

.book-switch.light a.is-active,
.book-switch.light button.is-active {
  background: #fff;
  color: var(--pink-deep);
}

.book-switch.light a.is-active strong,
.book-switch.light button.is-active strong {
  color: var(--pink-deep);
}

.book-switch.light a.is-active span,
.book-switch.light button.is-active span {
  color: #555;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab-h) + var(--safe-bottom) + 20px);
  transform: translateX(-50%) translateY(20px);
  background: var(--mauve);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  max-width: min(90vw, 360px);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 900px) {
  .toast {
    bottom: 28px;
  }
}

/* Shared form controls — consistent focus + spacing across contact/booking/newsletter */
.form-group label,
.field-label,
form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea,
.field input,
.field select,
.field textarea,
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="search"],
form input[type="number"],
form input[type="date"],
form select,
form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form textarea,
.form-group textarea,
.field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.field input:focus,
.field select:focus,
.field textarea:focus,
form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: rgba(214, 51, 132, 0.45);
  box-shadow: 0 0 0 3px rgba(244, 146, 198, 0.28);
}

/* Shared media + card polish */
img,
video {
  max-width: 100%;
  height: auto;
}

.card,
.svc-card,
.category-card,
.hc-who-item,
.prodev-feature-card {
  border-radius: var(--radius-lg);
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-ghost,
  .card-link,
  .float-btn {
    transition: none;
  }
}
