/* ============================================================
   FoodChem Consulting — stylesheet
   Palette: teal-green (food science / trust) + amber (flavour / energy)
   ============================================================ */

:root {
  --brand:       #0f7a64;   /* primary teal-green */
  --brand-deep:  #0a5546;   /* darker teal */
  --brand-darker:#073b31;   /* near-black teal (dark sections) */
  --accent:      #f4a72c;   /* amber */
  --accent-deep: #d98a12;

  --ink:    #0c1b18;        /* main text */
  --muted:  #54655f;        /* secondary text */
  --line:   #e3ece9;        /* hairlines / borders */
  --bg:     #f6f9f7;        /* page background */
  --tint:   #eef5f2;        /* tinted section */
  --card:   #ffffff;
  --mint:   #d8efe8;        /* soft brand wash */

  --radius:   16px;
  --radius-sm: 10px;
  --shadow:   0 1px 2px rgba(7,59,49,.06), 0 12px 30px -12px rgba(7,59,49,.18);
  --shadow-sm:0 1px 2px rgba(7,59,49,.06), 0 6px 16px -10px rgba(7,59,49,.20);

  --maxw: 1140px;
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.01em; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding: 92px 0; }
.section--tint { background: var(--tint); }
.section__head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section__head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.section__sub { color: var(--muted); font-size: 1.08rem; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.eyebrow--center { display: block; }
.eyebrow--light { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--lg { padding: 16px 28px; font-size: 1.02rem; }
.btn--sm { padding: 9px 18px; font-size: .9rem; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-deep); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--brand-deep); border-color: #c7dcd5; }
.btn--ghost:hover { background: #fff; border-color: var(--brand); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,249,247,.82); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s, background .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px -16px rgba(7,59,49,.5); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--brand); }
.brand:hover { text-decoration: none; }
.brand__mark { color: var(--brand); display: grid; place-items: center; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong { font-family: var(--font-head); font-weight: 700; font-size: 1.18rem; color: var(--ink); letter-spacing: -.02em; }
.brand__text em { font-style: normal; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brand); margin-top: 3px; }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links > a { font-weight: 500; color: var(--ink); font-size: .98rem; }
.nav__links > a:not(.btn):hover { color: var(--brand); text-decoration: none; }
.nav__cta { color: #fff; }
.nav__cta:hover { color: #fff; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 600px; display: flex; align-items: center; padding: 56px 0; }
.hero > .container { position: relative; z-index: 2; width: 100%; }
.hero__copy { max-width: 560px; }
.hero__photo { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; z-index: 1; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(246,249,247,.55) 12%, rgba(246,249,247,0) 34%); }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 20px; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 36ch; margin-bottom: 30px; }
.lead strong { color: var(--ink); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__points { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero__points li { position: relative; padding-left: 24px; color: var(--ink); font-size: .96rem; font-weight: 500; }
.hero__points li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px;
  background: var(--brand); -webkit-mask: var(--tick); mask: var(--tick); background-size: cover;
}
:root { --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* hero art card */
.hero__art { position: relative; display: grid; place-items: center; }
.art-card {
  width: 100%; max-width: 360px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; position: relative; z-index: 2;
}
.art-card__head { display: flex; align-items: center; gap: 7px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #d7e3df; }
.dot--accent { background: var(--accent); }
.art-card__label { margin-left: auto; font-family: var(--font-head); font-size: .82rem; color: var(--muted); letter-spacing: .04em; }
.art-rows { display: grid; gap: 10px; }
.art-row { display: flex; justify-content: space-between; align-items: center; font-size: .94rem; }
.art-row span { color: var(--muted); }
.art-row b { font-family: var(--font-head); color: var(--ink); }
.art-row--carrier { border-top: 1px dashed var(--line); padding-top: 11px; margin-top: 3px; }
.art-card__foot { display: flex; gap: 8px; margin-top: 18px; }
.badge { background: var(--mint); color: var(--brand-deep); font-size: .76rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; font-family: var(--font-head); }
.badge--ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.art-granules { position: absolute; inset: 0; z-index: 1; }
.art-granules span {
  position: absolute; border-radius: 50%; opacity: .85;
  background: var(--accent); animation: float 7s ease-in-out infinite;
}
.art-granules span:nth-child(1) { width: 16px; height: 16px; top: 6%; left: 8%; background: var(--brand); animation-delay: 0s; }
.art-granules span:nth-child(2) { width: 10px; height: 10px; top: 78%; left: 4%; animation-delay: .6s; }
.art-granules span:nth-child(3) { width: 22px; height: 22px; top: 88%; left: 72%; background: var(--brand); opacity:.5; animation-delay: 1.2s; }
.art-granules span:nth-child(4) { width: 9px;  height: 9px;  top: 12%; left: 88%; animation-delay: 1.8s; }
.art-granules span:nth-child(5) { width: 13px; height: 13px; top: 50%; left: 95%; background: var(--brand); opacity:.6; animation-delay: 2.4s; }
.art-granules span:nth-child(6) { width: 7px;  height: 7px;  top: 30%; left: 2%;  animation-delay: 3s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* sectors strip */
.hero-sectors { padding: 6px 0 22px; }
.sectors { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; margin-top: 0; padding-top: 28px; border-top: 1px solid var(--line); position: relative; z-index: 1; }
.sectors__label { font-family: var(--font-head); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sectors ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sectors li { background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: .9rem; font-weight: 500; padding: 7px 14px; border-radius: 999px; }

/* ---------- models ---------- */
.models { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.model-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  border-top: 4px solid var(--brand);
}
.model-card--alt { border-top-color: var(--accent); }
.model-card__tag { font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: var(--mint); align-self: flex-start; padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.model-card__tag--alt { color: var(--accent-deep); background: #fdeccb; }
.model-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.model-card > p { color: var(--muted); margin-bottom: 20px; }
.ticks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 28px; font-size: .98rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--mint) var(--tick) center / 11px no-repeat;
}
.ticks--alt li::before { background-color: #fdeccb; }
.model-card .btn { margin-top: auto; align-self: flex-start; }

/* comparison table */
.compare { margin-top: 28px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.compare table { width: 100%; border-collapse: collapse; min-width: 540px; }
.compare th, .compare td { padding: 15px 18px; text-align: left; font-size: .96rem; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-head); font-size: .92rem; color: var(--ink); background: var(--tint); }
.compare thead th:not(:first-child) { text-align: center; }
.compare tbody th { font-weight: 500; color: var(--ink); }
.compare td { text-align: center; color: var(--muted); }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.compare .yes { color: var(--brand-deep); font-weight: 600; }
.compare .part { color: var(--accent-deep); font-weight: 600; }

/* ---------- generic grids / cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__img { width: 100%; height: 178px; object-fit: cover; display: block; background: var(--mint); }
.card__body { padding: 22px 24px 26px; }
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; }

/* services */
.service { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .2s; }
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service__img { width: 100%; height: 158px; object-fit: cover; display: block; background: var(--mint); }
.service__body { padding: 22px 24px 24px; }
.service h3 { font-size: 1.12rem; margin-bottom: 8px; }
.service p { color: var(--muted); font-size: .96rem; }

/* ---------- process (dark) ---------- */
.section--dark { background: linear-gradient(160deg, var(--brand-darker), var(--brand-deep)); color: #eafaf5; }
.section--dark .section__head h2 { color: #fff; }
.section__sub--light { color: #b9d8cf; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps li { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 26px 22px; }
.steps__num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #3a2700; font-family: var(--font-head); font-weight: 700; margin-bottom: 16px; }
.steps h3 { color: #fff; font-size: 1.12rem; margin-bottom: 8px; }
.steps p { color: #c4ded6; font-size: .95rem; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 18px; }
.about__copy p { color: var(--muted); margin-bottom: 16px; }
.about__copy em { color: var(--ink); font-style: italic; }
.about__values { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about__values li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; box-shadow: var(--shadow-sm); }
.about__values b { display: block; font-family: var(--font-head); margin-bottom: 5px; }
.about__values span { color: var(--muted); font-size: .94rem; }

/* ---------- quote form ---------- */
.quote { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.quote__intro { position: sticky; top: 96px; }
.quote__intro h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 14px; }
.quote__intro > p { color: var(--muted); margin-bottom: 22px; }
.quote__assure { list-style: none; padding: 0; display: grid; gap: 10px; }
.quote__assure li { position: relative; padding-left: 26px; color: var(--ink); font-weight: 500; }
.quote__assure li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--mint) var(--tick) center / 11px no-repeat; }

.quote__form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label, legend { font-family: var(--font-head); font-weight: 500; font-size: .92rem; color: var(--ink); margin-bottom: 7px; display: block; }
.req { color: var(--accent-deep); }
input, select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fcfdfd; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,122,100,.13); }
textarea { resize: vertical; }

.field-hint { font-family: var(--font-body); font-weight: 400; font-size: .82rem; color: var(--muted); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.fs-frame { display: none; }

input[type="file"] { padding: 8px 12px; cursor: pointer; color: var(--muted); }
input[type="file"]::file-selector-button {
  font-family: var(--font-head); font-weight: 600; font-size: .86rem;
  margin-right: 12px; padding: 8px 15px; border: 0; border-radius: 999px;
  background: var(--mint); color: var(--brand-deep); cursor: pointer; transition: background .15s;
}
input[type="file"]::file-selector-button:hover { background: #c7e6db; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-body); font-weight: 500; font-size: .92rem; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; margin: 0; background: #fcfdfd; transition: .15s; }
.chip:hover { border-color: var(--brand); }
.chip input { width: auto; accent-color: var(--brand); }
.chip:has(input:checked) { background: var(--mint); border-color: var(--brand); color: var(--brand-deep); }

.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.radio-card { position: relative; cursor: pointer; margin: 0; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card span { display: block; height: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px; font-size: .86rem; color: var(--muted); transition: .15s; background: #fcfdfd; }
.radio-card span b { display: block; font-family: var(--font-head); color: var(--ink); font-size: .98rem; margin-bottom: 4px; }
.radio-card:hover span { border-color: var(--brand); }
.radio-card input:checked + span { border-color: var(--brand); background: var(--mint); box-shadow: 0 0 0 3px rgba(15,122,100,.13); }
.radio-card input:focus-visible + span { box-shadow: 0 0 0 3px rgba(15,122,100,.25); }

.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form-note { font-size: .92rem; color: var(--muted); margin: 0; }
.form-note.ok { color: var(--brand-deep); font-weight: 600; }
.form-note.err { color: #c0392b; font-weight: 600; }
input.invalid, select.invalid { border-color: #c0392b; }

/* ---------- footer ---------- */
.site-footer { background: var(--brand-darker); color: #cfe5dd; padding: 60px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand--light .brand__text strong { color: #fff; }
.brand--light { color: #fff; }
.brand--light .brand__mark { color: #fff; }
.footer__brand p { margin-top: 16px; color: #a9cabf; max-width: 38ch; font-size: .96rem; }
.footer__col h4 { font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer__col a, .footer__muted { display: block; color: #cfe5dd; font-size: .96rem; margin-bottom: 10px; }
.footer__col a:hover { color: #fff; }
.footer__muted { color: #87a79c; }
.footer__bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: .88rem; color: #87a79c; }
.footer__staff { color: #cfe5dd; font-weight: 600; white-space: nowrap; }
.footer__staff:hover { color: #fff; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .art-granules span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero { display: block; min-height: 0; padding: 20px 0 8px; }
  .hero__copy { max-width: none; }
  .hero__photo { position: static; width: 100%; height: 250px; margin-bottom: 30px; }
  .hero__photo::after { display: none; }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .quote { grid-template-columns: 1fr; gap: 32px; }
  .quote__intro { position: static; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 20px;
    box-shadow: 0 18px 30px -20px rgba(7,59,49,.5);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .2s;
  }
  .nav__links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links > a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .nav__links > a:last-child { border-bottom: 0; }
  .nav__cta { margin-top: 10px; }
  .models { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .about__values { grid-template-columns: 1fr; }
  .radio-cards { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .quote__form { padding: 22px; }
  .container { padding-inline: 18px; }
}
