/* ============ THEME – ROOT REBOOT STYLE ============ */
:root {
  --gold: #caa06e;
  --gold-soft: #e2c8a3;
  --gold-2: #e7d1ac;
  --brown: #6b3e2e;
  --brown-deep: #3a2e2b;
  --ink: #4a4340;
  --cream: #f7efe6;
  --sand: #efe2d2;

  --bg-1: #f7efe6;
  --bg-2: #ffffff;
  --border: #e5d4c1;
  --text: var(--ink);
  --muted: #7b6e65;
  --radius: 18px;
  --shadow-sm: 0 6px 18px rgba(106, 62, 46, 0.12);
  --shadow-md: 0 16px 40px rgba(106, 62, 46, 0.18);

  --fs-base: 11px;
  --fs-sm: 10.5px;
  --fs-md: clamp(10.5px, 1.4vw, 12px);
  --fs-lg: clamp(12px, 1.8vw, 14px);
  --fs-h2: clamp(14px, 2.6vw, 18px);
  --fs-h1: clamp(16px, 3.8vw, 22px);
}

* {
  box-sizing: border-box;
}
html {
  direction: rtl;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background: radial-gradient(
    1200px 800px at 50% -10%,
    var(--gold-soft) 0%,
    var(--cream) 48%,
    var(--sand) 100%
  );
  overflow-x: hidden;
  font-size: var(--fs-base);
  line-height: 1.7;
}
img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
section {
  scroll-margin-top: 90px;
}
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(12px, 3vw, 28px) 12px;
}

/* ======= SCROLL PROGRESS ======= */
.progressbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  width: 0;
  z-index: 90;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* ============ HEADER (minimal) ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(202, 160, 110, 0.4);
  box-shadow: 0 8px 26px rgba(58, 46, 43, 0.12);
  transition: transform 0.35s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.header-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  max-width: 960px;
  margin: 0 auto;
}
.header .logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--brown-deep);
  font-weight: 900;
  letter-spacing: 0.4px;
}
.header .logo img {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(58, 46, 43, 0.25);
}
.header .logo span {
  font-size: 0.95rem;
}

#langToggle {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(202, 160, 110, 0.85);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.96),
    rgba(247, 239, 230, 0.96)
  );
  color: var(--brown-deep);
  cursor: pointer;
  font-weight: 800;
  font-size: var(--fs-sm);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px rgba(202, 160, 110, 0.4);
}
#langToggle:active {
  transform: scale(0.96);
}
#langToggle:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 1),
    rgba(250, 244, 234, 1)
  );
}
#langToggle i {
  font-size: 12px;
  color: var(--gold);
}

/* hide header when scrolling down a bit */
.header--hidden {
  transform: translateY(-110%);
  box-shadow: none;
}

/* ===== DUNES BACKGROUND DECOR ===== */
.dunes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.dune {
  position: absolute;
  left: 0;
  right: 0;
  height: 40vh;
  background-repeat: no-repeat;
  background-size: 180% 100%;
  opacity: 0.5;
  filter: blur(1px);
}
.d1 {
  bottom: 0;
  background-image: radial-gradient(
      120% 120% at 80% 20%,
      rgba(255, 255, 255, 0.1),
      rgba(0, 0, 0, 0) 60%
    ),
    linear-gradient(to left, #ead7bf, #f3e6d2);
}
.d2 {
  bottom: -6vh;
  opacity: 0.45;
  background-image: linear-gradient(to right, #eddcc5, #f4e9d8);
}
.d3 {
  bottom: -12vh;
  opacity: 0.35;
  background-image: linear-gradient(to left, #f1e4cf, #f7efe3);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-bottom: 10px;
}
.hero::before {
  content: "";
  position: absolute;
  inset-inline: -20%;
  top: -40%;
  height: 70%;
  background: radial-gradient(
    ellipse at top,
    rgba(202, 160, 110, 0.28),
    transparent 65%
  );
  opacity: 0.95;
  pointer-events: none;
}
.hero .inner {
  min-height: 70svh;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.logo-title {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--brown-deep);
  margin: 0 0 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.4px;
}
.logo-title i {
  color: var(--gold);
  margin-inline-start: 4px;
  filter: drop-shadow(0 4px 12px rgba(202, 160, 110, 0.7));
}
.hero h1 {
  font-size: var(--fs-h1);
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 6px;
  color: var(--brown-deep);
}
.hero-subtitle {
  font-size: var(--fs-md);
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto 16px;
}
.cta-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  color: var(--brown-deep);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease,
    background 0.2s ease;
  font-size: var(--fs-sm);
  position: relative;
  overflow: hidden;
}
.btn.primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 12px 30px rgba(202, 160, 110, 0.6);
}
.btn.primary:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
}
.btn.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.7) 40%,
    transparent 80%
  );
  transform: translateX(-140%);
  transition: transform 0.7s ease;
}
.btn.primary:hover::after {
  transform: translateX(140%);
}
/* כפתור ירוק בסגנון WhatsApp */
.btn-wa {
  background: #25d366;
  border-color: #25d366;
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}
.btn-wa:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.btn.outline {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(202, 160, 110, 0.8);
  color: var(--brown-deep);
  box-shadow: 0 6px 18px rgba(58, 46, 43, 0.16);
}
.btn.outline:hover {
  background: #fffaf2;
  transform: translateY(-1px);
}

/* decorative orbs + parallax */
.orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(closest-side, #fff4cf, var(--gold) 60%, #b38f1f);
  opacity: 0.9;
  pointer-events: none;
  filter: blur(0.2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  transform-style: preserve-3d;
}
.orb-sm {
  width: 10px;
  height: 10px;
}
.orb-md {
  width: 18px;
  height: 18px;
}
.orb-lg {
  width: 28px;
  height: 28px;
}

/* ============ REVEAL ANIMATIONS ============ */
[data-anim] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}
.float {
  animation: float 4s ease-in-out infinite;
}

/* ===== HERO 3D CARD ===== */
.hero-3d-scene {
  perspective: 1200px;
}
.hero-3d-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-md);
  transform-style: preserve-3d;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  backdrop-filter: blur(18px);
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid rgba(202, 160, 110, 0.35);
}
.hero-3d-card h1,
.hero-3d-card .hero-subtitle,
.hero-3d-card .cta-row,
.hero-3d-card .logo-title {
  transform: translateZ(25px);
}

/* ============ SECTION TITLES ============ */
.section-title {
  font-size: var(--fs-h2);
  margin: 0 0 6px;
  color: var(--brown-deep);
  font-weight: 800;
  text-align: start;
}
.section-sub {
  color: var(--muted);
  margin: 0 0 14px;
  font-size: var(--fs-md);
}
/* קו מפריד בין הסקשנים */
.section-divider {
  border: none;
  border-top: 1px solid rgba(202, 160, 110, 0.5);
  max-width: 960px;
  margin: 4px auto 4px;
  opacity: 0.9;
}

/* במובייל – קצת יותר רווח */
@media (max-width: 768px) {
  .section-divider {
    margin: 10px auto 10px;
  }
}

/* ============ BEFORE/AFTER ============ */
.gallery {
  background: rgba(255, 255, 255, 0.9);
  border-block: 1px solid rgba(202, 160, 110, 0.25);
  box-shadow: 0 -10px 30px rgba(106, 62, 46, 0.08) inset;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.before-after-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(202, 160, 110, 0.4);
  background: radial-gradient(circle at top, #fffaf2, #ffffff 60%);
  box-shadow: var(--shadow-md);
}
.image-container {
  position: relative;
  height: clamp(200px, 40vw, 280px);
  overflow: hidden;
  background: #fdf7ee;
}
.ba-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}
.ba-after {
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.2s ease;
  will-change: clip-path;
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: var(--gold);
  cursor: ew-resize;
}
.ba-handle::before {
  content: "⟷";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--gold);
  color: #111;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}
.case-tags {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  display: flex;
  gap: 6px;
  z-index: 2;
  flex-wrap: wrap;
}
.tag {
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(202, 160, 110, 0.45);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: var(--brown-deep);
}
.case-info {
  padding: 12px 14px;
}
.case-title {
  margin: 0 0 4px;
  font-weight: 800;
  font-size: var(--fs-lg);
  color: var(--brown-deep);
}
.case-details {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: var(--fs-sm);
}
.case-stats {
  display: flex;
  gap: 8px;
  color: #444;
  font-size: var(--fs-sm);
}

/* ============ ABOUT + SERVICES ============ */
#about {
  background: rgba(247, 239, 230, 0.8);
  border-block: 1px solid rgba(202, 160, 110, 0.25);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
}
.about-grid img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(58, 46, 43, 0.35);
  transform-origin: center center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.about-grid img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.26);
}
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* pills in about */
.about-pill {
  background: #fff;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  color: #333;
  font-size: var(--fs-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 6px 16px rgba(58, 46, 43, 0.1);
}
.about-pill i {
  color: var(--gold);
}

/* SERVICES GRID */
#services {
  background: #fff;
  border-block: 1px solid rgba(202, 160, 110, 0.2);
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 1200px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr;
  }
}
.card {
  background: radial-gradient(circle at top, #fffaf2, #ffffff 60%);
  border: 1px solid rgba(202, 160, 110, 0.4);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card .icon.badge {
  font-size: 18px;
  color: #111;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(202, 160, 110, 0.4);
}
.card h3 {
  margin: 6px 0;
  font-size: var(--fs-lg);
  color: var(--brown-deep);
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}
.mini-bullets {
  list-style: none;
  padding: 8px 0 0;
  margin: 0;
  display: grid;
  gap: 4px;
  color: #444;
  font-size: var(--fs-sm);
}
.mini-bullets i {
  color: var(--gold);
  margin-inline-start: 6px;
}

/* ===== 3D GENERIC CARD (for multiple sections) ===== */
.card-3d {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-3d:hover {
  transform: translateY(-6px) rotate3d(1, -1, 0, 8deg);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.2);
}
.card-3d::after {
  content: "";
  position: absolute;
  inset-inline: 8%;
  bottom: -10px;
  height: 16px;
  border-radius: 999px;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.3), transparent);
  opacity: 0;
  transform: translateZ(-1px);
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card-3d:hover::after {
  opacity: 1;
}
/* SERVICES CARD LAYOUT (הרחבה) */
.service-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.service-head h3 {
  margin: 0;
  font-size: var(--fs-lg);
  color: var(--brown-deep);
}

.service-tag {
  margin: 2px 0 0;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.service-desc {
  margin: 0 0 4px;
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* ============ STEPS ============ */
.steps-sec {
  background: linear-gradient(180deg, #fff, #f7efe6);
  border-block: 1px solid rgba(202, 160, 110, 0.25);
}
.steps-timeline {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  position: relative;
}
.steps-timeline::before {
  content: "";
  position: absolute;
  inset-inline-start: 44px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(202, 160, 110, 0),
    rgba(202, 160, 110, 0.7),
    rgba(202, 160, 110, 0)
  );
}
.step-card {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(202, 160, 110, 0.4);
  border-radius: 16px;
  padding: 12px 14px;
  margin: 0 0 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  opacity: 0.97;
}
.step-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #111;
  font-size: 18px;
  box-shadow: 0 10px 26px rgba(202, 160, 110, 0.45);
}
.step-k {
  font-weight: 800;
  color: #766559;
  font-size: var(--fs-sm);
}

/* ============ FAQ ============ */
.faq-sec {
  background: #fff;
  border-block: 1px solid rgba(202, 160, 110, 0.22);
}
.faq-list {
  max-width: 900px;
  margin: 12px auto 0;
}
.faq-item {
  background: #fff;
  border: 1px solid rgba(202, 160, 110, 0.4);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 10px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}
.faq-item[open] {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  font-weight: 800;
  color: #111;
  font-size: var(--fs-md);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item .caret {
  margin-inline-start: auto;
  transition: transform 0.25s;
  color: var(--gold);
}
.faq-item[open] .caret {
  transform: rotate(180deg);
}
.faq-item .answer {
  padding: 0 14px 12px;
  color: #444;
  font-size: var(--fs-sm);
}
.note {
  font-size: 11px;
  margin-top: 6px;
  color: var(--muted);
}

/* ============ BOTTOM CTA SECTION ============ */
.bottom-cta {
  background: radial-gradient(circle at top, #fffaf2, #f7efe6 60%);
  border-top: 1px solid rgba(202, 160, 110, 0.25);
  text-align: center;
}
.bottom-cta-inner {
  max-width: 640px;
  margin: 0 auto;
}
.bottom-cta h3 {
  margin: 0 0 6px;
  font-size: var(--fs-h2);
  color: var(--brown-deep);
  font-weight: 800;
}
.bottom-cta p {
  margin: 0 0 14px;
  font-size: var(--fs-md);
  color: var(--muted);
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  .float,
  .btn,
  [data-anim],
  .fab-wa {
    animation: none !important;
    transition: none !important;
  }
  .hero-3d-card {
    transform: none !important;
    box-shadow: var(--shadow-md);
  }
}

@media (max-width: 768px) {
  .header-wrap {
    grid-template-columns: auto 1fr;
  }
  .header .logo {
    justify-self: start;
  }
  #langToggle {
    justify-self: end;
  }
}
