/*
Theme Name: Kiryat HaMaslul
Theme URI: https://kiryat-hamaslul.co.il/
Author: Antigravity AI
Description: A stunning, custom real estate theme for Kiryat HaMaslul, featuring a clean code base, premium aesthetics, and lightning-fast load times.
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;700;800&display=swap');

:root {
  --primary: #0a2540;      /* Deep navy */
  --secondary: #00d4ff;    /* Vibrant cyan */
  --accent: #ffa000;       /* Warm orange accent */
  --bg-light: #f4f7f9;     /* Off-white background */
  --text-main: #333333;    /* Dark gray text */
  --text-muted: #666666;   
  --white: #ffffff;
  --font-main: 'Heebo', sans-serif;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-hover: 0 15px 40px rgba(0,0,0,0.12);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-main);
  direction: rtl;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary); }
ul { list-style: none; }

/* ------------------- HEADER ------------------- */
.site-header {
  background: var(--white);
  padding: 1.2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.site-logo a {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.site-logo span { color: var(--secondary); }

.main-nav ul {
  display: flex;
  gap: 2.5rem;
}
.main-nav a {
  font-weight: 500;
  color: var(--primary);
  font-size: 1.1rem;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px; right: 0;
  width: 0; height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}
.main-nav a:hover::after { width: 100%; }

/* ------------------- HERO ------------------- */
.hero-section {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, #0d3b66 100%);
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070&auto=format&fit=crop') center/cover;
  opacity: 0.2;
  mix-blend-mode: overlay;
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
}
.hero-content h1 {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
  text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.hero-content p {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.9;
}
.btn-primary {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 5px 15px rgba(0,212,255,0.3);
  transition: var(--transition);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,212,255,0.4);
  color: var(--primary);
}

/* ------------------- SECTIONS ------------------- */
.section-padding { padding: 6rem 1rem; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 3.5rem;
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

/* ------------------- GRID LAYOUTS ------------------- */
.articles-grid, .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}
.card-image {
  height: 220px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-image {
  transform: scale(1.05);
}
.card-content { padding: 2rem; }
.card-meta {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.card-title {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}
.card-excerpt {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.card-link {
  font-weight: 700;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ------------------- HIGHLIGHT PROJECT ------------------- */
.featured-project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.fp-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}
.fp-content {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.fp-content h3 { font-size: 2.2rem; margin-bottom: 1rem; color: var(--primary); }
.fp-content p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; }

/* ------------------- FOOTER ------------------- */
.site-footer {
  background: var(--primary);
  color: var(--white);
  padding: 4rem 1rem 2rem;
  text-align: center;
}
.footer-logo {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}
.footer-logo span { color: var(--secondary); }
.footer-copy {
  margin-top: 3rem;
  font-size: 0.9rem;
  opacity: 0.5;
}

/* ------------------- ANIMATIONS ------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Add delays for grid items */
.card:nth-child(1) { transition-delay: 0.1s; }
.card:nth-child(2) { transition-delay: 0.2s; }
.card:nth-child(3) { transition-delay: 0.3s; }
.stat-box:nth-child(1) { transition-delay: 0.1s; }
.stat-box:nth-child(2) { transition-delay: 0.2s; }
.stat-box:nth-child(3) { transition-delay: 0.3s; }
.stat-box:nth-child(4) { transition-delay: 0.4s; }
.faq-item:nth-child(1) { transition-delay: 0.1s; }
.faq-item:nth-child(2) { transition-delay: 0.2s; }
.faq-item:nth-child(3) { transition-delay: 0.3s; }

/* RESPONSIVE & MOBILE MENU */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001; /* Keep above nav when open */
}

.menu-toggle .bar {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: var(--primary);
  border-radius: 3px;
}

@media (max-width: 900px) {
  .site-header { 
    padding: 1.2rem 2rem; 
  }
  
  .menu-toggle {
    display: block;
  }
  
  /* Hamburger Animation */
  .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
  .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
  }
  
  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .main-nav a {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.5rem; }
  .hero-content p { font-size: 1.2rem; }
  .featured-project { grid-template-columns: 1fr; }
  .fp-content { padding: 2rem; }
  .section-title { font-size: 2rem; }
  .articles-grid, .projects-grid { 
    grid-template-columns: 1fr; 
  }
  .fp-image { min-height: 250px; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 2rem; }
  .site-header { padding: 1rem; }
  .btn-primary { padding: 0.8rem 1.5rem; font-size: 1rem; }
}
