/* ==========================================================================
   JJN TRUCKING INC. | style.css
   Mobile-first. Breakpoints: 768px (tablet) and 1024px (desktop).
   --------------------------------------------------------------------------
   01. Design tokens
   02. Reset & base
   03. Utilities
   04. Typography
   05. Buttons
   06. Header & navigation
   07. Hero
   08. Section scaffolding
   09. Services
   10. Why JJN
   11. Ports & service area
   12. Testimonials
   13. Contact & quote form
   14. Footer
   15. Mobile call bar
   16. Scroll reveal
   17. Keyframes
   18. Reduced motion
   ========================================================================== */


/* ==========================================================================
   01. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Brand */
  --black: #0a0a0a;
  --green: #2a9d3f;
  --silver: #b0b8b0;
  --white: #f0f4f0;

  /* Brand extensions */
  --green-bright: #36b64d;
  --green-tint: rgba(42, 157, 63, 0.12);
  --ink-950: #070807;
  --ink-900: #0a0a0a;
  --ink-800: #111411;
  --ink-750: #151915;
  --line: rgba(176, 184, 176, 0.14);
  --line-strong: rgba(176, 184, 176, 0.28);
  --muted: #8a938a;
  --placeholder: #7c857c;
  --error: #ff6b6b;
  --overlay: rgba(0, 0, 0, 0.72);

  /* Type */
  --font-display: "Bebas Neue", Impact, "Arial Narrow Bold", sans-serif;
  --font-label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  /* Layout */
  --container: 1280px;
  --gutter: 16px;
  --section-y: 88px;
  --nav-h: 72px;
  --nav-h-scrolled: 64px;
  --logo-h: 48px;
  --logo-h-scrolled: 40px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t: 250ms ease;
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --section-y: 112px;
    --nav-h: 84px;
    --nav-h-scrolled: 68px;
    --logo-h: 54px;
    --logo-h-scrolled: 44px;
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 40px;
    --section-y: 136px;
    --nav-h: 96px;
    --nav-h-scrolled: 72px;
    --logo-h: 58px;
    --logo-h-scrolled: 46px;
  }
}


/* ==========================================================================
   02. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h-scrolled);
  scrollbar-color: #2b352c var(--black);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

img.is-missing {
  display: none;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

strong {
  font-weight: 600;
}

[hidden] {
  display: none !important;
}

::selection {
  background-color: var(--green);
  color: var(--black);
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background-color: var(--black);
}

::-webkit-scrollbar-thumb {
  background-color: #2b352c;
  border: 2px solid var(--black);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--green);
}


/* ==========================================================================
   03. UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background-color: var(--green);
  color: var(--black);
  font-family: var(--font-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--t);
}

.skip-link:focus {
  transform: translateY(0);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ==========================================================================
   04. TYPOGRAPHY
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.125rem;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

.eyebrow::before {
  content: "";
  flex-shrink: 0;
  width: 24px;
  height: 2px;
  background-color: currentColor;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--white);
  text-wrap: balance;
}

.section-title em {
  display: block;
  font-style: normal;
  color: var(--green);
}

.section-lead {
  margin-top: 1.25rem;
  max-width: 36rem;
  color: var(--silver);
  font-size: clamp(1.0625rem, 0.3vw + 1rem, 1.1875rem);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .eyebrow {
    font-size: 0.875rem;
    letter-spacing: 0.22em;
  }

  .eyebrow::before {
    width: 36px;
  }
}


/* ==========================================================================
   05. BUTTONS
   ========================================================================== */
.btn {
  --btn-h: 52px;
  --cut: 14px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: var(--btn-h);
  padding: 0.5rem 1.75rem;
  border: 0;
  border-radius: 0;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--t), color var(--t), box-shadow var(--t), transform var(--t);
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn__arrow {
  transition: transform var(--t);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.btn:active {
  transform: translateY(1px);
}

/* Solid green with angled bottom-right corner */
.btn--primary {
  background-color: var(--green);
  color: var(--black);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}

.btn--primary:hover {
  background-color: var(--green-bright);
}

/* White outline */
.btn--ghost {
  background-color: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(240, 244, 240, 0.5);
}

.btn--ghost:hover {
  background-color: rgba(240, 244, 240, 0.08);
  box-shadow: inset 0 0 0 1.5px var(--white);
}

/* Black, used on the green accent bar */
.btn--dark {
  background-color: var(--black);
  color: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}

.btn--dark:hover {
  background-color: var(--white);
  color: var(--black);
}

/* Clipped buttons draw their focus ring inside the shape */
.btn--primary:focus-visible,
.btn--dark:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -6px;
}

.btn--sm {
  --btn-h: 44px;
  --cut: 10px;
  padding: 0.375rem 1.25rem;
  font-size: 0.9375rem;
}

.btn--lg {
  --btn-h: 56px;
  padding: 0.5rem 2rem;
  font-size: 1.125rem;
}

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

.btn:disabled {
  cursor: progress;
  opacity: 0.85;
}

.btn__spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(10, 10, 10, 0.25);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn.is-loading .btn__spinner {
  display: inline-block;
}

.btn.is-loading .btn__arrow {
  display: none;
}


/* ==========================================================================
   06. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color var(--t), border-color var(--t), box-shadow var(--t);
}

/* Soft top shade keeps nav legible over the hero photo */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -48px 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
  pointer-events: none;
  transition: opacity var(--t);
}

.site-header.is-scrolled,
.site-header.is-open {
  background-color: rgba(8, 8, 8, 0.96);
  border-bottom-color: var(--green);
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
}

.site-header.is-scrolled::before,
.site-header.is-open::before {
  opacity: 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--nav-h);
  transition: height var(--t);
}

.site-header.is-scrolled .site-header__inner {
  height: var(--nav-h-scrolled);
}

/* Brand (logo + wordmark) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: var(--white);
  text-decoration: none;
}

.brand__logo {
  width: auto;
  height: var(--logo-h);
  max-width: 200px;
  object-fit: contain;
  transition: height var(--t);
}

.site-header.is-scrolled .brand__logo {
  height: var(--logo-h-scrolled);
}

/* Desktop links */
.primary-nav {
  display: none;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.6vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
  text-decoration: none;
  transition: color var(--t);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

/* Right-side actions */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--green);
  text-decoration: none;
}

.header-phone__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--green);
  border: 1px solid rgba(42, 157, 63, 0.55);
  transition: background-color var(--t), border-color var(--t), color var(--t);
}

.header-phone__icon .icon {
  width: 20px;
  height: 20px;
}

.header-phone:hover .header-phone__icon {
  background-color: var(--green);
  border-color: var(--green);
  color: var(--black);
}

.header-phone__text {
  display: none;
}

.header-phone__label {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
}

.header-phone__num {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: 0.03em;
  color: var(--green);
  transition: color var(--t);
}

.header-phone:hover .header-phone__num {
  color: var(--green-bright);
}

.header-cta {
  display: none;
}

/* Instagram icon (tablet and up; phones get it inside the menu) */
.header-social {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--silver);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  text-decoration: none;
  transition: color var(--t), border-color var(--t), background-color var(--t);
}

.header-social .icon {
  width: 18px;
  height: 18px;
}

.header-social:hover {
  color: var(--black);
  background-color: var(--green);
  border-color: var(--green);
}

/* Language switch (EN | ES), shown on every screen size */
.lang-switch {
  display: inline-flex;
  flex-shrink: 0;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.lang-switch__link {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 36px;
  padding: 0 0.5rem;
  border-radius: 999px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: var(--silver);
  text-decoration: none;
  transition: color var(--t), background-color var(--t);
}

.lang-switch__link:hover {
  color: var(--white);
}

.lang-switch__link.is-current {
  background-color: var(--green);
  color: var(--black);
}

.hero__badge-lang {
  color: var(--green);
}

/* Hamburger */
.nav-toggle {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  background-color: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--white);
  transition: border-color var(--t), background-color var(--t);
}

.nav-toggle:hover {
  border-color: var(--green);
}

.nav-toggle__bar {
  position: absolute;
  top: calc(50% - 1px);
  left: 12px;
  right: 12px;
  height: 2px;
  background-color: currentColor;
  transition: transform var(--t), opacity var(--t);
}

.nav-toggle__bar:nth-child(1) {
  transform: translateY(-6px);
}

.nav-toggle__bar:nth-child(3) {
  transform: translateY(6px);
}

.site-header.is-open .nav-toggle {
  border-color: var(--green);
}

.site-header.is-open .nav-toggle__bar:nth-child(1) {
  transform: rotate(45deg);
}

.site-header.is-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle__bar:nth-child(3) {
  transform: rotate(-45deg);
}

/* Slide-down drawer (height is set by main.js for a smooth max-height transition) */
.mobile-drawer {
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  background-color: rgba(8, 8, 8, 0.98);
  transition: max-height 250ms ease, visibility 0s linear 250ms;
}

.site-header.is-open .mobile-drawer {
  visibility: visible;
  overflow-y: auto;
  transition: max-height 250ms ease, visibility 0s linear 0s;
}

.mobile-drawer__nav {
  padding-block: 0.5rem 1.5rem;
}

.mobile-drawer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 1.1;
  letter-spacing: 0.03em;
  color: var(--white);
  text-decoration: none;
  transition: color var(--t);
}

.mobile-drawer__link .icon {
  width: 20px;
  height: 20px;
  color: var(--green);
  opacity: 0.45;
  transition: opacity var(--t), transform var(--t);
}

.mobile-drawer__link:hover,
.mobile-drawer__link.is-active {
  color: var(--green);
}

.mobile-drawer__link:hover .icon,
.mobile-drawer__link.is-active .icon {
  opacity: 1;
  transform: translateX(4px);
}

.mobile-drawer__cta {
  display: grid;
  gap: 0.75rem;
  padding-top: 1.5rem;
}

.mobile-drawer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.5rem;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver);
  text-decoration: none;
  transition: color var(--t);
}

.mobile-drawer__social .icon {
  width: 20px;
  height: 20px;
  color: var(--green);
}

.mobile-drawer__social:hover {
  color: var(--white);
}

@media (min-width: 768px) {
  .header-phone__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }

  .header-phone__icon .icon {
    width: 18px;
    height: 18px;
  }

  .header-phone__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    white-space: nowrap;
  }

  .header-cta {
    display: inline-flex;
  }

  .header-social {
    display: grid;
  }

  .lang-switch__link {
    height: 32px;
  }

  .site-header__actions {
    gap: 1rem;
  }

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

@media (min-width: 1024px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
  }

  .brand {
    justify-self: start;
  }

  .site-header__actions {
    justify-self: end;
    gap: 1.25rem;
  }

  .primary-nav {
    display: block;
  }

  .nav-toggle,
  .mobile-drawer {
    display: none;
  }

  /* Legal pages have no centre nav: logo left, actions right */
  .site-header--simple .site-header__inner {
    display: flex;
  }
}

/* Small laptops: tighten the header so logo, menu, EN|ES, phone and quote
   button all fit on one line (Instagram stays in the footer at this size) */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .site-header:not(.site-header--simple) .header-social {
    display: none;
  }

  .site-header__inner {
    gap: 1rem;
  }

  .site-header__actions {
    gap: 0.75rem;
  }

  .primary-nav__list {
    gap: 0.875rem;
  }
}


/* ==========================================================================
   07. HERO
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--nav-h);
  overflow: hidden;
  background-color: var(--black);
}

/* Photo layer (moved by the parallax script). The gradient shows until truck.jpg is added. */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-color: #0c0f0c;
  background-image:
    radial-gradient(ellipse 60% 55% at 78% 30%, rgba(42, 157, 63, 0.3), rgba(42, 157, 63, 0) 70%),
    linear-gradient(160deg, #1d241d 0%, #0a0a0a 65%);
  will-change: transform;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: var(--overlay);
}

.hero__overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 65%),
    linear-gradient(0deg, var(--black) 0%, rgba(10, 10, 10, 0) 30%);
}

.hero__inner {
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: 2.5rem 2rem;
}

.hero__content {
  max-width: 58rem;
}

.hero__title {
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4.25rem, 8vw + 2.5rem, 10rem);
  line-height: 0.88;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--white);
}

.hero__title em {
  font-style: normal;
  color: var(--green);
}

/* Each headline line slides up from behind a mask */
.hero__line {
  display: block;
  overflow: hidden;
  padding-top: 0.06em;
  margin-top: -0.06em;
}

.hero__line > span {
  display: block;
  animation: lineUp 1.1s var(--ease-out) 0.25s both;
}

.hero__line + .hero__line > span {
  animation-delay: 0.38s;
}

.hero__sub {
  max-width: 38rem;
  margin-bottom: 2rem;
  font-size: clamp(1.0625rem, 0.6vw + 0.95rem, 1.3125rem);
  line-height: 1.6;
  color: rgba(240, 244, 240, 0.86);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.hero__ctas .btn {
  flex: 1 1 auto;
  padding-inline: 0.75rem;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

/* Stat pills: compact tiles on phones, inline pills from tablet up */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  max-width: 34rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.7rem 0.5rem 0.6rem;
  text-align: center;
  background-color: rgba(10, 10, 10, 0.5);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.stat-pill__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.stat-pill__label {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
}

/* Bottom row: credentials + scroll cue */
.hero__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.5rem;
  animation: heroIn 0.9s var(--ease-out) 1s both;
}

.hero__badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--silver);
}

.hero__badge-sep {
  margin-inline: 0.5rem;
  color: var(--green);
}

.hero__scroll {
  display: none;
}

/* Load-in sequence */
.hero__content > * {
  animation: heroIn 0.9s var(--ease-out) both;
}

.hero__content > :nth-child(1) {
  animation-delay: 0.15s;
}

.hero__content > .hero__title {
  animation: none;
}

.hero__content > :nth-child(3) {
  animation-delay: 0.55s;
}

.hero__content > :nth-child(4) {
  animation-delay: 0.7s;
}

.hero__content > :nth-child(5) {
  animation-delay: 0.85s;
}

@media (min-width: 768px) {
  .hero__inner {
    padding-block: 3rem;
  }

  .hero__sub {
    margin-bottom: 2.5rem;
  }

  .hero__ctas {
    gap: 1rem;
    margin-bottom: 2.75rem;
  }

  .hero__ctas .btn {
    flex: 0 0 auto;
    padding-inline: 2rem;
    font-size: 1.125rem;
    letter-spacing: 0.08em;
  }

  .hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    max-width: none;
  }

  .stat-pill {
    flex-direction: row;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.6rem 1.35rem 0.55rem;
    border-radius: 999px;
  }

  .stat-pill__num {
    font-size: 1.875rem;
  }

  .stat-pill__label {
    font-size: 0.875rem;
  }

  .hero__footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    padding-bottom: 2rem;
  }

  .hero__scroll {
    display: grid;
    place-items: center;
    justify-self: center;
    width: 48px;
    height: 48px;
    color: var(--white);
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    text-decoration: none;
    transition: border-color var(--t), color var(--t);
    animation: bounce 2.2s ease-in-out 1.2s 2;
  }

  .hero__scroll .icon {
    width: 22px;
    height: 22px;
  }

  .hero__scroll:hover {
    border-color: var(--green);
    color: var(--green);
  }
}


/* ==========================================================================
   08. SECTION SCAFFOLDING
   ========================================================================== */
.section {
  position: relative;
  padding-block: var(--section-y);
}

.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-head .section-lead {
  margin-top: 0;
}

@media (min-width: 1024px) {
  .section-head--split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: end;
    column-gap: 4rem;
  }
}


/* ==========================================================================
   09. SERVICES
   ========================================================================== */
.services {
  background-color: var(--black);
}

.services__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.service-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 440px;
  padding: 5rem 1.5rem 1.75rem;
  overflow: hidden;
  background-color: var(--ink-800);
  border: 1px solid var(--line);
  transition: transform 400ms var(--ease), border-color var(--t), box-shadow 400ms var(--ease);
}

.service-card__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

/* Fallback artwork shown until the real photos are added */
.service-card--drayage .service-card__media {
  background-image:
    repeating-linear-gradient(-45deg, rgba(42, 157, 63, 0.09) 0 2px, rgba(0, 0, 0, 0) 2px 22px),
    linear-gradient(150deg, #1d2a1f 0%, #0d110d 70%);
}

.service-card--containers .service-card__media {
  background-image:
    repeating-linear-gradient(90deg, rgba(240, 244, 240, 0.05) 0 3px, rgba(0, 0, 0, 0) 3px 18px),
    linear-gradient(170deg, #1a241c 0%, #0b0d0b 70%);
}

.service-card--warehouse .service-card__media {
  background-image:
    repeating-linear-gradient(0deg, rgba(240, 244, 240, 0.045) 0 2px, rgba(0, 0, 0, 0) 2px 64px),
    repeating-linear-gradient(90deg, rgba(240, 244, 240, 0.035) 0 2px, rgba(0, 0, 0, 0) 2px 96px),
    linear-gradient(200deg, #1b211b 0%, #0a0a0a 70%);
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease);
}

.service-card__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* Flat tint: lightens on hover */
.service-card__overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(8, 8, 8, 0.58);
  transition: background-color 450ms var(--ease);
}

/* Bottom gradient: always keeps copy readable */
.service-card__overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(8, 8, 8, 0.85) 0%, rgba(8, 8, 8, 0) 22%),
    linear-gradient(to top, rgba(8, 8, 8, 0.97) 0%, rgba(8, 8, 8, 0.85) 38%, rgba(8, 8, 8, 0) 78%);
}

.service-card__num {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.22em;
  color: var(--green);
}

.service-card__num::after {
  content: "";
  width: 36px;
  height: 1px;
  background-color: rgba(240, 244, 240, 0.35);
}

.service-card__title {
  max-width: 14ch;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 1.4vw + 1.6rem, 2.875rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* Animated green underline (grows line by line) */
.service-card__title span {
  padding-bottom: 0.08em;
  background-image: linear-gradient(var(--green), var(--green));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 3px;
  transition: background-size 500ms var(--ease);
}

.service-card__text {
  max-width: 40ch;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(240, 244, 240, 0.82);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid rgba(240, 244, 240, 0.35);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  transition: background-color var(--t), border-color var(--t), color var(--t);
}

.service-card__link .icon {
  width: 16px;
  height: 16px;
  transition: transform var(--t);
}

/* Makes the whole card clickable */
.service-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.service-card:focus-within {
  border-color: rgba(42, 157, 63, 0.55);
}

.service-card:focus-within .service-card__overlay::before {
  background-color: rgba(8, 8, 8, 0.3);
}

.service-card:focus-within .service-card__title span {
  background-size: 100% 3px;
}

@media (hover: hover) {
  .service-card:hover {
    z-index: 1;
    transform: scale(1.02);
    border-color: rgba(42, 157, 63, 0.55);
    box-shadow: 0 32px 60px -24px rgba(0, 0, 0, 0.85);
  }

  .service-card:hover .service-card__overlay::before {
    background-color: rgba(8, 8, 8, 0.3);
  }

  .service-card:hover .service-card__media img {
    transform: scale(1.07);
  }

  .service-card:hover .service-card__title span {
    background-size: 100% 3px;
  }

  .service-card:hover .service-card__link {
    background-color: var(--green);
    border-color: var(--green);
    color: var(--black);
  }

  .service-card:hover .service-card__link .icon {
    transform: translateX(4px);
  }
}

@media (min-width: 768px) {
  .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services__grid > :last-child {
    grid-column: 1 / -1;
  }

  .service-card {
    min-height: 480px;
    padding: 5.5rem 2rem 2rem;
  }

  .service-card__num {
    top: 2rem;
    left: 2rem;
  }
}

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .services__grid > :last-child {
    grid-column: auto;
  }

  .service-card {
    min-height: 580px;
  }
}

/* Equipment & capabilities strip (below the service cards) */
.capabilities {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.capabilities__heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
}

.capabilities__heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--line-strong);
}

.capabilities__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background-color: var(--line);
  border: 1px solid var(--line);
}

.capability {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 1.5rem 1.25rem;
  background-color: var(--black);
  transition: background-color var(--t);
}

.capability__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.85rem;
  color: var(--green);
  background-color: var(--green-tint);
  border: 1px solid rgba(42, 157, 63, 0.35);
}

.capability__icon .icon {
  width: 26px;
  height: 26px;
  stroke-width: 1.75;
}

.capability__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1vw + 1.35rem, 2.25rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--white);
}

.capability__text {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
}

@media (hover: hover) {
  .capability:hover {
    background-color: #0f130f;
  }
}

@media (min-width: 1024px) {
  .capabilities__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .capability {
    padding: 2rem 1.75rem;
  }
}


/* ==========================================================================
   10. WHY JJN
   ========================================================================== */
.why {
  padding-bottom: 0;
  background-color: var(--ink-800);
}

.why__layout {
  display: grid;
  gap: 3rem;
}

.why .section-title {
  font-size: clamp(2.75rem, 3.2vw + 1.25rem, 4rem);
}

.why__call {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.25rem;
  padding: 0.875rem 1.5rem 0.875rem 0.875rem;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  transition: border-color var(--t), background-color var(--t);
}

.why__call:hover {
  border-color: var(--green);
  background-color: var(--green-tint);
}

.why__call-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background-color: var(--green);
  color: var(--black);
}

.why__call-icon .icon {
  width: 22px;
  height: 22px;
}

.why__call-label {
  display: block;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
}

.why__call-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--white);
}

/* 2 x 2 pillars */
.pillars {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pillar {
  position: relative;
  padding: 2rem 1.5rem 1.875rem;
  background-color: var(--ink-750);
  border: 1px solid var(--line);
  transition: border-color var(--t), transform var(--t), background-color var(--t);
}

.pillar::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 48px;
  height: 3px;
  background-color: var(--green);
  transition: width 450ms var(--ease);
}

/* Decorative watermark number, drawn from data-num so it isn't treated as text */
.pillar__num {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}

.pillar__num::before {
  content: attr(data-num);
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1;
  color: rgba(176, 184, 176, 0.1);
}

.pillar__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.5rem;
  color: var(--green);
  background-color: var(--green-tint);
  border: 1px solid rgba(42, 157, 63, 0.35);
}

.pillar__icon .icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.75;
}

.pillar__title {
  margin-bottom: 0.625rem;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pillar__text {
  line-height: 1.6;
  color: var(--silver);
}

.pillar__mono {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--white);
}

@media (hover: hover) {
  .pillar:hover {
    transform: translateY(-4px);
    background-color: #171c17;
    border-color: rgba(42, 157, 63, 0.4);
  }

  .pillar:hover::before {
    width: calc(100% + 2px);
  }
}

/* Full-width green statement bar */
.accent-bar {
  position: relative;
  margin-top: var(--section-y);
  overflow: hidden;
  background-color: var(--green);
  color: var(--black);
}

.accent-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.07) 0 14px, rgba(0, 0, 0, 0) 14px 28px);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 20%, #000 100%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 20%, #000 100%);
  pointer-events: none;
}

.accent-bar__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding-block: 2.25rem;
}

.accent-bar__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background-color: var(--black);
  color: var(--green);
}

.accent-bar__icon .icon {
  width: 28px;
  height: 28px;
}

.accent-bar__text {
  flex: 1;
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 2.4vw + 1.1rem, 3.25rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .pillar {
    padding: 2.25rem 2rem 2rem;
  }
}

@media (min-width: 1024px) {
  .why__layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 4.5rem;
  }

  .accent-bar__inner {
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    padding-block: 2.5rem;
  }
}


/* ==========================================================================
   11. PORTS & SERVICE AREA
   ========================================================================== */
.ports {
  overflow: hidden;
  background-color: var(--black);
}

/* East Coast service map (background) */
.ports__map-wrap {
  position: relative;
  height: 440px;
  margin-inline: calc(var(--gutter) * -1);
  pointer-events: none;
}

.ports__map {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 118%;
  max-width: none;
  opacity: 0.9;
  transform: translate(-50%, -50%);
  -webkit-mask-image: radial-gradient(ellipse 62% 70% at 56% 46%, #000 58%, rgba(0, 0, 0, 0) 96%);
  mask-image: radial-gradient(ellipse 62% 70% at 56% 46%, #000 58%, rgba(0, 0, 0, 0) 96%);
}

.map-state {
  stroke-width: 0.6;
  stroke-linejoin: round;
}

.map-state--context,
.map-state--excluded {
  fill: rgba(176, 184, 176, 0.035);
  stroke: rgba(176, 184, 176, 0.14);
}

.map-state--served {
  fill: rgba(42, 157, 63, 0.14);
  stroke: rgba(42, 157, 63, 0.45);
}

.map-state--focus {
  fill: rgba(42, 157, 63, 0.5);
  stroke: var(--green);
}

.map-state--metro {
  fill: var(--green-bright);
  stroke: #8be39c;
  stroke-width: 0.3;
}

.map-lane {
  fill: none;
  stroke: var(--green);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 4 6;
  opacity: 0.85;
  animation: laneFlow 1.6s linear infinite;
  animation-play-state: paused;
}

/* Ambient motion runs for ~5s when the map scrolls into view (main.js),
   then settles, so looping motion never runs indefinitely (WCAG 2.2.2). */
.ports__map-wrap.is-animating .map-lane {
  animation-play-state: running;
}

.map-dot {
  fill: var(--green);
  stroke: var(--black);
  stroke-width: 1;
}

.map-hub {
  fill: var(--white);
  stroke: var(--green);
  stroke-width: 3;
}

.map-base {
  fill: #8be39c;
  stroke: var(--black);
  stroke-width: 1;
}

.map-pulse {
  fill: none;
  stroke: var(--green-bright);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
}

.ports__map-wrap.is-animating .map-pulse {
  animation: mapPulse 2.8s ease-out 1;
}

.ports__map-wrap.is-animating .map-pulse--late {
  animation-delay: 1.4s;
}

@media (min-width: 768px) {
  .ports__map-wrap {
    height: 560px;
  }
}

/* Desktop: terminals list on the left, map above the zones on the right */
@media (min-width: 1024px) {
  .ports__grid > .ports__col:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .ports__grid > .ports__col:nth-child(2) {
    grid-column: 2;
    grid-row: 2;
  }

  .ports__map-wrap {
    grid-column: 2;
    grid-row: 1;
    height: auto;
    min-height: 600px;
    margin: -2rem calc(var(--gutter) * -1) 0 -2rem;
  }

  .ports__map {
    height: 112%;
  }
}

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

.ports__grid {
  display: grid;
  gap: 3.5rem;
}

.ports__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
}

.ports__count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--green);
}

/* Ports list */
.port-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.port-group + .port-group {
  margin-top: 2.25rem;
}

.port-group__title {
  margin-bottom: 0.75rem;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

.port-group__title span {
  margin-left: 0.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  color: var(--green);
  white-space: nowrap;
}

.port {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 0.25rem;
  border-bottom: 1px solid var(--line);
  transition: background-color var(--t), padding-left var(--t);
}

/* Name + location tag; the tag drops below the name when space runs out */
.port__body {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  min-width: 0;
}

.port__dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--green);
}

/* Each list pulses once, top to bottom, when it scrolls into view (under 5s total) */
.port-list.is-animating .port__dot {
  animation: pulse 2.6s ease-out 1;
}

.port-list.is-animating .port:nth-child(2) .port__dot {
  animation-delay: 0.4s;
}

.port-list.is-animating .port:nth-child(3) .port__dot {
  animation-delay: 0.8s;
}

.port-list.is-animating .port:nth-child(4) .port__dot {
  animation-delay: 1.2s;
}

.port-list.is-animating .port:nth-child(5) .port__dot {
  animation-delay: 1.6s;
}

.port-list.is-animating .port:nth-child(6) .port__dot {
  animation-delay: 2s;
}

.port__name {
  flex: 1 1 auto;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: clamp(1.0625rem, 0.4vw + 0.95rem, 1.25rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.port__tag {
  flex-shrink: 0;
  padding: 0.2rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--silver);
  border: 1px solid var(--line-strong);
}

@media (hover: hover) {
  .port:hover {
    padding-left: 0.875rem;
    background: linear-gradient(90deg, var(--green-tint), rgba(42, 157, 63, 0) 80%);
  }
}

/* Zone pills */
.zone-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zone-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.2rem;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background-color: rgba(42, 157, 63, 0.06);
  border: 1.5px solid var(--green);
  border-radius: 999px;
  transition: background-color var(--t), color var(--t);
}

.zone-pill--accent {
  background-color: var(--green);
  color: var(--black);
}

@media (hover: hover) {
  .zone-pill:hover {
    background-color: var(--green);
    color: var(--black);
  }
}

.ports__callout {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.25rem 1.375rem;
  background-color: var(--ink-800);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
}

.ports__callout .icon {
  width: 28px;
  height: 28px;
  margin-top: 0.125rem;
  color: var(--green);
  stroke-width: 1.75;
}

.ports__callout p {
  font-size: 0.975rem;
  line-height: 1.6;
  color: var(--silver);
}

.ports__callout strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.ports__callout a {
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
}

.ports__callout a:hover {
  text-decoration: underline;
}

/* Closing line */
.ports__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line-strong);
}

.ports__tagline {
  max-width: 36ch;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2vw + 1.1rem, 2.75rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

.ports__tagline em {
  font-style: normal;
  color: var(--green);
}

@media (min-width: 768px) {
  .zone-pill {
    padding: 0.75rem 1.4rem;
    font-size: 1.0625rem;
  }
}

@media (min-width: 1024px) {
  .ports__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3.5rem 4rem;
  }

  .ports__footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
  }
}


/* ==========================================================================
   12. TESTIMONIALS
   ========================================================================== */
.testimonials {
  background-color: var(--ink-800);
}

.testimonials__grid {
  display: grid;
  gap: 1.25rem;
}

/* Testimonial carousel: swipe on touch screens, arrows and dots everywhere */
.t-carousel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 4.5rem 1.5rem 1.5rem;
  background-color: var(--ink-750);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
}

.t-carousel__track {
  position: relative;
  flex: 1;
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.t-carousel__track::-webkit-scrollbar {
  display: none;
}

.t-carousel__track:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 6px;
}

.t-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Controls only appear once main.js is running (without it, the track still scrolls) */
.t-carousel__controls {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.js .t-carousel__controls {
  display: flex;
}

.t-carousel__count {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--silver);
}

.t-carousel__current {
  color: var(--white);
}

.t-carousel__dots {
  display: flex;
  gap: 0.125rem;
}

.t-carousel__dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.t-carousel__dot::before {
  content: "";
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background-color: rgba(176, 184, 176, 0.35);
  transition: width var(--t), background-color var(--t);
}

.t-carousel__dot:hover::before {
  background-color: var(--silver);
}

.t-carousel__dot.is-active::before {
  width: 22px;
  background-color: var(--green);
}

.t-carousel__arrows {
  display: flex;
  gap: 0.625rem;
}

.t-carousel__btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--white);
  background-color: transparent;
  border: 1.5px solid rgba(42, 157, 63, 0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color var(--t), border-color var(--t), color var(--t);
}

.t-carousel__btn .icon {
  width: 20px;
  height: 20px;
}

.t-carousel__btn:hover {
  background-color: var(--green);
  border-color: var(--green);
  color: var(--black);
}

.t-carousel__note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.quote-card__mark {
  position: absolute;
  top: 0.25rem;
  left: 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 8rem;
  line-height: 1;
  color: var(--green);
  pointer-events: none;
}

.quote-card__quote p {
  font-size: clamp(1.1875rem, 0.8vw + 1rem, 1.625rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--white);
}

.t-slide .quote-card__quote p {
  font-size: clamp(1.25rem, 1.1vw + 1rem, 1.875rem);
  line-height: 1.5;
}

.quote-card__author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.quote-card__avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  color: var(--green);
  background-color: var(--green-tint);
  border: 1px solid rgba(42, 157, 63, 0.45);
  border-radius: 50%;
}

.quote-card__avatar .icon {
  width: 24px;
  height: 24px;
}

.quote-card__who {
  display: flex;
  flex-direction: column;
}

.quote-card__name {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

.quote-card__meta {
  font-size: 0.9rem;
  color: var(--silver);
}

/* Quote-request card beside the testimonial */
.cta-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.25rem 1.5rem;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(42, 157, 63, 0.24) 0%, rgba(42, 157, 63, 0.05) 55%, rgba(42, 157, 63, 0) 100%),
    var(--ink-750);
  border: 1px solid rgba(42, 157, 63, 0.35);
}

.cta-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  background-image: repeating-linear-gradient(-45deg, rgba(42, 157, 63, 0.16) 0 10px, rgba(42, 157, 63, 0) 10px 20px);
  -webkit-mask-image: radial-gradient(circle, #000 25%, rgba(0, 0, 0, 0) 70%);
  mask-image: radial-gradient(circle, #000 25%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.cta-card > * {
  position: relative;
  z-index: 1;
}

.cta-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 1.5vw + 2rem, 3.25rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

.cta-card__text {
  margin-top: 1rem;
  color: var(--silver);
}

.cta-card__actions {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .t-carousel {
    padding: 6rem 3rem 2rem;
  }

  .t-carousel__count {
    display: block;
  }

  .quote-card__mark {
    top: 0;
    left: 2.5rem;
    font-size: 11rem;
  }

  .cta-card {
    padding: 2.75rem 2.25rem;
  }
}

@media (min-width: 1024px) {
  .testimonials__grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 1.5rem;
  }
}


/* ==========================================================================
   13. CONTACT & QUOTE FORM
   ========================================================================== */
.contact {
  overflow: hidden;
  background-color: var(--black);
}

.contact::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -25%;
  width: 70vw;
  max-width: 1000px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(42, 157, 63, 0.16) 0%, rgba(42, 157, 63, 0) 62%);
  pointer-events: none;
}

.contact__grid {
  position: relative;
  display: grid;
  gap: 3rem;
}

/* Contact details */
.contact-list {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.contact-item__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  color: var(--green);
  background-color: var(--green-tint);
  border: 1px solid rgba(42, 157, 63, 0.4);
}

.contact-item__icon .icon {
  width: 22px;
  height: 22px;
}

.contact-item__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-item__label {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
}

.contact-item__value {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color var(--t);
}

a.contact-item__value:hover {
  color: var(--green);
}

.contact-item__value--phone {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 2vw + 1.5rem, 3rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--green);
}

a.contact-item__value--phone:hover {
  color: var(--green-bright);
}

.contact__creds {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--silver);
}

/* Form card */
.form-card {
  position: relative;
  padding: 2rem 1.25rem 1.75rem;
  background-color: var(--ink-800);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}

.form-card__head {
  margin-bottom: 1.75rem;
}

.form-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 1.2vw + 1.9rem, 2.75rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.form-card__sub {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--silver);
}

.req {
  color: var(--green);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.125rem 0.875rem;
}

.field {
  min-width: 0;
}

.field--full,
.field--half-md {
  grid-column: 1 / -1;
}

.field__label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver);
}

.field__hint {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8125rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--white);
  background-color: var(--ink-900);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--t), box-shadow var(--t), background-color var(--t);
}

.input::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

.input:hover {
  border-color: rgba(176, 184, 176, 0.45);
}

.input:focus {
  outline: none;
  border-color: var(--green);
  background-color: #0c0f0c;
  box-shadow: 0 0 0 3px rgba(42, 157, 63, 0.28);
}

.input[aria-invalid="true"] {
  border-color: var(--error);
}

.input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.25);
}

.input--select {
  padding-right: 2.75rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a9d3f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px 18px;
}

.input--select:invalid {
  color: var(--placeholder);
}

.input--select option {
  background-color: var(--ink-900);
  color: var(--white);
}

.input--textarea {
  min-height: 136px;
  line-height: 1.55;
  resize: vertical;
}

/* Flash when a service card pre-selects the dropdown */
.input.is-prefilled {
  animation: prefill 1.6s var(--ease) 1;
}

.field__error {
  margin-top: 0.4rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--error);
}

.field__error:empty {
  display: none;
}

/* Spam trap, kept off-screen */
.hp-field {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 1rem 1.125rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #ffc2c2;
  background-color: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.5);
}

.form-alert .icon {
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
  color: var(--error);
}

.form-alert a {
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}

.form-submit {
  margin-top: 1.75rem;
}

/* Contact-consent line above the Send button */
.form-consent {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
}

.form-consent a {
  color: var(--silver);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-consent a:hover {
  color: var(--white);
}

.form-consent + .form-submit {
  margin-top: 1rem;
}

.form-note {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--silver);
}

.form-note a {
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
}

.form-note a:hover {
  text-decoration: underline;
}

/* Success state (replaces the form) */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 3rem 0.5rem;
  text-align: center;
}

.form-success:focus {
  outline: none;
}

.form-success__icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-bottom: 1rem;
  color: var(--black);
  background-color: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(42, 157, 63, 0.16), 0 0 0 22px rgba(42, 157, 63, 0.07);
  animation: popIn 0.6s var(--ease-out) both;
}

.form-success__icon .icon {
  width: 42px;
  height: 42px;
  stroke-width: 3;
}

.form-success__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2vw + 1.75rem, 3.5rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--green);
}

.form-success__text {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--green);
}

.form-success__note {
  margin-top: 0.75rem;
  color: var(--silver);
}

.form-success__note a {
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .form-card {
    padding: 2.75rem 2.5rem 2.25rem;
  }

  .form-grid {
    gap: 1.25rem 1.125rem;
  }

  .field--half-md {
    grid-column: auto;
  }
}

@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: 4.5rem;
  }

  .form-card {
    padding: 3rem 3rem 2.5rem;
  }
}


/* ==========================================================================
   13b. LEGAL PAGES (Privacy Policy, Accessibility Statement)
   ========================================================================== */
.legal {
  min-height: 70vh;
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 4.5rem));
  padding-bottom: var(--section-y);
  background-color: var(--black);
}

.container.legal__inner {
  max-width: calc(800px + var(--gutter) * 2);
}

.legal__back {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  text-decoration: none;
  transition: color var(--t);
}

.legal__back .icon {
  width: 16px;
  height: 16px;
  transition: transform var(--t);
}

.legal__back:hover {
  color: var(--green);
}

.legal__back:hover .icon {
  transform: translateX(-3px);
}

.legal__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 6vw + 1rem, 5rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.legal__meta {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--silver);
}

.legal__body {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line-strong);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(240, 244, 240, 0.86);
}

.legal__lead {
  font-size: 1.1875rem;
  color: var(--white);
}

.legal__body h2 {
  margin: 2.75rem 0 0.875rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.2vw + 1.4rem, 2.25rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--white);
}

.legal__body h3 {
  margin: 1.75rem 0 0.5rem;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}

.legal__body p + p {
  margin-top: 1rem;
}

.legal__body ul {
  margin: 0.75rem 0 1rem;
  padding-left: 1.25rem;
}

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

.legal__body li::marker {
  color: var(--green);
}

.legal__body strong {
  color: var(--white);
}

.legal__body a {
  font-weight: 600;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.legal__body a:hover {
  color: var(--white);
}

.legal__body .legal__contact {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-left: 0;
  list-style: none;
}

.legal__contact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.legal__body .legal__contact li + li {
  margin-top: 0;
}

.legal__contact .icon {
  width: 20px;
  height: 20px;
  color: var(--green);
}


/* ==========================================================================
   13c. 404 PAGE (bilingual)
   ========================================================================== */
.notfound {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + 2.5rem);
  padding-bottom: 4rem;
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(42, 157, 63, 0.14), rgba(42, 157, 63, 0) 70%),
    var(--black);
}

/* Big outlined "404", drawn from data-code so it's purely decorative */
.notfound__code::before {
  content: attr(data-code);
  display: block;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(7rem, 22vw, 15rem);
  line-height: 0.8;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 2px var(--green);
}

.notfound__grid {
  display: grid;
  gap: 2.5rem;
}

.notfound__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 3vw + 1.25rem, 3.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.notfound__text {
  max-width: 36ch;
  margin: 0.875rem 0 1.5rem;
  color: var(--silver);
  font-size: 1.0625rem;
}

.notfound__call {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.875rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
  color: var(--silver);
}

.notfound__call a {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--green);
  text-decoration: none;
}

.notfound__call a:hover {
  color: var(--green-bright);
}

@media (min-width: 768px) {
  .notfound__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
  }

  .notfound__block + .notfound__block {
    padding-left: 4rem;
    border-left: 1px solid var(--line);
  }
}


/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--ink-950);
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  gap: 2.75rem;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.brand--footer .brand__logo {
  height: 104px;
}

.footer__tagline {
  max-width: 16ch;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1vw + 1.4rem, 2.25rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.footer__tagline em {
  display: block;
  font-style: normal;
  color: var(--green);
}

.footer__creds {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--silver);
}

.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1.5rem;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.06em;
  color: var(--silver);
  text-decoration: none;
  transition: color var(--t);
}

.footer__social-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--green);
  border: 1px solid rgba(42, 157, 63, 0.5);
  border-radius: 50%;
  transition: background-color var(--t), color var(--t), border-color var(--t);
}

.footer__social-icon .icon {
  width: 18px;
  height: 18px;
}

.footer__social:hover {
  color: var(--white);
}

.footer__social:hover .footer__social-icon {
  background-color: var(--green);
  border-color: var(--green);
  color: var(--black);
}

.footer__heading {
  margin-bottom: 1.25rem;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
}

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

.footer__links a {
  display: inline-block;
  color: var(--silver);
  text-decoration: none;
  transition: color var(--t), transform var(--t);
}

.footer__links a:hover {
  color: var(--white);
  transform: translateX(4px);
}

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

.footer__contact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--silver);
}

.footer__contact .icon {
  width: 18px;
  height: 18px;
  color: var(--green);
}

.footer__contact a {
  color: var(--silver);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color var(--t);
}

.footer__contact a:hover {
  color: var(--white);
}

.footer__contact .footer__phone {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--white);
}

.footer__contact .footer__phone:hover {
  color: var(--green);
}

.footer__cta {
  margin-top: 1.75rem;
}

.footer__bottom {
  border-top: 1px solid var(--line);
}

/* Extra bottom padding on phones so the fixed call bar never covers the copyright */
.footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-block: 1.5rem calc(1.5rem + 76px + env(safe-area-inset-bottom));
  font-size: 0.875rem;
  color: var(--muted);
}

.footer__sep {
  margin-inline: 0.4rem;
  color: var(--green);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__legal a {
  color: var(--silver);
  text-decoration: none;
  transition: color var(--t);
}

.footer__legal a:hover,
.footer__legal a[aria-current="page"] {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Legal pages: bottom bar only, no phone call bar to clear */
.site-footer--simple .footer__bottom {
  border-top: 0;
}

.site-footer--simple .footer__bottom-inner {
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}

.footer__top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  text-decoration: none;
  transition: color var(--t);
}

.footer__top .icon {
  width: 16px;
  height: 16px;
  transition: transform var(--t);
}

.footer__top:hover {
  color: var(--green);
}

.footer__top:hover .icon {
  transform: translateY(-3px);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 1.1fr);
    gap: 3rem;
  }

  .footer__bottom-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.5rem;
  }
}


/* ==========================================================================
   15. MOBILE CALL BAR (phones only)
   ========================================================================== */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
  padding: 0.625rem var(--gutter) calc(0.625rem + env(safe-area-inset-bottom));
  background-color: rgba(8, 8, 8, 0.96);
  border-top: 1px solid var(--green);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: translateY(105%);
  visibility: hidden;
  transition: transform var(--t), visibility 0s linear 250ms;
}

.mobile-cta.is-visible {
  transform: translateY(0);
  visibility: visible;
  transition: transform var(--t), visibility 0s linear 0s;
}

.mobile-cta .btn {
  --btn-h: 50px;
  padding-inline: 0.75rem;
  font-size: 1rem;
}

.mobile-cta__call {
  color: var(--green);
  box-shadow: inset 0 0 0 1.5px var(--green);
}

@media (min-width: 768px) {
  .mobile-cta {
    display: none;
  }
}


/* ==========================================================================
   16. SCROLL REVEAL
   Only hides content once main.js has loaded (adds .js to <html>),
   so the page is fully readable without JavaScript.
   ========================================================================== */
.js [data-reveal],
.js [data-reveal-stagger] > * {
  opacity: 0;
}

.js [data-reveal].is-visible,
.js [data-reveal-stagger] > .is-visible {
  animation: fadeUp 800ms var(--ease-out) both;
  animation-delay: var(--reveal-delay, 0ms);
}


/* ==========================================================================
   17. KEYFRAMES
   ========================================================================== */
@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes lineUp {
  from {
    transform: translateY(105%);
  }
  to {
    transform: translateY(0);
  }
}

/* Uses the individual `translate` property so hover transforms still work */
@keyframes fadeUp {
  from {
    opacity: 0;
    translate: 0 30px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(10px);
  }
  60% {
    transform: translateY(5px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(42, 157, 63, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(42, 157, 63, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(42, 157, 63, 0);
  }
}

@keyframes laneFlow {
  to {
    stroke-dashoffset: -20;
  }
}

@keyframes mapPulse {
  0% {
    opacity: 0.9;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(4.5);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  60% {
    opacity: 1;
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes prefill {
  0%,
  100% {
    border-color: var(--line-strong);
    box-shadow: 0 0 0 0 rgba(42, 157, 63, 0);
  }
  20%,
  60% {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(42, 157, 63, 0.35);
  }
}


/* ==========================================================================
   18. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal],
  .js [data-reveal-stagger] > * {
    opacity: 1;
  }
}
