/*
Theme Name: HubSN
Theme URI: https://hubsn.com
Author: HubSN
Author URI: https://hubsn.com
Description: Custom WordPress theme for HubSN - Expedite Carrier logistics company. Pixel-perfect conversion from React/Next.js.
Version: 1.0.0
License: Proprietary
Text Domain: hubsn
*/

/* ============================================================
   HubSN Brand Variables
   ============================================================ */
:root {
  --background: #ffffff;
  --foreground: #171717;
  --hubsn-grey: #202020;
  --hubsn-grey-dark: #0a0a0a;
  --hubsn-orange: #fc0202;
  --hubsn-red-d: rgb(159, 2, 2);
  --hubsn-red: #e31616;
  --hubsn-porcelain: #e3e8eb;
  --hubsn-dove: #666666;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--foreground);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
button { cursor: pointer; font-family: inherit; }

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ============================================================
   HubSN Utility Classes
   ============================================================ */
.bg-hubsn-grey     { background-color: var(--hubsn-grey); }
.bg-hubsn-grey-dark { background-color: var(--hubsn-grey-dark); }
.bg-hubsn-orange   { background-color: var(--hubsn-orange); }
.bg-hubsn-porcelain { background-color: var(--hubsn-porcelain); }
.text-hubsn-red    { color: var(--hubsn-red); }
.text-hubsn-dove   { color: var(--hubsn-dove); }
.text-hubsn-orange { color: var(--hubsn-orange); }
.text-accent       { color: var(--hubsn-red); }
.text-muted-foreground { color: #4b5563; }
.text-foreground   { color: #111827; }
.bg-card           { background-color: #ffffff; }
.bg-accent         { background-color: var(--hubsn-red); }

.stats-text-contour {
  -webkit-text-stroke: 0.5px rgba(0,0,0,0.15);
  paint-order: stroke fill;
}

/* Hide scrollbar */
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* ============================================================
   Header — sticky with scroll transition
   ============================================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 1rem;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
#header.is-scrolled {
  background: var(--hubsn-grey);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
@media (min-width: 640px)  { #header { padding: 1.25rem 1.5rem; } #header.is-scrolled { padding-top: 0.75rem; padding-bottom: 0.75rem; } }
@media (min-width: 1024px) { #header { padding: 1.5rem 3rem; }   #header.is-scrolled { padding-top: 0.875rem; padding-bottom: 0.875rem; } }
@media (min-width: 1280px) { #header { padding: 1.5rem 4rem; } }
@media (min-width: 1536px) { #header { padding: 1.5rem 320px; } }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header__logo {
  height: 2.5rem; width: 10rem;
  flex-shrink: 0;
}
@media (min-width: 640px) { .header__logo { height: 3rem; width: 12rem; } }
@media (min-width: 1024px) { .header__logo { height: 3.5rem; width: 14rem; } }

.header__logo img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: left;
}

/* Desktop nav */
.header__nav-desktop {
  display: none;
  align-items: center;
  gap: 0;
}
@media (min-width: 1024px) { .header__nav-desktop { display: flex; } }

.header__nav-desktop ul {
  display: flex;
  gap: 1.75rem;
}

.header__nav-desktop a {
  font-size: 15.1px;
  font-weight: 400;
  color: #fff;
  line-height: 22px;
  transition: color 0.2s;
}
.header__nav-desktop a:hover { color: var(--hubsn-orange); }

.header__cta-desktop {
  margin-left: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 18px;
  border: 1px solid #fff;
  border-radius: 4px;
  font-size: 15.3px;
  font-weight: 400;
  color: #fff;
  line-height: 1rem;
  background: transparent;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
}
.header__cta-desktop:hover { border-color: var(--hubsn-orange); color: var(--hubsn-orange); }

/* Mobile controls */
.header__mobile-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 1024px) { .header__mobile-controls { display: none; } }

.header__cta-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  border: 1px solid #fff;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 400;
  color: #fff;
  line-height: 1rem;
  background: transparent;
  text-transform: uppercase;
}
.header__cta-mobile:hover { background: rgba(255,255,255,0.1); }

.header__hamburger {
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: #fff;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header__hamburger:hover { background: rgba(255,255,255,0.1); }
.header__hamburger svg { width: 1.75rem; height: 1.75rem; }

/* Mobile overlay */
.header__mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.header__mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}
.header__mobile-menu__bg {
  position: absolute;
  inset: 0;
  background: rgba(32,32,32,0.98);
}
.header__mobile-menu__nav {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 6rem 1.5rem;
}
.header__mobile-menu__nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.header__mobile-menu__nav a {
  font-size: 1.25rem;
  font-weight: 500;
  color: #fff;
  display: block;
  padding: 0.5rem 0;
  transition: color 0.2s;
}
.header__mobile-menu__nav a:hover { color: var(--hubsn-orange); }
.header__mobile-cta {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: var(--hubsn-orange);
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   Hero Section
   ============================================================ */
#hero {
  background-color: var(--hubsn-grey);
  position: relative;
  min-height: 90dvh;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}
@media (min-width: 1024px) { #hero { min-height: 1000px; } }

.hero__bg {
  position: absolute;
  inset: 0;
  display: flex;
}

#hero-bg-left {
  display: none;
  width: 30%;
  flex-shrink: 0;
  background-color: var(--hubsn-grey);
}
@media (min-width: 1024px) { #hero-bg-left { display: block; } }

#hero-bg-right {
  flex: 1;
  min-width: 0;
  position: relative;
}
#hero-bg-right img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero__content {
  margin-left: 2.5rem;
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 8rem 1rem 4rem;
}
@media (min-width: 640px) { .hero__content { padding: 10rem 1.5rem 4rem; } }
@media (min-width: 768px) { .hero__content { padding: 12rem 2rem 4rem; } }
@media (min-width: 1024px) {
  .hero__content {
    padding: 266px 0 4rem 3rem;
    max-width: 60%;
  }
}
@media (min-width: 1280px) { .hero__content { padding-left: 4rem; } }
@media (min-width: 1536px) { .hero__content { padding-left: 320px; } }

#hero-eyebrow {
  font-size: 0.875rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000;
}
@media (min-width: 640px) { #hero-eyebrow { font-size: 1.5rem; margin-bottom: 2rem; } }
@media (min-width: 1024px) { #hero-eyebrow { margin-bottom: 2.75rem; } }

#hero-title {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  text-transform: uppercase;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,0.25));
  margin-bottom: 0.75rem;
  text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000;
}
@media (min-width: 640px) { #hero-title { font-size: 2.25rem; line-height: 1.3; margin-bottom: 1rem; } }
@media (min-width: 768px) { #hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { #hero-title { font-size: 56px; line-height: 1.43; } }
@media (min-width: 1280px) { #hero-title { font-size: 73.8px; } }

#hero-subtitle {
  font-size: 0.875rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 1.5rem;
  max-width: 660px;
  text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000;
}
@media (min-width: 640px) { #hero-subtitle { font-size: 1.25rem; margin-bottom: 2rem; } }
@media (min-width: 1024px) { #hero-subtitle { margin-bottom: 2.75rem; } }

#hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.25rem;
  background: var(--hubsn-orange);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.56px;
  text-transform: uppercase;
  width: 100%;
}
@media (min-width: 640px) {
  #hero-cta { padding: 1rem 1.5rem; width: auto; }
}
#hero-cta:hover { opacity: 0.95; filter: brightness(1.05); }

#hero-social {
  position: absolute;
  left: 0.5rem;
  top: 36%; bottom: 36%;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  z-index: 10;
}
@media (min-width: 640px) { #hero-social { display: flex; left: 1rem; } }
@media (min-width: 1024px) { #hero-social { left: 4%; gap: 60px; } }

#hero-social a {
  color: #fff;
  opacity: 0.8;
  transition: color 0.2s;
}
#hero-social a:hover { color: #fc0202; opacity: 1; }
#hero-social a svg { display: block; }

/* ============================================================
   Benefits Panel
   ============================================================ */
#benefits-panel {
  margin: -2rem 1rem 0;
  position: relative;
  z-index: 10;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 66px rgba(0,0,0,0.1);
  /* mobile: 2-column grid */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 0;
  gap: 0;
}
@media (min-width: 640px) { #benefits-panel { margin: -3rem 1.5rem 0; } }
@media (min-width: 1024px) {
  #benefits-panel {
    margin: -60px 3rem 0;
    /* desktop: single row of 6 */
    display: flex;
    min-height: 106px;
    padding: 0.875rem 0;
    border-radius: 4px;
  }
}
@media (min-width: 1280px) { #benefits-panel { margin-left: 4rem; margin-right: 4rem; } }
@media (min-width: 1536px) { #benefits-panel { margin-left: 320px; margin-right: 320px; } }

.benefits-panel__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0.75rem;
  position: relative;
  /* right border on odd items (left column), bottom border on all but last row */
  border-right: 1px solid var(--hubsn-porcelain);
  border-bottom: 1px solid var(--hubsn-porcelain);
}
/* Remove right border on even items (right column) */
.benefits-panel__item:nth-child(even) { border-right: none; }
/* Remove bottom border on last two items */
.benefits-panel__item:nth-last-child(-n+2) { border-bottom: none; }

@media (min-width: 1024px) {
  .benefits-panel__item {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border-right: 1px solid var(--hubsn-porcelain);
    border-bottom: none;
  }
  .benefits-panel__item:nth-child(even)      { border-right: 1px solid var(--hubsn-porcelain); }
  .benefits-panel__item:nth-last-child(-n+2) { border-bottom: none; }
  .benefits-panel__item:last-child           { border-right: none; }
}

.benefits-panel__icon {
  width: 2.25rem; height: 2.25rem;
  margin-bottom: 0.75rem;
  color: var(--hubsn-orange);
}
.benefits-panel__icon svg { width: 100%; height: 100%; }

.benefits-panel__label {
  font-size: 14px;
  font-weight: 600;
  color: #000;
  text-align: center;
}
@media (min-width: 640px) { .benefits-panel__label { font-size: 16.9px; } }

/* ============================================================
   Services Section
   ============================================================ */
#services {
  padding: 2rem 1.5rem;
  overflow: hidden;
}
@media (min-width: 1024px) { #services { padding: 3rem 1.5rem; } }

#services .container { max-width: 80rem; margin: 0 auto; }

#services-header { text-align: center; }

.services-header__label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9F0202;
}

.services-header__title { color: #000; margin-bottom: 1rem; }

.services-header__subtitle {
  margin: 1rem auto 0;
  max-width: 42rem;
  color: #4b5563;
  line-height: 1.625;
}

#services-grid {
  margin-top: 4rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) { #services-grid { grid-template-columns: repeat(3, 1fr); } }

.services-section__card {
  background: #fff;
  padding: 2rem;
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}
.services-section__card:hover {
  box-shadow: 0 4px 6px rgba(227,22,22,0.1);
  transform: translateY(-4px);
}

.services-section__card .card-img-wrap {
  margin: 0 auto 1.5rem;
  width: 12rem; height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.services-section__card .card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.services-section__card:hover .card-img-wrap img { transform: scale(1.05); }

.services-section__card h3 {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--hubsn-orange);
}

.services-section__card p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #4b5563;
  text-align: center;
}

/* ============================================================
   Stats Section
   ============================================================ */
#stats {
  background-color: var(--hubsn-porcelain);
  padding: 3rem 1rem;
}
@media (min-width: 640px) { #stats { padding: 4rem 1.5rem; } }
@media (min-width: 1024px) { #stats { padding: 5rem 3rem; } }
@media (min-width: 1280px) { #stats { padding: 5rem 4rem; } }
@media (min-width: 1536px) { #stats { padding: 5rem 320px; } }

#stats .stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 80rem;
  margin: 0 auto;
  text-align: center;
}
@media (min-width: 640px) { #stats .stats-grid { gap: 2rem; } }
@media (min-width: 1024px) { #stats .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 3rem; } }

.stats__item {}

.stats__value {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--hubsn-red);
  margin-bottom: 0.25rem;
  -webkit-text-stroke: 0.5px rgba(0,0,0,0.15);
  paint-order: stroke fill;
}
@media (min-width: 640px) { .stats__value { font-size: 3rem; margin-bottom: 0.5rem; } }
@media (min-width: 1024px) { .stats__value { font-size: 60px; } }

.stats__label {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.55;
  color: #000;
  -webkit-text-stroke: 0.5px rgba(0,0,0,0.15);
  paint-order: stroke fill;
}
@media (min-width: 640px) { .stats__label { font-size: 1rem; } }
@media (min-width: 1024px) { .stats__label { font-size: 1.125rem; } }

/* ============================================================
   Fleet Section
   ============================================================ */
#fleet {
  padding: 4rem 1.5rem;
  background-color: var(--hubsn-grey);
  overflow: hidden;
}
@media (min-width: 640px) { #fleet { padding: 4rem 2rem; } }

#fleet .container { max-width: 80rem; margin: 0 auto; }

#fleet-header { text-align: center; }

.fleet-header__title { color: #fff; margin-bottom: 1rem; }

.fleet-header__subtitle {
  margin: 1rem auto 0;
  max-width: 42rem;
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.625;
}

#fleet-grid {
  margin-top: 4rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) { #fleet-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { #fleet-grid { grid-template-columns: repeat(4, 1fr); } }

.fleet-card {
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: var(--hubsn-grey-dark);
  box-shadow: 0 10px 15px rgba(0,0,0,0.3);
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
}
.fleet-card:hover {
  box-shadow: 0 20px 25px rgba(227,22,22,0.2);
  border-color: var(--hubsn-red);
  transform: translateY(-4px);
}

.fleet-card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #2a2a2a;
}
.fleet-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.fleet-card:hover .fleet-card__img img { transform: scale(1.05); }

.fleet-card__body { padding: 1.5rem; }

.fleet-card__body h3 { color: #fff; }

.fleet-card__body p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.625;
}

/* ============================================================
   Join Us — Careers (split + modal)
   ============================================================ */
#join-us {
  overflow: hidden;
  padding: 50px 3rem;
  background: var(--hubsn-porcelain);
}

#join-us .container.join-us__split {
  max-width: 80rem;
  margin: 0 auto;
}

.join-us__split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .join-us__split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.join-us__col--copy {
  text-align: center;
}
@media (min-width: 1024px) {
  .join-us__col--copy { text-align: left; }
}

.join-us__eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hubsn-red);
}

.join-us__title {
  margin-top: 0.75rem;
  color: #111827;
}

.join-us__title-accent {
  color: var(--hubsn-orange);
}

.join-us__subtitle {
  margin: 1rem 0 0;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  color: #4b5563;
  line-height: 1.625;
}
@media (min-width: 1024px) {
  .join-us__subtitle { margin-left: 0; margin-right: 0; }
}

.join-us-list {
  padding: 0;
  list-style: none;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}
.join-us-list.join-us-list--vehicles {
  margin-left: 40px;
}
.join-us-list.join-us-list--vehicles li {
  line-height: 0.3;
}
.join-us-list.join-us-list--vehicles li::before {
  top: 0;
}
@media (min-width: 1024px) {
  .join-us-list { margin-left: 0; margin-right: 0; margin-top: 2rem; }
}
@media (min-width: 640px) { .join-us-list { gap: 1.25rem; } }

.join-us-list li {
  position: relative;
  padding-left: 1.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  line-height: 1;
}
@media (min-width: 640px) { .join-us-list li { font-size: 1rem; padding-left: 1.5rem; } }

.join-us-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 6px;
  height: 6px;
  background: var(--hubsn-orange);
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .join-us__col--action {
    min-height: 280px;
    padding: 2.5rem 2rem;
  }
}

.join-us__action-label {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hubsn-dove);
  text-align: center;
}

.join-us__open-modal {
  width: 100%;
  max-width: 22rem;
  text-align: center;
  justify-content: center;
  text-transform: none;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  padding: 1rem 1.25rem;
  white-space: normal;
  line-height: 1.3;
}

/* —— Owner-operator modal —— */
.join-us-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.join-us-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.join-us-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  cursor: pointer;
}

.join-us-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 32rem;
  margin: 2rem auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.18);
  outline: none;
}

.join-us-modal__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.5rem 0 0.5rem;
  border-bottom: 1px solid var(--hubsn-porcelain);
}

.join-us-modal__back,
.join-us-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--foreground);
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.join-us-modal__back:hover,
.join-us-modal__close:hover {
  background: rgba(0,0,0,0.05);
  color: var(--hubsn-orange);
}

.join-us-modal__body {
  padding: 1rem 1.25rem 1.5rem;
}
@media (min-width: 640px) {
  .join-us-modal__body { padding: 1.25rem 1.75rem 2rem; }
}

.join-us-modal__title {
  font-size: clamp(1.125rem, 3.5vw, 1.35rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: #111827;
  margin: 0 0 0.5rem;
}

.join-us-modal__subtitle {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--hubsn-dove);
  margin: 0 0 1.5rem;
}

/* Join Us modal — Contact Form 7 */
.hubsn-join-us-cf7-wrap {
  margin-top: 0.25rem;
}

#join-us-cf7-wrap .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#join-us-cf7-wrap .wpcf7-form > p {
  margin: 0;
  padding: 0;
}

#join-us-cf7-wrap .wpcf7-form label,
#join-us-cf7-wrap .wpcf7-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

#join-us-cf7-wrap .wpcf7-form input[type="text"],
#join-us-cf7-wrap .wpcf7-form input[type="email"],
#join-us-cf7-wrap .wpcf7-form input[type="tel"],
#join-us-cf7-wrap .wpcf7-form input[type="url"],
#join-us-cf7-wrap .wpcf7-form input[type="number"],
#join-us-cf7-wrap .wpcf7-form select,
#join-us-cf7-wrap .wpcf7-form textarea {
  width: 100%;
  padding: 0.75rem 12px;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

#join-us-cf7-wrap .wpcf7-form input:focus,
#join-us-cf7-wrap .wpcf7-form select:focus,
#join-us-cf7-wrap .wpcf7-form textarea:focus {
  border-color: rgba(252,2,2,0.45);
}

#join-us-cf7-wrap .wpcf7-form textarea {
  min-height: 100px;
  resize: vertical;
}

#join-us-cf7-wrap .wpcf7-form input[type="submit"],
#join-us-cf7-wrap .wpcf7-form .wpcf7-submit {
  width: 100%;
  margin-top: 0.25rem;
}

#join-us-cf7-wrap .wpcf7-response-output {
  display: none !important;
}

#join-us-cf7-wrap .wpcf7-not-valid-tip {
  font-size: 0.78rem;
  color: #b91c1c;
  margin-top: 0.35rem;
  display: block;
}

#join-us-cf7-wrap .wpcf7-not-valid {
  border-color: rgba(185,28,28,0.5) !important;
}

/* ============================================================
   Why Us / Niches Section
   ============================================================ */
#why-us {
  padding: 3rem 1rem;
  background: rgba(227,232,235,0.5);
}
@media (min-width: 640px) { #why-us { padding: 4rem 1.5rem; } }
@media (min-width: 1024px) { #why-us { padding: 5rem 3rem; } }
@media (min-width: 1280px) { #why-us { padding: 5rem 4rem; } }
@media (min-width: 1536px) { #why-us { padding: 5rem 320px; } }

#why-us .container { max-width: 80rem; margin: 0 auto; }

#why-us .section-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hubsn-red);
  text-align: center;
}

#why-us h2 { margin-top: 0.75rem; text-align: center; color: #111827; }

#why-us .section-sub {
  margin: 1rem auto 0;
  max-width: 42rem;
  color: #4b5563;
  line-height: 1.625;
  text-align: center;
}

.why-us-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) { .why-us-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 3rem; } }
@media (min-width: 1024px) { .why-us-grid { grid-template-columns: repeat(3, 1fr); margin-top: 4rem; } }

.why-us-card {
  display: flex;
  gap: 1rem;
  border: 1px solid rgba(252,2,2,0.3);
  background: #fff;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, border-color 0.2s;
}
@media (min-width: 640px) { .why-us-card { gap: 1.25rem; padding: 1.5rem; } }
.why-us-card:hover {
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border-color: rgba(227,22,22,0.3);
}

.why-us-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; height: 2.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(227,22,22,0.1);
  color: var(--hubsn-red);
}
@media (min-width: 640px) { .why-us-card__icon { width: 3rem; height: 3rem; } }
.why-us-card__icon svg { width: 1.25rem; height: 1.25rem; }
@media (min-width: 640px) { .why-us-card__icon svg { width: 1.5rem; height: 1.5rem; } }

.why-us-card h3 { color: #111827; }

.why-us-card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #4b5563;
}

/* ============================================================
   Memberships Section
   ============================================================ */
#memberships {
  padding: 2rem 1.5rem;
}
@media (min-width: 768px) { #memberships { padding: 4.5rem 1.5rem; } }

#memberships .container { max-width: 80rem; margin: 0 auto; }

#memberships h2 {
  margin-top: 1rem;
  text-align: center;
  text-transform: capitalize;
}
@media (min-width: 768px) { #memberships h2 { margin-top: 2rem; } }

#memberships .section-sub {
  text-align: center;
  max-width: 36rem;
  margin: 1rem auto 3rem;
  font-size: 15px;
  line-height: 1.625;
  color: #374151;
}

.memberships-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) { .memberships-row { gap: 4rem; } }
.memberships-row:last-child { margin-bottom: 0; }

.memberships-row img {
  height: 4rem; width: auto;
  object-fit: contain;
}

/* ============================================================
   Clients Section
   ============================================================ */
#clients {
  padding: 3rem 0;
  background-color: var(--hubsn-porcelain);
}
@media (min-width: 640px) { #clients { padding: 4rem 0; } }

#clients .clients-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 1.5rem;
}
#clients h2 { color: #000; }

.clients-scroller {
  position: relative;
  overflow: hidden;
}

.clients-scroller__inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  padding-block: 0.5rem;
  animation: clients-scroll 40s linear infinite;
}

.clients-scroller:hover .clients-scroller__inner {
  animation-play-state: paused;
}

@keyframes clients-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

.clients-scroller__inner a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  transition: all 0.2s;
  min-width: 120px;
}

.clients-scroller__inner img {
  width: 2.5rem; height: 2.5rem;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.2s;
}
.clients-scroller__inner a:hover img { filter: grayscale(0); }

.clients-scroller__inner span {
  font-size: 0.75rem;
  font-weight: 500;
  color: #4b5563;
  text-align: center;
  white-space: nowrap;
  transition: color 0.2s;
}
@media (min-width: 640px) { .clients-scroller__inner span { font-size: 0.875rem; } }
.clients-scroller__inner a:hover span { color: #111827; }

/* ============================================================
   Tracking & Tech
   ============================================================ */
#tracking-tech {
  padding: 3rem 1rem;
  background: #fff;
}
@media (min-width: 640px) { #tracking-tech { padding: 4rem 1.5rem; } }
@media (min-width: 1024px) { #tracking-tech { padding: 100px 3rem; } }
@media (min-width: 1280px) { #tracking-tech { padding: 100px 4rem; } }
@media (min-width: 1536px) { #tracking-tech { padding: 100px 320px; } }

#tracking-tech .container { max-width: 80rem; margin: 0 auto; }

.tracking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .tracking-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; } }

.tracking-grid h2 { color: #000; margin-bottom: 1rem; text-transform: capitalize; }
@media (min-width: 1024px) { .tracking-grid h2 { margin-bottom: 1.5rem; } }

.tracking-intro {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  color: #000;
  margin-bottom: 2rem;
  max-width: 800px;
}
@media (min-width: 640px) { .tracking-intro { font-size: 1.25rem; } }
@media (min-width: 1024px) { .tracking-intro { font-size: 20px; margin-bottom: 3.5rem; } }

.tracking-grid h3 { color: #000; margin-bottom: 0.75rem; }
@media (min-width: 640px) { .tracking-grid h3 { margin-bottom: 1rem; } }

.tracking-list {
  margin: 0; padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  color: #000;
  margin-bottom: 2rem;
}
@media (min-width: 640px) { .tracking-list { font-size: 16.9px; } }

.tracking-list li { display: flex; align-items: flex-start; gap: 0.5rem; }
.tracking-list li .bullet { color: var(--hubsn-orange); margin-top: 0.125rem; }

/* ============================================================
   Quote / Contact Form
   ============================================================ */
#form {
  background-color: var(--hubsn-porcelain);
  padding: 3rem 1rem;
}
@media (min-width: 640px) { #form { padding: 4rem 1.5rem; } }
@media (min-width: 1024px) { #form { padding: 129px 3rem 130px; } }
@media (min-width: 1280px) { #form { padding: 129px 4rem 130px; } }
@media (min-width: 1536px) { #form { padding: 129px 320px 130px; } }

.quote__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: stretch;
  justify-content: space-between;
  max-width: 80rem;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .quote__inner {
    flex-direction: row;
    gap: 90px;
    align-items: flex-end;
  }
}

#quote-content { order: 2; }
@media (min-width: 1024px) { #quote-content { order: 1; } }

#quote-content h2 { color: #000; margin-bottom: 0.75rem; text-transform: capitalize; }
@media (min-width: 1024px) { #quote-content h2 { margin-bottom: 1rem; } }

#quote-content .quote__tagline {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.28;
  color: #000;
  margin-bottom: 1.5rem;
  max-width: 500px;
}
@media (min-width: 640px) { #quote-content .quote__tagline { font-size: 1.25rem; } }
@media (min-width: 1024px) { #quote-content .quote__tagline { font-size: 22.5px; margin-bottom: 2.5rem; } }

#quote-content ul li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hubsn-dove);
  line-height: 1.35;
}
@media (min-width: 640px) { #quote-content ul li { font-size: 1rem; } }

#quote-content ul li a { color: var(--hubsn-dove); text-decoration: underline; }

#quote-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  order: 1;
}
@media (min-width: 1024px) {
  #quote-form { width: 620px; flex-shrink: 0; gap: 26px; order: 2; }
}

.form-group label {
  display: block;
  font-size: 17.6px;
  font-weight: 600;
  color: #000;
  margin-bottom: 0.625rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 15px;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: rgba(252,2,2,0.4); }

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-primary,
input[type="submit"].btn-primary,
input[type="submit"].wpcf7-submit {
  align-self: flex-start;
  display: inline-block;
  padding: 1rem 1.5rem;
  background: var(--hubsn-orange) !important;
  border: none;
  border-radius: 4px;
  font-size: 13.1px;
  font-family: inherit;
  font-weight: 600;
  color: #fff !important;
  letter-spacing: 0.56px;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1;
}
.btn-primary:hover,
input[type="submit"].btn-primary:hover,
input[type="submit"].wpcf7-submit:hover { opacity: 0.95; filter: brightness(1.05); }

/* ── Contact Form 7 layout fixes ── */

/* CF7 outer wrapper inherits the width/order from #quote-form */
#quote-form .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media (min-width: 1024px) {
  #quote-form .wpcf7-form { gap: 26px; }
}

/* CF7 wraps orphan tags (like submit) in <p> — reset its margin */
#quote-form .wpcf7-form > p {
  margin: 0;
  padding: 0;
}

/* Hide CF7's default response bar — we use custom animation */
#quote-form .wpcf7-response-output {
  display: none !important;
}

/* Validation errors under fields */
.wpcf7-not-valid-tip {
  font-size: 0.78rem;
  color: #b91c1c;
  margin-top: 0.35rem;
  display: block;
}
.wpcf7-not-valid input,
.wpcf7-not-valid textarea {
  border-color: rgba(185,28,28,0.5) !important;
}

/* ── CF7 success overlay ── */
.cf7-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  background: #fff;
  border-radius: 4px;
  opacity: 0; /* animated in by JS */
}
.cf7-success__icon {
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: var(--hubsn-orange);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cf7-success__icon svg { width: 1.75rem; height: 1.75rem; color: #fff; }
.cf7-success h3 {
  color: #111827;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}
.cf7-success p {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   Footer
   ============================================================ */
#footer {
  background-color: var(--hubsn-grey);
  color: #fff;
  padding: 2.5rem 1rem 2rem;
}
@media (min-width: 640px) { #footer { padding: 3rem 1.5rem 2rem; } }
@media (min-width: 1024px) { #footer { padding: 60px 3rem 2.5rem; } }
@media (min-width: 1280px) { #footer { padding: 60px 4rem 2.5rem; } }
@media (min-width: 1536px) { #footer { padding: 60px 320px 2.5rem; } }

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 80rem;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .footer__inner { flex-direction: row; justify-content: space-between; gap: 60px; }
}

.footer__brand {
  flex-shrink: 0;
  text-align: center;
}
@media (min-width: 1024px) { .footer__brand { text-align: left; } }

.footer__brand a {
  display: inline-block;
  height: 2.5rem; width: 10rem;
  margin-bottom: 1rem;
}
@media (min-width: 1024px) { .footer__brand a { margin-bottom: 1.5rem; } }

.footer__brand img { width: 100%; height: 100%; object-fit: contain; }

.footer__brand ul { }
.footer__brand ul li {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.625;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.5rem;
}
.footer__brand ul li a:hover { color: #fff; }

.footer__cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
@media (min-width: 640px) { .footer__cols { gap: 3rem; } }
@media (min-width: 1024px) { .footer__cols { justify-content: flex-end; gap: 5rem; } }

.footer__col h4 { margin-bottom: 1rem; text-transform: capitalize; color: #fff; }

.footer__col ul li a {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  line-height: 2;
  display: block;
  transition: color 0.2s;
}
.footer__col ul li a:hover { color: #fff; }
