/* ============================================================
   RINĒLL — עמודי גלריה (שפת המותג: שמנת, נייבי, נחושת)
   ============================================================ */
:root {
  --cream: #f5eee3;
  --cream-soft: #f9f4ec;
  --paper: #ece1cd;
  --paper-shade: #e2d4bc;
  --navy: #1f2a6e;
  --navy-deep: #17204f;
  --royal: #1c2a9e;
  --royal-deep: #121c6e;
  --text: #2a3058;
  --text-soft: #6b6f8d;
  --copper: #a4744a;
  --copper-deep: #8a5f3c;
  --copper-light: #d3ac82;
  --copper-grad: linear-gradient(120deg, #8a5f3c 0%, #b8865a 45%, #d8b48f 60%, #a4744a 100%);
  --border: rgba(138, 95, 60, 0.18);
  --border-strong: rgba(138, 95, 60, 0.4);
  --shadow-md: 0 18px 50px rgba(31, 42, 110, 0.1);
  --shadow-gold: 0 10px 34px rgba(164, 116, 74, 0.28);
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-body: "Rubik", "Noto Sans Hebrew", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-script: "Amatic SC", "Rubik", cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--copper-light); color: var(--navy-deep); }
img { display: block; max-width: 100%; }
a { -webkit-tap-highlight-color: transparent; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ---------- פרפרים ---------- */
.butterfly {
  position: absolute; pointer-events: none;
  color: var(--paper);
  filter: drop-shadow(-6px 10px 10px rgba(138, 95, 60, 0.16));
  z-index: 0;
}
.butterfly svg { width: 100%; height: 100%; }
.butterfly.shade { color: var(--paper-shade); }
.b-float { animation: bFloat 7s ease-in-out infinite; }
.b-float.slow { animation-duration: 10s; animation-delay: -3s; }
@keyframes bFloat {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-14px) rotate(calc(var(--rot, 0deg) + 3deg)); }
}

/* ---------- ניווט ---------- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  background: rgba(245, 238, 227, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 12px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand-text {
  font-family: var(--font-serif); font-weight: 600;
  letter-spacing: 0.24em; font-size: 0.95rem; color: var(--navy);
}
.brand-text em { font-style: normal; color: var(--copper); font-weight: 400; margin: 0 2px; }
.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-links a {
  padding: 8px 16px; border-radius: 999px;
  color: var(--navy); text-decoration: none; font-weight: 600; font-size: 0.92rem;
  border: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-links a:hover { border-color: var(--border-strong); background: rgba(164, 116, 74, 0.08); }
.nav-links a.active { background: var(--copper-grad); color: #fff; }
.nav-links a.home-link { color: var(--copper-deep); }

/* ---------- כותרת העמוד ---------- */
.g-hero {
  position: relative; text-align: center;
  padding: 150px 22px 50px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(253, 249, 242, 0.9), transparent 70%),
    var(--cream);
}
.g-hero-content { position: relative; z-index: 1; }
.g-eyebrow {
  font-family: var(--font-serif);
  font-size: 0.95rem; letter-spacing: 0.5em; color: var(--copper-deep);
  text-transform: uppercase; margin-bottom: 10px;
}
.g-script {
  font-family: var(--font-script); font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--copper-deep);
  line-height: 1.1; margin-bottom: 4px;
}
.g-title {
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.2;
  color: var(--navy); margin-bottom: 14px;
}
.g-lead { color: var(--text-soft); font-size: 1.1rem; max-width: 620px; margin: 0 auto; }

/* ---------- קולאז' מזונרי ---------- */
.masonry-wrap { padding: 36px 0 90px; position: relative; }
.masonry {
  columns: 4;
  column-gap: 16px;
  position: relative; z-index: 1;
}
@media (max-width: 1100px) { .masonry { columns: 3; } }
@media (max-width: 760px) { .masonry { columns: 2; column-gap: 12px; } }

.m-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 26px rgba(31, 42, 110, 0.08);
  cursor: zoom-in;
  opacity: 0; transform: translateY(26px) scale(0.98);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), box-shadow 0.4s var(--ease);
}
.m-item.in { opacity: 1; transform: none; }
.m-item:hover { box-shadow: var(--shadow-md); }
.m-item img {
  width: 100%; display: block;
  transition: transform 0.7s var(--ease);
}
.m-item:hover img { transform: scale(1.045); }
.m-item::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 70%, rgba(23, 32, 79, 0.28) 100%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.m-item:hover::after { opacity: 1; }

.m-item.is-video { cursor: pointer; }
.play-badge {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.play-badge span {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(245, 238, 227, 0.88);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 26px rgba(23, 32, 79, 0.35);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.play-badge svg { width: 22px; height: 22px; color: var(--navy); margin-inline-start: 3px; }
.m-item.is-video:hover .play-badge span { transform: scale(1.1); background: #fff; }
.vid-tag {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2;
  font-family: var(--font-script); font-weight: 700; font-size: 1.15rem;
  color: #fff; background: rgba(23, 32, 79, 0.55);
  backdrop-filter: blur(4px);
  padding: 1px 14px; border-radius: 999px;
  pointer-events: none;
}

/* ---------- לייטבוקס ---------- */
.lb {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(14, 18, 48, 0.94);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.lb.open { opacity: 1; visibility: visible; }
.lb-media {
  max-width: min(92vw, 1100px); max-height: 86vh;
  display: flex; align-items: center; justify-content: center;
}
.lb-media img, .lb-media video {
  max-width: min(92vw, 1100px); max-height: 86vh;
  border-radius: 14px;
  box-shadow: 0 30px 90px rgba(0, 0, 10, 0.6);
  animation: lbIn 0.4s var(--ease);
}
@keyframes lbIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: none; }
}
.lb-btn {
  position: absolute; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(245, 238, 227, 0.3);
  background: rgba(245, 238, 227, 0.1);
  color: #f5eee3; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.lb-btn:hover { background: rgba(245, 238, 227, 0.25); transform: scale(1.08); }
.lb-close { top: 22px; inset-inline-end: 22px; }
.lb-next { inset-inline-start: 18px; top: 50%; transform: translateY(-50%); }
.lb-prev { inset-inline-end: 18px; top: 50%; transform: translateY(-50%); }
.lb-next:hover, .lb-prev:hover { transform: translateY(-50%) scale(1.08); }
.lb-count {
  position: absolute; bottom: 22px; inset-inline-start: 50%; transform: translateX(50%);
  color: rgba(245, 238, 227, 0.75);
  font-family: var(--font-serif); letter-spacing: 0.3em; font-size: 0.95rem;
  direction: ltr;
}
@media (max-width: 640px) {
  .lb-btn { width: 44px; height: 44px; }
  .lb-next { inset-inline-start: 8px; }
  .lb-prev { inset-inline-end: 8px; }
}

/* ---------- מעבר לגלריות נוספות ---------- */
.more-galleries { padding: 0 0 90px; text-align: center; }
.more-galleries h2 {
  font-family: var(--font-script); font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.3rem); color: var(--copper-deep);
  margin-bottom: 26px;
}
.mg-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.mg-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 34px; border-radius: 999px;
  border: 1.5px solid var(--navy); color: var(--navy);
  text-decoration: none; font-weight: 700; font-size: 1.05rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.mg-link:hover { background: var(--navy); color: var(--cream); transform: translateY(-3px); }
.mg-link i { font-style: normal; color: var(--copper); font-size: 0.7rem; transition: color 0.3s; }
.mg-link:hover i { color: var(--copper-light); }

/* ---------- פוטר ---------- */
.footer {
  background: var(--navy-deep);
  padding: 46px 0 38px; text-align: center;
  position: relative; overflow: hidden;
}
.footer .butterfly { color: rgba(255, 255, 255, 0.05); filter: none; }
.footer .container { position: relative; z-index: 1; }
.footer-logo { width: 62px; margin: 0 auto 12px; filter: drop-shadow(0 0 14px rgba(211, 172, 130, 0.25)); }
.footer .tagline {
  font-family: var(--font-script); font-weight: 700;
  font-size: 1.5rem; color: var(--copper-light); margin-bottom: 8px;
}
.footer p { color: rgba(240, 237, 245, 0.65); font-size: 0.9rem; }
.footer-contact a { color: var(--copper-light); text-decoration: none; font-weight: 600; }
.footer-contact a:hover { color: #fff; }
.footer-credit { margin-top: 14px; font-size: 0.78rem !important; color: rgba(240, 237, 245, 0.45) !important; }
.footer-credit a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.footer-credit a:hover { color: #fff; }

/* ---------- עמודי מידע (נגישות, פרטיות) ---------- */
.g-hero-sm { padding-bottom: 28px; }
.legal { padding: 10px 22px 90px; }
.legal-card {
  max-width: 820px; margin: 0 auto;
  background: var(--cream-soft); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: clamp(24px, 5vw, 48px);
}
.legal-card h2 {
  color: var(--navy); font-size: 1.3rem; font-weight: 800;
  margin: 30px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border);
}
.legal-card p { margin-bottom: 12px; }
.legal-card ul { margin: 0 0 12px; padding-inline-start: 22px; }
.legal-card li { margin-bottom: 6px; }
.legal-card a { color: var(--copper-deep); font-weight: 600; }
.legal-card strong { color: var(--navy); }
.legal-date { margin-top: 28px; color: var(--text-soft); font-size: 0.9rem; }

.footer-legal { margin-top: 10px; }
.footer-legal a { color: rgba(240, 237, 245, 0.75); text-decoration: none; border-bottom: 1px dotted currentColor; }
.footer-legal a:hover { color: #fff; }

/* ---------- וואטסאפ צף ---------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--copper-grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(164, 116, 74, 0.4), 0 4px 14px rgba(31, 42, 110, 0.25);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.wa-float:hover { transform: translateY(-4px) scale(1.05); }

@media (max-width: 760px) {
  .g-hero { padding-top: 170px; }
  .nav-inner { flex-direction: column; align-items: stretch; }
  .nav-links { justify-content: center; }
  .butterfly.hide-m { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .m-item { opacity: 1; transform: none; }
}
