/* ============================================================
   GAT.DELIVERY — design system

   The palette is taken from the product itself: the bright green of the
   young leaves, and the burgundy of the stem, which is where the name
   "גת אדום" actually comes from. The old site flooded the page with a
   muddy maroon; here that colour is the accent, not the ground.
   ============================================================ */

@font-face {
  font-family: 'Assistant';
  src: url('../fonts/assistant-hebrew.woff2') format('woff2');
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0590-05FF, U+200F, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Assistant';
  src: url('../fonts/assistant-latin.woff2') format('woff2');
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AA;
}
@font-face {
  font-family: 'FrankRuhl';
  src: url('../fonts/frankruhl-hebrew.woff2') format('woff2');
  font-weight: 500 900;
  font-display: swap;
  unicode-range: U+0590-05FF, U+200F, U+FB1D-FB4F;
}
@font-face {
  font-family: 'FrankRuhl';
  src: url('../fonts/frankruhl-latin.woff2') format('woff2');
  font-weight: 500 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AA;
}

:root {
  --paper:      #f8f7f2;
  --surface:    #ffffff;
  --surface-2:  #efede4;
  --ink:        #1b2117;
  --ink-soft:   #5a6353;
  --rule:       #dfdcd0;

  --leaf:       #5f9128;
  --leaf-deep:  #35521a;
  --leaf-wash:  #eaf1df;
  --stem:       #8f3b3a;
  --stem-deep:  #6d2b2b;

  --ok:         #3a6f3c;
  --warn:       #96690f;

  --font-display: 'FrankRuhl', 'Times New Roman', serif;
  --font-sans: 'Assistant', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --wrap: 1120px;
  --gutter: 20px;
  --header-h: 68px;

  --r-sm: 4px;
  --r-md: 8px;
  --shadow: 0 1px 2px rgba(27,33,23,.06), 0 8px 24px rgba(27,33,23,.07);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;           /* the old site scrolled sideways on phones */
}

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

a { color: var(--leaf-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--leaf); }
:focus-visible { outline: 3px solid var(--stem); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: clamp(1.9rem, 5.2vw, 3rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { max-width: 68ch; }
.lede { font-size: 1.15rem; color: var(--ink-soft); font-weight: 300; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--stem);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248,247,242,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}
.brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--leaf); }

.nav { display: flex; gap: 20px; flex-wrap: wrap; margin-inline-start: auto; }
.nav a {
  font-size: .97rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--leaf-deep);
  border-bottom-color: var(--leaf);
}

.nav-toggle {
  display: none;
  margin-inline-start: auto;
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 16px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding-block: 12px; border-bottom: 1px solid var(--rule); }
}

/* ---------- hero ---------- */

.hero { position: relative; background: var(--leaf-deep); }
/* Capped, or the 16:7 box keeps growing with the viewport and leaves a field
   of dead image above the words. On a 1900px screen that was most of the fold. */
/* Height, not aspect-ratio. An aspect-ratio box clamped by max-height loses
   WIDTH too, and the photo stopped filling the screen — bars of flat green
   appeared either side on a wide monitor. */
.hero-media {
  position: relative;
  width: 100%;
  height: clamp(340px, 58vh, 600px);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,28,14,.88) 0%, rgba(20,28,14,.52) 45%, rgba(20,28,14,.14) 100%);
}
.hero-copy {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  padding-block: clamp(28px, 4vh, 48px);
  z-index: 1;
}
.hero-copy h1 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  max-width: 20ch;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero-copy .lede {
  color: rgba(255,255,255,.94);
  margin-top: 14px;
  max-width: 62ch;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 400;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

@media (max-width: 640px) {
  /* On a phone the picture earns more of the screen, and the copy sits under
     a taller crop rather than beside it. */
  .hero-media { height: min(74vh, 560px); }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--leaf); color: #fff; }
.btn-primary:hover { background: var(--leaf-deep); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-outline { border-color: var(--leaf); color: var(--leaf-deep); background: transparent; }
.btn-outline:hover { background: var(--leaf); color: #fff; }
.btn-block { width: 100%; }

/* ---------- trust strip ---------- */

.trust {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}
.trust .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding-block: 14px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.trust b { color: var(--ink); font-weight: 700; }

/* ---------- sections ---------- */

.section { padding-block: clamp(48px, 7vw, 84px); }
.section-head { margin-bottom: 30px; }
.section-head p { margin-top: 10px; }

/* ---------- product grid ---------- */

.grid-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .grid-products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .grid-products { grid-template-columns: 1fr; } }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .18s, transform .18s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.card-media { aspect-ratio: 1 / 1; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
.card-sub { font-size: .9rem; color: var(--ink-soft); }
.card-price {
  margin-top: auto;
  padding-top: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.card-price del { font-size: .95rem; font-weight: 500; color: var(--ink-soft); margin-inline-start: 8px; }

/* ---------- disclosure ---------- */

.disclosure {
  background: var(--leaf-wash);
  border-inline-start: 4px solid var(--leaf);
  padding: 18px 20px;
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.disclosure h3 { font-family: var(--font-sans); font-size: 1rem; margin-bottom: 6px; }
.disclosure p { margin: 0; font-size: 1rem; }

/* ---------- product page ---------- */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 820px) { .product { grid-template-columns: 1fr; } }

.product-media img {
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--rule);
}
.product-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.product-thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--rule); cursor: pointer; }
.product-thumbs img[aria-current="true"] { border-color: var(--leaf); border-width: 2px; }

.price-row { display: flex; align-items: baseline; gap: 12px; margin-block: 14px 6px; }
.price-now { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.price-was { font-size: 1.1rem; color: var(--ink-soft); }
.spec { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin-block: 20px; font-size: 1rem; }
.spec dt { color: var(--ink-soft); }
.spec dd { font-weight: 600; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  padding-block: 16px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: inline-start; color: var(--leaf); font-weight: 700; margin-inline-end: 10px; }
.faq details[open] summary::after { content: '–'; }
.faq details > *:not(summary) { padding-bottom: 18px; }

/* ---------- prose ---------- */

.prose h2 { margin-top: 40px; margin-bottom: 12px; }
.prose h3 { margin-top: 28px; margin-bottom: 8px; }
.prose p + p { margin-top: 14px; }
.prose ul { margin-block: 12px; padding-inline-start: 22px; }
.prose li { margin-bottom: 8px; max-width: 68ch; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: #d8dccf;
  margin-top: 60px;
  padding-block: 44px 28px;
}
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: .82rem; letter-spacing: .12em; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 32px;
  padding-top: 18px;
  font-size: .88rem;
  color: #a9b09c;
}

/* ---------- utility ---------- */

.skip {
  position: absolute;
  inset-inline-start: -9999px;
  background: var(--leaf);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus { inset-inline-start: 12px; top: 8px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- two column prose ---------- */

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
}
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }
.two-col h3 { margin-bottom: 8px; }

/* ---------- popular label ---------- */

/* A floating pill over the photograph pushed the image down the moment
   anything went wrong with it. This is a row inside the card body, and it is
   present on EVERY card — empty on three of them — so all four keep exactly
   the same height and baseline whatever the label says. */
.card-flag {
  min-height: 1.15rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .07em;
  color: var(--stem);
  line-height: 1.15rem;
}
.card.is-popular { border-color: var(--stem); }

.badge-inline {
  display: inline-block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .07em;
  color: var(--stem);
  margin-bottom: 8px;
}

/* ---------- price, split from shipping ---------- */

.card-ship {
  font-size: .82rem;
  color: var(--ink-soft);
  margin-top: 2px;
}
.price-unit { font-size: 1rem; color: var(--ink-soft); font-weight: 400; }

/* The delivered total stated beside the product price, not buried at
   checkout. A price that grows by ₪79 at the last step is the surprise
   that loses the order. */
.price-split {
  width: 100%;
  border-collapse: collapse;
  margin-block: 4px 22px;
  font-size: .96rem;
}
.price-split td {
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: baseline;
}
.price-split td:last-child {
  text-align: start;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  padding-inline-start: 16px;
}
.price-split tr:first-child td { border-top: 1px solid var(--rule); }
.price-split b { color: var(--ink); }

/* In Hebrew the line reads right to left, so the figure that matters — the
   total — opens the cell, and the arithmetic follows it in a quieter voice.
   Written the other way round, "139 + 80 = 219" put the answer on the left
   and read backwards. */
.price-parts {
  color: var(--ink-soft);
  font-size: .86rem;
  font-weight: 400;
  white-space: nowrap;
}

/* ---------- cart, checkout ---------- */

.cart-link {
  font-size: .97rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  padding: 7px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  white-space: nowrap;
}
.cart-link:hover { border-color: var(--leaf); color: var(--leaf-deep); }
.cart-count {
  display: inline-block;
  margin-inline-start: 6px;
  min-width: 1.35em;
  padding: 0 .35em;
  background: var(--leaf);
  color: #fff;
  border-radius: 999px;
  font-size: .8rem;
  text-align: center;
}
@media (max-width: 820px) { .cart-link { margin-inline-start: auto; order: -1; } }

.buy-row { display: flex; gap: 10px; align-items: stretch; margin-top: 8px; }
.buy-row input {
  width: 84px;
  font: inherit;
  text-align: center;
  padding: 12px 8px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
}
.buy-row .btn { flex: 1; }
.buy-added {
  margin-top: 10px;
  background: var(--leaf-wash);
  border-inline-start: 3px solid var(--leaf);
  padding: 10px 14px;
  font-size: .95rem;
}

.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.cart-table th {
  text-align: start;
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
}
.cart-table td { border-bottom: 1px solid var(--rule); padding: 14px 0; }
.cart-table td:not(:first-child) { text-align: start; padding-inline-start: 14px; }
.cart-table input {
  width: 68px; font: inherit; text-align: center; padding: 7px;
  border: 1px solid var(--rule); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink);
}
.cart-table button {
  font: inherit; font-size: .88rem; background: none; border: 0;
  color: var(--stem); cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px; padding: 0;
}

.delivery-choice {
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin-bottom: 8px;
  background: var(--surface);
}
.delivery-choice legend { font-weight: 700; padding-inline: 8px; }
.delivery-choice label {
  display: flex; gap: 12px; align-items: baseline;
  padding-block: 10px; cursor: pointer;
}
.delivery-choice label + label { border-top: 1px solid var(--rule); }

.wrap.narrow { max-width: 640px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; padding: 12px 14px;
  border: 1px solid var(--rule); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink);
}
.field small { display: block; color: var(--ink-soft); font-size: .86rem; margin-top: 5px; }
.field.two { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.form-error {
  background: #f7e6e2; color: #9c3324; border-inline-start: 3px solid #9c3324;
  padding: 12px 16px; margin-bottom: 16px; font-weight: 600;
}
.fineprint { font-size: .88rem; color: var(--ink-soft); margin-top: 14px; }

/* ---------- guide tables and area grid ---------- */

.guide-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.guide-table th {
  text-align: start;
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--ink);
  padding: 0 16px 8px 0;
}
.guide-table td {
  border-bottom: 1px solid var(--rule);
  padding: 13px 16px 13px 0;
  vertical-align: top;
}
.guide-table tr:hover td { background: var(--surface); }

.area-grid { margin-block: 18px 8px; }
.area-grid h3 { font-size: 1.05rem; margin-bottom: 4px; }
.area-grid p { color: var(--ink-soft); font-size: .97rem; }

/* Buy now leads, add to cart follows. Both sit on one row with the quantity. */
.buy-row { flex-wrap: wrap; }
.buy-row .btn { flex: 1 1 auto; min-width: 140px; }

/* The WhatsApp mark sits with the number, not beside it as a separate thing.
   The gap is logical (inline-end) so it stays correct in an RTL line. */
.wa-link { display: inline-flex; align-items: center; gap: 6px; }
.ico-wa { flex: none; color: #25D366; }

/* Was a style attribute; the CSP here is style-src 'self', which blocks
   inline styles outright, so it never actually applied. */
.faq-ask { margin-top: 34px; }

.ask-wa { margin-top: 26px; }

/* Under the buy buttons. Both of these were style attributes, which the
   site's own CSP (style-src 'self') blocks, so neither ever applied. */
.buy-ask { margin-top: 18px; font-size: .95rem; color: var(--ink-soft); }
.disclosure { margin-top: 26px; }

/* Spacing that used to be written as style attributes. None of them
   ever applied: this site's CSP is style-src 'self', which blocks an
   inline style outright — confirmed in the browser, where an element
   asking for 18px of margin computed to 0. */
.band { background: var(--surface); border-block: 1px solid var(--rule); }
.crumbs { padding-block: 20px; }
.figure-rounded { border-radius: 8px; margin-bottom: 28px; }
.fine-soft { font-size: .9rem; color: var(--ink-soft); }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-18 { margin-top: 18px; }
.mt-20 { margin-top: 20px; }
.mt-28 { margin-top: 28px; }
.mt-30 { margin-top: 30px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.note-soft { margin-block: 40px 60px; color: var(--ink-soft); }
