/*
  Trang chi tiết DỊCH VỤ dạng landing (Fields Views/FieldsItem/_ServiceDetail.cshtml) - theo mẫu thiết kế khách hàng:
  xanh navy đậm + cam, tiêu đề Oswald in hoa, nội dung Be Vietnam Pro. Tiền tố .sd-. 1rem = 10px.
*/
:root {
  --sd-navy: #0B2D66;
  --sd-navy-2: #12397F;
  --sd-orange: #F26522;
  --sd-orange-2: #D9501A;
  --sd-ink: #1b2433;
  --sd-muted: #5f6b7a;
  --sd-line: #e3e8f0;
  --sd-bg: #f3f6fb;
  --sd-head: var(--font-headings-family, "Oswald", sans-serif);
}
.sd-accent { color: var(--sd-orange); }
.sd-hero .menu-icon, .sd-highlights .menu-icon, .sd-why .menu-icon, .sd-btn .menu-icon { display: block; width: 100%; height: 100%; }

/* ===== Nút ===== */
.sd-btn {
  display: inline-flex; align-items: center; gap: 1rem; min-height: 5.2rem; padding: 1rem 2.2rem;
  border-radius: 1rem; border: 2px solid transparent; font-weight: 700; font-size: 1.5rem; text-transform: uppercase;
  letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
}
.sd-btn:active { transform: scale(.97); }
.sd-btn--primary { background: linear-gradient(180deg, var(--sd-orange) 0%, var(--sd-orange-2) 100%); color: #fff; box-shadow: 0 1rem 2.4rem rgba(242, 101, 34, .35); }
.sd-btn--primary:hover { box-shadow: 0 1.2rem 3rem rgba(242, 101, 34, .5); color: #fff; }
.sd-btn--outline { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(10, 31, 68, .35); text-transform: none; }
.sd-btn--outline:hover { border-color: #fff; background: rgba(255, 255, 255, .12); color: #fff; }
.sd-btn__icon { width: 2.2rem; height: 2.2rem; flex: 0 0 2.2rem; }
.sd-btn__arrow { width: 1.8rem; height: 1.8rem; flex: 0 0 1.8rem; }
.sd-btn__stack { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.sd-btn__stack b { text-transform: uppercase; font-size: 1.5rem; }
.sd-btn__stack small { font-size: 1.2rem; font-weight: 400; opacity: .85; }

/* ===== 1. Banner ===== */
.sd-hero { background: var(--sd-navy); color: #fff; }
.sd-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); min-height: 56rem; }
.sd-hero__main {
  position: relative; display: flex; align-items: center;
  background: linear-gradient(90deg, rgba(10, 31, 68, .97) 0%, rgba(10, 31, 68, .88) 38%, rgba(10, 31, 68, .25) 75%, rgba(10, 31, 68, .1) 100%),
              var(--sd-hero-image, none) center / cover no-repeat, var(--sd-navy);
}
.sd-hero__content { width: 100%; max-width: 70rem; padding: 6rem 4rem 9rem max(1.6rem, calc((100vw - 120rem) / 2 + 1.6rem)); }
.sd-hero__title {
  margin: 0; font-family: var(--sd-head); font-weight: 700; text-transform: uppercase; line-height: 1.02; letter-spacing: .01em;
  font-size: clamp(3.6rem, 5.4vw, 6.8rem); color: #fff; text-shadow: 0 .4rem 2rem rgba(0, 0, 0, .35);
}
.sd-hero__title .sd-accent { display: inline-block; }
.sd-hero__tagline { margin: 1.8rem 0 0; max-width: 54rem; font-size: clamp(1.5rem, 1.5vw, 1.9rem); font-weight: 700; text-transform: uppercase; line-height: 1.45; }
.sd-hero__points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; margin: 2.8rem 0 0; padding: 0; list-style: none; max-width: 62rem; }
.sd-hero__points li { display: flex; align-items: flex-start; gap: 1rem; }
.sd-hero__point-icon { flex: 0 0 3.6rem; width: 3.6rem; height: 3.6rem; padding: .7rem; border-radius: 50%; border: 1.5px solid var(--sd-orange); color: var(--sd-orange); }
.sd-hero__points b { display: block; font-size: 1.3rem; line-height: 1.35; }
.sd-hero__points small { display: block; font-size: 1.2rem; opacity: .75; line-height: 1.35; }
.sd-hero__actions { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 3.2rem; }
.sd-hero__side { display: grid; grid-template-rows: 1fr 1fr; gap: .4rem; background: var(--sd-navy); }
.sd-hero__shot { position: relative; margin: 0; overflow: hidden; min-height: 0; }
.sd-hero__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-hero__shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.6rem;
  background: linear-gradient(0deg, rgba(10, 31, 68, .92) 0%, rgba(10, 31, 68, 0) 100%);
  font-family: var(--sd-head); text-transform: uppercase; font-weight: 600; font-size: 1.5rem; line-height: 1.3; letter-spacing: .02em;
}
.sd-hero__shot figcaption span { color: var(--sd-orange); }

/* ===== 2. Điểm nổi bật (thẻ nổi lên mép banner) ===== */
.sd-highlights { position: relative; z-index: 2; margin-top: -5.6rem; }
.sd-highlights__list { display: grid; grid-template-columns: repeat(var(--sd-cols, 5), minmax(0, 1fr)); gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
.sd-highlight {
  display: flex; flex-direction: column; align-items: center; gap: .8rem; padding: 2.2rem 1.4rem; text-align: center;
  background: #fff; border-radius: 1.2rem; border: 1px solid var(--sd-line); box-shadow: 0 1.2rem 3rem rgba(10, 31, 68, .1);
}
.sd-highlight__icon { width: 4.4rem; height: 4.4rem; color: var(--sd-navy); }
.sd-highlight__title { font-family: var(--sd-head); text-transform: uppercase; font-size: 1.6rem; line-height: 1.25; color: var(--sd-navy); font-weight: 600; }
.sd-highlight small { font-size: 1.25rem; color: var(--sd-muted); line-height: 1.4; }

/* ===== Khung chung ===== */
.sd-section { padding: 6.4rem 0; }
.sd-eyebrow { margin: 0; font-family: var(--sd-head); font-size: clamp(2.4rem, 2.6vw, 3.2rem); font-weight: 700; text-transform: uppercase; color: var(--sd-navy); line-height: 1.1; }
.sd-title {
  margin: 0; font-family: var(--sd-head); font-weight: 700; text-transform: uppercase; color: var(--sd-navy);
  font-size: clamp(2.4rem, 2.8vw, 3.6rem); line-height: 1.15; letter-spacing: .01em;
}
.sd-title--accent { color: var(--sd-orange); }
.sd-title--light { color: #fff; }
.sd-title--sm { font-size: clamp(2rem, 2.2vw, 2.8rem); }
.sd-lead { margin: 1rem 0 0; font-size: 1.5rem; color: var(--sd-muted); line-height: 1.6; max-width: 90rem; }
.sd-lead--light { color: rgba(255, 255, 255, .78); }
.sd-text { margin-top: 1.6rem; font-size: 1.5rem; line-height: 1.7; color: var(--sd-ink); }
.sd-text p { margin: 0 0 1rem; }

/* ===== 3. Giới thiệu ===== */
.sd-intro__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
.sd-checklist { margin: 1.6rem 0 2.8rem; padding: 0; list-style: none; display: grid; gap: 1rem; }
.sd-checklist li { position: relative; padding-left: 3rem; font-size: 1.5rem; line-height: 1.5; }
.sd-checklist li::before {
  content: "✓"; position: absolute; left: 0; top: .1rem; width: 2rem; height: 2rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--sd-orange); color: #fff; font-size: 1.2rem; font-weight: 700;
}
.sd-intro__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.sd-card { display: flex; flex-direction: column; background: #fff; border-radius: 1.2rem; border: 1px solid var(--sd-line); overflow: hidden; box-shadow: 0 .6rem 1.6rem rgba(10, 31, 68, .06); transition: transform .25s, box-shadow .25s; }
.sd-card:hover { transform: translateY(-3px); box-shadow: 0 1.4rem 3rem rgba(10, 31, 68, .12); }
.sd-card__image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.sd-card__body { padding: 1.2rem 1.4rem 1.6rem; text-align: center; }
.sd-card__title { margin: 0; font-family: var(--sd-head); text-transform: uppercase; font-weight: 600; font-size: 1.5rem; line-height: 1.3; color: var(--sd-navy); }
.sd-card__body p { margin: .6rem 0 0; font-size: 1.25rem; color: var(--sd-muted); line-height: 1.45; }

/* ===== 4. Dấu hiệu (nền xanh đậm) ===== */
.sd-signs { background: linear-gradient(135deg, var(--sd-navy) 0%, var(--sd-navy-2) 100%); }
.sd-signs__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.4rem; margin-top: 2.8rem; }
.sd-sign { background: #fff; border-radius: 1rem; overflow: hidden; display: flex; flex-direction: column; }
.sd-sign img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.sd-sign__body { padding: 1.2rem 1.2rem 1.4rem; text-align: center; }
.sd-sign__body h3 { margin: 0; font-size: 1.4rem; font-weight: 700; color: var(--sd-navy); line-height: 1.3; }
.sd-sign__body p { margin: .5rem 0 0; font-size: 1.2rem; color: var(--sd-muted); line-height: 1.4; }

/* ===== 5. Quy trình ===== */
.sd-process { background: var(--sd-bg); }
.sd-steps { display: grid; grid-template-columns: repeat(var(--sd-steps, 5), minmax(0, 1fr)); gap: 3.2rem; margin: 3.2rem 0 0; padding: 0; list-style: none; counter-reset: none; }
.sd-step { position: relative; text-align: center; }
.sd-step:not(:last-child)::after {
  content: "›"; position: absolute; top: 6.4rem; right: -2.4rem; width: 1.6rem; text-align: center;
  font-size: 3.6rem; line-height: 1; color: var(--sd-orange); font-weight: 700;
}
.sd-step__media { position: relative; border-radius: 1.2rem; overflow: hidden; background: #dfe5ef; box-shadow: 0 .8rem 2rem rgba(10, 31, 68, .1); }
.sd-step__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.sd-step__num {
  position: absolute; top: 0; left: 0; min-width: 5rem; padding: .6rem 1.2rem; border-radius: 1.2rem 0 1.2rem 0;
  background: var(--sd-orange); color: #fff; font-family: var(--sd-head); font-weight: 700; font-size: 2.2rem; line-height: 1.1;
}
.sd-step__title { margin: 1.4rem 0 0; font-family: var(--sd-head); text-transform: uppercase; font-weight: 600; font-size: 1.6rem; color: var(--sd-navy); line-height: 1.25; }
.sd-step p { margin: .6rem 0 0; font-size: 1.3rem; color: var(--sd-muted); line-height: 1.45; }

/* ===== 6. Hình ảnh thực tế ===== */
.sd-gallery__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 18rem; gap: 1.2rem; margin-top: 2.8rem; }
.sd-gallery__item { position: relative; display: block; border-radius: 1rem; overflow: hidden; background: #dfe5ef; }
.sd-gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.sd-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.sd-gallery__item:hover img { transform: scale(1.05); }

/* ===== 7. Vì sao chọn ===== */
.sd-why { background: var(--sd-bg); }
.sd-why__list { display: grid; grid-template-columns: repeat(var(--sd-cols, 5), minmax(0, 1fr)); gap: 1.6rem; margin: 2.8rem 0 0; padding: 0; list-style: none; }
.sd-why__item { display: flex; align-items: flex-start; gap: 1.2rem; padding: 2rem 1.6rem; background: #fff; border-radius: 1.2rem; border: 1px solid var(--sd-line); }
.sd-why__icon { flex: 0 0 4.4rem; width: 4.4rem; height: 4.4rem; color: var(--sd-navy); }
.sd-why__value { display: block; font-family: var(--sd-head); font-size: 3rem; line-height: 1; color: var(--sd-navy); font-weight: 700; }
.sd-why__label { display: block; margin-top: .4rem; font-family: var(--sd-head); text-transform: uppercase; font-weight: 600; font-size: 1.4rem; color: var(--sd-navy); line-height: 1.25; }
.sd-why__item small { display: block; margin-top: .4rem; font-size: 1.2rem; color: var(--sd-muted); line-height: 1.4; }

/* ===== 8. Các dòng xe ===== */
.sd-brands { padding-top: 4.8rem; padding-bottom: 4.8rem; }
.sd-brands__list { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.2rem; margin: 2.4rem 0 0; padding: 0; list-style: none; }
.sd-brand { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1.2rem .4rem; border-radius: 1rem; transition: background .2s; }
.sd-brand:hover { background: var(--sd-bg); }
.sd-brand img { width: 5.2rem; height: 5.2rem; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.sd-brand:hover img { filter: none; opacity: 1; }
.sd-brand__mark {
  width: 5.2rem; height: 5.2rem; border-radius: 50%; border: 2px solid #c7cfdb; color: #6b7686;
  display: flex; align-items: center; justify-content: center; font-family: var(--sd-head); font-weight: 700; font-size: 2.2rem;
}
.sd-brand__name { font-size: 1.2rem; color: var(--sd-muted); text-align: center; line-height: 1.2; }

/* ===== 9. Khách hàng nói gì ===== */
.sd-testimonials { background: var(--sd-bg); padding-bottom: 4.8rem; }
.sd-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; margin-top: 2.4rem; }
.sd-quote { display: flex; gap: 1.4rem; margin: 0; padding: 1.6rem; background: #fff; border-radius: 1.2rem; border: 1px solid var(--sd-line); }
.sd-quote img { flex: 0 0 12rem; width: 12rem; height: 12rem; object-fit: cover; border-radius: 1rem; }
.sd-quote__body { display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.sd-quote blockquote { margin: 0; font-size: 1.35rem; line-height: 1.55; color: var(--sd-ink); }
.sd-quote__stars { position: relative; display: inline-block; font-size: 1.5rem; letter-spacing: .2rem; color: #dfe3ea; line-height: 1; }
.sd-quote__stars::before { content: "★★★★★"; }
.sd-quote__stars::after { content: "★★★★★"; position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: #F26522; width: calc(var(--rating, 5) / 5 * 100%); }
.sd-quote figcaption b { display: block; font-size: 1.4rem; color: var(--sd-navy); }
.sd-quote figcaption small { display: block; font-size: 1.2rem; color: var(--sd-muted); }
/* Slide đánh giá (Customers Evaluate/Slider.cshtml) - độ rộng slide ở ega-store.css (4 / 2 thẻ) */
.sd-quotes-slider { margin-top: 2.4rem; }
.sd-quote blockquote { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.sd-quotes-slider .sd-quote { flex-direction: column; }
.sd-quotes-slider .sd-quote img { width: 100%; height: 16rem; flex-basis: auto; }

/* ===== Responsive ===== */
@media (max-width: 1199px) {
  .sd-signs__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sd-brands__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sd-why__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .sd-hero__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .sd-hero__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; height: 22rem; }
  .sd-hero__content { padding: 5.6rem 1.6rem 8.8rem; }
  .sd-highlights__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sd-intro__grid { grid-template-columns: minmax(0, 1fr); gap: 3.2rem; }
  .sd-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
  .sd-step::after { display: none; }
}
@media (max-width: 767px) {
  .sd-section { padding: 4.4rem 0; }
  .sd-hero__points { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .sd-hero__actions .sd-btn, .sd-hero__actions portal-opener { width: 100%; }
  .sd-hero__actions .sd-btn { justify-content: center; }
  .sd-hero__side { height: 16rem; }
  .sd-highlights { margin-top: -4rem; }
  .sd-highlights__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .sd-highlight:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .sd-highlight { padding: 1.6rem 1rem; }
  .sd-intro__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .sd-signs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .sd-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
  .sd-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 14rem; }
  .sd-why__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .sd-why__item { flex-direction: column; padding: 1.4rem; }
  .sd-brands__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sd-quote { flex-direction: column; }
  .sd-quote img { width: 100%; height: 18rem; flex-basis: auto; }
}
