/* Young American Food Brands — one-page site.
   Layers on top of colors_and_type.css (design tokens). */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: var(--display-tracking);
  text-transform: uppercase;
  margin: 0;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--eyebrow-tracking);
  text-transform: uppercase;
  color: var(--yafb-red);
  margin: 0;
}
.eyebrow.on-dark { color: #fff; opacity: .8; }

/* ---- Buttons ---- */
.btn {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 600;
  letter-spacing: .06em; font-size: 14px; padding: 14px 26px; border-radius: var(--radius);
  border: 2px solid transparent; transition: all .15s var(--ease); display: inline-flex;
  align-items: center; gap: 9px; line-height: 1; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--yafb-red); color: #fff; }
.btn-primary:hover { background: var(--yafb-red-ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); }
.btn-on-dark.btn-outline { color: #fff; border-color: rgba(255,255,255,.55); }
.btn-on-dark.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 108px; }
.brandmark { height: 72px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 600;
  letter-spacing: .08em; font-size: 13.5px; color: var(--ink-2); transition: color .15s var(--ease);
  white-space: nowrap;
}
.nav a:hover { color: var(--yafb-red); }
.nav .btn { padding: 11px 20px; }
.nav .btn-primary { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 6px; color: var(--ink); }

/* ---- Hero (split — text left, photo right) ---- */
.hero {
  position: relative; overflow: hidden; background: var(--paper);
  display: grid; grid-template-columns: 2fr 3fr;
  height: 82vh; min-height: 560px; max-height: 820px;
}
.hero-text {
  display: flex; align-items: center; padding: 64px 0;
  background: url('assets/photos/burnt-wood.jpeg') center / cover no-repeat;
  position: relative;
}
.hero-text::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,.55); pointer-events: none;
}
.hero-text-inner {
  position: relative; z-index: 1;
  width: min(560px, 100%);
  margin-left: max(32px, calc((100vw - var(--container)) / 2 + 32px));
  padding-right: 56px;
}
.hero-logo { display: block; }
.hero-logo img { height: 96px; width: auto; }
.hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display); text-transform: uppercase; font-weight: 600;
  letter-spacing: .16em; font-size: 13px; color: var(--yafb-red); margin: 0 0 14px;
}
.hero-eyebrow .rule { display: inline-block; width: 40px; height: 2px; background: var(--yafb-red); flex: 0 0 auto; }
.hero-title {
  font-family: var(--font-display); text-transform: uppercase; color: #fff;
  font-size: clamp(34px, 4.4vw, 60px); font-weight: 600; line-height: .98; letter-spacing: .02em;
  margin: 0;
}
.hero-body {
  color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.68;
  max-width: 44ch; margin: 20px 0 0; text-wrap: pretty;
}
.hero-blurb {
  color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.6;
  max-width: 38ch; margin: 20px 0 0; text-wrap: pretty;
}
.hero-btn { padding: 14px 28px; font-size: 14px; margin-top: 30px; }
.hero-media { position: relative; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }

/* ---- Section scaffolding ---- */
.section { padding: 96px 0; }
.section.alt { background: var(--paper-2); }
.section.dark { background: var(--yafb-black); color: #fff; }
.section.red { background: var(--yafb-red); color: #fff; }
.section-head { max-width: 64ch; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(34px, 5vw, 52px); margin: 10px 0 0; }
.section-head p { color: var(--ink-3); font-size: 18px; margin: 16px 0 0; max-width: 60ch; }
.dark .section-head p { color: rgba(255,255,255,.72); }

/* ---- Story / About ---- */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.story-photo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.story-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.story-photo .tag {
  position: absolute; left: 0; bottom: 28px;
  background: var(--yafb-red); color: #fff;
  font-family: var(--font-display); text-transform: uppercase; font-weight: 600;
  letter-spacing: .12em; font-size: 13px; padding: 11px 22px;
}
.story-copy h2 { font-size: clamp(32px, 4.5vw, 48px); margin: 10px 0 0; }
.story-copy p { color: var(--ink-2); font-size: 17px; line-height: 1.7; margin: 20px 0 0; max-width: 56ch; }
.story-copy p strong { color: var(--ink); }

/* timeline */
.timeline {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: 40px; border-top: 2px solid var(--line);
}
.timeline .node { padding: 22px 26px 0; border-right: 1px solid var(--line); }
.timeline .node:last-child { border-right: 0; padding-right: 0; }
.timeline .yr { font-family: var(--font-logo); font-size: 34px; color: var(--yafb-red); line-height: 1; }
.timeline .lbl { font-size: 14px; color: var(--ink-3); margin-top: 8px; line-height: 1.45; }

/* ---- Values ---- */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; margin-top: 8px; }
.value {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--yafb-red);
  padding: 34px 32px 38px;
}
.value .num { font-family: var(--font-logo); font-size: 30px; color: var(--yafb-red); line-height: 1; }
.value h3 { font-size: 25px; margin: 14px 0 0; }
.value p { font-size: 15.5px; color: var(--ink-2); margin: 12px 0 0; line-height: 1.6; }

/* ---- Brand grid ---- */
.brand-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  border: 1px solid var(--line); background: var(--line);
}
.brand-tile {
  background: #fff; padding: 30px 24px 26px; min-height: 200px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.brand-tile:hover { background: var(--paper-2); }
.brand-tile .well {
  flex: 1; display: flex; align-items: center; justify-content: center; width: 100%;
  min-height: 96px;
}
.brand-tile .well img { max-height: 84px; max-width: 86%; object-fit: contain; }
.brand-tile .name {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 600;
  letter-spacing: .04em; font-size: 14px; color: var(--ink); margin-top: 16px;
}
.brand-tile .cat {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 500;
  letter-spacing: .1em; font-size: 10.5px; color: var(--ink-3); margin-top: 6px;
}

/* ---- Contact ---- */
.contact { text-align: center; }
.contact h2 { font-size: clamp(36px, 5.5vw, 60px); color: #fff; }
.contact p { color: rgba(255,255,255,.82); font-size: 18px; margin: 18px auto 0; max-width: 52ch; }
.contact .email {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  letter-spacing: .03em; text-transform: uppercase;
  color: #fff; transition: color .15s var(--ease);
}
.contact .email:hover { color: rgba(255,255,255,.78); }
.contact .email .ico { width: 20px; height: 20px; flex: 0 0 auto; opacity: .9; }
.contact .divider { width: 56px; height: 3px; background: var(--yafb-red); margin: 0 auto 30px; }

/* ---- Footer ---- */
.site-footer { background: var(--yafb-true-black); color: rgba(255,255,255,.7); padding: 64px 0 40px; }
.footer-top {
  display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,.14); padding-bottom: 40px;
}
.site-footer .fmark { height: 80px; }
.site-footer .fmark-mobile { display: none; }
.footer-brand { max-width: 320px; }
.footer-brand p { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.6); margin: 20px 0 0; }
.footer-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-col h5 {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em;
  font-size: 12px; color: #fff; margin: 0 0 16px; font-weight: 600;
}
.footer-col a { display: block; color: rgba(255,255,255,.62); font-size: 14px; margin-bottom: 11px; transition: color .15s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 28px; font-size: 12.5px; color: rgba(255,255,255,.5);
}
.footer-bottom .tagline { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .16em; color: rgba(255,255,255,.66); }

/* ---- Legal pages ---- */
.legal-page { background: var(--yafb-black); padding: 80px 0 100px; color: #fff; }
.legal-page .container { max-width: 860px; }
.legal-title { color: var(--yafb-red); font-size: clamp(36px, 5vw, 60px); margin: 0 0 10px; }
.legal-date { font-size: 14px; color: rgba(255,255,255,.5); margin: 0 0 48px; }
.legal-body { font-size: 16px; line-height: 1.75; color: rgba(255,255,255,.82); }
.legal-body h2 { color: #fff; font-size: 17px; margin: 44px 0 0; letter-spacing: .04em; }
.legal-body h3 { color: rgba(255,255,255,.9); font-size: 15px; margin: 28px 0 0; letter-spacing: .03em; font-weight: 600; }
.legal-body p { margin: 14px 0 0; }
.legal-body ul { padding-left: 24px; margin: 14px 0 0; }
.legal-body li { margin-bottom: 10px; }
.legal-body a { color: rgba(255,255,255,.75); text-decoration: underline; }
.legal-body a:hover { color: #fff; }
.legal-body strong { color: #fff; }

.footer-legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal-links a { color: rgba(255,255,255,.5); font-size: 12.5px; transition: color .15s var(--ease); }
.footer-legal-links a:hover { color: #fff; }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .story-grid { grid-template-columns: 1fr; gap: 36px; }
  .values { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; height: auto; max-height: none; }
  .hero-media { order: -1; min-height: 300px; max-height: 46vh; }
  .hero-text { padding: 48px 0 56px; }
  .hero-text-inner { margin: 0 auto; width: 100%; max-width: 600px; padding: 0 24px; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .container { padding: 0 22px; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; }
  .timeline .node { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 0; }
  .site-footer .fmark-desktop { display: none; }
  .site-footer .fmark-mobile { display: block; height: auto; width: 184px; max-width: 60%; }
}
