/**
 * Moonbow theme overrides (from HTML home).
 */

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

.custom-logo-link img,
.custom-logo {
  max-height: 40px;
  width: auto;
}
.slideshow.is-embed {
  position: relative;
  inset: auto;
  height: 100svh;
  width: 100%;
  z-index: 1;
}
.at-banner-thumb {
  min-height: 70vh;
  background-color: #111;
}
.at-banner-thumb.meaning-cta {
  height: auto !important;
  min-height: 100svh;
  overflow: hidden;
}
.at-banner-thumb.meaning-cta > img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transform: none !important;
}
.at-banner-thumb.meaning-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.28) 0%, rgba(8, 8, 10, 0.12) 45%, rgba(8, 8, 10, 0.38) 100%);
}
.meaning-cta__overlay {
  position: relative !important;
  inset: auto !important;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: 7rem 0 4rem;
}
.meaning-cta__shell {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5.5vw, 96px);
}
.meaning-cta__box {
  width: 100%;
  margin: 0;
  padding: 2rem 2.25rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.meaning-cta__body {
  width: 100%;
  --bs-gutter-x: 2.5rem;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.meaning-cta__copy {
  max-width: 36rem;
}
.meaning-cta__form-col {
  display: flex;
  justify-content: flex-end;
}
@media (min-width: 992px) {
  .meaning-cta__body > .col-lg-7 {
    padding-left: 0;
  }
  .meaning-cta__form-col {
    padding-right: 0;
  }
}
.glass-touch {
  position: relative;
  overflow: visible;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: 0;
  flex: 0 0 auto;
  padding: 1.35rem 1.25rem 1.2rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  color: #fff;
}
.glass-touch::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 48%, rgba(255, 255, 255, 0.08) 100%);
}
.glass-touch__title {
  position: relative;
  z-index: 1;
  margin: 0 0 1rem;
  text-align: left;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}
.glass-touch__fields {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}
.glass-touch__field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 0 0.9rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.glass-touch__field:focus-within {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}
.glass-touch__field--area {
  align-items: flex-start;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-radius: 4px;
}
.glass-touch__icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  line-height: 0;
}
.glass-touch__field--area .glass-touch__icon {
  height: 1.45em;
  margin-top: 0;
}
.glass-touch__field input,
.glass-touch__field textarea,
.glass-touch__dropdown-label {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  padding: 0.75rem 0;
  appearance: none;
}
.glass-touch__field textarea {
  resize: none;
  min-height: 92px;
  padding: 0;
  margin: 0;
  display: block;
}
.glass-touch__field input::placeholder,
.glass-touch__field textarea::placeholder {
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-weight: 600;
  opacity: 1;
}
.glass-touch__dropdown {
  position: relative;
  z-index: 30;
}
.glass-touch__dropdown-toggle {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: #fff;
}
.glass-touch__dropdown-label {
  flex: 1;
  min-width: 0;
  padding: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.glass-touch__dropdown-caret {
  flex: 0 0 auto;
  width: 12px;
  height: 8px;
  margin-left: 0.4rem;
  color: #fff;
  transition: transform 0.2s ease;
}
.glass-touch__dropdown.is-open .glass-touch__dropdown-caret {
  transform: rotate(180deg);
}
.glass-touch__dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  margin: 0;
  padding: 6px;
  border-radius: 4px;
  background: #16161c;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  color: #fff;
  transform: translateZ(0);
}
.glass-touch__dropdown.is-open .glass-touch__dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.glass-touch__check {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 0 12px;
  border-radius: 4px;
  background: #2b2b33;
  cursor: pointer;
  color: #fff;
}
.glass-touch__check:hover,
.glass-touch__check:has(input:focus-visible) {
  background: #3a3a44;
}
.glass-touch__check:has(input:checked) {
  background: #4a4a55;
}
.glass-touch__check input {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 16px;
  border: 1.5px solid #fff;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
}
.glass-touch__check input:checked {
  background-color: #fff;
  border-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23141418' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2 6.4 11.1 12.5 4.8'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}
.glass-touch__check::after {
  content: attr(data-label);
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  white-space: nowrap;
}
.glass-touch__submit {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  will-change: transform;
}
.glass-touch__submit-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
  z-index: 0;
}
.glass-touch__submit-shine {
  position: absolute;
  top: 0;
  left: -60%;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: skewX(-18deg);
  z-index: 1;
  pointer-events: none;
}
.glass-touch__submit-label,
.glass-touch__submit-check {
  position: relative;
  z-index: 2;
}
.glass-touch__submit-check {
  position: absolute;
  opacity: 0;
  transform: scale(0.4);
}
.glass-touch.is-sent .glass-touch__submit {
  background: #fff;
  color: #141418;
  border-color: #fff;
}
@media (max-width: 991px) {
  .at-banner-thumb.meaning-cta {
    min-height: 0;
  }
  .meaning-cta__overlay {
    min-height: 0;
    padding: 6rem 0 3rem;
  }
  .meaning-cta__box {
    padding: 1.25rem 1rem;
  }
  .meaning-cta__form-col {
    justify-content: stretch;
  }
  .glass-touch {
    max-width: none;
    margin-left: 0;
  }
  .glass-touch__fields {
    grid-template-columns: 1fr;
  }
}

/* —— Dynamic header / footer (modern polish) —— */

/*
 * Match home.html: header sits above #smooth-wrapper.
 * ScrollSmoother sets #smooth-wrapper to position:fixed; inset:0 so the
 * hero fills the viewport behind the floating pill header.
 */
.moonbow-site-header {
  position: relative;
  z-index: 100;
  width: 100%;
}

.moonbow-site-header__bar {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(15, 15, 18, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* WP admin bar: keep fixed smoother below the bar */
body.admin-bar #smooth-wrapper {
  top: 32px !important;
  height: calc(100% - 32px) !important;
}

@media screen and (max-width: 782px) {
  body.admin-bar #smooth-wrapper {
    top: 46px !important;
    height: calc(100% - 46px) !important;
  }
}

/* Elementor home: no white strip above hero when overlay header is active */
.moonbow-elementor-home {
  background-color: transparent;
}

.moonbow-elementor-home > .elementor > .elementor-element:first-child,
.moonbow-elementor-home .elementor-widget-at-moonbow-hero:first-child {
  margin-top: 0;
}

.moonbow-site-header__brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.moonbow-site-header .at-header-enquiry {
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.moonbow-site-header .at-header-enquiry:hover {
  transform: translateY(-1px);
}

.moonbow-site-footer .alt-footer-link-item ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.moonbow-site-footer .alt-footer-link-item a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.25s ease;
}

.moonbow-site-footer .alt-footer-link-item a:hover {
  color: #fff;
}

.moonbow-site-footer .at-footer-copyright {
  letter-spacing: 0.02em;
}

/* Tighten footer: remove the tall void from align-items-end + fz-150 */
.moonbow-site-footer__about {
  padding-top: 2.5rem !important;
  padding-bottom: 2rem !important;
}

.moonbow-site-footer__contact {
  max-width: 100%;
}

.moonbow-site-footer__email {
  font-size: clamp(1.15rem, 2.2vw, 1.75rem) !important;
  line-height: 1.25 !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.moonbow-site-footer__email a {
  display: inline-block;
  max-width: 100%;
}

.moonbow-site-footer__brand {
  font-size: clamp(3.5rem, 10vw, 7.5rem) !important;
  line-height: 0.92 !important;
  letter-spacing: -0.04em;
  white-space: nowrap;
  max-width: 100%;
}

.moonbow-site-footer__brand .fz-80 {
  font-size: clamp(1.5rem, 4vw, 3.5rem) !important;
}

@media (max-width: 991.98px) {
  .moonbow-site-footer__brand {
    white-space: normal;
    text-align: left !important;
  }

  .moonbow-site-footer .text-lg-end {
    text-align: left !important;
  }
}

/* AT Team — match kit staggered spacing (moonnew reference) */
.elementor-widget-at-moonbow-team > .elementor-widget-container {
  padding: 0 !important;
}
.elementor-widget-at-moonbow-team .at-moonbow-section__inner {
  max-width: none !important;
  width: 100%;
  padding: 0 !important;
}
.elementor-widget-at-moonbow-team .sec-6-home-10 {
  padding-top: clamp(48px, 6vw, 100px) !important;
  padding-bottom: clamp(56px, 8vw, 140px) !important;
  overflow: visible !important;
}
.elementor-widget-at-moonbow-team .sec-6-home-10__layout {
  gap: clamp(28px, 4vw, 40px);
}
@media (min-width: 1200px) {
  .elementor-widget-at-moonbow-team .sec-6-home-10__layout > .pin-spacer {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    justify-self: center;
    align-self: start;
    width: 100% !important;
    max-width: min(765px, 100%);
    z-index: 3;
  }
  .elementor-widget-at-moonbow-team .sec-6-home-10__layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(220px, min(28vw, 407px)) minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto;
    gap: clamp(20px, 2.5vw, 32px);
    align-items: start;
  }
  .elementor-widget-at-moonbow-team .sec-6-home-10__title-block {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: center;
    max-width: min(765px, 100%);
    padding: clamp(16px, 3vw, 48px) 0;
  }
  .elementor-widget-at-moonbow-team .sec-6-home-10__member {
    max-width: 407px;
  }
  .elementor-widget-at-moonbow-team .sec-6-home-10__member--1 {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  .elementor-widget-at-moonbow-team .sec-6-home-10__member--2 {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin-top: clamp(48px, 12vw, 200px) !important;
  }
  .elementor-widget-at-moonbow-team .sec-6-home-10__member--3 {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    margin-top: clamp(24px, 6vw, 80px) !important;
  }
  .elementor-widget-at-moonbow-team .sec-6-home-10__member--4 {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    margin-top: clamp(40px, 8vw, 120px) !important;
  }
  .elementor-widget-at-moonbow-team .sec-6-home-10__foot {
    grid-column: 2 / -1;
    grid-row: 3;
    justify-self: end;
    max-width: min(775px, 100%);
  }
}

/* Page options: hide title / sidebar — do NOT hide post card titles in archives */
body.moonbow-hide-page-title:not(.post-type-archive) .entry-header > .entry-title,
body.moonbow-hide-page-title.page .entry-header,
body.moonbow-hide-page-title.single .entry-header,
body.moonbow-hide-page-title .page-header,
body.moonbow-hide-page-title .page-title,
body.moonbow-hide-page-title .moonbow-services-archive__header {
  display: none !important;
}

body.moonbow-hide-sidebar #secondary.widget-area,
body.no-sidebar #secondary.widget-area {
  display: none !important;
}

body.moonbow-hide-sidebar #primary.site-main,
body.no-sidebar #primary.site-main,
body.post-type-archive-service #primary.site-main,
.moonbow-blog-single--no-sidebar #primary,
.moonbow-service-single--no-sidebar #primary {
  width: 100%;
  max-width: 100%;
  float: none;
}

.moonbow-blog-single--no-sidebar #secondary,
.moonbow-service-single--no-sidebar #secondary {
  display: none !important;
}

/* AT Legacy CTA — lock kit arrow sizes (inline SVG + img) */
.sec-9-home-8__cta-icon svg,
.elementor-widget-at-moonbow-legacy-cta .sec-9-home-8__cta-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
  color: #1d1d1d;
}
.sec-9-home-8__card-kicker svg,
.elementor-widget-at-moonbow-legacy-cta .sec-9-home-8__card-kicker svg {
  width: 14px;
  height: 13px;
  display: block;
  flex-shrink: 0;
  color: #fefefe;
}
