/* WCAG 2.2 AA overrides. Loaded after page CSS so these win without editing the Kadence sheets. */

.a11y-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Keep the testimonial phrase the same size as the h3 it replaces. */
p.kt-testimonial-title {
  margin: 0 0 0.5em;
  font-family: var(--global-heading-font-family);
  font-style: normal;
  font-weight: normal;
  font-size: 28px;
  line-height: 1.3;
  color: var(--global-palette3);
}

@media all and (max-width: 767px) {
  p.kt-testimonial-title {
    font-size: 24px;
  }
}

/* Cream ring on the dark header once keyboard focus turns outlines back on.
   !important wins against the browser's default focus outline. */
body:not(.hide-focus-outline) a.brand.has-logo-image:focus,
a.brand.has-logo-image:focus-visible {
  outline: 2px solid #fbf7e9 !important;
  outline-offset: 4px !important;
}

/* Ink ring with a cream halo so focus shows on both light pages and dark heroes. */
body:not(.hide-focus-outline) :focus-visible {
  outline: 2px solid #161407 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 5px #fbf7e9 !important;
}

fieldset.studio-enquiry {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}

.kt-adv-heading100_624ab5-ea a,
.kt-adv-heading815_4a1c53-f1 a,
.kt-adv-heading826_4db5f8-05 a,
.kt-adv-heading830_4291a6-3a a,
.kt-adv-heading835_3cb0db-3b a,
.kt-adv-heading839_5272bb-4c a,
.kt-adv-headinghm_3cb0db-3b a {
  color: inherit;
  text-underline-offset: 0.18em;
}

.kb-row-layout-id815_16ea85-d2 .wp-block-kadence-advancedbtn,
.kb-row-layout-id826_183035-82 .wp-block-kadence-advancedbtn,
.kb-row-layout-id830_57571b-42 .wp-block-kadence-advancedbtn,
.kb-row-layout-id835_42cd61-4f .wp-block-kadence-advancedbtn,
.kb-row-layout-id839_4bc65a-78 .wp-block-kadence-advancedbtn,
.kb-row-layout-idhm_42cd61-4f .wp-block-kadence-advancedbtn {
  margin-top: 1.25rem;
}

/* Centre the hero call to action on service pages that share the full-bleed hero.
   The Kadence button class is also used in later sections, so only this hero row is centred.
   The home hero is two columns, so this single-column rule stays on the service pages.
   One declaration covers desktop, tablet and mobile. */
.kb-row-layout-wrap:has(> .lcp-hero) > .kt-has-1-columns .wp-block-kadence-advancedbtn.kb-buttons-wrap {
  justify-content: center;
}

/* About Me keeps the gold fill. Ink label clears 4.5:1. */
.wp-block-kadence-advancedbtn .kb-btn9_fc6601-51.kb-button,
.wp-block-kadence-advancedbtn .kb-btn9_fc6601-51.kb-button .kt-btn-inner-text {
  color: #161407;
}

/* Page heroes whose text sits on a light photograph. Dark through the middle, photo still visible at the top.
   The home hero uses the same scrim at every width. */
.kb-row-layout-id826_183035-82 > .kt-row-layout-overlay,
.kb-row-layout-id835_42cd61-4f > .kt-row-layout-overlay,
.kb-row-layout-id815_16ea85-d2 > .kt-row-layout-overlay,
.kb-row-layout-id839_4bc65a-78 > .kt-row-layout-overlay,
.kb-row-layout-id9_e95f25-f4 > .kt-row-layout-overlay {
  opacity: 1;
  background: linear-gradient(
    180deg,
    rgba(22, 20, 7, 0.2) 0%,
    rgba(22, 20, 7, 0.5) 30%,
    rgba(22, 20, 7, 0.84) 46%,
    rgba(22, 20, 7, 0.86) 68%,
    rgba(22, 22, 22, 0.9) 100%
  );
}

/* Home subtitle is opaque white. The 72% white sat under 4.5:1 on the desktop photograph. */
.wp-block-kadence-advancedheading.kt-adv-heading9_a8d2ce-85,
.wp-block-kadence-advancedheading.kt-adv-heading9_a8d2ce-85[data-kb-block="kb-adv-heading9_a8d2ce-85"],
.wp-block-kadence-advancedheading.kt-adv-heading9_a8d2ce-85 mark.kt-highlight,
.wp-block-kadence-advancedheading.kt-adv-heading9_a8d2ce-85[data-kb-block="kb-adv-heading9_a8d2ce-85"] mark.kt-highlight {
  color: #fff;
}

/* Closing portrait bands. Ink with a whisper of brown so white body text clears 4.5:1. */
.kb-row-layout-id9_4fa07e-bc > .kt-row-layout-overlay,
.kb-row-layout-id73_e01863-e7 > .kt-row-layout-overlay,
.kb-row-layout-id830_4cf2a2-e8 > .kt-row-layout-overlay,
.kb-row-layout-id815_a96eef-e3 > .kt-row-layout-overlay,
.kb-row-layout-idhm_513431-ff > .kt-row-layout-overlay,
.kb-row-layout-id835_513431-ff > .kt-row-layout-overlay,
.kb-row-layout-id826_05bf58-8c > .kt-row-layout-overlay,
.kb-row-layout-id839_9f77af-93 > .kt-row-layout-overlay {
  opacity: 1;
  background: linear-gradient(
    105deg,
    rgba(22, 20, 7, 0.86) 0%,
    rgba(22, 20, 7, 0.8) 58%,
    rgba(48, 34, 14, 0.84) 100%
  );
}

/* Home quote band. The centered paragraph sits on the light end of the old overlay. */
.kb-row-layout-id9_43cb35-01 > .kt-row-layout-overlay {
  opacity: 1;
  background: linear-gradient(180deg, rgba(22, 20, 7, 0.78) 0%, rgba(22, 20, 7, 0.88) 100%);
}

/* Related-post pagination controls are 24px. */
.entry-related-carousel .splide__pagination__page {
  width: 24px;
  height: 24px;
  margin: 4px;
}

/* More is a dropdown toggle. Keep the same caret, and open on hover or keyboard focus. */
.header-navigation a.nav-parent-toggle {
  cursor: pointer;
}

.header-navigation.nav--toggle-sub li.menu-item-toggle-only:focus-within > ul.sub-menu {
  display: block;
}

/* Phone menu: the More control is the whole row, with the same caret on the right.
   The theme rule pins .drawer-sub-toggle over a link. More has no link, so the button stays in the row. */
.mobile-navigation.drawer-navigation-parent-toggle-true .drawer-nav-drop-wrap > button.nav-parent-toggle.drawer-sub-toggle {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 1;
  display: block;
  width: 100%;
  margin: 0;
  padding: 1em 0.5em;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: left;
  text-transform: none;
  cursor: pointer;
  appearance: none;
}

.mobile-navigation .nav-parent-toggle .dropdown-nav-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.9em;
  height: 0.9em;
  margin: 0;
  padding: 0;
  font-size: 0.9em;
  line-height: inherit;
  transform: translateY(-50%);
  pointer-events: none;
}
