/* בתיה סריקוב — אתר חדש | v0.1
   Warm, approachable, RTL-first. Vanilla CSS, no build step. */

:root {
  --color-primary: #c97b5c;
  --color-primary-dark: #a85d42;
  --color-secondary: #3a6b63;
  --color-secondary-light: #e8f0ee;
  --color-bg: #fff8f3;
  --color-bg-alt: #fdeee4;
  --color-text: #2e2a28;
  --color-text-light: #6b6460;
  --color-white: #ffffff;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(60, 40, 30, 0.08);
  --max-width: 1080px;
  --font: "Heebo", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* Smooth cross-page navigation. Falls back to an instant page change in any
   browser that doesn't support it, so nothing else here depends on it. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 17px;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--color-primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(28px, 5vw, 42px); }
h2 { font-size: clamp(24px, 4vw, 32px); margin-bottom: 16px; }
h3 { font-size: 20px; margin-bottom: 8px; }
p { margin-bottom: 14px; }

/* --- Header / Nav --- */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid #f0e4da;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.nav__brand { font-size: 20px; font-weight: 700; color: var(--color-secondary); }
.nav__brand span { color: var(--color-primary); }
.nav__links { display: flex; gap: 28px; list-style: none; }
.nav__links a { color: var(--color-text); font-weight: 500; }
.nav__cta {
  background: var(--color-primary);
  color: var(--color-white) !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none !important;
}
.nav__cta:hover { background: var(--color-primary-dark); }
.nav__toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; }

@media (max-width: 760px) {
  .nav__links { display: none; position: absolute; top: 100%; inset-inline-start: 0; inset-inline-end: 0; background: var(--color-white); flex-direction: column; padding: 16px 20px; gap: 16px; border-bottom: 1px solid #f0e4da; }
  .nav__links.is-open { display: flex; }
  .nav__toggle { display: block; }
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 56px;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}
.hero--compact { padding: 48px 0; }
.hero--compact .container { position: relative; z-index: 1; }
.hero__decor {
  position: absolute;
  inset-inline-end: -40px;
  top: -20px;
  width: 360px;
  max-width: 42vw;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}
.hero--compact .hero__decor {
  width: 190px;
  max-width: 30vw;
  top: -36px;
  inset-inline-end: -30px;
  opacity: 0.4;
}
/* Below this width the hero grid stacks into one column, so the decorative
   illustration would otherwise float on top of the heading and paragraph
   instead of sitting beside them. Content wins; the illustration steps aside.
   The compact hero (about/services/seminars) never had a second column, so
   its already-small, already-faint corner version just shrinks further. */
@media (max-width: 860px) {
  .hero__decor { display: none; }
  .hero--compact .hero__decor { display: block; width: 120px; opacity: 0.3; top: -22px; }
}
@media (max-width: 480px) {
  .hero--compact .hero__decor { width: 90px; opacity: 0.25; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__decor { animation: float-gentle 7s ease-in-out infinite; }
}
@keyframes float-gentle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(1.5deg); }
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; } }
.hero__eyebrow { color: var(--color-secondary); font-weight: 700; margin-bottom: 10px; }
.hero__tagline {
  display: inline-block;
  background: var(--color-secondary-light);
  color: var(--color-secondary);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  margin: 20px 0;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.hero__card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  font-size: 16px;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(60, 40, 30, 0.14); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--color-primary); color: var(--color-white); }
.btn--primary:hover { background: var(--color-primary-dark); }
.btn--secondary { background: var(--color-white); color: var(--color-secondary); border: 2px solid var(--color-secondary); }
.btn--secondary:hover { background: var(--color-secondary-light); }
.btn--block { display: block; width: 100%; text-align: center; }

/* --- Sections --- */
.section { padding: 64px 0; }
.section--alt { background: var(--color-white); }
.section__intro { max-width: 640px; margin-bottom: 36px; }
.section__intro p { color: var(--color-text-light); }

/* --- Cards / grids --- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(60, 40, 30, 0.12); }
.card--muted { background: var(--color-bg-alt); box-shadow: none; }
.card--muted:hover { box-shadow: 0 10px 24px rgba(60, 40, 30, 0.08); }
.card__icon {
  font-size: 28px;
  margin-bottom: 12px;
  display: inline-block;
  transition: transform 0.25s ease;
}
.card:hover .card__icon { transform: scale(1.15) rotate(-4deg); }

/* --- Quote / case study --- */
.quote {
  border-right: 4px solid var(--color-primary);
  padding: 4px 20px;
  font-size: 19px;
  font-style: normal;
  color: var(--color-secondary);
  margin: 20px 0;
}

/* --- Seminar highlight box --- */
.seminar-box {
  background: var(--color-secondary);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 32px;
}
.seminar-box h2, .seminar-box h3 { color: var(--color-white); }
.seminar-box .btn--primary { background: var(--color-white); color: var(--color-secondary); }
.seminar-box .btn--primary:hover { background: #f0e4da; }

/* --- Forms --- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form input, .form textarea {
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid #ddd0c5;
  font-family: var(--font);
  font-size: 16px;
  background: var(--color-white);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--color-secondary); }
.form__status { font-size: 14px; min-height: 20px; }
.form__status--ok { color: var(--color-secondary); }
.form__status--err { color: #b23b3b; }

/* --- Footer --- */
.site-footer {
  background: var(--color-secondary);
  color: #e8f0ee;
  padding: 44px 0 28px;
  margin-top: 40px;
}
.site-footer a { color: var(--color-white); }
.footer__grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer__note { font-size: 13px; opacity: 0.75; margin-top: 24px; }

/* --- Scroll reveal ---
   Pure progressive enhancement: purely decorative, so browsers without
   scroll-driven animation support just show the content with no effect
   (no JS fallback needed per modern-web-guidance for decorative motion). */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .reveal {
      animation: reveal-in auto linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    @keyframes reveal-in {
      from { opacity: 0; translate: 0 28px; }
      to { opacity: 1; translate: 0 0; }
    }
  }
}

/* --- Chat widget --- */
.chat-widget {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 200;
}
#chat-bubble {
  position: relative;
  display: flex;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 3px solid var(--color-white);
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: var(--shadow);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#chat-bubble:hover,
#chat-bubble:focus-visible { transform: translateY(-3px) scale(1.04); box-shadow: 0 12px 28px rgba(60, 40, 30, 0.22); }
.chat-bubble__avatar { width: 100%; height: 100%; border-radius: 50%; }
.chat-bubble__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .chat-bubble__pulse { animation: chat-pulse 2.6s ease-out infinite; }
}
@keyframes chat-pulse {
  0% { opacity: 0.55; scale: 1; }
  80%, 100% { opacity: 0; scale: 1.55; }
}
/* Short hover clarification: not essential content, so it's fine if it's
   missed. Plain CSS + ARIA rather than the popover/interestfor API, since
   that API currently has no Firefox or Safari support. */
.chat-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  inset-inline-start: 0;
  min-width: 190px;
  max-width: 220px;
  background: var(--color-text);
  color: var(--color-white);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  pointer-events: none;
}
.chat-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  inset-inline-start: 22px;
  border: 7px solid transparent;
  border-top-color: var(--color-text);
}
#chat-bubble:hover + .chat-tooltip,
#chat-bubble:focus-visible + .chat-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#chat-panel {
  position: fixed;
  bottom: 94px;
  left: 22px;
  width: 320px;
  max-width: calc(100vw - 44px);
  height: 420px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 200;
}
#chat-panel.is-open { display: flex; }
#chat-panel__header { background: var(--color-secondary); color: var(--color-white); padding: 14px 18px; font-weight: 700; }
#chat-panel__messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.chat-msg { max-width: 85%; padding: 9px 13px; border-radius: 12px; }
.chat-msg--bot { background: var(--color-bg-alt); align-self: flex-start; }
.chat-msg--user { background: var(--color-secondary-light); align-self: flex-end; }
#chat-panel__form { display: flex; border-top: 1px solid #f0e4da; }
#chat-panel__input { flex: 1; border: none; padding: 12px 14px; font-family: var(--font); font-size: 14px; }
#chat-panel__input:focus { outline: none; }
#chat-panel__send { background: var(--color-primary); color: var(--color-white); border: none; padding: 0 18px; cursor: pointer; font-weight: 700; }
