/* MR Towing — production design system */

:root {
  --brand-charcoal: #1a1f24;
  --brand-ink: #0e1114;
  --brand-navy: #003050;
  --brand-red: #c8102e;
  --brand-red-deep: #9e0c24;
  --brand-steel: #3d4a55;
  --brand-mist: #e8edf1;
  --brand-paper: #f5f7f8;
  --brand-white: #ffffff;
  --brand-amber: #e4570e;

  --text-primary: var(--brand-ink);
  --text-inverse: var(--brand-white);
  --text-muted: #5c6b76;
  --link: var(--brand-navy);
  --link-hover: var(--brand-red);
  --border-subtle: #d5dde3;
  --focus-ring: #2f6fed;

  --surface-0: var(--brand-white);
  --surface-1: var(--brand-paper);
  --surface-dark: var(--brand-charcoal);
  --surface-hero-scrim:
    linear-gradient(105deg, rgba(8, 10, 12, 0.9) 0%, rgba(8, 10, 12, 0.68) 42%, rgba(8, 10, 12, 0.34) 72%, rgba(8, 10, 12, 0.22) 100%),
    linear-gradient(180deg, rgba(8, 10, 12, 0.28) 0%, transparent 35%, rgba(8, 10, 12, 0.55) 100%);

  --font-display: "Barlow Condensed", Impact, Haettenschweiler, sans-serif;
  --font-head: "Barlow", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;

  --type-brand: clamp(2.75rem, 5vw, 4.5rem);
  --type-h1: clamp(2.25rem, 3.5vw, 3.25rem);
  --type-h2: clamp(1.75rem, 2.5vw, 2.35rem);
  --type-h3: 1.35rem;
  --type-body: 1.125rem;
  --type-small: 0.875rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --container: 72rem;
  --container-narrow: 42rem;
  --gutter: clamp(1rem, 3vw, 2rem);
  --header-h: 4.75rem;
  --radius-sm: 2px;
  --radius-md: 4px;
  --shadow-none: none;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--type-body);
  line-height: 1.65;
  color: var(--text-primary);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(0, 48, 80, 0.08), transparent 60%),
    linear-gradient(180deg, #f7f9fa 0%, var(--brand-white) 40%, var(--brand-paper) 100%);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10000;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  padding: 0.75rem 1rem;
  background: var(--brand-ink);
  color: #fff;
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - (var(--gutter) * 2), var(--container-narrow));
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-md);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out), color 0.2s var(--ease-out);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
  color: #fff;
}

.btn--primary {
  background: var(--brand-red);
  color: #fff;
  border-color: var(--brand-red);
}

.btn--primary:hover {
  background: var(--brand-red-deep);
  border-color: var(--brand-red-deep);
  color: #fff;
}

.btn--secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.section--about .btn--on-dark,
.page-hero .btn--secondary {
  color: #fff;
}

.section:not(.section--dark):not(.hero) .btn--secondary,
.page-hero:not(.page-hero--has-image) .btn--secondary {
  color: var(--brand-ink);
  border-color: var(--brand-ink);
}

.section:not(.section--dark) .btn--secondary:hover,
.page-hero:not(.page-hero--has-image) .btn--secondary:hover {
  background: var(--brand-ink);
  color: #fff;
}

.page-hero--has-image .btn--secondary,
.page-hero--service .btn--secondary,
.page-hero--location .btn--secondary,
.page-hero--blog .btn--secondary,
.page-hero--post .btn--secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.25);
}

.page-hero--has-image .btn--secondary:hover {
  background: #fff;
  color: var(--brand-ink);
  border-color: #fff;
}

.btn--block {
  width: 100%;
}

.text-link {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--brand-navy);
  text-decoration: none;
  border-bottom: 2px solid var(--brand-red);
}

.text-link:hover {
  color: var(--brand-red);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245, 247, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(13, 17, 20, 0.08);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 rgba(13, 17, 20, 0.06);
}

.site-header__inner {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.site-brand__logo {
  width: 56px;
  height: auto;
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-ink);
}

.site-brand__tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.site-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list > .menu-item > a {
  display: block;
  padding: 0.65rem 0.7rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--brand-ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav__list > .menu-item > a:hover,
.site-nav__list > .current-menu-item > a,
.site-nav__list > .current-menu-ancestor > a {
  border-bottom-color: var(--brand-navy);
  color: var(--brand-navy);
}

.site-nav__list .menu-item-has-children {
  position: relative;
}

.site-nav__list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 16rem;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border-subtle);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out), visibility 0.18s;
  z-index: 20;
}

.site-nav__list .menu-item-has-children:hover > .sub-menu,
.site-nav__list .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav__list .sub-menu a {
  display: block;
  padding: 0.55rem 1rem;
  color: var(--brand-ink);
  text-decoration: none;
  font-size: 0.95rem;
  border-left: 3px solid transparent;
}

.site-nav__list .sub-menu a:hover {
  background: var(--brand-paper);
  border-left-color: var(--brand-red);
  color: var(--brand-ink);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-phone {
  display: none;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
  color: var(--brand-ink);
  text-align: right;
}

.header-phone__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.header-phone__number {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand-navy);
}

.header-cta {
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-subtle);
  background: #fff;
  border-radius: var(--radius-md);
  padding: 0;
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--brand-ink);
  margin: 0 auto;
  position: relative;
  transition: transform 0.2s var(--ease-out);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

body.nav-open .nav-toggle__bars {
  background: transparent;
}

body.nav-open .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

body.nav-open .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (min-width: 960px) {
  .header-phone {
    display: flex;
  }
}

@media (max-width: 959px) {
  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .site-brand__tag {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--border-subtle);
    max-height: 0;
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.25s var(--ease-out), opacity 0.2s;
  }

  body.nav-open .site-nav {
    max-height: calc(100vh - var(--header-h));
    opacity: 1;
    visibility: visible;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem var(--gutter) 1.25rem;
  }

  .site-nav__list .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    background: var(--brand-paper);
    margin: 0.25rem 0 0.5rem;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 780px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media picture,
.hero__media img.hero__img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.08);
  animation: heroKenBurns 18s var(--ease-out) forwards;
}

@keyframes heroKenBurns {
  0% {
    transform: scale(1.08) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1) translate3d(0, -1.5%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__img {
    animation: none;
    transform: none;
  }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: var(--surface-hero-scrim);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  max-width: 46rem;
  margin-left: max(var(--gutter), calc((100% - var(--container)) / 2));
  animation: heroCopy 0.9s var(--ease-out) both;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

@keyframes heroCopy {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-head);
  font-size: var(--type-h1);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

.hero__support {
  margin: 0 0 1.5rem;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.94);
  max-width: 36ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__actions .btn {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

/* Sections */
.section {
  padding: var(--space-6) 0;
}

@media (max-width: 720px) {
  .section {
    padding: var(--space-5) 0;
  }

  body {
    padding-bottom: 4.25rem;
  }
}

.section--dark {
  background: linear-gradient(160deg, #12171c 0%, var(--brand-charcoal) 55%, #0c1014 100%);
  color: #fff;
}

.section--dark .section__title,
.section--dark p,
.section--dark .eyebrow {
  color: #fff;
}

.section--paper {
  background: var(--surface-1);
}

.section__header {
  margin-bottom: var(--space-5);
  max-width: 40rem;
}

.section__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-head);
  font-size: var(--type-h2);
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand-ink);
}

.section--dark .section__title {
  color: #fff;
}

.section__subtitle {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-head);
  font-size: var(--type-h3);
}

.section__sub,
.lede {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.lede {
  color: var(--text-primary);
  font-size: 1.2rem;
}

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
  color: var(--brand-navy);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.split--contact {
  align-items: start;
}

.split__media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  min-height: 280px;
}

.split__media--frame {
  position: relative;
  overflow: hidden;
}

.split__media--frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.split__media--frame img {
  min-height: 360px;
  height: 100%;
  transition: transform 0.6s var(--ease-out);
}

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

@media (max-width: 860px) {
  .split,
  .split--contact {
    grid-template-columns: 1fr;
  }
}

/* Capability strips — full-bleed photo + copy */
.capability {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: min(62vh, 520px);
  background: var(--brand-ink);
  color: #fff;
}

.capability--reverse .capability__media {
  order: 2;
}

.capability--reverse .capability__copy {
  order: 1;
}

.capability__media {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}

.capability__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.capability:hover .capability__media img {
  transform: scale(1.04);
}

.capability__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  background: linear-gradient(160deg, #14191f 0%, #0e1216 100%);
}

.capability__copy .section__title {
  color: #fff;
}

.capability__copy p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 36ch;
  margin: 0 0 1.25rem;
}

.capability__copy .text-link {
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid var(--brand-red);
  align-self: flex-start;
  padding-bottom: 0.15rem;
}

.capability__copy .text-link:hover {
  color: #ffb3bd;
}

@media (max-width: 860px) {
  .capability,
  .capability--reverse {
    grid-template-columns: 1fr;
  }

  .capability--reverse .capability__media,
  .capability--reverse .capability__copy {
    order: initial;
  }

  .capability__media {
    min-height: 240px;
    aspect-ratio: 16 / 10;
  }
}

/* Fleet / equipment strip */
.fleet-strip {
  padding: var(--space-6) 0 var(--space-5);
  background: var(--surface-1);
}

.section__header--fleet {
  margin-bottom: var(--space-4);
}

.fleet-strip__track {
  list-style: none;
  margin: 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 28vw);
  gap: 0.65rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.fleet-strip__item {
  scroll-snap-align: start;
}

.fleet-strip__item a {
  display: block;
  position: relative;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  aspect-ratio: 4 / 3;
}

.fleet-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out);
}

.fleet-strip__item a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 10, 12, 0.78) 100%);
}

.fleet-strip__item span {
  position: absolute;
  left: 0.9rem;
  bottom: 0.85rem;
  z-index: 1;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.fleet-strip__item a:hover img {
  transform: scale(1.05);
}

/* Photo-backed section (areas) */
.section--photo {
  position: relative;
  color: #fff;
  overflow: hidden;
}

.section--photo__bg {
  position: absolute;
  inset: 0;
}

.section--photo__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section--photo__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(8, 10, 12, 0.88) 0%, rgba(8, 10, 12, 0.62) 55%, rgba(8, 10, 12, 0.5) 100%);
}

.section--photo .container {
  position: relative;
  z-index: 1;
}

.section--photo .section__title,
.section--photo .section__sub {
  color: #fff;
}

.city-index--on-photo a {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.28);
}

.city-index--on-photo a:hover {
  color: #ffb3bd;
  border-bottom-color: var(--brand-red);
}

/* Dispatch atmosphere CTA */
.dispatch-cta {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.dispatch-cta__bg {
  position: absolute;
  inset: 0;
}

.dispatch-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.dispatch-cta__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 10, 12, 0.9) 0%, rgba(8, 10, 12, 0.55) 60%, rgba(8, 10, 12, 0.35) 100%);
}

.dispatch-cta__inner {
  position: relative;
  z-index: 1;
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  max-width: 36rem;
}

.dispatch-cta__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dispatch-cta__support {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
}

/* Reveal motion */
[data-mrt-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-mrt-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-mrt-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.inline-visual {
  margin: 0 0 1.75rem;
  overflow: hidden;
}

.inline-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

.inline-visual--wide img {
  max-height: 480px;
}

/* Service index — typographic + media, not card-spam */
.service-index {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
}

.service-index__link {
  display: block;
  background: #fff;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.service-index__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.service-index__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease-out);
}

.service-index__link:hover .service-index__media img {
  transform: scale(1.03);
}

.service-index__label {
  display: block;
  padding: 1rem 1.1rem 1.2rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brand-ink);
  border-top: 3px solid transparent;
}

.service-index__link:hover .service-index__label {
  border-top-color: var(--brand-red);
}

@media (max-width: 900px) {
  .service-index {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .service-index {
    grid-template-columns: 1fr;
  }
}

.service-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-left: 3px solid var(--brand-navy);
}

.service-rail li a {
  display: block;
  padding: 0.7rem 1rem;
  text-decoration: none;
  color: var(--brand-ink);
  font-family: var(--font-head);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
}

.service-rail li a:hover {
  background: var(--brand-mist);
  color: var(--brand-navy);
}

.service-rail--dense {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .service-rail,
  .service-rail--dense {
    grid-template-columns: 1fr;
  }
}

.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.how-steps__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 0.04em;
  color: var(--brand-navy);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.how-steps__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-head);
  font-size: 1.35rem;
}

.how-steps p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .how-steps {
    grid-template-columns: 1fr;
  }
}

.city-index {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem 1.5rem;
}

.city-index a {
  display: block;
  padding: 0.85rem 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--brand-ink);
  border-bottom: 1px solid var(--border-subtle);
}

.city-index a:hover {
  color: var(--brand-red);
  border-bottom-color: var(--brand-red);
}

@media (max-width: 800px) {
  .city-index {
    grid-template-columns: repeat(2, 1fr);
  }
}

.surface-form {
  background: var(--surface-1);
  padding: 1rem;
  border: 1px solid var(--border-subtle);
}

.contact-address,
.branch-list {
  font-style: normal;
}

.contact-address span,
.branch-list li span {
  display: block;
}

.branch-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.branch-list li {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.contact-stack {
  margin: 1.25rem 0;
}

/* Interior pages */
.page-hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background:
    linear-gradient(135deg, rgba(0, 48, 80, 0.08), transparent 50%),
    var(--brand-paper);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.page-hero--has-image {
  color: #fff;
  min-height: min(48vh, 420px);
  display: flex;
  align-items: flex-end;
  background: #111;
}

.page-hero--has-image .page-hero__title,
.page-hero--has-image .page-hero__meta,
.page-hero--has-image .page-hero__eyebrow a,
.page-hero--has-image .page-hero__support--light {
  color: #fff;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-color: #111;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.page-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Prefer CSS background on .page-hero__bg — AirLift often strips/lazies the <img>. */
  opacity: 0;
  pointer-events: none;
}

.page-hero--has-image .container {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

.service-index--interior,
.service-index--hub {
  margin-bottom: var(--space-5);
}

.page-hero__brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-hero--has-image .page-hero__brand {
  color: #fff;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-head);
  font-size: var(--type-h1);
  line-height: 1.15;
}

.page-hero__support {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  max-width: 40ch;
}

.page-hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: var(--type-small);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.page-hero__meta {
  margin: 0;
  color: var(--text-muted);
}

.content-wrap {
  padding: var(--space-6) 0;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2,
.entry-content h3 {
  font-family: var(--font-head);
  line-height: 1.25;
}

.entry-content p {
  max-width: 65ch;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  gap: 2.5rem;
  padding: var(--space-6) 0;
  align-items: start;
}

.service-sidebar {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.service-sidebar a {
  display: block;
  padding: 0.65rem 0.85rem;
  text-decoration: none;
  color: #fff;
  background: var(--brand-navy);
  margin-bottom: 2px;
  border-left: 4px solid transparent;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
}

.service-sidebar li.is-current a,
.service-sidebar a:hover {
  background: #5e80aa;
  border-left-color: var(--brand-amber);
  color: #fff;
}

.aside-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-head);
  font-size: 1.1rem;
}

.aside-cta p {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .service-layout {
    grid-template-columns: 1fr;
  }
}

.post-index {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-index__item {
  border-bottom: 1px solid var(--border-subtle);
}

.post-index__link {
  display: grid;
  gap: 0.35rem;
  padding: 1.35rem 0;
  text-decoration: none;
  color: inherit;
}

.post-index__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--brand-ink);
}

.post-index__meta {
  color: var(--text-muted);
  font-size: var(--type-small);
}

.post-index__excerpt {
  color: var(--text-muted);
}

/* Blog photographic card grid */
.section--blog-index {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0 0 var(--space-5);
}

.post-grid--related {
  margin-bottom: 0;
}

.post-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border-subtle);
  height: 100%;
}

.post-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.post-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--brand-mist);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease-out);
}

.post-card__link:hover .post-card__media img {
  transform: scale(1.03);
}

.post-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.15rem 1.2rem 1.35rem;
  flex: 1;
}

.post-card__meta {
  font-size: var(--type-small);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.post-card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--brand-ink);
}

.post-card__excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.post-card__cta {
  margin-top: auto;
  padding-top: 0.75rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-red);
}

.post-card__link:hover .post-card__cta {
  color: var(--brand-red-deep);
}

.blog-empty {
  color: var(--text-muted);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0 0 0.85rem;
  font-size: var(--type-small);
  color: var(--text-muted);
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--brand-red);
}

.breadcrumbs--on-dark,
.breadcrumbs--on-dark a {
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumbs--on-dark a:hover {
  color: #fff;
}

.breadcrumbs span:last-child {
  max-width: 40ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.single-post__content {
  padding-bottom: var(--space-5);
}

.single-post__cta {
  padding: 0 0 var(--space-6);
}

.single-post__cta-inner {
  padding: 1.75rem 1.5rem;
  background:
    linear-gradient(135deg, rgba(0, 48, 80, 0.06), transparent 55%),
    var(--brand-paper);
  border-left: 4px solid var(--brand-red);
}

.single-post__cta-inner .section__title {
  margin-top: 0;
}

.section--related {
  padding-top: var(--space-5);
}

.archive-desc {
  max-width: 52ch;
}

.archive-desc p {
  margin: 0;
}

.navigation.pagination {
  margin: var(--space-5) 0 0;
}

.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
}

.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0 0.75rem;
  font-family: var(--font-head);
  font-weight: 600;
  text-decoration: none;
  color: var(--brand-ink);
  border: 1px solid var(--border-subtle);
  background: #fff;
}

.navigation.pagination .page-numbers:hover {
  border-color: var(--brand-navy);
  color: var(--brand-navy);
}

.navigation.pagination .page-numbers.current {
  background: var(--brand-ink);
  border-color: var(--brand-ink);
  color: #fff;
}

.navigation.pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}

@media (max-width: 960px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  background: var(--brand-charcoal);
  color: rgba(255, 255, 255, 0.86);
  margin-top: auto;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffb3bd;
}

.site-footer__inner {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin: 0 auto;
  padding: var(--space-6) 0 var(--space-5);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.site-footer__logo-link img {
  width: 120px;
  height: auto;
  filter: brightness(1.05);
}

.site-footer__tagline {
  margin: 1rem 0 1.25rem;
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer__heading {
  margin: 0 0 1rem;
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__list li + li {
  margin-top: 0.4rem;
}

.site-footer__list a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.site-footer__address {
  font-style: normal;
  margin-bottom: 1rem;
}

.site-footer__address span {
  display: block;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__bottom-inner {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin: 0 auto;
  padding: 1rem 0;
  font-size: var(--type-small);
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}

.site-footer__legal {
  margin: 0;
  flex: 1 1 16rem;
}

.site-footer__bottom a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer__poweredby {
  margin: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex: 0 0 auto;
  text-align: right;
  /* Clear floating chat launcher on desktop */
  padding-right: 0.25rem;
}

@media (min-width: 721px) {
  .site-footer__bottom-inner {
    padding-right: 4.5rem;
  }
}

.site-footer__poweredby-label {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.site-footer__poweredby-link {
  display: inline-block;
  width: 110px;
  height: 34px;
  background-image: url("../images/click4corp-logo.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  opacity: 0.95;
  transition: opacity 0.2s var(--ease-out);
  /* Logo lives in CSS so AirLift cannot strip/lazy-swap the credit */
  text-indent: -9999px;
  overflow: hidden;
}

.site-footer__poweredby-link:hover {
  opacity: 1;
}

@media (max-width: 600px) {
  .site-footer__bottom-inner {
    align-items: flex-start;
  }

  .site-footer__poweredby {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 960px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

/* Mobile sticky call bar */
.mobile-callbar {
  display: none;
}

@media (max-width: 720px) {
  .mobile-callbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    transform: translateY(110%);
    transition: transform 0.28s var(--ease-out);
    background: var(--brand-ink);
  }

  .mobile-callbar.is-visible {
    transform: translateY(0);
  }

  .mobile-callbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
  }

  .mobile-callbar__call {
    background: var(--brand-red);
  }

  .mobile-callbar__request {
    background: var(--brand-navy);
  }
}
