/*
 * THEME: ukhearing -- the old uk-hearing.co.uk look, sharpened.
 * Linked after the core bundle by publicTemplate.php (ThemeService::themeCssUrl()).
 *
 * Colours come from Admin > Settings > Theme:
 *   --clr-secondary   the brand blue (menu bar, headings, prices)
 *   --clr-primary     the deep brand green behind white text (bands, buttons)
 *   --clr-primary-lt  the bright brand green, decoration only (rules, ticks)
 *   --clr-accent      the price-match gold (star, technology stars, deal badge)
 * Two shades are fixed here because they are about legibility, not palette:
 * green TEXT on white needs ~4.5:1 (the bright brand green is 2.2:1), and the
 * freephone red is part of the brand mark.
 */

:root {
  --ukh-blue: var(--clr-secondary, #4267b2);
  --ukh-green: var(--clr-primary, #6a9f2a);
  --ukh-green-bright: var(--clr-primary-lt, #8abd3e);
  --ukh-green-text: #4d7a1c;
  --ukh-gold: var(--clr-accent, #f5b301);
  --ukh-red: #c00000;
  --ukh-ink: #1f2a37;
  --ukh-muted: #5b6573;
  --ukh-light: #f4f6f3;
  --ukh-radius: .6rem;
}

body { color: var(--ukh-ink); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); }
.ukhRed { color: var(--ukh-red); }

/* ---- Buttons ----------------------------------------------------------- */

.ukhBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--ukh-radius);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.ukhBtn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }
.ukhBtn--light { background: #fff; color: var(--ukh-blue); }
.ukhBtn--light:hover { color: var(--ukh-blue); background: #f2f5fb; }
.ukhBtn--outline { border-color: #fff; color: #fff; background: transparent; }
.ukhBtn--outline:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.ukhBtn--green { background: var(--ukh-green); color: #fff; }
.ukhBtn--green:hover { color: #fff; filter: brightness(1.06); }

/* ---- Header band ------------------------------------------------------- */

.ukhBand { background: #fff; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.ukhBand__wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-top: .9rem;
  padding-bottom: .9rem;
}

.ukhBand__left { display: flex; align-items: center; gap: 1rem; }
.ukhBand__hours { margin: 0; display: flex; flex-direction: column; line-height: 1.15; text-align: center; }
.ukhBand__hours strong { font-family: var(--font-serif); font-size: 1.55rem; color: var(--ukh-blue); }
.ukhBand__hours span { font-weight: 700; color: var(--ukh-green-text); }

/* The price-match star, drawn rather than an image so it is sharp anywhere.
   The star is the ::before (clipped); the words sit on top unclipped and, as
   on the old badge, run across the points. */
.ukhStar {
  position: relative;
  flex: 0 0 92px;
  width: 92px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ukhStar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ukh-gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.ukhStar span {
  position: relative;
  transform: rotate(-28deg);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.15;
  text-transform: uppercase;
  text-align: center;
  color: #1b1b1b;
  margin-top: .4rem;
}

.ukhBrand { display: flex; align-items: center; gap: .75rem; text-decoration: none; justify-self: center; }
.ukhBrand__logo { height: 70px; width: auto; }
.ukhBrand__text { display: flex; flex-direction: column; line-height: 1.05; }
.ukhBrand__name { font-family: var(--font-serif); font-weight: 700; font-size: 2rem; letter-spacing: -.01em; }
.ukhBrand__first { color: var(--ukh-blue); }
.ukhBrand__rest { color: var(--ukh-green); }
.ukhBrand__tag { margin-top: .25rem; font-weight: 700; font-size: 1rem; color: var(--ukh-blue); text-align: center; }

.ukhBand__right { display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; }
.ukhBand__phone {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ukh-red);
  text-decoration: none;
  white-space: nowrap;
}
.ukhBand__phone i { font-size: 1.1rem; margin-right: .5rem; vertical-align: .15em; }
.ukhBand__phone:hover { color: var(--ukh-red); text-decoration: underline; }
.ukhBand__email { font-weight: 700; color: var(--ukh-blue); text-decoration: none; }
.ukhBand__email:hover { text-decoration: underline; }

.ukhBand__mobile { display: none; align-items: center; gap: .75rem; justify-self: end; }
.ukhBand__call {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--ukh-green);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: .5rem .9rem;
  text-decoration: none;
}
.ukhBurger {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: .5rem;
  background: var(--ukh-blue);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.ukhBurger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }

/* ---- Menu bar ---------------------------------------------------------- */

.ukhNav { position: sticky; top: 0; z-index: 1030; background: var(--ukh-blue); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.ukhNav__wrap { display: flex; align-items: center; gap: 1rem; }
.ukhNav__nav { flex: 1; }
.ukhNav__menu { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; }
.ukhNav__item { position: relative; }
.ukhNav__link {
  display: inline-flex;
  align-items: center;
  padding: .95rem .9rem;
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--nav-link-size, 1.02rem);
  text-decoration: none;
  background: none;
  border: 0;
  position: relative;
}
.ukhNav__link::after {
  content: '';
  position: absolute;
  left: .9rem;
  right: .9rem;
  bottom: .55rem;
  height: 3px;
  border-radius: 3px;
  background: var(--ukh-green-bright);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.ukhNav__link:hover,
.ukhNav__link:focus-visible { color: #fff; }
.ukhNav__link:hover::after,
.ukhNav__link:focus-visible::after,
.ukhNav__item.is-open > .ukhNav__link::after,
.ukhNav__item.is-current > .ukhNav__link::after { transform: scaleX(1); }
.ukhNav__sub-link[aria-current="page"] { color: var(--ukh-green-text); background: var(--ukh-light); }
.ukhNav__caret { font-size: .7rem; margin-left: .4rem; }

.ukhNav__sub {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: .5rem 0;
  background: #fff;
  border-radius: 0 0 var(--ukh-radius) var(--ukh-radius);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.ukhNav__item--parent:hover > .ukhNav__sub,
.ukhNav__item--parent:focus-within > .ukhNav__sub,
.ukhNav__item.is-open > .ukhNav__sub { opacity: 1; visibility: visible; transform: none; }
.ukhNav__sub-link { display: block; padding: .5rem 1.1rem; color: var(--ukh-blue); font-weight: 600; text-decoration: none; }
.ukhNav__sub-link:hover { background: var(--ukh-light); color: var(--ukh-green-text); }

.ukhNav__actions { display: flex; align-items: center; gap: .25rem; }
.ukhNav__icon { position: relative; color: #fff; padding: .5rem .6rem; border-radius: .4rem; }
.ukhNav__icon:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.ukhNav__count {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--ukh-green);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.ukhNav__count--inline { position: static; }

/* ---- Mobile drawer ----------------------------------------------------- */

.ukhDrawer { background: var(--ukh-blue); color: #fff; }
.ukhDrawer__title { font-family: var(--font-serif); font-weight: 700; font-size: 1.3rem; }
.ukhDrawer__list { list-style: none; margin: 0; padding: 0; }
.ukhDrawer__item { border-bottom: 1px solid rgba(255, 255, 255, .15); }
.ukhDrawer__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: .85rem .25rem;
  color: #fff;
  background: none;
  border: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  text-align: left;
  text-decoration: none;
}
.ukhDrawer__link:hover { color: #fff; }
.ukhDrawer__sub { padding: 0 0 .5rem .75rem; }
.ukhDrawer__sub-link { display: block; padding: .4rem 0; color: rgba(255, 255, 255, .9); text-decoration: none; }
.ukhDrawer__contact { margin-top: 1.5rem; display: grid; gap: .6rem; }
.ukhDrawer__contact a,
.ukhDrawer__contact span { color: #fff; text-decoration: none; font-weight: 600; }

/* ---- Homepage hero ------------------------------------------------------ */

.ukhHero {
  position: relative;
  min-height: clamp(420px, 46vw, 620px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ukh-blue);
  isolation: isolate;
}
.ukhHero__slides,
.ukhHero .heroSlideshow__slide { position: absolute; inset: 0; }
.ukhHero .heroSlideshow__slide { opacity: 0; transition: opacity 1.2s ease; }
.ukhHero .heroSlideshow__slide--active { opacity: 1; }
.ukhHero .heroSlideshow__slide img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.ukhHero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(15, 30, 60, 0) 42%, rgba(15, 30, 60, .45) 66%, rgba(15, 30, 60, .6) 100%);
  pointer-events: none;
}
.ukhHero--plain { background: linear-gradient(120deg, var(--ukh-blue), #2c4a86); }
.ukhHero--plain::after { display: none; }

.ukhHero__inner { position: relative; z-index: 2; display: flex; justify-content: flex-end; }
/* The offer on frosted glass: reads on any photo without darkening all of it. */
.ukhHero__content {
  max-width: 540px;
  margin: 3rem 0;
  padding: 2.25rem 2.5rem;
  color: #fff;
  background: rgba(20, 38, 78, .42);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 1.1rem;
  box-shadow: 0 24px 60px rgba(10, 20, 45, .3);
}
.ukhHero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: 1rem;
  padding: .35rem .9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .25);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ukhHero__eyebrow::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: var(--ukh-green-bright); }
.ukhHero__title {
  color: #fff;
  font-size: clamp(2.5rem, 4.8vw, 3.8rem);
  font-weight: 700;
  line-height: 1.02;
  margin: 0 0 .6rem;
}
.ukhHero__sub {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  line-height: 1.25;
  margin: 0 0 1.6rem;
}
.ukhHero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.ukhHero__actions .ukhBtn i { margin-left: .2rem; transition: transform .15s ease; }
.ukhHero__actions .ukhBtn:hover i { transform: translateX(3px); }
.ukhHero__call { margin: 1.25rem 0 0; font-size: .98rem; color: rgba(255, 255, 255, .9); }
.ukhHero__call i { margin-right: .4rem; color: var(--ukh-green-bright); }
.ukhHero__call a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .5); }

.ukhHighlights { background: linear-gradient(90deg, var(--ukh-green), #5b8c22); color: #fff; position: relative; z-index: 2; }
.ukhHighlights__list {
  list-style: none;
  margin: 0 auto;
  padding-top: 1.05rem;
  padding-bottom: 1.05rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 2rem;
}
.ukhHighlights__list li { font-family: var(--font-serif); font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; gap: .75rem; }
.ukhHighlights__icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  font-size: 1.05rem;
}

/* ---- Inner page header --------------------------------------------------- */

.ukhPageHead { background: var(--ukh-green); color: #fff; }
.ukhPageHead__wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}
.ukhPageHead__title { color: #fff; margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
.ukhPageHead__desc { margin: .4rem 0 0; max-width: 760px; font-size: 1.05rem; color: #fff; }
.ukhPageHead__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.ukhCrumbs { background: var(--ukh-light); border-bottom: 1px solid rgba(0, 0, 0, .05); }
.ukhCrumbs__list { margin: 0; padding: .55rem 0; font-size: .88rem; }
.ukhCrumbs__list a { color: var(--ukh-blue); text-decoration: none; }
.ukhCrumbs__list a:hover { text-decoration: underline; }
.ukhCrumbs__list .active { color: var(--ukh-muted); }

/* ---- Call to action ------------------------------------------------------ */

.ukhCta { background: var(--ukh-blue); color: #fff; }
.ukhCta__wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}
.ukhCta__title { color: #fff; margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; }
.ukhCta__body { margin: .35rem 0 0; font-size: 1.1rem; color: rgba(255, 255, 255, .92); }
.ukhCta__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ---- Footer ------------------------------------------------------------------ */

.ukhFooter { background: var(--ukh-light); border-top: 4px solid var(--ukh-green-bright); color: var(--ukh-ink); }
.ukhFooter__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 2.5rem;
}
.ukhFooter__logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.ukhFooter__logo img { height: 56px; width: auto; }
.ukhFooter__logo .ukhBrand__name { font-size: 1.6rem; }
.ukhFooter__tagline { margin: .6rem 0 0; font-weight: 700; color: var(--ukh-blue); }
.ukhFooter__social { display: flex; gap: .5rem; margin-top: 1rem; }
.ukhFooter__social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ukh-blue);
  color: #fff;
}
.ukhFooter__head { font-size: 1.1rem; font-weight: 700; color: var(--ukh-blue); margin: 0 0 .9rem; }
/* ContactDetails joins the address lines with "\n"; keep them as lines. */
.ukhFooter__address { font-style: normal; margin: 0 0 .5rem; line-height: 1.6; white-space: pre-line; }
.ukhFooter__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.ukhFooter a { color: var(--ukh-ink); }
.ukhFooter__list a { text-decoration: none; }
.ukhFooter__list a:hover,
.ukhFooter__col > a:hover { color: var(--ukh-blue); text-decoration: underline; }
.ukhFooter__phone {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ukh-red) !important;
  text-decoration: none;
}
.ukhFooter__email { display: block; margin: .2rem 0 .9rem; font-weight: 600; color: var(--ukh-blue) !important; }
.ukhFooter__hours { margin: 0; display: grid; gap: .15rem; font-size: .92rem; }
.ukhFooter__hours div { display: flex; gap: .75rem; }
.ukhFooter__hours dt { width: 2.5rem; font-weight: 700; }
.ukhFooter__hours dd { margin: 0; }

.ukhFooter__bar { background: var(--ukh-blue); color: #fff; font-size: .88rem; }
.ukhFooter__barWrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem 1.5rem;
  padding-top: .9rem;
  padding-bottom: .9rem;
}
.ukhFooter__bar a { color: #fff; }
.ukhFooter__meta,
.ukhFooter__legal { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.ukhFooter__legal a { text-decoration: none; }
.ukhFooter__legal a:hover { text-decoration: underline; }

/* ---- Content & the hearing-aid catalogue, on brand ------------------------- */

.cms-content h2,
.cms-content h3 { color: var(--ukh-blue); }
.cms-content a { color: var(--ukh-blue); }
/* The core sets a section's opening paragraph and its links in palette
   colours that here would be pale green and gold on white: keep them legible. */
.cmsBlock__body > p:first-child { color: var(--ukh-green-text); }
.cmsBlock__body a:not(.ukh-cta-link),
.content a:not(.ukh-cta-link) { color: var(--ukh-blue); }
.cmsBlock__body h2,
.content h2 { color: var(--ukh-blue); font-size: 1.5rem; margin-top: 1.75rem; }
.ha-specs dd { color: var(--ukh-green-text); }
.ha-count { color: var(--ukh-green-text); }
.ha-card__title a,
.ha-deal__name a { color: var(--ukh-blue); }
.ha-btn { background: var(--ukh-green); border-color: var(--ukh-green); color: #fff; font-family: var(--font-serif); }
.ha-btn:hover,
.ha-btn:focus-visible { color: #fff; }
.ha-btn--outline { background: transparent; color: var(--ukh-green-text); }
.ha-deal__title { color: var(--ukh-green-text); font-weight: 700; }
.ha-deal__note { color: var(--ukh-green-text); }
.ha-enquiry { border-top-color: var(--ukh-green-bright); }

/* ---- Site search (/search) -------------------------------------------------- */
/* White on the brand green passes contrast only for large text: the button
   takes the darker green, like the current page in the pagination. */
.siteSearch__btn { background: var(--ukh-green-text); color: #fff; font-family: var(--font-serif); }
.siteSearch__kind { color: var(--ukh-green-text); }
.siteSearch__title { color: var(--ukh-blue); }
/* --clr-bark is the brand green in this palette: body text stays ink. */
.siteSearch__input,
.siteSearch__summary strong,
.siteSearch__emptyTitle { color: var(--ukh-ink); }

/* ---- Pagination (components/pagination.php: price list, brands, blog, search) -- */
/* Separate rounded tiles instead of Bootstrap's joined strip. The current
   page is the darker green: white on the brand green only passes for large
   text. Previous/next are blue chevrons; a disabled one fades out. */
.pagination-nav { margin-top: 2.5rem !important; }
.pagination { gap: .45rem; flex-wrap: wrap; }
.pagination .page-item .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 .75rem;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: var(--ukh-radius);
  background: #fff;
  color: var(--ukh-ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 6px rgba(15, 30, 60, .06);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.pagination .page-item .page-link:hover {
  background: #eef3fb;
  border-color: var(--ukh-blue);
  color: var(--ukh-blue);
  box-shadow: 0 8px 18px rgba(66, 103, 178, .18);
  transform: translateY(-2px);
}
.pagination .page-item .page-link:focus-visible { outline: 3px solid rgba(66, 103, 178, .4); outline-offset: 2px; box-shadow: none; }
.pagination .page-item.active .page-link {
  background: var(--ukh-green-text);
  border-color: var(--ukh-green-text);
  color: #fff;
  box-shadow: 0 6px 16px rgba(77, 122, 28, .35);
  transform: none;
}
.pagination .page-item--prev .page-link,
.pagination .page-item--next .page-link { color: var(--ukh-blue); font-size: .85rem; }
.pagination .page-item.disabled .page-link { background: transparent; border-color: transparent; box-shadow: none; color: #b5bcc6; }
.pagination .page-item--gap .page-link { min-width: 1.5rem; padding: 0; color: var(--ukh-muted); letter-spacing: .1em; }
.pagination-summary { color: var(--ukh-muted) !important; font-size: .9rem; margin-top: .6rem; }
@media (max-width: 575.98px) {
  .pagination { gap: .2rem; }
  .pagination .page-item .page-link { min-width: 2.2rem; height: 2.4rem; padding: 0 .4rem; }
  .pagination .page-item--gap .page-link { min-width: 1rem; padding: 0; }
}
@media (max-width: 359.98px) {
  .pagination .page-item .page-link { min-width: 2rem; padding: 0 .3rem; font-size: .9rem; }
  .pagination .page-item--gap .page-link { min-width: 1rem; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pagination .page-item .page-link:hover { transform: none; }
}

/* ---- Homepage section styles --------------------------------------------------
   Opt-in classes for page-builder sections (Admin > Pages > section > CSS classes),
   so the words stay editable and only the look lives here:
     ukh-reasons   grey band, centred heading, list items with green ticks
     ukh-choosing  text beside a framed image
     ukh-ticks     cards on white panels over the faded family photo
     ukh-clinical  text beside the professional-body logos
     ukh-owners    two photo cards
     ukh-band      green band of short centred lines
     ukh-logos     compact logo tiles
     ukh-counters  big numbers over the photo
   ------------------------------------------------------------------------------ */

.cms-content-section[class*="ukh-"] { padding: 3.5rem 0; }
.cms-content-section[class*="ukh-"] .container.mt-5 { margin-top: 0 !important; }
.cms-content-section[class*="ukh-"] .cmsBlock__heading,
.cms-content-section[class*="ukh-"] h1,
.cms-content-section[class*="ukh-"] h2 { color: var(--ukh-green-text); font-weight: 700; }
/* The old site's headings were plain: no core accent bar on these sections. */
.cms-content-section[class*="ukh-"] .cmsBlock__heading::before { display: none; }
.cms-content-section[class*="ukh-"] .cmsBlock__heading { justify-content: center; }
.ukh-choosing .cmsBlock__heading,
.ukh-clinical .cmsBlock__heading,
.ukh-choosing h2,
.ukh-clinical h2 { justify-content: flex-start; }

.ukh-reasons { background: var(--ukh-light); }
.ukh-reasons .cmsBlock__heading { text-align: center; margin-bottom: 1.75rem; }
/* The reasons as a grid of tick tiles rather than one long list. */
.ukh-reasons ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1100px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.ukh-reasons .cmsBlock__body ul > li,
.ukh-reasons li {
  flex: 0 1 340px;
  position: relative;
  margin: 0;
  padding: 1.1rem 1.25rem 1.1rem 3.6rem;
  line-height: 1.55;
  background: #fff;
  border-radius: var(--ukh-radius);
  box-shadow: 0 6px 18px rgba(15, 30, 60, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ukh-reasons li:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15, 30, 60, .1); }
/* Out-ranks the core's .cmsBlock__body ul > li::before bullet. */
.ukh-reasons .cmsBlock__body ul > li::before,
.ukh-reasons li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 1.1rem;
  top: 1.05rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--ukh-green);
  color: #fff;
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ukh-reasons strong { color: var(--ukh-blue); display: block; font-family: var(--font-serif); font-size: 1.05rem; }

/* Image sections: these photos are on white, so no frame -- just rounded. */
.ukh-choosing .image-container-right img,
.ukh-choosing .image-container-left img,
.ukh-clinical .image-container-right img { border-radius: var(--ukh-radius); }
.ukh-choosing .content > p:first-child strong { font-size: 1.15rem; color: var(--ukh-blue); }

.ukh-ticks {
  background: var(--ukh-light) url('ukhearing/checklist.webp') center / cover no-repeat;
}
.ukh-ticks .cmsCards__card {
  background: rgba(255, 255, 255, .94);
  border: 0;
  border-radius: var(--ukh-radius);
  box-shadow: 0 12px 30px rgba(15, 30, 60, .12);
  text-align: center;
  padding: 1.5rem 1.25rem;
}
.ukh-ticks .cmsCards__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--ukh-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.ukh-ticks .cmsCards__title { font-size: 1.15rem; color: var(--ukh-blue); }

/* ukh-features: the tick-card look without the photo (About > What we offer). */
.ukh-features { background: var(--ukh-light); }
.ukh-features .cmsCards__card { background: #fff; border: 0; border-radius: var(--ukh-radius); box-shadow: 0 10px 26px rgba(15, 30, 60, .08); text-align: center; padding: 1.25rem 1rem; }
.ukh-features .cmsCards__icon { width: 56px; height: 56px; margin: 0 auto .75rem; border-radius: 50%; background: var(--ukh-green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.ukh-features .cmsCards__title { color: var(--ukh-blue); font-size: 1.15rem; }

/* Imported article images keep the side they floated to on the old site. */
.cmsBlock__body .ukh-img-left,
.content .ukh-img-left { float: left; max-width: 40%; height: auto; margin: .25rem 1.5rem 1rem 0; border-radius: var(--ukh-radius); }
.cmsBlock__body .ukh-img-right,
.content .ukh-img-right { float: right; max-width: 40%; height: auto; margin: .25rem 0 1rem 1.5rem; border-radius: var(--ukh-radius); }
.cmsBlock__body img,
.content img { max-width: 100%; height: auto; }
.cmsBlock__body::after { content: ''; display: block; clear: both; }

/* Enquiry Form block (layout_29), on brand. */
.cmsEnquiry__form { border-top-color: var(--ukh-green-bright); border-radius: .9rem; }
.cmsEnquiry__submit { background: var(--ukh-green); border-color: var(--ukh-green); font-family: var(--font-serif); }
.cmsEnquiry__submit:hover,
.cmsEnquiry__submit:focus-visible { background: #5b8c22; border-color: #5b8c22; }
.ukh-guide-form { background: var(--ukh-light); }
.cms-content-section[class*="ukh-"] .cmsEnquiry .cmsBlock__heading { justify-content: flex-start; text-align: left; }

/* A link styled as the main button (Guide > Request your free guide). */
a.ukh-cta-link {
  display: inline-flex;
  padding: .8rem 1.6rem;
  border-radius: var(--ukh-radius);
  background: var(--ukh-green);
  color: #fff !important;
  font-family: var(--font-serif);
  font-weight: 700;
  text-decoration: none;
}
a.ukh-cta-link:hover { filter: brightness(1.06); }

.ukh-owners .cmsCards { justify-content: center; }
.ukh-owners .row > div { max-width: 380px; }
.ukh-owners .cmsCards__card { text-align: center; border-radius: var(--ukh-radius); overflow: hidden; box-shadow: 0 10px 26px rgba(0, 0, 0, .08); }
.ukh-owners .cmsCards__title { color: var(--ukh-blue); }
.ukh-owners .cmsCards__btn { background: var(--ukh-green); border-color: var(--ukh-green); color: #fff; }

.ukh-band { background: var(--ukh-green); color: #fff; padding: 2rem 0 !important; text-align: center; }
/* !important: the core colours a block's first paragraph in the primary
   colour, which on this band is green on green. */
.ukh-band p,
.ukh-band .cmsBlock__body > p:first-child { color: #fff !important; font-family: var(--font-serif); font-weight: 700; font-size: 1.3rem; margin: .25rem 0; }

.ukh-logos { padding-top: 2.5rem !important; }
.ukh-logos .cmsBlock__heading { text-align: center; color: var(--ukh-blue) !important; font-size: 1.5rem; }
.ukh-logos .cmsCards__card { border: 1px solid rgba(0, 0, 0, .06); border-radius: var(--ukh-radius); box-shadow: 0 1px 3px rgba(0, 0, 0, .05); transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.ukh-logos .cmsCards { --bs-gutter-y: 1rem; }
.ukh-logos .cmsCards__card { background: #fff; height: auto; }
/* Logos in full colour; a hovered (or keyboard-focused) tile lifts, gains a
   deeper shadow and a blue edge, and its logo grows a touch -- each tile
   links to that brand's page. */
.ukh-logos .cmsCards__img { transition: transform .25s ease; }
.ukh-logos .cmsCards__card:hover,
.ukh-logos .cmsCards__card:focus-within { border-color: var(--ukh-blue); box-shadow: 0 14px 30px rgba(0, 0, 0, .14); transform: translateY(-4px); }
.ukh-logos .cmsCards__card:hover .cmsCards__img,
.ukh-logos .cmsCards__card:focus-within .cmsCards__img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) {
  .ukh-logos .cmsCards__card:hover,
  .ukh-logos .cmsCards__card:focus-within,
  .ukh-logos .cmsCards__card:hover .cmsCards__img,
  .ukh-logos .cmsCards__card:focus-within .cmsCards__img { transform: none; }
}
/* Each logo is centred on a white 4:3 tile; a 2:1 window trims only the
   tile's empty margins, so the logo shows large and whole. */
.ukh-logos .cmsCards__media { aspect-ratio: 2 / 1; background: #fff; }
.ukh-logos .cmsCards__body { padding: 0; gap: 0; flex: 0 0 auto; }

.ukh-counters {
  position: relative;
  background: var(--ukh-blue) url('ukhearing/counters.webp') center / cover no-repeat;
  isolation: isolate;
}
.ukh-counters::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(30, 50, 100, .72); }
.ukh-counters .cmsCards__card { background: transparent; border: 0; text-align: center; color: #fff; }
.ukh-counters .cmsCards__icon { font-size: 2.2rem; color: #fff; display: block; margin-bottom: .5rem; }
.ukh-counters .cmsCards__title { color: #fff; font-size: 2.6rem; font-weight: 700; margin-bottom: .1rem; }
.ukh-counters .cmsCards__text { color: rgba(255, 255, 255, .92); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

/* CTA band: a soft light pool so the flat blue has depth. */
.ukhCta { background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .14), transparent 45%), var(--ukh-blue); }

/* ---- Scroll reveal (js/themes/ukhearing.js) --------------------------------------
   Only when the script has run (html.ukh-js), so without it nothing is hidden;
   never for anyone who asks the system for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .ukh-js .ukh-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
  .ukh-js .ukh-reveal.is-visible { opacity: 1; transform: none; }
}

/* ---- Responsive --------------------------------------------------------------- */

@media (max-width: 991.98px) {
  .ukhBand__wrap { grid-template-columns: auto 1fr auto; }
  .ukhBand__left { display: none; }
  .ukhBrand { justify-self: start; }
  .ukhBand__right { display: none; }
  .ukhBand__mobile { display: flex; }
  .ukhNav { display: none; }
  .ukhFooter__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .ukhBand__right { display: flex; }
  .ukhBand__call { display: none; }
}

@media (max-width: 767.98px) {
  .ukhBand__wrap { grid-template-columns: 1fr auto; }
  .ukhBrand__logo { height: 52px; }
  .ukhBrand__name { font-size: 1.5rem; }
  .ukhBrand__tag { font-size: .85rem; text-align: left; }
  .ukhHero { min-height: 0; }
  .ukhHero::after { background: linear-gradient(180deg, rgba(15, 30, 60, .2), rgba(15, 30, 60, .72)); }
  .ukhHero__inner { justify-content: center; }
  .ukhHero__content { margin: 9rem 0 1.5rem; padding: 1.5rem 1.25rem; }
  .ukhHighlights__list { flex-direction: column; align-items: flex-start; }
  .ukhHighlights__list li { font-size: 1.1rem; }
  .ukhFooter__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .cmsBlock__body .ukh-img-left,
  .cmsBlock__body .ukh-img-right,
  .content .ukh-img-left,
  .content .ukh-img-right { float: none; max-width: 100%; margin: 1rem 0; }
}

@media (max-width: 420px) {
  .ukhBand__call span { display: none; }
  .ukhBrand__tag { display: none; }
}
