/* Libra Intelligence - Premium UI */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600&family=Noto+Sans+Hebrew:wght@300;400;500;600&display=swap');

:root {
  --color-bg: #FAFAFA;
  --color-dark: #1D1D1F;
  --color-accent: #00D2D3;
  --color-gray: #86868B;
  --color-muted: #909090;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body { margin: 0; font-family: var(--font-body); background: var(--color-bg); color: var(--color-dark); animation: pageFadeIn 0.6s ease-out; }
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Scroll animations */
.animate-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.animate-on-scroll.in-view { opacity: 1; transform: translateY(0); }
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }

/* Nav */
.nav-pill {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  max-width: 960px;
  width: calc(100% - 2rem);
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 9999px;
  border: 1px solid rgba(0,0,0,0.05);
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-heading); font-size: 15px; font-weight: 300; letter-spacing: 0.25em; color: #000; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 1.25rem; flex-wrap: nowrap; }
.nav-links a { white-space: nowrap; }
.nav-links a { font-size: 12px; font-weight: 300; letter-spacing: 0.05em; color: var(--color-muted); text-decoration: none; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: #000; }
.mobile-menu-btn { display: none; padding: 0.25rem; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 28px; height: 28px; min-width: 28px; min-height: 28px; border: none; background: transparent; color: #000; }
.mobile-menu-btn .hamburger-line { display: block; width: 18px; height: 1.5px; background: #000; border-radius: 1px; transition: transform 0.25s ease, opacity 0.2s ease; }
.mobile-menu-btn.is-open .hamburger-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-menu-btn.is-open .hamburger-line:nth-child(2) { opacity: 0; }
.mobile-menu-btn.is-open .hamburger-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.lang-toggle { font-size: 11px; letter-spacing: 0.1em; color: var(--color-muted); cursor: pointer; padding: 0.25rem 0.5rem; border: 1px solid rgba(0,0,0,0.1); border-radius: 4px; background: transparent; }
@media (min-width:768px) { .mobile-menu-btn { display: none !important; } #desktop-nav { display: flex !important; } }
@media (max-width:767px) { .mobile-menu-btn { display: flex; align-items: center; justify-content: center; } }
@media (max-width:767px) { main.mobile-less-top { padding-top: 4rem !important; } }
@media (min-width:768px) { main.contact-page { padding-top: 4rem !important; } main.contact-page .contact-cta { padding-top: 4rem !important; padding-bottom: 5rem !important; } }

/* Mobile menu */
.mobile-nav { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.98); z-index: 40; padding: 5rem 1.5rem; overflow-y: auto; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.3s ease, visibility 0.3s; }
.mobile-nav.open { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-nav a { display: block; padding: 1rem 0; font-size: 18px; color: var(--color-dark); text-decoration: none; border-bottom: 1px solid rgba(0,0,0,0.06); }

/* RTL */
[dir="rtl"] body { font-family: 'Noto Sans Hebrew', sans-serif; }
[dir="rtl"] .h1-hero,
[dir="rtl"] .h2-section { font-family: 'Noto Sans Hebrew', sans-serif; }
[dir="rtl"] .logo,
[dir="rtl"] .libra-brand { font-family: var(--font-heading) !important; }
[dir="rtl"] .section-title-he { font-family: 'Noto Sans Hebrew', sans-serif !important; }
[dir="rtl"] .nav-inner { flex-direction: row-reverse; direction: rtl; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; direction: rtl; }
[dir="rtl"] .mobile-nav { text-align: right; direction: rtl; }

/* Typography */
.h1-hero { font-family: var(--font-heading); font-size: clamp(3rem, 12vw, 8rem); font-weight: 300; letter-spacing: 0.2em; text-align: center; }
.h2-section { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 300; line-height: 1.15; }
.accent-text { color: var(--color-accent); font-style: italic; }
.label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-accent); font-weight: 500; }
.label-gray { color: var(--color-gray); }

/* Sections */
.section { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .section { padding: 0 3rem; } }

/* Gallery masonry */
.gallery { column-count: 2; column-gap: 20px; }
@media (min-width: 768px) { .gallery { column-count: 3; } }
@media (min-width: 1024px) { .gallery { column-count: 4; } }
.gallery-item { break-inside: avoid; margin-bottom: 20px; }
.gallery-item a { display: block; overflow: hidden; border-radius: 4px; position: relative; }
.gallery-item img { width: 100%; height: auto; display: block; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.gallery-item:hover img { transform: scale(1.02); }
.gallery-item .overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.08); opacity: 0; transition: opacity 0.4s ease; pointer-events: none; }
.gallery-item:hover .overlay { opacity: 1; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.9); cursor: pointer; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; display: flex; align-items: center; justify-content: center; }
.lightbox-inner img { max-width: 100%; max-height: 90vh; width: auto; height: auto; object-fit: contain; }
.lightbox-close { position: fixed; top: 1.5rem; right: 1.5rem; width: 2.5rem; height: 2.5rem; border: none; background: transparent; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; opacity: 0.8; transition: opacity 0.2s; z-index: 101; }
.lightbox-close:hover { opacity: 1; }
[dir="rtl"] .lightbox-close { right: auto; left: 1.5rem; }

/* Cards */
.card { background: #fff; border-radius: 1.5rem; padding: 1.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.05); transition: box-shadow 0.4s ease, transform 0.4s ease; }
.card:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.08); transform: translateY(-2px); }
.vip-card { border: 1px solid rgba(0,210,211,0.2); box-shadow: 0 20px 40px rgba(0,210,211,0.08); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 2rem; border-radius: 9999px; font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-decoration: none; transition: all 0.35s ease; cursor: pointer; border: none; }
.btn-primary { background: var(--color-dark); color: #fff; }
.btn-primary:hover { background: var(--color-accent); }
.btn-secondary { background: #F5F5F7; color: var(--color-dark); }
.btn-secondary:hover { background: var(--color-dark); color: #fff; }
.btn-accent { background: linear-gradient(to left, var(--color-accent), #00B4D8); color: #fff; }
.btn-outline { border: 1px solid #D2D2D7; color: var(--color-dark); }
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* Form */
.form-input { width: 100%; padding: 1rem 1.25rem; border-radius: 6px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); color: #fff; font-size: 14px; }
.form-input::placeholder { color: rgba(255,255,255,0.4); }
.form-input:focus { outline: none; box-shadow: 0 0 0 1px rgba(255,255,255,0.5); }
@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr !important; }
}

/* Footer */
.footer { background: #000; color: #fff; padding: 5rem 1.5rem 2rem; }
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 0 3rem; }
.footer-links a { color: rgba(255,255,255,0.4); text-decoration: none; font-size: 13px; transition: color 0.3s; }
.footer-links a:hover { color: #fff; }
@media (max-width: 767px) {
  .footer-links { flex-direction: column; align-items: center; gap: 0.75rem; }
}
.social-link { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); transition: all 0.3s; }
.social-link:hover { color: #fff; border-color: rgba(255,255,255,0.4); }

/* Process steps */
.process-step { background: #F5F5F7; border-radius: 1rem; padding: 2rem; transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease; }
.process-step:hover { background: #fff; box-shadow: 0 10px 25px rgba(0,0,0,0.06); transform: translateY(-3px); }
.step-num { font-family: var(--font-heading); font-size: 3rem; color: rgba(0,210,211,0.18); line-height: 1; }

/* Package grid */
.package-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .package-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .package-grid { grid-template-columns: repeat(3, 1fr); } }

/* Hero sections */
.hero-full { min-height: 100vh; position: relative; overflow: hidden; }
.hero-compact { min-height: 65vh; }
@media (min-width: 768px) {
  .hero-compact { min-height: unset; height: 100vh; }
  .hero-compact.hero-full img { object-fit: cover; }
}
.hero-full img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.1)); }
.hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 2.5rem 1.5rem; }
@media (min-width: 768px) { .hero-content { padding: 4rem 3rem; } }

/* Column layout */
.columns-2 { column-count: 2; column-gap: 1rem; }
@media (min-width: 768px) { .columns-2 { column-count: 3; } }

/* Utility */
.relative { position: relative; }
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.pb-24 { padding-bottom: 6rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-24 { padding-top: 6rem; }
@media (min-width: 768px) { .md\:py-40 { padding-top: 10rem; padding-bottom: 10rem; } }

/* Grid */
.grid-2 { display: grid; gap: 2rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Check icon */
.check { color: var(--color-accent); flex-shrink: 0; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(0,0,0,0.95);
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 13px;
  box-shadow: 0 -2px 20px rgba(0,0,0,0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { margin: 0; flex: 1; min-width: 200px; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner a:hover { opacity: 0.9; }
.cookie-banner .cookie-accept {
  padding: 0.5rem 1.25rem;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}
.cookie-banner .cookie-accept:hover { opacity: 0.9; }
@media (max-width: 540px) {
  .cookie-banner { flex-direction: column; text-align: center; }
}

/* Form success message */
.form-success {
  padding: 2rem;
  text-align: center;
  color: #fff;
}
.form-success svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--color-accent);
}

/* Back link */
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.8); font-size: 14px; text-decoration: none; transition: color 0.3s; }
.back-link:hover { color: #fff; }
[dir="rtl"] .back-link svg { transform: rotate(180deg); }
