/* FoodTechGuru free calculators: shared skin for /calculators/ and every calculator page.
   Tokens match the business plan generator page (orange/navy/green/yellow, Oswald + Montserrat,
   hard black offsets). */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --orange: #ff672f;
  --navy: #01034f;
  --green: #00d865;
  --yellow: #f5f255;
  --paper: #fbf8f2;
  --card: #ffffff;
  --ink: #12122a;
  --muted: #55556e;
  --line: #e4dfd4;
  --error: #c62828;
  --shadow: 6px 6px 0 #000;
  --radius: 18px;
  --font-main: 'Montserrat', system-ui, sans-serif;
  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --gutter: max(16px, 4vw);
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--font-main); background: var(--paper); color: var(--ink); line-height: 1.6; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.05; letter-spacing: -0.01em; color: var(--navy); }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--yellow); color: #000; padding: 10px 16px; border-radius: 8px; font-weight: 800; }
.skip:focus { left: 12px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; height: 64px; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; background: rgba(1, 3, 79, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 24px; list-style: none; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.88rem; font-weight: 600; }
.nav-links a:hover { color: #fff; }
.nav-cta { background: var(--orange); color: #fff !important; padding: 8px 18px; border-radius: 50px; font-weight: 800 !important; box-shadow: 3px 3px 0 #000; }
@media (max-width: 760px) { .nav-links li:not(:last-child) { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 60px; font-weight: 800; font-size: 0.95rem; text-decoration: none; text-align: center; transition: transform .18s, box-shadow .18s, background .2s; }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 5px 5px 0 #000; border: 2px solid #000; }
.btn-orange:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 #000; }
.btn-line { color: var(--navy); border: 2px solid var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-small { padding: 8px 14px; border-radius: 40px; font-size: 0.85rem; font-weight: 700; background: var(--navy); color: #fff; border: 2px solid var(--navy); }
.btn-small.ghost { background: transparent; color: var(--navy); }
.btn-small:hover { filter: brightness(1.15); }

.eyebrow { display: inline-block; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.crumbs { font-size: 0.8rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

/* prose sections */
.prose { padding-top: 56px; padding-bottom: 8px; max-width: 820px; }
.prose h2 { margin: 0 0 16px; }
.prose h2:not(:first-child) { margin-top: 40px; }
.prose p, .prose li { color: #2c2c45; font-size: 1.02rem; }
.prose p + p { margin-top: 12px; }
.prose ol, .prose ul { padding-left: 1.3em; margin: 8px 0 16px; }
.prose li { margin: 6px 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; color: var(--navy); list-style-position: outside; }
.faq details p { margin-top: 8px; }

.final { text-align: center; padding-top: 64px; padding-bottom: 72px; }
.final p { color: var(--muted); margin: 10px 0 22px; }

/* footer + Bizarred credit */
.foot { background: var(--navy); color: rgba(255,255,255,0.7); padding: 22px var(--gutter); font-size: 0.85rem; }
.foot-row { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: rgba(255,255,255,0.85); }
.bz-credit { --credit-fg: #a9a9c9; --credit-fg-hover: #ffffff; display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; line-height: 1.3; color: var(--credit-fg); text-decoration: none; margin-left: auto; }
.bz-credit img { display: block; width: 84px; height: auto; transition: transform .4s cubic-bezier(0.22, 1, 0.36, 1); }
.bz-credit:hover { color: var(--credit-fg-hover); }
.bz-credit:hover img { transform: rotate(-4deg) scale(1.06); }
@media (prefers-reduced-motion: reduce) { .bz-credit img, .btn { transition: none; } html { scroll-behavior: auto; } }

/* hub */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 28px 0 12px; }
.hub-card { display: block; background: var(--card); border: 2px solid #000; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; text-decoration: none; transition: transform .18s; }
.hub-card:hover { transform: translate(-2px,-2px); }
.hub-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.hub-card p { color: var(--muted); font-size: 0.95rem; }
