:root {
  --cj-navy: #00209f;
  --cj-navy-deep: #001861;
  --cj-steel: #1a3d99;
  --cj-steel-light: #8ea6d9;
  --cj-gunmetal: #4a4f57;
  --cj-gunmetal-light: #c9cdd3;
  --cj-gold: #d21034;
  --cj-gold-light: #e8637a;
  --cj-gold-dark: #a10d29;
  --cj-white: #f7f7f5;
  --cj-cream: #f3ede1;
  --cj-ink: #10202f;
  --cj-ink-soft: #3c5164;

  /* Full Haiti coat-of-arms palette (beyond the flag's blue/red) — used as accent bars
     and highlights on card groups, not as a wholesale replacement of the blue/red base.
     --cj-gold above is already red (the flag color); these two are new, distinctly
     named to avoid colliding with it. */
  --cj-emblem-gold: #caa14a;
  --cj-emblem-green: #0b6e3a;

  --cj-font-display: 'Archivo', system-ui, -apple-system, sans-serif;
  --cj-font-body: 'Public Sans', system-ui, -apple-system, sans-serif;
  --cj-font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --cj-radius-sm: 6px;
  --cj-radius: 12px;
  --cj-radius-lg: 20px;

  --cj-shadow-sm: 0 1px 3px rgba(0, 24, 97, 0.10), 0 1px 2px rgba(0, 24, 97, 0.06);
  --cj-shadow-md: 0 6px 20px rgba(0, 24, 97, 0.14), 0 2px 6px rgba(0, 24, 97, 0.08);
  --cj-shadow-lg: 0 18px 48px rgba(0, 24, 97, 0.22), 0 6px 16px rgba(0, 24, 97, 0.12);
  --cj-shadow-gold: 0 8px 22px rgba(161, 13, 41, 0.35);

  --cj-container: 1100px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--cj-font-body);
  background: var(--cj-white);
  color: var(--cj-ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--cj-font-display);
  color: var(--cj-navy);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.005em; }

p { margin: 0 0 1em; max-width: 62ch; }

a {
  color: var(--cj-steel);
  text-underline-offset: 3px;
  transition: color 160ms ease;
}
a:hover { color: var(--cj-gold-dark); }

::selection { background: var(--cj-gold-light); color: var(--cj-navy); }

:focus-visible {
  outline: 2px solid var(--cj-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.cj-skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--cj-navy);
  color: var(--cj-white);
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  z-index: 200;
  font-weight: 600;
  text-decoration: none;
}
.cj-skip-link:focus {
  left: 0;
  top: 0;
}

.cj-container {
  max-width: var(--cj-container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.cj-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--cj-navy) 0%, var(--cj-navy-deep) 100%);
  box-shadow: var(--cj-shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 24px;
}

.cj-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.cj-brand img.logo {
  /* Full artwork (eagle + shipping container + wordmark) is portrait-oriented, unlike
     the wide eagle-wings crop this replaced — taller than the old 46px to keep the mark
     legible at this shape, still short enough to fit the header bar comfortably. */
  height: 64px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.cj-brand-text {
  font-family: var(--cj-font-display);
  color: var(--cj-white);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
  white-space: nowrap;
}
.cj-brand-text span {
  display: block;
  font-family: var(--cj-font-body);
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cj-gold-light);
}

.cj-header nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.cj-header nav a {
  color: rgba(247, 247, 245, 0.82);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: var(--cj-radius-sm);
  transition: color 160ms ease, background 160ms ease;
  white-space: nowrap;
}

.cj-header nav a:hover {
  color: var(--cj-white);
  background: rgba(247, 247, 245, 0.08);
}

.cj-header nav a[aria-current="page"] {
  color: var(--cj-white);
  background: var(--cj-gold);
}

.cj-lang-switcher {
  display: inline-flex;
  background: rgba(0, 24, 97, 0.4);
  border: 1px solid rgba(247, 247, 245, 0.15);
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
}

.cj-lang-switcher button {
  border: none;
  background: transparent;
  color: rgba(247, 247, 245, 0.65);
  font-family: var(--cj-font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.cj-lang-switcher button:hover { color: var(--cj-white); }

.cj-lang-switcher button[aria-current="true"] {
  background: var(--cj-gold);
  color: var(--cj-white);
}

/* ---------- Buttons ---------- */

.cj-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, var(--cj-gold-light) 0%, var(--cj-gold) 55%, var(--cj-gold-dark) 100%);
  color: var(--cj-white);
  border: none;
  border-radius: var(--cj-radius-sm);
  padding: 13px 26px;
  font-family: var(--cj-font-body);
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--cj-shadow-gold);
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.cj-btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(161, 13, 41, 0.42);
}

.cj-btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--cj-shadow-sm);
}

.cj-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.cj-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--cj-white);
  border: 1.5px solid rgba(247, 247, 245, 0.5);
  border-radius: var(--cj-radius-sm);
  padding: 12px 24px;
  font-family: var(--cj-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease;
}
.cj-btn-secondary:hover {
  border-color: var(--cj-gold-light);
  background: rgba(247, 247, 245, 0.06);
  color: var(--cj-white);
}

/* .cj-btn-secondary is white-on-transparent, meant for the dark hero section — invisible
   on light backgrounds like the rest of the site. This is the equivalent for those. */
.cj-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--cj-navy);
  border: 1.5px solid var(--cj-navy);
  border-radius: var(--cj-radius-sm);
  padding: 12px 24px;
  font-family: var(--cj-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease;
}

.cj-btn-outline:hover {
  background: rgba(0, 32, 159, 0.06);
}

/* ---------- Hero ---------- */

.cj-hero {
  position: relative;
  /* Fallback shown before the video loads, if it fails, or under prefers-reduced-motion
     (where .cj-hero-video is hidden entirely) — the same gradient this section always had. */
  background: linear-gradient(160deg, var(--cj-navy) 0%, var(--cj-navy-deep) 100%);
  color: var(--cj-white);
  overflow: hidden;
  padding: 88px 24px 96px;
}

.cj-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .cj-hero-video {
    display: none;
  }
}

.cj-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Light vignette only — the ship footage stays clearly visible. Readability for the
     headline now comes from .cj-hero-inner's own translucent panel, not from darkening
     the whole frame. */
  background:
    radial-gradient(ellipse 900px 500px at 50% -10%, rgba(210, 16, 52, 0.15), transparent 60%),
    linear-gradient(160deg, rgba(0, 32, 159, 0.22) 0%, rgba(6, 20, 36, 0.32) 100%);
  pointer-events: none;
}

.cj-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.5;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 64px
  );
  pointer-events: none;
}

.cj-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: rgba(0, 24, 97, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--cj-radius-lg);
  padding: 40px 32px;
}

.cj-eyebrow {
  display: inline-block;
  font-family: var(--cj-font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cj-gold-light);
  margin-bottom: 18px;
}

.cj-hero h1 {
  color: var(--cj-white);
  margin-bottom: 0.4em;
}

.cj-hero p.cj-lede {
  color: rgba(247, 247, 245, 0.78);
  font-size: 1.15rem;
  max-width: 46ch;
  margin: 0 auto 2rem;
}

.cj-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Services strip ---------- */

.cj-services {
  background: var(--cj-cream);
  padding: 56px 24px;
  border-bottom: 1px solid rgba(0, 32, 159, 0.06);
}

.cj-services-list {
  max-width: var(--cj-container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  list-style: none;
  padding: 0;
}

.cj-services-list li {
  background: var(--cj-white);
  border: 1px solid rgba(0, 32, 159, 0.09);
  border-bottom: 3px solid transparent;
  border-radius: 999px;
  padding: 10px 20px;
  font-family: var(--cj-font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--cj-navy);
  box-shadow: var(--cj-shadow-sm);
}

/* Full emblem palette (gold, green, blue, red) cycling across the four item types,
   rather than one single accent — a deliberate exception to "pick one accent color,"
   matching the client's own reference brand (Mache Nathalie) for this Haiti-themed site. */
.cj-services-list li:nth-child(4n+1) { border-bottom-color: var(--cj-emblem-gold); }
.cj-services-list li:nth-child(4n+2) { border-bottom-color: var(--cj-emblem-green); }
.cj-services-list li:nth-child(4n+3) { border-bottom-color: var(--cj-navy); }
.cj-services-list li:nth-child(4n+4) { border-bottom-color: var(--cj-gold); }

/* ---------- Brand band ---------- */

.cj-brand-band {
  background: var(--cj-white);
  padding: 40px 24px;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid rgba(0, 32, 159, 0.06);
}

.cj-brand-band-logo {
  max-width: 220px;
  width: 100%;
  height: auto;
}

/* ---------- Welcome video ---------- */

.cj-welcome {
  background: var(--cj-cream);
  padding: 64px 24px;
  border-bottom: 1px solid rgba(0, 32, 159, 0.06);
}

.cj-welcome-inner {
  max-width: var(--cj-container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.cj-welcome-video {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--cj-radius-lg);
  box-shadow: var(--cj-shadow-lg);
  background: var(--cj-ink);
}

.cj-welcome-text {
  max-width: 420px;
  text-align: center;
}

.cj-welcome-text h2 { margin-bottom: 0.4em; }
.cj-welcome-text p { margin: 0 auto; }

@media (min-width: 640px) {
  .cj-welcome-text { text-align: left; }
  .cj-welcome-text p { margin: 0; }
}

/* ---------- Shop Forward section ---------- */

.cj-shop-forward {
  background: var(--cj-navy);
  color: var(--cj-white);
  padding: 64px 24px;
  text-align: center;
}

.cj-shop-forward-inner {
  max-width: 720px;
  margin: 0 auto;
}

.cj-shop-forward h2 {
  color: var(--cj-white);
  font-family: var(--cj-font-serif);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cj-shop-forward-highlight {
  color: var(--cj-gold-light);
}

.cj-shop-forward p {
  color: rgba(247, 247, 245, 0.8);
  margin: 0 auto 24px;
}

.cj-shop-forward-lede {
  font-size: 1.05rem;
  max-width: 58ch;
}

.cj-shop-forward-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 auto 32px;
  text-align: left;
}

.cj-shop-forward-step {
  background: rgba(247, 247, 245, 0.08);
  border: 1px solid rgba(247, 247, 245, 0.15);
  border-top: 3px solid var(--cj-emblem-gold);
  border-radius: var(--cj-radius);
  padding: 20px 18px;
}

/* Same full-emblem-palette treatment as the item-type pills above, cycling through
   the coat of arms's other colors (blue is already the section background). */
.cj-shop-forward-step:nth-child(2) { border-top-color: var(--cj-emblem-green); }
.cj-shop-forward-step:nth-child(3) { border-top-color: var(--cj-gold); }

.cj-shop-forward-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cj-emblem-gold);
  color: var(--cj-white);
  font-family: var(--cj-font-display);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.cj-shop-forward-step p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(247, 247, 245, 0.85);
}

@media (max-width: 720px) {
  .cj-shop-forward-steps { grid-template-columns: 1fr; }
}

/* ---------- How it works ---------- */

.cj-steps {
  position: relative;
  overflow: hidden;
  /* Fallback shown before the video loads, if it fails, or under
     prefers-reduced-motion (where .cj-steps-video is hidden entirely). */
  background: linear-gradient(160deg, var(--cj-navy) 0%, var(--cj-navy-deep) 100%);
  color: var(--cj-white);
  padding: 64px 24px;
}

.cj-steps-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .cj-steps-video {
    display: none;
  }
}

.cj-steps::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Light vignette only — the plane/sky footage stays clearly visible. Readability for
     the heading and each step now comes from their own translucent panels below, not
     from darkening the whole frame. */
  background: linear-gradient(160deg, rgba(0, 32, 159, 0.22) 0%, rgba(6, 20, 36, 0.32) 100%);
  pointer-events: none;
}

.cj-steps-inner {
  position: relative;
  z-index: 2;
  max-width: var(--cj-container);
  margin: 0 auto;
}

.cj-steps h2 {
  color: var(--cj-white);
  text-align: center;
  margin-bottom: 40px;
  display: inline-block;
  background: rgba(0, 24, 97, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--cj-radius);
  padding: 12px 28px;
  left: 50%;
  position: relative;
  transform: translateX(-50%);
}

.cj-features h2 {
  text-align: center;
  margin-bottom: 40px;
}

.cj-steps-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  counter-reset: cj-step;
}

.cj-steps-list li {
  text-align: center;
}

.cj-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--cj-gold-light) 0%, var(--cj-gold) 55%, var(--cj-gold-dark) 100%);
  color: var(--cj-white);
  font-family: var(--cj-font-display);
  font-weight: 800;
  font-size: 1.05rem;
}

.cj-steps-list h3 {
  color: var(--cj-white);
  font-size: 1rem;
  margin-bottom: 0.4em;
}

.cj-steps-list p {
  font-size: 0.92rem;
  color: rgba(247, 247, 245, 0.78);
  margin: 0;
}

/* ---------- Feature highlights ---------- */

.cj-features {
  background: var(--cj-cream);
  padding: 64px 24px;
  border-top: 1px solid rgba(0, 32, 159, 0.06);
  border-bottom: 1px solid rgba(0, 32, 159, 0.06);
}

.cj-features-inner {
  max-width: var(--cj-container);
  margin: 0 auto;
}

.cj-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cj-feature-card {
  background: var(--cj-white);
  border: 1px solid rgba(0, 32, 159, 0.07);
  border-radius: var(--cj-radius);
  padding: 24px;
  box-shadow: var(--cj-shadow-sm);
}

.cj-feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4em;
}

.cj-feature-card p {
  font-size: 0.92rem;
  margin: 0;
}

@media (max-width: 800px) {
  .cj-steps-list { grid-template-columns: repeat(2, 1fr); }
  .cj-features-grid { grid-template-columns: 1fr; }
}

/* ---------- Page hero (non-home pages) ---------- */

.cj-page-header {
  background: linear-gradient(160deg, var(--cj-navy) 0%, var(--cj-navy-deep) 100%);
  color: var(--cj-white);
  padding: 52px 24px 60px;
  text-align: center;
}

.cj-page-header h1 { color: var(--cj-white); margin-bottom: 0.3em; }
.cj-page-header p { color: rgba(247, 247, 245, 0.75); max-width: 52ch; margin: 0 auto; }

/* ---------- Layout ---------- */

.cj-main {
  max-width: 640px;
  margin: -40px auto 80px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.cj-main--wide { max-width: 760px; }
.cj-main--narrow { max-width: 520px; }

/* ---------- Cards ---------- */

.cj-card {
  background: var(--cj-white);
  border: 1px solid rgba(0, 32, 159, 0.07);
  border-radius: var(--cj-radius);
  padding: 32px;
  box-shadow: var(--cj-shadow-md);
  margin-bottom: 20px;
}

.cj-card--accent {
  border-top: 3px solid var(--cj-gold);
}

.cj-card h3 {
  margin-bottom: 0.6em;
}

.cj-card p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */

.cj-field {
  margin-bottom: 18px;
}

.cj-field:last-child { margin-bottom: 0; }

.cj-field label,
.cj-card > label {
  display: block;
  font-family: var(--cj-font-body);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cj-ink-soft);
  margin-bottom: 7px;
}

.cj-card > label { margin-top: 16px; }
.cj-card > label:first-child { margin-top: 0; }

.cj-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cj-row:has(#cj-customer-city) {
  grid-template-columns: 2fr 1fr 1fr;
}

.cj-field--autocomplete {
  position: relative;
}

.cj-address-suggestions {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cj-address-suggestions:not(:empty) {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--cj-white);
  border: 1.5px solid var(--cj-gunmetal-light);
  border-radius: var(--cj-radius-sm);
  box-shadow: var(--cj-shadow-md);
  margin-top: 4px;
  overflow: hidden;
}

.cj-address-suggestions li {
  padding: 10px 14px;
  font-size: 0.92rem;
  cursor: pointer;
}

.cj-address-suggestions li:hover {
  background: var(--cj-gunmetal-light);
}

.cj-fulfillment-choice {
  text-align: center;
  margin: 28px 0;
}

.cj-fulfillment-choice h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.cj-fulfillment-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
select {
  width: 100%;
  font-family: var(--cj-font-body);
  font-size: 0.98rem;
  color: var(--cj-ink);
  background: var(--cj-white);
  border: 1.5px solid var(--cj-gunmetal-light);
  border-radius: var(--cj-radius-sm);
  padding: 11px 14px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:hover, select:hover { border-color: var(--cj-steel-light); }

input:focus, select:focus {
  outline: none;
  border-color: var(--cj-gold);
  box-shadow: 0 0 0 3px rgba(210, 16, 52, 0.22);
}

input::placeholder { color: #9aa3ab; }

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%234a4f57' stroke-width='2' fill='none' fill-rule='evenodd' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.cj-card > select,
.cj-card > input {
  margin-bottom: 4px;
}

/* ---------- Cargo manifest rows ---------- */

.cj-manifest-row {
  display: grid;
  grid-template-columns: 1fr 70px 100px auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.cj-manifest-remove-btn {
  background: transparent;
  border: 1px solid rgba(0, 32, 159, 0.15);
  border-radius: var(--cj-radius-sm);
  color: var(--cj-ink-soft);
  font-size: 1.1rem;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
}

.cj-manifest-remove-btn:hover {
  border-color: var(--cj-gold-dark);
  color: var(--cj-gold-dark);
}

#cj-add-manifest-row {
  width: auto;
  margin-bottom: 12px;
}

@media (max-width: 520px) {
  .cj-manifest-row { grid-template-columns: 1fr; }
}

/* ---------- Mailbox package rows ---------- */

.cj-mailbox-package-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 32, 159, 0.08);
}
.cj-mailbox-package-row:last-child { border-bottom: none; }

/* ---------- Result / status messages ---------- */

.cj-result {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--cj-radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
}

.cj-result:empty { display: none; }

.cj-result--price {
  background: rgba(210, 16, 52, 0.12);
  color: var(--cj-navy);
  font-family: var(--cj-font-display);
  font-size: 1.4rem;
  font-weight: 800;
}

.cj-result--error {
  background: rgba(163, 42, 42, 0.08);
  color: #7a2323;
}

.cj-result--info {
  background: rgba(47, 93, 130, 0.09);
  color: var(--cj-steel);
}

/* ---------- Time slot buttons ---------- */

#cj-slot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

#cj-slot-list button {
  font-family: var(--cj-font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cj-navy);
  background: var(--cj-cream);
  border: 1.5px solid rgba(0, 32, 159, 0.12);
  border-radius: var(--cj-radius-sm);
  padding: 10px 16px;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

#cj-slot-list button:hover {
  border-color: var(--cj-gold);
  background: var(--cj-gold-light);
}

/* ---------- Review / total ---------- */

.cj-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px dashed rgba(0, 32, 159, 0.15);
  border-bottom: 1px dashed rgba(0, 32, 159, 0.15);
  margin: 14px 0 22px;
}

.cj-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--cj-ink-soft);
  margin-bottom: 18px;
  cursor: pointer;
}

.cj-disclaimer input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.cj-disclaimer-links {
  font-size: 0.8rem;
  color: var(--cj-ink-soft);
  margin: -10px 0 18px;
}

#cj-account-widget {
  margin-bottom: 24px;
}

#cj-account-widget h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

#cj-account-widget p {
  color: var(--cj-ink-soft);
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.cj-account-link {
  display: block;
  background: none;
  border: none;
  color: var(--cj-navy);
  text-decoration: underline;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 10px 0 0;
}

#cj-account-submit-btn {
  margin-top: 4px;
}

#cj-account-logged-in {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cj-total-row .cj-total-label {
  font-family: var(--cj-font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cj-ink-soft);
}

#cj-total-display {
  font-family: var(--cj-font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--cj-navy);
}

/* ---------- Confirmation pages ---------- */

.cj-confirm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.cj-confirm-icon--success { background: rgba(210, 16, 52, 0.15); color: var(--cj-gold-dark); }
.cj-confirm-icon--cancel { background: rgba(74, 79, 87, 0.12); color: var(--cj-gunmetal); }

/* ---------- Footer ---------- */

.cj-footer {
  background: linear-gradient(160deg, var(--cj-navy-deep) 0%, #050f1c 100%);
  color: rgba(247, 247, 245, 0.85);
  padding: 48px 24px 28px;
  margin-top: 0;
}

.cj-footer-inner {
  max-width: var(--cj-container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(247, 247, 245, 0.1);
}

.cj-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 320px;
}

/* Full artwork (eagle + shipping container + wordmark) is portrait-oriented, unlike
   the wide eagle-wings crop this replaced — taller than the old 40px to stay legible. */
.cj-footer-brand img { height: 56px; width: auto; }

.cj-footer-brand p {
  font-size: 0.85rem;
  color: rgba(247, 247, 245, 0.6);
  margin: 4px 0 0;
}

.cj-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.cj-footer-nav a {
  color: rgba(247, 247, 245, 0.75);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.cj-footer-nav a:hover { color: var(--cj-gold-light); }

.cj-footer-bottom {
  max-width: var(--cj-container);
  margin: 20px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(247, 247, 245, 0.5);
}

.cj-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.cj-footer-legal a {
  color: rgba(247, 247, 245, 0.5);
  text-decoration: none;
  font-size: 0.82rem;
}

.cj-footer-legal a:hover { color: var(--cj-gold-light); }

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .cj-header {
    flex-wrap: wrap;
  }
  .cj-header nav {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 8px;
    border-top: 1px solid rgba(247, 247, 245, 0.1);
  }
  .cj-row { grid-template-columns: 1fr; }
  .cj-main { margin-top: -28px; }
  .cj-hero { padding: 64px 20px 72px; }
}

/* ---------- Admin dashboard ---------- */
/* Deliberately its own minimal layout, not the marketing header/hero/footer:
   this page is a work tool for staff, not a page a customer ever sees. */

.cj-admin-body {
  background: var(--cj-cream);
  min-height: 100vh;
}

.cj-admin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cj-navy);
  padding: 14px 20px;
}

.cj-admin-bar-brand {
  font-family: var(--cj-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(247, 247, 245, 0.85);
}

.cj-admin-bar-brand strong {
  color: var(--cj-white);
  font-weight: 700;
}

.cj-admin-logout-btn {
  background: transparent;
  border: 1px solid rgba(247, 247, 245, 0.3);
  border-radius: var(--cj-radius-sm);
  color: var(--cj-white);
  font-family: var(--cj-font-body);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 6px 14px;
  cursor: pointer;
}

.cj-admin-logout-btn:hover {
  border-color: var(--cj-gold-light);
  color: var(--cj-gold-light);
}

.cj-admin-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.cj-admin-login-card {
  background: var(--cj-white);
  border: 1px solid rgba(0, 32, 159, 0.08);
  border-radius: var(--cj-radius);
  box-shadow: var(--cj-shadow-sm);
  padding: 28px;
  max-width: 340px;
  margin: 40px auto 0;
}

.cj-admin-login-card h1 {
  font-size: 1.25rem;
  margin-bottom: 0.8em;
}

.cj-password-field {
  position: relative;
}

.cj-password-field input {
  padding-right: 44px;
}

.cj-password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.05rem;
  line-height: 1;
  padding: 6px;
  cursor: pointer;
}

.cj-admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0, 32, 159, 0.12);
}

.cj-admin-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 18px;
  font-family: var(--cj-font-body);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--cj-ink-soft);
  cursor: pointer;
}

.cj-admin-tab.active {
  color: var(--cj-navy);
  border-bottom-color: var(--cj-gold);
}

.cj-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.cj-admin-table th {
  text-align: left;
  font-family: var(--cj-font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cj-ink-soft);
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 32, 159, 0.12);
}

.cj-admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 32, 159, 0.06);
  vertical-align: middle;
}

.cj-admin-table input[type="text"],
.cj-admin-table input[type="number"],
.cj-admin-table select {
  padding: 6px 8px;
  font-size: 0.88rem;
  min-width: 90px;
}

.cj-admin-table .cj-notes-cell {
  max-width: 260px;
  font-size: 0.82rem;
  color: var(--cj-ink-soft);
  white-space: pre-wrap;
}

.cj-admin-save-btn {
  background: var(--cj-steel);
  color: var(--cj-white);
  border: none;
  border-radius: var(--cj-radius-sm);
  padding: 6px 14px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}
.cj-admin-save-btn:hover { background: var(--cj-navy); }

.cj-admin-save-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.cj-admin-delete-btn {
  background: transparent;
  color: var(--cj-gold-dark);
  border: 1px solid var(--cj-gold-dark);
  border-radius: var(--cj-radius-sm);
  padding: 6px 14px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}
.cj-admin-delete-btn:hover { background: var(--cj-gold-dark); color: var(--cj-white); }

.cj-admin-delete-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.cj-manifest-view-list {
  margin: 6px 0 0;
  padding-left: 16px;
  font-size: 0.8rem;
  color: var(--cj-ink-soft);
}

.cj-labels-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
}

.cj-labels-cell a {
  white-space: nowrap;
}

.cj-admin-table-wrap {
  overflow-x: auto;
  background: var(--cj-white);
  border: 1px solid rgba(0, 32, 159, 0.08);
  border-radius: var(--cj-radius);
  box-shadow: var(--cj-shadow-sm);
}

.cj-admin-hint {
  color: var(--cj-ink-soft);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

#cj-admin-panel-walkin h4 {
  font-size: 0.95rem;
  margin: 22px 0 10px;
}

#cj-walkin-result {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed rgba(0, 32, 159, 0.15);
}

#cj-walkin-result .cj-walkin-result-tracking {
  font-size: 1.05rem;
}

#cj-walkin-result a,
#cj-walkin-result button {
  margin: 8px 8px 0 0;
}

/* ---------- Legal pages (Terms, Privacy, Refund Policy) ---------- */

.cj-legal-updated {
  color: var(--cj-ink-soft);
  font-size: 0.92rem;
  margin-bottom: 2em;
}

.cj-legal h2 {
  margin-top: 1.8em;
  padding-top: 0.6em;
  border-top: 1px solid rgba(16, 32, 47, 0.08);
}

.cj-legal h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.cj-legal h3 {
  margin-top: 1.3em;
}

.cj-legal ul,
.cj-legal ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
  max-width: 62ch;
}

.cj-legal li {
  margin-bottom: 0.4em;
}

.cj-legal strong {
  color: var(--cj-navy);
}

.cj-legal-toc {
  background: var(--cj-cream);
  border-radius: var(--cj-radius);
  padding: 20px 24px;
  margin-bottom: 2em;
}

.cj-legal-toc p { margin-bottom: 0.6em; font-weight: 700; color: var(--cj-navy); }
.cj-legal-toc ol { margin: 0; }

/* ---------- Homepage entry animation ---------- */
/* First-visit-per-session only (js/intro.js gates on sessionStorage) — a returning
   visitor within the same session, or anyone with prefers-reduced-motion, never sees
   this at all; js/intro.js removes the element outright rather than just hiding it. */

.cj-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #05070b;
  opacity: 1;
  /* js/intro.js adds .cj-intro-done once the video's 'ended' event actually fires (with
     a play()-rejection and a hard timeout as fallbacks) — not on a fixed delay, so the
     video always gets to finish playing regardless of buffering/start latency. */
  transition: opacity 0.6s ease;
}

.cj-intro-overlay.cj-intro-done {
  opacity: 0;
  pointer-events: none;
}

.cj-intro-logo {
  width: 100%;
  max-width: 720px;
  height: auto;
  opacity: 0;
  animation: cj-intro-video-in 0.4s ease forwards;
}

@keyframes cj-intro-video-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .cj-intro-overlay { display: none; }
}

/* ---------- Shipment reprint button ---------- */

.cj-mailbox-package-row .cj-btn-outline {
  padding: 6px 14px;
  font-size: 0.85rem;
}

/* ---------- Customer <-> admin chat ---------- */

.cj-chat-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding: 4px 2px;
  margin-bottom: 14px;
}

.cj-chat-message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: var(--cj-radius);
  font-size: 0.92rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.cj-chat-message--customer {
  align-self: flex-end;
  background: var(--cj-navy);
  color: var(--cj-white);
  border-bottom-right-radius: 4px;
}

.cj-chat-message--staff {
  align-self: flex-start;
  background: var(--cj-cream);
  color: var(--cj-ink);
  border-bottom-left-radius: 4px;
}

.cj-chat-message-time {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  opacity: 0.7;
}

.cj-chat-empty {
  font-size: 0.9rem;
  color: var(--cj-ink-soft);
  margin-bottom: 14px;
}

.cj-chat-compose {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.cj-chat-compose textarea {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  resize: vertical;
  padding: 10px 12px;
  border-radius: var(--cj-radius-sm);
  border: 1px solid var(--cj-gunmetal-light);
  font-family: var(--cj-font-body);
  font-size: 0.92rem;
}

/* ---------- Admin Messages tab ---------- */

.cj-admin-messages-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.cj-admin-conversations-list {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 560px;
  overflow-y: auto;
}

.cj-admin-conversation-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--cj-radius-sm);
  border: 1px solid var(--cj-gunmetal-light);
  background: var(--cj-white);
  cursor: pointer;
  text-align: left;
}

.cj-admin-conversation-row.active {
  border-color: var(--cj-navy);
  background: rgba(0, 32, 159, 0.06);
}

.cj-admin-conversation-name {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cj-admin-conversation-unread-badge {
  background: var(--cj-gold);
  color: var(--cj-white);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 7px;
}

.cj-admin-conversation-preview {
  font-size: 0.82rem;
  color: var(--cj-ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.cj-admin-conversation-thread {
  flex: 1;
  min-width: 0;
}
