/* =========================================================================
   Jayson Foods — base styles (tokens from the Figma). Block styles live in /blocks/<name>/style.css
   and are inlined only on pages that use them.
   ========================================================================= */

@font-face { font-family: "Bebas Neue"; src: url("../fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
/* Metric-matched fallbacks: no layout jump when the web fonts arrive */
@font-face { font-family: "Bebas Fallback"; src: local("Arial Narrow"), local("Arial"); size-adjust: 72%; ascent-override: 128%; descent-override: 42%; }
@font-face { font-family: "Montserrat Fallback"; src: local("Arial"); size-adjust: 113%; ascent-override: 85%; descent-override: 22%; line-gap-override: 0%; }

:root {
	--red: #dd0228;
	--red-2: #e63329;
	--yellow: #ffe05d;
	--green: #4a7f28;
	--green-d: #3c6a1f;
	--cream: #fffdf1;
	--ink: #333;
	--ink-2: #3e443d;
	--muted: #666;
	--line: #e7e3d3;
	--white: #fff;
	--display: "Bebas Neue", "Bebas Fallback", "Arial Narrow", sans-serif;
	--body: "Montserrat", "Montserrat Fallback", Arial, sans-serif;
	--wrap: 1280px;
	--gutter: clamp(20px, 5.5vw, 80px);
	--header-h: 83px;
	--ease-out: cubic-bezier(.16, 1, .3, 1);
	--ease-io: cubic-bezier(.65, 0, .35, 1);
	--radius: 24px;
	--shadow: 0 12px 24px rgba(0, 0, 0, .04);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); overflow-x: clip; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure, ul, address { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--yellow); color: var(--ink); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--green); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.section { padding-block: clamp(56px, 6vw, 72px); }
.icon { display: inline-flex; width: 14px; height: 14px; flex: none; }
.icon svg { width: 100%; height: 100%; }
.u-accent { font-style: normal; color: var(--accent-t, var(--green)); }
.rholab-pic { display: contents; }

/* Display type (Figma: Bebas Neue 80/88, tracking -1.3px) */
.display, .jsplit__title, .jsvc__title, .jev__title, .jcontact__title, .section-title {
	font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: -.016em; line-height: 1.1;
	font-size: clamp(48px, 6.2vw, 80px);
}
.line { display: block; overflow: hidden; padding-top: .04em; margin-top: -.04em; }
.line > span { display: inline-block; }

/* ---------- Buttons (pill, 46px; red with yellow edge / yellow with green edge) ---------- */
.btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 46px; padding: 0 30px; border-radius: 100px; border: 1px solid transparent;
	font: 600 14px/1 var(--body); text-transform: capitalize; white-space: nowrap; cursor: pointer; overflow: hidden; isolation: isolate;
	transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .3s, color .3s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateX(-101%); transition: transform .5s var(--ease-out); }
.btn:hover::before { transform: none; }
.btn .icon { transition: transform .35s var(--ease-out); }
.btn:hover .icon { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--red { background: var(--red); color: #fff; border-color: var(--yellow); }
.btn--red::before { background: #b5001f; }
.btn--yellow { background: var(--yellow); color: var(--green); border-color: var(--green); }
.btn--yellow::before { background: #fff1a8; }
.btn--block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 90; background: #fff; transition: box-shadow .3s, transform .45s var(--ease-out); }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(51, 51, 51, .08); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); padding-top: 7px; padding-bottom: 10px; }
.brand { flex: none; }
.brand__link, .brand .custom-logo-link { display: block; }
.brand__img, .brand .custom-logo { width: 107px; height: auto; max-height: 66px; object-fit: contain; }
.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: 24px; }
.nav__list > li { position: relative; }
.nav__list a { display: inline-flex; align-items: center; gap: 4px; padding: 13px 0; font-size: 16px; font-weight: 500; color: var(--ink); transition: color .2s; }
.nav__list > li > a { position: relative; }
.nav__list > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out); }
.nav__list > li > a:hover::after, .nav__list > .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }
.nav__list a:hover, .nav__list .current-menu-item > a, .nav__list .current-menu-ancestor > a { color: var(--red); }
.nav__list .menu-item-has-children > a::after { display: none; }
.nav__list .menu-item-has-children > a .icon, .sub-toggle .icon { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: -2px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink); vertical-align: middle; }
.nav__list .sub-menu { position: absolute; left: -16px; top: 100%; min-width: 220px; padding: 10px; background: #fff; border-radius: 16px; box-shadow: 0 18px 40px rgba(51, 51, 51, .14); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .35s var(--ease-out), visibility 0s .35s; }
.nav__list .sub-menu a { display: block; padding: 10px 12px; border-radius: 10px; font-size: 15px; }
.nav__list .sub-menu a:hover { background: var(--cream); }
.nav__list li:hover > .sub-menu, .nav__list li:focus-within > .sub-menu, .nav__list li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .35s var(--ease-out); }
.nav__list li:hover > .sub-toggle .icon, .nav__list li.is-open > .sub-toggle .icon { transform: rotate(180deg); }
.nav__cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; color: var(--ink); }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: inline-flex; }
.hide-sm { display: none; }

@media (max-width: 999.98px) {
	.nav { position: absolute; left: 0; right: 0; top: 100%; display: block; padding: 8px var(--gutter) 24px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 18px 30px rgba(0, 0, 0, .08); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .5s var(--ease-io), visibility 0s .5s; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
	.nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .5s var(--ease-io); }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__list > li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
	.nav__list > li > a { flex: 1; padding: 16px 0; font-size: 18px; }
	.nav__list > li > a::after { display: none; }
	.sub-toggle { width: 44px; height: 44px; }
	.nav__list .sub-menu { position: static; flex-basis: 100%; min-width: 0; padding: 0 0 10px 12px; box-shadow: none; border-radius: 0; opacity: 1; visibility: visible; transform: none; display: none; }
	.nav__list li.is-open > .sub-menu { display: block; }
	.nav__list li:hover > .sub-toggle .icon { transform: none; }
	.nav__list li.is-open > .sub-toggle .icon { transform: rotate(180deg); }
	.nav__cta { display: block; margin-top: 20px; }
	.nav__cta .btn { width: 100%; }
}
@media (min-width: 1000px) {
	.nav { display: block; flex: 1; display: flex; justify-content: center; }
	.nav-toggle { display: none; }
	.hide-sm { display: inline-flex; }
}

/* ---------- Footer (green, doodle pattern) ---------- */
.site-footer { position: relative; overflow: hidden; color: #fff; background-color: var(--green); background-image: var(--pat-1x); background-size: 1440px auto; background-position: center top; }
@media (min-width: 761px) { .site-footer { background-image: var(--pat-2x); } }
.footer__grid { display: grid; gap: 40px; padding-top: 44px; padding-bottom: 36px; }
.footer__logo .brand__img { width: 233px; max-width: 100%; height: auto; max-height: none; }
.footer__heading { margin: 0 0 14px; font: 400 clamp(28px, 2.6vw, 32px)/1.1 var(--display); text-transform: uppercase; }
.socials { display: flex; gap: 26px; }
.socials a { display: inline-flex; color: #fff; transition: transform .3s var(--ease-out), color .2s; }
.socials a:hover { color: var(--yellow); transform: translateY(-3px); }
.socials .icon { width: 18px; height: 18px; }
.footer__brand { display: flex; flex-direction: column; gap: 36px; justify-content: space-between; }
.footer__links { display: flex; flex-direction: column; gap: 4px; }
.footer__links a { display: inline-block; font: 400 32px/1.45 var(--display); text-transform: uppercase; color: #fff; transition: color .2s, transform .35s var(--ease-out); }
.footer__links a:hover { color: var(--yellow); transform: translateX(6px); }
.footer__links .current-menu-item > a { color: var(--yellow); }
.footer__contact { display: flex; flex-direction: column; gap: 14px; font-size: 18px; line-height: 1.3; }
.footer__company { font-size: 20px; font-weight: 700; margin-bottom: 18px; }
.footer__contact a:hover { color: var(--yellow); }
.footer__bar { border-top: 1px solid rgba(255, 255, 255, .45); }
.footer__bar p { padding-top: 22px; padding-bottom: 22px; text-align: center; font-size: 13px; }
.footer__bar a { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) {
	.footer__grid { grid-template-columns: 1fr auto minmax(320px, 393px); gap: 60px; align-items: start; padding-top: 44px; }
	.footer__nav { padding-left: 0; margin-right: 50px; }
	.footer__contact { text-align: right; align-items: flex-end; }
	.footer__brand { min-height: 312px; }
}

/* ---------- Blog / page templates ---------- */
.page-wrap { padding-block: clamp(48px, 7vw, 96px); }
.page-head { margin-bottom: 32px; }
.section-title { color: var(--green); }
.section-sub { font-size: 18px; color: var(--ink-2); margin-bottom: 24px; }
.container--narrow { max-width: 860px; }
.entry { font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.entry > * + * { margin-top: 1.1em; }
.entry h2, .entry h3 { font-family: var(--display); font-weight: 400; color: var(--green); line-height: 1.1; }
.entry h2 { font-size: 44px; } .entry h3 { font-size: 32px; }
.entry a { color: var(--red); text-decoration: underline; }
.entry img { border-radius: 16px; }
.entry ul { list-style: disc; padding-left: 1.2em; }
.entry-hero img { width: 100%; border-radius: 16px; margin-bottom: 32px; }
.post-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.post-card { background: var(--green); color: #fff; border-radius: 26px; padding: 10px 10px 22px; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(74, 127, 40, .25); }
.post-card__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.post-card__cat { margin: 14px 6px 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--yellow); }
.post-card__title { margin: 0 6px; font: 400 30px/1.1 var(--display); text-transform: uppercase; }
.post-card__date { margin: 6px 6px 0; font-size: 13px; color: rgba(255, 255, 255, .72); }
.post-card__excerpt { margin: 10px 6px 0; font-size: 15px; line-height: 1.4; }
.nav-links { display: flex; gap: 10px; margin-top: 40px; }
.page-numbers { padding: 8px 14px; border-radius: 99px; background: #fff; }
.page-numbers.current { background: var(--green); color: #fff; }

/* ---------- Motion start states (only when .rholab-motion is set in <head>) ----------
   A CSS fallback reveals everything after 2.4 s if the scripts never run. */
.rholab-motion [data-fx="intro"] .line > span,
.rholab-motion [data-fx="lines"] .line > span { transform: translateY(108%); animation: rholab-show .01s 2.4s forwards; }
.rholab-motion [data-fx="rise"], .rholab-motion [data-fx="panel"] { opacity: 0; animation: rholab-fade .01s 2.4s forwards; }
.motion-off [data-fx] .line > span, .motion-off [data-fx="rise"], .motion-off [data-fx="panel"] { transform: none !important; opacity: 1 !important; animation: none !important; }
@keyframes rholab-show { to { transform: none; } }
@keyframes rholab-fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.rholab-motion [data-fx] .line > span { transform: none; }
	.rholab-motion [data-fx="rise"], .rholab-motion [data-fx="panel"] { opacity: 1; }
}
