/* Central Packaging & Fulfillment — one-page site.
   Brand: the logo orange #EA7924 is the only fixed colour. Since the 2026-10-11
   refresh (Brad's handoff) the darks are charcoal; the variables keep their old
   --navy-* names. Orange is too light for white text (2.9:1), so orange buttons
   carry dark text, and orange text on white uses --orange-text. */

:root {
  --orange: #EA7924;
  --orange-hover: #F2903F;
  --orange-text: #B05A0C;      /* orange for small text on white */
  --orange-tint: #FDF0E2;

  --navy-950: #181B20;         /* charcoal, darkest */
  --navy-900: #22272E;         /* charcoal, primary */
  --navy-800: #2E343C;
  --navy-700: #3A414A;

  --ink: #1D2024;
  --slate: #55595F;
  --slate-2: #6A6E74;
  --on-dark: #FFFFFF;
  --on-dark-2: #BFC2C6;
  --on-dark-3: #9A9EA4;

  --line: #E0DFDA;
  --line-dark: rgba(255, 255, 255, .14);
  --mist: #F2F2EF;
  --white: #FFFFFF;

  --font-display: "Barlow", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --radius: 4px;
  --shadow: 0 1px 2px rgba(34, 39, 46, .06), 0 10px 30px rgba(34, 39, 46, .08);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-900); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy-900); line-height: 1.12; margin: 0; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(38px, 5.2vw, 60px); }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: 22px; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--orange); color: var(--navy-950); padding: 10px 16px; z-index: 100; font-weight: 600; }
.skip-link:focus { left: 8px; top: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange-text);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--orange); flex: none; }
.lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--slate); max-width: 62ch; }
.on-dark { color: var(--on-dark-2); }
.on-dark .eyebrow { color: var(--orange); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--on-dark); }
.on-dark .lede { color: var(--on-dark-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: .02em;
  padding: 14px 26px; border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--orange); color: var(--navy-950); }
.btn-primary:hover { background: var(--orange-hover); color: var(--navy-950); }
.btn-outline { border-color: var(--navy-900); color: var(--navy-900); }
.btn-outline:hover { background: var(--navy-900); color: var(--white); }
.on-dark .btn-outline { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.on-dark .btn-outline:hover { background: var(--white); border-color: var(--white); color: var(--navy-900); }
.btn-sm { font-size: 15px; padding: 10px 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--navy-950); color: var(--on-dark-2); font-size: 14px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: var(--on-dark); text-decoration: none; }
.topbar a:hover { color: var(--orange); }
.topbar .sep { color: var(--on-dark-3); margin: 0 10px; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header.scrolled { box-shadow: 0 4px 18px rgba(34, 39, 46, .08); }
.site-header .container { display: flex; align-items: center; gap: 32px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.brand img { width: 62px; height: auto; }
/* Wordmark: logo Option 4, condensed three lines ("Central / Packaging / & Fulfillment"). */
.brand-name { display: flex; flex-direction: column; font-family: "Barlow Condensed", var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: .04em; line-height: .95; text-transform: uppercase; }
.brand-name b { font-weight: 700; color: var(--navy-900); width: min-content; }   /* min-content splits "Central / Packaging" */
.brand-name span { color: var(--orange-text); white-space: nowrap; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.site-nav a {
  display: block; padding: 10px 14px; font-family: var(--font-display); font-weight: 600; font-size: 17px;
  color: var(--navy-900); text-decoration: none; border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: var(--orange-text); }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 12px; width: 20px; height: 2px; background: var(--navy-900); content: ""; transition: transform .2s, top .2s; }
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }
.site-header.open .nav-toggle span { background: transparent; }
.site-header.open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.site-header.open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-header .header-cta { display: none; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(34, 39, 46, .1); }
  .site-header.open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { padding-top: 16px; }
  .site-nav .nav-cta a { border: 0; text-align: center; padding: 14px 26px; }
}
@media (min-width: 861px) { .site-nav .nav-cta { display: none; } }
@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .brand img { width: 50px; }
  .brand-name { font-size: 16px; }
  .topbar .tagline, .topbar .email, .topbar .sep { display: none; }
  .topbar .container { justify-content: center; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.bg-mist { background: var(--mist); }
.bg-navy { background: var(--navy-900); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lede { margin-top: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy-900); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(24, 27, 32, .96) 0%, rgba(34, 39, 46, .9) 42%, rgba(34, 39, 46, .55) 72%, rgba(34, 39, 46, .35) 100%);
}
.hero .container { padding-top: clamp(80px, 11vw, 150px); padding-bottom: clamp(120px, 14vw, 190px); }
.hero-copy { max-width: 720px; }
.hero h1 { margin-bottom: 24px; }
.hero .lede { font-size: clamp(18px, 1.8vw, 21px); }
@media (max-width: 760px) {
  .hero::before { background: linear-gradient(180deg, rgba(24, 27, 32, .92) 0%, rgba(34, 39, 46, .86) 100%); }
}

/* Trust strip that overlaps the hero */
.trust {
  --overlap: clamp(64px, 8vw, 96px);
  position: relative; z-index: 2; margin-top: calc(-1 * var(--overlap));
  background: linear-gradient(to bottom, transparent var(--overlap), var(--mist) var(--overlap));   /* #services gray starts under the hero */
}
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); box-shadow: var(--shadow); border-radius: var(--radius); border-top: 4px solid var(--orange); }
.trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 26px 24px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item svg { width: 30px; height: 30px; flex: none; color: var(--orange-text); margin-top: 2px; }
.trust-item strong { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--navy-900); line-height: 1.25; }
.trust-item span { display: block; font-size: 14.5px; color: var(--slate-2); margin-top: 4px; line-height: 1.45; }
@media (max-width: 960px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Service cards ---------- */
/* Card style C (2026-10-11 refresh): no borders, soft shadow, round charcoal icon
   badge overlapping the top edge. Row gap leaves room for the badge. */
#services { background: var(--mist); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 24px; margin-top: 32px; }
.card { position: relative; background: var(--white); border-radius: 10px; padding: 52px 28px 32px; box-shadow: var(--shadow); }
.card-icon { position: absolute; top: -30px; left: 28px; width: 60px; height: 60px; border-radius: 50%; background: var(--navy-900); color: var(--white); display: grid; place-items: center; box-shadow: 0 0 0 6px var(--mist); }
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate); font-size: 16px; }
@media (max-width: 960px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split-media { margin: 0; }
.split-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.split h2 { margin-bottom: 20px; }
.split p { color: var(--slate); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1A2A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Steps (on navy) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { border-top: 2px solid var(--line-dark); padding-top: 22px; }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 40px; color: var(--orange); line-height: 1; margin-bottom: 14px;
}
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { color: var(--on-dark-2); font-size: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ (native <details>; answers stay in the HTML for search) ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.faq-grid details { border-top: 1px solid var(--line); }
.faq-col details:last-child { border-bottom: 1px solid var(--line); }
.faq-grid summary { list-style: none; cursor: pointer; position: relative; padding: 20px 40px 20px 0; }
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary h3 { font-size: 19px; line-height: 1.35; }
.faq-grid summary:hover h3 { color: var(--orange-text); }
.faq-grid summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--orange-text); border-bottom: 2px solid var(--orange-text);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq-grid details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-grid details p { color: var(--slate); font-size: 16px; padding: 0 40px 22px 0; margin: 0; }
@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-col:first-child details:last-child { border-bottom: 0; }
}

/* ---------- Quote ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 6vw, 72px); align-items: start; }
.contact-grid h2 { margin-bottom: 20px; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; color: var(--orange-text); flex: none; margin-top: 3px; }
.contact-list .label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-2); }
.contact-list a { font-size: 17px; color: var(--navy-900); font-weight: 500; text-decoration: none; }
.contact-list a:hover { color: var(--orange-text); text-decoration: underline; }
.form-card { background: var(--white); border-radius: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 16px 40px rgba(0, 0, 0, .10); padding: clamp(24px, 4vw, 40px); }
.form-card h3 { font-size: 26px; margin-bottom: 6px; }
.form-card .form-note { color: var(--slate-2); font-size: 15px; margin-bottom: 20px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Cognito Forms (Seamless embed). Cognito ships high-specificity "protect-css"
   rules, so these overrides need !important to win. */
.cognito-form .cog-cognito { width: 100% !important; max-width: none !important; font-family: var(--font-body) !important; color: var(--ink) !important; }
.cognito-form .cog-form__container { max-width: none !important; }
.cognito-form .cog-header { display: none !important; }
.cognito-form .cog-label { font-family: var(--font-body) !important; font-size: 14px !important; font-weight: 600 !important; color: var(--navy-900) !important; }
.cognito-form .cog-asterisk { color: var(--orange-text) !important; }
.cognito-form input:not([type=checkbox]):not([type=radio]), .cognito-form textarea, .cognito-form select {
  font-family: var(--font-body) !important; font-size: 16px !important; color: var(--ink) !important;
  background: var(--white) !important; border: 1px solid #CFCDC6 !important; border-radius: var(--radius) !important;
}
.cognito-form .cog-picker { border: 0 !important; background: transparent !important; }
.cognito-form input:focus, .cognito-form textarea:focus, .cognito-form select:focus { border-color: var(--navy-700) !important; box-shadow: 0 0 0 3px rgba(58, 65, 74, .18) !important; }
.cognito-form .cog-button--submit {
  font-family: var(--font-display) !important; font-size: 17px !important; font-weight: 600 !important; letter-spacing: .02em !important;
  padding: 14px 28px !important; height: auto !important; border-radius: var(--radius) !important;
  background: var(--orange) !important; color: var(--navy-950) !important; border: 2px solid transparent !important;
}
.cognito-form .cog-button--submit:hover { background: var(--orange-hover) !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--on-dark-2); font-size: 15.5px; }
.site-footer .container { padding-top: 72px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; }
.footer-brand .brand-name b { color: var(--white); }
.footer-brand .brand-name span { color: var(--orange); }
.footer-brand p { margin-top: 20px; max-width: 34ch; }
.site-footer h4 { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--white); font-weight: 600; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer .label { display: block; font-size: 13px; color: var(--on-dark-3); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--on-dark-3); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
