/* Global CSS Variables & Design System */
:root {
  --color-bg-primary: #fcfbfa;
  --color-bg-secondary: #f4f3f0;
  --color-text-primary: #1e293b;
  --color-text-secondary: #475569;
  --color-accent: #d97706; /* Warm amber */
  --color-accent-light: #fef3c7; /* Light amber */
  --color-primary: #2563eb; /* Blue accent */
  --color-success: #16a34a; /* Green */
  --color-border: #e2e8f0;
  --color-card-bg: rgba(255, 255, 255, 0.85);
  
  --font-title: 'Rubik', system-ui, -apple-system, sans-serif;
  --font-body: 'Assistant', system-ui, -apple-system, sans-serif;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles & Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  color: #0f172a;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Layout Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fef3c7 0%, #fae8ff 50%, #e0e7ff 100%);
  padding: 4rem 1.5rem 6rem 1.5rem;
  overflow: hidden;
}

/* Background blob decorations */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(251,191,36,0.2) 0%, rgba(255,255,255,0) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, rgba(255,255,255,0) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.wedding-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-accent);
  box-shadow: var(--shadow-sm);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--color-text-secondary);
  max-width: 650px;
  margin-bottom: 1rem;
}

/* Quick Info Badges Grid */
.quick-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  width: 100%;
  margin-top: 2rem;
}

.spec-card {
  background: var(--color-card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition-normal);
}

.spec-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(217, 119, 6, 0.3);
}

.spec-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.spec-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.spec-value {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 0.25rem;
}

.spec-subtext {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-top: 0.1rem;
}

/* Main Section Header */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 2.25rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
}

.section-header p {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  margin-top: 0.75rem;
}

/* Gallery Section */
.gallery-section {
  padding: 5rem 0;
  background-color: var(--color-bg-secondary);
  position: relative;
}

.gallery-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

/* Scroll snap gallery */
.gallery-viewport {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 4px solid #fff;
  background: #000;
  scrollbar-width: none; /* Hide standard Firefox scrollbar */
}

.gallery-viewport::-webkit-scrollbar {
  display: none; /* Hide Chrome/Safari scrollbar */
}

.gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: pointer;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.gallery-slide:hover img {
  transform: scale(1.03);
}

.gallery-slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
  color: white;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.gallery-slide-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
}

.gallery-slide-counter {
  font-size: 0.9rem;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
}

/* Gallery Controls */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
  font-size: 1.2rem;
  font-weight: bold;
}

.gallery-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.08);
  box-shadow: var(--shadow-lg);
}

.gallery-nav.prev {
  right: -24px;
}

.gallery-nav.next {
  left: -24px;
}

/* Scroll indicator dots */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: var(--transition-fast);
}

.dot.active {
  background: var(--color-accent);
  width: 24px;
  border-radius: 5px;
}

/* Key Advantages / Features */
.features-section {
  padding: 6rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: var(--transition-normal);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #fbd38d;
}

.feature-icon-wrapper {
  background: var(--color-bg-secondary);
  color: var(--color-accent);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--color-accent-light);
  transform: scale(1.05);
}

.feature-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
}

.feature-text {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

/* Highlight special "window" feature */
.feature-card.special-highlight {
  background: linear-gradient(145deg, #fffbeb 0%, #ffffff 100%);
  border: 2px solid #f59e0b;
  position: relative;
  overflow: hidden;
}

.feature-card.special-highlight::before {
  content: 'נדיר!';
  position: absolute;
  top: 15px;
  left: -25px;
  background: #f59e0b;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 2rem;
  transform: rotate(-45deg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-align: center;
}

/* Furniture & Inclusions Section */
.inclusions-section {
  padding: 6rem 0;
  background-color: #fafaf9;
}

.inclusions-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.furniture-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.furniture-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #0f172a;
}

.furniture-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.furniture-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
}

.furniture-item::before {
  content: '✓';
  color: var(--color-success);
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Fridge special promo box */
.fridge-promo-card {
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  border: 1px dashed #0284c7;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.fridge-badge {
  align-self: flex-start;
  background: #0284c7;
  color: white;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
}

.fridge-title {
  font-size: 1.35rem;
  color: #0369a1;
}

.fridge-price {
  font-size: 2rem;
  font-weight: 800;
  color: #0369a1;
  font-family: var(--font-title);
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.fridge-price span {
  font-size: 1rem;
  font-weight: 500;
  color: #0284c7;
}

.fridge-features {
  font-size: 0.95rem;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Neighborhood Section */
.neighborhood-section {
  padding: 6rem 0;
}

.neighborhood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.neighborhood-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition-normal);
}

.neighborhood-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.neighborhood-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.neighborhood-type {
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
}

.neighborhood-dist {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.neighborhood-name {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
}

.neighborhood-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* Lightbox Modal for full size images */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: white;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.08);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-nav.prev {
  right: 20px;
}

.lightbox-nav.next {
  left: 20px;
}

/* Call To Action Footer & Contact Card */
.contact-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(217, 119, 6, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.contact-card {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.contact-card h2 {
  color: white;
  font-size: 2rem;
}

.contact-desc {
  color: #cbd5e1;
  font-size: 1.1rem;
  max-width: 450px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #25d366;
  color: white;
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.2rem;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: var(--transition-normal);
  border: 2px solid transparent;
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  background-color: #22c35e;
}

.phone-number {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Floating Sticky WhatsApp Button */
.whatsapp-sticky {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.1);
  cursor: pointer;
  z-index: 100;
  text-decoration: none;
  font-size: 1.8rem;
  transition: var(--transition-normal);
  animation: pulse-green 2s infinite;
}

.whatsapp-sticky:hover {
  transform: scale(1.1) rotate(10deg);
  background-color: #22c35e;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Footer Copyright */
footer {
  background-color: #090d16;
  color: #64748b;
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Adaptive Responsive Layout for Hebrew RTL */
@media (max-width: 900px) {
  .hero-title {
    font-size: 2.75rem;
  }
  .inclusions-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .gallery-nav {
    display: none; /* Swipe is preferred on tablet/mobile */
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .section-header h2 {
    font-size: 1.75rem;
  }
  .spec-card {
    padding: 1.25rem 1rem;
  }
  .contact-card {
    padding: 2rem 1.25rem;
  }
  .whatsapp-sticky {
    bottom: 1.5rem;
    left: 1.5rem;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}
