@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@300;400;500;600;700;800&display=swap');

/* ===== Brand colors ===== */
.elementor-kit-40 {
  --e-global-color-primary: #3E2F23;
  --e-global-color-secondary: #FFFFFF;
  --e-global-color-text: #55483C;
  --e-global-color-accent: #4F7A5B;
  --e-global-color-14ef391: #E9F0E6;
  --e-global-color-764183d: #F6EFE6;
}
.site-title a { color: #3E2F23 !important; }
.site-header, .site-footer { background-color: #FFFFFF; }
.site-header { border-bottom: 1px solid #EFE9DC; }
.site-footer { border-top: 1px solid #EFE9DC; padding-top: 20px; }
html { scroll-behavior: smooth; }

/* ===== Typography system (Assistant) ===== */
body, h1, h2, h3, h4, h5, h6, p, a, li, span, button, input, textarea,
.elementor-heading-title, .elementor-button, .elementor-icon-box-title,
.elementor-icon-box-description, .elementor-accordion-title, .elementor-tab-content,
.elementor-icon-list-text, .site-title a, .site-description {
  font-family: 'Assistant', sans-serif !important;
}

h1, .elementor-widget-heading h1.elementor-heading-title {
  font-size: 46px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
}
h2, .elementor-widget-heading h2.elementor-heading-title {
  font-size: 32px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}
h3, .elementor-icon-box-title, .elementor-accordion-title, .elementor-tab-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}
p, .elementor-widget-text-editor p {
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
}
.elementor-icon-box-description, .elementor-tab-content, .elementor-tab-content p {
  font-size: 15.5px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  color: #6B5D4F !important;
}
.elementor-icon-list-text {
  font-size: 16px !important;
  font-weight: 400 !important;
}
.elementor-button, .elementor-button-text {
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
}
.site-title a {
  font-size: 24px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
}
.elementor-widget-heading p.elementor-heading-title {
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  color: #6B5D4F !important;
}

@media (max-width: 1024px) {
  h1, .elementor-widget-heading h1.elementor-heading-title { font-size: 36px !important; }
  h2, .elementor-widget-heading h2.elementor-heading-title { font-size: 28px !important; }
}
@media (max-width: 767px) {
  h1, .elementor-widget-heading h1.elementor-heading-title { font-size: 30px !important; }
  h2, .elementor-widget-heading h2.elementor-heading-title { font-size: 24px !important; }
  h3, .elementor-icon-box-title, .elementor-accordion-title, .elementor-tab-title { font-size: 18px !important; }
  p, .elementor-widget-text-editor p { font-size: 16px !important; }
  .elementor-widget-heading p.elementor-heading-title { font-size: 16px !important; }
}

/* ===== Buttons ===== */
.elementor-button {
  border-radius: 10px !important;
  padding: 14px 30px !important;
  box-shadow: 0 6px 18px rgba(79,122,91,.25) !important;
  transition: transform .25s ease, box-shadow .25s ease !important;
}
.elementor-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(79,122,91,.35) !important;
}

/* ===== Cards polish ===== */
.elementor-widget-icon-box .elementor-icon-box-wrapper {
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
.elementor-widget-icon-box:hover .elementor-icon-box-wrapper {
  box-shadow: 0 16px 34px rgba(62,47,35,.14);
  border-color: #4F7A5B !important;
}

/* ===== Images ===== */
.elementor-widget-image img {
  box-shadow: 0 25px 60px -18px rgba(62,47,35,.35);
}

/* Accordion (FAQ) polish */
.elementor-accordion-item { border-color: #E9E3D8 !important; }
.elementor-accordion-title { color: #3E2F23 !important; }
.elementor-tab-content { color: #6B5D4F !important; }

/* Social icons polish */
.elementor-social-icon { transition: transform .25s ease, box-shadow .25s ease !important; }
.elementor-social-icon:hover { transform: translateY(-3px) scale(1.05); }


/* ===== Footer navigation menu (force visible - theme toggle blocked by Kit save bug) ===== */
.site-footer .site-navigation.hide { display: block !important; }
.site-footer .site-navigation ul.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 14px 0;
}
.site-footer .site-navigation ul.menu li { margin: 0; }
.site-footer .site-navigation ul.menu a {
  color: #55483C;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: color .2s ease;
}
.site-footer .site-navigation ul.menu a:hover { color: #4F7A5B; }


/* =========================================================
   ROUND 3 — DESIGN UPGRADE (premium polish pass)
   ========================================================= */

/* ---- Fix: logo took over header (no size cap existed) ---- */
.site-header .custom-logo,
.site-footer .custom-logo {
  max-height: 54px !important;
  width: auto !important;
  height: auto !important;
}
.site-header .site-logo,
.site-footer .site-logo { display: flex; align-items: center; }
.site-header .header-inner,
.site-footer .footer-inner { align-items: center; }

/* ---- Subtle paper-grain texture on body for depth (very low opacity) ---- */
body {
  background-color: #FFFFFF;
  background-image: radial-gradient(rgba(62,47,35,0.025) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ---- Eyebrow / kicker badge (apply via Elementor "CSS Classes" = eyebrow) ---- */
.eyebrow { margin-bottom: 14px !important; }
.eyebrow .elementor-heading-title {
  display: inline-block !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: 2.2px !important;
  text-transform: uppercase !important;
  color: #4F7A5B !important;
  background: #E9F0E6 !important;
  padding: 7px 18px !important;
  border-radius: 30px !important;
  line-height: 1.4 !important;
}

/* ---- Buttons: more premium feel (gradient + lifted hover + icon spacing) ---- */
.elementor-button {
  background-image: linear-gradient(135deg, #4F7A5B 0%, #3F6249 100%) !important;
  box-shadow: 0 8px 20px -6px rgba(79,122,91,0.45) !important;
  letter-spacing: .3px;
  transition: transform .25s ease, box-shadow .25s ease !important;
}
.elementor-button:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 14px 28px -8px rgba(79,122,91,0.55) !important;
}
.elementor-button .elementor-button-icon { margin-inline-start: 8px; }


/* ===== ROUND 4: Learn-list 2-column layout for better balance ===== */
.elementor-element-fbbf313 .elementor-icon-list-items {
  column-count: 2;
  column-gap: 40px;
}
.elementor-element-fbbf313 .elementor-icon-list-item {
  break-inside: avoid;
  margin-bottom: 6px;
}


/* ===== Lead capture form (Jetpack contact form) ===== */
.lead-form-section {
  max-width: 640px;
}
.lead-form-section .eyebrow { margin-bottom: 10px !important; }
.lead-form-section h2.elementor-heading-title { margin-bottom: 6px; }
.lead-form .contact-form {
  width: 100%;
  margin-top: 18px;
}
.lead-form .grunion-field-wrap {
  margin-bottom: 18px;
}
.lead-form .grunion-field-label {
  display: block;
  font-weight: 700;
  color: #3E2F23;
  font-size: 14.5px;
  margin-bottom: 6px;
}
.lead-form .grunion-field-label span {
  font-weight: 400;
  color: #9C8C7A;
  font-size: 12.5px;
}
.lead-form .grunion-field {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid #E5DCCB;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  color: #3E2F23;
  background: #FFFFFF;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.lead-form textarea.grunion-field {
  min-height: 130px;
  resize: vertical;
}
.lead-form .grunion-field:focus {
  outline: none;
  border-color: #4F7A5B;
  box-shadow: 0 0 0 3px rgba(79,122,91,0.15);
}
.lead-form .contact-submit {
  margin-top: 4px;
}
.lead-form button.pushbutton-wide {
  display: inline-block;
  width: 100%;
  border: none;
  border-radius: 50px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF !important;
  cursor: pointer;
  background-image: linear-gradient(135deg, #4F7A5B 0%, #3F6249 100%) !important;
  box-shadow: 0 8px 20px -6px rgba(79,122,91,0.45) !important;
  transition: transform .25s ease, box-shadow .25s ease !important;
}
.lead-form button.pushbutton-wide:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 14px 28px -8px rgba(79,122,91,0.55) !important;
}
.lead-form .contact-form p.grunion-field-wrap:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 8px;
}


/* ===== Compact lead form (home page CTA) ===== */
.lead-form-compact form.contact-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  max-width: 480px;
}
.lead-form-compact .grunion-field-wrap {
  flex: 1 1 160px;
  margin-bottom: 0 !important;
}
.lead-form-compact .contact-submit {
  flex: 1 1 100%;
  margin-top: 2px;
}
.lead-form-compact button.pushbutton-wide {
  width: auto;
  padding: 12px 32px;
}


/* ===== Header redesign ===== */
.site-header.header-full-width {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #FFFFFF;
  box-shadow: 0 1px 0 rgba(62,47,35,0.07), 0 12px 28px -22px rgba(62,47,35,0.35);
}
.site-header .header-inner {
  max-width: 1320px;
  margin: 0 auto;
  min-height: 88px;
}
.site-header .custom-logo, .site-footer .custom-logo {
  max-height: 50px !important;
}
.site-navigation ul.menu > li {
  margin-inline-start: 8px;
}
.site-navigation ul.menu > li > a {
  font-weight: 600;
  font-size: 15.5px;
  color: #3E2F23;
  letter-spacing: .2px;
  padding: 8px 14px !important;
  border-radius: 8px;
  position: relative;
  transition: color .2s ease, background-color .2s ease;
}
.site-header .site-navigation ul.menu > li > a:hover {
  color: #4F7A5B;
  background-color: #F3F1EA;
}
.site-header .site-navigation ul.menu > li.current-menu-item > a {
  color: #4F7A5B;
  font-weight: 700;
}
.site-header .site-navigation ul.menu > li.current-menu-item > a::after {
  content: '';
  position: absolute;
  bottom: 3px;
  right: 14px;
  left: 14px;
  height: 2px;
  border-radius: 2px;
  background: #4F7A5B;
}
/* header CTA button (menu item with nav-cta class) */
.site-navigation ul.menu > li.nav-cta {
  margin-inline-start: 14px;
}
.site-navigation ul.menu > li.nav-cta > a {
  background-image: linear-gradient(135deg, #4F7A5B 0%, #3F6249 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700;
  padding: 10px 22px !important;
  border-radius: 50px;
  box-shadow: 0 6px 16px -6px rgba(79,122,91,0.5);
  transition: transform .25s ease, box-shadow .25s ease !important;
}
.site-navigation ul.menu > li.nav-cta > a:hover {
  background-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -6px rgba(79,122,91,0.6);
}
.site-navigation ul.menu > li.nav-cta.current-menu-item > a::after {
  display: none;
}
.site-footer .site-navigation ul.menu > li.nav-cta {
  display: none;
}


/* ===== Elegant accent divider (replaces plain default line) ===== */
.accent-divider .elementor-divider-separator {
  border-top-width: 3px !important;
  border-radius: 3px;
}

/* ===== Nicer current-page nav indicator ===== */
.site-header .site-navigation ul.menu > li.current-menu-item > a::after {
  height: 3px;
  bottom: 2px;
  background: linear-gradient(90deg, #4F7A5B, #7BA487);
  box-shadow: 0 1px 3px rgba(79,122,91,0.4);
}


/* ================================
   Professional polish pass (clean, modern, card/hover based —
   inspired by studio-agency sites; CSS-only, no Elementor Pro needed)
   ================================ */

/* Smooth in-page scrolling + brand-colored text selection */
html { scroll-behavior: smooth; }
::selection { background: #4F7A5B; color: #FFFFFF; }

/* Content images: soft rounded corners + elevated shadow + gentle hover zoom */
.elementor-widget-image { overflow: hidden; border-radius: 18px; }
.elementor-widget-image img { border-radius: 18px; box-shadow: 0 24px 48px -24px rgba(62,47,35,0.35); transition: transform .6s cubic-bezier(.16,1,.3,1); display: block; }
.elementor-widget-image:hover img { transform: scale(1.035); }

/* Icon boxes (feature cards): lift on hover + icon micro-interaction */
.elementor-widget-icon-box { transition: transform .35s cubic-bezier(.16,1,.3,1); border-radius: 16px; }
.elementor-widget-icon-box:hover { transform: translateY(-6px); }
.elementor-icon-box-icon .elementor-icon { transition: transform .35s cubic-bezier(.16,1,.3,1); }
.elementor-widget-icon-box:hover .elementor-icon-box-icon .elementor-icon { transform: scale(1.08) rotate(-4deg); }

/* Buttons sitewide: consistent lift + shadow on hover */
.elementor-button, a.elementor-button, button.elementor-button {
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease, background-color .25s ease !important;
}
.elementor-button:hover, a.elementor-button:hover, button.elementor-button:hover {
  transform: translateY(-3px);
}

/* FAQ / accordion polish: hover background, active-item accent color, icon rotation */
.elementor-accordion-item { border-radius: 12px !important; overflow: hidden; }
.elementor-tab-title { transition: background-color .25s ease, color .25s ease; cursor: pointer; }
.elementor-tab-title:hover { background-color: #F3F1EA; color: #4F7A5B; }
.elementor-tab-title.elementor-active { color: #4F7A5B; }
.elementor-accordion-icon svg { transition: transform .3s ease; }
.elementor-tab-title.elementor-active .elementor-accordion-icon svg { transform: rotate(180deg); }

/* Smoother, more premium entrance-animation timing (replaces animate.css's abrupt default) */
.elementor-widget, .e-con { animation-timing-function: cubic-bezier(.16,1,.3,1) !important; }

/* Inline text links inside paragraphs: crafted sliding underline on hover */
.elementor-widget-text-editor a:not(.elementor-button-link) {
  background-image: linear-gradient(#4F7A5B, #4F7A5B);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition: background-size .3s ease;
  padding-bottom: 2px;
}
.elementor-widget-text-editor a:not(.elementor-button-link):hover {
  background-size: 100% 2px;
}

/* Signature dashed accent underline beneath the home hero headline */
.hero-heading-accent { position: relative; padding-bottom: 20px; display: inline-block; }
.hero-heading-accent::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 170px;
  height: 8px;
  background-image: repeating-linear-gradient(90deg, #4F7A5B 0 10px, transparent 10px 18px);
  opacity: .6;
}

/* Fix: lead-form widgets were shrinking to their content's natural width
   (~90-180px, making fields tiny) because the parent Elementor container
   uses align-items:center — override so the form widget stretches full-width */
.lead-form, .lead-form-compact {
  width: 100% !important;
  align-self: stretch !important;
}
.lead-form .jetpack-contact-form-container,
.lead-form .contact-form,
.lead-form-compact .jetpack-contact-form-container,
.lead-form-compact .contact-form {
  width: 100%;
}

/* Fix: compact lead-form (home page) fields were squeezing to ~117px wide
   side-by-side in a narrow column. Give them a comfortable minimum width so
   they wrap to full-width stacked fields instead of shrinking too small. */
.lead-form-compact .grunion-field-wrap {
  min-width: 200px;
}

/* Real root cause of "fields too small": a Jetpack form stylesheet rule
   was forcing single-line <input> fields (text/email/tel — NOT textarea,
   NOT the submit button, which were already full-width) to exactly half
   their available width on both the contact page and home page forms.
   Force full width with !important to win that specificity fight. */
.lead-form input.grunion-field {
  width: 100% !important;
}

/* ================================
   Footer redesign — was a bare white row (menu links + copyright line).
   Gives it a soft branded background, brings back the logo, and adds
   proper spacing/dividers so it reads as a designed footer, not an
   afterthought. Applies site-wide (theme footer, shared by all pages).
   ================================ */
.site-footer.dynamic-footer {
  background-color: #F8F4EC;
  border-top: 1px solid #ECE3D1;
}
.site-footer .footer-inner {
  padding: 52px 24px 30px;
  max-width: 1320px;
  margin: 0 auto;
}
.site-footer .site-branding {
  display: flex !important;
  justify-content: center;
  margin-bottom: 22px;
}
.site-footer .site-logo {
  display: block !important;
}
.site-footer .custom-logo {
  max-height: 46px !important;
}
.site-footer .site-navigation {
  display: block !important;
  margin-bottom: 24px;
}
.site-footer .site-navigation ul.menu {
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.site-footer .site-navigation ul.menu > li > a {
  color: #6B5C4A;
  font-weight: 600;
  font-size: 14.5px;
  padding: 6px 12px !important;
  border-radius: 8px;
  transition: color .2s ease, background-color .2s ease;
}
.site-footer .site-navigation ul.menu > li > a:hover {
  color: #4F7A5B;
  background-color: rgba(79,122,91,0.08);
}
.site-footer .copyright {
  border-top: 1px solid #E5DCCB;
  padding-top: 20px;
  text-align: center;
}
.site-footer .copyright p {
  color: #9C8C7A;
  font-size: 13px;
  letter-spacing: .2px;
  margin: 0;
}

/* ================================================================
   UI/UX + SCROLL PASS
   Brand green #4F7A5B and the Assistant font are preserved
   throughout — no font-family is overridden anywhere below.
   ================================================================ */

/* ---- Typography rhythm: fluid sizes + Hebrew-friendly line-height ---- */
h1.elementor-heading-title { font-size: clamp(30px, 4.2vw, 52px) !important; line-height: 1.2 !important; letter-spacing: -0.4px; }
h2.elementor-heading-title { font-size: clamp(25px, 2.9vw, 38px) !important; line-height: 1.28 !important; letter-spacing: -0.3px; }
h3.elementor-heading-title { font-size: clamp(18px, 1.5vw, 22px) !important; line-height: 1.4 !important; }
.elementor-widget-text-editor { font-size: clamp(15.5px, 1.1vw, 17px); line-height: 1.85; }
.elementor-icon-box-title { line-height: 1.35; }
.elementor-icon-box-description { line-height: 1.75; font-size: 15px; }
.elementor-tab-title { font-size: clamp(16px, 1.25vw, 18px) !important; line-height: 1.45; }
.elementor-icon-list-text { line-height: 1.7; }

/* Sticky header offset so anchor links don't hide under it */
:target { scroll-margin-top: 110px; }

/* ---- Icon circles: soft green halo behind each feature icon ---- */
.elementor-icon-box-icon .elementor-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #F1F6F1 0%, #E3EDE5 100%);
  box-shadow: 0 8px 20px -10px rgba(79,122,91,0.5), inset 0 0 0 1px rgba(79,122,91,0.10);
}
.elementor-widget-icon-box:hover .elementor-icon-box-icon .elementor-icon {
  background: linear-gradient(135deg, #4F7A5B 0%, #3F6249 100%);
  box-shadow: 0 12px 26px -10px rgba(79,122,91,0.65);
}
.elementor-widget-icon-box:hover .elementor-icon-box-icon .elementor-icon svg { fill: #FFFFFF; }
.elementor-icon-box-icon .elementor-icon svg { transition: fill .3s ease; }

/* ---- Feature cards: real depth, green accent on hover ---- */
.e-con:has(> .elementor-widget-icon-box) {
  box-shadow: 0 2px 4px -2px rgba(62,47,35,0.05), 0 12px 28px -18px rgba(62,47,35,0.22);
  transition: box-shadow .35s cubic-bezier(.16,1,.3,1), border-color .35s ease, transform .35s cubic-bezier(.16,1,.3,1);
}
.e-con:has(> .elementor-widget-icon-box):hover {
  border-color: rgba(79,122,91,0.45) !important;
  box-shadow: 0 6px 12px -6px rgba(62,47,35,0.08), 0 26px 50px -24px rgba(79,122,91,0.42);
  transform: translateY(-5px);
}

/* ---- Accessibility: visible focus ring in brand green ---- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, .elementor-button:focus-visible {
  outline: 3px solid rgba(79,122,91,0.55);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- Scroll progress bar (brand green, grows from the right for RTL) ---- */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    body::before {
      content: '';
      position: fixed;
      top: 0; right: 0; left: 0;
      height: 3px;
      z-index: 100000;
      transform-origin: right center;
      background: linear-gradient(90deg, #7BA487 0%, #4F7A5B 100%);
      animation: yf-scroll-progress linear both;
      animation-timeline: scroll(root block);
    }
    @keyframes yf-scroll-progress {
      from { transform: scaleX(0); }
      to   { transform: scaleX(1); }
    }
  }
}

/* ---- Scroll-linked parallax on content images (masked by the rounded frame) ---- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .elementor-widget-image img {
      animation: yf-img-parallax linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
      will-change: transform;
    }
    @keyframes yf-img-parallax {
      from { transform: scale(1.14) translateY(-3%); }
      to   { transform: scale(1.14) translateY(3%); }
    }
    /* parallax owns transform now — hover reads as a light lift instead */
    .elementor-widget-image:hover img { transform: none; filter: saturate(1.08) brightness(1.03); }
    .elementor-widget-image img { transition: filter .45s ease; }
  }
}