/* ============================================================
   GRAM (B) FOODS — Editorial Food Journal
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,500&display=swap');

:root {
  --olive: #5c6b3c;
  --olive-deep: #424d2a;
  --terracotta: #bd5a34;
  --terracotta-soft: #d98c69;
  --cream: #f6f0e2;
  --cream-deep: #efe6d2;
  --charcoal: #28241d;
  --charcoal-soft: #4a443a;
  --mustard: #c9a227;
  --mustard-soft: #e0c97a;
  --line: rgba(40, 36, 29, 0.14);
  --shadow: 0 24px 60px -28px rgba(40, 36, 29, 0.45);
  --shadow-sm: 0 12px 30px -18px rgba(40, 36, 29, 0.4);
  --maxw: 1280px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--charcoal);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1.5px;
  background: var(--terracotta);
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.06; letter-spacing: -0.02em; }

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin: 18px 0 0;
}
.section-title em { font-style: italic; font-weight: 500; color: var(--olive); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--charcoal-soft); max-width: 60ch; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
  cursor: pointer;
  border: none;
}
.btn-solid { background: var(--charcoal); color: var(--cream); }
.btn-solid:hover { background: var(--terracotta); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--charcoal); border: 1.5px solid var(--charcoal); }
.btn-ghost:hover { background: var(--charcoal); color: var(--cream); transform: translateY(-2px); }

section { padding: clamp(72px, 11vw, 140px) 0; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 240, 226, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand { display: flex; align-items: baseline; gap: 8px; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; }
.brand .b { color: var(--terracotta); }
.brand small { font-weight: 500; font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--charcoal-soft); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--charcoal-soft); transition: color 0.2s; }
.nav-links a:hover { color: var(--terracotta); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-privacy { font-size: 0.85rem; font-weight: 600; color: var(--olive); border-bottom: 1.5px solid transparent; transition: border 0.2s; }
.nav-privacy:hover { border-color: var(--olive); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.5rem; color: var(--charcoal); }

/* ============ HERO ============ */
.hero { padding-top: clamp(40px, 6vw, 70px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: end;
}
.hero-copy h1 {
  font-size: clamp(2.8rem, 7.5vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.hero-copy h1 em { font-style: italic; font-weight: 400; color: var(--terracotta); }
.hero-copy .lead { margin: 26px 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  gap: 40px;
  margin-top: 46px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-meta div strong { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; }
.hero-meta div span { font-size: 0.82rem; color: var(--charcoal-soft); }

.hero-visual { position: relative; }
.hero-visual .main-img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.hero-visual .float-img {
  position: absolute;
  bottom: -34px;
  left: -42px;
  width: 44%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  border: 6px solid var(--cream);
  box-shadow: var(--shadow-sm);
}
.hero-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  background: var(--mustard);
  color: var(--charcoal);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 100px;
}

/* marquee strip */
.strip {
  background: var(--olive);
  color: var(--cream);
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid var(--olive-deep);
  border-bottom: 1px solid var(--olive-deep);
}
.strip-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: scroll 32s linear infinite;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.strip-track span { display: inline-flex; align-items: center; gap: 56px; font-size: 1.05rem; }
.strip-track span::after { content: "✦"; color: var(--mustard-soft); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============ SECTION HEAD ============ */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 50px; }
.sec-head .lead { margin-top: 14px; }

/* ============ CATEGORIES MOSAIC ============ */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.cat {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(.2,.8,.2,1); }
.cat:hover img { transform: scale(1.07); }
.cat::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(40,36,29,0.78) 0%, rgba(40,36,29,0.05) 55%);
}
.cat-label {
  position: absolute; left: 22px; bottom: 20px; right: 22px; z-index: 2; color: var(--cream);
}
.cat-label h3 { font-size: 1.4rem; font-weight: 700; }
.cat-label span { font-size: 0.8rem; opacity: 0.85; }
.cat.tall { grid-row: span 2; }
.cat.wide { grid-column: span 2; }

/* ============ FEATURED / SHELF ============ */
.featured { background: var(--charcoal); color: var(--cream); }
.featured .eyebrow { color: var(--mustard-soft); }
.featured .eyebrow::before { background: var(--mustard-soft); }
.featured .section-title em { color: var(--mustard-soft); }
.featured .lead { color: rgba(246,240,226,0.7); }
.shelf {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product {
  background: var(--cream);
  color: var(--charcoal);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.product:hover { transform: translateY(-6px); }
.product .pic { aspect-ratio: 1 / 1; overflow: hidden; }
.product .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.product:hover .pic img { transform: scale(1.06); }
.product .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product .tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--terracotta); }
.product h3 { font-size: 1.18rem; font-weight: 700; }
.product p { font-size: 0.88rem; color: var(--charcoal-soft); flex: 1; }
.product .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.product .net { font-size: 0.78rem; color: var(--charcoal-soft); }
.product .pill { font-size: 0.72rem; font-weight: 700; color: var(--olive); }

/* ============ INGREDIENTS / SOURCING ============ */
.sourcing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.sourcing-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sourcing-imgs img { width: 100%; border-radius: 14px; object-fit: cover; box-shadow: var(--shadow-sm); }
.sourcing-imgs img:nth-child(1) { aspect-ratio: 3/4; }
.sourcing-imgs img:nth-child(2) { aspect-ratio: 3/4; margin-top: 36px; }
.source-list { margin-top: 30px; display: grid; gap: 4px; }
.source-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.source-row:last-child { border-bottom: 1px solid var(--line); }
.source-row .no { font-size: 0.8rem; font-weight: 700; color: var(--terracotta); padding-top: 4px; }
.source-row h4 { font-size: 1.12rem; margin-bottom: 4px; }
.source-row p { font-size: 0.9rem; color: var(--charcoal-soft); }

/* ============ RECIPES ============ */
.recipes { background: var(--cream-deep); }
.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.recipe {
  background: var(--cream);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.recipe .pic { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.recipe .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.recipe:hover .pic img { transform: scale(1.06); }
.recipe .chip {
  position: absolute; top: 16px; left: 16px;
  background: var(--cream); color: var(--charcoal);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 100px;
}
.recipe .body { padding: 24px 26px 28px; }
.recipe .meta { display: flex; gap: 18px; font-size: 0.78rem; color: var(--charcoal-soft); margin-bottom: 12px; }
.recipe .meta span { display: inline-flex; align-items: center; gap: 6px; }
.recipe h3 { font-size: 1.45rem; margin-bottom: 10px; }
.recipe p { font-size: 0.9rem; color: var(--charcoal-soft); }
.recipe .read { margin-top: 16px; font-weight: 600; font-size: 0.85rem; color: var(--terracotta); }

/* ============ QUALITY ============ */
.quality-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.quality-img { position: relative; }
.quality-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.quality-stamp {
  position: absolute; bottom: -28px; right: -22px;
  width: 130px; height: 130px; border-radius: 50%;
  background: var(--terracotta); color: var(--cream);
  display: grid; place-content: center; text-align: center;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; line-height: 1.4; text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.q-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
.q-card { padding: 26px 24px; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; }
.q-card .icn { font-size: 1.5rem; margin-bottom: 10px; }
.q-card h4 { font-size: 1.05rem; margin-bottom: 6px; }
.q-card p { font-size: 0.86rem; color: var(--charcoal-soft); }

/* ============ INNOVATION ============ */
.innovation { background: var(--olive); color: var(--cream); }
.innovation .eyebrow { color: var(--mustard-soft); }
.innovation .eyebrow::before { background: var(--mustard-soft); }
.innovation .section-title em { color: var(--mustard-soft); }
.innovation .lead { color: rgba(246,240,226,0.78); }
.innov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.innov-card {
  border: 1px solid rgba(246,240,226,0.22);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(246,240,226,0.05);
}
.innov-card .pic { aspect-ratio: 16/10; overflow: hidden; }
.innov-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.innov-card:hover .pic img { transform: scale(1.06); }
.innov-card .body { padding: 24px 24px 28px; }
.innov-card .no { font-size: 0.78rem; font-weight: 700; color: var(--mustard-soft); letter-spacing: 0.16em; }
.innov-card h3 { font-size: 1.3rem; margin: 8px 0 8px; }
.innov-card p { font-size: 0.88rem; color: rgba(246,240,226,0.72); }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); }
.contact-info .section-title { margin-bottom: 30px; }
.contact-block { padding: 24px 0; border-top: 1px solid var(--line); }
.contact-block:last-child { border-bottom: 1px solid var(--line); }
.contact-block span { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terracotta); }
.contact-block p { font-size: 1.25rem; font-weight: 600; margin-top: 8px; }
.contact-block a:hover { color: var(--terracotta); }
.contact-visual { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.contact-visual img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }

.form { margin-top: 32px; display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input, .form textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  color: var(--charcoal);
  width: 100%;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--olive); }
.form textarea { min-height: 120px; resize: vertical; }

/* ============ FOOTER ============ */
.site-footer { background: var(--charcoal); color: var(--cream); padding: 70px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(246,240,226,0.15); }
.footer-top .brand { color: var(--cream); margin-bottom: 16px; }
.footer-top p { font-size: 0.9rem; color: rgba(246,240,226,0.65); max-width: 38ch; }
.footer-col h5 { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mustard-soft); margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; font-size: 0.92rem; color: rgba(246,240,226,0.78); margin-bottom: 10px; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 26px; font-size: 0.84rem; color: rgba(246,240,226,0.6); }
.footer-bottom a { color: var(--mustard-soft); font-weight: 600; }
.footer-bottom a:hover { color: var(--cream); }

/* ============ PRIVACY PAGE ============ */
.legal { padding: clamp(60px, 8vw, 110px) 0; }
.legal-head { max-width: 720px; margin-bottom: 50px; }
.legal-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; margin: 16px 0; }
.legal-head .updated { font-size: 0.88rem; color: var(--charcoal-soft); }
.legal-body { max-width: 820px; }
.legal-body h2 { font-size: 1.5rem; margin: 44px 0 14px; }
.legal-body h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.legal-body p, .legal-body li { font-size: 0.98rem; color: var(--charcoal-soft); margin-bottom: 12px; }
.legal-body ul { padding-left: 22px; }
.legal-body a { color: var(--terracotta); font-weight: 600; text-decoration: underline; }
.legal-toc {
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 40px;
}
.legal-toc h4 { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 14px; }
.legal-toc ol { padding-left: 20px; columns: 2; gap: 30px; }
.legal-toc li { font-size: 0.92rem; margin-bottom: 8px; color: var(--charcoal-soft); }
.legal-toc a { color: var(--charcoal); text-decoration: none; }
.legal-toc a:hover { color: var(--terracotta); }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .shelf { grid-template-columns: repeat(2, 1fr); }
  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
  .innov-grid { grid-template-columns: 1fr; max-width: 480px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--cream); padding: 24px clamp(20px,5vw,56px); gap: 18px; border-bottom: 1px solid var(--line);
  }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 30px; max-width: 520px; }
  .hero-visual .float-img { left: auto; right: -10px; }
  .sourcing-grid, .quality-grid, .contact-grid, .footer-top { grid-template-columns: 1fr; }
  .footer-top { gap: 30px; }
  .quality-stamp { right: 10px; }
  .legal-toc ol { columns: 1; }
}
@media (max-width: 560px) {
  .mosaic { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .cat.wide { grid-column: span 1; }
  .shelf, .recipe-grid { grid-template-columns: 1fr; }
  .q-cards { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .hero-meta { gap: 24px; flex-wrap: wrap; }
  .nav-cta .btn { display: none; }
}
