/* ============================================
   ד"ר אלדד כץ — אתר מרפאה
   מערכת עיצוב משותפת
   ============================================ */

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

:root {
  /* Palette — classic white + deep navy + warm clay accent */
  --bg: #ffffff;
  --bg-soft: #f6f3ee;
  --bg-section: #f9f7f3;
  --bg-dark: #0f2540;
  --primary: #1a3a5c;
  --primary-700: #122a44;
  --primary-100: #e6ecf3;
  --accent: #a07857;        /* warm clay */
  --accent-soft: #d9c4ad;
  --line: #e7e2d8;
  --line-soft: #efeae0;

  --ink: #14181d;
  --ink-2: #3a434d;
  --ink-3: #6b7480;
  --ink-4: #99a0aa;

  /* Type */
  --serif: 'Assistant', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sans: 'Assistant', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --container: 1240px;
  --container-tight: 1080px;
  --radius: 4px;
  --radius-lg: 10px;

  --header-h: 84px;

  --shadow-sm: 0 1px 2px rgba(15,37,64,0.04), 0 1px 3px rgba(15,37,64,0.05);
  --shadow-md: 0 8px 28px rgba(15,37,64,0.08);
  --shadow-lg: 0 20px 60px rgba(15,37,64,0.12);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Footer-colored backdrop: if the browser still rubber-bands past the end,
     the over-scroll blends into the dark footer instead of flashing white. */
  background: var(--bg-dark);
  /* Stop elastic rubber-band scroll past the top/bottom (the white "stretch") */
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  direction: rtl;
  text-align: right;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--primary);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.18;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 4.4vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.2vw, 2.8rem); }
h3 { font-size: clamp(1.35rem, 1.8vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.lead {
  font-size: 1.2rem;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 60ch;
  text-wrap: pretty;
}

/* ============================================
   Layout
   ============================================ */

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

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

.section {
  padding: 110px 0;
}

.section-tight {
  padding: 80px 0;
}

.section--soft { background: var(--bg-soft); }
.section--section { background: var(--bg-section); }
.section--dark { background: var(--bg-dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-header {
  margin-bottom: 56px;
  max-width: 720px;
}

.section-header .eyebrow { margin-bottom: 16px; }

.section-header p {
  font-size: 1.1rem;
  color: var(--ink-2);
  margin-top: 18px;
  text-wrap: pretty;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all .2s ease;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--ghost:hover {
  background: var(--primary);
  color: #fff;
}

.btn--light {
  background: #fff;
  color: var(--primary);
}
.btn--light:hover {
  background: var(--bg-soft);
}

.btn--lg { padding: 18px 36px; font-size: 1.05rem; }
.btn--sm { padding: 10px 18px; font-size: 0.92rem; }

.btn .arrow {
  display: inline-block;
  transition: transform .2s ease;
}
.btn:hover .arrow { transform: translateX(-4px); }

/* ============================================
   Header
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
  display: flex;
  align-items: center;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo__mark {
  width: 44px;
  height: 44px;
  display: block;
  background-color: var(--primary);
  -webkit-mask: url(images/logo-ek.png) center / contain no-repeat;
          mask: url(images/logo-ek.png) center / contain no-repeat;
}

.logo__text {
  line-height: 1.1;
}

.logo__name {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.logo__sub {
  font-size: 0.72rem;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 16px;
  font-size: 0.98rem;
  color: var(--ink-2);
  font-weight: 500;
  border-radius: var(--radius);
  transition: color .15s ease;
  position: relative;
}

.site-nav a:hover { color: var(--primary); }

.site-nav a.is-active {
  color: var(--primary);
  font-weight: 600;
}

.site-nav a.is-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 16px;
  left: 16px;
  height: 2px;
  background: var(--accent);
}

.site-header__cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.98rem;
  padding: 8px 0;
}

.phone-link svg { width: 16px; height: 16px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  margin: 5px 0;
  transition: all .2s ease;
}

@media (max-width: 920px) {
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
    gap: 4px;
  }
  .site-nav.is-open {
    transform: translateY(0);
    visibility: visible;
    transition: transform .25s ease, visibility 0s linear 0s;
  }
  .site-nav a { padding: 14px 16px; font-size: 1.05rem; }
  .site-nav a.is-active::after { display: none; }
  .nav-toggle { display: block; }
  .site-header__cta .btn { display: none; }
}

/* ============================================
   Hero — home
   ============================================ */

.hero {
  position: relative;
  padding: 80px 0 100px;
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 90% 10%, rgba(160,120,87,0.06) 0%, transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(26,58,92,0.04) 0%, transparent 40%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__copy h1 {
  margin: 22px 0 24px;
}

.hero__copy h1 .subline {
  display: block;
  font-size: 0.45em;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink-3);
  margin-top: 12px;
  letter-spacing: -0.005em;
  font-style: normal;
}

.hero__lead {
  font-size: 1.15rem;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 540px;
  text-wrap: pretty;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 540px;
}

.hero__meta-item .num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--primary);
  font-weight: 500;
  line-height: 1;
  display: block;
}

.hero__meta-item .label {
  font-size: 0.85rem;
  color: var(--ink-3);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.hero__meta-item--text {
  border-right: 1px solid var(--accent);
  padding-right: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__meta-item--text .spec-tag {
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.hero__meta-item--text .spec-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 500;
  line-height: 1.25;
}

/* Hero portrait */

.hero__portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 480px;
  justify-self: start;
}

.hero__portrait .photo {
  width: 100%;
  height: 100%;
  background: #f3efe8;
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}

.hero__portrait .frame {
  position: absolute;
  inset: -16px 16px 16px -16px;
  border: 1px solid var(--accent);
  pointer-events: none;
  z-index: -1;
}

.hero__portrait .credential {
  position: absolute;
  bottom: -40px;
  left: -40px;
  background: #fff;
  padding: 22px 26px;
  box-shadow: var(--shadow-md);
  border-right: 3px solid var(--accent);
  max-width: 240px;
}

.hero__portrait .credential .label {
  font-size: 0.7rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}

.hero__portrait .credential .title {
  font-family: var(--serif);
  color: var(--primary);
  font-size: 1.05rem;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .hero { padding: 50px 0 80px; }
  .hero__grid { grid-template-columns: 1fr; gap: 60px; }
  .hero__portrait { max-width: 360px; margin: 0 auto; }
  .hero__portrait .credential { left: 0; bottom: -30px; }
}

/* ============================================
   Trust bar
   ============================================ */

.trust-bar {
  background: var(--bg-dark);
  color: #fff;
  padding: 32px 0;
}

.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.trust-bar__label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
}

.trust-bar__items {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-bar__item {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: rgba(255,255,255,0.92);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ============================================
   Services grid
   ============================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 36px 30px 32px;
  display: flex;
  flex-direction: column;
  transition: all .25s ease;
  position: relative;
}

.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.service-card__num {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}

.service-card h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.service-card__body {
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.service-card__list li {
  font-size: 0.92rem;
  color: var(--ink-2);
  padding: 7px 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card__list li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.service-card__link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
  padding-bottom: 2px;
  align-self: flex-start;
}

.service-card__link:hover { border-bottom-color: var(--accent); }
.service-card__link .arrow { transition: transform .2s ease; }
.service-card__link:hover .arrow { transform: translateX(-4px); }

/* ============================================
   About teaser (split)
   ============================================ */

.about-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 900px) {
  .about-split { grid-template-columns: 1fr; gap: 50px; }
}

.about-split__photo {
  aspect-ratio: 4 / 5;
  background: #f3efe8 center/cover no-repeat;
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}

.about-split__copy .quote-mark {
  font-family: var(--serif);
  font-size: 5rem;
  color: var(--accent);
  line-height: 0.6;
  display: block;
  margin-bottom: 8px;
}

.about-split__quote {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--primary);
  line-height: 1.4;
  margin: 0 0 28px;
  font-weight: 400;
  text-wrap: balance;
}

.about-split__bio {
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.about-split__signature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  margin-bottom: 28px;
}

.about-split__signature .name {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--primary);
}

.about-split__signature .role {
  font-size: 0.88rem;
  color: var(--ink-3);
  margin-top: 2px;
}

/* ============================================
   Process
   ============================================ */

.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 800px) {
  .process { grid-template-columns: 1fr; }
}

.process__step {
  padding: 40px 32px;
  border-left: 1px solid var(--line);
  position: relative;
}

.process__step:last-child { border-left: none; }

@media (max-width: 800px) {
  .process__step { border-left: none; border-bottom: 1px solid var(--line); }
  .process__step:last-child { border-bottom: none; }
}

.process__num {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.16em;
  margin-bottom: 16px;
}

.process__step h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.process__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color .15s ease;
}
.process__cta:hover { border-bottom-color: var(--accent); }
.process__cta .arrow { transition: transform .2s ease; }
.process__cta:hover .arrow { transform: translateX(-4px); }

.process__step p {
  color: var(--ink-2);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* ============================================
   FAQ
   ============================================ */

.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item__q {
  width: 100%;
  background: none;
  border: none;
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: right;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
  transition: color .15s ease;
}

.faq-item__q:hover { color: var(--accent); }

.faq-item__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform .25s ease;
}

.faq-item__icon::before {
  width: 100%;
  height: 1.5px;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.faq-item__icon::after {
  width: 1.5px;
  height: 100%;
  right: 50%;
  top: 0;
  transform: translateX(50%);
}

.faq-item.is-open .faq-item__icon::after {
  transform: translateX(50%) rotate(90deg);
  opacity: 0;
}

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s ease;
  color: var(--ink-2);
  line-height: 1.7;
}

.faq-item.is-open .faq-item__a {
  max-height: 600px;
  padding: 0 0 28px;
}

/* ============================================
   Contact section + form
   ============================================ */

.contact-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-cta { grid-template-columns: 1fr; gap: 50px; }
}

.contact-info h2 { margin-bottom: 18px; }
.contact-info .lead { margin-bottom: 32px; }

.contact-info__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info__list li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.contact-info__list li:last-child { border-bottom: 1px solid var(--line); }

.contact-info__icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.contact-info__icon svg { width: 18px; height: 18px; }

.contact-info__label {
  font-size: 0.78rem;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-info__value {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--primary);
}

.contact-info__value a { transition: color .15s ease; }
.contact-info__value a:hover { color: var(--accent); }

/* Form */

.lead-form {
  background: #fff;
  padding: 44px;
  border: 1px solid var(--line);
  position: relative;
}

.section--soft .lead-form,
.section--section .lead-form {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.lead-form__header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.lead-form__header h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.lead-form__header p {
  color: var(--ink-3);
  font-size: 0.95rem;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-2);
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
  font-family: var(--sans);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.08);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
  font-family: var(--sans);
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: #c4453d;
  background: #fdf6f5;
}

.field__error {
  display: none;
  color: #c4453d;
  font-size: 0.82rem;
  margin-top: 6px;
}

.field.has-error .field__error { display: block; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
}

.form-consent {
  font-size: 0.82rem;
  color: var(--ink-3);
  line-height: 1.5;
  margin: 0 0 16px;
}

.form-consent a {
  color: var(--primary);
  text-decoration: underline;
}

.lead-form__submit {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
}

.lead-form__success {
  display: none;
  text-align: center;
  padding: 30px 10px;
}

.lead-form.is-success .lead-form__form { display: none; }
.lead-form.is-success .lead-form__header { display: none; }
.lead-form.is-success .lead-form__success { display: block; }

.lead-form__success .check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-100);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}

.lead-form__success h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.lead-form__success p {
  color: var(--ink-2);
}

/* ============================================
   Floating quick-callback CTA
   ============================================ */

.floating-cta {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 90;
  background: var(--primary);
  color: #fff;
  padding: 14px 22px 14px 22px;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: var(--sans);
  transition: all .25s ease;
}

.floating-cta:hover {
  background: var(--primary-700);
  transform: translateY(-2px);
  box-shadow: 0 24px 70px rgba(15,37,64,0.25);
}

.floating-cta__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-cta__icon svg { width: 14px; height: 14px; }

@media (max-width: 600px) {
  .floating-cta { bottom: 16px; left: 16px; padding: 12px 18px; font-size: 0.9rem; }
}

/* ============================================
   Page hero (inner pages)
   ============================================ */

.page-hero {
  padding: 80px 0 60px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

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

.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-3);
  margin-bottom: 18px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--ink-4); }

.page-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
}

.page-hero .lead {
  font-size: 1.15rem;
  max-width: 700px;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.78);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

.footer-brand .logo__mark { background-color: #fff; }
.footer-brand .logo__name { color: #fff; }
.footer-brand .logo__sub { color: rgba(255,255,255,0.5); }

.footer-brand p {
  margin-top: 20px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
  max-width: 320px;
}

.footer-col h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.94rem;
  transition: color .15s ease;
}

.footer-col a:hover { color: var(--accent-soft); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover { color: rgba(255,255,255,0.85); }

.footer-credit {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.footer-credit a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  transition: color .15s ease;
}

.footer-credit a:hover { color: rgba(255,255,255,0.9); }

.footer-credit img {
  width: 15px;
  height: 15px;
  opacity: 0.7;
  transition: opacity .15s ease;
}

.footer-credit a:hover img { opacity: 1; }

/* ============================================
   Reveal on scroll
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Timeline (about page)
   ============================================ */

.timeline {
  position: relative;
  padding-right: 38px;
  max-width: 820px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  right: 8px;
  width: 1px;
  background: var(--line);
}

.timeline__item {
  position: relative;
  padding-bottom: 36px;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__dot {
  position: absolute;
  top: 6px;
  right: -38px;
  width: 17px;
  height: 17px;
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.timeline__year {
  font-family: var(--serif);
  font-size: 0.88rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  font-weight: 500;
}

.timeline__title {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.timeline__desc {
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ============================================
   Credentials grid (about)
   ============================================ */

.cred-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 48px;
}

@media (max-width: 700px) {
  .cred-grid { grid-template-columns: 1fr; }
}

.cred-item {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.cred-item__label {
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}

.cred-item__value {
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--primary);
  line-height: 1.4;
}

/* ============================================
   Services page — detailed
   ============================================ */

.service-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  padding: 60px 0;
  border-top: 1px solid var(--line);
}

.service-block:first-child { border-top: none; padding-top: 30px; }

@media (max-width: 800px) {
  .service-block { grid-template-columns: 1fr; gap: 24px; }
}

.service-block__num {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.16em;
  margin-bottom: 16px;
}

.service-block__title {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 0;
}

.service-block__body p {
  color: var(--ink-2);
  line-height: 1.75;
}

.service-block__details {
  background: var(--bg-soft);
  padding: 24px 28px;
  margin-top: 24px;
  border-right: 3px solid var(--accent);
}

.service-block__details h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 14px;
}

.service-block__details ul {
  margin: 0;
  padding-right: 16px;
}

.service-block__details li {
  color: var(--ink-2);
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: 6px;
}

/* ============================================
   Conditions list (services)
   ============================================ */

.conditions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 800px) {
  .conditions { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .conditions { grid-template-columns: 1fr; }
}

.conditions__item {
  padding: 22px 24px;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 12px;
}

.conditions__item:nth-child(3n) { border-left: none; }
.conditions__item:nth-last-child(-n+3) { border-bottom: none; }

@media (max-width: 800px) {
  .conditions__item { border-left: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
  .conditions__item:nth-child(2n) { border-left: none !important; }
}

.conditions__item::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================
   Contact page map placeholder
   ============================================ */

.map-block {
  aspect-ratio: 16 / 9;
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

/* ============================================
   Utilities
   ============================================ */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

[data-comment-anchor] { scroll-margin-top: calc(var(--header-h) + 20px); }

/* ============================================
   Testimonials slider
   ============================================ */

.testimonials {
  background: var(--bg);
  overflow: hidden;
  padding: 100px 0;
}

.testimonials__source {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.testimonials__rating {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonials__stars {
  display: inline-flex;
  gap: 2px;
  color: var(--accent);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.testimonials__score {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 600;
  padding-right: 12px;
  border-right: 1px solid var(--line);
}

.testimonials__source-label {
  font-size: 0.82rem;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.testimonials__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-2);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}

.testimonials__toggle:hover { border-color: var(--primary); color: var(--primary); }

.testimonials__toggle-icon {
  width: 12px;
  height: 12px;
  position: relative;
  flex-shrink: 0;
}

/* Pause icon (two bars) when playing */
.testimonials__toggle-icon::before,
.testimonials__toggle-icon::after {
  content: '';
  position: absolute;
  top: 0;
  width: 4px;
  height: 12px;
  background: currentColor;
}
.testimonials__toggle-icon::before { right: 0; }
.testimonials__toggle-icon::after { left: 0; }

/* Play icon (triangle) when paused */
.testimonials__toggle.is-paused .testimonials__toggle-icon::after { display: none; }
.testimonials__toggle.is-paused .testimonials__toggle-icon::before {
  right: 1px;
  width: 0;
  height: 0;
  background: none;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 10px solid currentColor;
}

.testimonials__viewport {
  position: relative;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  margin-top: 8px;
  direction: ltr;
  /* fade edges */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}

.testimonials__viewport.is-dragging { cursor: grabbing; }

.testimonials__track {
  display: flex;
  gap: 24px;
  padding: 30px 28px;
  width: max-content;
  will-change: transform;
  direction: ltr;
}

.t-card {
  flex: 0 0 380px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  position: relative;
  direction: rtl;
  text-align: right;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.t-card:hover {
  border-color: var(--accent-soft);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.t-card__mark {
  font-family: var(--serif);
  font-size: 4.2rem;
  color: var(--accent);
  line-height: 0.6;
  display: block;
  margin-bottom: 14px;
  opacity: 0.85;
}

.t-card__body {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0 0 22px;
  flex-grow: 1;
  text-wrap: pretty;
  font-family: var(--sans);
  font-weight: 400;
}

.t-card__foot {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.t-card__name {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 4px;
}

.t-card__meta {
  font-size: 0.82rem;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

@media (max-width: 700px) {
  .testimonials { padding: 70px 0; }
  .t-card { flex-basis: 300px; padding: 28px 24px 22px; min-height: 280px; }
  .testimonials__viewport {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
  }
}


/* ===== Responsive fixes (mobile) ===== */
.cta-strip {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 32px;
  align-items: center;
}
@media (max-width: 700px) {
  .cta-strip { grid-template-columns: 1fr; gap: 24px; }
}
/* Hero stats: 3 columns are too tight on phones -> 2 columns */
@media (max-width: 600px) {
  .hero__meta { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 100%; align-items: start; }
  .hero__meta-item, .hero__meta-item--text { border-top: none; margin-top: 0; padding-top: 0; }
  .hero__meta-item--text { border-right: none; padding-right: 0; }
  .hero__meta-item .num { font-size: 1.55rem; }
  .hero__meta-item .label { font-size: 0.7rem; line-height: 1.3; }
  .hero__meta-item--text .spec-tag { font-size: 0.6rem; margin-bottom: 4px; letter-spacing: 0.08em; }
  .hero__meta-item--text .spec-name { font-size: 0.88rem; line-height: 1.2; }
}


/* ===== Tighter vertical rhythm on smaller screens ===== */
/* הריווח של 110/80px בין סקשנים יוצר "שטח מת" במובייל - מצמצמים בהדרגה */
@media (max-width: 900px) {
  .section { padding: 76px 0; }
  .section-tight { padding: 56px 0; }
  .section-header { margin-bottom: 40px; }
}
@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .section-tight { padding: 44px 0; }
  .section-header { margin-bottom: 32px; }
  .hero { padding: 56px 0 64px; }
}

/* ===== Mobile header + overflow hardening (v2) ===== */
/* overflow-x: clip (not hidden) — 'hidden' forces computed overflow-y:auto on
   html+body, turning them into scroll containers and breaking mouse-wheel
   scrolling. 'clip' prevents horizontal overflow without that side effect. */
html, body { overflow-x: clip; }

@media (max-width: 768px) {
  .site-header__inner { gap: 12px; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-135%);
    visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
    z-index: 95;
  }
  .site-nav.is-open {
    transform: translateY(0);
    visibility: visible;
    transition: transform .25s ease, visibility 0s linear 0s;
  }
  .nav-toggle { display: block; }
  .site-header__cta .btn { display: none; }
}

@media (max-width: 600px) {
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }
}

@media (max-width: 480px) {
  .phone-link { display: none; }
}


/* ===== Floating buttons: opposite corners ===== */
/* יצירת קשר -> ימין-תחתון; נגישות נשאר שמאל-תחתון */
.floating-cta { left: auto; right: 24px; }

@media (max-width: 600px) {
  /* במובייל: אייקון עגול בלבד, סימטרי לכפתור הנגישות */
  .floating-cta {
    left: auto; right: 16px; bottom: 14px;
    width: 56px; height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .floating-cta > span:not(.floating-cta__icon) { display: none; }
  .floating-cta__icon { margin: 0; background: none; width: auto; height: auto; }
  .floating-cta__icon svg { width: 24px; height: 24px; }
}

/* honeypot נגד בוטים - מוסתר מבני אדם */
.hp-wrap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ===== פס עליון אלגנטי — מטופלי משרד הביטחון ===== */
.topbar {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 9px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.topbar__icon {
  flex: none;
  width: 17px;
  height: 17px;
  color: var(--accent-text, #8a6446);
}
.topbar a {
  color: var(--accent-text, #8a6446);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.topbar a:hover { color: var(--primary); }
@media (max-width: 600px) {
  .topbar__inner { padding: 8px 18px; font-size: 0.82rem; }
}

/* ===== ווידג'ט מטופלי משרד הביטחון ===== */
.mod-notice {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.mod-notice--spaced { margin-bottom: 40px; }
.mod-notice__icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mod-notice__icon svg { width: 24px; height: 24px; }
.mod-notice__body { flex: 1; min-width: 0; }
.mod-notice__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
  margin: 0 0 6px;
}
.mod-notice__text {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 16px;
}
@media (max-width: 600px) {
  .mod-notice { flex-direction: column; gap: 14px; padding: 20px; }
  .mod-notice__cta { width: 100%; justify-content: center; }
}
