.index {
  background: #f5f9f9;
  color: #36565d;
}

.home-eyebrow {
  display: block;
  margin-bottom: 11px;
  color: #0ca7a3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

/* Metric-matched fallbacks — CLS root cause is web font load on home-quick-access. */
@font-face {
  font-family: "Barlow Fallback";
  src: local("Arial");
  size-adjust: 105%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Spartan Fallback";
  src: local("Arial");
  size-adjust: 98%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Cantata One Fallback";
  src: local("Times New Roman");
  size-adjust: 108%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

.index,
.index .home-quick-access,
.index .home-quick-grid a {
  font-family: "League Spartan", "Segoe UI", Arial, sans-serif;
}

.index .home-quick-access .home-section-heading h2,
.index .home-section-heading h2 {
  font-family: "Cantata One", "Cantata One Fallback", serif;
  /* Stabilize line box before webfont arrives */
  line-height: 1.2;
  min-height: 1.2em;
}

/* Off-screen owl slides must not win LCP (translated siblings stay in DOM). */
.home-hero .owl-item:not(.active) .home-hero__media,
.home-hero .owl-item:not(.active) picture {
  visibility: hidden;
  content-visibility: hidden;
}

/*
 * CLS root: Owl Carousel CSS sets .owl-carousel { display:none } until .owl-loaded,
 * collapsing the hero and shifting section.home-quick-access (~0.63 lab CLS).
 */
.home-hero .sliders.owl-carousel {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.home-hero .sliders.owl-carousel.owl-loading {
  opacity: 1 !important;
}
.home-hero .sliders.owl-carousel:not(.owl-loaded) > .item:not(:first-child) {
  display: none !important;
}
.home-hero .sliders.owl-carousel,
.home-hero .owl-stage-outer {
  height: 680px;
  min-height: 680px;
  max-height: 680px;
}
@media (max-width: 767px) {
  .home-hero .sliders.owl-carousel,
  .home-hero .owl-stage-outer {
    height: 570px;
    min-height: 570px;
    max-height: 570px;
  }
}

.home-hero {
  position: relative;
  padding-bottom: 0;
  background: #073f4c;
}

.index .home-hero .sliders .home-hero__slide {
  position: relative;
  display: flex;
  align-items: center;
  height: 680px;
  min-height: 680px;
  overflow: hidden;
  background-color: #073f4c;
  background-position: center;
  background-size: cover;
}

.home-hero__media,
.home-hero__slide > picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.home-hero__media {
  object-fit: cover;
  object-position: center;
  display: block;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(3, 35, 43, .92) 0%, rgba(3, 42, 51, .72) 42%, rgba(3, 42, 51, .08) 76%);
}

.home-hero__content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding-bottom: 30px;
}

.index .home-hero .sliders h1,
.index .home-hero .sliders h2 {
  margin: 0 0 18px;
  color: #fff;
  font-family: "Barlow", "Barlow Fallback", sans-serif;
  font-size: 58px;
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -1.5px;
}

.index .home-hero .sliders p {
  max-width: 570px;
  margin: 0;
  padding: 0;
  color: #c5d9dc;
  font-size: 16px;
  line-height: 1.75;
}

.home-hero__actions {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 30px;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 750;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.home-btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.home-btn--primary {
  color: #fff;
  background: #0eaaa5;
}

.home-btn--primary:hover {
  color: #fff;
  background: #0a9592;
}

.home-btn--ghost {
  border-color: rgba(255,255,255,.35);
  color: #fff;
  background: rgba(255,255,255,.06);
}

.home-btn--ghost:hover {
  border-color: rgba(255,255,255,.7);
  color: #fff;
}

.home-section-heading {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.home-section-heading h2 {
  margin: 0 0 12px;
  color: #123f49;
  font-family: "Cantata One", "Cantata One Fallback", serif;
  font-size: 37px;
  font-weight: 720;
  line-height: 1.2;
  letter-spacing: -.65px;
}

.home-section-heading p {
  margin: 0;
  color: #738a8f;
  font-size: 13px;
  line-height: 1.75;
}

.home-section-heading--split {
  display: flex;
  max-width: none;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  text-align: left;
}

.home-section-heading--split > div {
  max-width: 660px;
}

.home-section-heading--split h2 {
  margin-bottom: 0;
}

.home-section-heading--split > a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding-bottom: 7px;
  color: #13767d;
  font-size: 11px;
  font-weight: 750;
}

.home-quick-access {
  padding: 72px 0 78px;
  background: #f5f9f9;
}

.home-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-quick-grid a {
  position: relative;
  display: flex;
  min-height: 108px;
  justify-content: center;
  flex-direction: column;
  padding: 20px 52px 20px 21px;
  border: 1px solid #dce9e9;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(8, 56, 67, .045);
}

.home-quick-grid a:hover {
  border-color: #80cbc7;
  text-decoration: none;
  transform: translateY(-2px);
}

.home-quick-grid span {
  margin-bottom: 5px;
  color: #809398;
  font-size: 9px;
  font-weight: 700;
}

.home-quick-grid strong {
  color: #244f57;
  font-size: 14px;
  line-height: 1.4;
}

.home-quick-grid i {
  position: absolute;
  top: 50%;
  right: 18px;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  color: #087e80;
  background: #e7f6f4;
  font-size: 10px;
  transform: translateY(-50%);
}

.home-intent-links {
  margin-top: 22px;
}

.home-intent-links > strong {
  display: block;
  margin-bottom: 10px;
  color: #315c64;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-intent-links > div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.home-intent-links a {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid #d5e4e4;
  border-radius: 10px;
  background: #fff;
  color: #23636a;
  font-size: 12px;
  font-weight: 600;
}

.home-intent-links a:hover {
  border-color: #80c6c3;
  text-decoration: none;
}

.home-products {
  padding: 78px 0 95px;
  background: #fff;
}

.home-products .pc-grid {
  row-gap: 24px;
}

.home-categories {
  padding: 95px 0 105px;
  background: #eef6f5;
}

.home-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.home-category-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dce8e8;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 13px 35px rgba(8, 56, 67, .065);
}

.home-category-card__visual {
  position: relative;
  display: block;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, #0b6570, #093b49);
}

.home-category-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.home-category-card:hover .home-category-card__visual img {
  transform: scale(1.04);
}

.home-category-card__visual > span {
  position: absolute;
  right: 15px;
  bottom: 15px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  color: #fff;
  background: rgba(4, 42, 50, .72);
  font-size: 9px;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

.home-category-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 24px 23px 25px;
}

.home-category-card h3 {
  margin: 0 0 9px;
  font-size: 21px;
}

.home-category-card h3 a {
  color: #174750;
}

.home-category-card p {
  min-height: 59px;
  margin: 0 0 14px;
  color: #788c91;
  font-size: 11px;
  line-height: 1.7;
}

.home-category-card__options {
  min-height: 88px;
  padding-top: 4px;
}

.home-category-card__options > span {
  display: block;
  margin-bottom: 8px;
  color: #8a9a9e;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .55px;
  text-transform: uppercase;
}

.home-category-card nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.home-category-card nav a {
  padding: 10px 12px;
  border-radius: 7px;
  color: #397078;
  background: #eef7f6;
  font-size: 9px;
  font-weight: 650;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
}
@media (max-width: 991px) {
  .home-category-card nav a,
  .home-category-card__link {
    min-width: 44px;
    min-height: 44px;
    padding: 10px 12px;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
  }
}

.home-category-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #edf2f2;
  color: #0b8586;
  font-size: 10px;
  font-weight: 800;
}

.home-process {
  padding: 96px 0 104px;
  background: #073f4c;
}

.home-section-heading--light h2 {
  color: #fff;
}

.home-section-heading--light p {
  color: #b4cccf;
}

.home-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.home-process-grid > div {
  position: relative;
  min-height: 250px;
  padding: 27px 23px;
  border: 1px solid rgba(190, 221, 222, .18);
  border-radius: 17px;
  background: rgba(255,255,255,.055);
}

.home-process-grid > div > span {
  position: absolute;
  top: 20px;
  right: 20px;
  color: rgba(255,255,255,.28);
  font-size: 11px;
  font-weight: 800;
}

.home-process-grid > div > i {
  display: grid;
  width: 47px;
  height: 47px;
  margin-bottom: 34px;
  place-items: center;
  border-radius: 13px;
  color: #70d7cf;
  background: rgba(81, 202, 194, .12);
  font-size: 19px;
}

.home-process-grid h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 17px;
}

.home-process-grid p {
  margin: 0;
  color: #a9c2c5;
  font-size: 11px;
  line-height: 1.7;
}

.home-tools {
  padding: 100px 0;
  background: #fff;
}

.home-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-tool-card {
  display: grid;
  min-height: 290px;
  grid-template-columns: 68px 1fr;
  gap: 22px;
  padding: 38px 36px;
  border: 1px solid #dbe8e8;
  border-radius: 20px;
  color: #fff;
  background: #0b4a55;
}

.home-tool-card--service {
  background: #0a696e;
}

.home-tool-card:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(7, 56, 68, .15);
}

.home-tool-card > i {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 16px;
  color: #78d8d1;
  background: rgba(255,255,255,.09);
  font-size: 24px;
}

.home-tool-card span {
  display: block;
  margin-bottom: 9px;
  color: #6fd2cc;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.3px;
}

.home-tool-card h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 24px;
  line-height: 1.3;
}

.home-tool-card p {
  margin: 0 0 25px;
  color: #bad0d2;
  font-size: 11px;
  line-height: 1.75;
}

.home-tool-card b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 10px;
}

.home-faq {
  padding: 90px 0 100px;
  background: #eff6f5;
}

.home-faq-list {
  max-width: 920px;
  margin: 0 auto;
}

.home-faq-list details {
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid #dae7e7;
  border-radius: 14px;
  background: #fff;
}

.home-faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 21px;
  color: #244f57;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.home-faq-list summary::-webkit-details-marker {
  display: none;
}

.home-faq-list summary i {
  color: #0c9997;
  font-size: 11px;
  transition: transform .2s ease;
}

.home-faq-list details[open] summary i {
  transform: rotate(45deg);
}

.home-faq-list p {
  margin: 0;
  padding: 0 21px 20px;
  color: #667f84;
  font-size: 12px;
  line-height: 1.75;
}

.home-final-cta {
  padding: 0 0 100px;
  background: #eff6f5;
}

.home-final-cta > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 42px 48px;
  border-radius: 21px;
  background: #073f4c;
}

.home-final-cta h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 31px;
  line-height: 1.25;
}

.home-final-cta p {
  max-width: 680px;
  margin: 0;
  color: #b4cccf;
  font-size: 11px;
  line-height: 1.7;
}

.home-final-cta > .container > div:last-child {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 9px;
}

.home-final-cta .home-btn {
  width: 225px;
}

@media (max-width: 991px) {
  .home-quick-grid,
  .home-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-tools-grid {
    grid-template-columns: 1fr;
  }

  .home-final-cta > .container {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .index .home-hero .sliders .home-hero__slide {
    height: 570px;
    min-height: 570px;
    padding: 0 5px 50px;
    background-position: 64% center;
  }

  .home-hero__overlay {
    background: linear-gradient(90deg, rgba(3, 35, 43, .94), rgba(3, 42, 51, .62));
  }

  .index .home-hero .sliders h1,
  .index .home-hero .sliders h2 {
    max-width: 430px;
    font-size: 40px;
    letter-spacing: -.8px;
  }

  .index .home-hero .sliders p {
    max-width: 430px;
    font-size: 13px;
    line-height: 1.65;
  }

  .home-hero__actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 270px;
  }

  .home-quick-access {
    padding-top: 56px;
  }

  .home-section-heading,
  .home-section-heading--split {
    display: block;
    margin-bottom: 28px;
    text-align: left;
  }

  .home-section-heading h2 {
    font-size: 29px;
  }

  .home-section-heading--split > a {
    margin-top: 15px;
  }

  .home-quick-grid,
  .home-category-grid,
  .home-process-grid {
    grid-template-columns: 1fr;
  }

  .home-quick-access,
  .home-products,
  .home-categories,
  .home-process,
  .home-tools,
  .home-faq {
    padding-top: 70px;
    padding-bottom: 74px;
  }

  .home-category-card__visual {
    height: 300px;
  }

  .home-category-card p,
  .home-category-card__options {
    min-height: 0;
  }

  .home-process-grid > div {
    min-height: 210px;
  }

  .home-tool-card {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 29px 24px;
  }

  .home-tool-card h3 {
    font-size: 21px;
  }

  .home-final-cta {
    padding: 0 15px 75px;
  }

  .home-final-cta > .container {
    width: 100%;
    padding: 30px 24px;
  }

  .home-final-cta h2 {
    font-size: 24px;
  }

  .home-final-cta > .container > div:last-child,
  .home-final-cta .home-btn {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .index .home-hero .sliders h1,
  .index .home-hero .sliders h2 {
    font-size: 35px;
  }

  .home-category-card__visual {
    height: 255px;
  }
}

/* ===== PROMPT 4.2 — homepage visual hierarchy polish ===== */
.home-hero__overlay {
  background: linear-gradient(90deg, rgba(3, 35, 43, .94) 0%, rgba(3, 42, 51, .78) 40%, rgba(3, 42, 51, .18) 78%);
}
.index .home-hero .sliders h1,
.index .home-hero .sliders h2 { text-shadow: 0 2px 18px rgba(0, 0, 0, .28); }
.index .home-hero .sliders p { color: #d5e6e9; text-shadow: 0 1px 10px rgba(0, 0, 0, .2); }
/* Primary CTA: white on #0eaaa5 was ~2.87:1; deepen for WCAG AA text */
.home-btn--primary {
  background: #087e80;
  box-shadow: 0 12px 28px rgba(8, 126, 128, .28);
  min-height: var(--pc-btn-h, 44px);
}
.home-btn--primary:hover {
  background: #066966;
  box-shadow: 0 16px 32px rgba(6, 105, 102, .34);
}
.home-btn--ghost {
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(4px);
  min-height: var(--pc-btn-h, 44px);
}
.home-eyebrow { color: var(--pc-brand, #0ca7a3); }
.home-section-heading:not(.home-section-heading--light) h2,
.home-category-card h3 a { color: var(--pc-petrol, #123f49); }
.home-section-heading--light h2 { color: #ffffff; }
.home-section-heading--light p { color: #b4cccf; }
.home-quick-grid a {
  border-color: var(--pc-border, #dce9e9);
  border-radius: var(--pc-radius-md, 14px);
  box-shadow: var(--pc-shadow-sm);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.home-quick-grid a:hover { border-color: #7ec9c5; box-shadow: var(--pc-shadow-md); }
.home-quick-grid strong { color: var(--pc-petrol, #244f57); font-size: 15px; }
.home-quick-grid i { width: 32px; height: 32px; background: #e6f7f5; color: var(--pc-brand-strong, #087e80); }
.home-products { background: var(--pc-bg-card, #fff); border-top: 1px solid rgba(223, 234, 234, .7); }
.home-categories { background: var(--pc-bg-soft, #eef6f5); }
.home-category-card {
  border-color: var(--pc-border, #dce8e8);
  border-radius: var(--pc-radius-lg, 20px);
  box-shadow: var(--pc-shadow-sm);
  min-height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.home-category-card:hover { transform: translateY(-3px); box-shadow: var(--pc-shadow-md); text-decoration: none; }
.home-category-card__visual { aspect-ratio: 4 / 3; height: auto; min-height: 220px; }
.home-category-card__link { min-height: 44px; align-items: center; color: var(--pc-brand-strong, #0b8586); }
.home-process { background: var(--pc-petrol-ink, #073f4c); }
.home-faq { background: var(--pc-bg, #f5f9f9); }
.home-tools { background: #fff; border-top: 1px solid var(--pc-border, #e5eeee); }
.home-final-cta { background: var(--pc-bg-soft, #eff6f5); padding-top: 12px; }
.home-final-cta > .container {
  background: linear-gradient(125deg, var(--pc-petrol-deep, #083f4b), #0a5f68 70%, #0c7a7c);
  box-shadow: 0 22px 50px rgba(6, 54, 66, .22);
  border: 1px solid rgba(255, 255, 255, .06);
}
.home-final-cta .home-btn--primary,
.home-final-cta .home-btn--ghost { width: 100%; min-width: 225px; }
@media (max-width: 767px) {
  .home-hero__actions { max-width: none; width: 100%; gap: 10px; }
  .home-hero__actions .home-btn { width: 100%; }
  .index .home-hero .sliders .home-hero__slide { height: 570px; min-height: 570px; max-height: 570px; padding: 48px 0 56px; }
  .home-quick-grid { grid-template-columns: 1fr; gap: 12px; }
  .home-quick-grid a { min-height: 96px; }
  .home-category-card__visual { min-height: 200px; }
  .home-final-cta > .container { flex-direction: column; align-items: stretch; gap: 22px; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .home-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .home-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
