:root {
  --bg:          #f5ede2;          /* שנהב חם / linen */
  --bg-alt:      #ede2d0;          /* חול חם עמוק יותר */
  --bg-earth:    #2a1d12;          /* אדמה כהה / אספרסו */
  --bg-earth-2:  #3a2a1c;          /* אדמה בינונית */
  --ink:         #2a1d12;          /* כהה אספרסו */
  --ink-soft:    #7a5c42;          /* חום בינוני */
  --ink-muted:   #a68a70;          /* חום בהיר */
  --line:        #d9c8b2;          /* גבול טאופ חם */
  --accent:      #c27945;          /* טרקוטה / burnt sienna */
  --accent-dark: #9e5c2e;          /* טרקוטה עמוק */
  --accent-warm: #e09a65;          /* טרקוטה בהיר (גוונים בהירים) */
  --white:       #fffaf4;          /* לבן שנהב חם */
  --wa:          #25d366;
  --shadow:      0 20px 44px -18px rgba(42, 29, 18, .32);
  --shadow-sm:   0 8px 24px -12px rgba(42, 29, 18, .22);
  --radius:      16px;
  --radius-sm:   10px;
  --maxw:        1180px;
  --font-body:   "Assistant", system-ui, "Segoe UI", Arial, sans-serif;
  --font-head:   "Frank Ruhl Libre", Georgia, serif;
}

/* ===== Reset & Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }

/* ===== Grain texture overlay (warmth) ===== */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: 1;
}
.hero, .process, .footer { isolation: isolate; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 15px 30px; border-radius: 999px; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease;
  letter-spacing: .01em;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 10px 26px -10px rgba(194, 121, 69, .55);
}
.btn--primary:hover { background: var(--accent-dark); box-shadow: 0 14px 30px -10px rgba(158, 92, 46, .55); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.9); }
.btn--block { width: 100%; }
.btn--whatsapp { background: var(--wa); color: #fff; box-shadow: 0 10px 24px -10px rgba(37,211,102,.45); }
.btn--whatsapp:hover { filter: brightness(.95); }

/* ===== Navbar ===== */
.nav {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 50;
  padding-block: 20px;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.nav.is-scrolled {
  background: rgba(245, 237, 226, .94);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 11px;
}
.nav__inner { max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav__logo { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; line-height: 1.1; color: #fff; display: flex; flex-direction: column; transition: color .3s ease; }
.nav__logo span { font-family: var(--font-body); font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.nav.is-scrolled .nav__logo { color: var(--ink); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-weight: 500; font-size: .97rem; color: rgba(255,255,255,.9); transition: color .22s ease; }
.nav.is-scrolled .nav__links a { color: var(--ink-soft); }
.nav__links a:not(.nav__cta):hover { color: var(--accent-warm); }
.nav.is-scrolled .nav__links a:not(.nav__cta):hover { color: var(--accent); }
.nav__cta {
  background: var(--accent); color: #fff !important;
  padding: 9px 22px; border-radius: 999px;
  transition: background .22s ease;
}
.nav__cta:hover { background: var(--accent-dark) !important; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.nav.is-scrolled .nav__toggle span { background: var(--ink); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden; color: #fff;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s ease; transform: scale(1.05);
}
.hero__slide.is-active { opacity: 1; animation: kenburns 7s ease forwards; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1.16); } }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(30, 16, 6, .52) 0%,
    rgba(30, 16, 6, .3) 45%,
    rgba(30, 16, 6, .7) 100%
  );
}
/* warm tinted vignette */
.hero__overlay::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(42, 18, 4, .45) 100%);
}
.hero__content { position: relative; z-index: 2; padding: 0 24px; max-width: 840px; }
.hero__title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.8rem, 7vw, 5.2rem); line-height: 1.05;
  text-shadow: 0 2px 32px rgba(30,12,4,.45);
}
.hero__title span { font-weight: 400; opacity: .9; display: inline-block; }
.hero__subtitle {
  font-size: clamp(1.1rem, 2.4vw, 1.42rem); margin-top: 22px;
  font-weight: 300; line-height: 1.65;
  text-shadow: 0 2px 20px rgba(30,12,4,.5);
  opacity: .95;
}
.hero__actions { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__scroll { position: absolute; inset-block-end: 30px; inset-inline-start: 50%; transform: translateX(50%); z-index: 2; }
.hero__scroll span { display: block; width: 26px; height: 44px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; position: relative; }
.hero__scroll span::after { content: ""; position: absolute; inset-block-start: 7px; inset-inline-start: 50%; transform: translateX(50%); width: 4px; height: 8px; background: #fff; border-radius: 2px; animation: scrolldot 1.7s ease infinite; }
@keyframes scrolldot { 0%{opacity:1;transform:translate(50%,0)} 80%{opacity:0;transform:translate(50%,15px)} 100%{opacity:0} }

/* ===== Section base ===== */
.section { padding-block: clamp(70px, 9vw, 120px); }
.section__head { text-align: center; max-width: 640px; margin-inline: auto; margin-block-end: 52px; }
.section__eyebrow {
  color: var(--accent); font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; font-size: .78rem; margin-bottom: 12px; display: block;
}
.section__title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.95rem, 4vw, 2.85rem); line-height: 1.14;
  color: var(--ink);
}
.section__lead { color: var(--ink-soft); margin-top: 16px; font-size: 1.1rem; }

/* ===== Portfolio ===== */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 16px; }
.cat-tab {
  font-family: var(--font-body); font-size: .98rem; font-weight: 600;
  padding: 10px 24px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink-soft);
  cursor: pointer; transition: .22s;
}
.cat-tab:hover { border-color: var(--accent); color: var(--accent); background: var(--white); }
.cat-tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.cat-desc { text-align: center; color: var(--ink-soft); margin-bottom: 36px; min-height: 1.75em; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery__item {
  position: relative; overflow: hidden;
  border-radius: var(--radius); cursor: pointer; aspect-ratio: 4/3;
  background: var(--bg-alt);
}
.gallery__item:nth-child(4n) { aspect-ratio: 3/4; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s ease; }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(42, 18, 6, .38), transparent 50%);
  opacity: 0; transition: .3s;
}
.gallery__item:hover::after { opacity: 1; }

/* ===== About ===== */
.about { background: var(--bg-alt); }
.about__grid { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: 60px; align-items: center; }
.about__photo { position: relative; }
.about__photo img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover;
}
.about__badge {
  position: absolute; inset-block-end: -18px; inset-inline-start: -18px;
  background: var(--white); color: var(--ink); font-weight: 700;
  padding: 13px 22px; border-radius: 999px;
  box-shadow: var(--shadow); font-size: 1.05rem;
  border: 1.5px solid var(--line);
}
.about__text .section__title { margin-bottom: 20px; }
.about__text p { color: var(--ink-soft); margin-bottom: 18px; font-size: 1.09rem; }
.about__text strong { color: var(--accent-dark); }
.about__text .btn { margin-top: 12px; }

/* ===== Process (dark earth section) ===== */
.process {
  background: var(--bg-earth);
  background-image:
    radial-gradient(ellipse at 80% 20%, rgba(194, 121, 69, .12) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(194, 121, 69, .08) 0%, transparent 60%);
  position: relative;
}
.process .section__eyebrow { color: var(--accent-warm); }
.process .section__title { color: var(--white); }
.process .section__lead { color: rgba(245, 237, 226, .65); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: rgba(255, 250, 244, .06);
  border: 1px solid rgba(255,250,244,.1);
  border-radius: var(--radius); padding: 38px 30px;
  transition: .3s ease;
}
.step:hover {
  transform: translateY(-6px);
  background: rgba(255, 250, 244, .1);
  border-color: rgba(194, 121, 69, .35);
}
.step__num {
  font-family: var(--font-head); font-size: 2.6rem; font-weight: 700;
  display: block; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--accent-warm), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.step h3 { font-size: 1.35rem; margin-bottom: 10px; color: var(--white); }
.step p { color: rgba(245, 237, 226, .7); line-height: 1.7; }

/* ===== Testimonials ===== */
.testimonials { background: var(--bg-alt); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote {
  background: var(--white); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm); position: relative;
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.quote:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.quote::before {
  content: """;
  position: absolute; inset-block-start: 4px; inset-inline-start: 22px;
  font-family: var(--font-head); font-size: 4.5rem; color: var(--accent);
  opacity: .2; line-height: 1; pointer-events: none;
}
.quote blockquote { font-size: 1.06rem; line-height: 1.75; margin-bottom: 20px; color: var(--ink-soft); }
.quote figcaption { color: var(--accent-dark); font-weight: 700; font-size: .95rem; }

/* ===== Contact ===== */
.contact { background: var(--bg); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact__intro .section__title { margin-bottom: 18px; }
.contact__intro > p { color: var(--ink-soft); margin-bottom: 26px; font-size: 1.09rem; }
.contact__details { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.contact__details a { color: var(--ink-soft); font-weight: 500; transition: color .2s; }
.contact__details a:hover { color: var(--accent); }
.contact__form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px;
  box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .93rem; color: var(--ink); }
.field input, .field select {
  font-family: var(--font-body); font-size: 1rem;
  padding: 13px 16px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); transition: border .2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }
.form__note {
  grid-column: 1 / -1; padding: 13px 18px; border-radius: var(--radius-sm);
  background: #e9f7ee; color: #18794e; font-weight: 600; text-align: center;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-earth);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(194, 121, 69, .1) 0%, transparent 60%);
  color: rgba(245, 237, 226, .7);
  padding-block: 52px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.footer__brand { font-family: var(--font-head); font-size: 1.55rem; font-weight: 700; color: var(--white); display: flex; flex-direction: column; }
.footer__brand span { font-family: var(--font-body); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; opacity: .6; margin-top: 2px; }
.footer__social { display: flex; gap: 14px; }
.footer__social a {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(245,237,226,.2); color: rgba(245,237,226,.7);
  transition: .25s;
}
.footer__social a:hover {
  background: var(--accent); border-color: var(--accent);
  color: #fff; transform: translateY(-3px);
}
.footer__copy { font-size: .88rem; opacity: .6; }

/* ===== Floating WhatsApp ===== */
.wa-float {
  position: fixed; inset-block-end: 26px; inset-inline-start: 26px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -6px rgba(37, 211, 102, .55);
  transition: transform .25s;
  animation: wapulse 2.4s ease infinite;
}
.wa-float:hover { transform: scale(1.1); }
@keyframes wapulse {
  0%   { box-shadow: 0 0 0 0   rgba(37,211,102,.45); }
  70%  { box-shadow: 0 0 0 18px rgba(37,211,102,0);  }
  100% { box-shadow: 0 0 0 0   rgba(37,211,102,0);   }
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(28, 16, 8, .93);
  display: flex; align-items: center; justify-content: center; padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 90vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 32px 64px rgba(0,0,0,.55); }
.lightbox__close {
  position: absolute; inset-block-start: 22px; inset-inline-end: 26px;
  background: none; border: 0; color: rgba(245,237,226,.85); font-size: 2.8rem; line-height: 1; cursor: pointer;
  transition: color .2s;
}
.lightbox__close:hover { color: var(--accent-warm); }
.lightbox__nav {
  background: rgba(245,237,226,.1); border: 0; color: rgba(245,237,226,.8);
  font-size: 2.4rem; width: 58px; height: 58px; border-radius: 50%; cursor: pointer;
  position: absolute; inset-block-start: 50%; transform: translateY(-50%); transition: .2s;
}
.lightbox__nav:hover { background: rgba(194, 121, 69, .35); color: #fff; }
.lightbox__nav--prev { inset-inline-end: 22px; }
.lightbox__nav--next { inset-inline-start: 22px; }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about__grid, .contact__grid { grid-template-columns: 1fr; gap: 44px; }
  .about__photo { max-width: 440px; margin-inline: auto; }
  .steps, .quotes { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset-block-start: 0; inset-inline-end: 0; height: 100svh; width: min(78vw, 310px);
    background: var(--bg); flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 28px; padding: 44px; box-shadow: -10px 0 40px rgba(42,18,6,.18);
    transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { color: var(--ink) !important; font-size: 1.2rem; }
  .nav__cta { background: var(--accent); color: #fff !important; }
}

@media (max-width: 540px) {
  .gallery { grid-template-columns: 1fr; }
  .contact__form { grid-template-columns: 1fr; padding: 24px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide.is-active { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
