/* ===== צבעים וגופנים של כל האתר. שינוי כאן משנה את הכל ===== */
:root {
  --bg: #f8f6f2;
  --bg-2: #efeae3;
  --ink: #26231f;
  --muted: #6f675f;
  --accent: #9a7b5f;
  --accent-ink: #fff;
  --line: #e2dbd2;
  --wa: #25d366;
  --font-title: "Frank Ruhl Libre", serif;
  --font-body: "Heebo", system-ui, sans-serif;
  --max: 1200px;
  --gutter: 16px;
  --radius: 4px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-weight: 300; font-size: 17px; line-height: 1.7; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
svg { width: 20px; height: 20px; flex: none; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(36px, 7vw, 72px); }
h2 { font-size: clamp(28px, 4.4vw, 44px); }
h3 { font-size: 22px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 72px var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.eyebrow { color: var(--accent); font-size: 13px; letter-spacing: .14em; font-weight: 400; margin-bottom: 10px; }
.sec-head { margin-bottom: 36px; max-width: 680px; }
.sec-head .muted { margin-top: 12px; }
.note { margin-top: 10px; font-size: 13px; color: #a0522d; background: #fbeee6; display: inline-block; padding: 4px 10px; border-radius: 99px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 28px; border-radius: 99px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 400; transition: transform .15s, opacity .2s; }
.btn:hover { opacity: .9; }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost.light { color: #fff; border-color: rgba(255,255,255,.8); }
.center .btn, .sec-head + .center { margin-top: 32px; }
.featured .center, .pgrid + .center, .ig-grid + .center { margin-top: 32px; }

/* ===== תפריט עליון ===== */
#site-header { position: sticky; top: 0; z-index: 50; background: rgba(248,246,242,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { max-width: var(--max); margin: 0 auto; height: var(--header-h); padding: 0 var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-title); font-size: 24px; }
.brand-sub { font-size: 11px; letter-spacing: .12em; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 26px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 400; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a[aria-current="page"], .nav a:hover { border-color: var(--accent); }
.nav .nav-cta { border: 1px solid var(--accent); color: var(--accent); padding: 8px 18px; border-radius: 99px; }
.bar-icons { display: flex; gap: 12px; }
.bar-icons a { display: grid; place-items: center; width: 36px; height: 36px; color: var(--ink); }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; margin-inline-start: auto; }
.burger span { display: block; height: 1.5px; background: var(--ink); margin: 6px 0; transition: transform .25s, opacity .2s; }

/* ===== פתיחה ===== */
.hero { position: relative; min-height: calc(100svh - var(--header-h)); display: grid; align-items: end; color: #fff; overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(0,0,0,.55), rgba(0,0,0,.15) 55%, rgba(0,0,0,0)); }
.hero-text { position: relative; z-index: 1; max-width: var(--max); width: 100%; margin: 0 auto; padding: 48px var(--gutter) 64px; }
.hero .eyebrow { color: #f3e7da; }
.hero h1 { margin-bottom: 18px; }
.lead-in { max-width: 520px; font-size: 18px; opacity: .92; margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== פרויקט נבחר: פסיפס ===== */
.mosaic { display: grid; gap: 12px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 260px 260px; }
.mosaic .m { padding: 0; border: 0; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.mosaic .m img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.mosaic .m:hover img { transform: scale(1.04); }
.mosaic .m0 { grid-row: span 2; }
.mosaic .m3 { grid-column: span 2; }
.mosaic .m4 { display: none; }

/* ===== כרטיסי פרויקטים ===== */
.pgrid { display: grid; gap: 28px 20px; grid-template-columns: repeat(3, 1fr); }
.pcard { text-decoration: none; display: block; }
.pcard-img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); margin-bottom: 14px; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.pcard:hover img { transform: scale(1.04); }
.pcard p { color: var(--muted); font-size: 15px; }
.pcard.soon .pcard-img { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--bg-2) 0 14px, #e9e3db 14px 28px); }
.pcard.soon .pcard-img span { background: var(--bg); padding: 6px 14px; border-radius: 99px; font-size: 13px; color: var(--muted); }

/* ===== שירותים ===== */
.band { background: var(--bg-2); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { background: var(--bg); padding: 32px 28px; border-radius: var(--radius); }
.svc h3 { margin-bottom: 12px; }
.svc p:last-child { color: var(--muted); }

/* ===== תהליך ===== */
.process { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: s; }
.process li { border-top: 1px solid var(--ink); padding-top: 18px; }
.process .num { font-family: var(--font-title); font-size: 34px; color: var(--accent); display: block; line-height: 1; margin-bottom: 12px; }
.process h3 { font-size: 20px; margin-bottom: 6px; }
.process p { color: var(--muted); font-size: 15px; }

/* ===== נעים להכיר ===== */
.about-teaser { display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: var(--bg-2); }
.about-teaser img { width: 100%; height: 100%; max-height: 640px; object-fit: cover; }
.about-teaser > div { padding: 56px clamp(24px, 6vw, 88px); }
.about-teaser h2 { margin-bottom: 16px; }
.about-teaser p:not(.eyebrow) { color: var(--muted); margin-bottom: 28px; }

/* ===== המלצות ===== */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.q { background: #fff; padding: 32px 28px; border-radius: var(--radius); }
.q blockquote { font-family: var(--font-title); font-size: 19px; line-height: 1.6; margin-bottom: 18px; }
.q blockquote::before { content: "״"; display: block; font-size: 54px; line-height: .6; color: var(--accent); margin-bottom: 8px; }
.q figcaption { font-size: 14px; color: var(--muted); }

/* ===== אינסטגרם ===== */
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.ig-grid a { aspect-ratio: 1; overflow: hidden; }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.ig-grid a:hover img { opacity: .85; }

/* ===== צרו קשר + טופס ===== */
.contact { background: #2f2a25; color: #f4efe9; }
.contact .muted { color: #c9bfb4; margin: 12px 0 28px; }
.contact .eyebrow { color: #d6b99c; }
.lead { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 10px; text-align: start; }
.lead input, .lead select { min-height: 50px; padding: 0 16px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; border-radius: var(--radius); font: inherit; font-size: 16px; }
.lead select option { color: var(--ink); }
.lead input::placeholder { color: #c9bfb4; }
.lead .btn { min-height: 50px; }
.lead-msg { grid-column: 1 / -1; min-height: 1.5em; font-size: 15px; color: #d6b99c; }
.contact-row { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 18px; }
.contact-row a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; min-height: 44px; }

/* ===== פוטר ===== */
#site-footer { background: #26221e; color: #d9d0c6; }
.foot { max-width: var(--max); margin: 0 auto; padding: 48px var(--gutter) 24px; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot p { color: #a99d90; font-size: 15px; margin-top: 8px; }
.foot-links { display: grid; gap: 6px; }
.foot-links a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 40px; }
.copy { text-align: center; font-size: 13px; color: #8a7f74; padding: 16px var(--gutter) 28px; }

/* ===== כפתור וואטסאפ צף ===== */
.fab-wa { position: fixed; bottom: 18px; left: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.fab-wa svg { width: 30px; height: 30px; }

/* ===== עמוד פרויקט ===== */
.phero { position: relative; height: min(78svh, 760px); color: #fff; display: grid; align-items: end; }
.phero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55)); }
.phero-text { position: relative; z-index: 1; max-width: var(--max); width: 100%; margin: 0 auto; padding: 40px var(--gutter); }
.phero .eyebrow { color: #f3e7da; }
.summary { font-family: var(--font-title); font-size: clamp(20px, 2.6vw, 26px); line-height: 1.6; }
.rooms { position: sticky; top: var(--header-h); z-index: 20; background: var(--bg); display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.rooms::-webkit-scrollbar { display: none; }
.rooms a { flex: none; text-decoration: none; font-size: 14px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 99px; background: #fff; }
.room { padding-top: 48px; padding-bottom: 24px; }
.room h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 20px; }
.gallery { columns: 3; column-gap: 12px; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; margin-bottom: 12px; break-inside: avoid; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.gallery img { width: 100%; transition: transform .7s; }
.gallery button:hover img { transform: scale(1.03); }

/* ===== לייטבוקס ===== */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(20,18,16,.96); display: grid; place-items: center; }
.lb[hidden] { display: none; }
.lb img { max-width: 94vw; max-height: 86svh; object-fit: contain; }
.lb button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; width: 56px; height: 56px; }
.lb-x { top: 10px; left: 10px; }
.lb-prev { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 16px; color: #ccc; font-size: 14px; }

/* ===== עמודים פנימיים ===== */
.page-head { padding-bottom: 8px; }
.page-head h1 { margin-bottom: 12px; }
.about-page { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.about-page img { border-radius: var(--radius); width: 100%; max-height: 760px; object-fit: cover; }
.about-page h1 { margin-bottom: 18px; }
.about-page .big { font-size: 20px; margin-bottom: 16px; }
.about-page .muted { margin-bottom: 14px; }
.about-page .btn { margin-top: 12px; }

/* ===== אנימציית כניסה עדינה ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s, transform .8s; }
.reveal.in, .hero.reveal, .phero.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ===== טאבלט ===== */
@media (max-width: 1000px) {
  .process { grid-template-columns: repeat(2, 1fr); }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .lead { grid-template-columns: 1fr 1fr; }
}

/* ===== טלפון (רוב הלקוחות) ===== */
@media (max-width: 760px) {
  :root { --header-h: 58px; }
  body { font-size: 16px; }
  .wrap { padding: 52px var(--gutter); }
  .brand-name { font-size: 21px; }
  .brand-sub { font-size: 10px; }
  .bar-icons { display: none; }
  /* blur בכותרת יוצר "מסגרת" שתופסת את התפריט הנפתח, לכן בטלפון רקע אטום */
  #site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .burger { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 32px; transform: translateX(100%); transition: transform .3s; overflow-y: auto; }
  .nav a { font-family: var(--font-title); font-size: 26px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin-top: 24px; text-align: center; font-family: var(--font-body); font-size: 17px; padding: 14px; background: var(--accent); color: #fff; border: 0; }
  .menu-open .nav { transform: none; }
  .menu-open { overflow: hidden; }
  .menu-open .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-open .burger span:nth-child(2) { opacity: 0; }
  .menu-open .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .hero { min-height: calc(92svh - var(--header-h)); }
  .hero::after { background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.7)); }
  .hero-text { padding-bottom: 40px; }
  .lead-in { font-size: 16px; }
  .hero-ctas .btn { flex: 1 1 100%; }

  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 180px 180px; gap: 8px; }
  .mosaic .m0 { grid-column: span 2; grid-row: auto; }
  .mosaic .m3 { grid-column: auto; }
  .mosaic .m4 { display: block; }

  .pgrid { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .pcard h3 { font-size: 18px; }
  .pcard p { font-size: 13px; }
  .services, .quotes { grid-template-columns: 1fr; gap: 14px; }
  .svc, .q { padding: 26px 22px; }
  .process { grid-template-columns: 1fr; gap: 22px; }
  .about-teaser { grid-template-columns: 1fr; }
  .about-teaser img { max-height: 420px; }
  .about-teaser > div { padding: 40px var(--gutter) 52px; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .lead { grid-template-columns: 1fr; }
  .contact-row { gap: 6px 20px; }
  .gallery { columns: 2; column-gap: 8px; }
  .gallery button { margin-bottom: 8px; }
  .about-page { grid-template-columns: 1fr; gap: 28px; }
  .about-page img { max-height: 520px; }
  .phero { height: 64svh; }
  .lb button { font-size: 38px; }
  .foot { flex-direction: column; }
}
