/* ============================================================
   single-dich-vu.css – trang chi tiết CPT dich_vu
   Mobile-first. Dùng tokens từ main.css.
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.sdv-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 0;
  overflow: hidden;
}

.sdv-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.sdv-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}

.sdv-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(14, 47, 36, 0.30) 0%,
    rgba(14, 47, 36, 0.78) 60%,
    rgba(14, 47, 36, 0.90) 100%
  );
}

@media (min-width: 768px) {
  .sdv-hero {
    min-height: 520px;
  }
  .sdv-hero__overlay {
    background: linear-gradient(
      100deg,
      rgba(14, 47, 36, 0.88) 0%,
      rgba(14, 47, 36, 0.60) 55%,
      rgba(14, 47, 36, 0.20) 100%
    );
  }
}

@media (min-width: 1024px) {
  .sdv-hero {
    min-height: 580px;
    align-items: center;
  }
}

.sdv-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 80px;
  padding-bottom: 48px;
}
@media (min-width: 768px) {
  .sdv-hero__inner { padding-top: 100px; padding-bottom: 64px; }
}

/* Breadcrumb */
.sdv-breadcrumb { margin-bottom: 20px; }
.sdv-breadcrumb .breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0; margin: 0;
  font-size: 12.5px;
  color: rgba(255,255,255,0.75);
}
.sdv-breadcrumb .breadcrumb-list li + li::before {
  content: '/';
  margin-right: 6px;
  opacity: .6;
}
.sdv-breadcrumb .breadcrumb-list a {
  color: rgba(255,255,255,0.80);
  text-decoration: none;
  transition: color .15s;
}
.sdv-breadcrumb .breadcrumb-list a:hover { color: #fff; }
.sdv-breadcrumb .breadcrumb-list [aria-current="page"] { color: #fff; font-weight: 500; }

/* Hero body */
.sdv-hero__body { max-width: 620px; color: #fff; }

.sdv-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--gold);
  color: #fff;
  margin-bottom: 12px;
}

.sdv-hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 14px;
}

.sdv-hero__desc {
  font-size: clamp(14.5px, 1.5vw, 16px);
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
  margin-bottom: 20px;
  max-width: 540px;
}

.sdv-hero__price-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
}
.sdv-hero__price {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: #fff;
  font-family: var(--font-display);
}
.sdv-hero__price-unit {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}
.sdv-hero__price-contact {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  font-style: italic;
}

.sdv-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── Quick info ───────────────────────────────────────────── */
.sdv-quick-info {
  background: var(--green-100);
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.sdv-quick-info__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 600px)  { .sdv-quick-info__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .sdv-quick-info__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .sdv-quick-info__grid { grid-template-columns: repeat(6, 1fr); } }

.sdv-quick-info__card {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.sdv-quick-info__icon {
  color: var(--green-700);
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}
.sdv-quick-info__label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-500);
}
.sdv-quick-info__value {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.3;
  word-break: break-word;
}
.sdv-quick-info__note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ink-500);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Gallery ──────────────────────────────────────────────── */
.sdv-gallery {
  padding: 60px 0;
}
.sdv-gallery .eyebrow { margin-bottom: 20px; display: block; }

.sdv-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 600px)  { .sdv-gallery__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .sdv-gallery__grid { grid-template-columns: repeat(4, 1fr); gap: 10px; } }
@media (min-width: 1200px) { .sdv-gallery__grid { grid-template-columns: repeat(5, 1fr); } }

.sdv-gallery__item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 0;
  cursor: pointer;
  background: var(--cream-200);
  border: 0;
  display: block;
  width: 100%;
}
.sdv-gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform .35s ease;
}
.sdv-gallery__item:hover img { transform: scale(1.06); }

.sdv-gallery__overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 47, 36, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background .25s;
}
.sdv-gallery__item:hover .sdv-gallery__overlay {
  background: rgba(14, 47, 36, 0.45);
}
.sdv-gallery__item:hover .sdv-gallery__overlay svg {
  opacity: 1;
  transform: scale(1);
}
.sdv-gallery__overlay svg {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity .25s, transform .25s;
}

/* Lightbox */
.sdv-lightbox {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: auto;
  border-radius: var(--radius);
  overflow: hidden;
}
.sdv-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
}
.sdv-lightbox__wrap {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sdv-lightbox__img {
  display: block;
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}
.sdv-lightbox__close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  transition: background .15s;
}
.sdv-lightbox__close:hover { background: rgba(0,0,0,0.75); }

/* ── Main content (WP editor) ─────────────────────────────── */
.sdv-content {
  padding: 60px 0;
  border-top: 1px solid var(--line);
}
.sdv-content__body {
  width: 100%;
  max-width: none;
  font-size: 15.5px;
  line-height: 1.8;
  text-align: justify;
  text-justify: inter-word;
  color: var(--ink-700);
}
.sdv-content__body h2,
.sdv-content__body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink-900);
  margin-top: 1.6em;
}
.sdv-content__body p { margin-bottom: 1.1em; }
.sdv-content__body ul,
.sdv-content__body ol {
  padding-left: 1.4em;
  margin-bottom: 1em;
}
.sdv-content__body li { margin-bottom: .4em; }
.sdv-content__body ul {
  list-style: none;
  padding-left: 0;
}
.sdv-content__body ul li {
  position: relative;
  padding-left: 1.65em;
}
.sdv-content__body ul li::before {
  content: "";
  position: absolute;
  left: .15em;
  top: .55em;
  width: .55em;
  height: .9em;
  border-right: 2px solid var(--green-700);
  border-bottom: 2px solid var(--green-700);
  transform: rotate(42deg);
  transform-origin: center;
}
.sdv-content__body ul ul {
  margin-top: .45em;
  margin-bottom: .65em;
  padding-left: .35em;
}
.sdv-content__body ul ul li::before {
  width: .45em;
  height: .75em;
  border-color: var(--gold);
}
.sdv-content__body img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 1em 0;
}
.sdv-content__body .wp-block-table,
.sdv-content__body .entry-table-scroll,
.sdv-content__body table {
  width: 100%;
  margin: 1.6em 0;
}
.sdv-content__body .wp-block-table,
.sdv-content__body .entry-table-scroll {
  max-width: 100%;
  overflow: visible;
}
.sdv-content__body table {
  border-collapse: collapse;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sdv-content__body .wp-block-table table,
.sdv-content__body .entry-table-scroll table {
  margin: 0;
}
.sdv-content__body th,
.sdv-content__body td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.sdv-content__body th {
  background: var(--green-800);
  color: #fff;
  font-weight: 700;
}
.sdv-content__body tbody tr:nth-child(even) td {
  background: var(--green-50);
}
@media (max-width: 767px) {
  .sdv-content__body .wp-block-table,
  .sdv-content__body .entry-table-scroll {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }
  .sdv-content__body .wp-block-table table,
  .sdv-content__body .entry-table-scroll table {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  .sdv-content__body table {
    table-layout: fixed;
    width: 100%;
    max-width: 100%;
    font-size: 13px;
  }
  .sdv-content__body th,
  .sdv-content__body td {
    padding: 9px 8px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* ── Includes / Excludes ──────────────────────────────────── */
/* Taxonomy internal links */
.sdv-tax-links {
  padding: 44px 0;
  background: #fff;
  border-top: 1px solid var(--line);
}
.sdv-tax-links__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink-900);
  margin: 0 0 24px;
}
.sdv-tax-links__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 768px) {
  .sdv-tax-links__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.sdv-tax-links__group {
  min-width: 0;
}
.sdv-tax-links__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-500);
  margin: 0 0 10px;
}
.sdv-tax-links__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sdv-tax-links__item {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  max-width: 100%;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-800);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background .15s, border-color .15s, color .15s;
}
.sdv-tax-links__item:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #fff;
}

.sdv-includes-section {
  padding: 60px 0;
  background: var(--green-50);
  border-top: 1px solid var(--line);
}

.sdv-inc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .sdv-inc-grid { grid-template-columns: repeat(2, 1fr); }
}

.sdv-inc-col__title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ink-900);
}
.sdv-inc-col__title--inc svg { color: var(--green-700); }
.sdv-inc-col__title--exc svg { color: #c0392b; }

.sdv-inc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0; margin: 0;
}
.sdv-inc-list__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-700);
}
.sdv-inc-list__icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.sdv-inc-list__icon--green {
  background: var(--green-100);
  color: var(--green-700);
}
.sdv-inc-list__icon--red {
  background: rgba(192, 57, 43, 0.10);
  color: #c0392b;
}

/* ── Notes ────────────────────────────────────────────────── */
.sdv-notes {
  padding: 60px 0;
  border-top: 1px solid var(--line);
}

.sdv-notes__title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-900);
  margin-bottom: 20px;
}
.sdv-notes__title svg { color: var(--gold); }

.sdv-notes__list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: notes;
}
.sdv-notes__item {
  position: relative;
  padding: 14px 16px 14px 52px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-700);
  counter-increment: notes;
}
.sdv-notes__item::before {
  content: counter(notes);
  position: absolute;
  left: 16px;
  top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  min-width: 20px;
}

/* ── Related services ─────────────────────────────────────── */
.sdv-related {
  padding: 60px 0;
  background: var(--cream-100);
  border-top: 1px solid var(--line);
}
.sdv-related .eyebrow { display: block; margin-bottom: 8px; }
.sdv-related__title { margin-bottom: 28px; }

.sdv-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 540px)  { .sdv-related__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .sdv-related__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .sdv-related__grid { grid-template-columns: repeat(4, 1fr); } }

/* ── FAQ ──────────────────────────────────────────────────── */
.sdv-faq {
  padding: 60px 0;
  border-top: 1px solid var(--line);
}
.sdv-faq .eyebrow { display: block; margin-bottom: 8px; }
.sdv-faq__title { margin-bottom: 28px; }

/* ── CTA cuối trang ───────────────────────────────────────── */
.sdv-cta {
  padding: 56px 0;
  background: var(--green-900);
  border-top: 1px solid rgba(255,255,255,.06);
}

.sdv-cta__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .sdv-cta__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }
}

.sdv-cta__text { flex: 1; }
.sdv-cta__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 30px);
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.sdv-cta__desc {
  font-size: 14.5px;
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  margin: 0;
}

.sdv-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}
.sdv-cta__call {
  color: var(--green-800);
}

/* ── Responsive safety ────────────────────────────────────── */
@media (max-width: 420px) {
  .sdv-hero__ctas { flex-direction: column; }
  .sdv-hero__ctas .btn { width: 100%; justify-content: center; }
  .sdv-cta__actions { flex-direction: column; }
  .sdv-cta__actions .btn { width: 100%; justify-content: center; }
}
