/*
 * FixMove core service clarity layer
 * Scope: the eight canonical service hubs carrying .fm-core-eight only.
 * Loaded last so the shared content can keep its SEO depth while the first
 * decision path stays concise and usable on both desktop and mobile.
 */

body.fm-core-eight {
  --fm-clarity-ink: #102a43;
  --fm-clarity-copy: #486581;
  --fm-clarity-blue: #0b63ce;
  --fm-clarity-blue-dark: #074c9e;
  --fm-clarity-pale: #eef6ff;
  --fm-clarity-line: #d7e6f5;
  --fm-clarity-green: #087f5b;
  --fm-clarity-warm: #fff8e7;
  overflow-x: clip;
}

body.fm-core-eight .fm-service-guide,
body.fm-core-eight .fm-service-guide * {
  box-sizing: border-box;
}

body.fm-core-eight .fm-service-guide {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 38px;
  padding: clamp(22px, 3vw, 34px);
  color: var(--fm-clarity-ink);
  background:
    radial-gradient(circle at 100% 0, rgba(14, 165, 233, .11), transparent 34%),
    #fff;
  border: 1px solid var(--fm-clarity-line);
  border-radius: 24px;
  box-shadow: 0 22px 54px rgba(15, 47, 78, .12);
}

body.fm-core-eight .content > .container > .fm-service-guide {
  width: 100%;
}

body.fm-core-eight .fm-guide-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 9px;
  padding: 5px 11px;
  color: var(--fm-clarity-blue-dark);
  background: var(--fm-clarity-pale);
  border: 1px solid #c4dcf6;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.fm-core-eight .fm-service-guide h2 {
  max-width: 780px;
  margin: 0;
  color: var(--fm-clarity-ink) !important;
  font-size: clamp(27px, 3.2vw, 40px) !important;
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.08 !important;
  text-wrap: balance;
}

body.fm-core-eight .fm-guide-lead {
  max-width: 76ch;
  margin: 13px 0 0;
  color: var(--fm-clarity-copy) !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
}

body.fm-core-eight .fm-guide-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}

body.fm-core-eight .fm-guide-jumps a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 14px;
  color: #174b78 !important;
  background: #f8fbff;
  border: 1px solid #bfd7ed;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
}

body.fm-core-eight .fm-guide-jumps a::after {
  content: "\2193";
  margin-left: 6px;
  font-size: 13px;
}

body.fm-core-eight .fm-guide-jumps a:hover {
  color: #fff !important;
  background: var(--fm-clarity-blue);
  border-color: var(--fm-clarity-blue);
}

body.fm-core-eight .fm-guide-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
}

body.fm-core-eight .fm-guide-facts > div {
  min-width: 0;
  padding: 16px;
  background: #f8fbff;
  border: 1px solid var(--fm-clarity-line);
  border-radius: 15px;
}

body.fm-core-eight .fm-guide-facts dt {
  margin: 0 0 6px;
  color: #58738e;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .055em;
  line-height: 1.25;
  text-transform: uppercase;
}

body.fm-core-eight .fm-guide-facts dd {
  margin: 0;
  color: var(--fm-clarity-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

body.fm-core-eight .fm-guide-block {
  margin: 27px 0 0;
}

body.fm-core-eight .fm-guide-block > h3 {
  margin: 0 0 13px;
  color: var(--fm-clarity-ink) !important;
  font-size: 21px !important;
  font-weight: 900;
  line-height: 1.22 !important;
}

body.fm-core-eight .fm-guide-options,
body.fm-core-eight .fm-guide-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.fm-core-eight .fm-guide-options > li {
  min-width: 0;
  padding: 17px;
  background: #fff;
  border: 1px solid var(--fm-clarity-line);
  border-top: 4px solid #4b9fe8;
  border-radius: 15px;
}

body.fm-core-eight .fm-guide-option-label {
  display: block;
  margin: 0 0 7px;
  color: var(--fm-clarity-blue-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.fm-core-eight .fm-guide-options strong {
  display: block;
  margin: 0 0 6px;
  color: var(--fm-clarity-ink) !important;
  font-size: 16px;
  line-height: 1.35;
}

body.fm-core-eight .fm-guide-options small {
  display: block;
  color: var(--fm-clarity-copy) !important;
  font-size: 14px;
  line-height: 1.55;
}

body.fm-core-eight .fm-guide-flow {
  margin-top: 28px;
  padding-top: 25px;
  border-top: 1px solid var(--fm-clarity-line);
}

body.fm-core-eight .fm-guide-steps > li {
  position: relative;
  min-width: 0;
  padding: 17px 17px 17px 60px;
  background: var(--fm-clarity-pale);
  border-radius: 15px;
}

body.fm-core-eight .fm-guide-step-no {
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff;
  background: var(--fm-clarity-blue);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
}

body.fm-core-eight .fm-guide-steps strong {
  display: block;
  color: var(--fm-clarity-ink) !important;
  font-size: 15px;
  line-height: 1.35;
}

body.fm-core-eight .fm-guide-steps span:not(.fm-guide-step-no) {
  display: block;
  margin-top: 5px;
  color: var(--fm-clarity-copy) !important;
  font-size: 14px;
  line-height: 1.5;
}

body.fm-core-eight .fm-guide-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 17px;
  background: var(--fm-clarity-warm);
  border: 1px solid #f1d99f;
  border-radius: 16px;
}

body.fm-core-eight .fm-guide-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 18px;
  color: #fff !important;
  background: var(--fm-clarity-blue);
  border: 1px solid var(--fm-clarity-blue);
  border-radius: 11px;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none !important;
}

body.fm-core-eight .fm-guide-actions a:first-child {
  background: var(--fm-clarity-green);
  border-color: var(--fm-clarity-green);
}

body.fm-core-eight .fm-guide-actions p {
  flex: 1 1 260px;
  margin: 0 0 0 4px;
  color: #6b5520 !important;
  font-size: 13px !important;
  font-weight: 700;
  line-height: 1.5 !important;
}

/* Keep older long-form answer copy available without placing an essay wall
   ahead of the task-led guide. Native details work with keyboard and touch. */
body.fm-core-eight .fm-legacy-disclosure {
  overflow: hidden;
}

body.fm-core-eight .fm-legacy-disclosure > summary {
  min-height: 44px;
  padding: 10px 4px;
  cursor: pointer;
  color: var(--fm-clarity-ink);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.45;
}

body.fm-core-eight .fm-legacy-disclosure > summary::marker {
  color: var(--fm-clarity-blue);
}

body.fm-core-eight .fm-legacy-disclosure[open] > summary {
  margin-bottom: 10px;
  border-bottom: 1px solid var(--fm-clarity-line);
}

body.fm-core-eight :is(#services, #scopes, #pricing, #process, #faq, #quote) {
  scroll-margin-top: 96px;
}

/* Keep long-form sections readable without letting lead copy become an essay wall. */
body.fm-core-eight main :is(.section-lead, .section-intro, .hd > p, .sub) {
  max-width: 76ch;
  font-size: 16px !important;
  line-height: 1.68 !important;
}

body.fm-core-eight main :is(.card, .feature-card, .service-column, .service-panel, .step) p {
  line-height: 1.62 !important;
}

body.fm-core-eight main :is(.grid, .features-grid, .service-columns, .service-rows, .proc) {
  gap: clamp(14px, 2vw, 22px) !important;
}

body.fm-core-eight #faq :is(details, .faq-item) {
  scroll-margin-top: 100px;
}

body.fm-core-eight #faq summary {
  min-height: 48px;
}

/* One semantic scroll owner per data table. This also restores the two price
   tables whose old card-mode CSS removed their visible column headings. */
body.fm-core-eight .fm-table-scroll {
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: visible !important;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

body.fm-core-eight .fm-table-scroll > table,
body.fm-core-eight .fm-depth-expand table {
  display: table !important;
  max-width: none !important;
  overflow: visible !important;
}

body.fm-core-eight.handyman-page .fm-table-scroll > .price-tbl,
body.fm-core-eight.installation-page .fm-table-scroll > .price-tbl {
  width: 100% !important;
  min-width: 660px !important;
  table-layout: auto !important;
  border-collapse: separate !important;
  overflow: visible !important;
}

body.fm-core-eight.handyman-page .price-tbl thead,
body.fm-core-eight.installation-page .price-tbl thead {
  display: table-header-group !important;
}

body.fm-core-eight.handyman-page .price-tbl tbody,
body.fm-core-eight.installation-page .price-tbl tbody {
  display: table-row-group !important;
}

body.fm-core-eight.handyman-page .price-tbl tr,
body.fm-core-eight.installation-page .price-tbl tr {
  display: table-row !important;
  width: auto !important;
  padding: 0 !important;
  border: 0 !important;
}

body.fm-core-eight.handyman-page .price-tbl :is(th, td),
body.fm-core-eight.installation-page .price-tbl :is(th, td) {
  display: table-cell !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  white-space: normal !important;
}

body.fm-core-eight.aircon-page .aircon-price-table-wrap,
body.fm-core-eight .aircon-price-table-wrap {
  overflow: visible !important;
}

body.fm-core-eight .fm-depth-expand {
  overflow-x: clip !important;
  overflow-y: visible !important;
}

body.fm-core-eight .fm-region-mesh .fm-rm-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 0;
}

@media (max-width: 900px) {
  body.fm-core-eight .fm-guide-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.fm-core-eight :is(.fm-about-brand, #quick-answer)[data-mobile-hide-ok] {
    display: none !important;
  }

  body.fm-core-eight.core-service-hub-en--renovation > header.hero {
    padding-block: 22px 26px !important;
  }

  body.fm-core-eight.core-service-hub-en--renovation > header.hero h1 {
    margin-bottom: 12px !important;
    font-size: clamp(30px, 9vw, 36px) !important;
    line-height: 1.08 !important;
  }

  body.fm-core-eight.core-service-hub-en--renovation > header.hero .lead {
    margin-block: 10px 14px !important;
    font-size: 15.5px !important;
    line-height: 1.58 !important;
  }

  body.fm-core-eight.core-service-hub-en--renovation > header.hero :is(.trust-row, .hero-metrics, .jump-row) {
    display: none !important;
  }

  body.fm-core-eight {
    background-attachment: scroll !important;
  }

  body.fm-core-eight .fm-legacy-disclosure {
    margin: 8px 0 10px !important;
    padding: 4px 10px !important;
    border-radius: 10px !important;
    box-shadow: none !important;
  }

  body.fm-core-eight .page-header {
    padding-block: 26px 24px !important;
  }

  body.fm-core-eight main > .hero {
    padding-block: 18px 16px !important;
  }

  body.fm-core-eight :is(.page-header, main > .hero) h1 {
    margin-bottom: 12px !important;
    font-size: clamp(29px, 9vw, 39px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.035em !important;
    text-wrap: balance;
  }

  body.fm-core-eight :is(.page-header .subtitle, main > .hero .hero-box > p) {
    font-size: 15.5px !important;
    line-height: 1.6 !important;
  }

  body.fm-core-eight :is(.page-header .hero-note, main > .hero .hero-note) {
    display: block !important;
    margin-block: 8px 0 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  body.fm-core-eight :is(.page-header .trust, main > .hero .trust, main > .hero .chips) {
    display: flex !important;
    flex-wrap: wrap !important;
    max-width: 100% !important;
    overflow: visible !important;
    gap: 7px !important;
  }

  body.fm-core-eight :is(.page-header .trust span, main > .hero .trust span, main > .hero .chips span) {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    padding: 7px 10px !important;
    font-size: 12.5px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
  }

  body.fm-core-eight :is(.page-header .btn-group, main > .hero .cta) {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  body.fm-core-eight :is(.page-header .btn-group, main > .hero .cta) a {
    width: 100% !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 12px 15px !important;
    font-size: 15px !important;
  }

  body.fm-core-eight main > .hero .kpi .k span {
    font-size: 12.5px !important;
    line-height: 1.35 !important;
  }

  body.fm-core-eight .fm-service-guide {
    width: calc(100% - 24px);
    margin: 16px auto 28px;
    padding: 20px 16px;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 47, 78, .1);
  }

  body.fm-core-eight .content > .container > .fm-service-guide {
    width: 100%;
  }

  body.fm-core-eight .fm-service-guide h2 {
    font-size: clamp(25px, 7.5vw, 32px) !important;
    line-height: 1.12 !important;
  }

  body.fm-core-eight .fm-guide-lead {
    margin-top: 10px;
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

  body.fm-core-eight .fm-guide-jumps {
    margin-top: 16px;
  }

  body.fm-core-eight .fm-guide-jumps a {
    flex: 1 1 calc(50% - 8px);
    min-width: 118px;
  }

  body.fm-core-eight .fm-guide-facts {
    gap: 9px;
    margin-top: 18px;
  }

  body.fm-core-eight .fm-guide-facts > div {
    padding: 13px;
    border-radius: 13px;
  }

  body.fm-core-eight .fm-guide-facts dd {
    font-size: 14px;
  }

  body.fm-core-eight .fm-guide-block {
    margin-top: 23px;
  }

  body.fm-core-eight .fm-guide-options,
  body.fm-core-eight .fm-guide-steps {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  body.fm-core-eight .fm-guide-options > li {
    padding: 14px 15px;
  }

  body.fm-core-eight .fm-guide-steps > li {
    padding: 14px 14px 14px 55px;
  }

  body.fm-core-eight .fm-guide-step-no {
    top: 13px;
    left: 13px;
  }

  body.fm-core-eight .fm-guide-actions {
    display: grid;
    grid-template-columns: 1fr;
    padding: 14px;
  }

  body.fm-core-eight .fm-guide-actions a {
    width: 100%;
  }

  body.fm-core-eight .fm-guide-actions p {
    margin: 2px 0 0;
    text-align: center;
  }

  body.fm-core-eight main :is(.section-lead, .section-intro, .hd > p, .sub) {
    font-size: 15.5px !important;
    line-height: 1.65 !important;
  }

  body.fm-core-eight main :is(.content > .container > section, .section, .sec) h2 {
    font-size: clamp(23px, 6.8vw, 30px) !important;
    line-height: 1.16 !important;
    letter-spacing: -.02em;
    text-wrap: balance;
  }

  body.fm-core-eight .fm-table-scroll {
    scrollbar-gutter: stable;
  }
}

@media (max-width: 359px) {
  body.fm-core-eight .fm-guide-facts {
    grid-template-columns: 1fr;
  }

  body.fm-core-eight .fm-guide-jumps a {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.fm-core-eight .fm-service-guide *,
  body.fm-core-eight .fm-service-guide *::before,
  body.fm-core-eight .fm-service-guide *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
