/* Web3D site chrome: base, header, buttons, contact block, footer.
   Mirrors the live site's components so pages share one shell. */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--w3d-font);
  font-size: 20px;
  line-height: 30px;
  letter-spacing: var(--w3d-ls-body);
  color: var(--w3d-body);
  background: var(--w3d-white);
  text-align: right;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--w3d-red-light); text-decoration: none; transition: color var(--w3d-t); }
h1, h2, h3, h4 { margin: 0; letter-spacing: var(--w3d-ls-head); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

:focus-visible { outline: 2px solid var(--w3d-red); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -60px; right: 16px; z-index: 300;
  background: var(--w3d-red); color: #fff; padding: 8px 18px; border-radius: var(--w3d-r-pill);
  font-size: 16px;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--w3d-container);
  margin: 0 auto;
  padding: 0 var(--w3d-gutter);
}
.container.wider { max-width: var(--w3d-container-wide); }

/* Two-tone heading: grey phrase + red keyword (site pattern) */
.w3d-h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--w3d-heading);
  text-wrap: balance;
}
.w3d-h2 span,
.w3d-h2 strong { color: var(--w3d-red); font-weight: 700; }

/* ===== Buttons (contact-btn red-btn-theme / white-btn-theme) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 34px;
  border-radius: var(--w3d-r-pill);
  border: 1px solid var(--w3d-red);
  font-size: 18px;
  line-height: 27px;
  font-weight: 400;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--w3d-t) var(--w3d-ease), background-color var(--w3d-t), color var(--w3d-t), box-shadow var(--w3d-t);
}
.btn-red { background: var(--w3d-red); color: #fff; }
.btn-white { background: #fff; color: var(--w3d-red); }
.btn:hover { transform: translateY(-5px); }
.btn-red:hover { color: #fff; }
.btn:active { transform: translateY(-2px); }
.btn .ph { font-size: 18px; }

/* Text link with ">" arrow, as on the site ("14 יום והתנסות חינם >") */
.text-link { color: var(--w3d-red); font-size: 18px; display: inline-flex; gap: 6px; align-items: center; }
.text-link:hover { color: var(--w3d-red-deep); }

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--w3d-header-bg);
  box-shadow: var(--w3d-shadow-header);
}
.site-header a { color: #fff; }

.header-inner {
  max-width: var(--w3d-container-header);
  margin: 0 auto;
  padding: 0 14.4px;
}

/* Top bar */
.top-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}
.top-menu ul { display: flex; align-items: center; }
.top-menu li a {
  display: inline-block;
  margin-left: 25px;
  font-size: 16px;
  line-height: 24px;
}
.top-menu li a:hover { text-decoration: underline; text-underline-offset: 3px; }

.header-search {
  display: flex;
  align-items: center;
  width: 224px;
  height: 38px;
  border: 1px solid #fff;
  border-radius: 18px;
  overflow: hidden;
}
.header-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  font: 400 14px var(--w3d-font);
  padding: 0 14px 0 4px;
}
.header-search input::placeholder { color: rgba(255, 255, 255, 0.7); }
.header-search input:focus { outline: none; }
.header-search:focus-within { box-shadow: 0 0 0 2px var(--w3d-red); }
.header-search button {
  width: 45px;
  height: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* Main bar */
.main-bar {
  display: flex;
  align-items: flex-start;
  height: 88px;
}
.site-logo { flex-shrink: 0; margin-top: 20px; }
.site-logo img { width: 173px; height: 51px; }

.main-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 40px;
}
.main-nav > ul { display: flex; }
.main-nav > ul > li > a {
  position: relative;
  display: block;
  padding: 0 15.84px;
  font-size: 17px;
  line-height: 88px;
  transition: color var(--w3d-t), box-shadow var(--w3d-t);
}
.main-nav > ul > li + li > a::before {
  content: "";
  position: absolute;
  right: 0;
  top: 25px;
  width: 1px;
  height: 40px;
  background: #fff;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header-cta {
  margin-right: 24.48px;
  align-self: center;
  display: block;
  height: 40px;
  padding: 0 30px;
  border-radius: 20px;
  background: var(--w3d-red);
  font-size: 17px;
  line-height: 40px;
  white-space: nowrap;
  transition: transform var(--w3d-t) var(--w3d-ease), background-color var(--w3d-t);
}
.site-header .header-cta:hover { color: #fff; background: var(--w3d-red-deep); }

/* Mobile header parts (hidden on desktop) */
.mobile-bar { display: none; }

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--w3d-red-menu);
  padding: 20px;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.45s var(--w3d-ease), visibility 0s linear 0.45s;
}
.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.45s var(--w3d-ease), visibility 0s;
}
.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
}
.mobile-menu-top img { width: 130px; height: auto; filter: brightness(0) invert(1); }
.mobile-close {
  width: 44px; height: 44px;
  border: 0; background: transparent; color: #fff;
  font-size: 30px; cursor: pointer;
  display: grid; place-items: center;
}
.mobile-menu nav a {
  display: block;
  padding: 10px 20px;
  color: #fff;
  font-size: 20px;
  line-height: 28px;
}
.mobile-menu nav .is-sub a { background: var(--w3d-red-deep); padding-right: 30px; }
.mobile-menu nav li + li { border-top: 1px solid rgba(255, 255, 255, 0.18); }
.mobile-menu nav a:active,
.mobile-menu nav a:hover { background: rgba(0, 0, 0, 0.08); }
.mobile-menu .mobile-menu-cta {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.mobile-menu .btn-white { flex: 1; }
.mobile-menu-contact {
  margin-top: 24px;
  display: flex;
  gap: 18px;
  font-size: 17px;
}
.mobile-menu-contact a { color: #fff; display: inline-flex; gap: 6px; align-items: center; }

@media (max-width: 1199px) {
  .top-menu,
  .main-bar { display: none; }
  .mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 20px;
  }
  .mobile-bar .site-logo { margin-top: 0; }
  .mobile-bar .site-logo img { width: 130px; height: auto; }
  .hamburger {
    position: relative;
    width: 44px;
    height: 44px;
    margin-left: -7px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .hamburger span {
    position: absolute;
    left: 7px;
    width: 30px;
    height: 2px;
    background: var(--w3d-red);
    border-radius: 1px;
  }
  .hamburger span:nth-child(1) { top: 13px; }
  .hamburger span:nth-child(2) { top: 21px; }
  .hamburger span:nth-child(3) { top: 29px; }
}

/* Floating side actions (accessibility / mail / whatsapp / phone) */
.side-actions {
  position: fixed;
  left: 20px;
  bottom: 120px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.side-actions a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--w3d-red);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  box-shadow: 0 4px 14px rgba(251, 85, 91, 0.35);
  transition: transform var(--w3d-t) var(--w3d-ease);
}
.side-actions a:hover { transform: scale(1.08); color: #fff; }
@media (max-width: 1023px) { .side-actions { display: none; } }

/* Breadcrumbs */
.breadcrumbs {
  font-size: 15px;
  line-height: 22px;
  color: var(--w3d-heading);
  padding: 12px 0;
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "»"; margin-left: 6px; color: var(--w3d-muted); }
.breadcrumbs a { color: var(--w3d-heading); }
.breadcrumbs a:hover { color: var(--w3d-red); }

/* ================================================================
   CONTACT BLOCK (footer_new_s4) + FOOTER (#copyright_new)
   ================================================================ */
.contact-block { padding: 90px 0 100px; }
.contact-block .container {
  max-width: 1280px;
  display: grid;
  grid-template-columns: 1fr 470px;
  gap: 80px;
  align-items: start;
}
.contact-form h2 { margin-bottom: 18px; }
.field { position: relative; margin-top: 10px; }
.field input {
  width: 100%;
  height: 56px;
  padding: 18px 0 4px;
  border: 0;
  border-bottom: 1px solid #bdbdbd;
  background: transparent;
  font: 400 18px var(--w3d-font);
  color: var(--w3d-body);
  border-radius: 0;
}
.field label {
  position: absolute;
  right: 0;
  top: 18px;
  font-size: 18px;
  color: #595959;
  pointer-events: none;
  transition: transform 0.25s var(--w3d-ease), font-size 0.25s var(--w3d-ease), color 0.25s;
  transform-origin: right top;
}
.field input:focus { outline: none; border-bottom-color: var(--w3d-red); }
.field input:focus + label,
.field input:not(:placeholder-shown) + label { transform: translateY(-18px); font-size: 14px; color: var(--w3d-red); }
.field .err { display: none; font-size: 14px; line-height: 20px; color: #c62828; margin-top: 4px; }
.field.has-error input { border-bottom-color: #c62828; }
.field.has-error .err { display: block; }
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 26px 0 26px;
  font-size: 16px;
  line-height: 24px;
}
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--w3d-red); flex-shrink: 0; }
.form-status { font-size: 16px; margin-top: 14px; min-height: 24px; color: var(--w3d-heading); }

.cafe-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--w3d-shadow-card);
  padding: 40px 28px 34px;
  text-align: center;
}
.cafe-card .cup {
  width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--w3d-red); color: #fff; display: grid; place-items: center; font-size: 36px;
}
.cafe-card h3 { font-size: 26px; font-weight: 700; color: var(--w3d-heading); line-height: 1.3; }
.cafe-card h3 a { color: var(--w3d-red); text-decoration: underline; text-underline-offset: 4px; }
.cafe-card ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 14px; font-size: 16px; }
.cafe-card ul a { color: var(--w3d-body); display: inline-flex; gap: 6px; align-items: center; }
.cafe-card ul .ph { color: var(--w3d-red); font-size: 18px; }

.site-footer { background: var(--w3d-footer); padding: 50px 0 0; }
.site-footer .container { max-width: 1280px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 1.3fr 1fr;
  gap: 30px;
}
.footer-col h4 { font-size: 18px; font-weight: 700; color: var(--w3d-red); margin-bottom: 10px; line-height: 1.3; }
.footer-col .footer-sub { margin-top: 18px; }
.footer-col li a { font-size: 15px; line-height: 27px; color: var(--w3d-muted); }
.footer-col li a:hover { color: var(--w3d-red); }
.footer-brand img { width: 173px; height: auto; margin-bottom: 18px; }
.footer-brand a.contact-line { display: flex; gap: 8px; align-items: center; color: #000; font-size: 17px; line-height: 32px; }
.footer-brand .ph { color: var(--w3d-red); }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%; background: #c9c9c9; color: #fff;
  display: grid; place-items: center; font-size: 18px;
}
.footer-social a:hover { background: var(--w3d-red); color: #fff; }
.copyright {
  margin-top: 40px;
  padding: 18px 0 22px;
  border-top: 1px solid #cfcfcf;
  font-size: 14px;
  line-height: 20px;
  color: var(--w3d-muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 1199px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .contact-block .container { grid-template-columns: 1fr; gap: 50px; }
  .cafe-card { max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 767px) {
  body { font-size: 18px; line-height: 27px; }
  .w3d-h2 { font-size: 28px; line-height: 1.3; }
  .contact-block { padding: 56px 0 64px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .footer-brand { grid-column: 1 / -1; order: -1; }
  .footer-col.sectors { grid-column: 1 / -1; }
  .copyright { justify-content: center; text-align: center; }
  .btn { min-height: 52px; }
}
