/* ===========================================================
   Merav Yatsiv — Interior Design & Architecture
   Recreation of meravyatsiv.com (Wix) as a responsive static site.
   RTL / Hebrew. Clean, minimal, white + dark grey.
   =========================================================== */

:root {
  --ink: #2e302f;          /* primary text — matches Wix */
  --ink-soft: #4f524f;
  --muted: #8a8d8a;
  --line: #e6e6e6;
  --bg: #ffffff;
  --bg-alt: #e8e6e6;       /* warm light grey — the Wix "floor" colour */
  --placeholder: #d9d9d9;  /* grey placeholder fill */
  --placeholder-2: #cfcfcf;
  --accent: #2e302f;
  --max: 1500px;            /* wider content / smaller side margins, like Wix (~80px) */
  --gap: 30px;
  --header-h: 84px;
  --font: 'Assistant', 'Heebo', Arial, Helvetica, sans-serif;
  --font-logo: 'Assistant', 'Heebo', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: var(--header-h);   /* offset for the fixed header */
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  direction: rtl;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .7; }

.container {
  /* Side margins scale with the screen (≈16px on phones → ≈80px on wide
     screens, like the original), capped so very wide screens don't get huge. */
  width: min(var(--max), 100% - clamp(32px, 10.5vw, 160px));
  margin-inline: auto;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;   /* above PayPal's inline iframes/menus (z 300), below lightbox/modals (1100+) */
  background: #fff;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.brand .logo-mark {
  font-family: var(--font-logo);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1;
  color: var(--ink);
}
.brand .brand-logo {
  height: 64px;
  width: auto;
  display: block;
}
.footer-brand .brand-logo {
  height: 72px;
  width: auto;
}
.brand .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand .logo-text .he { font-size: 15px; font-weight: 600; }
.brand .logo-text .en {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 17px;
  font-weight: 400;
  padding: 8px 11px;
  position: relative;
  border: 1px solid transparent;   /* reserve space so active box doesn't shift layout */
  color: var(--ink);
}
.nav-links a.active {
  border-color: var(--ink);        /* Wix marks the current page with a thin square box */
}
.nav-links a:hover { opacity: .6; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  width: 44px; height: 44px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--ink);
  margin: 5px auto;
  transition: .3s;
}
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay — covers the page behind the drawer */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 98;
}
.nav-overlay.open { display: block; }

/* ---------- Placeholder images (Cloudinary later) ---------- */
.ph {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, var(--placeholder), var(--placeholder-2));
  overflow: hidden;
}
.ph::after { /* subtle label so empty state is intentional */
  content: "";
}
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ratio-4-3  { aspect-ratio: 4 / 3; }
.ratio-3-4  { aspect-ratio: 3 / 4; }
.ratio-1-1  { aspect-ratio: 1 / 1; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-3-2  { aspect-ratio: 3 / 2; }

/* ---------- Hero: logo panel + image slider ---------- */
.hero {
  position: relative;
  display: flex;
  direction: ltr;            /* panel left, slider right (RTL-overridden) */
  height: calc(100vh - var(--header-h));   /* full viewport below the fixed header */
  min-height: 480px;
  padding: 0;                /* override the global section padding so the hero fills edge-to-edge */
  background: #fff;
  overflow: hidden;
}
.hero-panel {
  flex: 0 0 220px;
  display: flex;
  align-items: flex-start;
  justify-content: center;   /* centre the logo horizontally in the panel */
  background: #fff;
  padding: 52px 20px 24px;
}
.hero-logo { width: 100%; max-width: 120px; height: auto; }
.hero-stage {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
  background: #111;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
  z-index: 0;
}
.hero-slide.active { opacity: 1; z-index: 2; }   /* incoming fades in on top */
/* The outgoing slide stays fully opaque underneath until the incoming one covers
   it — so the dark stage never shows through mid-transition (no overlay flash). */
.hero-slide.leaving { opacity: 1; z-index: 1; transition: none; }
.hero-slide.ph { background: #111; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: none;
  border: 0;
  cursor: pointer;
  color: #fff;
  font-size: 54px;
  line-height: 1;
  padding: 8px 14px;
  opacity: .85;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
  transition: opacity .2s;
}
.hero-arrow:hover { opacity: 1; }
.hero-prev { left: 10px; }
.hero-next { right: 10px; }
.hero-dots {
  display: none;   /* no navigation dots on the home hero */
}
.hero-dot {
  width: 9px; height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.hero-dot:hover { background: rgba(255,255,255,.8); }
.hero-dot.active { background: #fff; transform: scale(1.25); }

/* ---------- Section ---------- */
section { padding: 38px 0; }
.section-title {
  font-family: var(--font-logo);
  font-weight: 400;                       /* Wix uses a light, understated heading */
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: .5px;
  color: var(--ink);
  margin: 0 0 36px;
  text-align: center;
}

/* Category nav: a full-width, sticky, glassy top bar — title on the right,
   tabs on the left. It sticks below the site header while scrolling through the
   projects/shop area and scrolls away after it. */
/* Page title that the sticky bar smoothly "swaps" with on scroll. */
.cat-head-title { font-family: var(--font-logo); font-weight: 400; font-size: clamp(20px, 2.4vw, 26px); letter-spacing: .5px; color: var(--ink); text-align: center; margin: 30px 0 6px; }
.cat-bar {
  position: sticky; top: var(--header-h); z-index: 55;
  /* solid white with a soft drop shadow (like the sticky CTA bar) */
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.cat-bar.cat-bar-shown { opacity: 1; pointer-events: auto; }
/* keep the site's side padding (don't override .container's horizontal padding) */
.cat-bar-inner { display: flex; align-items: center; justify-content: flex-start; gap: 4px; padding-top: 4px; padding-bottom: 4px; }
.cat-tabs { display: flex; gap: 4px; }   /* same gap as the header nav */
.cat-tab { font-size: 17px; font-weight: 400; color: var(--muted); padding: 6px 11px; cursor: pointer; white-space: nowrap; transition: color .2s; }
.cat-tab:hover { color: var(--ink); }
.cat-tab.active { color: var(--ink); font-weight: 400; }   /* active = black, regular weight */
.cat-section { padding: 40px 0; scroll-margin-top: calc(var(--header-h) + 56px); }
.cat-section-title { font-family: var(--font-logo); font-weight: 400; font-size: 17px; color: var(--muted); letter-spacing: .5px; text-align: right; margin: 0 0 22px; padding: 0 11px; }
.section-sub {
  text-align: center;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 13px;
  margin: 0 0 40px;
}

/* category tabs */
.cats {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.cats button {
  font-family: var(--font);
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 9px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  transition: .2s;
}
.cats button.active,
.cats button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Gallery grid ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 40px;
  row-gap: 40px;
}
.gallery-2 { grid-template-columns: repeat(2, 1fr); }
/* Wider screens: 3 projects per row (home + projects), like the original */
@media (min-width: 1100px) {
  .gallery, .gallery-2 { grid-template-columns: repeat(3, 1fr); }
}
.card { position: relative; cursor: pointer; display: block; color: inherit; -webkit-tap-highlight-color: transparent; }
.card .ph { aspect-ratio: 4 / 3; }
/* Project galleries: square (1:1), a touch larger, no hover caption */
[data-gallery] .card .ph,
[data-gallery-res] .card .ph,
[data-gallery-com] .card .ph { aspect-ratio: 1 / 1; }
/* On hover: a dark wash over the image with the project title + place,
   centered in white text (like the original). */
.card .card-cap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 16px;
  color: #fff;
  background: rgba(30, 30, 30, 0);
  opacity: 0;
  transition: opacity .3s, background .3s;
}
/* hover wash only on devices with a real pointer — never on touch (no tap overlay) */
@media (hover: hover) { .card:hover .card-cap { opacity: 1; background: rgba(30, 30, 30, .55); } }
.card .card-cap .t { font-size: 19px; font-weight: 400; letter-spacing: .3px; }
.card .card-cap .s { font-size: 14px; color: rgba(255, 255, 255, .85); }
.card.hide { display: none; }

/* ---------- Projects page sections ---------- */
.proj-section .section-title { margin-bottom: 32px; }

/* ---------- Project detail ---------- */
.proj-back { margin: 0 0 24px; }
.proj-back a { font-weight: 600; border-bottom: 1px solid var(--ink); }

/* Two columns: scrolling images on the left, sticky text on the right (RTL) */
.proj-layout {
  display: grid;
  direction: ltr;                      /* force columns L→R: images left, text right */
  grid-template-columns: 1.35fr 1fr;   /* images (left) wider, text (right) */
  gap: 48px;
  align-items: start;
}
.proj-images { display: flex; flex-direction: column; gap: var(--gap); }
/* Detail-page shots: uniform width, natural proportions — never cropped */
.proj-images .ph { cursor: zoom-in; width: 100%; aspect-ratio: auto; }
.proj-images .ph img {
  width: 100%;
  height: auto;
  object-fit: unset;
  display: block;
}
.proj-text {
  direction: rtl;                      /* restore RTL for the Hebrew text */
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  text-align: right;
}
.proj-head h1 { margin: 0 0 4px; font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; }
.proj-place { color: var(--muted); margin: 0; }
.proj-desc { margin: 20px 0 0; }
/* No per-paragraph margin: a single Enter (adjacent <p>) reads as a line break;
   a blank line (double Enter → empty <p><br></p>) is what creates the gap. */
.proj-desc p { margin: 0; color: var(--ink-soft); line-height: 1.85; }

/* ---------- About ---------- */
/* ---------- About: portrait band + card/panel ---------- */
.about-hero {
  position: relative;
  height: 42vw;                 /* wide full-width banner (~2.4:1), like the original — not full height */
  min-height: 300px;
  max-height: 72vh;
  overflow: hidden;
  background: #111;
}
.about-hero-slides { position: absolute; inset: 0; }
.about-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.about-slide.active { opacity: 1; }
.about-slide img { width: 100%; height: 100%; object-fit: cover; }

.about-section { padding: 72px 0 56px; position: relative; }   /* breathing room below the hero, like Wix */
/* MY logo sits in the left margin, beside the card (not on it), like Wix */
.about-logo {
  position: absolute;
  top: 70px;
  left: max(20px, calc((100% - var(--max)) / 2 + 20px));
  width: 115px;
  height: auto;
  z-index: 4;
  pointer-events: none;
}
.about-grid {
  display: grid;
  direction: ltr;                  /* force columns L→R: image left, grey panel right (like Wix) */
  grid-template-columns: 0.42fr 0.58fr;   /* tall narrow image + wider text panel, like the original */
  align-items: stretch;            /* the house photo stretches to the text height (tall narrow strip) */
  gap: 0;
  padding-inline-start: 140px;     /* lane on the left for the logo, like Wix */
}
/* Body image: the tall ground-house photo, beside the text — like the original */
.about-card {
  position: relative;
  overflow: hidden;
  background: #eee;
  z-index: 2;
  margin-inline-end: -40px;        /* image slightly overlaps the panel, like Wix */
}
.about-card .about-slide img { width: 100%; height: 100%; object-fit: cover; }
.about-panel {
  direction: rtl;                  /* restore RTL for the Hebrew text */
  text-align: right;
  background: #4a4a4a;
  color: #f2f2f2;
  padding: 48px 48px 48px 64px;    /* less space on the text (right) side, like Wix */
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-panel p { margin: 0 0 16px; font-size: 16px; line-height: 1.85; }
.about-panel strong { color: #fff; font-weight: 700; }

/* ---------- Media / press ---------- */
.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
/* Media page: faint scattered-MY background pattern (like Wix) */
body.media-page {
  background-color: #fafafa;
  background-image: url("https://res.cloudinary.com/donqondd4/image/upload/f_auto,q_auto,w_1600/merav/media/01");
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* About page: the original is a plain wide banner with the body below it
   (no sticky scroll-over). */
body.about-page .about-reveal { position: relative; }
body.about-page .about-section {
  position: relative;
  background-color: #fafafa;
  background-image: url("https://res.cloudinary.com/donqondd4/image/upload/f_auto,q_auto,w_1600/merav/media/01");
  background-size: cover;
  background-position: center top;
}

/* Wix shows publication logos centered on white landscape cards (not cropped photos) */
.press-grid .ph {
  aspect-ratio: 3 / 2;
  background: #fff;
  border: 1px solid #f0f0f0;
}
.press-grid .ph img { object-fit: contain; padding: 30px; }
.press-grid .card { position: relative; cursor: default; }
.press-grid .press-link { cursor: pointer; }
/* hover overlay with text, like the project cards */
.press-cap {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: rgba(28,28,28,.62); color: #fff; text-align: center; padding: 16px;
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.press-grid .press-link:hover .press-cap { opacity: 1; }
.press-cap-name { font-size: 18px; font-weight: 400; letter-spacing: .3px; }
.press-cap-sub { font-size: 15px; font-weight: 400; opacity: .92; }
.press-grid .card:not(.press-link) .press-cap { display: none; }   /* non-clickable tiles: no overlay */

/* Internal press article page — publication logo opposite the title, scans below */
.media-head.press-article-head { justify-content: space-between; }
.press-head-title { display: flex; align-items: center; gap: 16px; }
.press-page-logo { max-height: 56px; width: auto; max-width: 220px; object-fit: contain; }
.press-article-grid { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 900px; margin: 0 auto 40px; }
.press-article-grid .card { cursor: zoom-in; }
.press-article-grid .ph { background: #f7f7f7; border: 1px solid #eee; aspect-ratio: auto; }
.press-article-grid .ph img { width: 100%; height: auto; display: block; }
@media (max-width: 760px) {
  /* gentle: a touch smaller + capped width so the title keeps to one line */
  .press-page-logo { max-height: 34px; max-width: 116px; }
  .press-article-head .press-head-title h1 { white-space: nowrap; }
}

/* ---------- Visual wall art (matches the Wix original) ---------- */
/* Centered hero carousel: active slide in the middle, neighbours peeking */
.vw-hero {
  position: relative;
  height: calc(82vh - var(--header-h));
  min-height: 420px;
  overflow: hidden;
  background: #fff;
  padding: 0;                 /* override the global section padding so the carousel sits flush under the header */
}
.vw-hero-track { display: flex; height: 100%; align-items: center; direction: ltr; transition: transform .6s cubic-bezier(.4, 0, .2, 1); will-change: transform; }
.vw-slide { flex: 0 0 56%; max-width: 56%; height: 100%; padding: 0 10px; box-sizing: border-box; opacity: .4; transition: opacity .5s ease; }
.vw-slide.active { opacity: 1; }
.vw-slide .ph { width: 100%; height: 100%; background: #f3f3f3; overflow: hidden; }
.vw-slide .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* simple chevrons — no panel, no white glow */
.vw-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 64px; border: 0; background: none; cursor: pointer;
  color: #2a2a2a; font-size: 44px; line-height: 1; opacity: .75;
  display: flex; align-items: center; justify-content: center;
  text-shadow: 0 1px 3px rgba(0,0,0,.35); transition: opacity .2s;
}
.vw-arrow:hover { opacity: 1; }
.vw-arrow-right { right: 14px; }
.vw-arrow-left { left: 14px; }
/* Orange logo on the left, right-aligned text column on the right */
.vw-body-wrap { padding: 24px 0 40px; }   /* tighter gap between the hero and the content */
.vw-body {
  display: grid;
  direction: ltr;                 /* logo column left, text right */
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: start;
}
.vw-logo { width: 100%; max-width: 280px; height: auto; margin-top: 0; align-self: start; }
.vw-text { direction: rtl; text-align: right; }
.vw-text p { margin: 0 0 18px; line-height: 1.8; color: var(--ink); }
.vw-text strong { font-weight: 700; }
.vw-cta-row { text-align: right; margin-top: 36px; }   /* button right-aligned (RTL) */
.vw-cta {
  display: inline-block;
  border: 1px solid #000;
  color: #fff;
  background: #000;
  padding: 12px 30px;
  font-size: 16px;
  letter-spacing: .3px;
  text-align: center;
  transition: .2s;
}
.vw-cta:hover { background: #222; border-color: #222; color: #fff; opacity: 1; }

/* Mobile: a sticky "enter shop" bar pinned to the bottom of the screen. It
   slides away (docks) once the real in-page button scrolls into view, so the
   real one takes its place — like a sticky add-to-cart bar. */
.vw-cta-dock { display: none; }
@media (max-width: 760px) {
  .vw-cta-dock {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    background: #fff;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 18px rgba(0, 0, 0, .14);
    transition: transform .32s ease;
  }
  .vw-cta-dock.docked { transform: translateY(130%); }   /* hidden when the real button is visible */
  .vw-cta-dock .vw-cta { display: block; width: 100%; padding: 14px 30px; }
}

/* ---------- Shop ---------- */
.shop-cat { margin-bottom: 48px; }
/* the first category sits right under the (sticky) tabs bar — no extra top gap */
.shop-cat:first-of-type { padding-top: 0; }
.shop-cat-title {
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: 17px;                         /* same size as the category tabs */
  letter-spacing: .5px;
  color: var(--ink);
  text-align: right;
  margin: 0 11px 24px;                     /* align the heading with the tabs */
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.product { display: flex; flex-direction: column; }
.product .ph { position: relative; aspect-ratio: 3 / 4; margin-bottom: 12px; cursor: pointer; }
.product .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product .name { font-weight: 600; font-size: 17px; }
.product .price { color: var(--ink-soft); font-size: 16px; margin-bottom: 12px; }
.product.sold .ph img { opacity: .55; }
.sold-badge {
  position: absolute; top: 12px; inset-inline-start: 12px;
  background: rgba(0,0,0,.78); color: #fff; font-size: 12px;
  letter-spacing: .5px; padding: 5px 12px; border-radius: 2px;
}
.shop-buy { align-self: flex-start; margin-top: auto; padding: 10px 30px; font-size: 15px; border-radius: 0; }
.shop-buy[disabled] { opacity: .5; cursor: default; }
.product:hover { opacity: 1; }
.product:hover .ph img { opacity: .9; }

/* ---------- Single product page ---------- */
.shop-detail { padding: 48px 0 64px; }
.product-detail {
  display: grid;
  direction: ltr;                 /* image left, details right (RTL-conventional, like Wix) */
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
}
.pd-info { direction: rtl; }
.pd-media .ph { position: relative; background: var(--bg-alt); }
.pd-media .ph img { width: 100%; height: auto; display: block; }
.pd-info { padding-top: 6px; text-align: right; }
.pd-name { font-size: clamp(24px, 3vw, 34px); font-weight: 600; margin: 0 0 8px; }
.pd-price { font-size: 22px; color: var(--ink-soft); margin: 0 0 22px; }
.pd-desc p { color: var(--ink-soft); line-height: 1.85; margin: 0 0 14px; }
.pd-sold { display: inline-block; background: #000; color: #fff; padding: 9px 22px; margin-top: 8px; font-size: 14px; letter-spacing: .5px; }
.pd-checkout { margin-top: 26px; max-width: 320px; }
.pd-info-box { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 16px; }
.pd-info-box > summary { font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.pd-info-box > summary::-webkit-details-marker { display: none; }
.pd-info-box > summary::after { content: "＋"; color: var(--muted); font-weight: 400; }   /* on the opposite side of the title */
.pd-info-box[open] > summary::after { content: "－"; }
.pd-info-box ul { margin: 0; padding: 0; list-style: none; }
.pd-info-box li { color: var(--ink-soft); font-size: 14px; line-height: 1.7; margin-bottom: 6px; position: relative; padding-inline-start: 14px; text-align: right; }
.pd-info-box li::before { content: "–"; position: absolute; inset-inline-start: 0; color: var(--muted); }
.pd-back { margin-top: 30px; }
.pd-back a { font-weight: 600; border-bottom: 1px solid var(--ink); }

/* Product gallery — thumbnails (horizontal carousel, never wraps) + lightbox */
.pd-thumbs {
  display: flex; gap: 8px; margin-top: 10px;
  flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  min-width: 0; max-width: 100%;   /* the carousel scrolls internally — never widen the page */
}
.pd-media { min-width: 0; }         /* grid item must be allowed to shrink below content width */
.pd-thumbs::-webkit-scrollbar { display: none; }
.pd-thumb { flex: 0 0 auto; width: 60px; height: 60px; padding: 0; border: 1px solid var(--line); background: #fff; cursor: pointer; overflow: hidden; opacity: .7; transition: opacity .2s, border-color .2s; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb.active { opacity: 1; border-color: var(--ink); }
.pd-lightbox { position: fixed; inset: 0; z-index: 1200; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; padding: 40px; }
.pd-lightbox.open { display: flex; }
.pd-lightbox .lb-img { max-width: 90vw; max-height: 86vh; object-fit: contain; }
.pd-lightbox .lb-close { position: absolute; top: 16px; inset-inline-start: 22px; color: #fff; font-size: 38px; background: none; border: 0; cursor: pointer; line-height: 1; }
.pd-lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 54px; background: none; border: 0; cursor: pointer; padding: 14px 18px; opacity: .85; }
.pd-lightbox .lb-nav:hover { opacity: 1; }
.pd-lightbox .lb-prev { left: 6px; }
.pd-lightbox .lb-next { right: 6px; }

/* Product options + add to cart */
.pd-options { margin: 18px 0; display: flex; flex-direction: column; gap: 12px; max-width: 320px; }
.pd-opt label { display: block; font-size: 14px; margin-bottom: 4px; color: var(--ink-soft); }
.pd-opt select {
  width: 100%; padding: 9px 14px; border: 1px solid #bababa; border-radius: 0; background: #fff;
  font-family: var(--font); font-size: 15px;
  color: var(--ink); -webkit-text-fill-color: var(--ink); opacity: 1;   /* iOS Safari renders select text blue by default — force the ink colour */
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23555' stroke-width='1.6' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 16px center;
  padding-left: 40px;   /* room so the arrow sits away from the edge */
}
.pd-opt select.invalid { border-color: #c0392b; }
.pd-opt .req { color: #c0392b; }
.pd-opt-note { color: #c0392b; font-size: 13px; margin: 4px 0 0; }
.pd-buy { margin-top: 22px; max-width: 320px; }   /* match the width of the option dropdowns */
.pd-qty { display: inline-flex; align-items: center; border: 1px solid #bababa; }
.pd-qty button { width: 38px; height: 42px; border: 0; background: #fff; font-size: 20px; cursor: pointer; }
.pd-qty input { width: 46px; height: 42px; border: 0; border-inline: 1px solid #eee; text-align: center; font-size: 16px; font-family: var(--font); -moz-appearance: textfield; }
.pd-qty input::-webkit-outer-spin-button, .pd-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.btn.pd-add { width: 100%; display: block; text-align: center; padding: 13px; border-radius: 0; font-size: 16px; background: #000; color: #fff; }
.pd-go-checkout { font-weight: 600; border-bottom: 1px solid var(--ink); }

/* Checkout / cart page */
.checkout-wrap { max-width: 980px; margin: 0 auto; }
.view-title-page { font-size: clamp(22px,2.4vw,30px); font-weight: 600; margin: 0; }
.checkout-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.cart-back { font-size: 14px; font-weight: 600; color: var(--ink); border-bottom: 1px solid currentColor; white-space: nowrap; }
.cart-back:hover { opacity: .7; }
/* steps (accordion) on the right, order summary on the left */
.checkout-grid { display: grid; direction: rtl; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; }

/* ---- stepped wizard: accordion of cards ---- */
.co-card { border: 1px solid var(--line); background: #fff; }
.co-acc { padding: 0; }   /* override the global section padding (38px 0) */
.co-acc + .co-acc { border-top: 1px solid var(--line); }
/* uniform 20px padding on all sides (top/bottom == left/right) */
.co-acc-head { width: 100%; text-align: right; background: none; border: 0; cursor: pointer; font-family: var(--font); font-size: 18px; font-weight: 600; padding: 20px; color: var(--ink); display: block; }
.co-acc-n { font-weight: 600; }
.co-acc.future > .co-acc-head, .co-acc.future > .co-acc-head:disabled { color: #9aa3b2; cursor: default; }
.co-acc.active > .co-acc-head { cursor: default; padding-bottom: 14px; }   /* tighter gap before the fields */
.co-acc.done > .co-acc-head:hover { color: var(--ink-soft); }
.co-acc-body { padding: 0 20px 20px; }
.co-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.co-fields .field { margin: 0; }
.co-fields .co-full { grid-column: 1 / -1; }
.co-fields label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--ink-soft); }
.co-fields .req { color: #c0392b; }
/* match the contact-form fields exactly (sharp, white, #bababa border) */
.co-fields input { width: 100%; font-family: var(--font); font-size: 16px; padding: 12px 14px; border: 1px solid #bababa; border-radius: 0; background: #fff; color: var(--ink); text-align: right; }
.co-fields input:focus { outline: none; border-color: var(--ink); }
.co-fields input.invalid { border-color: #c0392b; }
.co-err { display: block; color: #c0392b; font-size: 12px; margin-top: 4px; }
.co-radios { display: flex; flex-direction: column; gap: 10px; }
.co-radio { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #bababa; cursor: pointer; font-size: 16px; }
.co-radio input { width: 18px; height: 18px; accent-color: var(--ink); }
.co-radio.on { border-color: var(--ink); background: #fafafa; }
.co-nav { display: flex; justify-content: flex-start; margin-top: 16px; }
.btn.co-next { padding: 12px 44px; border-radius: 0; background: #000; color: #fff; font-size: 16px; }
.btn.co-next:disabled { opacity: .35; cursor: not-allowed; }

/* ---- order summary (left) ---- */
.cart-summary { background: #f7f6f6; padding: 22px; position: sticky; top: calc(var(--header-h) + 24px); }
/* the title is a toggle button (used on mobile); reset it to look like a heading */
.cart-sum-title {
  font-size: 17px; font-weight: 600; margin: 0 0 14px;
  width: 100%; background: none; border: 0; padding: 0; font-family: var(--font);
  color: var(--ink); text-align: right; cursor: default;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.cart-sum-chevron { display: none; line-height: 0; color: var(--ink); transition: transform .25s ease; }
.cart-sum-items { margin-bottom: 16px; border-top: 1px solid #e0dede; }
.cart-row { display: grid; grid-template-columns: 60px 1fr; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid #e0dede; }
.cart-thumb { width: 60px; height: 60px; object-fit: cover; background: #fff; border: 1px solid #eee; }
.cart-info { min-width: 0; }
.cart-row-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cart-name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.cart-opts { font-size: 12px; color: var(--muted); margin: 3px 0 0; line-height: 1.5; }
.cart-row-bot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.cart-qty { display: inline-flex; align-items: center; border: 1px solid #d6d6d6; background: #fff; }
.cart-qty button { width: 26px; height: 28px; border: 0; background: #fff; font-size: 15px; cursor: pointer; }
.cart-qty span { min-width: 26px; text-align: center; font-size: 14px; }
.cart-line { font-weight: 600; font-size: 14px; white-space: nowrap; }
.cart-remove { background: none; border: 0; font-size: 19px; color: #aaa; cursor: pointer; line-height: 1; padding: 0; }
.cart-remove:hover { color: var(--ink); }
.cart-ship-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--ink-soft); padding: 10px 0; border-bottom: 1px solid #e0dede; }
.cart-ship-free { font-weight: 600; color: var(--ink); }
.cart-total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; margin-top: 12px; }
.cart-total-row strong { font-size: 22px; }
.cart-vat { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
/* empty cart: a single full-width panel, centred message + button (no side panel) */
.checkout-grid.cart-empty { grid-template-columns: 1fr; }
.checkout-grid.cart-empty .cart-summary { display: none; }
.cart-empty-box { background: #f7f6f6; text-align: center; padding: clamp(56px, 10vw, 110px) 24px; }
.cart-empty-text { font-size: clamp(18px, 2.2vw, 22px); color: var(--ink); margin: 0 0 26px; }
.btn.cart-empty-btn { display: inline-block; background: #000; color: #fff; padding: 14px 44px; border-radius: 0; font-size: 16px; }
.btn.cart-empty-btn:hover { opacity: .88; }

.checkout-thanks { text-align: center; padding: 40px 0; }
.checkout-thanks h2 { font-size: 26px; margin: 0 0 10px; }
.checkout-thanks .btn { margin-top: 20px; }

/* Cart icon in the header */
.nav-start { display: flex; align-items: center; gap: 8px; }
.cart-link { position: relative; display: inline-flex; align-items: center; color: var(--ink); padding: 6px; }
.cart-link:hover { opacity: .7; }
.cart-count { position: absolute; top: -2px; inset-inline-start: -4px; background: var(--ink); color: #fff; font-size: 11px; min-width: 17px; height: 17px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* Desktop: keep the gallery (main image + thumbnails) within the viewport and
   sticky, so only the right-hand info column scrolls. */
@media (min-width: 761px) {
  .pd-media {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
    max-height: calc(100vh - var(--header-h) - 48px);
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .pd-media .pd-main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    background: var(--bg-alt);
  }
  .pd-media .pd-main img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  .pd-media .pd-thumbs { flex: 0 0 auto; margin-bottom: 0; }
}

@media (max-width: 760px) {
  .shop-detail { padding: 10px 0 56px; }      /* less gap between the main image and the header */
  .product-detail { grid-template-columns: 1fr; gap: 18px; }
  /* main image bleeds edge-to-edge; swipe left/right to page through (JS) */
  /* main image bleeds edge-to-edge; the thumbs carousel (min-width:0) is what
     was widening the page, not this. */
  .pd-media .pd-main { width: 100vw; margin-inline: calc(50% - 50vw); }
  .pd-media .pd-thumbs { padding: 0 16px; }   /* keep thumbs aligned with the text */
  .pd-checkout { max-width: none; }
  /* full-width configuration dropdowns + add-to-cart on mobile */
  .pd-options { max-width: none; }
  .pd-buy { display: block; max-width: none; }
  .btn.pd-add { width: 100%; display: block; }
  .checkout-grid { grid-template-columns: 1fr; gap: 28px; }
  .co-fields { grid-template-columns: 1fr; }
  /* order summary moves to the top and collapses (the total stays visible) */
  .cart-summary { position: static; order: -1; }
  .cart-summary .cart-sum-title { cursor: pointer; }
  .cart-sum-chevron { display: inline-block; }
  .cart-summary-inner:not(.open) .cart-sum-title { margin-bottom: 0; }
  .cart-summary-inner:not(.open) .cart-sum-collapse { display: none; }
  .cart-summary-inner.open .cart-sum-chevron { transform: rotate(180deg); }
  .btn.co-next { padding: 12px; width: 100%; }
  .co-nav { gap: 12px; }
}

/* PayPal checkout modal */
.pp-modal {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.pp-modal[hidden] { display: none; }
.pp-card {
  position: relative; background: #fff; border-radius: 6px;
  width: 100%; max-width: 420px; padding: 30px 26px 26px;
  box-shadow: 0 24px 60px rgba(0,0,0,.25); text-align: center;
}
.pp-close {
  position: absolute; top: 8px; inset-inline-start: 12px;
  background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: #888;
}
.pp-prod-name { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.pp-prod-price { color: var(--ink-soft); font-size: 17px; margin-bottom: 18px; }
.pp-methods { font-size: 14px; color: var(--ink-soft); margin-bottom: 12px; }
.pp-buttons { min-height: 4px; }
.pp-note { margin-top: 16px; font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.pp-note a { font-weight: 600; border-bottom: 1px solid currentColor; }
.shop-group-title {
  font-family: var(--font-logo);
  font-size: 24px;
  margin: 48px 0 20px;
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Home: featured portrait + projects banner ---------- */
.home-feature {
  padding: 64px 0 0;
}
/* tighter gap between the "פרויקטים" band and the "פרטי-מגורים" heading (no divider line) */
#projects { padding-top: 0; }
#projects .cat-section:first-of-type { padding-top: 6px; }   /* tighter gap below the "פרויקטים" band */
.feature-photo {
  width: min(405px, 60vw);
  margin: 0 auto;                /* centered, like Wix */
  aspect-ratio: 3 / 4;
}
.feature-band {
  position: relative;
  margin: 0;
  padding: 64px 0 64px;
  display: flex;
  align-items: center;
  justify-content: center;       /* centered under the photo, like Wix */
  gap: 22px;
}
/* (removed) thin vertical line that used to drop from the photo's centre */
.feature-logo { height: 64px; width: auto; opacity: .9; }
.feature-title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  margin: 0;
  color: var(--ink);
}
.feature-title span { color: #b9b9b9; margin: 0 6px; }

/* ---------- Home contact section ---------- */
.home-contact { background: #fff; }    /* plain white, like the original */
.home-contact .container { max-width: 660px; }   /* match the form width so the heading aligns with it */

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-info .line { margin: 0 0 14px; font-size: 18px; }
.contact-info .label { color: var(--muted); font-size: 14px; display: block; }
form .field { margin-bottom: 16px; }
form label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--ink-soft); }
form input, form textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--ink);
}
form input:focus, form textarea:focus { outline: none; border-color: var(--ink); }
form textarea { min-height: 130px; resize: vertical; }

/* ---------- Contact page (Wix-style) ---------- */
.contact-page {
  background-color: #fafafa;
  background-image: url("https://res.cloudinary.com/donqondd4/image/upload/f_auto,q_auto,w_1600/merav/media/01");
  background-size: cover;
  background-position: center;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}
.contact-page .container { max-width: 660px; }   /* heading + form share one centred block, like Wix */
.contact-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;     /* RTL: heading sits on the right, like Wix */
  gap: 24px;
  margin-bottom: 40px;
}
/* Both the dedicated contact page AND the home contact section show the logo
   top-left with the heading on the right (same lockup). */
.contact-page .contact-head,
.home-contact .contact-head {
  direction: ltr;
  justify-content: space-between;
  align-items: flex-end;          /* heading sits at the logo's lower edge, like Wix */
  margin-bottom: 36px;
}
.contact-page .contact-logo,
.home-contact .contact-logo { display: block; height: 130px; width: auto; }
/* The home contact logo is the outline monogram (no text) — a touch smaller, like the original */
.home-contact .contact-logo { height: 62px; }
.contact-title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  letter-spacing: .5px;
  margin: 0;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 660px;          /* Wix form is ~630px wide */
  margin: 0 auto;
}
.contact-form .cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid #bababa;   /* Wix border colour */
  border-radius: 0;            /* sharp corners, like Wix */
  background: #fff;
  color: var(--ink);
  direction: rtl;              /* keep tel/email placeholders right-aligned */
  text-align: right;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--ink); }
.contact-form textarea { min-height: 190px; resize: vertical; }
.contact-form .cf-submit {
  align-self: center;
  background: #000;
  border-radius: 0;
  font-size: 15px;
  padding: 12px 56px;          /* ~186px wide, like Wix */
  margin-top: 8px;
}
.btn {
  display: inline-block;
  background: #000;
  color: #fff;
  border: 0;
  padding: 13px 40px;
  font-size: 16px;
  font-family: var(--font);
  border-radius: 6px;
  cursor: pointer;
  transition: .2s;
}
.btn:hover { opacity: .85; }
.form-note { color: var(--muted); font-size: 14px; margin-top: 10px; text-align: center; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 60px 30px 86px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s;
}
.lightbox.open { opacity: 1; visibility: visible; pointer-events: auto; }
/* Two stacked image layers crossfade between shots */
.lightbox .lb-inner {
  position: relative;
  margin: 0;
  width: 100%;
  flex: 1 1 auto;
}
.lightbox .lb-img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  height: auto;
  max-width: min(90vw, 1200px);
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.lightbox .lb-img.active { opacity: 1; }
.lightbox .lb-close {
  position: absolute; top: 16px; inset-inline-start: 22px;
  color: #fff; font-size: 38px; background: none; border: 0; cursor: pointer;
  z-index: 3; line-height: 1; padding: 6px 10px;
}
.lightbox .lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scaleX(-1);   /* flip the chevrons */
  z-index: 3;
  background: none;
  border: 0;
  color: #fff;
  font-size: 58px;
  line-height: 1;
  padding: 14px 18px;
  cursor: pointer;
  opacity: .85;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
  transition: opacity .2s;
}
.lightbox .lb-nav:hover { opacity: 1; }
.lightbox .lb-prev { left: 8px; }
.lightbox .lb-next { right: 8px; }

/* Thumbnail strip at the bottom */
.lb-thumbs {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 6px;
  padding: 10px 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;     /* momentum scroll on iOS */
  /* "safe center" centers when there's room but still lets you scroll to the
     ends when the thumbnails overflow (plain "center" clips the overflow). */
  justify-content: safe center;
  align-items: center;
  background: rgba(0,0,0,.55);
  scrollbar-width: none;
  touch-action: pan-x;                    /* let horizontal drags scroll the strip */
}
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumb-btn {
  flex-shrink: 0;
  background: none;
  border: 2px solid transparent;
  padding: 2px;
  cursor: pointer;
  opacity: .4;
  transition: opacity .2s, border-color .2s;
  border-radius: 2px;
}
.lb-thumb-btn.active { opacity: 1; border-color: #fff; }
.lb-thumb-btn img { display: block; width: 52px; height: 40px; object-fit: cover; }
@media (max-width: 760px) {
  .lightbox { padding: 50px 0 76px; }
  /* Full-bleed: the image always spans 100% width, no side padding */
  .lightbox .lb-img {
    inset: auto;                 /* cancel the inset:0 stretch/centering */
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
  }
  .lightbox .lb-nav { font-size: 44px; padding: 10px; }
  .lb-thumb-btn img { width: 44px; height: 34px; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 36px;
  background: #fff;            /* plain white, like the original */
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.footer-brand { white-space: nowrap; }   /* keep "MY Merav Yatsiv" + "מירב יציב" on one line */
.footer-brand .logo-mark { font-family: var(--font-logo); font-size: 30px; }
.footer-brand .he { font-size: 14px; color: var(--ink-soft); }
.socials { display: flex; gap: 20px; direction: ltr; }
.socials a {
  width: 42px; height: 42px;
  background: #000;
  border: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  transition: .2s;
}
.socials a:hover { opacity: .8; }
.socials svg { width: 18px; height: 18px; fill: #fff; }
.contact-quick { font-size: 16px; color: var(--ink-soft); }
.contact-quick a { font-weight: 600; }
.copyright { font-size: 13px; color: var(--muted); white-space: nowrap; }   /* one line */
.copyright .credit-link { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; opacity: .7; transition: opacity .2s ease; }
.copyright .credit-link:hover { opacity: 1; }

/* ---------- Page header band ---------- */
.page-band {
  padding: 72px 0 24px;
  text-align: center;
}
/* tighten the gap between the title band and the first content section (shop) */
.page-band + section { padding-top: 12px; }
/* Media page heading: stroke logo at the far right, title to its left (like Wix) */
.media-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;   /* RTL: hugs the right edge */
  gap: 16px;
}
.media-stroke-logo { width: 72px; height: auto; opacity: .9; }
/* Reuse the home "band" lockup (logo + title, right-aligned) but without the
   vertical connector line that drops from the home portrait. */
.page-band .feature-band { margin: 0; padding: 0; }
.page-band .feature-band::before { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .gallery, .press-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
  .proj-layout { grid-template-columns: 1fr; gap: 24px; }
  .proj-text { position: static; order: -1; }   /* stacked: title + description sit above the images */
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  :root { --header-h: 72px; }
  /* z-index above the drawer (99) so the hamburger→X stays clickable + visible on top */
  .nav-toggle { display: block; position: relative; z-index: 101; }

  /* Mobile header is just the floating hamburger — no strip, no border line,
     content (the hero) shows through behind it, like the Wix original */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;
    border-bottom: 0;
  }
  /* while the sticky category bar is showing, give the header a white backdrop
     plus the divider line between the header and the bar (like desktop) */
  html.cat-bar-active .site-header { background: #fff; border-bottom: 1px solid var(--line); }
  /* Keep the hamburger readable over both light and dark hero photos */
  .nav-toggle span { box-shadow: 0 0 4px rgba(0,0,0,.25); }

  /* Mobile nav: slides in from the right — same scattered-MY background as the Wix original */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 72vw;
    max-width: 320px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    background: #fff url("https://res.cloudinary.com/donqondd4/image/upload/f_auto,q_auto,w_800/merav/media/01") center/cover no-repeat;
    padding: 104px 0 40px;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .35s ease, visibility .35s;
    box-shadow: -6px 0 28px rgba(0,0,0,.18);
    z-index: 99;
  }
  .nav-links.open { transform: translateX(0); visibility: visible; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    width: 100%;
    text-align: right;
    padding: 16px 32px;
    font-size: 21px;
    font-weight: 300;
    color: var(--ink);
    border: none;
    letter-spacing: .3px;
  }
  .nav-links a.active { color: #c0392b; }
  .nav-links a:hover { opacity: .6; }
  .nav-links a.active::after, .nav-links a:hover::after { display: none; }

  .brand .logo-mark { font-size: 28px; }

  /* taller hero + narrower slides → portrait (rectangular) frames, like the original */
  .vw-hero { height: 60vh; min-height: 380px; }
  .vw-slide { flex-basis: 72%; max-width: 72%; padding: 0 6px; }
  .vw-arrow { width: 36px; height: 56px; font-size: 36px; }
  .vw-arrow-right { right: 4px; } .vw-arrow-left { left: 4px; }
  /* tighter spacing: minimal gap between the hero, the logo and the text */
  .vw-body-wrap { padding: 6px 0 30px; }
  .vw-body { grid-template-columns: 1fr; gap: 4px; }
  .vw-logo { margin: 0 auto; max-width: 200px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; padding-inline-start: 0; }

  /* Contact page: don't vertically-center on mobile — start near the top (less top gap) */
  .contact-page {
    min-height: 0;
    display: block;
    padding: 12px 0 40px;
  }
  .contact-page .contact-head,
  .home-contact { padding-top: 10px; }   /* less gap between the last project and "יצירת קשר" */
  .home-contact .contact-head { margin-bottom: 24px; }
  /* Same logo size in the home contact section as the dedicated contact page */
  .contact-page .contact-logo { height: 96px; }
  .home-contact .contact-logo { height: 58px; }

  /* About page on mobile: shorter hero, then centered logo → plain text → image.
     Drop the sticky-reveal and the dark text panel — a clean vertical stack. */
  body.about-page .about-hero {
    position: relative;
    height: 46vh;
    min-height: 280px;
  }
  body.about-page .about-section {
    padding: 28px 0 48px;
    background: #fff;
    background-image: none;
  }
  .about-logo {
    position: static;
    display: block;
    width: 92px;
    margin: 0 auto 22px;          /* centered */
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-inline-start: 0;
    direction: rtl;
  }
  .about-panel {
    order: 1;                      /* text comes right after the logo */
    background: transparent;       /* no slab/panel */
    color: var(--ink);
    padding: 0;
    text-align: right;
  }
  .about-panel p { line-height: 1.8; }
  .about-panel strong { color: var(--ink); }
  .about-card {
    order: 2;                      /* house image last */
    width: 100%;
    max-width: 360px;
    margin: 0 auto;                /* centered, drop the desktop overlap */
    aspect-ratio: 2 / 3;           /* tall ground-house photo */
    box-shadow: none;
  }

  /* Projects: single column on mobile */
  .gallery { grid-template-columns: 1fr; gap: 16px; }
  .press-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .press-grid .ph img { padding: 12px; }   /* logos were tiny on mobile — less inner padding */
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  section { padding: 44px 0; }

  /* Press / inner-press heading: smaller gap to the floating header on mobile */
  .page-band { padding: 24px 0 16px; }

  /* Hero: hide the logo panel, show only the slider.
     Pull it up under the floating header so the photo bleeds to the very top,
     but keep it a partial-height band (NOT full viewport), like the Wix original. */
  .hero {
    flex-direction: column;
    height: auto;                 /* don't inherit the desktop full-height; let the stage size it */
    min-height: 0;
    margin-top: calc(-1 * var(--header-h));
  }
  .hero-panel { display: none; }
  .hero-stage { width: 100%; flex: none; height: 46vh; min-height: 280px; }   /* shorter hero band, like the original */
  .hero-arrow { font-size: 40px; }

  /* Home featured band: just "פרויקטים" (hide the category list), tighter spacing */
  .feature-title-cats { display: none; }
  .home-feature { padding-top: 36px; }
  .feature-band { padding: 30px 0 22px; }
  /* tighter gap between the "פרויקטים" band and the "פרטי-מגורים" heading:
     trim the (hidden) sticky bar and the first category's top padding. */
  #projects { padding-top: 0; padding-bottom: 0; }
  #projects .cat-section:last-of-type { padding-bottom: 12px; }   /* trim the gap to the contact form */
  .cat-section { padding: 8px 0 24px; }                 /* less space above each category heading */
  .cat-bar-inner { padding-top: 4px; padding-bottom: 4px; }
  .cat-tab { padding: 6px 11px; }

  /* Edge-to-edge images on mobile (home + projects galleries, project page shots) */
  .cat-section .gallery,
  .proj-images { margin-inline: calc(50% - 50vw); }

  /* Mobile: titles stay visible at the bottom of the card (no hover interaction —
     a static caption over a soft bottom-up gradient, not a hover wash). */
  .card .card-cap {
    display: flex;
    opacity: 1;
    inset: auto 0 0 0;                 /* bottom strip only, not a full wash */
    flex-direction: column;
    align-items: flex-start;           /* RTL: text hugs the right edge */
    justify-content: flex-end;
    text-align: right;
    gap: 2px;
    padding: 26px 14px 12px;
    background: linear-gradient(to top, rgba(0,0,0,.6) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 100%);
  }
  .card:hover .card-cap { background: linear-gradient(to top, rgba(0,0,0,.6) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 100%); }   /* no extra hover darkening */
  .card .card-cap .t { font-size: 15px; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
  .card .card-cap .s { font-size: 12px; text-shadow: 0 1px 4px rgba(0,0,0,.4); }

  /* My Visual Wall: the "enter shop" button spans the full width on mobile */
  .vw-cta-row { text-align: center; }
  .vw-cta { display: block; width: 100%; padding: 14px 30px; }

  /* Header: put the cart icon on the opposite side from the hamburger.
     The drawer + burger stay on the right; the cart moves to the left edge. */
  .nav-start { width: 100%; justify-content: space-between; gap: 0; }
  .nav-start .nav-toggle { order: 1; }   /* right edge (RTL start) — where the drawer opens */
  .nav-start .cart-link { order: 2; }    /* left edge (opposite side) */

  /* Sticky category bar: solid white + soft shadow (from the base rule).
     The tabs are wider than the screen, so let them slide horizontally — no left mask. */
  .cat-bar-inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cat-bar-inner::-webkit-scrollbar { display: none; }
  .cat-tabs { flex: 0 0 auto; flex-wrap: nowrap; }
  .cat-tab { white-space: nowrap; }
}
@media (max-width: 420px) {
  .shop-grid { grid-template-columns: 1fr 1fr; }
  .container { width: min(var(--max), 100% - 32px); }   /* 16px side margins on phones */
}
