/* Components: slider, cards, tables, CTAs, gallery, chips */

/* —— Hero slider —— */
.hero-slider {
  position: relative;
  height: var(--hero-h);
  max-height: 70vh;
  overflow: hidden;
  background: #111;
  color: #fff;
}

.hero-slider__track {
  position: relative;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
}

.hero-slide__content {
  max-width: 40rem;
}

.hero-slide__eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: var(--fw-medium);
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.hero-slide__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  color: #fff;
}

.btn-pill {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border: 2px solid #fff;
  border-radius: var(--radius-pill);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: var(--fw-medium);
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-pill:hover {
  background: #fff;
  color: #000;
  text-decoration: none;
}

.hero-slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider__arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

.hero-slider__arrow--prev {
  left: 1rem;
}

.hero-slider__arrow--next {
  right: 1rem;
}

.hero-slider__dots {
  position: absolute;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.hero-slider__dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  padding: 0;
}

.hero-slider__dot.is-active,
.hero-slider__dot:hover {
  background: #fff;
}

/* —— Service cards —— */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--color-card-bg);
  color: var(--color-card-fg);
}

.service-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #222;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.service-card:hover .service-card__media img {
  transform: scale(1.04);
}

.service-card__body {
  padding: 1.15rem 1.25rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card__body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: var(--fw-bold);
  color: #fff;
}

.service-card__body p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  flex: 1;
}

.service-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.service-card__actions a {
  color: #fff;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.service-card__actions a:hover {
  color: var(--color-accent);
}

/* —— Lists —— */
.offer-list,
.industry-list,
.bullet-list,
.spec-list,
.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.offer-list li,
.bullet-list li,
.spec-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.55rem;
}

.offer-list li::before,
.bullet-list li::before,
.spec-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.industry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.industry-list li {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--color-border);
  font-size: 0.9rem;
  background: #fafafa;
}

.steps-list {
  counter-reset: step;
}

.steps-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: start;
}

.steps-list li::before {
  content: counter(step);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--color-ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: var(--fw-bold);
}

/* —— Contact CTA / address —— */
.contact-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.contact-cta__text {
  margin: 0;
  font-size: 1.1rem;
  font-weight: var(--fw-medium);
  max-width: 28rem;
}

.contact-cta__channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-cta__channels a {
  color: var(--color-ink);
  text-decoration: none;
  font-weight: var(--fw-medium);
}

.contact-cta__channels a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.address-block {
  font-style: normal;
}

.address-block p {
  margin: 0 0 0.4rem;
}

.contact-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.contact-list li {
  margin-bottom: 0.65rem;
  font-size: 1.15rem;
}

.contact-list a {
  color: var(--color-ink);
  text-decoration: none;
  font-weight: var(--fw-medium);
}

.contact-list a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* —— Price tables —— */
.price-table-wrap {
  overflow-x: auto;
  margin-bottom: 2rem;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.price-table caption {
  text-align: left;
  font-weight: var(--fw-bold);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  caption-side: top;
}

.price-table th,
.price-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.price-table thead th {
  background: var(--color-table-head);
  font-weight: var(--fw-bold);
}

.price-table tbody tr:nth-child(even) {
  background: var(--color-table-zebra);
}

/* —— Gallery —— */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.gallery__item {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eee;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* —— Chips —— */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.chip {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  background: #f7f7f7;
}

/* —— Industry blocks (high-temp) —— */
.industry-blocks {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.industry-blocks article h3 {
  margin-bottom: 0.35rem;
}

.industry-blocks article p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1rem;
}

/* —— Map —— */
.map-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e8e8e8;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  overflow: hidden;
}

.map-embed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* —— Back to top —— */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--color-ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  text-decoration: none;
  font-size: 1.25rem;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--color-accent);
  text-decoration: none;
  color: #fff;
}

/* —— Prose helpers —— */
.prose {
  max-width: 48rem;
}

.prose--center {
  margin-inline: auto;
  text-align: center;
}

.section-head {
  margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-slider {
    height: 22rem;
    max-height: none;
  }

  .service-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .contact-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-slider__arrow {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.1rem;
  }
}
