/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: .98rem;
  border-radius: 10px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s, background .2s, color .2s, border-color .2s, box-shadow .2s;
  min-height: 48px;
  line-height: 1.1;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn-ghost:hover { background: var(--text); color: var(--bg); }
.btn-wa {
  background: var(--wa-green);
  color: #fff;
  border-color: var(--wa-green);
}
.btn-wa:hover { background: var(--wa-green-dark); border-color: var(--wa-green-dark); color: #fff; }

/* Card riso (LAY-3) */
.c-riso {
  background: var(--surface);
  border: 1.5px solid var(--text);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 5px 5px 0 var(--accent);
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.c-riso:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--accent);
}
.c-riso--dark {
  background: var(--surface-deep);
  border-color: var(--surface-deep);
  box-shadow: 5px 5px 0 var(--accent-2);
}
.c-riso--dark,
.c-riso--dark :where(h1, h2, h3, h4, p, li, span, a, small, strong, em) {
  color: #F4EFD8;
}
.c-riso--dark .svc-num,
.c-riso--dark .svc-card-num { color: var(--accent-soft); }
.c-riso--dark:hover { box-shadow: 7px 7px 0 var(--accent-2); }
@media (prefers-reduced-motion: reduce) {
  .c-riso { transition: none; }
  .c-riso:hover { transform: none; }
}

/* Chip / pill / badge */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--ff-ui);
  font-size: .82rem;
  font-weight: 500;
  color: var(--text);
}
.chip svg { width: 14px; height: 14px; color: var(--accent); }
.chip--accent {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--accent-deep);
}

/* Rating badge */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-size: .9rem;
  font-family: var(--ff-ui);
}
.rating-badge strong { font-weight: 700; color: var(--text); }
.rating-badge .stars { display: inline-flex; gap: 1px; color: #E3A615; }
.rating-badge .stars svg { width: 12px; height: 12px; }
.rating-badge:hover { border-color: var(--accent); color: var(--text); }

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .field-wide { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label {
  font-family: var(--ff-ui);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: .03em;
}
.field input,
.field select,
.field textarea {
  font-family: var(--ff-ui);
  font-size: 1rem;
  padding: 12px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  width: 100%;
  min-width: 0;
  min-height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.form-actions { margin-top: 6px; }
.form-actions .btn { width: 100%; }
@media (min-width: 640px) {
  .form-actions .btn { width: auto; }
}
.form-help {
  font-size: .82rem;
  color: var(--text-mute);
  margin-top: 8px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}
.modal-box {
  position: relative;
  background: var(--bg);
  border-radius: 14px;
  max-width: 540px;
  width: 100%;
  max-height: 84vh;
  overflow-y: auto;
  padding: 30px 26px 26px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.55);
}
.modal-box h2 {
  margin-top: 0;
  font-size: 1.4rem;
}
.modal-box p { color: var(--text-2); font-size: .93rem; line-height: 1.55; }
.modal-box h3 {
  font-family: var(--ff-display);
  font-size: 1rem;
  margin: 18px 0 6px;
  color: var(--text);
}
.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 38px; height: 38px;
  background: transparent;
  border: 0;
  font-size: 1.8rem;
  color: var(--text-2);
  cursor: pointer;
  border-radius: 50%;
  line-height: 1;
}
.modal-close:hover { background: var(--bg-alt); color: var(--text); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20,16,8,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  padding: 24px;
}
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 8px;
}
.lb-btn {
  position: absolute;
  background: rgba(255,255,255,.12);
  border: 0;
  color: #fff;
  width: 50px; height: 50px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s;
}
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 540px) {
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-btn { width: 42px; height: 42px; font-size: 1.3rem; }
}
