/* SnackCo Co-Manufacturing — clean industrial B2B
   Palette: steel navy, slate, concrete, SnackCo brand-red accent */
:root {
    --navy:    #102a43;
    --navy-2:  #1b3a5b;
    --slate:   #486581;
    --steel:   #627d98;
    --mist:    #9fb3c8;
    --fog:     #e6edf3;
    --concrete:#f4f7fa;
    --white:   #ffffff;
    --ink:     #1f2933;
    /* SnackCo brand red (from the logo) drives the accent */
    --amber:   #c0322a;
    --amber-d: #9c271f;
    --line:    #d9e2ec;
    --maxw: 1160px;
    --radius: 6px;
    --shadow: 0 1px 3px rgba(16,42,67,.08), 0 8px 24px rgba(16,42,67,.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Barlow Condensed', 'Inter', sans-serif; line-height: 1.1; color: var(--navy); margin: 0 0 .5em; letter-spacing: .2px; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
a { color: var(--slate); text-decoration: none; }
a:hover { color: var(--amber-d); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 12px; top: 12px; background: var(--white); padding: 8px 14px; z-index: 100; }

/* eyebrow / kicker */
.kicker { display: inline-block; font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase;
    letter-spacing: 2px; font-size: .8rem; font-weight: 700; color: var(--amber-d); margin-bottom: .6rem; }

/* buttons */
.btn { display: inline-block; font-weight: 600; font-size: .98rem; padding: 13px 26px; border-radius: var(--radius);
    border: 2px solid transparent; cursor: pointer; transition: .15s ease; text-align: center; }
.btn-primary { background: var(--amber); color: #fff; border-color: var(--amber); }
.btn-primary:hover { background: var(--amber-d); border-color: var(--amber-d); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--amber); color: var(--amber-d); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 1px 8px rgba(16,42,67,.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; flex-direction: column; line-height: 1; gap: 5px; }
.brand-logo { height: 36px; width: auto; display: block; }
.brand-sub { font-size: .6rem; text-transform: uppercase; letter-spacing: 2.5px; color: var(--steel); font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--navy); font-weight: 500; font-size: .95rem; }
.site-nav a:hover, .site-nav a.active { color: var(--amber-d); }
.site-nav a.active { box-shadow: inset 0 -2px 0 var(--amber); padding-bottom: 4px; }
.nav-cta { background: var(--amber); color: #fff !important; padding: 9px 18px; border-radius: var(--radius); box-shadow: none !important; }
.nav-cta:hover { background: var(--amber-d); }
.nav-toggle, .nav-toggle-label { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, var(--slate) 140%); color: #fff; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .07;
    background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
    background-size: 44px 44px; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; padding: 96px 0 88px; max-width: 760px; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.2rem; color: var(--fog); max-width: 620px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 54px; }
.hero-stats .stat strong { font-family: 'Barlow Condensed', sans-serif; font-size: 2.4rem; color: var(--amber); display: block; line-height: 1; }
.hero-stats .stat span { color: var(--mist); font-size: .9rem; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--concrete); }
.section.dark { background: var(--navy); color: var(--fog); }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--slate); font-size: 1.08rem; }
.section.dark .section-head p { color: var(--mist); }

/* grid helpers */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card .num { font-family: 'Barlow Condensed', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--amber-d);
    display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
    border: 2px solid var(--fog); border-radius: 50%; margin-bottom: 14px; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--slate); margin-bottom: 0; font-size: .97rem; }

/* product cards */
.product-card { display: flex; flex-direction: column; border-top: 4px solid var(--amber); }
.product-card .tag { font-size: .72rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--steel); font-weight: 600; }

/* feature list */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; color: var(--ink); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 9px;
    border-left: 3px solid var(--amber); border-bottom: 3px solid var(--amber); transform: rotate(-45deg); }

/* split (text + panel) */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.panel { background: var(--navy); color: var(--fog); border-radius: var(--radius); padding: 38px; }
.panel h3 { color: #fff; }
.panel .checklist li { color: var(--fog); }

/* cert chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { background: var(--white); border: 1px solid var(--line); border-radius: 50px; padding: 9px 18px; font-weight: 600;
    font-size: .9rem; color: var(--navy); }
.section.dark .chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }

/* CTA band */
.cta-band { background: var(--amber); color: #fff; text-align: center; padding: 64px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 560px; margin: 0 auto 24px; }
.cta-band .btn-primary { background: var(--navy); border-color: var(--navy); }
.cta-band .btn-primary:hover { background: var(--ink); border-color: var(--ink); }

/* process steps */
.steps { counter-reset: step; display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding-top: 18px; border-top: 3px solid var(--fog); }
.step .n { font-family: 'Barlow Condensed', sans-serif; color: var(--amber-d); font-weight: 700; font-size: .9rem; letter-spacing: 1px; }
.step h3 { font-size: 1.15rem; margin: 6px 0 .4rem; }
.step p { color: var(--slate); font-size: .94rem; margin: 0; }

/* ---------- forms ---------- */
.form-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
    font: inherit; color: var(--ink); background: var(--white); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(217,138,31,.15); }
.field textarea { min-height: 130px; resize: vertical; }
.field .req { color: var(--amber-d); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 22px; font-weight: 500; }
.alert-success { background: #e3f4ea; border: 1px solid #b6e0c6; color: #1c6b3c; }
.alert-error { background: #fdecea; border: 1px solid #f5c2bd; color: #a3251a; }
.field-error { border-color: #d6453a !important; }
.hp { position: absolute; left: -9999px; }

/* contact info column */
.contact-info li { margin-bottom: 14px; list-style: none; }
.contact-info ul { padding: 0; margin: 0; }
.contact-info .lbl { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--steel); }
.contact-info .val { font-size: 1.05rem; color: var(--navy); font-weight: 600; }

/* page hero (interior) */
.page-hero { background: var(--navy); color: #fff; padding: 64px 0; }
.page-hero h1 { color: #fff; margin-bottom: .3rem; }
.page-hero p { color: var(--mist); max-width: 640px; font-size: 1.1rem; margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--mist); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand { color: #fff; font-size: 1.5rem; }
.footer-legal { color: var(--fog); font-weight: 600; margin: 6px 0 2px; }
.footer-tagline { font-size: .9rem; }
.site-footer h4 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--mist); font-size: .94rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; font-size: .85rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; gap: 32px; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-toggle-label { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 34px; height: 34px; cursor: pointer; }
    .nav-toggle-label span { display: block; height: 3px; background: var(--navy); border-radius: 2px; transition: .2s; }
    .site-nav { position: fixed; inset: 78px 0 auto 0; background: var(--navy); flex-direction: column; align-items: stretch;
        gap: 0; padding: 8px 0; transform: translateY(-150%); transition: transform .25s ease; border-bottom: 1px solid rgba(255,255,255,.1); }
    .site-nav a { padding: 14px 24px; color: var(--fog); }
    .site-nav a:hover, .site-nav a.active { color: #fff; }
    .site-nav a.active { box-shadow: inset 3px 0 0 var(--amber); padding-bottom: 14px; }
    .nav-cta { margin: 10px 24px; text-align: center; }
    .nav-toggle:checked ~ .site-nav { transform: translateY(0); }
}
@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4, .form-row { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 56px 0; }
    .hero-inner { padding: 64px 0; }
    .hero-stats { gap: 28px; }
}

/* ---------- imagery & media ---------- */
.feature-img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.media-frame { background: var(--white); padding: 10px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.media-frame img { width: 100%; border-radius: 3px; display: block; }

/* product cards with photography */
.product-card { padding: 0; overflow: hidden; }
.product-thumb { width: 100%; height: 180px; object-fit: cover; display: block; background: var(--concrete); border-top-left-radius: 4px; border-top-right-radius: 4px; }
.product-card .product-body { padding: 24px; }
.product-card .product-body h3 { margin-bottom: .35rem; }

/* brand cards */
.brand-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.brand-card .brand-img-wrap { width: 100%; height: 180px; display: flex; align-items: center; justify-content: center;
    background: var(--concrete); border-radius: var(--radius); margin-bottom: 18px; padding: 16px; }
.brand-card .brand-img-wrap img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.brand-card p { color: var(--slate); }

/* logo on dark footer — keep legible on the brick-red mark's navy script */
.footer-logo { height: 34px; background: #fff; padding: 8px 12px; border-radius: var(--radius); margin-bottom: 14px; }

/* image in split/panel layouts */
.split img.feature-img { max-height: 420px; object-fit: cover; }

@media (max-width: 600px) {
    .product-thumb { height: 200px; }
}
