/* ---------------------------------------------------------------------------
   ג'קפרוט בישראל — bengigi.com/jackfruit
   Hebrew RTL. Warm leaf-green + bulb-gold palette taken from the fruit itself.
   --------------------------------------------------------------------------- */

:root {
  --leaf-deep:  #14532d;
  --leaf:       #2f6b34;
  --leaf-soft:  #e7f0e2;
  --rind:       #a8bf3f;
  --gold:       #f5a524;
  --gold-deep:  #c2740a;
  --gold-soft:  #fdf1d8;
  --cream:      #fdfaf3;
  --paper:      #ffffff;
  --ink:        #22301f;
  --muted:      #5f6d58;
  --line:       #e3e0d4;

  --shadow-sm: 0 1px 2px rgba(34, 48, 31, .06), 0 2px 8px rgba(34, 48, 31, .05);
  --shadow-md: 0 4px 12px rgba(34, 48, 31, .08), 0 12px 32px rgba(34, 48, 31, .07);
  --shadow-lg: 0 8px 24px rgba(34, 48, 31, .10), 0 24px 60px rgba(34, 48, 31, .10);

  --wrap: 1120px;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: 'Heebo', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Secular One', 'Heebo', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--leaf); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }

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

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 250, 243, .88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Secular One', sans-serif;
  font-size: 1.15rem;
  color: var(--leaf-deep);
  text-decoration: none;
  white-space: nowrap;
}
.brand img { width: 30px; height: 30px; }
.brand:hover { color: var(--leaf-deep); }

.nav {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }

.nav a {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--leaf-soft); color: var(--leaf-deep); }

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 15% 0%, #2c7a3f 0%, transparent 55%),
    linear-gradient(160deg, #1d6134 0%, #14532d 55%, #0f3d22 100%);
  color: #fff;
  padding: 68px 0 72px;
}

/* A faint rind texture: dots on the diagonal, like the spikes on the shell. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  color: #fff;
  margin-bottom: .35em;
}
.hero h1 .accent { color: var(--gold); }

.hero .lede {
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  line-height: 1.7;
  color: #dcecd9;
  max-width: 34em;
}

.hero-figure { position: relative; }
.hero-figure img {
  width: 100%;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45));
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.hero-stats span {
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: .93rem;
  font-weight: 500;
  color: #eaf5e7;
}

/* --- Sections ------------------------------------------------------------- */

section { padding: 76px 0; }
section.alt { background: var(--paper); border-block: 1px solid var(--line); }

.section-head { max-width: 60ch; margin-bottom: 40px; }

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .09em;
  color: var(--gold-deep);
  background: var(--gold-soft);
  border-radius: 999px;
  padding: 4px 13px;
  margin-bottom: 14px;
}

.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--leaf-deep); }
.section-head p  { font-size: 1.08rem; color: var(--muted); margin: 0; }

/* --- Intro: text beside the tree ------------------------------------------ */

.intro-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 52px;
  align-items: start;
}
.intro-grid figure { margin: 0; }
.intro-grid figure img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.intro-grid figcaption {
  font-size: .88rem;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}

/* --- Growing guide cards -------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

section.alt .card { background: var(--cream); }

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--leaf-soft);
  color: var(--leaf);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.card .icon svg { width: 22px; height: 22px; }

.card h3 { font-size: 1.2rem; color: var(--leaf-deep); margin-bottom: .35em; }
.card p  { font-size: .98rem; color: var(--muted); margin: 0; }

/* A card that carries the one warning worth colouring. */
.card.warn { background: var(--gold-soft); border-color: #f0dcae; }
.card.warn .icon { background: #fbe3b4; color: var(--gold-deep); }
.card.warn h3 { color: var(--gold-deep); }
.card.warn p  { color: #7a5410; }

/* --- Seedling vs graft ---------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.split > div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.split h3 {
  font-size: 1.25rem;
  color: var(--leaf-deep);
  display: flex;
  align-items: center;
  gap: 10px;
}
.split h3 .tag {
  font-family: 'Heebo', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 3px 10px;
  border-radius: 999px;
}
.tag.seed  { background: var(--leaf-soft); color: var(--leaf); }
.tag.graft { background: var(--gold-soft); color: var(--gold-deep); }
.split p { color: var(--muted); font-size: .99rem; }

.pull {
  margin-top: 26px;
  border-inline-start: 4px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  font-size: 1.06rem;
  color: #6b4a0d;
}
.pull strong { color: var(--gold-deep); }

/* --- Flowers: the male/female pairs, then the flower→fruit strip ---------- */

/* The male-beside-female shot leads the section, with the checklist alongside
   it — the photo is tall, and a three-line caption on its own left the card
   mostly empty. */
.compare-block {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 30px;
  align-items: start;
  background: var(--leaf-soft);
  border: 1px solid #cfe1c7;
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 26px;
}

.compare-block figure { margin: 0; }
.compare-block img {
  width: 100%;
  border-radius: 12px;
  background: #dce9d5;
}
.compare-block figcaption {
  margin-top: 12px;
  font-size: .95rem;
  line-height: 1.65;
  color: #4a5c44;
}
.compare-block figcaption strong { color: var(--leaf-deep); }

/* The three-signs checklist. */
.tell-apart h3 { font-size: 1.25rem; color: var(--leaf-deep); margin-bottom: .6em; }
.tell-apart ol {
  margin: 0;
  padding-inline-start: 22px;
  display: grid;
  gap: 10px;
}
.tell-apart li { color: #3d5238; font-size: .99rem; }
.tell-apart li::marker { color: var(--leaf); font-weight: 700; }
.tell-apart li strong { color: var(--leaf-deep); }
.tell-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid #cfe1c7;
  font-size: .95rem;
  color: #4a5c44;
}

/* Two per row, so each row pairs a male with a female — that contrast is the
   whole point of the section. */
.flowers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 22px;
}

.flowers-grid figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
section.alt .flowers-grid figure { background: var(--cream); }

.flowers-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  /* The flowers sit in the upper half of the portrait frames. */
  object-position: 50% 40%;
}

.flowers-grid figcaption {
  padding: 16px 20px 18px;
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.65;
}
.flowers-grid figcaption strong { color: var(--leaf-deep); }

.strip-title {
  font-size: 1.35rem;
  color: var(--leaf-deep);
  margin: 40px 0 18px;
}

.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.strip figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
section.alt .strip figure { background: var(--cream); }
.strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.strip figcaption { padding: 11px 15px; font-size: .89rem; color: var(--muted); }

/* --- Varieties ------------------------------------------------------------ */

.variety {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 34px;
}
.variety:last-child { margin-bottom: 0; }

.variety-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  padding: 24px 30px;
  background: linear-gradient(105deg, var(--leaf-deep), var(--leaf));
  color: #fff;
}
.variety-head h3 { font-size: 1.7rem; color: #fff; margin: 0; }
.variety-head .origin { font-size: .97rem; color: #cfe4cb; }

.variety-body {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 34px;
  padding: 30px;
  align-items: start;
}

.variety-gallery { display: grid; gap: 12px; }
.variety-gallery .lead {
  background: linear-gradient(180deg, #f7f9f4, #eef3e8);
  border-radius: 16px;
  padding: 12px;
}
.variety-gallery .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* A variety with only two photos: the second one runs the full width. */
.variety-gallery .row.single { grid-template-columns: 1fr; }
.variety-gallery .row > div {
  background: linear-gradient(180deg, #f7f9f4, #eef3e8);
  border-radius: 14px;
  padding: 10px;
  display: grid;
  place-items: center;
}
.variety-gallery img { border-radius: 8px; }

.specs { margin: 0; }
.specs dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0 18px;
}
.specs dt {
  font-weight: 700;
  color: var(--leaf-deep);
  font-size: .93rem;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  white-space: nowrap;
}
.specs dd {
  margin: 0;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .97rem;
}
.specs dt:first-of-type, .specs dl > dt:first-child + dd { border-top: 0; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.badge {
  font-size: .85rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 5px 13px;
  border: 1px solid transparent;
}
.badge.good { background: var(--leaf-soft); color: var(--leaf); border-color: #cfe1c7; }
.badge.note { background: var(--gold-soft); color: var(--gold-deep); border-color: #f0dcae; }
.badge.neutral { background: #f1f0ea; color: var(--muted); border-color: var(--line); }

/* --- Comparison table ----------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: .97rem;
}
th, td {
  text-align: start;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
thead th {
  background: var(--leaf-soft);
  color: var(--leaf-deep);
  font-family: 'Secular One', sans-serif;
  font-weight: 400;
  font-size: 1.02rem;
  white-space: nowrap;
}
tbody th { font-weight: 700; color: var(--leaf-deep); white-space: nowrap; }
tbody td { color: var(--muted); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td, tbody tr:hover th { background: #fafbf7; }

/* --- Gallery -------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.gallery figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  padding: 10px 14px;
  font-size: .88rem;
  color: var(--muted);
}

/* --- Contact -------------------------------------------------------------- */

.contact-box {
  background: linear-gradient(150deg, var(--leaf-deep), #1c6136);
  color: #fff;
  border-radius: 24px;
  padding: 46px 44px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.contact-box h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.contact-box p { color: #d3e7cf; max-width: 52ch; margin-inline: auto; }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn svg { width: 19px; height: 19px; }
.btn-primary { background: var(--gold); color: #35240a; }
.btn-primary:hover { background: #ffb63d; color: #35240a; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; transform: translateY(-2px); }

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  background: #16241a;
  color: #a9bda3;
  padding: 34px 0;
  font-size: .92rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: space-between;
}
.site-footer a { color: #d7e6d2; }
.site-footer a:hover { color: var(--gold); }

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 900px) {
  .hero .wrap,
  .intro-grid,
  .split,
  .variety-body { grid-template-columns: 1fr; }

  .compare-block { grid-template-columns: 1fr; }
  .compare-block img { max-width: 320px; margin-inline: auto; }
  .compare-block figcaption { text-align: center; }
  .hero { padding: 48px 0 54px; }
  .hero-figure { order: -1; max-width: 300px; margin-inline: auto; }
  .intro-grid figure { max-width: 420px; margin-inline: auto; }
  .variety-gallery { max-width: 420px; margin-inline: auto; }
  section { padding: 56px 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .variety-head, .variety-body { padding: 22px 20px; }
  .contact-box { padding: 34px 24px; }
  .specs dl { grid-template-columns: 1fr; gap: 0; }
  .specs dd { border-top: 0; padding-top: 0; padding-bottom: 12px; }
  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
