/* 57 Foods — shared styles for every page. */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/poppins-400.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/poppins-500.woff2") format("woff2");
}

:root {
  --ink: #13261b;
  --ink-soft: #2a3d31;
  --text: #171a18;
  --muted: #5f6661;
  --faint: #8a918c;
  --surface: #f2f3f1;
  --surface-2: #e9ebe8;
  --line: #e2e5e1;
  --bg: #ffffff;
  --on-ink: #ffffff;
  --on-ink-muted: #b7c2bb;
  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 18px 40px -18px rgba(19, 38, 27, 0.45);
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.12; letter-spacing: -0.025em; margin: 0; color: var(--text); text-wrap: balance; }
p { margin: 0; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 21px; font-weight: 500; letter-spacing: -0.02em; color: var(--text); }
.brand svg { width: 26px; height: 26px; color: var(--ink); flex: none; }
.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--text); }
.nav .btn { color: var(--on-ink); }
@media (max-width: 520px) { .nav .nav-link-home { display: none; } }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--on-ink);
  padding: 14px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 500; text-decoration: none; line-height: 1;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, background 0.18s ease;
}
.btn:hover { background: #1e3829; transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; transition: transform 0.18s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { padding: 10px 16px; font-size: 14px; box-shadow: none; }

.chip {
  display: inline-block; padding: 5px 13px; border-radius: 999px;
  background: var(--surface); color: var(--muted);
  font-size: 12.5px; letter-spacing: 0.01em;
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head .chip { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 52px); }
.section-head p { margin-top: 16px; color: var(--muted); }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 0; text-align: center; }
.hero h1 { font-size: clamp(42px, 7.4vw, 88px); letter-spacing: -0.035em; line-height: 1.04; max-width: 13ch; margin: 0 auto; }
.hero .lede { color: var(--muted); margin: 24px auto 0; max-width: 34ch; font-size: clamp(16px, 1.6vw, 18px); }
.hero .btn { margin-top: 36px; }
.hero-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.6vw, 18px);
  margin-top: clamp(56px, 8vw, 96px);
}
.hero-strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
@media (max-width: 720px) { .hero-strip { grid-template-columns: repeat(2, 1fr); } }

/* About statement */
.about { text-align: center; }
.about .chip { margin-bottom: 22px; }
.statement { font-size: clamp(26px, 3.8vw, 44px); line-height: 1.22; letter-spacing: -0.025em; font-weight: 500; max-width: 24ch; margin: 0 auto; color: var(--text); }
.about .btn { margin-top: 40px; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .statement {
      background: linear-gradient(180deg, var(--text) 0 45%, #c4cac6 55% 100%) 0 0 / 100% 200% no-repeat;
      background-position-y: 100%;
      -webkit-background-clip: text; background-clip: text;
      color: transparent;
      animation: reveal-text linear both;
      animation-timeline: view();
      animation-range: entry 40% cover 50%;
    }
  }
}
@keyframes reveal-text { to { background-position-y: 0%; } }

/* Services list */
.services-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.services-intro { position: sticky; top: 112px; }
.services-intro .chip { margin-bottom: 18px; }
.services-intro h2 { font-size: clamp(32px, 4vw, 46px); }
.services-intro p { margin-top: 18px; color: var(--muted); max-width: 40ch; }
.service-list { display: grid; gap: clamp(36px, 5vw, 56px); }
.service-card { text-decoration: none; display: block; }
.service-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); transition: transform 0.35s ease; }
.service-card .media { overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.service-card:hover img { transform: scale(1.03); }
.service-card h3 { margin-top: 20px; font-size: clamp(22px, 2.4vw, 28px); display: flex; align-items: center; gap: 10px; }
.service-card h3 svg { width: 20px; height: 20px; opacity: 0; transform: translateX(-6px); transition: 0.2s ease; }
.service-card:hover h3 svg { opacity: 1; transform: none; }
.service-card p { margin-top: 6px; color: var(--muted); }
@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-intro { position: static; }
}

/* Why source — bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); overflow: hidden; position: relative; }
.card h3 { font-size: clamp(21px, 2.2vw, 26px); }
.card p { margin-top: 8px; color: var(--muted); font-size: 15px; max-width: 42ch; }
.card-wide { grid-column: span 2; }
.card-tall { grid-row: span 2; display: flex; flex-direction: column; }
.card-tall img { margin: auto -8px -8px auto; width: min(100%, 300px); padding-top: 24px; }
.search-art { margin-top: 28px; display: grid; gap: 18px; max-width: 460px; }
.search-art span { display: flex; align-items: center; height: 34px; }
.search-art span::before { content: ""; flex: 1; height: 3px; border-radius: 3px; background: var(--ink); }
.search-art span::after { content: ""; width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--ink); background: var(--bg); flex: none; }
.search-art span:last-child { width: 82%; margin-left: auto; }
.search-art span:last-child::before { opacity: 0.35; }
.card-center { text-align: center; display: grid; place-content: center; min-height: 190px; }
.card-center h3 { font-size: clamp(26px, 3vw, 36px); }
.card-center p { margin: 8px auto 0; }
.rings { position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, var(--ink) 0 22%, #6d7a72 22% 46%, #c3cbc6 46% 70%, transparent 70%); opacity: 0.9; }
.card-network { min-height: 190px; }
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; }
  .card-wide, .card-tall { grid-column: auto; grid-row: auto; }
  .card-tall img { margin: 12px auto 0; width: min(80%, 280px); }
}

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-weight: 500; font-size: clamp(16px, 1.7vw, 18px);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313261b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")
    center / 16px no-repeat;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 52px 24px 0; color: var(--muted); }
.faq .answer ul { margin: 10px 0 0; padding-left: 20px; }
.faq .answer p + p { margin-top: 10px; }

/* CTA panel */
.cta {
  background: var(--surface); border-radius: calc(var(--radius) + 6px);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: center;
  padding: 0 0 0 clamp(24px, 5vw, 64px); overflow: hidden; height: clamp(380px, 38vw, 440px);
}
.cta h2 { font-size: clamp(30px, 3.6vw, 44px); }
.cta p { margin-top: 14px; color: var(--muted); max-width: 44ch; }
.cta .btn { margin-top: 30px; }
.marquee { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; height: 100%; padding-right: clamp(16px, 3vw, 28px); overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
.marquee-col { display: grid; gap: 14px; align-content: start; animation: marquee-up 38s linear infinite; }
.marquee-col:nth-child(2) { animation-direction: reverse; animation-duration: 44s; }
.marquee-col img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); }
@keyframes marquee-up { to { transform: translateY(calc(-50% - 7px)); } }
@media (prefers-reduced-motion: reduce) { .marquee-col { animation: none; } }
@media (max-width: 760px) {
  .cta { grid-template-columns: 1fr; height: auto; padding: 36px 24px 0; }
  .marquee { height: 260px; padding: 0; }
}

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink); border-radius: calc(var(--radius) + 6px) calc(var(--radius) + 6px) 0 0; margin-top: clamp(72px, 10vw, 120px); }
.site-footer .wrap { padding-top: clamp(48px, 7vw, 72px); padding-bottom: 32px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: var(--on-ink); }
.site-footer .brand svg { color: var(--on-ink); }
.entity { margin-top: 22px; color: var(--on-ink-muted); font-size: 14px; font-style: normal; line-height: 1.9; }
.social { display: flex; gap: 14px; margin-top: 18px; }
.social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22); color: var(--on-ink); }
.social a:hover { background: rgba(255, 255, 255, 0.1); }
.social svg { width: 16px; height: 16px; }
.footer-col h2 { font-size: 17px; color: var(--on-ink); letter-spacing: -0.01em; }
.footer-col ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; font-size: 14px; }
.footer-col a { color: var(--on-ink-muted); text-decoration: none; }
.footer-col a:hover { color: var(--on-ink); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 13px; color: var(--on-ink-muted); }
@media (max-width: 720px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }

/* ---------- Service & policy pages ---------- */
.page-hero { padding: clamp(40px, 7vw, 80px) 0 0; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.page-hero h1 { margin-top: 18px; font-size: clamp(36px, 5.6vw, 68px); letter-spacing: -0.035em; max-width: 18ch; }
.page-hero .lede { margin-top: 18px; color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 52ch; }
.page-image { margin-top: clamp(32px, 5vw, 56px); }
.page-image img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: calc(var(--radius) + 4px); background: var(--surface); }
@media (max-width: 640px) { .page-image img { aspect-ratio: 4 / 3; } }

.prose { max-width: 760px; margin: clamp(48px, 7vw, 80px) auto 0; color: #2b302d; font-size: 17px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 2.2em; color: var(--text); }
.prose h3 { font-size: clamp(21px, 2.2vw, 25px); margin-top: 1.9em; color: var(--text); }
.prose h4 { font-size: 19px; margin-top: 1.6em; color: var(--text); letter-spacing: -0.01em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.6em; }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.45em; }
.prose li ul { margin-top: 0.45em; }
.prose li::marker { color: var(--faint); }
.prose strong { font-weight: 500; color: var(--text); }
.prose .lead { font-size: clamp(18px, 1.9vw, 21px); color: var(--text); line-height: 1.6; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { background: var(--surface); font-weight: 500; color: var(--text); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose .updated { color: var(--faint); font-size: 14px; }

.pager { max-width: 760px; margin: clamp(56px, 8vw, 88px) auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pager a { display: block; background: var(--surface); border-radius: var(--radius-sm); padding: 18px 22px; text-decoration: none; transition: background 0.2s; }
.pager a:hover { background: var(--surface-2); }
.pager span { display: block; font-size: 13px; color: var(--muted); }
.pager strong { display: block; font-weight: 500; margin-top: 2px; }
.pager .next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager .next { grid-column: auto; } }

.page-cta { margin-top: clamp(72px, 10vw, 120px); }

/* 404 */
.notfound { min-height: 55vh; display: grid; place-content: center; text-align: center; padding: 80px 0; }
.notfound h1 { font-size: clamp(40px, 6vw, 64px); }
.notfound p { color: var(--muted); margin: 16px 0 32px; }

/* Entrance motion */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .rise-2 { animation-delay: 0.08s; }
  .rise-3 { animation-delay: 0.16s; }
  .rise-4 { animation-delay: 0.26s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
