/* =========================================================
   מנגנון העמק — עיצוב ראשי
   ========================================================= */

/* ===== Variables ===== */
:root {
  --color-bg: #FFFFFF;
  --color-bg-alt: #FAFAF7;
  --color-text: #1C1C1E;
  --color-text-muted: #5B5B5F;
  --color-border: #ECECE7;

  --color-yellow: #F5B400;
  --color-yellow-dark: #C98F00;
  --color-yellow-tint: #FCEBBF;

  --color-red: #D7263D;
  --color-red-dark: #A81D2E;
  --color-red-tint: #F8DEE1;

  --font-heading: 'Rubik', 'Assistant', sans-serif;
  --font-body: 'Assistant', 'Rubik', sans-serif;

  --radius-md: 16px;
  --radius-lg: 20px;
  --shadow-sm: 0 4px 14px rgba(28,28,30,0.06);
  --shadow-md: 0 10px 30px rgba(28,28,30,0.10);
  --shadow-lg: 0 18px 44px rgba(28,28,30,0.14);

  --header-h: 76px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

/* ===== Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.25; font-weight: 700; }
section[id] { scroll-margin-top: var(--header-h); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ===== Layout Utilities ===== */
.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.alt-bg { background: var(--color-bg-alt); }
.eyebrow {
  display: inline-block;
  font-weight: 700;
  color: var(--color-red);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.section-head { text-align: center; max-width: 640px; margin-inline: auto; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: 0.75rem; }
.section-sub { color: var(--color-text-muted); font-size: 1.05rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn img { width: 20px; height: 20px; }
.btn-primary {
  background: var(--color-red);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-red-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: #fff;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn-outline:hover { border-color: var(--color-yellow); background: var(--color-yellow-tint); transform: translateY(-2px); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition), height var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-color: var(--color-border);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: height var(--transition);
}
.site-header.scrolled .header-inner { height: 64px; }

.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-logo { width: 42px; height: 42px; transition: width var(--transition), height var(--transition); }
.site-header.scrolled .brand-logo { width: 36px; height: 36px; }
.brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; }

.main-nav ul { display: flex; gap: 1.75rem; }
.main-nav a {
  font-weight: 600;
  font-size: 0.98rem;
  position: relative;
  padding-block: 0.25rem;
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--color-red);
  transition: width var(--transition);
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--color-red); }

.header-cta { flex-shrink: 0; }

/* Mobile menu toggle (hamburger) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
}
.menu-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--color-text);
  border-radius: 2px;
  margin-inline: auto;
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Mobile Nav Overlay ===== */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
}
.mobile-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-nav ul { display: flex; flex-direction: column; align-items: center; gap: 1.75rem; }
.mobile-nav a { font-size: 1.4rem; font-weight: 700; font-family: var(--font-heading); }
.mobile-nav-cta { display: flex; gap: 1rem; }
.mobile-nav li {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.mobile-nav.open li { opacity: 1; transform: translateY(0); }
.mobile-nav.open li:nth-child(1) { transition-delay: 0.05s; }
.mobile-nav.open li:nth-child(2) { transition-delay: 0.1s; }
.mobile-nav.open li:nth-child(3) { transition-delay: 0.15s; }
.mobile-nav.open li:nth-child(4) { transition-delay: 0.2s; }
.mobile-nav.open li:nth-child(5) { transition-delay: 0.25s; }
.mobile-nav.open li:nth-child(6) { transition-delay: 0.3s; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--color-yellow-tint) 0%, #fff 55%);
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 5rem);
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: 1.25rem;
}
.hero h1 .highlight { color: var(--color-red); }
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 620px;
  margin-bottom: 1.75rem;
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  margin-bottom: 2.25rem;
}
.trust-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.trust-divider { color: var(--color-border); }
.stars { color: var(--color-yellow-dark); letter-spacing: 2px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.scroll-indicator {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  animation: bounce 2s infinite;
}
.scroll-indicator img { width: 18px; height: 18px; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-media { position: relative; text-align: center; }
.about-avatar {
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  filter: drop-shadow(var(--shadow-md));
}
.about-caption-chip {
  display: inline-block;
  margin-top: 1rem;
  background: var(--color-text);
  color: #fff;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}
.about-content .eyebrow { display: block; }
.about-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
.about-content p { color: var(--color-text-muted); margin-bottom: 1rem; }
.about-badges { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.about-badges li { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; }
.about-badges img { width: 22px; height: 22px; }

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background var(--transition);
}
.service-icon img { width: 26px; height: 26px; }
.icon-yellow { background: var(--color-yellow-tint); color: var(--color-yellow-dark); }
.icon-red { background: var(--color-red-tint); color: var(--color-red); }
.service-card:hover .icon-yellow { background: var(--color-yellow); }
.service-card:hover .icon-red { background: var(--color-red); color: #fff; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--color-text-muted); font-size: 0.98rem; }

/* ===== Why Us ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
}
.why-item { text-align: center; padding-inline: 0.5rem; }
.why-icon {
  width: 46px;
  height: 46px;
  margin-inline: auto;
  margin-bottom: 1rem;
  color: var(--color-red);
}
.why-item h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.why-item p { color: var(--color-text-muted); font-size: 0.95rem; }

/* ===== Testimonials ===== */
.rating-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.stars-lg { color: var(--color-yellow-dark); font-size: 1.4rem; letter-spacing: 2px; }
.rating-number { font-family: var(--font-heading); font-weight: 800; font-size: 1.4rem; }
.rating-text { color: var(--color-text-muted); }
.link-more { display: inline-block; margin-top: 0.75rem; font-weight: 700; color: var(--color-red); }
.link-more:hover { text-decoration: underline; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.quote-icon { width: 30px; height: 30px; color: var(--color-yellow); margin-bottom: 0.75rem; }
.testimonial-card p { color: var(--color-text); font-size: 0.98rem; margin-bottom: 1.25rem; flex-grow: 1; }
.testimonial-card footer { display: flex; align-items: center; justify-content: space-between; }
.stars-sm { color: var(--color-yellow-dark); font-size: 0.9rem; letter-spacing: 1px; }
.testimonial-card cite { font-style: normal; font-weight: 700; font-size: 0.92rem; }

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--color-bg-alt);
}
.gallery-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.gallery-item figcaption {
  text-align: center;
  padding: 0.9rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-top: 1px solid var(--color-border);
}
.gallery-note {
  text-align: center;
  margin-top: 2rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* ===== Location & Hours ===== */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.location-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3.2;
}
.location-map iframe { width: 100%; height: 100%; border: 0; }
.location-info h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.25rem; }
.info-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.9rem; font-weight: 600; }
.info-row img { width: 22px; height: 22px; flex-shrink: 0; }
.info-row a:hover { color: var(--color-red); }

.hours-table { width: 100%; border-collapse: collapse; margin-block: 1.5rem; }
.hours-table tr { border-bottom: 1px solid var(--color-border); }
.hours-table th, .hours-table td { text-align: start; padding: 0.6rem 0.25rem; font-weight: 500; }
.hours-table th { font-weight: 600; }
.hours-table td.closed { color: var(--color-red); font-weight: 600; }
.hours-table tr.is-today { background: var(--color-yellow-tint); }
.hours-table tr.is-today th, .hours-table tr.is-today td { font-weight: 700; color: var(--color-text); }
.hours-table tr.is-today th::before { content: "● "; color: var(--color-red); font-size: 0.7rem; }

.location-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }

/* ===== Sticky Mobile CTA ===== */
.sticky-cta {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 90;
  display: none;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.1);
}
.sticky-cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0;
  font-weight: 700;
  font-size: 1rem;
}
.sticky-cta-btn img { width: 20px; height: 20px; }
.sticky-cta-btn.whatsapp { background: var(--color-yellow); color: var(--color-text); }
.sticky-cta-btn.call { background: var(--color-red); color: #fff; }

/* ===== Footer ===== */
.site-footer {
  background: var(--color-text);
  color: #F1F1EE;
  padding-top: clamp(3rem, 6vw, 4rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-col h4 { font-size: 1.05rem; margin-bottom: 1rem; color: #fff; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a:hover { color: var(--color-yellow); }
.footer-brand p { color: #B7B7B2; margin-block: 0.9rem 1.1rem; max-width: 320px; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.footer-social a:hover { background: var(--color-yellow); }
.footer-social img { width: 18px; height: 18px; filter: invert(1); }
.footer-social a:hover img { filter: invert(0); }
.footer-brand .brand-name { color: #fff; }
.footer-col p { color: #B7B7B2; margin-bottom: 0.4rem; }
.footer-col .ltr-num { unicode-bidi: isolate; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-block: 1.5rem;
  color: #8C8C87;
  font-size: 0.88rem;
}

/* ===== Scroll Reveal Animations ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal][data-delay="1"] { transition-delay: 0.1s; }
[data-reveal][data-delay="2"] { transition-delay: 0.2s; }
[data-reveal][data-delay="3"] { transition-delay: 0.3s; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services-grid, .testimonials-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .about-grid, .location-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .footer-grid { grid-template-columns: 1fr; }
  .sticky-cta { display: flex; }
  .site-footer { padding-bottom: 76px; }
}

@media (max-width: 640px) {
  .services-grid, .testimonials-grid, .gallery-grid, .why-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .trust-strip { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .trust-divider { display: none; }
}
