:root {
  --navy: #202a52;
  --teal: #7dc3bf;
  --mint: #e6f3f0;
  --sage: #bed19c;
  --sagehighlight: #91B257;
  --ink: #253050;
  --darkink: #1A2138;
  --body: #59606b;
  --white: #fff;
  --max: 1428px;
  --radius: 24px;
  --space: 80px;
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, Arial, sans-serif;
  color: var(--body);
  font-size: 18px;
  line-height: 1.65;
  background: #fff;
}

#main { overflow:hidden; }

h1,
h2,
h3 {
  font-family: Fraunces, Georgia, serif;
  color: var(--ink);
  font-weight: 300;
  line-height: 125%;
  margin: 0 0 1rem;
}
h1 {
  font-size: 60px;
  font-weight: 300;
  letter-spacing: -0.1rem;
}
h2 {
  font-size: 50px;
}
h3 {
  font-size: 25px;
  font-weight: 400;
}
.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: -999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 99;
  background: #fff;
  padding: 0.5rem;
}
.utility-bar {
    border-bottom: 1px solid #52B49C;
    color: var(--ink);
    font-weight: 700;
    padding: 10px 0px;
    background: #FFF;
    position: relative;
    z-index: 1;
}
.utility-inner {
  display: flex;
  justify-content: flex-end;
  gap: 40px;
  align-items: center;
  min-height: 34px;
}
.utility-bar a {
  color: var(--ink);
  text-decoration: none;
}

.icon {
  text-indent: -10000px;
  display: block;
  float: left;
  width: 20px;
  margin-right: 10px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

.iconPhone    { background-image:url(../icons/Phone.svg); }
.iconEmail    { background-image:url(../icons/Email.svg); }
.iconYT       { background-image:url(../icons/Youtube.svg); }
.iconFB       { background-image:url(../icons/Facebook.svg); }
.iconAddress  { background-image:url(../icons/address.svg); }
.iconlinkedin { background-image:url(../icons/linkedin.svg); }
.iconhalaxy   { background-image:url(../icons/halaxysq.png); }

.utility-bar .iconPhone { background-image:url(../icons/PhoneNavy.svg); }
.utility-bar .iconEmail { background-image:url(../icons/EmailNavy.svg); }
.utility-bar .iconYT { background-image:url(../icons/YoutubeNavy.svg); }
.utility-bar .iconFB { background-image:url(../icons/FacebookNavy.svg); }
.utility-bar .iconAddress { background-image:url(../icons/addressNavy.svg); }

.divider {
  height: 21px;
  width: 1px;
  background: var(--ink);
}

.dividerDots {
  background: url(../images/dividerDots.svg) no-repeat center;
  width: 5px;
  height: 80px;
}

.site-header {
  background-color:#f7faf9;
  position: relative;
}

.home .site-header {
  background:#f7faf9 url(../images/heroBG.svg) no-repeat 115% 0.5%;
  position: relative;
  z-index: 5;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}
.brand img {
  width: 200px;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.primary-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 1.1rem;
  font-family: Fraunces, Georgia, serif;
  padding: 20px 30px;
  transition: color 0.25s ease-in-out;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  background: #FFF;
  border-radius: 10px;
}

/* Desktop mega-menu.
   The top-level item stretches to the bottom edge of the header and becomes
   a visible tab attached directly to the full-width dropdown. This removes
   the hover gap rather than relying on an invisible hover bridge. */
@media (min-width: 901px) {
  .nav-inner {
    align-items: stretch;
    padding: 20px 0 0;
  }

  .brand {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    position: relative;
    z-index: 1;
  }

  .primary-nav {
    align-items: stretch;
  }

  .primary-nav > ul {
    position: static;
    align-items: stretch;
  }

  .primary-nav > ul > li {
    position: static;
    display: flex;
    align-items: stretch;
  }

  .primary-nav > ul > li > a {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 11;
    height: 80px;
    padding-top: 0;
    padding-bottom: 0;
    border-radius: 10px;
  }

  /* Only items which open a submenu use the attached-tab shape. */
  .primary-nav > ul > li.menu-item-has-children > a {
    border-radius: 10px 10px 0 0;
  }

  .primary-nav > ul > li:hover > a,
  .primary-nav > ul > li:focus-within > a,
  .primary-nav > ul > li.is-open > a {
    background: #fff;
  }

  .primary-nav > ul > li:not(.menu-item-has-children):hover > a,
  .primary-nav > ul > li:not(.menu-item-has-children):focus-within > a,
  .primary-nav > ul > li:not(.menu-item-has-children).is-open > a {
    border-radius: 10px;
  }

  .primary-nav > ul > li.menu-item-has-children:hover > a,
  .primary-nav > ul > li.menu-item-has-children:focus-within > a,
  .primary-nav > ul > li.menu-item-has-children.is-open > a {
    border-radius: 10px 10px 0 0;
  }

  /* Halaxy sits in the same 80px navigation row as the text links. */
  .primary-nav > ul > li > a.halaxy-link {
    height: 80px;
    width: 90px;
    padding: 0 !important;
    background-position: center;
    background-size: 90px auto;
    border-radius: 10px;
  }

.primary-nav > ul > li > .sub-menu {
  position: absolute;
  background: rgba(255, 255, 255, 0.97);
  left: 5%;
  top: 80%;
  width: 90%;
  padding: 40px 100px;
  height: auto;
  z-index: 10;
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0);
  transition: opacity 0.5s ease, visibility 0.5s ease;
  border-radius: 20px;
  box-shadow: 10px 10px 30px 5px rgba(78, 159, 152, 0.20);}

  .primary-nav > ul > li:hover > .sub-menu,
  .primary-nav > ul > li:focus-within > .sub-menu,
  .primary-nav > ul > li.is-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .primary-nav > ul > li > .sub-menu > .menu-item {
    float: left;
    width: 25%;
  }

  .primary-nav > ul > li > .sub-menu > .menu-item > a {
    padding: 0;
    background: transparent;
    border-radius: 0;
  }
}

.primary-nav li .sub-menu .sub-menu .menu-item {
    float: none;
    width: auto;
}

.primary-nav li .sub-menu .sub-menu {
    padding: 20px 0 0;
    margin: 0;
    float: none;
    position: relative;
    top: 0;
}

.primary-nav li .sub-menu .sub-menu a {
    display: block;
    padding: 5px 0;
    font-size: 85%;
    font-weight: 300;
}

ul.sub-menu { display:none; }

/* The desktop top-level submenu is visually hidden rather than display:none,
   allowing focus-within to keep it available to keyboard users. */
@media (min-width: 901px) {
  .primary-nav > ul > li > ul.sub-menu {
    display: block;
  }

  /* Tertiary links remain visible as stacked lists within each mega-menu column. */
  .primary-nav > ul > li > ul.sub-menu > li > ul.sub-menu {
    display: block;
  }
}

.primary-nav .sub-menu a:hover { color:var(--teal); }

.halaxy-link:hover, 
.halaxy-link {
    font-weight: 700;
    background: url(../images/Halaxy.svg) no-repeat center !important;
    text-indent: -10000px;
    display: block;
    width: 130px;
    height: 80px;
    padding: 0 20px !important;
    border-radius: 10px;
}

.halaxy-link:hover { background-color:#FFF !important; }
.menu-toggle {
  display: none;
}
.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  border-radius: 15px 0 15px 15px;
  padding: 15px 30px;
  font-weight: 700;
  font-size: 17px;
  transition: all 0.5s ease-in-out;
}

.button-ink       { background-color:var(--ink); color:var(--white); }
.button-teal      { background-color:var(--teal); color:var(--ink); }
.button-sage      { background-color:var(--sage); color:var(--ink); }
.button-navy      { background-color:var(--navy); color:var(--white); }
.button-white     { background-color:var(--white); color:var(--ink); }

.button:hover,
.button-secondary:hover { background-color: var(--darkink); color:var(--white); }
.button-teal:hover,
.button-sage:hover,
.button-white:hover { background-color:var(--darkink); color:var(--white); }
.button-ink:hover,
.button-navy:hover { background-color:var(--teal); color:var(--ink); }

.link-arrow,
.button-secondary {
  background: url(../icons/ArrowR.svg) right center no-repeat;
  color: #4e9f98;
}
.services-slider-navigation { margin-top:20px; }

button.services-slider-prev,
button.services-slider-next {
    background: #FFF url(../icons/ArrowR.svg) center center no-repeat;
    border: none;
    height: 40px;
    width: 40px;
    font-size: 0;
    border-radius: 10px;
    background-size: 15px;

}

button.services-slider-prev { background-image: url(../icons/ArrowL.svg); }
button.swiper-button-disabled { opacity:.5; }

.section {
  position: relative;
  padding: var(--space) 0;
}
.hero {
  overflow: hidden;
  background: #f7faf9 url(../images/hero-shape-mid.svg) no-repeat -10% 140% fixed;
  padding: 80px 0;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:url(../images/heroBG.svg) no-repeat 115% 50%;
  opacity: 0.9;
}

.page-id-195 .hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background: url(../images/full_colour_shape.svg) no-repeat -25% 50%;
    opacity: 0.9;
    transform: rotate(-53deg);
    transform: scaleX(-1);
    z-index: 1;
}

.hero-sub {
    max-height: 600px;
    overflow: hidden;
}

.hero-sub:before { background-position: 125% 52%; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 6rem;
  align-items: center;
}

.hero-sub .hero-grid {
    align-items: start;
    grid-template-columns: 1fr 0.75fr;
    gap: 12rem;
}


.hero-sub .hero-media { margin-top:-50px; }
.eyebrow {
  text-transform: uppercase;
  font-size: 1rem;
  color: #4e9f98;
  font-weight: 700;
}
.hero-media img,
.round-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 10px solid #fff;
}
.hero-intro { font-size:18px; max-width:550px }
.button-row {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  margin-top: 2rem;
}
.image-text-grid,
.split-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 4rem;
  align-items: center;
}

.image-text-grid {
  grid-template-columns: 0.6fr 2fr;
}
.image-text-grid img {
    border-radius: 50% 50% 0 50%;
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
}


.intro-copy {
  font-size: 1.22rem;
  color: var(--ink);
}

.expertise-section        { padding-top:0; }
.expertise-section .container   { border-top:1px solid var(--mint); padding-top:80px; }
.expertise-header,
.section-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem 3rem;
}
.expertise-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 1rem;
  align-items: start;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}
.expertise-item img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.services-section {
  background: var(--mint) url(../images/mid-shape-dark.svg) no-repeat -5% -40% fixed;
  overflow: hidden;
}

.services-section:after {
  content: "";
  position: absolute;
  background: url(../images/full_colour_shape.svg) no-repeat;
  opacity: 1;
  height: 1200px;
  width: 1200px;
  top: -400px;
  right: -580px;
  z-index: 0;
  pointer-events: none;
}

.services-section .container {
  z-index: 1;
  position: relative;
  overflow: visible;
}

.services-header-content {
    display: grid;
    grid-template-columns: 25vw 35vw auto;
    gap: 40px;
    align-items: center;
}

.page-id-170 .services-header-content { grid-template-columns: 23vw 33vw auto; }

/* Homepage Image/Text */

.home .section.image-text {
    padding: 0;
    overflow: hidden;
}
.home .section.image-text .container {
    padding: 0;
    margin: 0;
    width: auto;
    grid-template-columns: 1fr 1fr;
    height: auto;
    align-items: self-start;
}

.home .image-text-grid img {
    border-radius: 0;
    aspect-ratio: 1;
    object-fit: cover;
    height: auto;
    position: relative;
    top: -250px;
}

.home .image-text .image {
    max-height: 600px;
    border-radius: 0px 100px 100px 0px;
    overflow: hidden;
}

.home .image-text .content {
    padding: 80px 150px 80px 60px;
}

.home .section.image-text:before {
    content: "";
    position: fixed;
    right: -13%;
    top: 50%;
    width: 1600px;
    height: 1600px;
    transform: translateY(-50%) rotate(125deg);
    background: url(../images/mid-shape-dark.svg) no-repeat center / contain;
    opacity: 0.9;
    z-index: -1;
}

/* Standard card grids outside the Swiper component */
.cards-grid:not(.swiper-wrapper) {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.cards-grid.cols-2:not(.swiper-wrapper) {
  grid-template-columns: repeat(2, 1fr);
}

.cards-grid.cols-3:not(.swiper-wrapper) {
  grid-template-columns: repeat(3, 1fr);
}

.cards-grid.cols-4:not(.swiper-wrapper) {
  grid-template-columns: repeat(4, 1fr);
}

.service-card {
  background: #fff url(../images/sml-shape.svg) no-repeat;
  border-radius: 18px;
  overflow: hidden;
  padding: 40px 40px 80px;
  min-height: 100%;
  box-shadow: 0 10px 30px rgba(32, 42, 82, 0.05);
}

.service-card.image-top {
  background-position: 135% -50px;
}

.service-card.image-bottom {
  background-position: -45% 105%;
}

.service-card.image-top img {
  margin: -100px 0 20px -90px;
}

/*
 * Services Swiper
 *
 * Swiper controls slide widths and horizontal movement.
 * No overflow-x:auto or scroll-snap is applied to the wrapper because
 * either would create a clipping/scroll container.
 */
.services-section .services-slider.swiper {
  width: 100%;
  overflow: visible;
}

.services-slider .swiper-wrapper {
  display: flex;
  flex-wrap: nowrap;
  overflow: visible;
}

.services-slider .swiper-slide {
  flex-shrink: 0;
  width: auto;
  height: auto;
}

.home .services-slider .service-card-5 {
    background: var(--ink);
    color: #FFF;
    padding: 260px 40px 40px;
}
.home .services-slider .service-card-5:before {
    content: "";
    position: absolute;
    right: -30%;
    top: 8%;
    width: 800px;
    height: 800px;
    transform: translateY(-50%) rotate(-95deg);
    background: url(../images/white_outline_shape.svg) no-repeat center / contain;
    opacity: 0.9;
    z-index: -1;
}

.home .services-slider .service-card-5 h3 { color:var(--mint); }

/* Keep navigation inside the normal container while slides may overflow it */
.services-slider-navigation {
  position: relative;
  z-index: 2;
}

.service-card.image-bottom img {
    margin: 20px 0 -100px 40px;
}
.service-card img {
  width: 100%;
  object-fit: cover;
  border-radius: 50%;
  width: calc(100% + 3.6rem);
  max-width: none;
  aspect-ratio: 1;
}

.service-card.image-none { background:#FFF; }
.service-card .link-arrow { position:absolute; bottom:40px; }
.link-arrow {
  color: #4e9f98;
  text-decoration: none;
  font-weight: 700;
  background: url(../icons/ArrowR.svg) right center no-repeat; 
  padding-right: 30px;
}

.split-section {
    background-color: #fff;
    background-image: url(../images/full_colour_shape.svg);
    background-repeat: no-repeat;
    background-position: 145% -300px;
    background-attachment: fixed;
}
.split-section--white { background-color: #fff; }
.split-section--navy  { background-color: var(--navy); }
.split-section--teal  { background-color: var(--teal); }
.split-section--mint  { background-color: var(--mint); }
.split-section--sage  { background-color: var(--sage); }
.split-section--ink   { background-color: var(--ink); }

.split-section--navy,
.split-section--teal,
.split-section--mint,
.split-section--sage,
.split-section--ink   { 
    background-image: url(../images/mid-shape-dark.svg);
    background-position: -100px -190px;
    background-size: 50%;
}

.split-section--navy,
.split-section--ink {
  color: #fff;
}
.split-section--navy h2,
.split-section--ink h2 {
  color: #fff;
}
.split-section--navy .button,
.split-section--ink .button {
  background-color: var(--teal);
  color: var(--ink);
}
.split-section--navy .button:hover,
.split-section--ink .button:hover {
  background-color: var(--sage);
}

.split-grid {
  grid-template-columns: 1fr 0.9fr;
}
.split-grid.reverse {
  grid-template-columns: 0.9fr 1fr;
}
.split-grid.reverse .split-copy {
  order: 2;
}
.split-image img {
  width: 100%;
  object-fit: cover;
  border-radius: 999px;
}
.feature-band {
    display: block;
    clear: both;
    width: 100%;
    height: auto;
}

.feature-panel-left {
    background: #b6dfdc url(../images/white_outline_shape.svg) no-repeat 500% 150%;
    float: left;
    width: 40vw;
    padding: 80px 10vw;
    min-height: 500px;
}

.feature-panel-right {
    float: right;
    width: 60vw;
    padding: 80px;
    background: #f7faf9;
}

.feature-panel-content { float:left; width:60%; margin-right:10%; }
.feature-image { float:right; width:30%; }

.feature-band-section { padding:0; }

.location-bar {
  background: var(--navy);
  color: #fff;
  padding: 2rem 0;
  clear:both ;
  border-bottom: 1px solid var(--ink);
}
.location-grid {
    display: grid;
    grid-template-columns: 1fr 2fr .5fr;
    gap: 2rem;
    align-items: center;
}

.location-grid h2 {
  font-size: 1.5rem;
  color: #fff;
  margin: 0;
  line-height: 150%;
}
.location-grid p {
  margin: 0;
}

.location-grid .button { background: var(--teal) url(../icons/addressWhite.svg) no-repeat 30px; padding-left:60px; }
.location-grid .button:hover { background-color: var(--sage); }
.page-id-195 .location-grid .button { background: var(--sage); padding-left:30px; color:var(--navy); }
.page-id-195 .location-grid .button:hover { background-color:var(--teal); }

.cta-band {
  background: var(--sage);
  text-align: center;
  padding: clamp(4rem, 7vw, 6rem) 0;
}
.cta-band--navy { background: var(--navy); }
.cta-band--teal { background: var(--teal); }
.cta-band--mint { background: var(--mint); }
.cta-band--sage { background: var(--sage); }
.cta-band--ink  { background: var(--ink); }

.cta-band--navy,
.cta-band--ink {
  color: #fff;
}
.cta-band--navy h2,
.cta-band--ink h2 {
  color: #fff;
}
.cta-band--navy .button,
.cta-band--ink .button {
  background: var(--teal);
  color: var(--ink);
}

.cta-band--navy .button:hover,
.cta-band--ink .button:hover { background-color:var(--sage); }
.cta-band .container {
  max-width: 720px;
}
.site-footer {
  background: var(--navy);
  color: #fff;
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.site-footer .col {
  border-right: 1px solid var(--teal);
  margin-right: 40px;
  padding-right: 40px;
}

.site-footer .col-4 { padding:0; margin:0; border:none; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1.2fr 1fr 1fr;
}

.site-footer .sml-text {
    font-size: .76rem;
    color: var(--sage);
}

.footer-logo {
  width: 150px;
}

.bryan_topham {
    background: url(../images/BT_Logo.svg) no-repeat;
    width: 145px;
    display: block;
    height: 21px;
    float: right;
    margin-left: 10px;
}

.Footer-address p {
    padding-left: 30px;
}
.site-footer h3 {
  color: #fff;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer a {
  color: var(--sage);
  text-decoration: none;
  transition: color 0.5s ease-in-out;
}

.site-footer a:hover { color:var(--teal); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  margin-top: 3rem;
  font-size: 0.85rem;
}

.copyright  { margin-right:10px; }
.siteby     { padding-left:10px; border-left:1px solid #FFF; }

.content-block {
  max-width: 850px;
}
.wysiwyg-section {
  background: var(--section-bg, #fff);
}
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }
  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    padding: 1.5rem 20px;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.06);
  }
  .primary-nav.is-open,
  .primary-nav ul {
    display: block;
  }
  .primary-nav li {
    margin: 0.8rem 0;
  }
  .hero-grid,
  .image-text-grid,
  .split-grid,
  .split-grid.reverse,
  .feature-band,
  .location-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cards-grid.cols-2:not(.swiper-wrapper),
  .cards-grid.cols-3:not(.swiper-wrapper),
  .cards-grid.cols-4:not(.swiper-wrapper),
  .expertise-grid {
    grid-template-columns: 1fr;
  }
  .split-grid.reverse .split-copy {
    order: 0;
  }
  .hero-media img,
  .round-image {
    border-width: 16px;
  }
  .utility-inner {
    justify-content: center;
    flex-wrap: wrap;
  }
  .footer-bottom {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* About page reusable layouts */
.tabbed-story {
  background: #fff;
}
.tabs-nav {
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
  margin: -3rem 0 8rem;
  flex-wrap: wrap;
}
.tab-button {
  border: 0;
  background: transparent;
  color: #4e7f7b;
  font: 600 0.95rem Inter, Arial, sans-serif;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
}
.tab-button.is-active {
  background: #b6dfdc;
  color: var(--ink);
}
.tab-panel {
    display: grid;
    grid-template-columns: 1.5fr 1.15fr;
    gap: 8rem;
    align-items: center;
}
.tab-panel[hidden] {
  display: none;
}
.tab-visual {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
}
.tab-visual img {
  width: 70%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}
.tab-shape {
    position: absolute;
    left: 50%;
    top: 20%;
    transform: translateY(-50%);
    width: 35%;
    min-height: 250px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    font-family: Fraunces, Georgia, serif;
    font-size: 25px;
    font-weight: 300;
    line-height: 125%;
}
.tab-shape.teardrop {
  border-radius: 50% 0 50% 50%;
}
.tab-shape.pill {
  border-radius: 50%;
}
.tab-shape.circle {
  border-radius: 50%;
  aspect-ratio: 1/1;
  width: 35%;
  min-height: auto;
}
.tab-copy {
  columns: 1;
}
.wysiwyg-content p:first-child {
  margin-top: 0;
}

.wysiwyg-content ul li { margin-bottom:20px; }
.team-section {
  background: var(--mint);
  overflow: hidden;
}

.team-section:after {
    content: "";
    position: absolute;
    right: 2%;
    height: 650px;
    background: url(../images/white_outline_shape.svg) no-repeat 0 0;
    opacity: 1;
    top: -90px;
    width: 642px;
    scale: 2.5;
    transform: rotate(250deg);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}
.team-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.4rem;
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 1.8rem;
  align-items: start;
  box-shadow: 0 10px 30px rgba(32, 42, 82, 0.05);
}
.team-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50% 0 50% 50%;
}
.team-card h3 {
  font-size: 1.1rem;
}
.team-excerpt {
  font-size: 0.92rem;
}
.modal-open {
  border: 0;
  cursor: pointer;
}
.team-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}
.team-modal.is-open {
  display: block;
}
.team-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(32, 42, 82, 0.68);
}
.team-modal__dialog {
  position: relative;
  z-index: 1;
  background: #f3fbf8;
  width: min(980px, calc(100% - 40px));
  margin: 8vh auto;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 0.85fr 1.25fr;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
}
.team-modal__close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  border: 0;
  background: #d9eeee;
  color: var(--ink);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.team-modal__image-wrap {
  background: #e4f3ef;
  padding: 2rem;
  position: relative;
}
.team-modal__image-wrap:after {
    content: "";
    position: absolute;
    left: -110%;
    height: 770px;
    background: url(../images/full_colour_shape.svg) no-repeat 0 0;
    opacity: 0.7;
    transform: rotate(-95deg);
    top: 10%;
    width: 800px;
}
.team-modal__image-wrap img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  position: relative;
  z-index: 2;
}
.team-modal__content {
  padding: 3rem;
}

.team-contact-links {
  border-top: 1px solid #9dc9c5;
  margin-top: 1.5rem;
  padding-top: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.team-contact-links a {
  color: #4e9f98;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.team-contact-links img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.areas-cover {
  background: #b6dfdc;
  padding: 2.4rem 0;
  position: relative;
  overflow: hidden;
}
.areas-cover-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.6fr;
  gap: 3rem;
  align-items: center;
}
.areas-cover h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin: 0;
}
.areas-cover p {
  margin: 0;
  color: var(--ink);
}
.area-pills {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}
.area-pill {
  background: #fff;
  border-radius: 999px;
  text-align: center;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}
.visit-block:after {
    content: "";
    position: absolute;
    opacity: 1;
    height: 100%;
    width: 100%;
    top: -80px;
    left: -660px;
    z-index: -1;
    background: url(../images/mid-shape-dark.svg) no-repeat center;
    transform: rotate(135deg);
    scale: 1.25;
}
.visit-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.8fr;
  gap: 4rem;
  align-items: center;
}
.visit-map img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50% 50% 50% 0;
    border: 10px solid var(--navy);
}
.visit-copy {
  border-right: 1px solid #9dc9c5;
  padding-right: 3rem;
}
.visit-contact a {
  color: #4e9f98;
  font-weight: 700;
  text-decoration: none;
}
.newsletter-strip {
  background: #fff;
  padding: 1.5rem 0;
  border-top: 1px solid #eef4f2;
}
.newsletter-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2rem;
  align-items: center;
}
.newsletter-grid h2 {
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}
.newsletter-grid p {
  margin: 0;
}
.newsletter-form form {
  display: flex;
  gap: 0.8rem;
}
.newsletter-form input {
  flex: 1;
  border: 0;
  background: #e9f5f2;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font: inherit;
}
.newsletter-form button {
  border: 0;
  background: #70c3b7;
  color: #fff;
  border-radius: 8px;
  padding: 0.85rem 1.2rem;
  font-weight: 700;
}
body.modal-lock {
  overflow: hidden;
}
@media (max-width: 900px) {
  .tabs-nav {
    justify-content: flex-start;
    margin: 1rem 0 2rem;
  }
  .tab-panel,
  .team-grid,
  .team-modal__dialog,
  .areas-cover-grid,
  .visit-grid,
  .newsletter-grid {
    grid-template-columns: 1fr;
  }
  .tab-visual {
    min-height: auto;
    padding-bottom: 2rem;
  }
  .tab-visual img {
    width: 70%;
  }
  .tab-shape {
    left: 42%;
    width: 50%;
    min-height: 170px;
  }
  .team-card {
    grid-template-columns: 1fr;
  }
  .team-modal__dialog {
    margin: 4vh auto;
    max-height: 92vh;
    overflow: auto;
  }
  .area-pills {
    grid-template-columns: 1fr 1fr;
  }
  .visit-copy {
    border-right: 0;
    padding-right: 0;
  }
  .newsletter-form form {
    flex-direction: column;
  }
}
@media (max-width: 520px) {
  .area-pills {
    grid-template-columns: 1fr;
  }
  .tab-visual img {
    width: 86%;
  }
  .tab-shape {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    margin-top: -2rem;
  }
  .tab-visual {
    display: block;
  }
  .team-modal__content {
    padding: 2rem;
  }
}


/* Multi Column Content Layout
   Reusable layout for mixed rich text, image, icon/text, button and list content. */
.multi-column-section {
  background: var(--multi-column-bg, #fff);
  overflow: hidden;
  z-index: 1;
}
.multi-column-section.has-pattern:before {
    content: "";
    position: absolute;
    right: -30%;
    top: 40%;
    width: 1200px;
    height: 1200px;
    transform: translateY(-50%) rotate(25deg);
    background: url(../images/full_colour_shape.svg) no-repeat center / contain;
    opacity: 0.9;
    z-index: -1;
}
.multi-column-header {
  max-width: 900px;
  margin-bottom: 3.5rem;
}
.multi-column-header h2 {
  margin-bottom: 1rem;
}
.multi-column-intro {
  max-width: 760px;
  font-size: 1.15rem;
}
.multi-column-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  position: relative;
}
.multi-column-grid.cols-1 { grid-template-columns: 1fr; }
.multi-column-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.multi-column-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.multi-column-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.multi-column-section.align-start .multi-column-grid { align-items: start; }
.multi-column-section.align-center .multi-column-grid { align-items: center; }
.multi-column-section.align-end .multi-column-grid { align-items: end; }
.multi-column-item > *:first-child { margin-top: 0; }
.multi-column-item > *:last-child { margin-bottom: 0; }
.multi-column-section.style-card .multi-column-item {
  background: #fff;
  border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: 0 10px 30px rgba(32, 42, 82, 0.05);
}
.multi-column-section.style-divided .multi-column-item + .multi-column-item {
  border-left: 1px solid #9dc9c5;
  padding-left: clamp(2rem, 4vw, 4rem);
}
.multi-column-rich-text h2,
.multi-column-rich-text h3,
.multi-column-rich-text h4 {
  margin-top: 0;
}
.multi-column-rich-text p,
.multi-column-rich-text ul,
.multi-column-rich-text ol {
  margin-bottom: 1rem;
}
.multi-column-image {
  margin: 0 0 1.6rem;
}
.multi-column-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.multi-column-image.image-rounded img {
  border-radius: 18px;
}
.multi-column-image.image-circle img {
  aspect-ratio: 1;
  border-radius: 50%;
}
.multi-column-image.image-arch img {
  aspect-ratio: 1.8 / 1;
  border-radius: 40px 40px 40px 0;
}
.multi-column-image figcaption {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  color: rgba(32, 42, 82, 0.72);
}
.multi-column-icon-text {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.4rem;
}
.multi-column-icon-text img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.multi-column-icon-text h3 {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
}
.multi-column-title-link {
  color: inherit;
  text-decoration: none;
}
.multi-column-title-link:hover,
.multi-column-title-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
.multi-column-icon-text p {
  margin: 0;
}
.multi-column-list {
  margin: 0 0 1.5rem;
  padding-left: 1.15rem;
}
.multi-column-list li {
  margin-bottom: 0.55rem;
}
.multi-column-button {
  margin-top: 1.3rem;
}

@media (max-width: 1000px) {
  .multi-column-grid.cols-4,
  .multi-column-grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .multi-column-grid.cols-2,
  .multi-column-grid.cols-3,
  .multi-column-grid.cols-4 {
    grid-template-columns: 1fr;
  }
  .multi-column-section.style-divided .multi-column-item + .multi-column-item {
    border-left: 0;
    border-top: 1px solid #9dc9c5;
    padding-left: 0;
    padding-top: 2rem;
  }
  .multi-column-section.has-pattern:before {
    left: -520px;
    opacity: 0.45;
  }
}

/* Tabbed Services / Card Grid */
.services-section--tabbed .services-tabs-nav {
  margin-top: 0;
  margin-bottom: 2rem;
}

.services-tab-panel[hidden] {
  display: none;
}

.services-tab-panel.is-active {
  display: block;
}

/* Fluent Forms page-builder layout */
.form-section--mint {
  background: var(--mint);
}

.form-section__inner {
  width: 100%;
}

.form-section--narrow .form-section__inner {
  max-width: 900px;
  margin-inline: auto;
}

.form-section__intro {
  max-width: 760px;
  margin-bottom: 2rem;
}

.form-section__form .fluentform {
  width: 100%;
}

.form-section__form .ff-el-group {
  margin-bottom: 1.25rem;
}

.form-section__form .ff-el-input--label label {
  color: var(--ink);
  font-weight: 600;
}

.form-section__form .ff-el-form-control {
  width: 100%;
  min-height: 52px;
  border: 1px solid #d7dfdf;
  border-radius: 10px;
  background: var(--white);
  color: var(--body);
  font: inherit;
  padding: 0.85rem 1rem;
  box-shadow: none;
}

.form-section__form textarea.ff-el-form-control {
  min-height: 150px;
  resize: vertical;
}

.form-section__form .ff-el-form-control:focus {
  border-color: var(--teal);
  outline: 2px solid rgba(125, 195, 191, 0.25);
  outline-offset: 1px;
}

.form-section__form .ff-btn-submit {
  border: 0;
  border-radius: 15px 0 15px 15px;
  background: var(--navy);
  color: var(--white);
  padding: 15px 30px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease-in-out;
}

.form-section__form .ff-btn-submit:hover,
.form-section__form .ff-btn-submit:focus-visible {
  background: var(--darkink);
}

.form-section__form .text-danger,
.form-section__form .error,
.form-section__form .ff-el-is-error .text-danger {
  color: #b42318;
}

.form-section__notice {
  padding: 1rem;
  border: 1px solid #d7dfdf;
  border-radius: 10px;
  background: #fff;
}

/* Medicolegal Header */

.page-id-278 .site-header:after { 
  content: "";
  position: absolute;
  inset: 0;
  background:url(../images/heroBG_dark.svg) no-repeat 103% 50%;
  opacity: 0.9;
  height: 960px;
}

.page-id-278 .site-header,
.page-id-278 .hero {
  background-color: var(--ink);
  color: #FFF;
  background-image: url(../images/mid-shape-dark.svg);
}

.page-id-278 .hero:before {
    background: url(../images/heroBG_dark.svg) no-repeat 103% -180px;
    height: 960px;
}

.page-id-278 .hero h1 { color:#FFF; }

.page-id-278 .site-header .menu a { color:#FFF; }
.page-id-278 .site-header .menu-item:hover a,
.page-id-278 .site-header .menu .sub-menu a,
.page-id-278 .site-header .menu a:hover { color:var(--ink); }
.page-id-278 .site-header .menu .sub-menu a:hover { color:var(--teal); }
.page-id-278 .halaxy-link { background: url(../images/Halaxy_white.svg) no-repeat center !important; position:relative; z-index: 1; }
.page-id-278 .dividerDots { background: url(../images/dividerDots_white.svg) no-repeat center; position: relative; z-index: 1; }

/* Explicit editor-selected button colours override layout-specific default button colours. */
.button.button-ink       { background-color:var(--ink); color:var(--white); }
.button.button-teal      { background-color:var(--teal); color:var(--ink); }
.button.button-sage      { background-color:var(--sage); color:var(--ink); }
.button.button-navy      { background-color:var(--navy); color:var(--white); }
.button.button-white     { background-color:var(--white); color:var(--ink); }

.button.button-teal:hover,
.button.button-sage:hover,
.button.button-white:hover { background-color:var(--darkink); color:var(--white); }
.button.button-ink:hover,
.button.button-navy:hover { background-color:var(--teal); color:var(--ink); }


/* Recall Psychology – responsive refinements
   Intended to be loaded AFTER assets/css/main.css or appended to the end of it. */

/* ---------- Tablet / small laptop ---------- */
@media (max-width: 1100px) {
  :root { --space: 64px; }

  h1 { font-size: clamp(2.75rem, 5vw, 3.5rem); }
  h2 { font-size: clamp(2.25rem, 4.5vw, 2.85rem); }

  .container {
    width: min(var(--max), calc(100% - 48px));
  }

  /* Header: collapse earlier so the desktop navigation does not become cramped
     on landscape tablets / small laptops. */
  .nav-inner {
    align-items: center;
    padding: 18px 0;
  }

  .brand { padding-bottom: 0; }
  .brand img { width: 100%; }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    border: 0;
    border-radius: 12px 0 12px 12px;
    background: var(--navy);
    color: #fff;
    font: 700 0.95rem Inter, Arial, sans-serif;
    cursor: pointer;
  }

  .primary-nav {
    display: none;
    position: absolute;
    left: 24px;
    right: 24px;
    top: calc(100% - 2px);
    z-index: 50;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    background: #fff;
    padding: 18px 20px 24px;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 18px 40px rgba(32, 42, 82, 0.14);
  }

  .primary-nav.is-open { display: block; }

  .primary-nav > ul,
  .primary-nav ul,
  .primary-nav > ul > li,
  .primary-nav li {
    display: block;
    width: 100%;
    float: none;
    margin: 0;
  }

  .primary-nav a,
  .primary-nav > ul > li > a {
    display: block;
    width: 100%;
    height: auto;
    padding: 12px 10px;
    border-radius: 8px;
    font-size: 1.05rem;
  }

  /* Reset desktop mega-menu positioning and expose child pages in the mobile menu. */
  .primary-nav > ul > li > .sub-menu,
  .primary-nav li .sub-menu,
  .primary-nav li .sub-menu .sub-menu {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    padding: 2px 0 8px 16px;
    margin: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .primary-nav > ul > li > .sub-menu > .menu-item {
    float: none;
    width: 100%;
  }

  .primary-nav > ul > li > .sub-menu > .menu-item > a,
  .primary-nav li .sub-menu .sub-menu a {
    padding: 8px 10px;
    font-family: Inter, Arial, sans-serif;
    font-size: 0.9rem;
  }

  .primary-nav .dividerDots { display: none; }

  .primary-nav .halaxy-link,
  .primary-nav > ul > li > a.halaxy-link {
    width: 115px;
    height: 54px;
    margin: 12px 0 0 8px;
    background-size: 110px auto !important;
  }

  .hero { padding: 64px 0; background-attachment: scroll; }
  .hero-grid { gap: 3.5rem; }
  .hero-sub .hero-grid { gap: 4rem; }
  .hero-sub { max-height: none; }

  .services-section,
  .split-section,
  .home .section.image-text:before {
    background-attachment: scroll;
  }

  .services-header-content,
  .page-id-170 .services-header-content {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 28px;
  }

  .services-header-content > :last-child {
    grid-column: 1 / -1;
  }

  .cards-grid.cols-3:not(.swiper-wrapper),
  .cards-grid.cols-4:not(.swiper-wrapper),
  .expertise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-panel-left,
  .feature-panel-right {
    padding: 64px 5vw;
  }

  .site-footer .col {
    margin-right: 24px;
    padding-right: 24px;
  }
}

/* ---------- Tablet portrait / mobile ---------- */
@media (max-width: 900px) {
  :root { --space: 56px; }

  body { font-size: 17px; }

  .container { width: calc(100% - 40px); }

  .utility-bar { padding: 8px 0; }
  .utility-inner {
    justify-content: flex-start;
    gap: 10px 18px;
    font-size: 0.82rem;
  }
  .utility-inner .divider { display: none; }
  .utility-bar .icon { width: 17px; margin-right: 7px; }

  .hero,
  .section { padding-top: var(--space); padding-bottom: var(--space); }

  .hero:before,
  .home .site-header,
  .home .section.image-text:before,
  .services-section:after,
  .multi-column-section.has-pattern:before {
    background-attachment: scroll;
  }

  .hero-grid,
  .hero-sub .hero-grid { gap: 2.5rem; }
  .hero-sub .hero-media { margin-top: 0; }
  .hero-media { max-width: 560px; margin-inline: auto; }
  .hero-media img,
  .round-image { border-width: 10px; }

  .button-row {
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
  }

  .expertise-header,
  .section-header {
    flex-direction: column;
    gap: 1rem;
  }
  .expertise-section .container { padding-top: 56px; }

  .services-header-content,
  .page-id-170 .services-header-content {
    grid-template-columns: 1fr;
  }
  .services-header-content > :last-child { grid-column: auto; }

  /* Homepage split image/text section needs a true mobile reset. */
  .home .section.image-text .container {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .home .image-text .image {
    max-height: none;
    border-radius: 0 0 60px 0;
  }
  .home .image-text-grid img {
    top: 0;
    aspect-ratio: 16 / 10;
  }
  .home .image-text .content {
    padding: 56px 24px;
  }

  .service-card { padding: 32px 32px 72px; }
  .service-card.image-top img { margin: -80px 0 20px -70px; }
  .service-card.image-bottom img { margin: 20px 0 -80px 24px; }
  .service-card .link-arrow { bottom: 30px; }

  /* Old float-based feature layout */
  .feature-band { display: flex; flex-direction: column; }
  .feature-panel-left,
  .feature-panel-right {
    float: none;
    width: 100%;
    min-height: 0;
    padding: 56px 24px;
  }
  .feature-panel-content,
  .feature-image {
    float: none;
    width: 100%;
    margin: 0;
  }
  .feature-image { margin-top: 2rem; }

  .location-grid { gap: 1.25rem; }
  .location-grid .button { justify-self: start; }

  .footer-grid { gap: 2.25rem; }
  .site-footer .col,
  .site-footer .col-4 {
    border-right: 0;
    border-bottom: 1px solid rgba(125, 195, 191, 0.35);
    margin: 0;
    padding: 0 0 2rem;
  }
  .site-footer .col-4 { border-bottom: 0; padding-bottom: 0; }
  .Footer-address p { padding-left: 0; }
  .footer-bottom { gap: 1rem; }
  .siteby { border-left: 0; padding-left: 0; }
  .bryan_topham { float: none; margin: 6px 0 0; }

  .tab-panel { gap: 3rem; }
  .team-card { gap: 1.25rem; }
  .team-modal__image-wrap { padding: 1.5rem; }
  .team-modal__content { padding: 2rem; }
  .visit-grid { gap: 2.5rem; }

  .page-id-278 .site-header:after,
  .page-id-278 .hero:before { height: 100%; }
}

/* ---------- Phones ---------- */
@media (max-width: 600px) {
  :root { --space: 44px; }

  body { font-size: 16px; line-height: 1.6; }
  h1 { font-size: clamp(2.25rem, 11vw, 3rem); letter-spacing: -0.05rem; }
  h2 { font-size: clamp(2rem, 9vw, 2.55rem); }
  h3 { font-size: 1.35rem; }

  .container { width: calc(100% - 30px); }

  .utility-inner { justify-content: center; }
  .utility-bar a[href^="mailto:"] { display: none; }

  .nav-inner { padding: 14px 0; }
  .brand img { width: 100%; }
  .menu-toggle { min-height: 42px; padding: 8px 14px; }
  .primary-nav { left: 15px; right: 15px; padding-inline: 14px; }

  .hero { padding: 44px 0 50px; }
  .hero-grid,
  .hero-sub .hero-grid { gap: 2rem; }
  .hero-intro { font-size: 1rem; }
  .eyebrow { font-size: 0.82rem; }

  .button,
  .button-secondary,
  .form-section__form .ff-btn-submit {
    width: 100%;
    min-height: 50px;
    padding: 13px 20px;
    text-align: center;
  }

  .button-row { align-items: stretch; }

  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-item { grid-template-columns: 30px 1fr; }
  .expertise-item img { width: 28px; height: 28px; }

  .service-card { padding: 28px 24px 68px; }
  .service-card img { width: calc(100% + 2.4rem); }
  .service-card.image-top img { margin: -62px 0 18px -52px; }
  .service-card.image-bottom img { margin: 18px 0 -64px 20px; }
  .home .services-slider .service-card-5 { padding: 180px 24px 32px; }

  .home .image-text .image { border-radius: 0 0 42px 0; }
  .home .image-text .content { padding: 44px 20px; }

  .cta-band { padding: 3.5rem 0; }
  .location-bar { padding: 1.6rem 0; }
  .location-grid .button { width: 100%; }

  .tabs-nav {
    gap: 0.5rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
  }
  .tab-button { flex: 0 0 auto; }

  .tab-visual img { width: 100%; }
  .tab-shape { margin-top: -1rem; }
  .team-modal__dialog { width: calc(100% - 20px); }
  .team-modal__content { padding: 1.5rem; }
  .team-modal__image-wrap { padding: 1rem; }

  .area-pills { gap: 0.75rem; }
  .multi-column-header { margin-bottom: 2rem; }

  .site-footer { padding-top: 3rem; }
  .footer-bottom { display: block; }
  .footer-bottom > * + * { margin-top: 0.75rem; }
}

/* Avoid fixed decorative backgrounds on touch devices, where they can jitter
   and cause expensive repaints. */
@media (hover: none), (pointer: coarse) {
  .hero,
  .services-section,
  .split-section,
  .home .section.image-text:before {
    background-attachment: scroll !important;
  }
}

/* ==========================================================
   Responsive refinements – v2
   Bottom utility navigation, image-first heroes, reduced decoration
   ========================================================== */

@media (max-width: 900px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .utility-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 1000;
    padding: 0;
    border-top: 1px solid rgba(32, 42, 82, 0.12);
    border-bottom: 0;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -8px 24px rgba(32, 42, 82, 0.08);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .utility-bar .container.utility-inner {
    width: 100%;
    max-width: none;
    min-height: 72px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    margin: 0;
  }

  .utility-inner .divider { display: none; }

  .utility-bar a,
  .utility-bar a[href^="mailto:"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    padding: 9px 4px 8px;
    overflow: hidden;
    color: var(--ink);
    font-size: 0;
    line-height: 1;
    text-align: center;
    text-decoration: none;
  }

  .utility-bar a + a { border-left: 1px solid rgba(32, 42, 82, 0.08); }

  .utility-bar .icon {
    float: none;
    display: block;
    width: 23px;
    height: 23px;
    margin: 0;
    flex: 0 0 23px;
    background-size: contain;
  }

  .utility-bar a::after {
    display: block;
    font-family: Inter, Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
  }

  .utility-bar a:nth-of-type(1)::after { content: "Call"; }
  .utility-bar a:nth-of-type(2)::after { content: "Email"; }
  .utility-bar a:nth-of-type(3)::after { content: "Facebook"; }
  .utility-bar a:nth-of-type(4)::after { content: "YouTube"; }

  .hero,
  .hero-sub {
    padding-top: 0;
    max-height: none;
    overflow: hidden;
  }

  .hero .container.hero-grid,
  .hero-sub .container.hero-grid {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
  }

  .hero-grid > :first-child {
    order: 2;
    width: min(var(--max), calc(100% - 40px));
    margin-inline: auto;
    padding: 48px 0 56px;
  }

  .hero .hero-media,
  .hero-sub .hero-media {
    order: 1;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .hero-media img,
  .hero-sub .hero-media img,
  .hero .round-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 0;
    border-radius: 0;
  }

  .home .site-header,
  .hero,
  .services-section,
  .split-section,
  .split-section--white,
  .split-section--navy,
  .split-section--teal,
  .split-section--mint,
  .split-section--sage,
  .split-section--ink,
  .feature-panel-left,
  .service-card,
  .page-id-278 .site-header,
  .page-id-278 .hero {
    background-image: none !important;
  }

  .hero::before,
  .page-id-195 .hero::before,
  .services-section::after,
  .home .section.image-text::before,
  .home .services-slider .service-card-5::before,
  .team-section::after,
  .team-modal__image-wrap::after,
  .visit-block::after,
  .multi-column-section.has-pattern::before,
  .page-id-278 .site-header::after,
  .page-id-278 .hero::before {
    content: none !important;
    display: none !important;
    background: none !important;
  }
}

@media (max-width: 600px) {
  .hero-grid > :first-child {
    width: calc(100% - 30px);
    padding: 38px 0 46px;
  }

  .hero-media img,
  .hero-sub .hero-media img,
  .hero .round-image {
    aspect-ratio: 4 / 3;
  }

  .utility-bar a::after { font-size: 0.64rem; }
}

/* ==========================================================
   Responsive refinements – v3
   Mobile off-canvas menu + accordion submenus
   ========================================================== */

.menu-close,
.menu-backdrop,
.submenu-toggle {
  display: none;
}

@media (max-width: 900px) {
  html,
  body {
    overflow-x: clip;
  }

  body.menu-open {
    overflow: hidden;
  }

  .site-header {
    z-index: 100;
  }

  .nav-inner {
    position: relative;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-height: 0;
    padding: 12px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle img {
    display: block;
    width: 26px;
    height: auto;
  }

  .menu-toggle:hover,
  .menu-toggle:focus-visible {
    background: rgba(31, 39, 75, 0.06);
    outline: none;
  }

  .primary-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: 0;
    right: 0;
    bottom: calc(72px + env(safe-area-inset-bottom));
    left: auto;
    width: 95vw;
    max-width: 620px;
    height: auto;
    padding: 86px 26px 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    box-shadow: -16px 0 40px rgba(0, 0, 0, 0.16);
    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s ease, visibility 0.35s ease;
    z-index: 1202;
  }

  .primary-nav.is-open {
    display: flex;
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .menu-backdrop {
    display: block;
    position: fixed;
    inset: 0 0 calc(72px + env(safe-area-inset-bottom)) 0;
    width: 100%;
    border: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.75);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 1201;
  }

  body.menu-open .menu-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-close span,
  .menu-close span::before {
    display: block;
    position: absolute;
    width: 25px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    content: '';
  }

  .menu-close span { transform: rotate(45deg); }
  .menu-close span::before { transform: rotate(90deg); }

  .menu-close:hover,
  .menu-close:focus-visible {
    background: rgba(31, 39, 75, 0.06);
    outline: none;
  }

  .primary-nav > ul,
  .primary-nav ul {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .primary-nav li,
  .primary-nav > ul > li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(31, 39, 75, 0.14);
  }

  .primary-nav li > a,
  .primary-nav > ul > li > a {
    display: block;
    width: 100%;
    height: auto;
    padding: 18px 8px;
    margin: 0;
    border-radius: 0;
    background: transparent !important;
    color: var(--ink);
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(1.45rem, 5vw, 1.8rem);
    line-height: 1.2;
  }

  .primary-nav li > a:hover,
  .primary-nav li > a:focus-visible {
    color: var(--teal);
    border-radius: 0;
  }

  .submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 2;
    grid-row: 1;
    width: 48px;
    height: 48px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .submenu-toggle span,
  .submenu-toggle span::after {
    display: block;
    position: relative;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.25s ease;
    content: '';
  }

  .submenu-toggle span::after {
    position: absolute;
    inset: 0;
    transform: rotate(90deg);
  }

  .menu-item-has-children.is-submenu-open > .submenu-toggle span::after {
    transform: rotate(0);
  }

  .submenu-toggle:hover,
  .submenu-toggle:focus-visible {
    background: rgba(31, 39, 75, 0.06);
    outline: none;
  }

  .primary-nav li > .sub-menu,
  .primary-nav li .sub-menu .sub-menu {
    display: grid;
    grid-column: 1 / -1;
    grid-template-rows: 0fr;
    width: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    opacity: 0;
    transition: grid-template-rows 0.3s ease, opacity 0.25s ease;
  }

  .primary-nav li > .sub-menu::before {
    content: '';
    min-height: 0;
  }

  /* WordPress UL cannot animate height directly; the open state uses max-height
     as a reliable fallback while keeping nested accordions independent. */
  .primary-nav li > .sub-menu {
    max-height: 0;
    transition: max-height 0.4s ease, opacity 0.25s ease;
  }

  .primary-nav li.is-submenu-open > .sub-menu {
    display: block;
    max-height: 1200px;
    opacity: 1;
    padding: 0 0 10px 18px;
  }

  .primary-nav .sub-menu li {
    border-bottom: 0;
  }

  .primary-nav .sub-menu li > a,
  .primary-nav li .sub-menu .sub-menu a {
    padding: 11px 8px;
    font-family: Inter, Arial, sans-serif;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.35;
  }

  .primary-nav .sub-menu .sub-menu {
    padding-left: 12px;
  }

  .primary-nav .dividerDots {
    display: none;
  }

  .primary-nav .halaxy-link,
  .primary-nav > .halaxy-link {
    display: block;
    width: 118px;
    height: 56px;
    margin: 26px 8px 0;
    padding: 0 !important;
    background-size: contain !important;
    background-position: left center !important;
    border-radius: 0;
  }
}

@media (max-width: 600px) {
  .primary-nav {
    width: 95vw;
    padding: 78px 20px 32px;
  }

  .primary-nav li > a,
  .primary-nav > ul > li > a {
    padding-block: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .primary-nav,
  .menu-backdrop,
  .primary-nav li > .sub-menu,
  .submenu-toggle span::after {
    transition: none !important;
  }
}
