/* Premium home layout + admin image slots (page-home only) */

.page-home {
  background:
    radial-gradient(1200px 480px at 50% -10%, rgba(214, 180, 106, 0.08), transparent),
    linear-gradient(180deg, #030303 0%, #060606 40%, #050505 100%);
}

.page-home .topbar {
  border-bottom-color: rgba(214, 180, 106, 0.35);
}

.page-home .navbar {
  gap: 0.65rem;
}

.home-lang-pill {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1px solid rgba(214, 180, 106, 0.45);
  color: var(--champagne);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
}

@media (min-width: 960px) {
  .home-lang-pill {
    display: inline-flex;
  }
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-wordmark {
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  font-size: 1.02rem;
  color: var(--champagne);
  text-transform: uppercase;
}

/* Hero */
.home-hero-premium {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: flex-end;
  padding: 5.5rem 0 3.5rem;
  overflow: hidden;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(105deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.82) 55%, rgba(0, 0, 0, 0.92) 100%),
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(214, 180, 106, 0.15), transparent),
    linear-gradient(160deg, #121212, #050505);
  background-size: cover;
  background-position: center;
}

.home-hero-bg.has-image {
  background-image: linear-gradient(to left, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.65) 35%, rgba(0, 0, 0, 0.3) 70%, rgba(0, 0, 0, 0.15) 100%),
    var(--home-hero-bg, none);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

.home-hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(3, 3, 3, 0.95) 0%, transparent 45%);
}

.home-hero-grid {
  position: relative;
  z-index: 2;
}

.home-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.home-hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 5vw, 3.35rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--champagne);
  max-width: 22ch;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}

.home-hero-title-line2 {
  display: inline-block;
  font-size: 0.82em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.005em;
}

.home-lead {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.12rem);
  max-width: 42ch;
  line-height: 1.75;
}

.home-hero-microcopy {
  margin: 0.85rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  max-width: 44ch;
  line-height: 1.55;
}

.home-services-cta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}
.home-services-cta-line {
  margin: 0;
  color: var(--champagne);
  font-size: 1rem;
  font-weight: 600;
}

.btn-glow {
  box-shadow:
    0 0 0 1px rgba(214, 180, 106, 0.35),
    0 8px 32px rgba(214, 180, 106, 0.35);
}

.btn-glow:hover {
  box-shadow:
    0 0 0 1px rgba(214, 180, 106, 0.5),
    0 12px 40px rgba(214, 180, 106, 0.42);
}

/* Value props */
.home-values {
  padding: 3rem 0 1rem;
}

.home-values-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .home-values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.home-value-card {
  border: 1px solid rgba(214, 180, 106, 0.4);
  border-radius: var(--radius);
  padding: 0;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.home-value-banner {
  position: relative;
  aspect-ratio: 16 / 7;
  min-height: 96px;
  background:
    linear-gradient(180deg, rgba(214, 180, 106, 0.1), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 24px);
  background-size: cover;
  background-position: center 35%;
  border-bottom: 1px solid rgba(214, 180, 106, 0.2);
}

.home-value-banner.has-image {
  border-bottom-color: rgba(214, 180, 106, 0.35);
}

.home-value-body {
  padding: 1.1rem 1.15rem 1.25rem;
  text-align: center;
}

.home-value-icon {
  font-size: 1.65rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  filter: grayscale(0.2);
}

.home-value-body h3 {
  margin: 0 0 0.45rem;
  color: var(--gold);
  font-size: 1.05rem;
}

.home-value-body p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Services */
.home-services {
  padding: 3rem 0;
}

.home-services-head {
  text-align: center;
  margin-bottom: 2rem;
}

.home-services-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--champagne);
}

.home-services-head p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 46ch;
  margin-inline: auto;
}

.home-services-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .home-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .home-services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.home-service-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 180, 106, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.home-service-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 140px;
  background:
    linear-gradient(160deg, rgba(40, 40, 40, 0.95), rgba(12, 12, 12, 1)),
    radial-gradient(circle at 70% 30%, rgba(214, 180, 106, 0.22), transparent 50%);
  background-size: cover;
  background-position: center 40%;
  border-bottom: 1px solid rgba(214, 180, 106, 0.18);
}

.home-service-thumb.has-image {
  border-bottom-color: rgba(214, 180, 106, 0.35);
}

.home-service-body {
  padding: 1.15rem 1.1rem 1.25rem;
  display: grid;
  gap: 0.55rem;
  flex: 1;
}

.home-service-body h3 {
  margin: 0;
  color: var(--gold);
  font-size: 1.08rem;
}

.home-service-body p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.home-service-link {
  color: var(--champagne);
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.home-service-link::before {
  content: "לפרטים";
}

.home-service-link::after {
  content: "›";
  font-size: 1.1rem;
  line-height: 1;
}

/* Split: steps + testimonial */
.home-split {
  padding: 2.5rem 0 3rem;
}

.home-split-grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .home-split-grid {
    grid-template-columns: 1.35fr 1fr;
    gap: 0;
  }
  /* When there are no approved reviews the quote panel is hidden — collapse
     the split to a single column so the steps panel doesn't leave a gap. */
  .home-split-grid:has(.home-quote-panel[hidden]) {
    grid-template-columns: 1fr;
  }
}

.home-steps-panel,
.home-quote-panel {
  background: transparent;
  border: 0;
  padding: 0.5rem 0;
}
/* Hidden when there are no approved reviews / only one review. */
.home-quote-panel[hidden],
.home-quote-nav[hidden] { display: none; }

@media (min-width: 900px) {
  .home-steps-panel {
    padding-inline-end: 2.5rem;
  }
  .home-quote-panel {
    padding-inline-start: 2.5rem;
    border-inline-start: 1px solid rgba(214, 180, 106, 0.28);
  }
}

@media (max-width: 899px) {
  .home-quote-panel {
    padding-top: 1.75rem;
    border-top: 1px solid rgba(214, 180, 106, 0.28);
  }
}

.home-steps-panel h2,
.home-quote-panel h2 {
  margin: 0 0 1.2rem;
  font-size: 1.4rem;
  color: var(--champagne);
  letter-spacing: -0.005em;
}

.home-step-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.home-step-row:last-child {
  border-bottom: 0;
}

.home-step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  background:
    radial-gradient(circle at 35% 30%, rgba(214, 180, 106, 0.28), transparent 65%),
    rgba(214, 180, 106, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(214, 180, 106, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.35);
}

.home-step-text strong {
  display: block;
  color: var(--gold);
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

.home-step-text span {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
}

.home-quote-mark {
  color: var(--gold);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.home-stars {
  color: var(--gold);
  letter-spacing: 0.15em;
  font-size: 1rem;
  margin-bottom: 0.65rem;
}

.home-quote-text {
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.7;
}

.home-quote-meta {
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.home-quote-carousel {
  position: relative;
  min-height: 130px;
}

.home-quote-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.home-quote-slide.is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.home-quote-dots {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 0.9rem;
  flex-wrap: wrap;
  row-gap: 0.45rem;
}
.home-quote-dots[hidden] { display: none; }

/* Arrow navigation between testimonials. RTL: right chevron = previous,
   left chevron = next; positioned on either side of the quote text. */
.home-quote-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.9rem;
}
.home-quote-arrow {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(214, 180, 106, 0.45);
  border-radius: 50%;
  background: rgba(20, 16, 12, 0.55);
  color: var(--champagne, #f5e7c8);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.home-quote-arrow:hover {
  background: rgba(214, 180, 106, 0.18);
  border-color: rgba(214, 180, 106, 0.75);
  transform: translateY(-1px);
}
.home-quote-arrow:focus-visible {
  outline: 2px solid var(--gold, #d6b46a);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .home-quote-arrow { width: 38px; height: 38px; }
}

.home-quote-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(214, 180, 106, 0.55);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.home-quote-dot.is-active {
  background: var(--gold);
  transform: scale(1.15);
}

/* FAQ section on home */
.page-home .section--faq {
  padding-top: 2rem;
}

.page-home .section--faq .section-title {
  text-align: center;
  justify-content: center;
}

.page-home .section--faq .section-title::after {
  display: none;
}

/* Footer styling is now in style.css (shared across all pages) */


/* --- Admin edit mode (עמוד הבית בלבד) --- */
body.home-edit-mode .home-hero-bg.home-slot-target::after {
  border-radius: 0;
}

body.home-edit-mode .home-hero-bg .home-slot-hint {
  bottom: 1rem;
}

body.home-edit-mode .home-service-card.home-slot-target {
  cursor: pointer;
}

body.home-edit-mode .home-service-card.home-slot-target:hover {
  transform: none;
}

/* Hero trust line */
.home-hero-trust {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.home-hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.home-hero-trust li::before {
  content: "✓";
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 1px solid rgba(214, 180, 106, 0.55);
  background: linear-gradient(135deg, rgba(214, 180, 106, 0.2), rgba(214, 180, 106, 0.05));
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

@media (max-width: 540px) {
  .home-hero-trust {
    gap: 0.45rem 1rem;
  }
}

/* Calculator CTA banner */
.home-calc-cta {
  padding: 2.5rem 0 1.5rem;
}

.home-calc-cta-card {
  position: relative;
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border: 1px solid rgba(214, 180, 106, 0.38);
  border-radius: var(--radius);
  background:
    linear-gradient(270deg, rgba(214, 180, 106, 0.06) 0%, rgba(0, 0, 0, 0) 55%),
    linear-gradient(180deg, rgba(20, 16, 12, 0.94), rgba(10, 9, 8, 0.96));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
  overflow: hidden;
  min-height: 200px;
}

@media (min-width: 860px) {
  .home-calc-cta-card {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: stretch;
    min-height: 220px;
  }
}

.home-calc-cta-visual {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(214, 180, 106, 0.06) 0 10px, transparent 10px 20px),
    #0c0a08;
  background-size: auto, auto;
  background-repeat: repeat, no-repeat;
  min-height: 180px;
  overflow: hidden;
  order: 1;
}

.home-calc-cta-visual.has-image {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.home-calc-cta-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 9, 8, 0) 0%, rgba(10, 9, 8, 0) 45%, rgba(10, 9, 8, 0.55) 78%, rgba(10, 9, 8, 0.98) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.32));
}

@media (min-width: 860px) {
  .home-calc-cta-visual {
    min-height: 100%;
  }
  .home-calc-cta-visual::after {
    background:
      linear-gradient(270deg, rgba(10, 9, 8, 0) 0%, rgba(10, 9, 8, 0) 45%, rgba(10, 9, 8, 0.45) 72%, rgba(10, 9, 8, 0.92) 92%, rgba(10, 9, 8, 1) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2));
  }
}

.home-calc-cta-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  object-position: center;
}

.home-calc-cta-visual.is-empty {
  background:
    repeating-linear-gradient(135deg, rgba(214, 180, 106, 0.05) 0 10px, transparent 10px 20px),
    #0c0a08;
}

.home-calc-cta-copy {
  order: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.85rem;
  padding: 1.6rem 1.4rem;
}

@media (min-width: 860px) {
  .home-calc-cta-copy {
    padding: 1.8rem 2rem;
  }
}

.home-calc-cta-copy h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  line-height: 1.25;
  color: var(--champagne);
  max-width: 24ch;
}

.home-calc-cta-copy > p {
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 1.5vw, 1.02rem);
  line-height: 1.7;
  max-width: 44ch;
}

.home-calc-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 0.3rem;
}

/* Event types chip row */
.home-event-types {
  padding: 1.2rem 0 2.5rem;
}

.home-event-types-title {
  margin: 0 0 1rem;
  text-align: center;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--champagne);
}

.home-event-types-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 0.85rem;
  justify-content: center;
}

.home-event-types-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid rgba(214, 180, 106, 0.45);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(214, 180, 106, 0.08), rgba(214, 180, 106, 0.02) 60%),
    linear-gradient(180deg, rgba(20, 16, 12, 0.9), rgba(8, 7, 6, 0.95));
  color: var(--champagne);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(214, 180, 106, 0.12),
    0 4px 14px rgba(0, 0, 0, 0.35);
  cursor: default; /* static info tags — not interactive */
}

/* Intentionally no :hover state — these are informational tags, not buttons. */

.home-event-types-icon {
  font-size: 1.15rem;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  color: var(--gold);
  filter: drop-shadow(0 0 6px rgba(214, 180, 106, 0.25));
}

@media (max-width: 540px) {
  .home-event-types-list li {
    padding: 0.6rem 1rem;
    font-size: 0.92rem;
  }
  .home-event-types-icon {
    font-size: 1.05rem;
  }
}

/* Horizontal "how it works" flow */
.home-steps-panel--flow .home-steps-flow {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

@media (min-width: 720px) {
  .home-steps-panel--flow .home-steps-flow {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.6rem;
  }
  .home-steps-panel--flow .home-step-row {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: 0;
    padding: 0.4rem 0.2rem;
    gap: 0.7rem;
  }
  .home-steps-panel--flow .home-step-num {
    width: 3.2rem;
    height: 3.2rem;
    font-size: 1.4rem;
    border-width: 1.5px;
    box-shadow:
      inset 0 0 0 1px rgba(214, 180, 106, 0.18),
      0 6px 18px rgba(0, 0, 0, 0.4);
  }
  .home-step-arrow {
    flex: 0 0 auto;
    align-self: flex-start;
    color: transparent;
    font-size: 0;
    line-height: 1;
    position: relative;
    width: 56px;
    height: 12px;
    margin-top: calc(0.4rem + 1.6rem - 6px);
  }
  .home-step-arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    inset-inline: 6px 6px;
    height: 1px;
    background: linear-gradient(90deg, rgba(214, 180, 106, 0) 0%, rgba(214, 180, 106, 0.65) 50%, rgba(214, 180, 106, 0) 100%);
    transform: translateY(-50%);
  }
  .home-step-arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    inset-inline-end: 4px;
    width: 7px;
    height: 7px;
    border-top: 1px solid rgba(214, 180, 106, 0.85);
    border-left: 1px solid rgba(214, 180, 106, 0.85);
    transform: translateY(-50%) rotate(-45deg);
    transform-origin: center;
  }
  .home-steps-panel--flow .home-step-text strong {
    font-size: 1.05rem;
    white-space: nowrap;
  }
  .home-steps-panel--flow .home-step-text span {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-secondary);
  }
}

@media (max-width: 719px) {
  .home-step-arrow {
    display: none;
  }
}
