.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface2);
}

.files-card {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface2);
}

.card-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap; /* nice on small screens */
}
.card-actions .btn:first-child {
  background: color-mix(in srgb, var(--surface2) 70%, transparent);
}

/* ====== media ====== */
.media-grid {
  display: grid;
  gap: 14px;

  /* fixed card columns */
  grid-template-columns: repeat(auto-fit, 260px);

  /* this is the key: center the whole row */
  justify-content: center;

  max-width: 1100px;
  margin-inline: auto;
}
.media-item {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface2);
}
.media-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.media-item.is-missing {
  position: relative;
  height: 180px; /* fixed height same as images */
}
.media-item.is-missing::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
}

.media-caption {
  text-align: left;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--muted);
}

/* ===== sticky cta (refined – lighter visual weight) ===== */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;

  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;

  transition:
    transform 180ms ease,
    opacity 180ms ease;

  will-change: transform, opacity;

  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] .sticky-cta {
  box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.28);
}

.sticky-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.sticky-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  /* reduced vertical padding */
  padding: 8px 0;
}

.sticky-cta-text {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.3;
}

.sticky-cta-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* buttons inside sticky cta */
.sticky-cta-actions .btn {
  font-size: 0.95rem;
  padding: 10px 14px;
}

/* Prevent content being hidden behind sticky bar */
body.has-sticky-cta {
  padding-bottom: 60px;
}

@media (max-width: 768px) {
  .sticky-cta-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .sticky-cta-actions a {
    width: 100%;
    text-align: center;
  }
}

/* ====== service ====== */
.service-content {
  max-width: 1100px;
  margin-inline: auto;
  padding: 24px 18px;
}

.service-content .service-text {
  max-width: 72ch;
}

.service-content .card,
.service-content .panel {
  margin-top: 18px;
}

.service-content .cta-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.service-content p,
.service-content li {
  color: color-mix(in srgb, var(--text) 92%, var(--muted));
}

.service-content p {
  line-height: 1.65;
  margin-top: 10px;
}

.service-content li {
  margin: 6px 0;
}

.service-content ul {
  padding-left: 18px;
  margin-top: 10px;
}

.service-content h2 {
  margin-top: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--brand);
}

.service-content h1 {
  margin-top: 18px;
  padding-bottom: 10px;
}
.service-cover {
  margin: 18px 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface2);
  position: relative;
}

@media (min-width: 900px) {
  .service-cover {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
  }
}

.service-cover-img {
  width: 100%;
  height: auto;
  display: block;
}

.service-media {
  text-align: center; /* helps center inline-grid */
  margin-top: 12px;
}

.service-video {
  width: 100%;
  display: block;
  border: 0;
  border-radius: 14px;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface2);
  border: 1px solid var(--border);
}

.video-embed__button {
  all: unset;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  position: relative;
}

.video-embed__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-embed__play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  color: var(--text);
  border: 2px solid color-mix(in srgb, var(--border) 55%, var(--text));
  box-shadow: var(--shadow);
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.service-files-list {
  padding: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.file-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.file-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
}
:root[data-theme="dark"] .file-icon {
  filter: invert(1);
}

.card-actions,
.card-actions a,
.card-actions button,
button.card-more {
  position: relative;
  z-index: 10;
}

.card-media img.card-img {
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.service-faq-card {
  max-width: 1100px;
  margin-inline: auto;
}

.service-faq-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.service-faq-title {
  margin: 0;
}

.service-faq-lead {
  margin: 8px 0 0;
  max-width: 72ch;
}

.service-faq-list {
  display: grid;
  gap: 14px;
}

.service-faq-item {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  padding: 16px;
  border-left: 3px solid var(--brand);
}

.service-faq-item:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
  transition: 0.2s ease;
}

.service-faq-q {
  margin: 0 0 8px;
}

.service-faq-a {
  margin: 0;
  line-height: 1.65;
  color: color-mix(in srgb, var(--text) 92%, var(--muted));
}

.service-faq-skip {
  flex: 0 0 auto;
}

@media (max-width: 700px) {
  .service-faq-item {
    padding: 14px;
  }
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.service-card {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;

  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);

  text-decoration: none;
  box-shadow: var(--shadow);

  transition: all 0.2s ease;
}

.service-card:hover {
  border-color: var(--brand);
  background: var(--surface2);
  transform: translateY(-2px);
}

.service-grid h2 {
  margin-bottom: 12px;
}

.service-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
