/* Data Insight homepage theme layer.
   The VI colors stay fixed; the theme changes only the surrounding UI palette.
   Orange is reserved for data visualization accents. */
:root {
  --vi-navy: #142599;
  --vi-cyan: #46D8D5;
  --vi-chart-orange: #FFAE33;
}

body,
html[data-home-theme="c"] body {
  --home-bg: #F0FBFB;
  --home-surface: #FFFFFF;
  --home-surface-alt: #E4F8F7;
  --home-primary: #142599;
  --home-accent: #46D8D5;
  --home-accent-strong: #1A9D9C;
  --home-ink: #19344A;
  --home-muted: #60758A;
  --home-line: #CDECEA;
  --home-footer: #142599;
  --home-footer-deep: #0E1A68;
  --home-shadow: rgba(20, 37, 153, .14);
  background-color: var(--home-bg);
  color: var(--home-ink);
}

html[data-home-theme="ad"] body,
body[data-home-theme="ad"] {
  --home-bg: #F7F9FF;
  --home-surface: #FFFFFF;
  --home-surface-alt: #EEF3FF;
  --home-primary: #142599;
  --home-accent: #46D8D5;
  --home-accent-strong: #142599;
  --home-ink: #142348;
  --home-muted: #62738E;
  --home-line: #DCE4F6;
  --home-footer: #142599;
  --home-footer-deep: #0F1B69;
  --home-shadow: rgba(20, 37, 153, .18);
  background-color: var(--home-bg);
  color: var(--home-ink);
}

/* Header and theme selector */
body[data-home-theme] .page-header .navbar-toggle .icon-bar {
  background: var(--home-primary);
}
body[data-home-theme] .page-on-scroll .page-header,
html[data-home-theme] .page-on-scroll .page-header {
  background: var(--home-surface);
  box-shadow: 0 8px 24px var(--home-shadow);
}
body[data-home-theme] .page-on-scroll .page-header .navbar-nav li > a {
  color: var(--home-primary);
}
body[data-home-theme] .page-on-scroll .page-header .navbar-nav li.active > a,
body[data-home-theme] .page-on-scroll .page-header .navbar-nav li > a:hover {
  border-color: var(--home-line);
  color: var(--home-primary);
}
body[data-home-theme] .page-header .navbar-nav li.active > a,
body[data-home-theme] .page-header .navbar-nav li > a:hover {
  border-color: rgba(70, 216, 213, .55);
}

.home-theme-control {
  padding: 20px 8px !important;
}
.home-theme-picker {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  background: rgba(20, 37, 153, .18);
  white-space: nowrap;
}
.page-on-scroll .home-theme-picker,
.page-header .navbar-responsive-collapse.in .home-theme-picker {
  border-color: var(--home-line);
  background: var(--home-surface-alt);
}
.home-theme-picker button {
  min-height: 24px;
  padding: 3px 8px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: transparent;
  font-size: 11px;
  line-height: 1.2;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.page-on-scroll .home-theme-picker button,
.page-header .navbar-responsive-collapse.in .home-theme-picker button {
  color: var(--home-primary);
}
.home-theme-picker button[aria-pressed="true"] {
  color: var(--home-primary);
  background: var(--home-accent);
  box-shadow: 0 4px 12px rgba(70, 216, 213, .28);
}
.home-theme-picker button:focus-visible {
  outline: 2px solid var(--home-accent);
  outline-offset: 2px;
}

/* Shared surfaces */
body[data-home-theme] #about,
body[data-home-theme] #portfolio,
body[data-home-theme] .clients .clients-quotes {
  background: var(--home-surface);
}
body[data-home-theme] .service-bg,
body[data-home-theme] .features-bg,
body[data-home-theme] .portfolio {
  background: var(--home-surface-alt);
}
body[data-home-theme] .features-bg {
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}
body[data-home-theme] .service-bg .services h2,
body[data-home-theme] .features-bg .heading h2,
body[data-home-theme] .portfolio .heading h2,
body[data-home-theme] .heading-left h2,
body[data-home-theme] .heading-blue h2 {
  color: var(--home-primary);
}
body[data-home-theme] .service-bg .services p,
body[data-home-theme] .features-bg .features .features-in p,
body[data-home-theme] .heading p,
body[data-home-theme] .heading-blue p,
body[data-home-theme] .heading-left p {
  color: var(--home-muted);
}
body[data-home-theme] .service-bg .services p,
body[data-home-theme] .features-bg .features .features-in p {
  line-height: 1.7;
}
body[data-home-theme] .heading:after,
body[data-home-theme] .heading-light:after,
body[data-home-theme] .heading-blue:after {
  background: var(--home-accent);
}
body[data-home-theme] .features-bg .features .features-in h3 a,
body[data-home-theme] .features-bg .features .features-in h3 a:hover {
  color: var(--home-primary);
}

/* Buttons: blue and cyan only; chart orange stays out of UI controls. */
body[data-home-theme] .btn-brd-primary,
body[data-home-theme] .btn-brd-danger {
  color: var(--home-primary);
  border-color: var(--home-primary) !important;
}
body[data-home-theme] .btn-brd-primary:hover,
body[data-home-theme] .btn-brd-primary:focus,
body[data-home-theme] .btn-brd-danger:hover,
body[data-home-theme] .btn-brd-danger:focus {
  color: #fff;
  background: var(--home-primary);
  border-color: var(--home-primary) !important;
}
body[data-home-theme] .btn-danger {
  color: var(--home-primary);
  background: var(--home-accent);
  border-color: var(--home-accent) !important;
}
body[data-home-theme] .btn-danger:hover,
body[data-home-theme] .btn-danger:focus {
  color: var(--home-primary);
  background: #7BE3DF;
  border-color: #7BE3DF !important;
}

/* Client proof and portfolio controls */
body[data-home-theme] .clients .clients-bg {
  background: var(--home-primary);
}
body[data-home-theme] .clients .clients-quotes {
  border-bottom: 1px solid var(--home-line);
}
body[data-home-theme] .cube-portfolio .cbp-l-filters-alignCenter .cbp-filter-item {
  color: var(--home-primary);
  border-color: var(--home-line);
}
body[data-home-theme] .cube-portfolio .cbp-l-filters-alignCenter .cbp-filter-item:hover,
body[data-home-theme] .cube-portfolio .cbp-l-filters-alignCenter .cbp-filter-item-active {
  color: #fff;
  background: var(--home-primary);
  border-color: var(--home-primary);
}
body[data-home-theme] .cube-portfolio .portfolio-icons i:hover {
  background: var(--home-accent);
  color: var(--home-primary);
}

/* Footer */
body[data-home-theme] .footer {
  background: var(--home-footer);
}
body[data-home-theme] .footer-copyright {
  background: var(--home-footer-deep);
}
body[data-home-theme] .footer-copyright .copyright-socials li i {
  color: #F7FEFF;
  background: rgba(255, 255, 255, .11);
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 6px 16px rgba(5, 12, 64, .16);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
body[data-home-theme] .footer-copyright .copyright-socials li i:hover {
  background: var(--home-accent);
  border-color: var(--home-accent);
  color: var(--home-primary);
  transform: translateY(-2px);
}

/* Keep the existing hero imagery, add a subtle VI-tinted veil. */
body[data-home-theme] #intro .page-slider {
  background: var(--home-primary);
}
body[data-home-theme] #intro .page-slider .caption h3,
body[data-home-theme] #intro .page-slider .caption p {
  text-shadow: 0 2px 16px rgba(14, 26, 104, .32);
}

@media (max-width: 991px) {
  .home-theme-control {
    padding: 8px 15px !important;
  }
  .home-theme-picker {
    border-color: var(--home-line);
    background: var(--home-surface-alt);
  }
  .home-theme-picker button {
    color: var(--home-primary);
  }
}

/* Generated hero artwork: keep overlay copy readable on narrow screens. */
body[data-home-theme] #intro .hero-title h3 {
  max-width: 560px;
}

@media (max-width: 767px) {
  body[data-home-theme] #intro .hero-title {
    left: 24px !important;
    right: 24px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    text-align: left;
  }
  body[data-home-theme] #intro .hero-title h3 {
    max-width: 100% !important;
    margin: 0 !important;
    font-size: 24px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
  }
  body[data-home-theme] #intro .hero-cta {
    left: 24px !important;
  }
}

/* Keep the original light carousel artwork readable. */
body[data-home-theme] #intro .page-slider .hero-title h3 {
  color: var(--home-primary) !important;
  text-shadow: 0 2px 14px rgba(255, 255, 255, .72);
}
body[data-home-theme] #intro .page-slider .hero-cta .btn-brd-white {
  color: var(--home-primary) !important;
  border-color: var(--home-primary) !important;
  background: rgba(255, 255, 255, .64);
  text-shadow: none;
}
body[data-home-theme] #intro .page-slider .hero-cta .btn-brd-white:hover,
body[data-home-theme] #intro .page-slider .hero-cta .btn-brd-white:focus {
  color: #fff !important;
  background: var(--home-primary);
  border-color: var(--home-primary) !important;
}

/* Mobile services: alternate the icon and copy to create a compact editorial rhythm. */
@media (max-width: 767px) {
  body[data-home-theme] #about .service-bg {
    padding: 68px 20px 52px;
  }

  body[data-home-theme] #about .service-bg > .row {
    margin-left: 0;
    margin-right: 0;
  }

  body[data-home-theme] #about .service-bg > .row > [class*="col-"] {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  body[data-home-theme] #about .service-bg .services,
  body[data-home-theme] #about .service-bg .services.sm-margin-bottom-100 {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 0 30px !important;
    text-align: left;
  }

  body[data-home-theme] #about .service-bg > .row > [class*="col-"]:nth-child(2) .services {
    flex-direction: row-reverse;
    text-align: right;
  }

  body[data-home-theme] #about .service-bg > .row > [class*="col-"]:nth-child(3) .services {
    margin-bottom: 0 !important;
  }

  body[data-home-theme] #about .service-bg .services-wrap {
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    margin: 0 !important;
  }

  body[data-home-theme] #about .service-bg .services-wrap:before {
    top: -28px;
    right: -28px;
    bottom: -28px;
    left: -28px;
  }

  body[data-home-theme] #about .service-bg .services-wrap img {
    width: 70px;
    height: 70px;
  }

  body[data-home-theme] #about .service-bg .service-copy {
    flex: 1 1 auto;
    min-width: 0;
  }

  body[data-home-theme] #about .service-bg .services h2 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.35;
  }

  body[data-home-theme] #about .service-bg .services p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
  }
}

/* Desktop: keep the readable scrolled header treatment from the first frame. */
@media (min-width: 992px) {
  body[data-home-theme] .container {
    width: min(1180px, calc(100% - 40px));
  }

  body[data-home-theme] .page-header,
  html[data-home-theme] .page-header {
    background: var(--home-surface);
    box-shadow: 0 8px 24px var(--home-shadow);
  }

  body[data-home-theme] .page-header .navbar {
    background: inherit;
  }

  body[data-home-theme] .page-header .navbar-brand {
    height: 70px;
    max-height: 70px;
    line-height: 49px;
    display: flex;
    align-items: center;
  }

  body[data-home-theme] .page-header .navbar-brand img.logo-default {
    display: none;
  }

  body[data-home-theme] .page-header .navbar-brand img.logo-scroll {
    display: block;
  }

  /* Match the Chinese wordmark size used by the Insights pages. */
  body[data-home-theme] .page-header .navbar-brand img.logo-font-only {
    width: 72px;
    height: 72px;
    max-width: none;
    max-height: none;
    object-fit: contain;
  }

  body[data-home-theme] .page-header .navbar-nav li {
    padding: 19px 1px;
  }

  body[data-home-theme] .page-header .navbar-nav li > a {
    color: var(--home-primary);
  }

  body[data-home-theme] .page-header .navbar-nav li.active > a,
  body[data-home-theme] .page-header .navbar-nav li > a:hover {
    border-color: var(--home-line);
    color: var(--home-primary);
  }

  body[data-home-theme] .page-header .home-theme-picker {
    border-color: var(--home-line);
    background: var(--home-surface-alt);
  }

  body[data-home-theme] .page-header .home-theme-picker button {
    color: var(--home-primary);
  }
}

@media (max-width: 991px) {
  body[data-home-theme] .page-header .navbar-brand {
    display: flex;
    align-items: center;
  }

  body[data-home-theme] .page-header .navbar-brand img.logo-font-only {
    width: 58px;
    height: 58px;
    max-width: none;
    max-height: none;
    object-fit: contain;
  }
}

/* Mobile services: align every row to the viewport center line. */
@media (max-width: 767px) {
  body[data-home-theme] #about .service-bg .services {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 0;
    width: 100%;
    flex-direction: initial;
  }

  body[data-home-theme] #about .service-bg .services-wrap {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
  }

  body[data-home-theme] #about .service-bg .service-copy {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    padding-left: 8px;
    text-align: left;
  }

  body[data-home-theme] #about .service-bg > .row > [class*="col-"]:nth-child(2) .services {
    flex-direction: initial;
  }

  body[data-home-theme] #about .service-bg > .row > [class*="col-"]:nth-child(2) .services-wrap {
    grid-column: 2;
  }

  body[data-home-theme] #about .service-bg > .row > [class*="col-"]:nth-child(2) .service-copy {
    grid-column: 1;
    padding-left: 0;
    padding-right: 8px;
    text-align: right;
  }
}

/* Mobile and narrow tablet services: keep the center-line grid at every responsive width. */
@media (max-width: 991px) {
  body[data-home-theme] #about .service-bg {
    padding: 68px 20px 52px;
  }

  body[data-home-theme] #about .service-bg > .row {
    margin-left: 0;
    margin-right: 0;
  }

  body[data-home-theme] #about .service-bg > .row > [class*=col-] {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  body[data-home-theme] #about .service-bg .services,
  body[data-home-theme] #about .service-bg .services.sm-margin-bottom-100 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 0;
    align-items: center;
    width: 100%;
    margin: 0 0 30px !important;
    text-align: left;
    flex-direction: initial;
  }

  body[data-home-theme] #about .service-bg > .row > [class*=col-]:nth-child(3) .services {
    margin-bottom: 0 !important;
  }

  body[data-home-theme] #about .service-bg .services-wrap {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    width: 88px;
    height: 88px;
    margin: 0 !important;
  }

  body[data-home-theme] #about .service-bg .services-wrap:before {
    top: -28px;
    right: -28px;
    bottom: -28px;
    left: -28px;
  }

  body[data-home-theme] #about .service-bg .services-wrap img {
    width: 70px;
    height: 70px;
  }

  body[data-home-theme] #about .service-bg .service-copy {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    padding-left: 8px;
    text-align: left;
  }

  body[data-home-theme] #about .service-bg .services h2 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.35;
  }

  body[data-home-theme] #about .service-bg .services p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
  }

  body[data-home-theme] #about .service-bg > .row > [class*=col-]:nth-child(2) .services {
    flex-direction: initial;
    text-align: right;
  }

  body[data-home-theme] #about .service-bg > .row > [class*=col-]:nth-child(2) .services-wrap {
    grid-column: 2;
  }

  body[data-home-theme] #about .service-bg > .row > [class*=col-]:nth-child(2) .service-copy {
    grid-column: 1;
    padding-left: 0;
    padding-right: 8px;
    text-align: right;
  }
}

/* Mobile services: give each row more vertical breathing room. */
@media (max-width: 991px) {
  body[data-home-theme] #about .service-bg {
    padding-top: 88px;
    padding-bottom: 76px;
  }

  body[data-home-theme] #about .service-bg .services,
  body[data-home-theme] #about .service-bg .services.sm-margin-bottom-100 {
    min-height: 150px;
    margin-bottom: 54px !important;
  }

  body[data-home-theme] #about .service-bg > .row > [class*=col-]:nth-child(3) .services {
    margin-bottom: 0 !important;
  }

  body[data-home-theme] #about .service-bg .services h2 {
    margin-bottom: 12px;
  }

  body[data-home-theme] #about .service-bg .services p,
  body[data-home-theme] .features-bg .features .features-in p {
    line-height: 1.85;
  }
}

/* Hero copy: oversized brand quotation marks frame each carousel message. */
body[data-home-theme] #intro .page-slider .hero-title h3 {
  position: relative;
  padding: 0 .34em;
}

body[data-home-theme] #intro .page-slider .hero-title h3::before,
body[data-home-theme] #intro .page-slider .hero-title h3::after {
  position: absolute;
  z-index: 0;
  color: var(--home-accent);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.42em;
  font-weight: 700;
  line-height: .8;
  opacity: .62;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(70, 216, 213, .18);
}

body[data-home-theme] #intro .page-slider .hero-title h3::before {
  content: '\201C';
  top: -.28em;
  left: -.04em;
}

body[data-home-theme] #intro .page-slider .hero-title h3::after {
  content: '\201D';
  right: -.04em;
  bottom: -.48em;
}

@media (max-width: 767px) {
  body[data-home-theme] #intro .page-slider .hero-title h3 {
    padding: 0 .48em;
  }

  body[data-home-theme] #intro .page-slider .hero-title h3::before,
  body[data-home-theme] #intro .page-slider .hero-title h3::after {
    font-size: 1.7em;
  }

  body[data-home-theme] #intro .page-slider .hero-title h3::before {
    top: -.22em;
    left: -.08em;
  }

  body[data-home-theme] #intro .page-slider .hero-title h3::after {
    right: -.08em;
    bottom: -.38em;
  }
}

/* Keep the closing quote attached to the actual title instead of the full caption box. */
body[data-home-theme] #intro .page-slider .hero-title h3 {
  display: inline-block;
  vertical-align: middle;
}

/* Let the oversized corner quotes extend beyond the title line without being clipped. */
body[data-home-theme] #intro .page-slider .hero-title,
body[data-home-theme] #intro .page-slider .hero-title h3 {
  overflow: visible !important;
}

body[data-home-theme] #intro .page-slider .hero-title h3::before,
body[data-home-theme] #intro .page-slider .hero-title h3::after {
  font-size: 1.9em;
}

body[data-home-theme] #intro .page-slider .hero-title h3::before {
  top: -.18em;
  left: -.08em;
}

body[data-home-theme] #intro .page-slider .hero-title h3::after {
  right: -.08em;
  bottom: -.28em;
}

@media (max-width: 767px) {
  body[data-home-theme] #intro .page-slider .hero-title h3::before,
  body[data-home-theme] #intro .page-slider .hero-title h3::after {
    font-size: 2.05em;
  }

  body[data-home-theme] #intro .page-slider .hero-title h3::before {
    top: -.12em;
    left: -.12em;
  }

  body[data-home-theme] #intro .page-slider .hero-title h3::after {
    right: -.12em;
    bottom: -.22em;
  }
}

/* Use the requested Chinese corner quotation marks. */
body[data-home-theme] #intro .page-slider .hero-title h3::before {
  content: '\300E';
}

body[data-home-theme] #intro .page-slider .hero-title h3::after {
  content: '\300F';
}

/* Hero copy: add a translucent light-gray plate behind the quote-framed title. */
body[data-home-theme] #intro .page-slider .hero-title h3 {
  padding: .10em .38em .16em;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 14px;
  background: rgba(241, 244, 247, .60);
  box-shadow: 0 10px 28px rgba(20, 37, 153, .08);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

@media (min-width: 992px) {
  body[data-home-theme] #intro .page-slider .hero-title h3 {
    width: max-content;
    max-width: calc(100vw - 120px);
  }
}

@media (max-width: 767px) {
  body[data-home-theme] #intro .page-slider .hero-title h3 {
    padding: .16em .72em .24em;
    border-radius: 10px;
  }
}

/* Mobile hero copy: add generous side whitespace and center the framed message. */
@media (max-width: 991px) {
  body[data-home-theme] #intro .page-slider .hero-title {
    left: 40px !important;
    right: 40px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    text-align: center;
  }

  body[data-home-theme] #intro .page-slider .hero-title h3 {
    max-width: 100% !important;
    margin: 0 auto !important;
    font-size: 22px !important;
    line-height: 1.45 !important;
    white-space: normal !important;
  }

  body[data-home-theme] #intro .page-slider .hero-cta {
    left: 40px !important;
    right: 40px !important;
    width: auto !important;
    text-align: center;
  }
}

@media (max-width: 380px) {
  body[data-home-theme] #intro .page-slider .hero-title,
  body[data-home-theme] #intro .page-slider .hero-cta {
    left: 30px !important;
    right: 30px !important;
  }
}

/* Keep corner quotes outside the title glyphs, within the framed plate. */
body[data-home-theme] #intro .page-slider .hero-title h3 {
  padding-left: .98em;
  padding-right: .98em;
}

body[data-home-theme] #intro .page-slider .hero-title h3::before {
  left: -.36em;
  top: -.08em;
}

body[data-home-theme] #intro .page-slider .hero-title h3::after {
  right: -.36em;
  bottom: -.18em;
}

@media (max-width: 767px) {
  body[data-home-theme] #intro .page-slider .hero-title h3 {
    padding-left: .98em;
    padding-right: .98em;
  }

  body[data-home-theme] #intro .page-slider .hero-title h3::before {
    left: -.38em;
    top: -.06em;
  }

  body[data-home-theme] #intro .page-slider .hero-title h3::after {
    right: -.38em;
    bottom: -.16em;
  }
}

/* Hero copy: increase the carousel title scale slightly. */
body[data-home-theme] #intro .page-slider .hero-title h3 {
  font-size: 68px;
}

@media (max-width: 991px) {
  body[data-home-theme] #intro .page-slider .hero-title h3 {
    font-size: 24px !important;
  }
}

/* Hero copy: return to decorative typographic double quotes. */
body[data-home-theme] #intro .page-slider .hero-title h3::before {
  content: '\201C';
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -.08em;
  transform: translate(-2px, -2px) rotate(-8deg);
}

body[data-home-theme] #intro .page-slider .hero-title h3::after {
  content: '\201D';
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -.08em;
  transform: translate(2px, 2px) rotate(-8deg);
}

/* Keep the closing quote visible inside the lower-right edge of the title plate. */
body[data-home-theme] #intro .page-slider .hero-title h3::after {
  right: .08em;
  bottom: .02em;
  opacity: .82;
  transform: translate(2px, 4px) rotate(-8deg);
}

@media (max-width: 767px) {
  body[data-home-theme] #intro .page-slider .hero-title h3::after {
    right: .08em;
    bottom: .02em;
  }
}

/* Replace hero quotes with offset rounded corner frame accents. */
body[data-home-theme] #intro .page-slider .hero-title h3 {
  padding-left: .72em;
  padding-right: .72em;
}

body[data-home-theme] #intro .page-slider .hero-title h3::before,
body[data-home-theme] #intro .page-slider .hero-title h3::after {
  content: '';
  display: block;
  width: 48px;
  height: 28px;
  position: absolute;
  z-index: 2;
  font-size: 0;
  font-family: inherit;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  opacity: .82;
  transform: none;
  background: transparent;
  pointer-events: none;
}

body[data-home-theme] #intro .page-slider .hero-title h3::before {
  top: -8px;
  left: -8px;
  border-top: 2px solid var(--home-accent);
  border-left: 2px solid var(--home-accent);
  border-top-left-radius: 14px;
}

body[data-home-theme] #intro .page-slider .hero-title h3::after {
  right: -8px;
  bottom: -8px;
  border-right: 2px solid var(--home-accent);
  border-bottom: 2px solid var(--home-accent);
  border-bottom-right-radius: 14px;
}

@media (max-width: 767px) {
  body[data-home-theme] #intro .page-slider .hero-title h3 {
    padding-left: .72em;
    padding-right: .72em;
  }

  body[data-home-theme] #intro .page-slider .hero-title h3::before,
  body[data-home-theme] #intro .page-slider .hero-title h3::after {
    width: 34px;
    height: 24px;
  }

  body[data-home-theme] #intro .page-slider .hero-title h3::before {
    top: -7px;
    left: -7px;
    border-top-left-radius: 10px;
  }

  body[data-home-theme] #intro .page-slider .hero-title h3::after {
    right: -7px;
    bottom: -7px;
    border-bottom-right-radius: 10px;
  }
}

/* Shorten the rounded corner accents while keeping the same offset. */
body[data-home-theme] #intro .page-slider .hero-title h3::before,
body[data-home-theme] #intro .page-slider .hero-title h3::after {
  width: 38px;
  height: 23px;
}

@media (max-width: 767px) {
  body[data-home-theme] #intro .page-slider .hero-title h3::before,
  body[data-home-theme] #intro .page-slider .hero-title h3::after {
    width: 28px;
    height: 19px;
  }
}

/* Product dropdown: expose the all-channel inventory product from the main navigation. */
body[data-home-theme] .navbar-nav > li.products-nav > a.dropdown-toggle {
  cursor: pointer;
}
body[data-home-theme] .navbar-nav > li.products-nav > a.dropdown-toggle .caret {
  margin-left: 5px;
  border-top-color: currentColor;
  border-bottom-color: currentColor;
}
body[data-home-theme] .navbar-nav > li.products-nav.open > a.dropdown-toggle,
body[data-home-theme] .navbar-nav > li.products-nav > a.dropdown-toggle:hover,
body[data-home-theme] .navbar-nav > li.products-nav > a.dropdown-toggle:focus {
  color: var(--home-primary);
  background: transparent;
  border-color: var(--home-line);
}
body[data-home-theme] .navbar-nav > li.products-nav .dropdown-menu {
  min-width: 168px;
  padding: 8px;
  border: 1px solid var(--home-line);
  border-radius: 12px;
  background: var(--home-surface);
  box-shadow: 0 14px 30px var(--home-shadow);
}
body[data-home-theme] .navbar-nav > li.products-nav .dropdown-menu > li > a {
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  color: var(--home-primary);
  white-space: nowrap;
}
body[data-home-theme] .navbar-nav > li.products-nav .dropdown-menu > li > a:hover,
body[data-home-theme] .navbar-nav > li.products-nav .dropdown-menu > li > a:focus {
  background: var(--home-surface-alt);
  color: var(--home-primary);
}
@media (max-width: 767px) {
  body[data-home-theme] .navbar-nav > li.products-nav .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  body[data-home-theme] .navbar-nav > li.products-nav .dropdown-menu > li > a {
    padding-left: 28px;
  }
}

/* Eight-card feature grid: two columns on desktop with a spacious laptop frame. */
@media (min-width: 992px) {
  body[data-home-theme] .features-grid-row {
    display: flex;
    flex-wrap: wrap;
    row-gap: 52px;
  }
  body[data-home-theme] .features-grid-row > [class*="col-md-"] {
    float: none;
    display: flex;
  }
  body[data-home-theme] .features-grid-row .features {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  body[data-home-theme] .features-grid-row .features > img {
    width: 100%;
    max-width: 500px;
    height: auto;
    float: none;
    display: block;
    margin: 0 auto 24px;
  }
  body[data-home-theme] .features-grid-row .features .features-in {
    flex: 1 1 auto;
    overflow: visible;
  }
}

/* Keep the PC services band continuous across the viewport. */
@media (min-width: 992px) {
  body[data-home-theme] #about {
    background: var(--home-surface-alt);
  }
}


/* Bilingual language switch */
body[data-home-theme] .home-language-item {
  margin-left: 8px;
  position: relative;
}
body[data-home-theme] .home-language-item .language-dropdown {
  display: block;
  position: relative;
  z-index: 30;
}
body[data-home-theme] .home-language-item .language-dropdown summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #d7e0f1;
  border-radius: 999px;
  color: #142599;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
body[data-home-theme] .home-language-item .language-dropdown summary::-webkit-details-marker {
  display: none;
}
body[data-home-theme] .home-language-item .language-dropdown summary:hover {
  border-color: #b8c7e3;
  background: #fbfcff;
}
body[data-home-theme] .home-language-item .language-dropdown summary:focus-visible {
  outline: none;
  border-color: #9caee0;
  box-shadow: 0 0 0 3px rgba(20,37,153,.10);
}
body[data-home-theme] .home-language-item .language-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .16s ease;
}
body[data-home-theme] .home-language-item .language-dropdown[open] .language-chevron {
  transform: rotate(225deg) translate(-1px,-1px);
}
body[data-home-theme] .home-language-item .language-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(2, minmax(104px, 1fr));
  gap: 4px;
  width: min(250px, calc(100vw - 28px));
  padding: 8px;
  border: 1px solid #d7e0f1;
  border-radius: 14px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 14px 30px rgba(20,37,153,.14);
}
body[data-home-theme] .home-language-item .language-dropdown-menu a {
  display: block;
  padding: 8px 9px;
  border-radius: 8px;
  color: #2d3f68;
  font-size: 13px;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}
body[data-home-theme] .home-language-item .language-dropdown-menu a:hover,
body[data-home-theme] .home-language-item .language-dropdown-menu a[aria-current="page"] {
  color: #142599;
  background: #eef3ff;
  text-decoration: none;
}
@media (max-width: 991px) {
  body[data-home-theme] .home-language-item {
    margin: 10px 0 8px;
  }
  body[data-home-theme] .home-language-item .language-dropdown summary {
    max-width: 142px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}


body[data-home-theme] .footer-copyright .copyright-socials {
  text-align: center;
}
body[data-home-theme] .footer-copyright .copyright-socials li {
  vertical-align: middle;
}
body[data-home-theme] .footer-copyright .copyright-socials li i {
  line-height: 1;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body[data-home-theme] .footer-copyright .copyright-socials li i.social-x svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Contact enquiry panel inspired by the inventory product guide. */
body[data-home-theme] #contact .footer {
  padding-top: 64px;
  padding-bottom: 64px;
}
body[data-home-theme] #contact .contact-intro {
  padding-top: 14px;
}
body[data-home-theme] #contact .contact-intro-copy {
  max-width: 360px;
  margin: 26px 0 24px;
  color: rgba(255,255,255,.78);
  font-size: 15px;
  line-height: 1.9;
}
body[data-home-theme] #contact .contact-qr-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.76);
  font-size: 12px;
  line-height: 1.6;
}
body[data-home-theme] #contact .contact-qr-row img {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  background: #fff;
}
body[data-home-theme] #contact .home-contact-card {
  margin: 0;
  padding: 26px;
  border: 1px solid rgba(20,37,153,.12);
  border-radius: 24px;
  background: var(--home-surface);
  box-shadow: 0 18px 44px rgba(5, 12, 64, .18);
}
body[data-home-theme] #contact .home-contact-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
body[data-home-theme] #contact .home-contact-card-head h3 {
  margin: 0 0 6px;
  color: var(--home-primary);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.35;
}
body[data-home-theme] #contact .home-contact-card-head p {
  margin: 0;
  color: var(--home-muted);
  font-size: 13px;
  line-height: 1.7;
}
body[data-home-theme] #contact .contact-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--home-primary);
  background: var(--home-surface-alt);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
body[data-home-theme] #contact .home-contact-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
body[data-home-theme] #contact .home-contact-option {
  min-height: 74px;
  padding: 12px 13px;
  border: 1px solid var(--home-line);
  border-radius: 15px;
  background: var(--home-surface-alt);
  color: var(--home-ink);
  text-align: left;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
body[data-home-theme] #contact .home-contact-option:hover {
  transform: translateY(-1px);
  border-color: rgba(70,216,213,.75);
}
body[data-home-theme] #contact .home-contact-option.is-active {
  border-color: var(--home-accent);
  background: rgba(70,216,213,.06);
  box-shadow: inset 0 0 0 1px rgba(70,216,213,.12);
}
body[data-home-theme] #contact .home-contact-option strong,
body[data-home-theme] #contact .home-contact-option span {
  display: block;
}
body[data-home-theme] #contact .home-contact-option strong {
  margin-bottom: 4px;
  color: var(--home-primary);
  font-size: 13px;
  font-weight: 800;
}
body[data-home-theme] #contact .home-contact-option span {
  color: var(--home-muted);
  font-size: 11px;
  line-height: 1.5;
}
body[data-home-theme] #contact .home-contact-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
body[data-home-theme] #contact .home-contact-fields label,
body[data-home-theme] #contact .home-contact-message label {
  display: block;
  margin: 0 0 6px;
  color: var(--home-ink);
  font-size: 12px;
  font-weight: 700;
}
body[data-home-theme] #contact .home-contact-fields input,
body[data-home-theme] #contact .home-contact-message textarea {
  width: 100%;
  border: 1px solid var(--home-line);
  border-radius: 11px;
  outline: 0;
  background: #fbfdff;
  color: var(--home-ink);
  font-size: 13px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
body[data-home-theme] #contact .home-contact-fields input {
  height: 40px;
  padding: 0 11px;
}
body[data-home-theme] #contact .home-contact-message textarea {
  min-height: 105px;
  padding: 10px 11px;
  resize: vertical;
  line-height: 1.65;
}
body[data-home-theme] #contact .home-contact-fields input:focus,
body[data-home-theme] #contact .home-contact-message textarea:focus {
  border-color: var(--home-accent);
  box-shadow: 0 0 0 3px rgba(70,216,213,.16);
}
body[data-home-theme] #contact .home-contact-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
body[data-home-theme] #contact .home-contact-btn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
body[data-home-theme] #contact .home-contact-btn:hover {
  transform: translateY(-1px);
}
body[data-home-theme] #contact .home-contact-btn.primary {
  color: var(--home-primary);
  background: rgba(70,216,213,.72);
  background-image: none;
  border: 1px solid rgba(70,216,213,.72);
  box-shadow: none;
  text-shadow: none;
}
body[data-home-theme] #contact .home-contact-btn.secondary {
  color: var(--home-primary);
  border: 1px solid var(--home-line);
  background: var(--home-surface);
}
body[data-home-theme] #contact .home-contact-btn.send {
  color: #fff;
  border: 1px solid var(--home-primary);
  background: var(--home-primary);
  background-image: none;
  box-shadow: none;
  text-shadow: none;
}
body[data-home-theme] #contact .home-contact-btn:disabled {
  cursor: wait;
  opacity: .58;
  transform: none;
}
body[data-home-theme] #contact .home-contact-note {
  margin: 12px 0 0;
  color: var(--home-muted);
  font-size: 11px;
  line-height: 1.6;
}
@media (max-width: 767px) {
  body[data-home-theme] #contact .footer {
    padding-top: 42px;
    padding-bottom: 42px;
  }
  body[data-home-theme] #contact .contact-intro {
    padding-top: 0;
    margin-bottom: 22px !important;
  }
  body[data-home-theme] #contact .home-contact-card {
    padding: 19px 16px;
    border-radius: 20px;
  }
  body[data-home-theme] #contact .home-contact-card-head h3 {
    font-size: 19px;
  }
  body[data-home-theme] #contact .home-contact-options,
  body[data-home-theme] #contact .home-contact-fields {
    grid-template-columns: 1fr;
  }
  body[data-home-theme] #contact .home-contact-option {
    min-height: 66px;
  }
  body[data-home-theme] #contact .home-contact-actions {
    flex-wrap: wrap;
  }
}

/* Contact layout: centered intro, QR at right, enquiry card on the next full row. */
body[data-home-theme] #contact .contact-top-row {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}
body[data-home-theme] #contact .contact-top-row .contact-intro {
  padding-top: 0;
  text-align: center;
}
body[data-home-theme] #contact .contact-top-row .heading-left-light {
  margin-bottom: 22px;
  text-align: center;
}
body[data-home-theme] #contact .contact-top-row .contact-intro-copy {
  margin: 0 auto;
}
body[data-home-theme] #contact .contact-qr-col {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
body[data-home-theme] #contact .contact-form-row {
  margin-top: 0;
}
body[data-home-theme] #contact .contact-form-row > .col-sm-12 {
  width: 100%;
}
body[data-home-theme] #contact .contact-form-row .home-contact-card {
  width: 100%;
}
@media (max-width: 767px) {
  body[data-home-theme] #contact .contact-top-row {
    display: block;
    margin-bottom: 24px;
  }
  body[data-home-theme] #contact .contact-top-row .contact-intro {
    margin-bottom: 22px !important;
    text-align: center;
  }
  body[data-home-theme] #contact .contact-top-row .heading-left-light {
    text-align: center;
  }
  body[data-home-theme] #contact .contact-qr-col {
    justify-content: center;
  }
}

/* Confirmation step before a contact message is sent. */
body[data-home-theme] #contact .home-contact-confirm {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(14, 26, 104, .52);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}
body[data-home-theme] #contact .home-contact-confirm.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body[data-home-theme] #contact .home-contact-confirm-dialog {
  width: min(100%, 590px);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(20,37,153,.12);
  border-radius: 22px;
  background: var(--home-surface);
  box-shadow: 0 24px 70px rgba(5,12,64,.28);
}
body[data-home-theme] #contact .home-contact-confirm-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
body[data-home-theme] #contact .home-contact-confirm-head h3 {
  margin: 0 0 6px;
  color: var(--home-primary);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}
body[data-home-theme] #contact .home-contact-confirm-head p {
  margin: 0;
  color: var(--home-muted);
  font-size: 12px;
  line-height: 1.7;
}
body[data-home-theme] #contact .home-contact-confirm-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 1px solid var(--home-line);
  border-radius: 50%;
  color: var(--home-primary);
  background: var(--home-surface-alt);
  font-size: 20px;
  line-height: 1;
}
body[data-home-theme] #contact .home-contact-confirm-text {
  max-height: 360px;
  overflow: auto;
  margin: 18px 0 0;
  padding: 15px;
  border: 1px solid var(--home-line);
  border-radius: 14px;
  color: var(--home-ink);
  background: var(--home-surface-alt);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}
body[data-home-theme] #contact .home-contact-confirm-status {
  min-height: 18px;
  margin: 10px 0 0;
  color: #b24a4a;
  font-size: 12px;
  line-height: 1.5;
}
body[data-home-theme] #contact .home-contact-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}
@media (max-width: 767px) {
  body[data-home-theme] #contact .home-contact-confirm {
    align-items: flex-end;
    padding: 12px;
  }
  body[data-home-theme] #contact .home-contact-confirm-dialog {
    max-height: calc(100vh - 24px);
    padding: 19px 16px;
    border-radius: 20px;
  }
  body[data-home-theme] #contact .home-contact-confirm-actions {
    justify-content: stretch;
  }
  body[data-home-theme] #contact .home-contact-confirm-actions .home-contact-btn {
    flex: 1 1 0;
  }
}

/* Keep the enquiry card compact until the visitor asks to open it. */
body[data-home-theme] #contact .home-contact-card.is-collapsed .home-contact-details {
  display: none;
}
body[data-home-theme] #contact .home-contact-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 9px 4px 6px;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  color: var(--home-primary);
  background: var(--home-surface-alt);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
body[data-home-theme] #contact .home-contact-toggle-wrap {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
body[data-home-theme] #contact .home-contact-reply-bubble {
  position: relative;
  top: -4px;
  max-width: 240px;
  padding: 7px 12px;
  border: 1px solid rgba(70,216,213,.46);
  border-radius: 12px;
  color: var(--home-primary);
  background: rgba(70,216,213,.14);
  box-shadow: 0 6px 16px rgba(20,37,153,.10);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  animation: home-contact-reply-blink 1.6s ease-in-out infinite;
}
@keyframes home-contact-reply-blink {
  0%, 100% { opacity: .62; box-shadow: 0 6px 16px rgba(20,37,153,.08); }
  50% { opacity: 1; box-shadow: 0 8px 22px rgba(70,216,213,.30); }
}
@media (prefers-reduced-motion: reduce) {
  body[data-home-theme] #contact .home-contact-reply-bubble {
    animation: none;
  }
}

/* Give the mobile hero enough height to work as the first-screen experience. */
@media (max-width: 767px) {
  body[data-home-theme] #intro .page-slider,
  body[data-home-theme] #intro .fullwidthbanner-container,
  body[data-home-theme] #intro .fullwidthbanner-container .banner,
  body[data-home-theme] #intro .fullwidthbanner-container .banner ul,
  body[data-home-theme] #intro .fullwidthbanner-container .banner ul > li {
    height: 66.67vh !important;
    height: 66.67svh !important;
  }
  body[data-home-theme] #intro .fullwidthbanner-container .banner ul > li > img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  body[data-home-theme] #intro .fullwidthbanner-container .banner ul > li .hero-title {
    top: 50% !important;
    bottom: auto !important;
    margin-top: 0 !important;
    transform: translateY(-50%) !important;
  }
  body[data-home-theme] #intro .page-slider .hero-title h3,
  body[data-home-theme] #intro .page-slider .hero-title h3.title-v2 {
    font-size: 24px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
  }
}
body[data-home-theme] #contact .home-contact-reply-bubble::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -6px;
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(70,216,213,.46);
  border-bottom: 1px solid rgba(70,216,213,.46);
  background: rgba(70,216,213,.14);
  transform: rotate(45deg);
}
body[data-home-theme] #contact .home-contact-toggle:hover {
  border-color: rgba(70,216,213,.60);
  background: rgba(70,216,213,.08);
  transform: translateY(-1px);
}
body[data-home-theme] #contact .home-contact-toggle .contact-badge {
  padding: 4px 8px;
  color: var(--home-primary);
  background: rgba(255,255,255,.72);
}
body[data-home-theme] #contact .home-contact-toggle .contact-toggle-label {
  min-width: 48px;
  text-align: center;
}
body[data-home-theme] #contact .home-contact-toggle .contact-toggle-icon {
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
}
body[data-home-theme] #contact .home-contact-card:not(.is-collapsed) .home-contact-toggle .contact-toggle-icon {
  transform: rotate(45deg);
}
body[data-home-theme] #contact .home-contact-card:not(.is-collapsed) .home-contact-details {
  margin-top: 4px;
}
@media (max-width: 767px) {
  body[data-home-theme] #contact .home-contact-card-head {
    align-items: flex-start;
  }
  body[data-home-theme] #contact .home-contact-toggle {
    gap: 5px;
    padding-right: 7px;
  }
  body[data-home-theme] #contact .home-contact-toggle-wrap {
    align-items: flex-end;
  }
  body[data-home-theme] #contact .home-contact-reply-bubble {
    max-width: min(220px, 68vw);
    white-space: normal;
    text-align: right;
  }
  body[data-home-theme] #contact .home-contact-toggle .contact-badge {
    display: none;
  }
}


/* Contact top row: brand / message / QR in one aligned desktop row. */
body[data-home-theme] #contact .contact-top-row {
  align-items: center;
}
body[data-home-theme] #contact .contact-top-row .contact-intro {
  text-align: left;
}
body[data-home-theme] #contact .contact-top-row .heading-left-light {
  text-align: left;
}
body[data-home-theme] #contact .contact-intro-copy-col {
  display: flex;
  align-items: center;
  justify-content: center;
}
body[data-home-theme] #contact .contact-intro-copy-col .contact-intro-copy {
  max-width: 330px;
  margin: 0 auto;
  text-align: center;
}
body[data-home-theme] #contact .contact-qr-col {
  justify-content: flex-end;
}
@media (max-width: 767px) {
  body[data-home-theme] #contact .contact-top-row .contact-intro,
  body[data-home-theme] #contact .contact-top-row .heading-left-light {
    text-align: center;
  }
  body[data-home-theme] #contact .contact-intro-copy-col {
    margin-bottom: 22px;
  }
  body[data-home-theme] #contact .contact-intro-copy-col .contact-intro-copy {
    text-align: center;
  }
}

/* Confirmation after a message is saved locally. */
body[data-home-theme] #contact .home-contact-success {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(14, 26, 104, .52);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}
body[data-home-theme] #contact .home-contact-success.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body[data-home-theme] #contact .home-contact-success-dialog {
  width: min(100%, 560px);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 30px;
  border: 1px solid rgba(20,37,153,.12);
  border-radius: 24px;
  background: var(--home-surface);
  box-shadow: 0 24px 70px rgba(5,12,64,.28);
  text-align: center;
}
body[data-home-theme] #contact .home-contact-success-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  color: var(--home-primary);
  background: rgba(70,216,213,.24);
  font-size: 30px;
  font-weight: 900;
}
body[data-home-theme] #contact .home-contact-success-dialog h3 {
  margin: 0 0 7px;
  color: var(--home-primary);
  font-size: 23px;
  font-weight: 800;
}
body[data-home-theme] #contact .home-contact-success-dialog > p {
  margin: 0;
  color: var(--home-muted);
  font-size: 13px;
  line-height: 1.7;
}
body[data-home-theme] #contact .home-contact-success-text {
  max-height: 260px;
  overflow: auto;
  margin: 20px 0 0;
  padding: 15px;
  border: 1px solid var(--home-line);
  border-radius: 14px;
  color: var(--home-ink);
  background: var(--home-surface-alt);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.7;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
}
body[data-home-theme] #contact .home-contact-success-note {
  margin-top: 12px !important;
  font-size: 11px !important;
}
body[data-home-theme] #contact .home-contact-success-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
body[data-home-theme] #contact .home-contact-conversation {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--home-line);
}
body[data-home-theme] #contact .home-contact-conversation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
body[data-home-theme] #contact .home-contact-conversation-head h4 {
  margin: 0 0 4px;
  color: var(--home-primary);
  font-size: 16px;
  font-weight: 800;
}
body[data-home-theme] #contact .home-contact-conversation-head p {
  margin: 0;
  color: var(--home-muted);
  font-size: 12px;
  line-height: 1.6;
}
body[data-home-theme] #contact .home-contact-conversation-refresh {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  color: var(--home-primary);
  background: var(--home-surface);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
body[data-home-theme] #contact .home-contact-conversation-list {
  display: grid;
  gap: 10px;
}
body[data-home-theme] #contact .home-contact-conversation-item {
  max-width: 86%;
  padding: 12px 14px;
  border: 1px solid var(--home-line);
  border-radius: 14px;
  background: var(--home-surface-alt);
}
body[data-home-theme] #contact .home-contact-conversation-item.is-user {
  justify-self: start;
}
body[data-home-theme] #contact .home-contact-conversation-item.is-advisor {
  justify-self: end;
  border-color: rgba(70,216,213,.42);
  background: rgba(70,216,213,.10);
}
body[data-home-theme] #contact .home-contact-conversation-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
  color: var(--home-primary);
  font-size: 12px;
}
body[data-home-theme] #contact .home-contact-conversation-meta time {
  color: var(--home-muted);
  font-size: 11px;
  font-weight: 400;
}
body[data-home-theme] #contact .home-contact-conversation-item p,
body[data-home-theme] #contact .home-contact-conversation-empty {
  margin: 0;
  color: var(--home-ink);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
body[data-home-theme] #contact .home-contact-conversation-empty {
  padding: 12px 14px;
  color: var(--home-muted);
  border: 1px dashed var(--home-line);
  border-radius: 12px;
}
body[data-home-theme] #contact .home-contact-conversation-empty.is-error {
  color: #b54a4a;
}
body[data-home-theme] #contact .home-contact-card.has-thread .home-contact-options,
body[data-home-theme] #contact .home-contact-card.has-thread .home-contact-fields,
body[data-home-theme] #contact .home-contact-card.has-thread .home-contact-message,
body[data-home-theme] #contact .home-contact-card.has-thread .home-contact-actions,
body[data-home-theme] #contact .home-contact-card.has-thread > .home-contact-details > .home-contact-note {
  display: none;
}
body[data-home-theme] #contact .home-contact-chat-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--home-line);
}
body[data-home-theme] #contact .home-contact-chat-form textarea {
  display: block;
  width: 100%;
  min-height: 78px;
  padding: 12px 14px;
  border: 1px solid var(--home-line);
  border-radius: 14px;
  color: var(--home-ink);
  background: var(--home-surface);
  font: inherit;
  font-size: 13px;
  line-height: 1.7;
  resize: vertical;
}
body[data-home-theme] #contact [hidden] {
  display: none !important;
}
body[data-home-theme] #contact .home-contact-chat-form textarea:focus {
  border-color: var(--home-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(20,37,153,.10);
}
body[data-home-theme] #contact .home-contact-chat-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}
body[data-home-theme] #contact .home-contact-chat-actions p {
  flex: 1;
  margin: 0;
  color: var(--home-muted);
  font-size: 12px;
  line-height: 1.6;
}
body[data-home-theme] #contact .home-contact-chat-actions .home-contact-btn {
  flex: 0 0 auto;
}
body[data-home-theme] #contact .home-contact-new {
  margin-top: 14px;
  padding: 0;
  border: 0;
  color: var(--home-primary);
  background: transparent;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 767px) {
  body[data-home-theme] #contact .home-contact-success {
    align-items: flex-end;
    padding: 12px;
  }
  body[data-home-theme] #contact .home-contact-success-dialog {
    max-height: calc(100vh - 24px);
    padding: 24px 17px;
    border-radius: 20px;
  }
  body[data-home-theme] #contact .home-contact-success-actions {
    flex-direction: column-reverse;
  }
  body[data-home-theme] #contact .home-contact-success-actions .home-contact-btn {
    width: 100%;
  }
  body[data-home-theme] #contact .home-contact-conversation-head {
    align-items: stretch;
    flex-direction: column;
  }
  body[data-home-theme] #contact .home-contact-conversation-refresh {
    align-self: flex-start;
  }
  body[data-home-theme] #contact .home-contact-conversation-item {
    max-width: 94%;
  }
  body[data-home-theme] #contact .home-contact-chat-actions {
    align-items: stretch;
    flex-direction: column;
  }
  body[data-home-theme] #contact .home-contact-chat-actions .home-contact-btn {
    width: 100%;
  }
}

/* Desktop hero plate follows the title's actual content width. */
@media (min-width: 992px) {
  body[data-home-theme] #intro .fullwidthbanner-container .banner ul > li .hero-title {
    top: 50% !important;
    bottom: auto !important;
    margin-top: 0 !important;
    transform: translateY(-50%) !important;
  }
  body[data-home-theme] #intro .page-slider .hero-title h3 {
    width: 100% !important;
    max-width: none !important;
    padding: .10em .38em .16em !important;
  }
  body[data-home-theme] #intro .page-slider .hero-title {
    left: 50% !important;
    width: 80vw !important;
    margin-left: -40vw !important;
    text-align: center !important;
  }
  body[data-home-theme] #intro .page-slider .hero-title h3 {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
}
