/* ==========================================================================
   Services hub and service detail pages.
   Loaded only by those pages via @@section Styles. Tokens come from site.css.
   ========================================================================== */

/* ---------- shared ---------- */

.tz-svc-hero-kicker {
  margin: 0 0 .4rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tz-red);
}

.tz-svc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* ---------- hub hero ---------- */

.tz-svc-hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  overflow: hidden;
}

.tz-svc-hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.tz-svc-hero-art svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tz-svc-hero-inner {
  padding: 4rem 0 3.5rem;
  max-width: 44rem;
}

.tz-svc-hero h1 {
  margin: 0 0 .9rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.08;
}

.tz-svc-hero-lede {
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(255, 255, 255, .82);
  max-width: 34rem;
}

.tz-svc-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.tz-svc-hero-points li {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .8);
}

.tz-svc-hero-points svg {
  width: 16px;
  height: 16px;
  color: var(--tz-red);
  flex: 0 0 16px;
}

/* ---------- service finder ---------- */

.tz-finder {
  background: var(--tz-bg-soft);
  border-bottom: 1px solid var(--tz-line);
  padding: 3rem 0;
}

.tz-finder-head {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.tz-finder-head h2 {
  margin: 0 0 .4rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.tz-finder-head p {
  margin: 0;
  color: var(--tz-muted);
}

.tz-finder-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 992px) {
  .tz-finder-grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

.tz-finder-options {
  display: grid;
  gap: .6rem;
  grid-template-columns: 1fr;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

@media (min-width: 576px) {
  .tz-finder-options {
    grid-template-columns: 1fr 1fr;
  }
}

.tz-finder-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.tz-finder-opt label {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem .85rem;
  background: #fff;
  border: 1px solid var(--tz-line);
  border-radius: .6rem;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  height: 100%;
}

.tz-finder-opt label:hover {
  border-color: var(--tz-red);
}

.tz-finder-radio:checked + label {
  border-color: var(--tz-red);
  background: var(--tz-red-soft);
}

/* Keyboard users must be able to see where they are in the radio group. */
.tz-finder-radio:focus-visible + label {
  outline: 2px solid var(--tz-red);
  outline-offset: 2px;
}

.tz-finder-ico {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: var(--tz-bg-soft);
  color: var(--tz-red);
}

.tz-finder-radio:checked + label .tz-finder-ico {
  background: #fff;
}

.tz-finder-ico svg {
  width: 17px;
  height: 17px;
}

.tz-finder-result {
  background: #fff;
  border: 1px solid var(--tz-line);
  border-radius: .8rem;
  padding: 1.5rem;
  min-height: 15rem;
}

.tz-finder-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  text-align: center;
  min-height: 12rem;
  color: var(--tz-muted);
}

.tz-finder-idle svg {
  width: 34px;
  height: 34px;
  opacity: .35;
}

.tz-finder-idle p {
  margin: 0;
  max-width: 18rem;
}

.tz-finder-kicker {
  margin: 0 0 .2rem;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tz-muted);
}

.tz-finder-rec h3 {
  margin: 0 0 .6rem;
  font-size: 1.4rem;
  color: var(--tz-red);
}

.tz-finder-advice {
  margin: 0 0 1rem;
  color: var(--tz-ink);
}

.tz-finder-meta {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: .4rem;
}

.tz-finder-meta li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .86rem;
  color: var(--tz-muted);
}

.tz-finder-meta svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: var(--tz-red);
}

.tz-finder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

/* ---------- catalog ---------- */

.tz-svc-catalog {
  padding: 3rem 0 1rem;
}

.tz-svc-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}

.tz-svc-chip {
  border: 1px solid var(--tz-line);
  background: #fff;
  border-radius: 2rem;
  padding: .4rem 1rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--tz-ink);
}

.tz-svc-chip:hover {
  border-color: var(--tz-red);
  color: var(--tz-red);
}

.tz-svc-chip.is-on {
  background: var(--tz-red);
  border-color: var(--tz-red);
  color: #fff;
}

.tz-svc-group {
  margin-bottom: 3rem;
}

.tz-svc-group-head {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  margin-bottom: 1.25rem;
}

.tz-svc-group-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: .7rem;
  background: var(--tz-red-soft);
  color: var(--tz-red);
}

.tz-svc-group-ico svg {
  width: 23px;
  height: 23px;
}

.tz-svc-group-head h3 {
  margin: 0 0 .15rem;
  font-size: 1.3rem;
}

.tz-svc-group-head p {
  margin: 0;
  color: var(--tz-muted);
  font-size: .92rem;
  max-width: 46rem;
}

.tz-svc-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .tz-svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .tz-svc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tz-svc-empty {
  color: var(--tz-muted);
  padding: 2rem 0;
}

/* ---------- service card ---------- */

.tz-svc-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--tz-line);
  border-radius: .8rem;
  overflow: hidden;
  height: 100%;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.tz-svc-card:hover {
  border-color: var(--tz-red);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .08);
  transform: translateY(-2px);
}

.tz-svc-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--tz-ink);
  overflow: hidden;
}

.tz-svc-card.is-compact .tz-svc-card-media {
  aspect-ratio: 21 / 9;
}

.tz-svc-media-img,
.tz-svc-media-art,
.tz-svc-media-art svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tz-svc-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem 1.2rem 1.2rem;
}

.tz-svc-card-title {
  margin: 0 0 .4rem;
  font-size: 1.08rem;
}

.tz-svc-card-title a {
  color: inherit;
  text-decoration: none;
}

.tz-svc-card-title a:hover {
  color: var(--tz-red);
}

/* The whole card is clickable, but the accessible name stays on the real link. */
.tz-svc-card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.tz-svc-card {
  position: relative;
}

.tz-svc-card-desc {
  margin: 0 0 .75rem;
  font-size: .9rem;
  color: var(--tz-muted);
}

.tz-svc-card-benefit {
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  margin: 0 0 .75rem;
  font-size: .84rem;
  font-weight: 700;
  color: var(--tz-ink);
}

.tz-svc-card-benefit svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin-top: .12rem;
  color: var(--tz-red);
}

.tz-svc-card-meta {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  font-size: .8rem;
  color: var(--tz-muted);
}

.tz-svc-card-meta li {
  display: flex;
  align-items: center;
  gap: .3rem;
}

.tz-svc-card-meta svg {
  width: 14px;
  height: 14px;
}

.tz-svc-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

/* ---------- breadcrumbs ---------- */

.tz-crumbs {
  background: var(--tz-bg-soft);
  border-bottom: 1px solid var(--tz-line);
  padding: .7rem 0;
  font-size: .82rem;
}

.tz-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tz-crumbs li + li::before {
  content: "/";
  margin-right: .4rem;
  color: var(--tz-line);
}

.tz-crumbs li[aria-current] {
  color: var(--tz-muted);
  font-weight: 600;
}

/* ---------- service detail ---------- */

.tz-svc-detail-hero {
  background: linear-gradient(115deg, #26272a, #131417);
  color: #fff;
  padding: 3rem 0;
}

.tz-svc-detail-hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 992px) {
  .tz-svc-detail-hero-grid {
    grid-template-columns: 1.05fr .95fr;
  }
}

.tz-svc-detail-hero h1 {
  margin: 0 0 .75rem;
  font-size: clamp(1.9rem, 4.4vw, 2.85rem);
  line-height: 1.1;
}

.tz-svc-detail-sub {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .8);
  max-width: 34rem;
}

.tz-svc-detail-facts {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.tz-svc-detail-facts li {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .88rem;
  color: rgba(255, 255, 255, .75);
}

.tz-svc-detail-facts strong {
  color: #fff;
}

.tz-svc-detail-facts svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--tz-red);
}

.tz-svc-detail-hero-media {
  border-radius: .9rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

.tz-svc-detail {
  padding: 3rem 0;
}

.tz-svc-detail section + section {
  margin-top: 2.5rem;
}

.tz-svc-detail h2 {
  font-size: 1.45rem;
  margin: 0 0 1rem;
}

.tz-svc-checklist,
.tz-svc-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .6rem;
}

.tz-svc-checklist li,
.tz-svc-benefits li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}

.tz-svc-checklist svg,
.tz-svc-benefits svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: .28rem;
  color: var(--tz-red);
}

@media (min-width: 768px) {
  .tz-svc-checklist {
    grid-template-columns: 1fr 1fr;
    gap: .6rem 1.5rem;
  }
}

.tz-svc-signs {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: .45rem;
}

.tz-svc-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .8rem;
  counter-reset: step;
}

.tz-svc-steps li {
  display: flex;
  gap: .9rem;
  padding: .9rem 1rem;
  background: var(--tz-bg-soft);
  border-radius: .6rem;
  border-left: 3px solid var(--tz-red);
}

.tz-svc-step-n {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  background: var(--tz-red);
  color: #fff;
  font-weight: 800;
  font-size: .82rem;
}

.tz-svc-step-body {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.tz-svc-step-body strong {
  font-size: .96rem;
}

.tz-svc-step-body span {
  font-size: .88rem;
  color: var(--tz-muted);
}

.tz-svc-note {
  border: 1px solid #f2d9a8;
  background: #fdf7ec;
  border-radius: .7rem;
  padding: 1.25rem 1.4rem;
}

.tz-svc-note h2 {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.1rem;
  margin-bottom: .6rem;
}

.tz-svc-note svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  color: #b7791f;
}

.tz-svc-note .tz-article-body {
  font-size: .93rem;
}

/* ---------- aside ---------- */

.tz-svc-aside {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 1rem;
}

.tz-svc-aside-card {
  border: 1px solid var(--tz-line);
  border-radius: .7rem;
  padding: 1.25rem;
  background: #fff;
}

.tz-svc-aside-card p {
  font-size: .9rem;
  color: var(--tz-muted);
}

.tz-svc-aside-book {
  border-color: var(--tz-red);
  background: var(--tz-red-soft);
}

.tz-svc-related {
  margin-top: 3.5rem;
}

/* ---------- closing CTA ---------- */

.tz-svc-cta {
  background: linear-gradient(115deg, var(--tz-red), var(--tz-red-dark));
  color: #fff;
  padding: 3rem 0;
}

.tz-svc-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
}

.tz-svc-cta h2 {
  margin: 0 0 .35rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.tz-svc-cta p {
  margin: 0;
  color: rgba(255, 255, 255, .85);
}

.tz-svc-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.tz-svc-cta .btn-light {
  --bs-btn-color: var(--tz-red);
  font-weight: 700;
}

/* ---------- home page strip ---------- */

.tz-svc-home {
  padding: 3rem 0;
  border-top: 1px solid var(--tz-line);
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .tz-svc-card {
    transition: none;
  }

  .tz-svc-card:hover {
    transform: none;
  }
}

/* ---------- touch targets ---------- */

/* btn-sm is fine under a mouse but too small for a thumb, so coarse pointers get
   the ~44px target that touch guidance asks for. */
@media (pointer: coarse) {
  .tz-svc-card-actions .btn,
  .tz-svc-chip,
  .tz-finder-actions .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .tz-svc-card-actions .btn {
    flex: 1 1 auto;
  }

  .tz-finder-opt label {
    min-height: 52px;
  }
}
