/* =========================
   Variables
========================= */
:root {
  --primary-color: #0A4C6A;      /* כחול/טורקיז */
  --secondary-color: #E8A900;    /* זהב */
  --primary-dark: #073549;
  --text-color: #111827;
  --text-muted: #6b7280;
  --bg-light: #f7f9fc;
  --border-color: #e5e7eb;
  --white-color: #ffffff;
  --whatsapp-color: #25D366;
  --main-font: "Heebo", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--main-font);
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--white-color);
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================
   Layout & Containers
========================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 50px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* =========================
   Buttons (Global)
========================= */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-dark);
  white-space: nowrap;
}

.btn-secondary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* =========================
   Header
========================= */
.main-header {
  background: var(--white-color);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
}

.main-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
}

.logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.logo-primary {
  color: var(--primary-color);
}

.logo-secondary {
  color: var(--secondary-color);
}

.logo-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* כפתורי ניווט בהדר */
.header-buttons-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  /* קצת פחות רווח כלפי התוכן שמתחת */
  margin-bottom: 8px;
}

.btn-header-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-header-nav:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* צבעים אחידים לכפתורי קטגוריה בהדר */
.btn-cat-apartments {
  background-color: var(--primary-color);
  color: #ffffff;
  border: 2px solid var(--primary-color);
}

.btn-cat-villas {
  background-color: var(--secondary-color);
  color: var(--primary-dark);
  border: 2px solid var(--secondary-color);
}

/* =========================
   Hero Section
========================= */
.hero {
  text-align: center;
  padding: 40px 0 30px; /* צמצום הרווח העליון לעומת 60px */
  background: linear-gradient(180deg, #f0f8ff 0%, var(--white-color) 100%);
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.hero .subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 30px;
}

/* =========================
   Grid Layout
========================= */
.grid {
  display: grid;
  gap: 25px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-4 {

  grid-template-columns: repeat(4, 1fr);
}

/* =========================
   Property Cards
========================= */
.property-card {
  background: var(--white-color);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease-in-out;
}

.property-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.property-card .image-wrapper {
  position: relative;
}

.property-card .image-placeholder {
  height: 250px;
  background: linear-gradient(135deg, var(--primary-color), #4db8ff);
}

.property-image {
  width: 100%;
  height: 240px;          /* גובה קבוע לכל הכרטיסים */
  object-fit: cover;
  border-radius: 12px;
}

.property-card .image-overlay {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background-color: rgba(0, 0, 0, 0.6);
  color: var(--white-color);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.property-card .card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.property-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 5px;
}

.property-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  flex-grow: 1;
}

.property-title-link {
  transition: color 0.2s ease-in-out;
}

.property-title-link:hover {
  color: var(--secondary-color);
}

.property-card .rating-box {
  background-color: var(--primary-color);
  color: var(--white-color);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
  flex-shrink: 0;
}

.property-card .rating-box .score {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.1;
}

.property-card .rating-box .text {
  font-size: 0.8rem;
}

.property-card .location-reviews {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.property-card .description {
  margin-bottom: 20px;
}

.property-card .features-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.property-card .features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.property-card .feature-tag {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* כפתורי יצירת קשר בתוך כרטיס נכס – גרסה מוערמת למובייל/דסקטופ */
.property-card .contact-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.property-card .btn-contact {
  padding: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease-in-out;
}

.property-card .btn-whatsapp {
  background-color: var(--whatsapp-color);
  color: var(--white-color);
}

.property-card .btn-whatsapp:hover {
  opacity: 0.9;
}

.property-card .btn-phone {
  background-color: var(--secondary-color);
  color: var(--primary-dark);
}

.property-card .btn-phone:hover {
  opacity: 0.9;
}

/* כפתורי יצירת קשר – גרסת סטאק (.card-actions-stacked) */
.card-actions-stacked {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
  gap: 8px;
}

.btn-action:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-wa {
  background-color: var(--whatsapp-color);
  color: #ffffff;
  border: 1px solid var(--whatsapp-color);
}

.btn-tel {
  background-color: var(--primary-color);
  color: #ffffff;

  border: 1px solid var(--primary-color);
}

/* =========================
   Category Navigation
========================= */
.category-navigation {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.btn-large-cat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  min-width: 260px;
  text-align: center;
}

.btn-large-cat:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* =========================
   Why Us Section
========================= */
.why-us-card {
  background: var(--white-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
}

.why-us-card .icon {
  font-size: 2.2rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
  line-height: 1;
}

.why-us-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* =========================
   How It Works (Steps)
========================= */
.steps-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
}

.steps-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
}

.steps-list-number {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 3px;
}

.steps-list-content h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--primary-dark);
}

.steps-list-content p {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin: 0;
}

/* =========================
   FAQ Section (Home)
========================= */
.faq-section-home {
  padding: 40px 0 10px;
}

.faq-section-home .section-header {
  text-align: center;
  margin-bottom: 20px;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-list details {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 0;
}

.faq-list details:last-child {
  border-bottom: none;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.98rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-question-text {
  flex: 1;
}

.faq-toggle-icon {
  margin-right: 10px;
  color: var(--primary-color);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.faq-list p {
  margin-top: 6px;
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* =========================
   Footer
========================= */
.main-footer {
  background-color: var(--primary-dark);
  color: #a0cbe0;
  padding: 40px 0;
  text-align: center;
}

.main-footer .footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white-color);
  margin-bottom: 15px;
}

.main-footer .footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 18px; /* מעט פחות רווח בין הקישורים */
  margin-bottom: 14px; /* צמצום הרווח כלפי הטקסט שמתחת */
  flex-wrap: wrap;
}

.main-footer .footer-links a:hover {
  color: var(--white-color);
}

.main-footer .copyright {
  font-size: 0.9rem;
}

/* =========================
   Responsive
========================= */
@media (max-width: 992px) {
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .main-header-inner {
    flex-direction: column-reverse;
    gap: 15px;
    text-align: center;
  }

  .header-buttons-group {
    justify-content: center;
    width: 100%;
  }

  .btn-header-nav,
  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .property-card h3 {
    font-size: 1.2rem;
  }

  .category-navigation {
    margin-top: 28px;
  }

  .btn-large-cat {
    width: 100%;
    min-width: auto;
  }

  .steps-list li {
    align-items: flex-start;
  }
}
