/**
 * Homepage (index.html) styles.
 *
 * Extracted from 13 inline <style> blocks that were scattered through
 * index.html's markup. Consolidated here, deduplicated, and organised by
 * page section. Uses tokens from css/tokens.css where the value represents
 * a shared design concept (brand color, spacing, radius, shadow); keeps
 * page-specific hand-tuned values (custom gradients, animation curves)
 * where they're a deliberate one-off, not something reused elsewhere.
 */

/* ==========================================================================
   Page-level
   ========================================================================== */
html,
body {
  /* Fixes a stray horizontal scrollbar on mobile */
  max-width: 100vw;
  overflow-x: hidden;
}

@font-face {
  font-family: "Stapel";
  src: url("/assets/webfonts/stapel-medium.otf") format("opentype");
  font-style: normal;
}

/* Google Places Autocomplete renders its own dropdown outside our markup;
   this project hides it in favour of the custom search UI. Do not remove
   as "unused" -- .pac-container is injected by Google's script at runtime. */
.pac-container {
  display: none !important;
}

/* ==========================================================================
   Design system: shared card + icon-badge + section rhythm
   ----------------------------------------------------------------------
   Phase C: the page previously had three different "card" treatments
   (bare Bootstrap p-4/rounded/shadow, hand-tuned .voice-card/.comment-card,
   and .helpful-link-card-inner) and no consistent spacing rhythm between
   sections. This is the one shared system the rest of the page now uses.
   ========================================================================== */
.mh-card {
  background: var(--surface);
  border: 1px solid rgba(23, 34, 77, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.mh-card--interactive:hover,
a:hover > .mh-card {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Circular gradient icon badge -- generalised from .helpful-link-icon so
   the "how it works" / "why choose" sections share the same icon language
   instead of bare coloured Font Awesome glyphs. */
.mh-icon-badge {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--cta-green-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-sm);
}

/* "Why use Maintenance NI" -- deliberately NOT another bordered card grid
   (it sits right under the "How it works" cards; repeating the same boxed
   treatment twice in a row read as monotonous). Just icon + text, with a
   light divider between columns on desktop for structure. */
@media (min-width: 769px) {
  /* align-items: flex-start (Bootstrap rows stretch columns to match the
     tallest by default) so a divider only spans its own column's actual
     content height, not stretched into empty space next to a shorter
     neighbour column. */
  .mh-feature-row {
    align-items: flex-start;
  }

  .mh-feature-row > [class^="col-"] + [class^="col-"] {
    border-left: 1px solid var(--border-color);
  }
}

/* Consistent vertical rhythm between major homepage sections, replacing
   the previous mix of ad hoc py-4/py-5/my-5/mt-4 utilities and a stray
   <br> tag used purely for spacing. */
.mh-section {
  padding: var(--space-8) 0;
}

@media (max-width: 768px) {
  .mh-section {
    padding: var(--space-7) 0;
  }
}

.mh-section--alt {
  background: var(--surface-alt);
}

.mh-section-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--dark);
  text-align: center;
  margin-bottom: var(--space-3);
}

.mh-section-subtitle {
  color: var(--text-muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-6);
  line-height: var(--line-height-relaxed);
}

/* "Why choose": the actual trust statement, given real visual weight
   instead of reading as more of the same muted paragraph text around it. */
.trust-highlight {
  text-align: center;
  max-width: 700px;
  margin: var(--space-4) auto var(--space-5);
  font-size: 1.2rem;
  font-weight: var(--font-weight-semibold);
  color: var(--dark);
  line-height: var(--line-height-relaxed);
}

/* Supporting/SEO-context copy -- deliberately smaller and tighter than
   .mh-section-subtitle so two of them in a row don't each read as their
   own "subtitle" and bloat the section. */
.mh-section-fineprint {
  color: var(--text-muted);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  font-size: 0.9rem;
  line-height: var(--line-height-normal);
}

.mh-feature-row {
  margin-top: var(--space-6);
}

/* ==========================================================================
   Mobile home button (nav)
   ========================================================================== */
.home-btn {
  width: 46px;
  height: 46px;
  font-size: 1.8rem;
  background-color: #dedfe0;
  border-radius: var(--radius-full);
  color: #3f3f3f;
  text-decoration: none;
  margin-left: -5px;
  transition: all 0.2s ease;
}

.home-btn:hover {
  background-color: #e9ecef;
  color: #000;
  transform: scale(1.05);
}

.home-btn:active {
  transform: scale(0.95);
}

/* ==========================================================================
   Hero: marker drop animation
   ========================================================================== */
.marker-bounce {
  width: 64px;
  height: auto;
  filter: brightness(1.1);
  margin-top: -30px;
  animation: markerDropBounce 1.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  transform-origin: center bottom;
}

@media (max-width: 768px) {
  .marker-bounce {
    width: 42px;
    filter: brightness(1.2);
    margin-top: -40px;
  }
}

@keyframes markerDropBounce {
  0% {
    transform: translateY(-260px) scale(1);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  38% {
    transform: translateY(0) scale(1.12, 0.82);
  } /* first impact */
  52% {
    transform: translateY(-120px) scale(0.96, 1.04);
  } /* rebound */
  64% {
    transform: translateY(0) scale(1.08, 0.9);
  } /* second impact */
  74% {
    transform: translateY(-58px) scale(0.98, 1.02);
  }
  82% {
    transform: translateY(0) scale(1.04, 0.96);
  } /* third impact */
  90% {
    transform: translateY(-22px);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   Hero: heading strip + county name swap
   ========================================================================== */
.about-heading-strip {
  width: 100%;
  background:
    radial-gradient(
      120% 180% at 15% -20%,
      var(--primary-light) 0%,
      transparent 55%
    ),
    linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  margin: 0;
  padding: var(--space-9) 0 var(--space-8);
  text-align: center;
}

@media (max-width: 768px) {
  .about-heading-strip {
    padding: var(--space-7) 0 var(--space-6);
  }
}

.about-heading-strip .highlight {
  font-family: "Stapel", sans-serif;
  font-weight: 600;
  color: #ffffff;
}

#county-text {
  display: inline-block;
  min-width: 80px; /* stop text width shifting as the county name changes */
  position: relative;
  vertical-align: bottom;
}

.slide-out {
  animation: slideUp 0.5s forwards;
}
.slide-in {
  animation: slideDown 0.1s forwards;
}

@keyframes slideUp {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-100%);
    opacity: 0;
  }
}

@keyframes slideDown {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==========================================================================
   Hero: search bar
   ========================================================================== */
#main-search-form {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--space-3);
}

.search-bar-container {
  max-width: 900px;
  margin: 0 auto;
}

.search-form {
  width: 100%;
}

.search-top-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: stretch;
  width: 100%;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 220px;
  border-radius: var(--radius-md);
  box-shadow: 0 0 30px 10px rgba(255, 255, 255, 0.1); /* soft glow on the hero's blue background */
}

.search-input-wrapper::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: var(--radius-lg);
  background: radial-gradient(
    ellipse,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  filter: blur(25px);
  z-index: 0;
  pointer-events: none;
}

.search-input-wrapper .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  z-index: 1; /* above the glow */
}

/* input.search-input (not just .search-input) so this beats the global
   input[type="text"] rule in style.css on specificity -- that rule was
   silently overriding padding-left down to 12px, making the search icon
   overlap the typed text. */
input.search-input {
  width: 100%;
  padding: 10px 10px 10px 35px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  font-size: var(--font-size-base);
  box-sizing: border-box;
}

#main-search-query {
  font-size: 14px;
}

#main-search-query::placeholder {
  font-size: 14px;
  color: var(--text-muted);
}

.buttons-container {
  order: 3;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: 0.5rem;
}

.buttons-container .search-btn,
.buttons-container .use-location-btn {
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-weight: var(--font-weight-semibold);
  transition: all 0.2s ease;
}

.buttons-container .search-btn {
  padding: 12px 50px;
  background: linear-gradient(
    to bottom right,
    var(--cta-green),
    var(--cta-green-dark)
  );
  color: #fff;
  font-size: 1.1rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.35);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}

.buttons-container .search-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(22, 163, 74, 0.45);
}

.buttons-container .search-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(22, 163, 74, 0.35);
}

.use-location-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-size: var(--font-size-sm);
  background-color: #fff;
  color: #333;
  border: 1px solid #999;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background 0.25s,
    box-shadow 0.25s;
  white-space: nowrap;
}

.buttons-container .use-location-btn {
  border: 1px solid var(--cta-green);
  background-color: #fff;
  color: #333;
}

.use-location-btn:hover,
.buttons-container .use-location-btn:hover {
  background-color: #f0f0f0;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 769px) {
  .buttons-container {
    margin-top: 40px;
  }
}

@media (min-width: 768px) {
  .search-top-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .search-input-wrapper {
    flex: 1 1 auto;
    min-width: 0;
  }

  /* Centered at natural button size, not stretched to fill the search
     bar's full width -- that made the search button look oversized.
     Just needed to stop sitting bunched at the left. */
  .buttons-container {
    order: 2;
    flex-direction: row;
    justify-content: center;
    margin-top: 0 !important;
    width: 100%;
  }

  .search-mode-row {
    order: 3;
    width: 100%;
    margin-top: var(--space-2);
  }
}

@media (max-width: 768px) {
  .search-btn {
    padding: 10px 8px !important;
    background: linear-gradient(
      135deg,
      var(--cta-green),
      var(--cta-green-dark)
    );
  }
}

/* ==========================================================================
   Hero: search type toggle (Show all / Tradespeople / Requests)
   ========================================================================== */
.search-mode-row {
  order: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: var(--space-2);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
}

.search-mode-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(4px);
  overflow: hidden;
  width: 100%;
  max-width: 360px;
}

.search-mode-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  height: calc(100% - 6px);
  width: calc(100% / 3);
  background: rgb(255 255 255 / 80%);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 0;
}

.search-mode-option {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.97);
  padding: 6px 10px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  cursor: pointer;
  transition:
    color 0.18s ease,
    opacity 0.18s ease,
    transform 0.1s ease;
  white-space: nowrap;
}

.search-mode-option:hover {
  color: #fff;
}

.search-mode-option:active {
  transform: scale(0.96);
}

.search-mode-option.active {
  color: var(--primary);
}

.search-mode-option:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .search-mode-row {
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
  }

  .search-mode-option {
    padding: 6px 8px;
    font-size: 0.85rem;
  }

  .search-mode-toggle {
    max-width: 100%;
  }
}

/* ==========================================================================
   Hero: quick categories loading state
   ========================================================================== */
.mh-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--cta-green-dark);
  border-radius: var(--radius-full);
  animation: mh-spin 0.6s linear infinite;
}

@keyframes mh-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Hero: quick category CTA cards + "view more" button
   ========================================================================== */
.quick-categories-wrapper .form-label {
  font-weight: var(--font-weight-semibold);
  margin-bottom: 8px;
}

#quickCategoriesWrapper {
  text-align: center;
}

#quickCategories {
  display: grid !important;
  gap: var(--space-3);
  padding: 0;
  justify-content: center;
  justify-items: center;
  align-items: center;
}

.category-cta {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-align: center;
  background-color: #fff;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  flex: none;
  overflow: hidden;
}

/* Keyboard-focusable (role="button", set in app markup) -- needs its own
   visible indicator since it isn't a native button/link. */
.category-cta:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.category-cta img.category-icon {
  width: 100%;
  height: 66%;
  object-fit: cover;
}

.category-cta span {
  display: block;
  height: 34%;
  padding: 2px 4px;
  font-weight: var(--font-weight-semibold);
  font-size: 0.9rem;
  line-height: 1;
  color: #1f2937;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
}

.category-pill {
  display: block;
  margin: 12px auto 0;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: #f3f4f6;
  color: #1f2937;
  font-size: 0.9rem;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.category-pill:hover {
  background-color: var(--cta-green);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.category-cta-one-line span {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#showMoreCategoriesBtn {
  width: auto;
  min-width: 240px;
  max-width: 100%;
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: var(--font-weight-semibold);
  background: linear-gradient(135deg, var(--cta-green), var(--cta-green-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(22, 163, 74, 0.35);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}

#showMoreCategoriesBtn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(22, 163, 74, 0.4);
}

#showMoreCategoriesBtn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(22, 163, 74, 0.3);
}

@media (max-width: 768px) {
  #showMoreCategoriesBtn {
    font-size: 1rem;
    min-width: 0;
    width: 100%;
  }

  .buttons-container {
    flex-direction: column;
  }

  #quickCategories {
    grid-template-columns: repeat(4, 70px);
    grid-auto-rows: 80px;
    gap: 25px;
  }

  .category-cta {
    border-radius: var(--radius-md);
    width: 90px;
    height: 90px;
  }

  .category-cta img.category-icon {
    width: 100%;
    height: 66%;
  }

  .category-cta span {
    height: 34%;
    font-size: 0.75rem;
  }

  /* Boiler card needs a shorter label at this size */
  .category-cta.boiler-card span {
    height: 25px;
    font-size: 10.5px;
    line-height: 1.2;
  }
}

@media (min-width: 769px) {
  #quickCategories {
    grid-template-columns: repeat(6, 120px);
    grid-auto-rows: 120px;
    gap: var(--space-5);
    justify-content: center;
    justify-items: center;
    align-items: center;
  }

  .category-cta {
    border-radius: var(--radius-md);
    width: 120px;
    height: 120px;
  }

  .category-cta img.category-icon {
    width: 100%;
    height: 66%;
  }

  .category-cta span {
    height: 34%;
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .category-cta:hover {
    background-color: var(--cta-green-dark);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }

  .category-cta:hover span {
    color: #fff;
  }

  .category-cta.boiler-card span {
    height: 34%;
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   About section: heading, feature list, CTAs, images
   ========================================================================== */
.about-section {
  background: linear-gradient(180deg, #d6e4ff 0%, #ffffff 100%);
  font-family: "Inter", "Quicksand", "Poppins", sans-serif;
  color: var(--text-body);
  padding: 2rem 0;
}

.about-content-strip {
  background: linear-gradient(180deg, #f9f9f9 0%, #ffffff 100%);
}

/* Only used on the hero H1 -- sized for hero impact rather than a
   standard section heading. */
.section-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-5);
  line-height: var(--line-height-tight);
}

@media (min-width: 993px) {
  .section-title {
    font-size: var(--font-size-5xl);
  }
}

.lead {
  font-size: 1.15rem;
  line-height: var(--line-height-relaxed);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-5);
}

.feature-list li {
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}

.feature-list li i {
  color: var(--success) !important;
  margin-right: var(--space-2);
  font-size: 1.2rem;
}

.d-flex.flex-wrap.gap-3.mb-4 {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  justify-content: flex-start;
}

.cta-btn {
  display: flex;
  flex: 1 1 48%;
}

.cta-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--space-4);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.cta-icon-img {
  width: 95%;
  height: 95%;
  border-radius: var(--radius-full);
}

.cta-icon1 {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 1rem 3rem 0;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.cta-icon-img1 {
  width: 400%;
  height: 400%;
  object-fit: cover;
  border-radius: var(
    --radius-md
  ); /* match .cta-icon1's rounded-square container */
}

.cta-text h5 {
  margin: 0;
  color: #fff;
  font-size: 1.6rem;
  font-weight: var(--font-weight-semibold);
  word-wrap: break-word;
  overflow: hidden;
}

.about-images {
  position: relative;
  min-height: 500px;
}

.img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.3s ease;
  pointer-events: auto;
}

.img-main:hover {
  transform: scale(1.03);
}

.img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 55%;
  height: 35%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
  pointer-events: auto;
}

.img-overlay:hover {
  transform: scale(1.05);
}

.mini-logo {
  width: 36px;
  height: auto;
}

.map-image {
  max-width: 480px;
  width: 100%;
  height: auto;
  border-radius: 15px;
}

.bullet-start-top {
  font-weight: var(--font-weight-bold);
  margin-right: 5px;
}

.bullet-end-top {
  font-size: 0.8rem;
}

@media (max-width: 1199px) {
  .map-image {
    max-width: 85%;
  }
}

@media (max-width: 992px) {
  .cta-btn {
    flex: 1 1 100%;
  }

  .about-images {
    display: none;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .lead {
    font-size: 1.1rem;
  }

  .cta-text h5 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .about-images .img-overlay {
    width: 80%;
    left: 10%;
  }

  .d-flex.flex-wrap.gap-3.mb-4 {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 50px;
  }

  .cta-text h5 {
    font-size: 1.4rem;
  }

  .bullet-start-top::after {
    content: "\A"; /* force a line break after the bold lead-in on mobile */
    white-space: pre;
  }

  .bullet-end-top {
    font-size: 0.7rem;
  }
}

/* ==========================================================================
   "Are you an NI tradesperson?" / find-help CTA cards
   ========================================================================== */
.titleCta {
  font-size: 1.4rem !important;
}

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

.cta-card {
  background: var(--primary);
  padding: 14px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.18),
    0 15px 40px rgba(0, 0, 0, 0.22) !important;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease;
}

.cta-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.32);
}

.cta-card:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.cta-card:focus,
.cta-card:focus-visible {
  outline: none;
  box-shadow:
    var(--focus-ring),
    0 14px 30px rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.42);
}

.cta-text {
  color: #fff;
  min-width: 0; /* let flex children shrink instead of overflowing */
  flex: 1 1 auto;
}

.cta-icon,
.cta-icon1 {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
}

.cta-card .cta-icon-img1 {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.cta-desc {
  line-height: 1.35;
  opacity: 0.95;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.cta-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  margin-top: var(--space-3);
  font-weight: var(--font-weight-semibold);
  font-size: 0.95rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.cta-card:hover .cta-action-btn {
  background: #89ffb1;
  color: #065f46;
  transform: translateX(2px);
}

.cta-seemap-action {
  margin-top: var(--space-3);
  font-weight: var(--font-weight-medium);
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-arrow {
  margin-left: var(--space-3);
  opacity: 0.9;
  flex: 0 0 auto;
}

#find-help-btn {
  display: block; /* stop the anchor collapsing into an inline row */
}

#find-help-btn .cta-body {
  display: flex;
  align-items: center;
}

@media screen and (min-width: 769px) {
  #cta-top {
    font-size: 31px !important;
  }

  #cta-text-small {
    font-size: 0.9rem !important;
  }
}

@media (max-width: 768px) {
  .cta-card {
    min-height: 0;
  }

  .cta-desc {
    -webkit-line-clamp: 5;
  }
}

/* ==========================================================================
   Trending / testimonials ("Real voices")
   ========================================================================== */
.text-success-bright {
  color: #32cd32 !important;
  transition:
    color 0.3s ease,
    text-shadow 0.3s ease;
}

.text-success-bright:hover {
  color: #32cd32;
  text-shadow:
    0 0 3px #32cd32,
    0 0 6px #32cd32;
}

.text-success-bright.pulse {
  animation: pulseGreen 1.5s infinite ease-in-out;
}

@keyframes pulseGreen {
  0% {
    transform: scale(1);
    text-shadow: 0 0 3px #32cd32;
  }
  50% {
    transform: scale(1.05);
    text-shadow: 0 0 6px #32cd32;
  }
  100% {
    transform: scale(1);
    text-shadow: 0 0 3px #32cd32;
  }
}

.real-voices-section {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

/* Responsive card grid -- natural content height (no forced h-100
   uniformity), reads less mechanical than a rigid equal-height row. */
/* Flexbox + wrap instead of CSS Grid so a wrapped last row centers itself
   automatically -- with 5 fixed items, a grid left the 5th orphaned alone
   on its own row with empty space beside it. */
.voice-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-5);
}

.voice-card {
  flex: 1 1 260px;
  max-width: 340px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.voice-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.voice-avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: var(--font-weight-bold);
  font-size: 1.05rem;
}

/* Cycle through the brand palette per card instead of one repeated color */
.voice-card--a .voice-avatar {
  background: var(--primary);
}
.voice-card--b .voice-avatar {
  background: var(--cta-green-dark);
}
.voice-card--c .voice-avatar {
  background: var(--primary-dark);
}
.voice-card--d .voice-avatar {
  background: var(--cta-green);
}
.voice-card--e .voice-avatar {
  background: var(--primary-light);
}
.voice-card--f .voice-avatar {
  background: var(--primary);
}
.voice-card--g .voice-avatar {
  background: var(--cta-green-dark);
}

.voice-text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-body);
  font-weight: var(--font-weight-normal);
}

.voice-name {
  margin: 0;
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  color: var(--dark);
}

@media (max-width: 768px) {
  .voice-card {
    padding: var(--space-4);
  }

  .voice-text {
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   Helpful links (guides) section
   ========================================================================== */
.helpful-link-card-inner {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  text-align: left;
  color: var(--dark);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.helpful-link-card:hover .helpful-link-card-inner {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.helpful-link-top {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.helpful-link-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--cta-green-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
}

/* Cycle through the brand palette per card instead of one repeated gradient */
.helpful-link-card--a .helpful-link-icon {
  background: var(--primary);
}
.helpful-link-card--b .helpful-link-icon {
  background: var(--cta-green-dark);
}
.helpful-link-card--c .helpful-link-icon {
  background: var(--primary-dark);
}
.helpful-link-card--d .helpful-link-icon {
  background: var(--cta-green);
}

.helpful-link-card-inner h4 {
  font-weight: var(--font-weight-bold);
  font-size: 1.2rem;
  line-height: 1.3;
}

.helpful-link-card-inner p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: var(--font-size-base);
  flex: 1;
}

.helpful-link-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-weight: var(--font-weight-bold);
  font-size: 0.95rem;
  color: var(--primary);
}

.helpful-link-cta i {
  transition: transform 0.2s ease;
  font-size: 0.85rem;
}

.helpful-link-card:hover .helpful-link-cta i {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .helpful-link-card-inner {
    padding: 22px 20px 18px;
  }

  .helpful-link-icon {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
  }

  .helpful-link-card-inner h4 {
    font-size: 1.1rem;
  }

  .helpful-link-card-inner p {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   Quote / testimonial banner
   ========================================================================== */
.quote-banner {
  height: 400px;
  position: relative;
  width: 50%;
  margin: 40px auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.quote-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Bottom-anchored scrim instead of a flat dark wash + floating pill --
     keeps the image visible up top and gives the caption text a legible
     surface to sit on at the bottom, without a disconnected floating box. */
  background: linear-gradient(
    0deg,
    rgba(10, 20, 40, 0.88) 0%,
    rgba(10, 20, 40, 0.45) 45%,
    rgba(10, 20, 40, 0) 75%
  );
  z-index: 1;
  pointer-events: none;
}

.quote-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transition: transform 0.35s ease;
}

.quote-banner-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: #ffffff !important;
  text-align: left;
  z-index: 2;
  text-decoration: none;
  padding: 28px 32px 24px;
  pointer-events: none;
}

.quote-banner-heading {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: var(--font-size-2xl);
  /* explicit, not inherited -- a global heading-color rule elsewhere was
     otherwise winning over the parent's inherited white */
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.quote-banner p {
  font-size: 17px;
  font-weight: var(--font-weight-medium);
  margin: 0;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  max-width: 480px;
}

.quote-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #ffffff;
  font-weight: var(--font-weight-bold);
  font-size: 15px;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-shadow: none;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.quote-banner-btn i {
  transition: transform 0.2s ease;
  font-size: 13px;
}

.quote-banner:hover .quote-banner-btn {
  background: var(--primary-dark);
}

.quote-banner:hover .quote-banner-btn i {
  transform: translateX(4px);
}

.quote-banner:hover .quote-banner-img {
  transform: scale(1.03);
}

.quote-banner:focus {
  outline: var(--focus-ring);
  outline-offset: 4px;
}

@media (max-width: 768px) {
  .quote-banner {
    width: 95%;
    height: 220px;
    margin: 40px auto;
  }

  .quote-banner-caption {
    padding: 20px 20px 18px;
  }

  .quote-banner-heading {
    font-size: 1.4rem;
    margin-bottom: 3px;
    line-height: 1.2;
  }

  .quote-banner-caption p {
    font-size: 13px;
    line-height: 1.3;
  }
}

/* ==========================================================================
   Browse locations grid
   ========================================================================== */
.seo-locations {
  padding: 32px 0;
  background: #fff;
}

/* ==========================================================================
   BT postcode grid
   ========================================================================== */
@media (max-width: 768px) {
  .bt-summary {
    flex-wrap: wrap;
  }

  .bt-count {
    flex-basis: 100%;
  }
}

/* ==========================================================================
   Footer logo
   ========================================================================== */
.logo-container {
  display: flex;
  align-items: center;
}

.logo-responsive {
  width: auto;
  height: clamp(40px, 6vw, 50px);
  max-width: 100%;
  margin: 0 0 10px -10px;
}

@media (max-width: 768px) {
  .footer-text-platform {
    font-size: 0.85rem;
    margin-left: -10px;
  }
}
