/* Siloya — B2B supplement & functional food manufacturing
   Single stylesheet, no framework, no external font requests. */

:root {
  --brand: #0e6b5c;
  --brand-dark: #0a4a40;
  --brand-soft: #e8f3f0;
  --accent: #b8792f;
  --ink: #10231f;
  --muted: #5c6f6a;
  --line: #dde6e3;
  --bg: #ffffff;
  --bg-soft: #f5f8f7;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 35, 31, 0.06), 0 8px 24px rgba(16, 35, 31, 0.06);
  --max: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

li {
  margin-bottom: 0.4rem;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
}

.section--soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--tight {
  padding: 48px 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}

.lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 68ch;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

.center {
  text-align: center;
}

.center .lede {
  margin-left: auto;
  margin-right: auto;
}

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

.topbar {
  background: var(--brand-dark);
  color: #d7e6e2;
  font-size: 0.82rem;
}

.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
}

.topbar a {
  color: #ffffff;
}

.topbar-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
  flex: 0 0 auto;
}

.logo:hover {
  text-decoration: none;
}

.logo strong {
  font-size: 1.35rem;
  letter-spacing: 0.16em;
  color: var(--brand-dark);
  font-weight: 800;
  white-space: nowrap;
}

.logo span {
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  color: var(--ink);
  padding: 8px 9px;
  border-radius: 6px;
  font-size: 0.87rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav a:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--brand-dark);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-dark);
}

.btn--ghost {
  background: #fff;
  color: var(--brand-dark);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.btn--light {
  background: #fff;
  color: var(--brand-dark);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* ---------- hero ---------- */

.hero {
  background:
    radial-gradient(1100px 460px at 88% -12%, rgba(14, 107, 92, 0.16), transparent 62%),
    linear-gradient(180deg, #f7fbfa 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
  padding: 76px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  margin-bottom: 18px;
}

.hero .lede {
  font-size: 1.12rem;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 8px;
}

.hero-points li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
  margin: 0;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

.hero-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 26px;
}

.hero-panel h3 {
  font-size: 1rem;
  margin-bottom: 14px;
}

.fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fact-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.92rem;
  margin: 0;
}

.fact-list li:last-child {
  border-bottom: 0;
}

.fact-list span:first-child {
  color: var(--muted);
}

.fact-list span:last-child {
  font-weight: 600;
  text-align: right;
}

/* ---------- trust strip ---------- */

.trust {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.trust-grid div {
  background: #fff;
  padding: 22px 20px;
}

.trust-grid strong {
  display: block;
  font-size: 1.02rem;
  color: var(--brand-dark);
  margin-bottom: 2px;
}

.trust-grid span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- grids & cards ---------- */

.grid {
  display: grid;
  gap: 22px;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 {
  margin-bottom: 8px;
}

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

.card--link {
  display: block;
  color: inherit;
}

.card--link:hover {
  text-decoration: none;
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.icon svg {
  width: 22px;
  height: 22px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

/* ---------- process ---------- */

.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
}

.step {
  position: relative;
  padding-left: 62px;
  min-height: 46px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  margin-bottom: 4px;
  font-size: 1.02rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}

/* ---------- table ---------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 560px;
}

th,
td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--bg-soft);
  font-weight: 700;
  color: var(--brand-dark);
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- faq ---------- */

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

.faq summary {
  cursor: pointer;
  padding: 16px 30px 16px 0;
  font-weight: 600;
  position: relative;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  font-size: 1.3rem;
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "\2013";
}

.faq details p {
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 78ch;
}

/* ---------- cta ---------- */

.cta {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #eaf3f1;
  padding: 64px 0;
}

.cta h2 {
  color: #fff;
}

.cta p {
  color: #cfe2dd;
  max-width: 62ch;
}

/* ---------- forms ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field--full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.9rem;
  font-weight: 600;
}

.req {
  color: #b4231c;
}

input,
select,
textarea {
  font: inherit;
  font-size: 0.95rem;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(14, 107, 92, 0.28);
  border-color: var(--brand);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  font-weight: 400;
}

.checkbox input {
  width: auto;
  margin-top: 4px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  display: none;
}

.form-status[data-state="ok"] {
  display: block;
  background: #e7f4ec;
  color: #14532d;
  border: 1px solid #b7dcc5;
}

.form-status[data-state="error"] {
  display: block;
  background: #fdecea;
  color: #7f1d1d;
  border: 1px solid #f3c2bd;
}

/* ---------- callouts ---------- */

.note {
  border-left: 3px solid var(--accent);
  background: #fdf7ef;
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
  color: #5a4325;
}

.placeholder {
  border: 1px dashed #b9c7c3;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, #fbfdfc, #fbfdfc 12px, #f4f8f7 12px, #f4f8f7 24px);
  padding: 30px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- photography ---------- */

.shot {
  margin: 0;
}

.shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.shot figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.figure-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}

.figure-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.figure-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.figure-grid--wide .shot img {
  aspect-ratio: 16 / 9;
}

/* product tiles sit on white with the bottle fully visible */
.shot--product img {
  object-fit: contain;
  background: #fff;
  padding: 14px;
}

.shot--product figcaption {
  font-size: 0.82rem;
  line-height: 1.45;
}

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

.site-footer {
  background: #0d1f1c;
  color: #b6c6c2;
  padding: 56px 0 26px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.site-footer a {
  color: #cfe0dc;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 1.2rem;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid #22332f;
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* ---------- breadcrumb / page head ---------- */

.page-head {
  background: linear-gradient(180deg, #f7fbfa, #ffffff);
  border-bottom: 1px solid var(--line);
  padding: 52px 0 44px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--muted);
}

/* ---------- filters ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.filters button {
  font: inherit;
  font-size: 0.88rem;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.filters button:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.filters button[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

[hidden] {
  display: none !important;
}

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

@media (max-width: 1080px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(16, 35, 31, 0.08);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 18px;
    gap: 2px;
  }

  .nav[data-open="true"] {
    display: flex;
  }

  .nav a {
    padding: 11px 8px;
    font-size: 0.95rem;
  }

  .site-header {
    position: relative;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .grid--4,
  .grid--3,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid,
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    gap: 26px;
  }

  .figure-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .figure-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .section {
    padding: 52px 0;
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .form-grid,
  .footer-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0 42px;
  }

  .topbar .wrap {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 620px) {
  .figure-grid,
  .figure-grid--2 {
    grid-template-columns: 1fr;
  }

  .figure-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media print {
  .site-header,
  .topbar,
  .cta,
  .nav-toggle {
    display: none;
  }
}
