/* ============================================
   JALA FOODS — shared stylesheet
   Palette:  ink #141210 | cream #F3EEE3 | white #FFFFFF
             gold #C17F3D | gold-light #E0AD73 | muted #75695C
   Type:     "Playfair Display" (display/serif) + "Work Sans" (body)
   ============================================ */

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

:root {
  --ink: #141210;
  --ink-soft: #201c18;
  --cream: #F3EEE3;
  --cream-deep: #EAE3D3;
  --white: #FFFFFF;
  --gold: #C17F3D;
  --gold-light: #E0AD73;
  --text: #201c18;
  --muted: #75695C;
  --line: #DDD5C4;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.15; }
p { margin: 0; line-height: 1.65; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.eyebrow {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.rule {
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin: 18px 0 22px;
  border: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 3px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #A8692E; transform: translateY(-1px); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.65); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #000; transform: translateY(-1px); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo .mark {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink);
}
.logo .sub {
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 0.13em;
  color: var(--muted);
  text-transform: uppercase;
}
nav.primary-nav { display: flex; align-items: center; gap: 40px; }
nav.primary-nav a {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
nav.primary-nav a:hover,
nav.primary-nav a.active { color: var(--gold); border-color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 28px; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* ---------- hero ---------- */
.hero {
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  padding: 0;
  max-width: 100%;
}
.hero-copy { padding: 90px 64px 90px min(64px, 6vw); max-width: 560px; }
.hero-copy h1 { font-size: 52px; color: var(--white); }
.hero-copy p.lead { margin-top: 22px; color: rgba(255,255,255,0.78); font-size: 16.5px; max-width: 460px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-media { position: relative; min-height: 460px; }
.photo-placeholder {
  width: 100%; height: 100%; min-height: 460px;
  background: linear-gradient(135deg, #2b2620 0%, #1a1712 60%, #0f0d0a 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.photo-placeholder svg { width: 30%; height: 30%; opacity: 0.5; }
.photo-placeholder .ph-label {
  position: absolute; bottom: 18px; left: 18px; right: 18px;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); font-weight: 600;
}

/* ---------- feature strip ---------- */
.feature-strip { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.feature-grid .feature {
  padding: 48px 34px;
  border-left: 1px solid var(--line);
}
.feature-grid .feature:first-child { border-left: none; }
.feature h4 {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.feature p { color: var(--muted); font-size: 14.5px; }

/* ---------- generic section ---------- */
section.section { padding: 96px 0; }
.section.on-cream { background: var(--cream); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: 38px; }
.section-head p.lede { margin-top: 18px; color: var(--muted); font-size: 16px; }
.section-head.left { text-align: left; margin: 0 0 20px; }

/* ---------- about split ---------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-split h2 { font-size: 36px; }
.about-split p { color: var(--muted); margin-top: 16px; font-size: 15.5px; }
.about-media { position: relative; }
.about-media .photo-placeholder { min-height: 420px; border-radius: 4px; overflow: hidden; }
.about-callout {
  position: absolute; left: 24px; right: 24px; bottom: 24px;
  background: rgba(20,18,16,0.88);
  color: var(--white);
  padding: 20px 24px;
  border-radius: 3px;
}
.about-callout h4 { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.about-callout p { color: rgba(255,255,255,0.75); font-size: 13.5px; margin-top: 4px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--ink);
  color: var(--white);
  padding: 56px 0;
}
.cta-banner .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-banner h3 { font-size: 27px; color: var(--white); max-width: 620px; }
.cta-banner p { color: rgba(255,255,255,0.65); margin-top: 8px; font-size: 14.5px; }

/* ---------- category grid (Our Supply) ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.category-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.category-card .photo-placeholder { min-height: 190px; position: relative; }
.category-icon {
  position: absolute; bottom: -22px; left: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--white);
  display: flex; align-items: center; justify-content: center;
}
.category-icon svg { width: 20px; height: 20px; stroke: var(--gold-light); }
.category-body { padding: 40px 24px 26px; }
.category-body h4 { font-size: 17px; letter-spacing: 0.02em; text-transform: uppercase; }
.category-body p { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* ---------- contact strip ---------- */
.contact-strip {
  background: var(--cream);
  border-top: 1px solid var(--line);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 28px;
}
.contact-card .eyebrow { margin-bottom: 10px; }
.contact-card .value { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.contact-card .value a:hover { color: var(--gold); }

/* ---------- footer ---------- */
footer.site-footer { background: var(--ink); color: rgba(255,255,255,0.72); padding: 72px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .mark { color: var(--white); font-family: var(--serif); font-size: 21px; letter-spacing: 0.14em; }
.footer-brand p { margin-top: 14px; font-size: 13.5px; color: rgba(255,255,255,0.55); max-width: 260px; }
.footer-col h5 {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 16px; font-weight: 700;
}
.footer-col a, .footer-col span { display: block; font-size: 14px; margin-bottom: 10px; color: rgba(255,255,255,0.72); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: rgba(255,255,255,0.45);
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  nav.primary-nav { display: none; }
  .menu-toggle { display: block; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { min-height: 320px; }
  .hero-copy { padding: 56px 28px; }
  .hero-copy h1 { font-size: 38px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid .feature:nth-child(3) { border-left: none; }
  .about-split { grid-template-columns: 1fr; gap: 40px; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .wrap { padding: 0 22px; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid .feature { border-left: none; border-top: 1px solid var(--line); }
  .feature-grid .feature:first-child { border-top: none; }
  .category-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner .wrap { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* ============================================
   Built-in page editor (edit text, images, links)
   ============================================ */
.jala-edit-bar {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 999;
  display: flex;
  gap: 10px;
}
.jala-edit-bar button {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  padding: 13px 22px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,0.28);
}
#jala-edit-toggle { background: var(--ink); color: #fff; }
#jala-edit-toggle.is-on { background: #6B1F1F; }
#jala-edit-download { background: var(--gold); color: #fff; display: none; }
#jala-edit-hint {
  position: fixed;
  bottom: 78px;
  right: 22px;
  z-index: 999;
  max-width: 240px;
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  font-size: 12.5px;
  line-height: 1.5;
  padding: 12px 16px;
  border-radius: 8px;
  display: none;
}
body.jala-editing #jala-edit-hint { display: block; }
body.jala-editing .edit-text {
  outline: 1.5px dashed var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
  cursor: text;
}
body.jala-editing .edit-text:focus { outline-style: solid; }
body.jala-editing a { outline: 1.5px dashed var(--gold-light); outline-offset: 3px; cursor: pointer; border-radius: 2px; }
.jala-img-edit {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(20,18,16,0.85);
  color: #fff;
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 20px;
  cursor: pointer;
  z-index: 5;
}
body.jala-editing .jala-img-edit { display: inline-flex; }
