/* Jamaica Mountain Peak — static site, Dec 2026
   Colours from the mountain-peak logo (Wayback 2021) and the JMP range on saladafoodsja.com */
:root {
  --red: #9e161d;
  --red-d: #7a1016;
  --gold: #ffcc5a;
  --gold-d: #e0b24a;
  --blue: #003378;
  --blue-m: #0064bf;
  --blue-h: #044293;
  --sky: #009fce;
  --ink: #1a1818;
  --mut: #5c564e;
  --line: #e8e0d4;
  --cream: #fff8e8;
  --paper: #fffdf8;
  --white: #ffffff;
  --max: 1120px;
  --sans: "DM Sans", system-ui, sans-serif;
  --serif: "DM Serif Display", "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-h); }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; color: var(--blue); margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--blue); color: #fff; padding: 0.5rem 1rem; z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.site-header {
  background: var(--blue);
  color: #fff;
  position: sticky; top: 0; z-index: 40;
  box-shadow: 0 2px 12px rgba(0, 20, 50, 0.18);
}
.site-header a { color: #fff; text-decoration: none; }
.site-header a:hover { color: var(--gold); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.7rem 0;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  flex: 0 0 auto;
}
.brand img { width: 52px; height: 52px; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #fff;
}
.brand-name span { display: block; font-size: 0.72rem; font-family: var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
nav .nav-toggle { display: none; }
.nav {
  display: flex; align-items: center; gap: 0.2rem 1.15rem;
  flex-wrap: wrap; justify-content: flex-end;
  font-size: 0.95rem; font-weight: 600;
}
.nav a { padding: 0.35rem 0; }
.nav details { position: relative; }
.nav summary {
  list-style: none; cursor: pointer; padding: 0.35rem 0;
}
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: " ▾"; font-size: 0.7em; color: var(--gold); }
.nav details[open] summary { color: var(--gold); }
.menu {
  position: absolute; right: 0; top: calc(100% + 0.4rem);
  background: var(--white); color: var(--ink);
  min-width: 220px; padding: 0.5rem 0;
  border-radius: 8px; box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}
.menu a { display: block; color: var(--blue); padding: 0.45rem 1rem; font-weight: 600; }
.menu a:hover { background: var(--cream); color: var(--red); }

@media (max-width: 820px) {
  .brand img { width: 42px; height: 42px; }
  .nav-toggle {
    display: block; background: none; border: 1px solid rgba(255,255,255,0.35);
    color: #fff; border-radius: 6px; padding: 0.4rem 0.7rem; font: inherit; font-weight: 600;
  }
  .nav { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--blue-h); padding: 0.8rem 1rem 1.2rem;
    gap: 0;
  }
  .nav.is-open a, .nav.is-open summary { padding: 0.65rem 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .nav details .menu {
    position: static; box-shadow: none; background: transparent; padding: 0 0 0.4rem 0.8rem;
  }
  .nav details .menu a { color: #fff; border: 0; padding: 0.4rem 0; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  font-family: var(--sans); font-weight: 700; font-size: 0.95rem;
  text-decoration: none; border-radius: 999px;
  padding: 0.7rem 1.25rem; line-height: 1;
  border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-d); color: #fff; }
.btn-gold { background: var(--gold); color: var(--blue); }
.btn-gold:hover { background: var(--gold-d); color: var(--blue); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-ghost:hover { background: #fff; color: var(--blue); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }

/* Hero */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(0,159,206,0.28), transparent 55%),
    linear-gradient(165deg, var(--blue) 0%, var(--blue-h) 52%, #001a40 100%);
  color: #fff;
  padding: 3.2rem 0 3.6rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 56px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath fill='%23fffdf8' d='M0 80h1200V30C980 70 780 0 600 20 380 45 180 0 0 35z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem; align-items: center;
}
.hero h1 { color: #fff; margin-bottom: 0.3em; }
.kicker {
  display: inline-block;
  color: var(--gold);
  letter-spacing: 0.16em; text-transform: uppercase;
  font-size: 0.78rem; font-weight: 700; margin-bottom: 0.7rem;
}
.hero p { color: rgba(255,255,255,0.9); font-size: 1.12rem; max-width: 38em; }
.hero-art { display: flex; justify-content: center; }
.hero-art img {
  width: min(280px, 70vw);
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.35));
}
@media (max-width: 720px) {
  .hero { padding: 2.2rem 0 3.2rem; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero .actions { justify-content: center; }
}

/* Sections */
.section { padding: 3.2rem 0; }
.section-tight { padding: 2.2rem 0 3rem; }
.section-cream { background: var(--cream); }
.section-blue { background: var(--blue); color: #fff; }
.section-blue h2, .section-blue h3 { color: #fff; }
.lede { font-size: 1.12rem; color: var(--mut); max-width: 42em; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

.line-photo {
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 30, 70, 0.12);
  margin: 1.5rem auto 0;
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  box-shadow: 0 6px 18px rgba(40, 20, 0, 0.05);
  transition: transform .15s, box-shadow .15s;
}
a.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(40, 20, 0, 0.1); color: inherit; }
.card-img {
  aspect-ratio: 1 / 1;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 0.8rem;
}
.card-img.cover { padding: 0; }
.card-img.cover img { width: 100%; height: 100%; object-fit: cover; }
.card-img img { max-height: 100%; width: auto; margin: auto; }
.card-body { padding: 0.9rem 1rem 1.15rem; }
.card-body h3 { margin: 0 0 0.35em; font-size: 1.12rem; }
.card-body p { margin: 0; color: var(--mut); font-size: 0.92rem; }
.card-link {
  display: inline-block; margin-top: 0.7rem;
  font-weight: 700; font-size: 0.88rem; color: var(--red);
  text-decoration: none;
}
a.card:hover .card-link { text-decoration: underline; }

.market-card { text-align: center; padding: 1.3rem 1rem; border-top: 4px solid var(--gold); }
.market-card h3 { margin-bottom: 0.2em; }
.market-card p { font-size: 0.9rem; }

/* Recipe pages */
.recipe-block + .recipe-block { margin-top: 2.5rem; }
.page-hero {
  background: linear-gradient(165deg, var(--blue) 0%, var(--blue-h) 100%);
  color: #fff; padding: 2.2rem 0 2.4rem;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,0.88); max-width: 40em; margin: 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.2rem 0 0; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.7rem 0.9rem; vertical-align: top; }
th { background: var(--gold); color: var(--blue); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
tr + tr td { border-top: 1px solid var(--line); }
tr:nth-child(even) td { background: rgba(255, 248, 232, 0.6); }
.note { font-size: 0.92rem; color: var(--mut); margin-top: 0.8rem; }

.promo {
  display: grid; grid-template-columns: 160px 1fr; gap: 1.2rem;
  align-items: center;
  background: var(--white); border-radius: 14px; padding: 1.2rem;
  border: 1px solid var(--line);
  margin: 1.5rem 0;
}
.promo img { margin: auto; }
@media (max-width: 560px) {
  .promo { grid-template-columns: 1fr; text-align: center; }
  .promo .actions { justify-content: center; }
}

.shots { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1rem 0 0; }
.shots a { flex: 1 1 160px; max-width: 240px; }
.shots img { border-radius: 12px; border: 1px solid var(--line); }

/* 404 */
.err {
  min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 3rem 1rem;
}
.err .code { font-family: var(--serif); font-size: 5rem; color: var(--gold); line-height: 1; margin: 0; }

/* Footer */
.site-footer {
  background: #00142e; color: rgba(255,255,255,0.82);
  padding: 2.4rem 0 1.6rem; font-size: 0.95rem;
}
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.6rem;
  margin-bottom: 1.8rem;
}
.site-footer h2 { color: #fff; font-size: 1.2rem; margin-bottom: 0.4em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.3rem 0; }
.legal { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1rem; font-size: 0.85rem; color: rgba(255,255,255,0.6); }
@media (max-width: 720px) {
  .foot-grid { grid-template-columns: 1fr; }
}
