/* ============================================================
   Creative Foodworks - co-packer of shelf-stable foods, est. 1987
   Palette pulled from the logo: red → orange → amber gradient,
   green leaf accent, charcoal, warm off-white.
   ============================================================ */

:root {
  --red:        #d32f1c;
  --red-deep:   #b8261a;
  --orange:     #f26721;
  --amber:      #f9a826;
  --yellow:     #ffc234;
  --leaf:       #5aa82f;
  --leaf-deep:  #498a26;

  --char:       #20191a;   /* near-black, warm */
  --char-soft:  #2c2526;
  --ink:        #2a2220;
  --body:       #5d534e;
  --muted:      #8a7f79;

  --paper:      #fdf9f4;
  --paper-alt:  #f6efe6;
  --line:       #ece3d8;
  --white:      #ffffff;

  --flame: linear-gradient(100deg, var(--red) 0%, var(--orange) 45%, var(--amber) 100%);
  --flame-soft: linear-gradient(100deg, #e23d1f 0%, #f47a26 50%, #f9a826 100%);

  --serif: 'Poppins', 'Segoe UI', sans-serif;
  --sans:  'Inter', 'Segoe UI', Arial, sans-serif;

  --shadow-sm: 0 2px 10px rgba(32, 25, 26, 0.06);
  --shadow-md: 0 12px 34px rgba(32, 25, 26, 0.10);
  --shadow-lg: 0 24px 60px rgba(32, 25, 26, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

::selection { background: var(--orange); color: #fff; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

html { scroll-behavior: smooth; scroll-padding-top: 104px; }

body {
  font-family: var(--sans);
  color: var(--body);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1180px; margin: 0 auto; padding: 0 30px; }
.container-narrow { max-width: 920px; margin: 0 auto; padding: 0 30px; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.12; font-weight: 700; }

h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: -0.015em; }
h3 { font-size: 1.3rem; font-weight: 600; }

a { color: var(--red-deep); text-decoration: none; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--flame);
  border-radius: 2px;
}

.eyebrow.centered { justify-content: center; }

.gradient-text {
  background: var(--flame);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section { padding: 100px 0; }
.section-tight { padding: 72px 0; }
.section-alt { background: var(--paper-alt); }
.section-dark { background: var(--char); color: #d9cfc8; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-intro { max-width: 640px; margin: 0 auto 3rem; text-align: center; font-size: 1.08rem; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head.left { text-align: left; margin-bottom: 2.4rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 2rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s, color 0.18s;
}

.btn-primary { background: var(--flame); color: #fff; box-shadow: 0 8px 22px rgba(242, 103, 33, 0.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(242, 103, 33, 0.42); }

.btn-dark { background: var(--char); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); background: var(--char-soft); }

.btn-ghost { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--orange); color: var(--red-deep); transform: translateY(-2px); }

.btn-arrow::after { content: "→"; font-weight: 400; transition: transform 0.18s; }
.btn:hover .btn-arrow::after, .btn-arrow:hover::after { transform: translateX(3px); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 249, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}

.brand img { height: 52px; transition: height 0.25s ease; }
.site-header.scrolled .brand img { height: 44px; }

.site-nav { display: flex; align-items: center; gap: 2.1rem; }

.site-nav a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.18s;
  position: relative;
}

.site-nav a:not(.btn):hover { color: var(--orange); }

.site-nav a.current:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--flame);
  border-radius: 2px;
}

.nav-toggle { display: none; }

/* ---------- hero (home) ---------- */

.hero {
  position: relative;
  background: var(--char);
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.85;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,16,16,0.94) 0%, rgba(20,16,16,0.78) 38%, rgba(20,16,16,0.28) 70%, rgba(20,16,16,0.15) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 660px;
  padding: 130px 0 120px;
}

.hero h1 { color: #fff; }
.hero h1 .gradient-text { display: inline-block; }

.hero-tagline {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  margin: 1.3rem 0 0;
  color: var(--yellow);
}

.hero-lede {
  font-size: 1.15rem;
  color: #e7ddd6;
  margin: 1.6rem 0 2.4rem;
  max-width: 540px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- page hero (interior) ---------- */

.page-hero {
  position: relative;
  background: var(--char);
  color: #fff;
  overflow: hidden;
  text-align: center;
}

.page-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,16,16,0.7) 0%, rgba(20,16,16,0.82) 100%);
}

.page-hero-inner { position: relative; z-index: 1; padding: 96px 0 88px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #e7ddd6; max-width: 620px; margin: 1.2rem auto 0; font-size: 1.12rem; }
.page-hero .eyebrow { color: var(--yellow); justify-content: center; }
.page-hero .eyebrow::before { background: var(--yellow); }

/* ---------- stat bar ---------- */

.statbar { background: var(--flame); }
.statbar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.stat { padding: 2.2rem 1rem; color: #fff; border-right: 1px solid rgba(255,255,255,0.22); }
.stat:last-child { border-right: none; }
.stat .num { font-family: var(--serif); font-weight: 700; font-size: 2.1rem; line-height: 1; }
.stat .label { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 0.5rem; opacity: 0.92; }

/* ---------- certifications strip ---------- */

.certs { background: #fff; border-bottom: 1px solid var(--line); padding: 2.6rem 0; }
.certs-title {
  text-align: center;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}
.certs-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}
.cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 0 2.8rem;
  text-align: center;
}
.cert-card + .cert-card { border-left: 1px solid var(--line); }
.cert-mark {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-mark img { height: 72px; width: auto; object-fit: contain; }
.text-mark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  padding: 0.55rem 1.1rem;
  line-height: 1;
}
.cert-name { font-size: 0.86rem; font-weight: 600; color: var(--ink); max-width: 160px; }

@media (max-width: 760px) {
  .certs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem 0; }
  .cert-card { padding: 0 1rem; }
  .cert-card + .cert-card { border-left: none; }
  .cert-card:nth-child(even) { border-left: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .certs-row { grid-template-columns: 1fr; }
  .cert-card:nth-child(even) { border-left: none; }
}

/* ---------- intro / two-col ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}
.split.reverse { align-items: start; }
.split.reverse .split-media { order: 2; }
.split p + p { margin-top: 1.1rem; }

.split-media {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* "what we make" stacked media: rotating slider + photo pair, fills text height */
.make-split { align-items: stretch; }
.make-split .make-media { order: 2; }
.make-media { display: flex; flex-direction: column; gap: 1.1rem; height: 100%; }
.make-media .slider {
  flex: 1 1 auto;
  min-height: 260px;
  aspect-ratio: auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.make-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; flex: 0 0 auto; }
.make-grid img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border-radius: 18px; box-shadow: var(--shadow-md);
}

/* auto-rotating product slider */
.slider { position: relative; aspect-ratio: 4 / 3; }
.slider .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.slider .slide.active { opacity: 1; }
.slider .media-tag { z-index: 2; }

.media-tag {
  position: absolute;
  bottom: 18px; left: 18px;
  background: rgba(20,16,16,0.78);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

.lead { font-size: 1.15rem; color: var(--ink); }

/* ---------- service cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.6rem;
}

.svc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2.2rem 2rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }

.svc-icon {
  width: 54px; height: 54px;
  border-radius: 13px;
  background: var(--flame);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.3rem;
  box-shadow: 0 6px 16px rgba(242,103,33,0.3);
}
.svc-icon svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 2; }

.svc-card h3 { margin-bottom: 0.6rem; }
.svc-card p { font-size: 0.95rem; }

/* ---------- pillars: Dream / Build / Grow ---------- */

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.pillar { text-align: center; padding: 0 1rem; }
.pillar .pn {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.3rem;
  color: var(--yellow);
}
.pillar h3 { color: #fff; font-size: 1.5rem; margin-bottom: 0.7rem; }
.pillar h3 .gradient-text { background: var(--flame-soft); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pillar p { font-size: 0.97rem; color: #c9beb7; }

/* ---------- product categories ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.cat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  transition: transform 0.18s, box-shadow 0.18s;
}
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.cat .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--flame); flex-shrink: 0; }

/* ---------- retailer wall ---------- */

.retailers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.4rem;
  align-items: center;
}
.retailers .logo-cell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  height: 110px;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  transition: transform 0.18s, box-shadow 0.18s;
}
.retailers .logo-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.retailers img { max-height: 56px; width: auto; object-fit: contain; }

/* ---------- capabilities detail ---------- */

.spec-list { list-style: none; }
.spec-list li {
  padding: 0.7rem 0 0.7rem 2rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.spec-list li:last-child { border-bottom: none; }
.spec-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.25em;
  width: 11px; height: 11px;
  background: var(--flame);
  border-radius: 3px;
  transform: rotate(45deg);
}
.spec-list strong { color: var(--ink); font-weight: 600; }

.cap-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.cap-block h3 { font-size: 1.35rem; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.7rem; }
.cap-block h3 .num-chip {
  font-size: 0.8rem; font-weight: 700;
  background: var(--flame); color: #fff;
  width: 30px; height: 30px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
}

.callout {
  background: var(--flame);
  color: #fff;
  border-radius: 18px;
  padding: 2.6rem 2.8rem;
  text-align: center;
}
.callout h3 { color: #fff; font-size: 1.6rem; margin-bottom: 0.6rem; }
.callout p { color: rgba(255,255,255,0.92); max-width: 560px; margin: 0 auto; }

/* ---------- contact form ---------- */

.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3.5rem; align-items: start; }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.6rem;
  box-shadow: var(--shadow-md);
}

.field { margin-bottom: 1.3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.45rem;
  letter-spacing: 0.01em;
}
.field label .req { color: var(--red); }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--sans);
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(242,103,33,0.14);
}
.field textarea { resize: vertical; min-height: 120px; }
.hp { position: absolute; left: -9999px; }

.contact-detail { margin-bottom: 2rem; }
.contact-detail .ico {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--paper-alt);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 0.7rem;
}
.contact-detail .ico svg { width: 20px; height: 20px; stroke: var(--orange); fill: none; stroke-width: 2; }
.contact-detail h4 { font-family: var(--serif); font-size: 1rem; color: var(--ink); margin-bottom: 0.2rem; }
.contact-detail a, .contact-detail p { color: var(--body); font-size: 0.97rem; }
.contact-detail a:hover { color: var(--red-deep); }

.contact-note {
  background: var(--paper-alt);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  font-size: 0.9rem;
}
.contact-note strong { color: var(--ink); }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  background: var(--char);
  color: #fff;
  overflow: hidden;
  text-align: center;
}
.cta-band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.22; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,16,16,0.85), rgba(20,16,16,0.7)); }
.cta-inner { position: relative; z-index: 1; padding: 88px 0; }
.cta-inner h2 { color: #fff; margin-bottom: 1rem; }
.cta-inner p { color: #e7ddd6; max-width: 560px; margin: 0 auto 2rem; font-size: 1.1rem; }

/* ---------- footer ---------- */

.site-footer { background: var(--char); color: #b6aaa3; padding: 4rem 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand-mark { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; margin-bottom: 0.8rem; }
.footer-brand-mark .gradient-text { background: var(--flame-soft); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-brand-mark .fw { color: #fff; letter-spacing: 0.18em; font-weight: 600; font-size: 0.95rem; display: block; margin-top: 0.1rem; }
.footer-col p { font-size: 0.92rem; line-height: 1.7; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; margin-bottom: 1.1rem;
}
.footer-col nav { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col nav a, .footer-col a { color: #b6aaa3; font-size: 0.92rem; }
.footer-col nav a:hover, .footer-col a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.82rem; color: #8a7f79; }

/* ---------- scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split.reverse .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .retailers { grid-template-columns: repeat(3, 1fr); }
  .pillars { grid-template-columns: 1fr; gap: 2.5rem; max-width: 380px; margin: 0 auto; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .statbar-inner { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.22); }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .retailers { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { padding: 90px 0 80px; }

  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute; top: 92px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch;
    padding: 1.2rem 1.8rem 1.8rem;
    gap: 0;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 1rem; justify-content: center; }
}
