/* CLY Transportation — Layout: header, footer, containers, sections */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  isolation: isolate;
  height: var(--header-h);
  display: flex;
  align-items: center;
  overflow: visible;
  background: var(--color-sand-50);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.site-header.is-scrolled {
  background: #fff;
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-soft);
}

.site-header__inner {
  width: min(100% - (var(--gutter) * 2), 1760px);
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  max-width: calc(100% - 3rem);
  overflow: visible;
  text-decoration: none;
  line-height: 0;
  background: transparent;
  color: var(--color-navy-950);
}

.brand:hover {
  color: var(--color-navy-950);
}

/* Shared 418×254 stage — the spark canvas and both SVGs use viewBox
   417 242 418 254, so the settle swap stays in the same box. */
.brand-live {
  --brand-live-h: calc(var(--header-h) - 0.7rem);
  position: relative;
  display: block;
  width: calc(var(--brand-live-h) * 418 / 254);
  max-width: 100%;
  aspect-ratio: 418 / 254;
  height: auto;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  border: 0;
}

.brand-live__start,
.brand-live__mark,
.brand-live__canvas,
.brand-live canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  background: transparent;
  pointer-events: none;
}

.brand-live__start,
.brand-live__canvas,
.brand-live canvas {
  opacity: 0;
  visibility: hidden;
}

html.cly-logo-play .brand-live:not(.is-playing):not(.is-settled) .brand-live__start {
  opacity: 1;
  visibility: visible;
}

html.cly-logo-play .brand-live:not(.is-playing):not(.is-settled) .brand-live__mark {
  opacity: 0;
  visibility: hidden;
}

.brand-live.is-playing .brand-live__canvas,
.brand-live.is-playing canvas {
  opacity: 1;
  visibility: visible;
}

.brand-live.is-playing .brand-live__mark,
.brand-live.is-playing .brand-live__start {
  opacity: 0;
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .brand-live__start,
  .brand-live__canvas,
  .brand-live canvas {
    display: none;
  }

  .brand-live__mark,
  html.cly-logo-play .brand-live:not(.is-playing) .brand-live__mark {
    opacity: 1;
    visibility: visible;
  }
}

/* Homepage icon ring. Same 1280×720 box for the spark canvas and the still.
   No plate: the hero photo shows through. Paint order is swoosh, then icons,
   then the wordmark. z-index is explicit because z-index:0 sits above auto. */
.brand-ring {
  position: relative;
  display: block;
  width: min(100%, 42rem);
  max-width: 100%;
  aspect-ratio: 1280 / 720;
  margin: 0;
  background: transparent;
  overflow: visible;
  line-height: 0;
}

.brand-ring__swoosh,
.brand-ring__letters {
  opacity: 0;
  visibility: hidden;
}

.brand-ring__swoosh {
  z-index: 1;
}

.brand-ring__mark,
.brand-ring__canvas {
  z-index: 2;
}

.brand-ring__letters {
  z-index: 3;
}

.brand-ring__hits {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.brand-ring__hit {
  position: absolute;
  display: block;
  pointer-events: auto;
  background: transparent;
  border-radius: 0.4rem;
}

a.brand-ring__hit {
  cursor: pointer;
}

.brand-ring__hit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.brand-ring.is-playing .brand-ring__swoosh,
.brand-ring.is-settled .brand-ring__swoosh,
.brand-ring.is-playing .brand-ring__letters,
.brand-ring.is-settled .brand-ring__letters {
  opacity: 1;
  visibility: visible;
}

.brand-ring.is-playing .brand-ring__letters,
.brand-ring.is-settled .brand-ring__letters {
  transition: opacity 0.28s ease;
}

.brand-ring.is-icon-focus.is-playing .brand-ring__letters,
.brand-ring.is-icon-focus.is-settled .brand-ring__letters {
  opacity: 0;
}

/* Old ring poster. Stay hidden while the live logo can play. Reduced
   motion and noscript (head.php) show it as the still fallback. */
.brand-ring__mark {
  visibility: hidden;
}

.brand-ring__mark,
.brand-ring__canvas,
.brand-ring canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  background: transparent;
  pointer-events: none;
}

.brand-ring.is-icon-focus .brand-ring__canvas {
  z-index: 5;
}

.brand-ring__canvas,
.brand-ring canvas {
  opacity: 0;
  visibility: hidden;
}

.brand-ring.is-playing .brand-ring__canvas,
.brand-ring.is-playing canvas {
  opacity: 1;
  visibility: visible;
}

.brand-ring.is-playing .brand-ring__mark,
.brand-ring.is-spinning .brand-ring__mark {
  opacity: 0;
  visibility: hidden;
}

.brand-ring.is-spinning .brand-ring__canvas {
  opacity: 1;
  visibility: visible;
}

/* The poster PNG is the old ring. Keep it out of the first paint until the
   script has the live logo (is-playing) or the settled still (is-settled).
   The box keeps its aspect ratio, so revealing it does not move the headline. */
html.cly-logo-play .brand-ring:not(.is-playing):not(.is-settled) {
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .brand-ring__canvas,
  .brand-ring canvas {
    display: none;
  }

  .brand-ring__mark {
    opacity: 1;
    visibility: visible;
  }
}

/* Static wordmark PNG (keyed RGBA). Dark file on cream; light file on navy. */
.brand-wordmark {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  background: transparent;
}

.brand-wordmark--footer,
.brand-lockup--footer {
  width: min(10.5rem, 100%);
  height: auto;
}

.brand-wordmark--hero,
.brand-lockup--hero {
  width: min(13rem, 100%);
  height: auto;
}

@media (max-width: 640px) {
  .brand-wordmark--hero,
  .brand-lockup--hero {
    width: min(9rem, 80%);
  }
}

.nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Override base `li + li { margin-top }` so a horizontal row stays on one baseline. */
.nav__list li {
  display: flex;
  align-items: center;
  margin: 0;
}

.nav__list a {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 2.25rem;
  font-family: var(--font-accent);
  font-size: var(--text-small);
  font-weight: 500;
  line-height: var(--leading-snug);
  color: var(--color-ink-600);
  text-decoration: none;
  white-space: nowrap;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition:
    color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
}

.nav__list a:hover,
.nav__list a[aria-current="page"] {
  color: var(--color-navy-950);
  background: rgba(18, 48, 74, 0.06);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--color-navy-950);
}

.nav-toggle__bars {
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  position: relative;
  display: block;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
}

.container--wide {
  width: min(100% - (var(--gutter) * 2), var(--container-wide));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section--sand {
  background:
    linear-gradient(180deg, rgba(247, 246, 243, 0.9), rgba(230, 242, 236, 0.35));
}

.section--navy {
  background:
    linear-gradient(135deg, var(--color-navy-950) 0%, var(--color-navy-800) 100%);
  color: white;
}

.section--navy h2,
.section--navy h3 {
  color: white;
}

.section--navy p {
  color: rgba(255, 255, 255, 0.78);
}

.section__intro {
  max-width: 36rem;
  margin-bottom: var(--space-10);
}

.section__intro p {
  font-size: 1.125rem;
}

.grid-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8) var(--space-10);
}

@media (min-width: 900px) {
  .grid-services {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  transition: border-color var(--duration-fast) var(--ease-out);
}

.service-link:hover {
  border-bottom-color: var(--color-forest-700);
}

.service-link__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  background: var(--color-navy-900);
}

.service-link__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.service-link:hover .service-link__media img {
  transform: scale(1.04);
}

.service-link h3 {
  margin-bottom: var(--space-2);
  font-size: 1.2rem;
}

.service-link p {
  font-size: var(--text-small);
  margin: 0;
}

.service-link__cta {
  display: inline-block;
  margin-top: var(--space-3);
  font-family: var(--font-accent);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-forest-700);
}

.split {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-12);
  }

  .split--reverse > :first-child {
    order: 2;
  }
}

.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(145deg, var(--color-navy-900), var(--color-forest-700));
}

.split__media img,
.split__media .site-rotate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__media .site-rotate {
  position: absolute;
  inset: 0;
}

.split__media--stack {
  display: grid;
  gap: var(--space-3);
  aspect-ratio: auto;
  overflow: visible;
  background: none;
  border-radius: 0;
}

.split__media--stack img {
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, var(--color-navy-900), var(--color-forest-700));
}

.split__body {
  min-width: 0;
}

.split__body h2 {
  margin-bottom: var(--space-4);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
}

.feature-list li {
  position: relative;
  padding-left: var(--space-6);
  margin-top: var(--space-3);
  color: var(--color-ink-600);
  overflow-wrap: anywhere;
  min-width: 0;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--color-forest-700);
}

.site-footer {
  background:
    linear-gradient(160deg, var(--color-navy-950) 0%, #0e2a40 55%, #143a2c 100%);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-16) 0 var(--space-10);
  margin-top: var(--space-8);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.site-footer a:hover {
  color: white;
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-grid--4 {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  margin-bottom: var(--space-3);
  color: #fff;
}

.footer-heading {
  font-family: var(--font-accent);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li + li {
  margin-top: var(--space-2);
}

.footer-note {
  font-size: var(--text-small);
  max-width: 22rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  min-width: 0;
  max-width: 100%;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.55);
}

.footer-legal {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.footer-legal__line {
  display: block;
  overflow-wrap: break-word;
}

/* Mobile sticky CTA bar — Check my area + Book now. Width is the viewport
   minus padding; never left/right + min-content, which can push the page. */
.sticky-cta-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  z-index: var(--z-sticky-cta);
  gap: 0.5rem;
  align-items: stretch;
  padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.sticky-cta-bar > * {
  pointer-events: auto;
}

.sticky-cta {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.5rem 0.55rem;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
  font-family: var(--font-accent);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 1.5px solid transparent;
  transition:
    background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out);
}

.sticky-cta--quote {
  background: var(--color-forest-700);
  color: white;
}

.sticky-cta--quote:hover {
  color: white;
  background: var(--color-forest-600);
}

.sticky-cta--area {
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-navy-950);
  border-color: var(--color-border);
}

.sticky-cta--area:hover {
  color: var(--color-navy-950);
  background: var(--color-forest-100);
  border-color: var(--color-forest-600);
}

.sticky-cta--area[aria-current="page"] {
  background: var(--color-forest-100);
  border-color: var(--color-forest-600);
  color: var(--color-forest-700);
}

body.has-sticky-cta main#main {
  padding-bottom: calc(var(--sticky-cta-h) + env(safe-area-inset-bottom, 0px));
}

body.has-sticky-cta .site-footer {
  padding-bottom: calc(var(--space-10) + var(--sticky-cta-h) + env(safe-area-inset-bottom, 0px));
}

body.nav-open .sticky-cta-bar {
  opacity: 0;
  pointer-events: none;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.nav__cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  flex-shrink: 0;
}

.nav-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  padding: 0;
  margin: 0;
  line-height: 0;
  flex: 0 0 44px;
  align-self: center;
  overflow: hidden;
  color: var(--color-navy-950);
  border-radius: var(--radius-sm);
  text-decoration: none;
  vertical-align: middle;
}

.nav-account:hover {
  color: var(--color-navy-950);
  background: rgba(18, 48, 74, 0.06);
}

/* Explicit size — Chrome treats undimensioned SVG as a ~300×150 replaced
   element. Do not inherit width/font-size; never grow in a flex row. */
.nav-account__icon,
.nav-account svg {
  display: block;
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  max-width: 30px;
  max-height: 30px;
  flex: 0 0 30px;
}

.nav__actions .btn--secondary {
  white-space: nowrap;
}

@media (max-width: 1679px) {
  .nav-toggle { display: inline-flex; }

  .site-header__inner {
    gap: var(--space-3);
    min-width: 0;
  }

  .brand {
    flex-shrink: 1;
    min-width: 0;
  }

  .nav {
    position: fixed;
    z-index: 2;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    max-height: calc(100dvh - var(--header-h));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4) var(--gutter) var(--space-6);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform var(--duration-med) var(--ease-out),
      opacity var(--duration-med) var(--ease-out);
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
  }

  .nav__list a {
    padding: var(--space-3) var(--space-4);
    white-space: normal;
  }

  .nav .btn {
    width: 100%;
    margin-top: var(--space-3);
    justify-content: center;
  }

  .nav__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .nav__actions .lang-toggle {
    align-self: flex-start;
    max-width: 100%;
  }

  .nav__actions .btn {
    margin-top: var(--space-2);
  }

  .nav__actions .btn:first-child {
    margin-top: var(--space-3);
  }

  .nav__cta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin-top: var(--space-3);
  }

  .nav__cta .btn,
  .nav__cta .btn:first-child {
    width: auto;
    flex: 1 1 auto;
    margin-top: 0;
    align-self: center;
  }

  .nav__cta .nav-account {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    max-height: 44px;
    flex: 0 0 44px;
    align-self: center;
  }

  .nav__cta .nav-account__icon,
  .nav__cta .nav-account svg {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    max-width: 30px;
    max-height: 30px;
    flex: 0 0 30px;
  }
}

@media (max-width: 1040px) {
  .sticky-cta-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .grid-services {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

@media (min-width: 1680px) {
  .nav__list a {
    padding-inline: 0.45rem;
  }
}

@media (min-width: 1041px) {
  body.has-sticky-cta main#main { padding-bottom: 0; }
  body.has-sticky-cta .site-footer { padding-bottom: var(--space-10); }
}

@media (max-width: 360px) {
  .sticky-cta {
    font-size: 0.75rem;
    padding: 0.45rem 0.4rem;
    min-height: 2.45rem;
  }
}
