/* Wild Bread landing page – v2
   Bright layout (white header/footer over a full-screen photo), brand green, Libre Caslon + Assistant.
   v2 = soft modernization: rounded corners, icons, gentle shadows/motion, refined links. */

:root {
  --green: #286222;            /* brand green from wildbread.co.il (rgb 40,98,34) */
  --green-dark: #294f26;       /* subtitle green from wildbread.co.il (rgb 41,79,38) */
  --green-tint: #eef4ec;       /* soft green surface */
  --green-line: rgba(40, 98, 34, 0.16);
  --ink: #2b2118;
  --ink-soft: #5d5248;
  --white: #fff;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(30, 24, 16, 0.06), 0 2px 8px rgba(30, 24, 16, 0.06);
  --shadow-md: 0 2px 6px rgba(30, 24, 16, 0.08), 0 10px 28px rgba(30, 24, 16, 0.14);
  --shadow-lg: 0 4px 10px rgba(30, 24, 16, 0.10), 0 18px 44px rgba(30, 24, 16, 0.18);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --font-he: "Assistant", "Segoe UI", Arial, sans-serif;
  --font-brand: "Libre Caslon Text", "Adobe Caslon Pro", Georgia, serif;
  --header-h: clamp(96px, 14vh, 124px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--white);          /* what shows when a phone "bounces" past the page edge */
  overscroll-behavior-y: none;       /* limit that bounce where supported */
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-he);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

/* small line icons used across the page */
.i {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- photo ----------
   Lives inside <main class="hero">, i.e. only between the header and footer bars.
   Desktop: full-bleed (fills the height and the width of that area) with a slow zoom; buttons on top.
   Phones: see the stacked layout below. */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  animation: slow-zoom 24s ease-out both;
}
.hero::before {                       /* very light veil + soft bottom fade toward the footer */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, transparent 70%, rgba(255, 255, 255, 0.18) 100%),
    rgba(255, 255, 255, 0.05);
}
@keyframes slow-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ---------- header ---------- */
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: var(--header-h);
  padding: 18px 16px 16px;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--green-line);
  box-shadow: var(--shadow-sm);
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  text-align: center;
}
.brand-logo {                         /* official vector logo (from the Wix site) */
  display: block;
  width: clamp(240px, 40vw, 560px);
  height: auto;
}
.brand-sub {
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--green-dark);
}

/* round icon buttons in the header (phone on mobile) */
.header-phone {
  position: absolute;
  inset-inline-end: 16px;        /* left side in RTL */
  top: 50%;
  transform: translateY(-50%);
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.header-phone:hover { background: var(--green); color: var(--white); }
.header-phone svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- hero + CTAs (desktop & landscape tablets, ≥ 900px) ----------
   Full-bleed photo between the bars; buttons on top of it, near the right edge (start side in RTL). */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 1;
  display: grid;
  grid-template-rows: 14fr auto 1fr;  /* buttons sit low: around 80% of the photo's height */
  justify-items: start;               /* start = right side in RTL */
  padding: clamp(24px, 4.5vh, 48px) clamp(24px, 3.2vw, 52px);
}
.actions {
  grid-row: 2;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 280px;
  animation: rise 0.9s 0.2s var(--ease) both;
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--green);
  box-shadow: var(--shadow-md);
  font-size: clamp(18px, 1.6vw, 20px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn .i { width: 22px; height: 22px; opacity: 0.9; }
.btn:first-child {                    /* main action: filled green (same as mobile) */
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.btn:first-child:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn:active { transform: translateY(0) scale(0.985); box-shadow: var(--shadow-md); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--white);
  color: var(--ink);
  border-top: 1px solid var(--green-line);
  box-shadow: 0 -1px 12px rgba(30, 24, 16, 0.05);
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  font-size: 15px;
}
.footer-info {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 28px;
  color: var(--ink-soft);
}
.footer-info li { display: inline-flex; align-items: center; gap: 8px; }
.footer-info .i { color: var(--green); width: 18px; height: 18px; }
.footer-info .label { font-weight: 700; color: var(--green); }
.footer-info .nw { white-space: nowrap; }
.nav-apps { display: inline-flex; gap: 6px; margin-inline-start: 6px; }
.nav-apps a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px 2px 8px;
  border-radius: 999px;
  background: var(--green-tint);
  color: var(--green) !important;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-apps .app-ico { width: 16px; height: 16px; flex: none; }
.nav-apps a:hover { background: var(--green); color: var(--white) !important; }
.footer-info a { color: var(--ink); font-weight: 600; text-decoration: none; }
.footer-info a:hover { color: var(--green); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
}
.footer-info + .footer-nav {     /* divider only when the info list is above (home page) */
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--green-line);
}
.footer-nav > a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.footer-nav > a:hover { background: var(--green-tint); color: var(--green); }
.socials { display: inline-flex; gap: 8px; margin-inline-start: 8px; }
.socials a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.socials a:hover { background: var(--green); color: var(--white); transform: translateY(-1px); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------- WhatsApp bubble ---------- */
.whatsapp {
  position: fixed;
  right: 20px;              /* physical right on purpose (matches the reference layout) */
  bottom: calc(20px + env(safe-area-inset-bottom));
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 0 0 5px rgba(37, 211, 102, 0.16), var(--shadow-md);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  z-index: 10;
}
.whatsapp:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 0 0 7px rgba(37, 211, 102, 0.18), var(--shadow-lg); }
.whatsapp svg { width: 30px; height: 30px; fill: currentColor; }

/* ---------- mobile ---------- */
@media (max-width: 767px) {
  .site-header { min-height: 92px; }
  .header-phone { display: grid; inset-inline-end: 10px; }
  .brand-logo { width: min(64vw, 270px); }
  .brand-sub { font-size: 13px; }
  .site-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); } /* room for WhatsApp bubble */
  .footer-info { flex-direction: column; align-items: center; gap: 6px; text-align: center; }
  .footer-info .hours { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 6px; }
  .footer-info .hours .label { flex-basis: 100%; }
  .footer-info li:first-child { align-items: flex-start; }
  .footer-info li:first-child .i { margin-top: 3px; }
  .footer-nav { gap: 4px 4px; }
  .socials { margin-inline-start: 0; }
}

/* phones: Google Maps / Waze as two big buttons on their own line (where navigation is needed most) */
@media (max-width: 767px) {
  .footer-info li.address { flex-wrap: wrap; justify-content: center; }
  .footer-info li.address .nav-apps {
    flex-basis: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 8px 0 4px;
  }
  .footer-info li.address .nav-apps a {
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 8px 12px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--green-line);
    box-shadow: var(--shadow-sm);
    color: var(--ink) !important;
    font-size: 16px;
  }
  .footer-info li.address .nav-apps .app-ico { width: 24px; height: 24px; }
}

/* ---------- phones & portrait tablets (< 900px): stacked layout ----------
   header → whole photo (5:4, full width, slow zoom) → buttons on white → footer. */
@media (max-width: 899px) {
  .page-home .hero {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    background: var(--white);
  }
  .page-home .hero::before { display: none; }   /* nothing sits on the photo here */
  .page-home .hero-photo {
    position: relative;
    inset: auto;
    z-index: 0;
    width: 100%;
    aspect-ratio: 5 / 4;
  }
  .page-home .actions { width: 100%; max-width: 560px; align-self: center; gap: 12px; padding: 22px 20px 26px; }
  .page-home .btn { min-height: 56px; border: 0; box-shadow: none; background: var(--green-tint); color: var(--green); }
  .page-home .btn:first-child { background: var(--green); color: var(--white); box-shadow: 0 6px 18px rgba(40, 98, 34, 0.28); }
  .page-home .btn:hover { transform: none; }
}
/* phones: Enable's own floating ♿ button duplicates the header ♿ button and covers footer text
   on short screens, so it is hidden here; the header button still opens the Enable toolbar. */
@media (max-width: 767px) {
  #enable-toolbar-trigger, #enable-toolbar-content > [role="note"] { display: none !important; }
}

/* Enable parks its closed panel just below the screen and its (empty) notification banner just above
   it. iOS Safari draws the page behind its translucent address/status bars, so both peeked through
   while scrolling. Make them invisible unless actually in use. (All screen sizes.) */
body:not(.show-enable-toolbar) #enable-toolbar-content { visibility: hidden !important; }
#enable-toolbar-trigger { visibility: visible !important; }   /* its small ♿ button stays (desktop; hidden on phones below) */
#enable-toast:not(.wb-has-message) { visibility: hidden !important; }

/* ---------- a11y helpers ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  top: -100px;
  right: 16px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .back-link:focus-visible, .a11y-btn:focus-visible { border-radius: var(--radius); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- legal pages (privacy / accessibility / 404) ---------- */
.page-legal { background: var(--white); color: var(--ink); }

.legal {
  flex: 1;
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: 48px 0 72px;
  font-size: 17px;
  line-height: 1.75;
}
.legal-center { text-align: center; }
.legal h1 {
  font-size: clamp(30px, 4.2vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  padding-bottom: 18px;
  color: var(--green);
  border-bottom: 1px solid var(--green-line);
}
.legal h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  margin: 40px 0 10px;
  color: var(--green);
}
.legal h2::before {             /* small accent bar before section titles */
  content: "";
  width: 4px;
  height: 1.05em;
  border-radius: 4px;
  background: var(--green);
  opacity: 0.8;
}
.legal p { margin: 0 0 14px; }
.legal ul { list-style: none; margin: 0 0 18px; padding: 0; }
.legal li { position: relative; margin: 0 0 8px; padding-inline-start: 22px; }
.legal li::before {             /* soft green dot bullets */
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.75;
}
.legal li ul { margin: 8px 0 0; }
.legal li li::before { background: transparent; border: 1.5px solid var(--green); width: 6px; height: 6px; }

/* links inside text: refined underline that fills in on hover */
.legal a:not(.back-link) {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(40, 98, 34, 0.35);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s var(--ease);
}
.legal a:not(.back-link):hover { text-decoration-color: var(--green); }

/* "last updated" as a small tag */
.legal .updated {
  display: inline-block;
  margin: 8px 0 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--green-tint);
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 600;
}
.legal h1 + .updated { margin: -12px 0 28px; }
.legal-copyright { font-size: 14px; color: var(--ink-soft); margin-top: 32px; }

/* back to home: pill button with arrow (replaces the old underlined text link) */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding: 12px 22px 12px 26px;
  border-radius: 999px;
  background: var(--green-tint);
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.back-link .i { width: 18px; height: 18px; stroke-width: 2.2; transition: transform 0.25s var(--ease); }
.back-link:hover { background: var(--green); color: var(--white); box-shadow: var(--shadow-md); }
.back-link:hover .i { transform: translateX(3px); }   /* nudges "back" (to the right in RTL) */
.legal > .back-link { display: flex; width: fit-content; }
.legal-center > .back-link { margin-inline: auto; }

/* ---------- accessibility button (header) + fallback panel ---------- */
.a11y-btn {
  position: absolute;
  inset-inline-start: 16px;          /* right side in RTL; the phone icon is on the left */
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 14px 6px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--green-tint);
  color: var(--green);
  font: 700 16px/1 var(--font-he);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.a11y-btn:hover, .a11y-btn[aria-expanded="true"] { background: var(--green); color: var(--white); box-shadow: var(--shadow-sm); }
.a11y-btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
@media (max-width: 767px) {
  .a11y-btn { inset-inline-start: 10px; padding: 0; width: 44px; justify-content: center; }
  .a11y-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.a11y-panel {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1000;
  width: min(340px, calc(100vw - 24px));
  padding: 16px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--green-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-family: Arial, sans-serif;
}
.a11y-panel[hidden] { display: none; }
.a11y-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 18px; color: var(--green); }
.a11y-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--green-tint); font-size: 18px; cursor: pointer; color: var(--green); }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-grid button {
  min-height: 48px;
  padding: 8px;
  border: 1px solid var(--green-line);
  border-radius: 12px;
  background: #f7faf6;
  color: var(--ink);
  font: 600 15px/1.2 Arial, sans-serif;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.a11y-grid button:hover { background: var(--green-tint); }
.a11y-grid button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--white); }
.a11y-statement { display: block; margin-top: 12px; text-align: center; color: var(--green); font-weight: 700; text-underline-offset: 4px; }

/* fallback-panel effects (applied to page regions, not <html>, so position:fixed keeps working) */
body > header, body > main, body > footer { filter: var(--a11y-filter, none); }
body > header, body > main, body > footer { zoom: var(--a11y-zoom, 1); }
.a11y-links a { text-decoration: underline !important; outline: 2px solid #ffd400; background: #fffbe0; color: #000 !important; }
.a11y-font body, .a11y-font body * { font-family: Arial, Helvetica, sans-serif !important; letter-spacing: 0.01em !important; }
.a11y-still *, .a11y-still *::before, .a11y-still *::after { animation: none !important; transition: none !important; }
.redirect-note { color: var(--ink-soft); font-size: 15px; }
