:root{
  --gold:#CDA255; --black:#000; --white:#fff; --beige:#F8F4EC;
  --text-dark:#1A1A1A; --text-light:#EFEFEF;
}

body{
  background:var(--beige);
  color:var(--text-dark);
  font-family:"Noto Sans Hebrew","Arial",sans-serif;
  /* leave space for fixed header on mobile */
  padding-top: calc(env(safe-area-inset-top, 0px) + 64px);
}
header{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;                 /* adjust to your header height */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: transparent;      /* key: sits on top of video */
  color: var(--gold);
  z-index: 1000;                /* above hero/video */
  font-family: "Noto Sans Hebrew", "Arial", sans-serif;
}
.logo-link {
    text-decoration: none;
    color: inherit; /* This makes the link inherit the color from its parent element */
}
.nav-toggle{
  display:none; border:none; background:transparent; color:var(--gold);
  font-size:1.6rem; line-height:1; padding:8px; margin-inline-start:12px;
}
header nav a:nth-child(1){ order: 3; } /* עבודות */
header nav a:nth-child(2){ order: 1; } /* צור קשר */
header nav a:nth-child(3){ order: 2; } /* קצת עלינו */

header.scrolled{ background:var(--black); box-shadow:0 6px 18px rgba(0,0,0,.18); }
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Noto Sans Hebrew", "Arial", sans-serif;
}

.logo-container img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.logo-container h1 {
  font-size: 1.8rem;
  color: var(--gold);
  margin: 0;
}

header nav {
  display: flex;
  gap: 1.5rem;
}

header nav a {
  color: var(--gold);
  text-decoration: none;
  font-weight: bold;
}

header nav a:hover {
  color: var(--white);
}


/* ---- HERO base ---- */
.hero{
  position: relative;
  min-height: 58vh;
  display: grid;
  place-items: center;
  padding: 64px 16px;
  overflow: hidden;
  text-align: center;
  font-family: "Noto Sans Hebrew", "Arial", sans-serif;
}
.hero::before{ /* dark overlay */
  content:""; position:absolute; inset:0;
  background: radial-gradient(1200px 600px at 50% 30%, rgba(0,0,0,.35), rgba(0,0,0,.65));
}
.hero-video .hero-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;        /* fills hero like your image did */
  z-index: 0;
  filter: brightness(.85);  /* gentle darken; optional */
}
.hero h1{ margin: 0 0 8px; font-weight: 800; letter-spacing:.5px; }
.hero p{ color:#e8e8e8; margin:0 auto 18px; max-width: 720px; }

/* buttons */
.btn{ padding:12px 18px; border-radius:999px; font-weight:700; }

.btn:hover{ transform:translateY(-2px); box-shadow:0 8px 18px rgba(0,0,0,.18); }
.btn-solid{ background: var(--gold); color:#000; }
.btn-outline{ color:#fff; border:1.5px solid rgba(255,255,255,.9); }
.btn-outline:hover{ background:rgba(255,255,255,.1); }
/* ---- Carousel / Before-After ---- */
.slider-wrapper{ aspect-ratio: 16/10; }       /* a touch taller on phones */
.handle{ width:3px; }
.handle::after{ width:36px; height:36px; }
/* typography sizes */
@media (min-width: 768px){
  .hero{ min-height: 68vh; }
  .hero h1{ font-size: clamp(1.6rem, 2.8vw, 3rem); }
  .hero p{ font-size: clamp(1rem, 1.2vw, 1.1rem); }
}
.intro{
  position: relative;
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 0 16px;
  text-align: center;         
}

.hero-inner{
  position: relative; z-index: 1;
  max-width: 900px;
  padding: 18px 24px;
  border-radius: 14px;
  background: transparent;
  backdrop-filter: blur(2px);
  color: var(--white);
  animation: fadeUp .7s ease-out both;
}
.hero-inner h2{
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: .5px;
}
.hero-inner p{
  margin: 0 0 18px;
  color: #e8e8e8;
}

/* כפתורים */
.hero-actions{  gap:12px; justify-content:center; }
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 18px; border-radius: 999px;
  font-weight: 700; text-decoration:none; line-height:1;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  will-change: transform;
}
.btn-primary{ background: var(--gold); color: #1a1a1a; box-shadow: 0 8px 18px rgba(205,162,85,.25); }
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 12px 24px rgba(205,162,85,.35); }
/* אנימציה עדינה לטקסט וכפתורים */
@keyframes fadeUp{
  from{ opacity:0; transform: translateY(10px); }
  to{ opacity:1; transform: translateY(0); }
}
.hero-actions .btn:nth-child(1){ animation: fadeUp .7s .1s both; }
.hero-actions .btn:nth-child(2){ animation: fadeUp .7s .2s both; }

/* למשתמשים שמעדיפים פחות אנימציה */
@media (prefers-reduced-motion: reduce){
  .hero-inner, .hero-actions .btn{ animation: none !important; }
}
.hero-actions{ direction: rtl; }

h1, h2 {
text-align: center;
color: var(--green);
}

p {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: #555;
}
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}
.slide { display: none; }
.slide.active { display: block; }

/* Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-top: .75rem;
}
.carousel-controls .prev,
.carousel-controls .next {
  border: 0;
  background: var(--gold, #CDA255);
  color: #000;
  padding: .4rem .7rem;
  border-radius: 8px;
  cursor: pointer;
}

/* Dots (you already had similar) */
.pagination .page-dot {
  display: inline-block;
  background:var(--black);
  color: var(--beige);
  padding: 5px 10px;
  margin: 0 5px;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
}
.pagination .page-dot.active {
  background: var(--gold, #CDA255);
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
  border: 1px solid rgba(0,0,0,.06);
}
/* Container & headings (optional) */
.gallery-section { padding: 32px 16px; }
/* One slider wrapper */
.comparison-slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 20px auto;
  background: transparent;
}

/* The comparison slider frame */
.comparison-slider {
  position: relative;
  width: 100%;
  /* lock a stable height */
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  background: #000;
}

/* Base image (after) */
.comparison-slider > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Label “לפני/אחרי” */
.comparison-slider .overlay {
  display: none; /* show only on tablet+ if you want */
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0,0,0,.4);
  color: #ddd;
  padding: 8px 10px;
  font-size: 14px;
  border-radius: 6px;
}

/* The “before” half on top */
.comparison-slider .resize {
  position: absolute;
  top: 0; left: 0; height: 100%;
  width: 50%;                  /* start in the middle */
  overflow: hidden;
}
.comparison-slider .resize > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comparison-slider .resize .overlay {
  left: 16px; right: auto;     /* label on left for "before" */
}

/* The draggable divider */
.comparison-slider .divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;                   /* align with .resize width */
  width: 2px;
  background: rgba(255,255,255,.35);
  cursor: ew-resize;
}
.comparison-slider .divider::before,
.comparison-slider .divider::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--gold);
  transition: all .1s ease-in-out;
}
.comparison-slider .divider::before { width: 20px; height: 20px; top: 50%; }
.comparison-slider .divider::after  { width: 12px; height: 12px; top: 50%; }
.comparison-slider .divider.draggable::before {
  width: 30px; height: 30px;
}
.comparison-slider .divider.draggable::after {
  width: 20px; height: 20px; background: var(--black);
}

/* Touch/selection quality-of-life */
.comparison-slider img { user-select: none; pointer-events: none; }
.comparison-slider .divider { touch-action: none; }

.full-gallery {
  padding: 3rem 1rem;
  background: var(--white);
  text-align: center;
}

.filter-buttons {
  margin-bottom: 2rem;
}

.filter-buttons button {
  background: var(--gold);
  color: var(--black);
  border: none;
  padding: 10px 20px;
  margin: 0 5px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.filter-buttons button.active,
.filter-buttons button:hover {
  background: var(--black);
  color: var(--white);
}

.work-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:24px;
  padding:16px;
}

.work-card{
  background:transparent;
  border:none;
  box-shadow:none;
  cursor:pointer;
} 
.card-image{
  position:relative;
  aspect-ratio:20/13;          
  border-radius:14px;
  overflow:hidden;
  background:#f2f2f2;
}
.work-card:hover .card-image img{ transform:scale(1.05); }

.work-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.work-card p {
  padding: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-dark);
}
.card-info{ margin-top:8px; font-size:.95rem; color:#222; direction:rtl; }
.card-top{
  display:flex; align-items:center; justify-content:space-between;
  gap:8px;
}
.card-title{
  margin:0; font-size:1rem; font-weight:600; overflow:hidden;
  text-overflow:ellipsis; white-space:nowrap;
}
/* Modal shell */
.work-modal{ position:fixed; inset:0; display:none; z-index:9999; }
.work-modal.open{ display:block; }
.work-modal__backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.6); }

.work-modal__content{
  position:relative; width:min(950px, 92vw); margin:5vh auto;
  background:#F8F4EC; color:#1A1A1A; border-radius:14px; padding:1.25rem 1.25rem 1.5rem;
  box-shadow:0 10px 30px rgba(0,0,0,.35); direction:rtl;
}
.work-modal__close{ position:absolute; top:.35rem; left:.6rem; border:none; background:transparent;
  font-size:2rem; line-height:1; cursor:pointer; }

.work-modal__viewer{
  position:relative; width:100%; aspect-ratio:16/9; border-radius:10px; overflow:hidden; background:#000;
  display:flex; align-items:center; justify-content:center; margin-bottom:.75rem;
}
.work-modal__image{ width:100%; height:100%; object-fit:contain; background: var(--beige); }
.work-modal__viewer .nav{ position:absolute; top:50%; transform:translateY(-50%) rotate(180deg);
  border:none; background:rgba(0,0,0,.45); color:#CDA255; font-size:1.75rem; width:42px; height:42px;
  border-radius:50%; cursor:poiner; }
.work-modal__viewer .prev{ left:8px; }
.work-modal__viewer .next{ right:8px; }

.work-modal__thumbs{ display:flex; gap:.5rem; overflow-x:auto; padding-bottom:.25rem; }
.work-modal__thumbs img{ width:84px; height:56px; object-fit:cover; border-radius:6px; cursor:pointer; opacity:.7; border:2px solid transparent; }
.work-modal__thumbs img.active{ opacity:1; border-color:#CDA255; }

/* make cards obviously clickable */
.work-card{ cursor:pointer; transition:transform .15s ease; }
.work-card:hover{ transform:translateY(-3px); }

.about-section {
  padding: 3rem 1rem;
  text-align: center;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 900px;
  margin: auto;
  gap: 2rem;
}
header nav a:nth-child(1){ order: 3; } /* בית */
header nav a:nth-child(2){ order: 2; } /*עבודות*/
header nav a:nth-child(3){ order: 1; } /* צור קשר */

.about-content img {
  max-width: 300px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.about-text {
  max-width: 500px;
  text-align: right; /* RTL text */
  font-size: 1.1rem;
  line-height: 1.6;
}
/* CONTACT */
.contact {
  background: linear-gradient(180deg, var(--beige) 0%, #f3efe6 100%);
  padding: 60px 16px 40px;
}
.contact-wrap {
  max-width: 1000px;
  margin: 0 auto;
}
.contact-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.06);
  text-align: center;
}
.contact-card h2 {
  color: var(--green);
  margin: 0 0 6px;
}
.contact-card .subtitle {
  margin: 0 0 18px;
  color: #6b6b6b;
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.12); }

.tel-btn {
  background: var(--gold);
  color: #000;
}
.tel-btn:hover { background: var(--gold); }

.wa-btn {
  background: var(--green);
  color: green;
}
.wa-btn:hover {
  filter: brightness(1.05);
}

.icon { font-size: 1.1rem; line-height: 1; }
.wa-btn i {
  font-size: 1.2rem;
  margin-left: 6px; /* For RTL, you might want margin-right instead */
}
/* meta rows */
.contact-meta {
  display: grid;
  gap: 6px;
  justify-items: center;
  margin: 10px 0 14px;
  color: var(--dark);
}
.meta-item { display: flex; gap: 6px; }

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 6px;
}
.chip {
  background: #f1f1f1;
  border: 1px solid #e6e6e6;
  color: var(--dark);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .9rem;
}

/* FOOTER */
.site-footer {
  background: transparent; /* Changed from black to dark gray */
  color: var(--gold);
  padding: 16px 0;
  margin-top: 24px;
  font-family: 'Rubik', sans-serif;
}
.site-footer p {
  margin: 0;
  text-align: left; 
  font-size: 0.9rem;
}
.footer-wrap {
  max-width: 1000px; margin: 0 auto; padding: 0 16px; text-align: center;
}

.video-background{ position:fixed; inset:0; z-index:-1; pointer-events:none; }


.video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}
.video-background video{ object-fit:cover; filter:brightness(.92); }


.about-overlay {
  position: relative;
  z-index: 1;
  background: rgba(0,0,0,0.4); /* Semi-transparent dark background for readability */
  padding: 3rem 1rem;
  text-align: center;
  color: white;
}

.about-overlay h2 {
  color: var(--gold);
}

.about-overlay .about-text {
  color: #fff;
}