/* ============================================================
   CHANOCH YOSSEF — CONCRETE CONTRACTOR WEBSITE
   Modern, clean, RTL Hebrew
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #505764;
  --primary-dk: #3a404a;
  --accent:     #f59e0b;
  --dark:       #0f172a;
  --dark-2:     #1e293b;
  --gray-1:     #334155;
  --gray-2:     #64748b;
  --gray-3:     #94a3b8;
  --gray-4:     #cbd5e1;
  --gray-5:     #e2e8f0;
  --gray-6:     #f1f5f9;
  --white:      #ffffff;
  --whatsapp:   #25d366;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);

  --font: 'Heebo', sans-serif;
  --transition: .3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ---------- UTILITIES ---------- */
.container {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(37,99,235,.08);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray-2);
  max-width: 560px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header .section-desc { margin-inline: auto; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-dk); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--whatsapp);
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  transition: var(--transition);
  margin-top: 24px;
}
.btn-whatsapp svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn-whatsapp:hover { background: #1da851; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,.35); }

.btn-full { width: 100%; justify-content: center; }

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0; inset-inline: 0;
  z-index: 900;
  padding: 0 24px;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin-inline: auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  transition: color var(--transition);
}
.navbar.scrolled .nav-logo { color: var(--dark); }

.nav-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter var(--transition);
}
.navbar.scrolled .nav-logo-img { filter: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.12); }
.navbar.scrolled .nav-links a { color: var(--gray-1); }
.navbar.scrolled .nav-links a:hover { color: var(--primary); background: rgba(37,99,235,.08); }

.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  border-radius: var(--radius-sm) !important;
}
.nav-cta:hover { background: var(--primary-dk) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar.scrolled .nav-toggle span { background: var(--dark); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0f172a;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  animation: heroBgZoom 12s ease-out forwards;
}
@keyframes heroBgZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.0); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(10, 18, 40, 0.72) 0%,
    rgba(10, 18, 40, 0.55) 50%,
    rgba(10, 18, 40, 0.80) 100%
  );
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 24px;
  max-width: 820px;
}

.hero-eyebrow {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0;
}

.hero-title {
  font-family: 'Rubik', 'Heebo', sans-serif;
  font-size: clamp(2.8rem, 7.5vw, 5.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
  opacity: 0;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero-name { display: block; }
.hero-divider {
  display: block;
  color: var(--accent);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 4px 0;
}
.hero-sub { display: block; }

.hero-desc {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,.75);
  margin-bottom: 40px;
  line-height: 1.7;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.5);
  font-size: .75rem;
  letter-spacing: .08em;
  opacity: 0;
  animation: fadeInUp .8s 1.8s forwards;
}
.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{ opacity:.3; transform: scaleY(.8); } 50%{ opacity:1; transform: scaleY(1.2); } }
@keyframes fadeInUp { to { opacity:1; } }

/* ---------- ABOUT ---------- */
.about { padding: 100px 0; background: var(--white); }

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

.about-text .section-title { margin-bottom: 20px; }

.about-desc {
  color: var(--gray-2);
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.75;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--gray-5);
}
.stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}
.stat span {
  font-size: .875rem;
  color: var(--gray-2);
  font-weight: 500;
}

.about-image-wrap { display: flex; justify-content: center; }

.about-image-block {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-5);
}
.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-image-block.no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}
.about-image-block.no-img::after {
  content: "תמונת אודות";
  color: var(--gray-3);
  font-size: .9rem;
  font-weight: 500;
}

.about-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  padding: 10px 16px;
  border-radius: 100px;
  box-shadow: var(--shadow-md);
  font-size: .85rem;
  font-weight: 700;
  color: var(--primary);
}
.about-badge svg { width: 18px; height: 18px; stroke: var(--primary); }

/* ---------- SERVICES ---------- */
.services {
  padding: 100px 0;
  background: var(--gray-6);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 860px;
  margin-inline: auto;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-5);
  transition: transform var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(30px);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 56px; height: 56px;
  background: rgba(37,99,235,.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg {
  width: 28px; height: 28px;
  stroke: var(--primary);
  fill: none;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}
.service-card p {
  font-size: .9rem;
  color: var(--gray-2);
  line-height: 1.65;
}

/* ---------- GALLERY ---------- */
.gallery { padding: 100px 0; background: var(--white); }

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

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--gray-5);
  opacity: 0;
  transform: scale(.96);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-item.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}
.gallery-item.placeholder::before {
  content: "תמונת פרויקט";
  color: var(--gray-3);
  font-size: .85rem;
  font-weight: 500;
  z-index: 1;
}
.gallery-item.placeholder img { display: none; }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.75) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--white); font-weight: 600; font-size: .9rem; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,.15);
  border: none;
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  width: 48px; height: 48px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.3); }

.lightbox-close { top: 20px; left: 20px; font-size: 1rem; }
.lightbox-prev  { left: 20px; top: 50%; transform: translateY(-50%); font-size: 2rem; }
.lightbox-next  { right: 20px; top: 50%; transform: translateY(-50%); font-size: 2rem; }

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  padding: 100px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
.testimonials .section-label { background: rgba(255,255,255,.1); color: rgba(255,255,255,.75); }
.testimonials .section-title { color: var(--white); }

.testimonials-carousel-wrap {
  overflow: hidden;
  direction: ltr;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.testimonials-track {
  display: flex;
  direction: ltr;
  gap: 24px;
  width: max-content;
  animation: scrollCarousel 160s linear infinite;
  will-change: transform;
}
.testimonials-track:hover { animation-play-state: paused; }

@keyframes scrollCarousel {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.testimonial-card {
  direction: rtl;
  width: 340px;
  flex-shrink: 0;
}

.testimonial-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  width: 340px;
  flex-shrink: 0;
  transition: background var(--transition);
}
.testimonial-card:hover { background: rgba(255,255,255,.12); }

.testimonial-quote {
  font-size: 5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: .8;
  margin-bottom: 16px;
  font-family: Georgia, serif;
}

.testimonial-card p {
  color: rgba(255,255,255,.8);
  font-size: .95rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

.testimonial-author strong {
  display: block;
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
}
.testimonial-author span {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

/* ---------- CONTACT ---------- */
.contact { padding: 100px 0; background: var(--gray-6); }

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

.contact-info .section-title { margin-bottom: 16px; }

.contact-desc {
  color: var(--gray-2);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.contact-details { display: flex; flex-direction: column; gap: 16px; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gray-1);
  font-size: .95rem;
  font-weight: 500;
  transition: color var(--transition);
}
a.contact-detail:hover { color: var(--primary); }

.contact-icon {
  width: 44px; height: 44px;
  background: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; stroke: var(--primary); }

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-1);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-4);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--dark);
  background: var(--white);
  direction: rtl;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-3); }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--dark);
  padding: 40px 0 24px;
  color: rgba(255,255,255,.6);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
}
.footer-tagline { font-size: .8rem; margin-top: 4px; }

.footer-links,
.footer-contact {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a,
.footer-contact a {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer-links a:hover,
.footer-contact a:hover { color: var(--white); }

.footer-copy {
  text-align: center;
  font-size: .8rem;
}

/* ---------- FORM SUCCESS ---------- */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 12px;
}
.form-success.visible { display: flex; }
.form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.form-success h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
}
.form-success p {
  color: var(--gray-2);
  font-size: 1rem;
}

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 990;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.55);
}

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 72px 0 0 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    z-index: 800;
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--gray-1) !important; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 1rem; }
  .nav-toggle { display: flex; }

  .hero-title { font-size: clamp(2rem, 9vw, 3.5rem); }
  .hero-desc  { font-size: 1rem; margin-bottom: 28px; }
  .hero-actions .btn { padding: 14px 22px; font-size: .95rem; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image-block { aspect-ratio: 16/9; max-width: 100%; }
  .about-stats { gap: 20px; }

  .services-grid { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .testimonials-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form-wrap { padding: 28px 20px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .about-stats { flex-wrap: wrap; }
  .stat { min-width: 120px; }

  .whatsapp-float { width: 52px; height: 52px; bottom: 20px; left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  #heroCanvas { display: none; }
}

/* ---------- SCROLL ANIMATION INITIAL STATES ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
}
.fade-in {
  opacity: 0;
}
