/* Shared styles for every page of the site. index.html adds its own shop styles on top. */
:root {
  --bg: #fbf8f2;          /* warm white */
  --surface: #ffffff;
  --ink: #1f231a;
  --muted: #6b6a5c;
  --line: #e7e1d3;
  --deep: #2c3320;        /* dark olive, header + hero */
  --deep-ink: #f6f1e4;
  --olive: #56682d;
  --olive-ink: #ffffff;
  --sumac: #a3323c;
  --gold: #c99a3b;        /* olive-oil gold, small highlights */
  --chip: #f1ece0;
  --shadow: 0 14px 34px rgb(44 51 32 / .16);
  --shadow-sm: 0 2px 10px rgb(44 51 32 / .08);
  --f-display: "Suez One", "Frank Ruhl Libre", "David", serif;
  --f-body: "Assistant", "Segoe UI", "Arial", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15180f; --surface: #1e2217; --ink: #efeadc; --muted: #aaa792; --line: #343a2a; --deep: #0f120b; --deep-ink: #f1ead6;
    --olive: #9cb262; --olive-ink: #12150d; --sumac: #e2727c; --gold: #e0b75c; --chip: #2a2f21;
    --shadow: 0 14px 34px rgb(0 0 0 / .5); --shadow-sm: 0 2px 10px rgb(0 0 0 / .35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15180f; --surface: #1e2217; --ink: #efeadc; --muted: #aaa792; --line: #343a2a; --deep: #0f120b; --deep-ink: #f1ead6;
  --olive: #9cb262; --olive-ink: #12150d; --sumac: #e2727c; --gold: #e0b75c; --chip: #2a2f21;
  --shadow: 0 14px 34px rgb(0 0 0 / .5); --shadow-sm: 0 2px 10px rgb(0 0 0 / .35); color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--deep); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--deep); color: var(--deep-ink); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.logo { display: flex; align-items: baseline; gap: 10px; min-width: 0; text-decoration: none; color: inherit; }
.logo b { font-family: var(--f-display); font-weight: 400; font-size: 1.75rem; line-height: 1; }
.logo span { font-size: .9rem; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) { .logo span { display: none; } }
.top .spacer { flex: 1; }
.top .phone { color: var(--deep-ink); opacity: .85; text-decoration: none; font-weight: 600; direction: ltr; }
@media (max-width: 700px) { .top .phone { display: none; } }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: #1f1a0c; border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 800; }
.cart-btn .count { background: #1f1a0c; color: var(--gold); border-radius: 999px; min-width: 1.6em; padding: 0 6px; text-align: center; font-size: .85rem; font-variant-numeric: tabular-nums; }
.cart-btn svg { width: 20px; height: 20px; }

.foot { background: var(--deep); color: var(--deep-ink); margin-top: 40px; }
.foot .wrap { padding-block: 30px calc(30px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .foot .wrap { grid-template-columns: 1fr; } }
.foot b { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; display: block; }
.foot p { margin: 4px 0 0; opacity: .75; }
.foot h4 { margin: 0 0 6px; color: var(--gold); }
.foot a { color: var(--deep-ink); }

/* shared nav (all pages) */
.nav { display: flex; gap: 4px; margin-inline-start: 10px; }
.nav a { color: var(--deep-ink); text-decoration: none; font-weight: 700; padding: 7px 12px; border-radius: 999px; opacity: .85; white-space: nowrap; }
.nav a:hover { opacity: 1; background: rgb(255 255 255 / .08); }
.nav a[aria-current="page"] { opacity: 1; background: rgb(255 255 255 / .12); color: var(--gold); }
@media (max-width: 860px) {
  .top .wrap { flex-wrap: wrap; height: auto; padding-block: 10px 0; row-gap: 4px; }
  .nav { order: 9; width: 100%; margin: 0 -8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
  .nav::-webkit-scrollbar { display: none; }
}
.order-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: #1f1a0c; border-radius: 999px; padding: 9px 18px; font-weight: 800; text-decoration: none; }
.foot .links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; }
.foot .links a { opacity: .8; }
.foot .copy { grid-column: 1 / -1; border-top: 1px solid rgb(255 255 255 / .12); padding-top: 14px; font-size: .9rem; opacity: .6; }

/* floating WhatsApp button */
.wa-fab { position: fixed; z-index: 35; left: max(18px, env(safe-area-inset-left, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgb(0 0 0 / .25); text-decoration: none; transition: transform .15s ease; }
.wa-fab:hover { transform: scale(1.07); }
.wa-fab svg { width: 34px; height: 34px; }
.wa-fab .tip { position: absolute; left: 70px; white-space: nowrap; background: var(--surface); color: var(--ink); border: 1px solid var(--line); padding: 7px 12px; border-radius: 999px; font-weight: 700; font-size: .92rem; box-shadow: var(--shadow-sm); opacity: 0; pointer-events: none; transition: opacity .15s; }
.wa-fab:hover .tip, .wa-fab:focus-visible .tip { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .wa-fab { animation: wa-in .4s ease-out .6s both; } @keyframes wa-in { from { transform: scale(.4); opacity: 0; } } }
@media print { .wa-fab { display: none; } }

/* content pages */
.page-head { background: var(--deep); color: var(--deep-ink); }
.page-head .wrap { padding-block: 34px 38px; }
.page-head .eyebrow { color: var(--gold); font-weight: 700; font-size: .95rem; }
.page-head h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.1; margin: 6px 0 0; text-wrap: balance; }
.page-head p { margin: 10px 0 0; opacity: .8; max-width: 60ch; }
.prose { max-width: 760px; margin: 34px auto 0; font-size: 1.08rem; line-height: 1.75; overflow-wrap: anywhere; }
.prose img { border-radius: 14px; margin: 18px auto; height: auto; width: auto; max-height: 540px; }
.prose img.post-hero { width: 100%; max-height: 460px; }
.prose a { color: var(--olive); }
.prose h2, .prose h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.2; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 8px; }
.prose div + div { margin-top: .55em; }
.note { background: var(--chip); border-radius: 14px; padding: 14px 18px; color: var(--muted); font-size: .98rem; }

/* blog */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 30px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card .ph { aspect-ratio: 16/10; background: var(--chip); }
.post-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.post-card .tx { padding: 14px 16px 18px; display: grid; gap: 6px; }
.post-card h2 { font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; line-height: 1.25; margin: 0; }
.post-card time, .post-meta { color: var(--muted); font-size: .9rem; }
.post-card p { margin: 0; color: var(--muted); font-size: .97rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pager { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.pager button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 9px 18px; font-weight: 700; }
.pager button:disabled { opacity: .4; cursor: default; }
.post-hero { width: 100%; max-height: 460px; object-fit: cover; border-radius: 16px; margin: 0 0 20px; }
.back { display: inline-block; margin-top: 30px; color: var(--olive); font-weight: 700; text-decoration: none; }
.post-cta { margin-top: 36px; background: var(--deep); color: var(--deep-ink); border-radius: 18px; padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between; }
.post-cta b { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 30px; }
.c-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-sm); }
.c-card h2 { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; margin: 0 0 6px; }
.c-card p { margin: 0 0 12px; color: var(--muted); }
.c-card a.big { font-size: 1.35rem; font-weight: 800; color: var(--ink); text-decoration: none; direction: ltr; display: inline-block; }
.btn-wa { display: inline-flex; align-items: center; gap: 8px; background: #0f7a3d; color: #fff; border-radius: 999px; padding: 10px 18px; font-weight: 800; text-decoration: none; }
.btn-wa svg { width: 20px; height: 20px; }
.areas { margin: 0; padding-inline-start: 1.1em; color: var(--muted); }
.empty { color: var(--muted); padding: 30px 0; }
@media (max-width: 600px) { .wa-fab { width: 54px; height: 54px; } .wa-fab svg { width: 30px; height: 30px; } .wa-fab .tip { display: none; } }
/* מקום לתג של נטליפיי בפינה התחתונה, כדי שלא יסתיר תוכן */
body { padding-bottom: 64px; }

.skip-link { position: absolute; top: -60px; right: 12px; z-index: 300; background: var(--deep); color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; outline: 3px solid var(--gold); }

.foot .news { grid-column: 1 / -1; border-top: 1px solid rgb(255 255 255 / .18); padding-top: 18px; }
.foot .news h4 { margin: 0 0 4px; }
.foot .news p { margin: 0 0 10px; }
.news-row { display: flex; gap: 8px; max-width: 460px; }
.news-row input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: var(--radius, 6px); border: 1px solid var(--line); font: inherit; background: #fff; color: #1d1612; }
.news-row input::placeholder { color: #5f5248; }
.news-row button { background: var(--gold); color: var(--ink); border: 0; border-radius: var(--radius, 6px); padding: 10px 18px; font-weight: 800; cursor: pointer; font: inherit; font-weight: 800; }
.news-msg { min-height: 1.4em; font-weight: 700; }
.chk { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0 10px; cursor: pointer; }
.chk input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
