/* Trades theme: call button, credentials, emergency strip, job description
   and photo checkbox. Everything else is in base.css. */

.credentials { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; }
.credentials li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.credentials li::before {
  content: '';
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.emergency { background: var(--accent); color: var(--accent-ink); }
.emergency-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px; }
.emergency .btn { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
.emergency .btn:hover { background: transparent; color: var(--accent-ink); }

.price-foot { margin-top: 16px; }

textarea {
  width: 100%;
  min-height: 112px;
  padding: 14px 18px;
  border: 1px solid var(--hair);
  border-radius: 18px;
  background: rgb(255 255 255 / 0.8);
  color: var(--ink);
  font: 500 15px/1.5 var(--sans);
  resize: vertical;
}
textarea::placeholder { color: var(--ink-soft); opacity: 0.6; }
textarea:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
#area-input { margin-top: 12px; max-width: 320px; }

.check { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 600; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--ink); cursor: pointer; }

.areas-label { margin-top: 28px; color: var(--ink-soft); }
.area-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.area-tags li { padding: 6px 14px; border: 1px solid var(--hair); border-radius: 999px; font-size: 14px; font-weight: 600; }

/* ---------- photos (optional: images.logo / images.hero / gallery) ---------- */
.brand { display: inline-flex; align-items: center; }
.brand-logo { display: block; height: 40px; width: auto; max-width: 200px; object-fit: contain; }

@media (min-width: 900px) { .hero-grid.with-photo { grid-template-columns: 1.1fr 1fr; } }
.hero-card.has-photo { padding: 0; overflow: hidden; }
.hero-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.has-photo .glance { margin: 0; padding: 4px 24px 24px; }
.has-photo .glance div:first-child { border-top: 0; }

.work-grid { display: grid; gap: 14px; margin-top: 40px; }
.work-item { margin: 0; display: grid; grid-template-rows: 1fr auto; gap: 10px; min-height: 0; }
.work-item img { display: block; width: 100%; height: 100%; min-height: 0; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.work-item figcaption { font-weight: 600; font-size: 15px; }
@media (min-width: 760px) {
  .work-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 250px; }
  .work-item { grid-column: span 2; }
  .work-item img { aspect-ratio: auto; }
  .work-item.lead { grid-column: span 4; grid-row: span 2; }
  .work-item.tail-1 { grid-column: span 6; }
  .work-item.tail-2 { grid-column: span 3; }
}
@media (prefers-reduced-motion: no-preference) {
  .work-item img { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
  .work-item:hover img { transform: scale(1.03); }
  .work-item { overflow: hidden; }
  .work-item.will-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
  .work-item.will-reveal.in { opacity: 1; transform: none; }
}

/* ---------- hivis palette: yellow fills, ink text ---------- */
[data-palette='hivis'] .btn:not(.btn-ghost) { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
[data-palette='hivis'] .btn:not(.btn-ghost):hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
[data-palette='hivis'] .display em { background: linear-gradient(transparent 62%, var(--accent) 62%); padding: 0 0.08em; }
[data-palette='hivis'] .credentials li::before { background-color: var(--ink); }
[data-palette='hivis'] .chip[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
