body {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  background: #ffffff;
  color: var(--brand-base, #123a5a);
}

.home-grid {
  --grid-bg-overlay: none;
  --grid-bg-image: none;
  --shared-bg-size: auto;
  --shared-bg-position: center;
}

.mobile-home-header {
  display: none;
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.8rem 0.65rem;
  background: white;
  border-bottom: 1px solid rgba(18, 58, 90, 0.12);
  backdrop-filter: blur(6px);
}

.mobile-home-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.mobile-home-brand:visited,
.mobile-home-brand:hover,
.mobile-home-brand:active {
  color: inherit;
  text-decoration: none;
}

.mobile-home-logo {
  width: 34px;
  height: auto;
}

.mobile-home-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-home-header-nav {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  margin-left: auto;
  position: relative;
}

.mobile-contact-btn {
  min-height: 40px;
  padding: 0.5rem 0.9rem;
}

.mobile-menu-toggle {
  appearance: none;
  border: 1px solid rgba(18, 58, 90, 0.2);
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-base, #123a5a);
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease, transform 140ms ease;
}

.mobile-menu-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--energy-primary, #20d6d1);
  color: var(--energy-primary, #20d6d1);
}

.mobile-home-menu[hidden] {
  display: none !important;
}

.mobile-home-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 170px;
  padding: 0.5rem;
  border-radius: 12px;
  border: 1px solid rgba(18, 58, 90, 0.14);
  background: rgba(245, 247, 250, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 34px rgba(11, 31, 51, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 30;
}

.mobile-home-menu-btn {
  justify-content: flex-start;
  text-align: center;
  width: 100%;
  min-height: 44px;
  font-size: 0.98rem;
}

.mobile-home-header.is-menu-open .mobile-menu-toggle {
  border-color: var(--energy-primary, #20d6d1);
  color: var(--energy-primary, #20d6d1);
}

.sec {
  --mobile-order: 0;
  --sec-bg-image: none;
  --sec-bg-position: center;
  --sec-bg-overlay: linear-gradient(rgba(18, 58, 90, 0), rgba(18, 58, 90, 0));
  position: relative;
  overflow: hidden;
  transition: background-color 220ms ease, border-color 220ms ease;
  background-color: var(--ui-light, #f5f7fa);
  background-image: var(--sec-bg-overlay), var(--sec-bg-image);
  background-position: center, var(--sec-bg-position);
  background-size: auto, cover;
  background-repeat: no-repeat, no-repeat;
  border-radius: 16px;
  border: 1px solid transparent;
  padding: 18px;
  box-sizing: border-box;
  z-index: 0;
}

.sec::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    var(--accent-purple, #9131e1),
    var(--accent-orange, #ff7a00),
    var(--accent-purple, #9131e1)
  );
  opacity: 0.35;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.sec-2:not(.has-photo) {
  background: none;
}

.sec-2:not(.has-photo)::before {
  background: none;
}

.tile-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.tile-content.tile-content-center {
  justify-content: center;
}

.tile-content h1,
.tile-content h2 {
  margin: 0;
  margin-bottom: 15px;
}

.tile-content h2 {
  font-size: clamp(1.3rem, 1.02rem + 0.34vw, 1.58rem);
  font-weight: 700;
  margin-top: 0.35rem;
  margin-bottom: 10px;
  line-height: 1.2;
}

.tile-content h3 {
  font-size: clamp(1rem, 0.93rem + 0.18vw, 1.12rem);
  line-height: 1.2;
}

.tile-content .tile-subheader {
  margin: 0 0 0.45rem;
  font-size: clamp(0.98rem, 0.93rem + 0.12vw, 1.06rem);
  font-weight: 700;
  line-height: 1.3;
}

.tile-capabilities h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tile-capabilities .section-icon {
  margin-left: auto;
  font-size: 0.95em;
  line-height: 1;
}

.section-title-centered {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding-left: 1.2em;
  text-align: left;
  margin-bottom: 10px !important;
}

.section-title-centered .section-icon {
  position: absolute;
  left: 0;
  top: 0.08em;
  margin: 0;
}

.sec:not(.has-photo) .tile-content {
  justify-content: flex-start;
  align-items: stretch;
  text-align: left;
}

.sec:not(.has-photo) .tile-content.tile-content-center {
  justify-content: center;
}

.sec:not(.has-photo) .section-title-centered {
  width: 100%;
  margin: 0;
  padding-left: 0;
  text-align: left;
}

.sec:not(.has-photo) .section-title-centered .section-icon {
  position: static;
  margin-right: 0.35rem;
}

.tile-content p {
  margin: 0;
  max-width: 52ch;
  font-size: clamp(0.96rem, 0.92rem + 0.1vw, 1rem);
  line-height: 1.42;
  margin-bottom: 0.28rem;
}

.tile-text-group {
  margin-bottom: 0.7rem;
}


.tile-text-group > p {
  margin-bottom: 0.7rem;
}

.tile-text-group:last-child {
  margin-bottom: 0;
}

.tile-text-p-form {
  margin-top: 0 !important;
  margin-bottom: 0.45rem !important;
}

.contact-icon-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.contact-icon-btn {
  width: 4rem;
  height: 4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  border: 1px solid rgba(18, 58, 90, 0.2);
  color: var(--brand-base, #123a5a);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.82);
  transition: transform 140ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.contact-icon-btn:hover {
  transform: translateY(-1px);
  border-color: var(--energy-primary, #20d6d1);
  color: var(--energy-primary, #20d6d1);
}

.contact-enquiry-form {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.contact-form-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-form-input,
.contact-form-textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(18, 58, 90, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--brand-base, #123a5a);
  font: inherit;
  padding: 0.58rem 0.68rem;
}

.contact-form-textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-form-submit {
  align-self: flex-start;
  border: 1px solid var(--brand-base, #123a5a);
  background: var(--brand-base, #123a5a);
  color: var(--ui-light, #f5f7fa);
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.contact-form-submit:hover {
  border-color: var(--energy-primary, #20d6d1);
  color: var(--energy-primary, #20d6d1);
}

.contact-form-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.contact-form-status {
  min-height: 1.1rem;
  margin: 0.1rem 0 0;
  font-size: 0.92rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.contact-form-status.is-success {
  color: #157347;
}

.contact-form-status.is-error {
  color: #9f1239;
}

.sec.has-photo .tile-text-box {
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  padding: 16px;
}

.sec.has-photo .tile-content .tile-text-box h1,
.sec.has-photo .tile-content .tile-text-box h2,
.sec.has-photo .tile-content .tile-text-box h3,
.sec.has-photo .tile-content .tile-text-box p {
  color: var(--brand-base, #123a5a);
}

.sec.has-photo .tile-content h1,
.sec.has-photo .tile-content h2,
.sec.has-photo .tile-content h3,
.sec.has-photo .tile-content p {
  color: var(--ui-light, #f5f7fa);
}

.home-grid.home-grid-shared-bg .sec:not(.sec-2):not(.section-has-own-bg):not(.section-no-shared-bg) {
  background-color: transparent;
  background-image: var(--grid-bg-overlay, none), var(--grid-bg-image, none);
  background-repeat: no-repeat, no-repeat;
  background-size: var(--shared-bg-size, auto), var(--shared-bg-size, auto);
  background-position: var(--shared-bg-position, center), var(--shared-bg-position, center);
}

.home-grid.home-grid-shared-bg.home-grid-bg-loading .sec:not(.sec-2):not(.section-has-own-bg):not(.section-no-shared-bg) {
  background-image: none;
}

.home-grid.home-grid-shared-bg .sec-2:not(.has-photo) {
  background: none;
}

.tile-hero {
  align-items: center;
  text-align: center;
  justify-content: flex-start;
  height: 100%;
  padding-top: 1.1rem;
}

.hero-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: nowrap;
  width: 100%;
  margin-bottom: 1rem;
  color: inherit;
  text-decoration: none;
}

.hero-brand-row:visited,
.hero-brand-row:hover,
.hero-brand-row:active {
  color: inherit;
  text-decoration: none;
}

.hero-logo {
  width: 52px;
  height: auto;
}

.tile-hero-title {
  margin: 0 !important;
  font-size: clamp(1.55rem, 1.18rem + 0.52vw, 1.95rem);
  line-height: 1.1;
  white-space: nowrap;
  text-wrap: nowrap;
}

.hero-nav {
  width: min(330px, 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-inline: auto;
  /*margin-top: auto;*/
  /*padding-top: 0.2rem;*/
  /*border-top: 1px soherolid rgba(18, 58, 90, 0.12);*/
}

.hero-nav-2 {
  margin-top: 0.6rem;
}

.hero-nav-btn {
  appearance: none;
  border: 1px solid rgba(18, 58, 90, 0.18);
  background: transparent;
  backdrop-filter: blur(2px);
  color: var(--brand-base, #123a5a);
  padding: 0.2rem 0.56rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  min-height: 38px;
  cursor: pointer;
  transition: transform 140ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.hero-nav-btn-new {
  border-color: var(--brand-base, #123a5a);
  background: var(--brand-base, #123a5a);
  color: var(--ui-light, #f5f7fa);
  font-size: 0.9rem;
  padding: 0.24rem 0.62rem;
  min-height: 38px;
}

.hero-nav-btn:hover {
  transform: translateY(-1px);
  border-color: var(--energy-primary);
  background: transparent;
}

.hero-nav-btn[aria-current="page"] {
  border-color: var(--energy-primary);
  background: transparent;
  color: var(--energy-primary, #f5f7fa);
}

.hero-nav-btn-new:hover,
.hero-nav-btn-new[aria-current="page"] {
  border-color: var(--brand-base, #123a5a);
  background: var(--brand-base, #123a5a);
  color: var(--energy-primary, #f5f7fa);
}

.hero-cta {
  display: inline-block;
  padding: 0.75rem 1.2rem;
  border-radius: 10px;
  text-decoration: none;
  background: var(--brand-base, #123a5a);
  color: var(--ui-light, #f5f7fa);
}

.hero-cta:visited,
.hero-cta:hover,
.hero-cta:active {
  color: var(--ui-light, #f5f7fa);
}

.floor-wrap {
  position: relative;
  width: 100%;
  height: 0;
  overflow: hidden;
  margin-top: 0;
  opacity: 0;
  transition: height 160ms ease, opacity 160ms ease;
}

.floor {
  --floor-grid-size: 20px;
  position: absolute;
  inset: -20% 0 0;
  background:
    repeating-linear-gradient(
      0deg,
      #33afd3 0,
      #33afd3 2px,
      transparent 2px,
      transparent 20px
    ),
    repeating-linear-gradient(
      100deg,
      #20d6d1 0,
      #20d6d1 2px,
      transparent 2px,
      transparent 20px
    );
  background-size: var(--floor-grid-size) var(--floor-grid-size), var(--floor-grid-size) var(--floor-grid-size);
  background-position: 0 0, calc(var(--floor-grid-size) / 2) calc(var(--floor-grid-size) / 2);
  animation: none;
  transform: scale(2) perspective(300px) rotateX(75deg);
  transform-origin: top center;
  will-change: background-position, transform;
  filter: blur(1px);
  opacity: 0;
}

body.floor-active .floor-wrap {
  height: clamp(84px, 13vh, 140px);
  opacity: 1;
}

body.floor-active .floor {
  animation: floor-move 0.9s linear infinite;
  opacity: 0.1;
}

@keyframes floor-move {
  to {
    background-position: 0 calc(-1 * var(--floor-grid-size)), calc(var(--floor-grid-size) / 2) calc(-1 * var(--floor-grid-size) / 2);
  }
}

@media (max-width: 1200px) {
  .sec {
    padding: 20px;
  }
}

@media (max-width: 992px) and (min-width: 901px) {
  .sec {
    padding: 18px;
  }
}

@media (min-width: 901px) and (max-height: 900px) {


  .home-main {
    padding-bottom: 10px !important;
  }

  .sec {
    padding: 16px;
  }

  .tile-content {
    gap: 8px;
  }

  .tile-content h2 {
    font-size: clamp(1.28rem, 1.01rem + 0.32vw, 1.55rem);
    margin-bottom: 8px;
  }

  .tile-content h3 {
    font-size: clamp(1rem, 0.92rem + 0.16vw, 1.1rem);
    line-height: 1.2;
  }

  .tile-content p {
    font-size: clamp(0.95rem, 0.9rem + 0.15vw, 1rem);
    line-height: 1.4;
  }

  .tile-text-group {
    margin-bottom: 0.55rem;
  }

  .tile-text-group > p {
    margin-bottom: 0.55rem;
  }

  .tile-hero {
    padding-top: 1.1rem;
  }

  .tile-hero-title {
    font-size: clamp(1.4rem, 1.1rem + 0.4vw, 1.7rem);
  }

  .hero-brand-row {
    margin-bottom: 0.85rem;
  }

  .hero-nav {
    gap: 0.35rem;
  }

  .hero-nav-2 {
    margin-top: 0.65rem;
  }

  body.floor-active .floor-wrap {
    height: clamp(56px, 10vh, 86px);
  }
}

@media (min-width: 901px) and (max-height: 760px) {

  .sec {
    padding: 14px;
  }

  .tile-content h2 {
    font-size: clamp(1.18rem, 0.95rem + 0.28vw, 1.38rem);
    margin-bottom: 6px;
  }

  .tile-content h3 {
    font-size: 0.95rem;
    line-height: 1.18;
  }

  .tile-content p {
    font-size: 0.93rem;
    line-height: 1.34;
  }

  .tile-hero {
    padding-top: 0.75rem;
  }

  .tile-hero-title {
    font-size: clamp(1.24rem, 0.98rem + 0.3vw, 1.48rem);
  }

  .hero-brand-row {
    margin-bottom: 0.6rem;
    gap: 0.45rem;
  }

  .hero-logo {
    width: 52px;
  }

  .hero-nav-btn {
    min-height: 38px;
    font-size: 0.9rem;
    padding: 0.2rem 0.55rem;
  }

  .hero-nav-btn-new {
    min-height: 38px;
    font-size: 0.9rem;
    padding: 0.24rem 0.62rem;
  }

  body.floor-active .floor-wrap {
    height: 0;
    opacity: 0;
  }
}

@media (min-width: 901px) and (orientation: portrait) {
  .tile-hero-title {
    font-size: clamp(1.2rem, 0.98rem + 0.28vw, 1.48rem);
  }

  .tile-content h2 {
    font-size: clamp(1.16rem, 0.94rem + 0.28vw, 1.36rem);
  }
}

@media (max-width: 900px) {
  .mobile-home-header {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 25;
    padding: 0.6rem 0.78rem;
    align-items: center;
    gap: 0.68rem;
    border-bottom: none;
  }

  .mobile-home-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(
      90deg,
      var(--accent-purple, #9131e1),
      var(--accent-orange, #ff7a00),
      var(--accent-purple, #9131e1)
    );
    opacity: 0.35;
    pointer-events: none;
  }

  .mobile-home-header .mobile-menu-toggle {
    border: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    width: auto;
    height: auto;
    min-width: 40px;
    min-height: 40px;
    padding: 0.1rem;
    line-height: 1;
    transition: color 160ms ease;
  }

  .mobile-home-header .mobile-menu-toggle .fa-bars {
    font-size: 1.28rem;
  }

  .mobile-home-header .mobile-menu-toggle:hover {
    transform: none;
    border-color: transparent;
    color: var(--energy-primary, #20d6d1);
  }

  .mobile-home-header.is-menu-open .mobile-menu-toggle {
    border-color: transparent;
    color: var(--energy-primary, #20d6d1);
  }

  .mobile-home-header .mobile-home-menu-btn {
    border: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    min-height: 0;
    padding: 0.35rem 0.1rem;
    transition: color 160ms ease;
  }

  .mobile-home-header .mobile-home-menu-btn:hover,
  .mobile-home-header .mobile-home-menu-btn[aria-current="page"] {
    transform: none;
    border-color: transparent;
    background: transparent;
    color: var(--energy-primary, #20d6d1);
  }

  .hero-nav-2 {
    display: none;
  }

  .tile-hero {
    padding-top: 0.5rem;
    height: auto;
  }

  .tile-content {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    justify-content: flex-start;
  }

  .tile-content p {
    font-size: 1rem;
    line-height: 1.35;
  }

  .sec.has-photo .tile-text-box {
    margin-bottom: 100px;
  }

  .sec.has-photo .tile-text-box.tile-text-box-form {
    margin-bottom: 16px;
  }

  .tile-content h2 {
    line-height: 1.1;
  }

  .tile-content h3 {
    font-size: 1.3rem;
    line-height: 1.1;
  }

  .home-main {
    overflow: visible;
    min-height: auto;
    padding-bottom: calc(5.2rem + env(safe-area-inset-bottom));
  }

  .sec,
  .tile-content {
    height: auto;
    min-height: 0;
  }

  .sec {
    font-size: 1rem;
  }

  .mobile-home-header .hero-nav-btn {
    font-size: 1rem;
    line-height: 1.2;
  }

  .mobile-home-header .hero-nav-btn.hero-nav-btn-new {
    font-size: 0.96rem;
    min-height: 38px;
    padding: 0.4rem 0.78rem;
  }
}

@media (min-width: 577px) and (max-width: 900px) {
  .mobile-home-title {
    font-size: 1.24rem;
    line-height: 1.2;
    padding-bottom: 0.06em;
  }
}

@media (max-width: 576px) {
  .mobile-home-header {
    padding: 0.56rem 0.62rem;
    gap: 0.56rem;
  }

  .mobile-home-logo {
    width: 30px;
  }

  .mobile-home-title {
    font-size: 1.16rem;
  }

  .mobile-home-header-nav {
    gap: 0.42rem;
  }

  .mobile-home-header .hero-nav-btn {
    font-size: 1rem;
  }

  .mobile-home-header .hero-nav-btn.hero-nav-btn-new {
    font-size: 0.95rem;
    min-height: 36px;
    padding: 0.38rem 0.72rem;
  }

  .tile-content p {
    font-size: 1rem;
    line-height: 1.45;
  }

  .tile-text-box-form,
  .tile-text-box-form .contact-enquiry-form,
  .tile-text-box-form .contact-form-input,
  .tile-text-box-form .contact-form-textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .contact-form-textarea {
    min-height: 88px;
  }

  .tile-content h2 {
    font-size: 1.45rem;
  }

  .tile-content h3 {
    font-size: 1rem;
  }
}

@media (max-width: 900px) {
  .sec.section-no-shared-bg,
  .sec:not(.has-photo) {
    width: min(100%, 500px);
    max-width: 500px;
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sec,
  .floor {
    transition: none;
    animation: none;
  }
}
