/* Legacy Hebrew pages: the new header, lead-form section and footer only.
   Everything is scoped to .sm-chrome so the content area of these pages keeps its existing Elementor design.
   Values are the approved ones from main.css. */

@font-face {
  font-family: "Frank Ruhl Libre"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/frank-ruhl-libre-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Frank Ruhl Libre"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/frank-ruhl-libre-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Heebo"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/heebo-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/heebo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens and local reset ---------- */
.sm-chrome {
  --bg: #F2E8D8;
  --surface: #FAF5EC;
  --bronze: #A87432;
  --bronze-hover: #805522;
  --accent-line: #C49A59;
  --text: #30251B;
  --muted: #625648;
  --text-on-bronze: #FFF8ED;
  --line: #D8BE97;
  --font-head: "Frank Ruhl Libre", "Times New Roman", serif;
  --font-body: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --max: 1440px;
  --gutter: 20px;
  --section: 64px;
  --header-h: 76px;

  direction: rtl;
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
  text-align: start;
  letter-spacing: normal;
}
@media (min-width: 768px) { .sm-chrome { --gutter: 28px; --section: 80px; --header-h: 88px; } }
@media (min-width: 1024px) { .sm-chrome { --gutter: 48px; --section: 96px; --header-h: 100px; font-size: 1.1875rem; } }

/* The Hello theme styles its own .site-header / .site-footer (centred 1140px flex rows). Undo that here. */
.sm-chrome.site-header, .sm-chrome.site-footer, .sm-chrome.lead-form {
  display: block; width: 100%; max-width: none; margin: 0; padding-inline: 0; float: none;
}
.sm-chrome.site-header { padding-block: 0; }

.sm-chrome, .sm-chrome *, .sm-chrome *::before, .sm-chrome *::after { box-sizing: border-box; }
.sm-chrome ul { margin: 0; padding: 0; list-style: none; }
.sm-chrome address { font-style: normal; margin: 0; }
.sm-chrome .wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sm-chrome .sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.sm-chrome a { text-decoration: none; }

/* ---------- Header ---------- */
.sm-chrome.site-header { position: relative; z-index: 20; background: var(--bronze); color: var(--text-on-bronze); }
.sm-chrome .site-header__inner {
  display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px;
}
.sm-chrome .brand { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--text); line-height: 1.2; }
.sm-chrome .brand:hover { color: var(--text); }
.sm-chrome .brand__name { font-family: var(--font-head); font-size: 1.625rem; letter-spacing: 0.12em; font-weight: 700; }
.sm-chrome .brand__desc { font-size: 1rem; color: var(--muted); }
.sm-chrome.site-header .brand, .sm-chrome.site-header .brand:hover, .sm-chrome.site-header .brand__desc { color: var(--text-on-bronze); }
.sm-chrome.site-header .brand__desc { font-size: 1.1875rem; font-weight: 700; line-height: 1.4; }
@media (min-width: 1024px) { .sm-chrome .brand__name { font-size: 2rem; } }

.sm-chrome .nav-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px;
  background: none; border: 1px solid var(--text-on-bronze); border-radius: 0; box-shadow: none;
  font-family: var(--font-body); font-size: 1.1875rem; font-weight: 700; line-height: 1.2; color: var(--text-on-bronze); cursor: pointer;
}
.sm-chrome .nav-toggle:hover, .sm-chrome .nav-toggle:focus { background: none; color: var(--text-on-bronze); }
.sm-chrome .nav-toggle__bars, .sm-chrome .nav-toggle__bars::before, .sm-chrome .nav-toggle__bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; content: "";
}
.sm-chrome .nav-toggle__bars { position: relative; }
.sm-chrome .nav-toggle__bars::before { position: absolute; top: -6px; }
.sm-chrome .nav-toggle__bars::after { position: absolute; top: 6px; }

.sm-chrome .site-nav {
  display: none; position: absolute; inset-inline: 0; top: 100%;
  background: var(--bronze); border-top: 1px solid var(--accent-line); padding: 4px var(--gutter) 20px;
}
.sm-chrome .site-nav.is-open { display: block; }
.sm-chrome .site-nav a {
  display: flex; align-items: center; min-height: 56px;
  color: var(--text-on-bronze); text-decoration: none; font-size: 1.1875rem; font-weight: 700; line-height: 1.4;
  border-bottom: 1px solid var(--accent-line);
}
.sm-chrome .site-nav li:last-child a { border-bottom: 0; }
.sm-chrome .site-nav a:hover { color: var(--text-on-bronze); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.sm-chrome .site-nav__lang a { letter-spacing: 0.03em; }

@media (min-width: 1024px) {
  .sm-chrome .nav-toggle { display: none; }
  .sm-chrome .site-nav { display: block; position: static; padding: 0; border: 0; background: none; }
  .sm-chrome .site-nav ul { display: flex; align-items: center; gap: clamp(20px, 2.5vw, 44px); }
  .sm-chrome .site-nav a { position: relative; min-height: 48px; border: 0; white-space: nowrap; }
  .sm-chrome .site-nav a:hover { text-decoration: none; }
  .sm-chrome .site-nav a::after {
    content: ""; position: absolute; inset-inline: 0; bottom: 6px; height: 2px; background: var(--surface); opacity: 0; transition: opacity 0.2s;
  }
  .sm-chrome .site-nav a:hover::after { opacity: 1; }
  .sm-chrome .site-nav__lang { padding-inline-start: clamp(14px, 1.6vw, 28px); border-inline-start: 1px solid var(--accent-line); }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .sm-chrome .site-header__inner { gap: 18px; }
  .sm-chrome.site-header .brand__name { font-size: 1.75rem; }
  .sm-chrome .site-nav ul { gap: 14px; }
  /* Seven menu items (with "בניית אהילים וגופי תאורה", 14.10.2026): set a little tighter to fit the row. */
  .sm-chrome .site-nav a { font-size: 1.0625rem; }
}
@media (max-width: 599px) {
  .sm-chrome .site-header__inner { gap: 12px; }
  .sm-chrome.site-header .brand__name { font-size: 1.375rem; letter-spacing: .08em; }
  .sm-chrome .nav-toggle { padding-inline: 12px; min-width: 48px; justify-content: center; }
  .sm-chrome .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Quick-contact icons (same arrangement as on the new pages: own row below 1600px, brand never wraps). */
.sm-chrome .site-header__inner { flex-wrap: wrap; }
@media (min-width: 1024px) { .sm-chrome.site-header .brand { flex: none; white-space: nowrap; } }
.sm-chrome .site-header__social {
  display: flex; align-items: center; justify-content: flex-start; gap: 4px;
  flex: 0 0 100%; order: 3; margin: 0; padding: 4px 0; list-style: none;
  border-top: 1px solid var(--accent-line);
}
.sm-chrome .site-header__social a {
  display: grid; place-items: center; width: 48px; height: 48px; min-height: 48px; padding: 0;
  color: var(--text-on-bronze); border: 1px solid transparent; transition: border-color 0.2s, background-color 0.2s;
}
.sm-chrome .site-header__social a:hover { color: var(--text-on-bronze); border-color: var(--text-on-bronze); background: var(--bronze-hover); }
.sm-chrome .site-header__social svg { width: 26px; height: 26px; fill: none; color: inherit; }
@media (min-width: 1600px) {
  .sm-chrome .site-header__inner { flex-wrap: nowrap; }
  .sm-chrome .site-nav { margin-inline-start: auto; }
  .sm-chrome .site-header__social {
    flex: 0 0 auto; order: 0; padding: 0; border-top: 0;
    padding-inline-start: 16px; border-inline-start: 1px solid var(--accent-line);
  }
}

/* ---------- Lead form section (the form that used to live in the old footer) ---------- */
.sm-chrome.lead-form { background: var(--bg); color: var(--text); border-top: 1px solid var(--line); padding-block: var(--section); }
.sm-chrome .lead-form__inner { max-width: 860px; }
.sm-chrome.lead-form h2 {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.75rem, 1.55rem + 0.9vw, 2.25rem);
  line-height: 1.18; color: var(--text); margin: 0 0 28px; padding: 0 0 16px; position: relative; text-align: start;
}
.sm-chrome.lead-form h2::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 48px; height: 2px; background: var(--accent-line);
}
.sm-chrome .form { padding: clamp(20px, 3vw, 40px); border: 1px solid var(--line); background: var(--surface); }
/* The child theme forces one button colour on every Elementor button with !important; inside the new
   section the submit button follows the new design. */
.sm-chrome.lead-form .elementor-form .elementor-button[type="submit"],
.sm-chrome.lead-form .elementor-form .elementor-button[type="submit"]:visited {
  background-color: var(--bronze) !important; color: var(--text-on-bronze) !important;
}
.sm-chrome.lead-form .elementor-form .elementor-button[type="submit"]:hover,
.sm-chrome.lead-form .elementor-form .elementor-button[type="submit"]:focus {
  background-color: var(--bronze-hover) !important; color: var(--text-on-bronze) !important;
}

/* ---------- Footer ---------- */
.sm-chrome.site-footer {
  background: var(--bg); color: var(--text); border-top: 2px solid var(--accent-line); font-size: 1.0625rem;
}
.sm-chrome .site-footer__inner { display: grid; padding-block: 18px; }
.sm-chrome .site-footer__col { min-width: 0; padding-block: 30px; border-bottom: 1px solid var(--line); }
.sm-chrome .site-footer__col:last-child { border-bottom: 0; }
.sm-chrome .site-footer__brand .brand { width: 100%; gap: 12px; align-items: flex-start; }
.sm-chrome .site-footer__brand .brand__name { font-size: clamp(2rem, 2.5vw, 2.5rem); letter-spacing: .085em; line-height: 1.1; }
.sm-chrome .site-footer__brand .brand__desc { color: var(--muted); font-size: 1.0625rem; line-height: 1.7; }
.sm-chrome .site-footer__brand .brand::after {
  content: ""; display: block; width: 48px; height: 2px; margin-top: 14px; background: var(--accent-line);
}
.sm-chrome.site-footer h2 {
  font-family: var(--font-head); font-size: 1.4375rem; font-weight: 700; line-height: 1.18; color: var(--text);
  margin: 0 0 18px; padding: 0 0 16px; position: relative; text-align: start; text-shadow: none;
}
.sm-chrome.site-footer h2::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 48px; height: 2px; background: var(--accent-line);
}
.sm-chrome.site-footer ul { display: grid; gap: 2px; }
.sm-chrome.site-footer li a, .sm-chrome.site-footer li .footer-item {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; max-width: 100%;
  color: var(--text); text-decoration: none; font-size: 1.0625rem; font-weight: 400; line-height: 1.7;
}
.sm-chrome .site-footer__contact a span[dir="ltr"] { overflow-wrap: anywhere; min-width: 0; }
.sm-chrome.site-footer li a:hover { color: var(--bronze-hover); text-decoration: underline; }
.sm-chrome.site-footer svg { flex: none; width: 20px; height: 20px; color: var(--bronze); fill: none; }
.sm-chrome .site-footer__legal {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 24px; min-height: 72px; padding-block: 18px; position: relative; font-size: 1rem; color: var(--muted);
}
.sm-chrome .site-footer__legal::before {
  content: ""; position: absolute; inset-inline: var(--gutter); top: 0; height: 1px; background: var(--line);
}
.sm-chrome .site-footer__legal a { color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; }
.sm-chrome .site-footer__legal a:hover { color: var(--text); }
@media (min-width: 900px) {
  .sm-chrome .site-footer__inner { grid-template-columns: 1.2fr .85fr 1.2fr; padding-block: 72px 64px; }
  .sm-chrome .site-footer__col { padding-block: 0; padding-inline: clamp(48px, 4vw, 64px); border-bottom: 0; border-inline-start: 1px solid var(--line); }
  .sm-chrome .site-footer__col:first-child { padding-inline-start: 0; border-inline-start: 0; }
  .sm-chrome .site-footer__col:last-child { padding-inline-end: 0; }
}

/* ---------- Floating widgets on small screens (same arrangement as on the six pages) ---------- */
@media (max-width: 767px) {
  #cwas-a11y-widget { --cwas-trigger-top-mobile: calc(100% - 134px) !important; }
  /* These pages also keep the old "back to top" button in the bottom-right corner,
     so the legal lines end above both corners. */
  .sm-chrome .site-footer__legal { flex-direction: column; align-items: flex-start; gap: 0; padding-inline-end: 84px; padding-bottom: 76px; }
}

/* Wider screens: keep the legal link clear of the reCAPTCHA badge in the bottom-left corner. */
@media (min-width: 768px) {
  body:has(.grecaptcha-badge) .sm-chrome .site-footer__legal { padding-inline-end: 92px; }
}

/* The child theme's own accessibility-statement bar: the new footer already links to the statement. */
.midlight-accessibility-footer-link { display: none; }

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