:root {
  --mh-navy: #082c4c;
  --mh-blue: #075985;
  --mh-coral: #ff6b4a;
  --mh-ink: #13202b;
  --mh-muted: #5e6d78;
  --mh-mist: #eef5f8;
  --mh-line: #d8e3e8;
  --mh-white: #fff;
  --mh-shadow: 0 18px 50px rgba(8, 44, 76, 0.12);
  --mh-radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body.motorharbour-site {
  overflow-x: hidden;
}

.motorharbour-site * {
  box-sizing: border-box;
}

.motorharbour-site a {
  text-underline-offset: 0.2em;
}

.motorharbour-site a:focus-visible,
.motorharbour-site button:focus-visible,
.motorharbour-site input:focus-visible,
.motorharbour-site select:focus-visible {
  outline: 3px solid var(--mh-coral);
  outline-offset: 3px;
}

.mh-main,
.mh-main > * {
  margin-block-start: 0;
}

.mh-utility-bar {
  background: #061f35;
  color: #dceaf0;
  min-height: 34px;
  padding: 0.25rem 1.25rem;
}

.mh-utility-bar .wp-block-group {
  gap: 1.25rem;
}

.mh-utility-bar p {
  margin: 0;
}

.mh-utility-bar a {
  color: inherit;
}

.mh-header {
  position: relative;
  z-index: 20;
  background: var(--mh-white);
  border-bottom: 1px solid rgba(8, 44, 76, 0.1);
  padding: 0.45rem 1.25rem;
}

.mh-header-inner {
  min-height: 76px;
  gap: 1.5rem;
}

.mh-brand {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

.mh-brand img {
  display: block;
  width: 230px;
  height: 72px;
  object-fit: contain;
}

.mh-primary-nav {
  color: var(--mh-ink);
  font-size: 0.96rem;
  font-weight: 700;
}

.mh-primary-nav .wp-block-navigation-item__content {
  padding: 0.8rem 0.25rem;
}

.mh-primary-nav .wp-block-navigation-item__content:hover {
  color: var(--mh-blue);
}

.mh-header-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 0.75rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.mh-icon-link {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
}

.mh-icon-link span {
  font-size: 1.35rem;
}

.mh-account-link {
  background: var(--mh-navy);
  border-radius: 999px;
  color: var(--mh-white) !important;
  padding: 0.65rem 1rem;
}

.mh-hero {
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 107, 74, 0.2), transparent 25rem),
    linear-gradient(135deg, #082c4c 0%, #075985 100%);
  color: var(--mh-white);
  min-height: 610px;
  overflow: hidden;
  padding: clamp(3.75rem, 8vw, 7rem) 1.25rem clamp(3rem, 7vw, 5.5rem);
  position: relative;
}

.mh-hero::after {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  content: "";
  height: 560px;
  position: absolute;
  right: -180px;
  top: -210px;
  width: 560px;
}

.mh-hero-copy {
  position: relative;
  text-align: center;
  z-index: 1;
}

.mh-hero h1,
.mh-hero h2,
.mh-hero p {
  color: inherit;
}

.mh-hero h1 {
  margin: 0 auto 1rem;
  max-width: 850px;
}

.mh-hero-copy > p:last-child {
  margin: 0 auto 2.25rem;
  max-width: 650px;
  opacity: 0.9;
}

.mh-eyebrow,
.mh-card-kicker {
  color: var(--mh-coral);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

.mh-search-panel {
  background: var(--mh-white);
  border-radius: 22px;
  box-shadow: 0 25px 70px rgba(0, 10, 25, 0.32);
  color: var(--mh-ink);
  margin: 0 auto;
  max-width: 1160px;
  padding: 1.15rem;
  position: relative;
  z-index: 2;
}

.mh-search-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.9rem;
}

.mh-search-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--mh-muted);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  padding: 0.45rem 1rem 0.6rem;
}

.mh-search-tabs button.is-active {
  border-bottom-color: var(--mh-coral);
  color: var(--mh-navy);
}

.mh-vehicle-search {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1.1fr 1.15fr 1.25fr 1.25fr 1fr 1fr auto;
}

.mh-vehicle-search label {
  display: block;
  min-width: 0;
}

.mh-vehicle-search label > span {
  color: #536470;
  display: block;
  font-size: 0.72rem;
  font-weight: 750;
  margin: 0 0 0.3rem 0.1rem;
  text-transform: uppercase;
}

.mh-vehicle-search input,
.mh-vehicle-search select {
  appearance: none;
  background: #f7fafb;
  border: 1px solid #cbd8de;
  border-radius: 10px;
  color: var(--mh-ink);
  font: inherit;
  height: 50px;
  padding: 0 0.8rem;
  width: 100%;
}

.mh-vehicle-search select {
  background-image: linear-gradient(45deg, transparent 50%, #52636e 50%), linear-gradient(135deg, #52636e 50%, transparent 50%);
  background-position: calc(100% - 16px) 21px, calc(100% - 11px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 1.8rem;
}

.mh-search-submit {
  align-self: end;
  background: var(--mh-coral);
  border: 0;
  border-radius: 12px;
  color: var(--mh-ink);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  height: 50px;
  padding: 0 1.25rem;
  white-space: nowrap;
}

.mh-search-submit:hover,
.mh-reg-form button:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}

.mh-search-extras {
  display: flex;
  font-size: 0.88rem;
  font-weight: 700;
  justify-content: space-between;
  padding: 0.85rem 0.25rem 0;
}

.mh-quick-searches {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin: 1.25rem auto 0;
  max-width: 1100px;
  position: relative;
  z-index: 2;
}

.mh-quick-searches span {
  font-size: 0.88rem;
  opacity: 0.72;
}

.mh-quick-searches a {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 999px;
  color: var(--mh-white);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
}

.mh-section {
  margin-block-start: 0;
  padding: clamp(3.6rem, 7vw, 6rem) 1.25rem;
}

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

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

.mh-section--navy {
  background: var(--mh-navy);
  color: var(--mh-white);
}

.mh-section--navy h2,
.mh-section--navy .mh-section-heading p {
  color: var(--mh-white);
}

.mh-section-heading {
  margin-bottom: 2rem;
}

.mh-section-heading h2,
.mh-section-heading p {
  margin-block: 0;
}

.mh-section-heading > p {
  color: var(--mh-muted);
}

.mh-type-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-inline: auto;
  max-width: var(--wp--style--global--wide-size);
}

.mh-type-card {
  align-items: center;
  background: #f7fafb;
  border: 1px solid var(--mh-line);
  border-radius: var(--mh-radius);
  color: var(--mh-ink);
  display: flex;
  flex-direction: column;
  min-height: 172px;
  padding: 1.4rem 0.8rem;
  text-align: center;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.mh-type-card:hover {
  border-color: var(--mh-blue);
  box-shadow: 0 12px 30px rgba(8, 44, 76, 0.1);
  transform: translateY(-4px);
}

.mh-type-icon {
  align-items: center;
  background: #dceff3;
  border-radius: 50%;
  color: var(--mh-blue);
  display: flex;
  font-size: 1.8rem;
  height: 64px;
  justify-content: center;
  margin-bottom: 0.8rem;
  width: 64px;
}

.mh-type-card strong {
  color: var(--mh-navy);
}

.mh-type-card small {
  color: var(--mh-muted);
  margin-top: 0.25rem;
}

.mh-vehicle-query .wp-block-post-template,
.mh-advice-query .wp-block-post-template {
  gap: 1.25rem;
}

.mh-vehicle-card,
.mh-advice-card {
  background: var(--mh-white);
  border: 1px solid var(--mh-line);
  border-radius: var(--mh-radius);
  box-shadow: 0 8px 24px rgba(8, 44, 76, 0.06);
  margin-block-start: 0;
  overflow: hidden;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.mh-vehicle-card:hover,
.mh-advice-card:hover {
  box-shadow: var(--mh-shadow);
  transform: translateY(-4px);
}

.mh-vehicle-card .wp-block-post-featured-image,
.mh-advice-card .wp-block-post-featured-image {
  margin: 0;
}

.mh-vehicle-card-body,
.mh-advice-card-body {
  padding: 1.15rem 1.2rem 1.3rem;
}

.mh-vehicle-card-body > *,
.mh-advice-card-body > * {
  margin-block-start: 0.65rem;
}

.mh-vehicle-card-body > *:first-child,
.mh-advice-card-body > *:first-child {
  margin-block-start: 0;
}

.mh-vehicle-card h3 a,
.mh-advice-card h3 a {
  color: var(--mh-navy);
}

.mh-vehicle-card .wp-block-post-excerpt,
.mh-advice-card .wp-block-post-excerpt {
  color: var(--mh-muted);
  font-size: 0.92rem;
}

.mh-vehicle-card .wp-block-post-date {
  color: #71808a;
}

.mh-empty-listings {
  align-items: center;
  background: var(--mh-white);
  border: 2px dashed #b9cbd3;
  border-radius: var(--mh-radius);
  display: flex;
  gap: 1rem;
  padding: 2rem;
}

.mh-empty-listings > span {
  font-size: 2.4rem;
}

.mh-empty-listings p {
  color: var(--mh-muted);
  margin: 0.2rem 0 0;
}

.mh-split-cards {
  gap: 1.5rem;
}

.mh-action-card {
  border-radius: 24px;
  min-height: 350px;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.75rem);
  position: relative;
}

.mh-action-card::after {
  border: 34px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
  height: 230px;
  position: absolute;
  right: -80px;
  top: -80px;
  width: 230px;
}

.mh-action-card > * {
  max-width: 560px;
  position: relative;
  z-index: 1;
}

.mh-action-card--sell {
  background: var(--mh-navy);
  color: var(--mh-white);
}

.mh-action-card--sell h2,
.mh-action-card--sell p {
  color: inherit;
}

.mh-action-card--value {
  background: #dff2f4;
}

.mh-card-kicker {
  margin-top: 0;
}

.mh-reg-form {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.mh-reg-form label {
  flex: 1;
}

.mh-reg-form input {
  background: #ffd83d;
  border: 2px solid var(--mh-ink);
  border-radius: 9px;
  color: var(--mh-ink);
  font: 800 1.05rem/1 sans-serif;
  height: 52px;
  letter-spacing: 0.08em;
  padding: 0 0.85rem;
  text-transform: uppercase;
  width: 100%;
}

.mh-reg-form button {
  background: var(--mh-navy);
  border: 0;
  border-radius: 9px;
  color: var(--mh-white);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0 1.15rem;
}

.mh-essential-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-inline: auto;
  max-width: var(--wp--style--global--wide-size);
}

.mh-essential-grid a {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--mh-radius);
  color: var(--mh-white);
  display: grid;
  gap: 0.35rem;
  min-height: 190px;
  padding: 1.5rem;
}

.mh-essential-grid a:hover {
  background: rgba(255, 255, 255, 0.13);
}

.mh-essential-grid span {
  align-items: center;
  background: var(--mh-coral);
  border-radius: 50%;
  color: var(--mh-ink);
  display: flex;
  font-size: 1.35rem;
  font-weight: 850;
  height: 48px;
  justify-content: center;
  margin-bottom: 0.45rem;
  width: 48px;
}

.mh-essential-grid small {
  color: #c7dbe4;
}

.mh-brand-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-inline: auto;
  max-width: var(--wp--style--global--wide-size);
}

.mh-brand-grid a {
  align-items: center;
  border: 1px solid var(--mh-line);
  border-radius: 12px;
  color: var(--mh-ink);
  display: flex;
  font-weight: 750;
  justify-content: space-between;
  padding: 1rem 1.15rem;
}

.mh-brand-grid a:hover {
  border-color: var(--mh-blue);
  color: var(--mh-blue);
}

.mh-advice-card .wp-block-post-terms a {
  color: var(--mh-coral);
  font-weight: 800;
  text-transform: uppercase;
}

.mh-dealer-section {
  background: #ffd9d0;
}

.mh-dealer-cta {
  background: var(--mh-white);
  border-radius: 24px;
  box-shadow: var(--mh-shadow);
  padding: clamp(2rem, 5vw, 4rem);
}

.mh-dealer-cta h2 {
  max-width: 800px;
}

.mh-footer {
  background: #061f35;
  color: #c8d8e0;
  padding: 4.5rem 1.25rem 1.5rem;
}

.mh-footer h3 {
  color: var(--mh-white);
}

.mh-brand--footer img {
  filter: brightness(0) invert(1);
  height: 76px;
  object-position: left center;
  width: 250px;
}

.mh-footer-grid {
  gap: 2.5rem;
}

.mh-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mh-footer-links li + li {
  margin-top: 0.55rem;
}

.mh-footer a {
  color: #d6e4ea;
}

.mh-footer a:hover {
  color: var(--mh-white);
  text-decoration: underline;
}

.mh-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 3rem;
  padding-top: 1.25rem;
}

.mh-footer-bottom p {
  color: #9fb5c0;
  margin: 0;
}

.mh-standard-page {
  min-height: 60vh;
  padding: clamp(3rem, 7vw, 6rem) 1.25rem;
}

.mh-vehicle-archive {
  max-width: var(--wp--style--global--wide-size);
}

.mh-vehicle-detail {
  gap: 2rem;
  margin-top: 2rem;
}

.mh-detail-image img {
  border-radius: var(--mh-radius);
}

.mh-enquiry-panel {
  align-self: flex-start;
  background: var(--mh-mist);
  border: 1px solid var(--mh-line);
  border-radius: var(--mh-radius);
  padding: 1.5rem;
  position: sticky;
  top: 1.5rem;
}

.mh-not-found {
  text-align: center;
}

.mh-not-found .wp-block-search,
.mh-not-found .wp-block-buttons {
  justify-content: center;
  margin-inline: auto;
  max-width: 620px;
}

.mh-article-row {
  border-bottom: 1px solid var(--mh-line);
  padding: 1.5rem 0;
}

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

@media (max-width: 1100px) {
  .mh-primary-nav {
    display: none;
  }

  .mh-vehicle-search {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mh-search-submit {
    width: 100%;
  }

  .mh-type-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mh-essential-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 782px) {
  .mh-utility-bar {
    display: none;
  }

  .mh-header-inner {
    min-height: 64px;
  }

  .mh-brand img {
    height: 60px;
    width: 190px;
  }

  .mh-icon-link {
    display: none;
  }

  .mh-hero {
    min-height: auto;
    padding-top: 3.5rem;
  }

  .mh-vehicle-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mh-search-submit {
    grid-column: 1 / -1;
  }

  .mh-type-grid,
  .mh-brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mh-vehicle-query .wp-block-post-template,
  .mh-advice-query .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mh-split-cards {
    display: block;
  }

  .mh-action-card + .mh-action-card {
    margin-top: 1rem;
  }

  .mh-dealer-cta .wp-block-buttons {
    justify-content: flex-start;
  }

  .mh-footer-grid {
    flex-wrap: wrap !important;
  }

  .mh-footer-grid > .wp-block-column {
    flex-basis: calc(50% - 1.25rem) !important;
  }
}

@media (max-width: 560px) {
  .mh-header {
    padding-inline: 0.75rem;
  }

  .mh-brand img {
    width: 155px;
  }

  .mh-account-link {
    padding: 0.55rem 0.8rem;
  }

  .mh-hero {
    padding-inline: 0.75rem;
  }

  .mh-search-panel {
    border-radius: 16px;
    padding: 0.85rem;
  }

  .mh-vehicle-search {
    grid-template-columns: 1fr;
  }

  .mh-search-submit {
    grid-column: auto;
  }

  .mh-search-extras {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .mh-section {
    padding-inline: 0.85rem;
  }

  .mh-type-grid,
  .mh-essential-grid,
  .mh-brand-grid,
  .mh-vehicle-query .wp-block-post-template,
  .mh-advice-query .wp-block-post-template {
    grid-template-columns: 1fr;
  }

  .mh-type-card {
    align-items: center;
    flex-direction: row;
    gap: 0.75rem;
    justify-content: flex-start;
    min-height: 92px;
    padding: 0.9rem;
    text-align: left;
  }

  .mh-type-icon {
    flex: 0 0 52px;
    height: 52px;
    margin: 0;
    width: 52px;
  }

  .mh-type-card small {
    margin-left: auto;
  }

  .mh-reg-form {
    flex-direction: column;
  }

  .mh-reg-form button {
    min-height: 50px;
  }

  .mh-footer-grid > .wp-block-column {
    flex-basis: 100% !important;
  }
}
