@font-face {
  font-family: 'FUP Golan';
  src: url('../fonts/fup-golan-300.woff2') format('woff2'),
       url('../fonts/fup-golan-300.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FUP Golan';
  src: url('../fonts/fup-golan-400.woff2') format('woff2'),
       url('../fonts/fup-golan-400.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FUP Golan';
  src: url('../fonts/fup-golan-500.woff2') format('woff2'),
       url('../fonts/fup-golan-500.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FUP Golan';
  src: url('../fonts/fup-golan-600.woff2') format('woff2'),
       url('../fonts/fup-golan-600.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FUP Golan';
  src: url('../fonts/fup-golan-700.woff2') format('woff2'),
       url('../fonts/fup-golan-700.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FUP Golan';
  src: url('../fonts/fup-golan-800.woff2') format('woff2'),
       url('../fonts/fup-golan-800.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --bg: #FFFFFF;
  --bg-elevated: #F5F4F0;
  --bg-card: #EEEDEA;
  --accent: #E8611A;
  --accent-glow: rgba(232, 97, 26, 0.1);
  --accent-secondary: #D4952A;
  --text: #1A1A1E;
  --text-dim: #6B6670;
  --text-mid: #4A4550;
  --border: rgba(0, 0, 0, 0.08);
  --font-display: 'FUP Golan', 'Arial Hebrew', sans-serif;
  --font-body: 'FUP Golan', 'Arial Hebrew', sans-serif;
}

html {
  font-size: 16px;
}

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

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  padding: 1.25rem 3rem;
  transition: background 0.4s, backdrop-filter 0.4s;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav.scrolled .nav-logo-text { color: var(--text); }
.nav.scrolled .nav-links a { color: var(--text-dim); }
.nav.scrolled .nav-links a:hover { color: var(--text); }
.nav.scrolled .nav-toggle span { background: var(--text); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
}

.nav-logo-img {
  height: 48px;
  width: auto;
  filter: brightness(10);
  transition: filter 0.4s;
}

.nav.scrolled .nav-logo-img {
  filter: none;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}

.nav-links > li {
  position: relative;
}

.nav-links a {
  color: rgba(240, 237, 232, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.25s;
  position: relative;
}

.nav-links a:hover {
  color: #F0EDE8;
}

/* ── MEGA MENU ── */
.has-mega .mega-trigger {
  cursor: pointer;
}

.mega-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  padding: 5rem 0 2.5rem;
  max-height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mega-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.75rem 2.25rem;
  align-items: start;
  direction: rtl;
}

.mega-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.mega-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-col li {
  margin-bottom: 0.4rem;
}

.mega-col li a {
  color: var(--text-dim) !important;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
  padding: 0.15rem 0;
}

.mega-col li a:hover {
  color: var(--accent) !important;
}

.mega-close {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dim);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.mega-close:hover {
  background: var(--bg-elevated);
}

.nav-cta {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.6rem 1.6rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
  text-decoration: none;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* ── NAV ICONS ── */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-icon-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.nav-icon-btn:hover { background: rgba(0,0,0,0.05); }

.nav-icon-btn svg {
  width: 22px;
  height: 22px;
  stroke: rgba(240, 237, 232, 0.8);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s;
}

.nav.scrolled .nav-icon-btn svg { stroke: var(--text-dim); }
.nav-icon-btn:hover svg { stroke: var(--accent); }

.cart-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── MINI CART ── */
.mini-cart {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  z-index: 200;
  overflow: hidden;
}

.mini-cart.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mini-cart-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mini-cart-header h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.mini-cart-count {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.mini-cart-items {
  max-height: 260px;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.mini-cart-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  align-items: center;
  transition: background 0.15s;
}

.mini-cart-item:hover { background: var(--bg-elevated); }

.mini-cart-item-img {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  background: var(--bg-elevated);
  overflow: hidden;
  flex-shrink: 0;
}

.mini-cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-cart-item-info {
  flex: 1;
  min-width: 0;
}

.mini-cart-item-info h5 {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-cart-item-info span {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.mini-cart-item-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.2rem;
  opacity: 0.4;
  transition: opacity 0.2s, color 0.2s;
}

.mini-cart-item-remove:hover { opacity: 1; color: #c00; }

.mini-cart-empty {
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.mini-cart-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}

.mini-cart-footer a {
  display: block;
  text-align: center;
  background: var(--accent);
  color: #fff;
  padding: 0.7rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.mini-cart-footer a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

/* ── HERO SCROLL VIDEO ── */
.hero-scroll {
  position: relative;
  height: 250vh;
  background: #0C0C0E;
  margin-top: -1px;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12, 12, 14, 0.4) 0%,
    rgba(12, 12, 14, 0.15) 40%,
    rgba(12, 12, 14, 0.15) 60%,
    rgba(12, 12, 14, 0.7) 100%
  );
}

.hero-text-layer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  max-width: 900px;
}

.hero-phase {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  padding: 0 20% 0 0;
  text-align: right;
}

.hero-phase.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-phase h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 4.2rem);
  line-height: 1.25;
  color: #F0EDE8;
  text-wrap: balance;
  margin-bottom: 1rem;
  text-align: right;
}

.hero-phase h1 .accent {
  color: var(--accent);
}

.hero-phase p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(240, 237, 232, 0.65);
  max-width: 600px;
  line-height: 1.8;
  text-align: right;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 1;
  transition: opacity 0.4s;
}

.hero-scroll-indicator.hidden {
  opacity: 0;
}

.hero-scroll-indicator span {
  font-size: 0.75rem;
  color: rgba(240, 237, 232, 0.45);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── DECORATIVE PLUS SIGNS ── */
.plus-bg {
  position: relative;
  overflow: hidden;
}
.plus-bg > * { position: relative; z-index: 1; }
.plus-extra {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent);
  pointer-events: none;
  z-index: 0;
  line-height: 1;
  will-change: transform;
}

/* ── SECTION COMMON ── */
.section {
  padding: 7rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.3;
  color: var(--text);
  text-wrap: balance;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 600px;
  line-height: 1.8;
}


/* ── SERVICES CAROUSEL ── */
.services-section {
  height: 300vh;
  position: relative;
  background: linear-gradient(180deg, #E8611A 0%, #C4470E 100%);
}

.services-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.services-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.services-header .section-title {
  color: #fff;
  margin-bottom: 0.75rem;
}

.services-header .section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: #fff;
  margin: 0.75rem auto 0;
}

.services-carousel {
  height: 65vh;
  overflow: hidden;
  position: relative;
  margin-top: 0.75rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.services-track {
  display: flex;
  gap: 1.75rem;
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  align-items: center;
  padding: 0 2rem;
  will-change: transform;
}

.service-card {
  flex-shrink: 0;
  width: 440px;
  background: none;
  border-radius: 1.5rem;
  overflow: visible;
  position: relative;
  display: flex;
  flex-direction: column;
}

.service-card-image {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -3.5rem 0 0;
  position: relative;
  overflow: visible;
}

.service-card-image img {
  max-height: 300px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 32px rgba(120,30,0,0.3));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-image img {
  transform: translateY(-10px) scale(1.05);
}

.service-card:nth-child(3) .service-card-image img { transform: rotate(-2deg); }
.service-card:nth-child(3):hover .service-card-image img { transform: rotate(-2deg) translateY(-10px) scale(1.05); }
.service-card:nth-child(5) .service-card-image img { transform: rotate(2deg); }
.service-card:nth-child(5):hover .service-card-image img { transform: rotate(2deg) translateY(-10px) scale(1.05); }

.service-card-text {
  padding: 1.25rem 1.75rem 1.5rem;
  text-align: center;
}

.service-card-text h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.service-card-text p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}

.service-card-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.4rem;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s;
}

.service-card-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

.carousel-progress {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  overflow: hidden;
}

.carousel-progress-bar {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 2px;
  transition: width 0.1s linear;
}

@media (max-width: 768px) {
  .services-section { height: 250vh; }
  .service-card { width: 320px; }
  .service-card-image { height: 240px; }
  .service-card-image img { max-height: 240px; }
  .services-track { gap: 1.25rem; padding: 0 1.5rem; }
}

/* ── STATS BAND ── */
.stats-band {
  background: radial-gradient(ellipse at center, #3a3a3e 0%, #2a2a2e 40%, #1a1a1e 100%);
  padding: 5rem 3rem;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  color: #fff;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.85;
  font-weight: 400;
}

/* ── PROJECTS FEED ── */
.projects-section {
  padding: 5rem 3rem;
  background: #111;
}
.projects-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.projects-header {
  text-align: center;
  margin-bottom: 3rem;
}
.projects-header .section-title {
  color: #fff;
  margin-bottom: 0.75rem;
}
.projects-header .section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 0.75rem auto 0;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 0.6rem;
  grid-auto-flow: dense;
}
.project-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.6rem;
  cursor: pointer;
}
.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-item:hover img {
  transform: scale(1.08);
}
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.75) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}
.project-item:hover .project-overlay {
  opacity: 1;
}
.project-overlay span {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
}
.project-item.tall { grid-row: span 2; }
.project-item.wide { grid-column: span 2; }

/* ── BLOG CAROUSEL ── */
.blog-section {
  padding: 5rem 3rem;
  background: var(--bg-main);
}
.blog-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.blog-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.blog-header .section-title {
  margin-bottom: 0.75rem;
}
.blog-header .section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 0.75rem auto 0;
}
.blog-carousel-wrapper {
  position: relative;
}
.blog-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 1rem;
}
.blog-carousel::-webkit-scrollbar { display: none; }
.blog-card {
  flex-shrink: 0;
  width: 300px;
  scroll-snap-align: start;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: box-shadow 0.3s, transform 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.blog-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-card-body {
  padding: 1.25rem;
}
.blog-card-date {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.blog-card-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.blog-card-body p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.blog-card-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}
.blog-card-link:hover { text-decoration: underline; }

/* ── PRODUCTS PREVIEW ── */
.products-section {
  padding: 7rem 0;
}

.products-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
}

.products-categories {
  display: flex;
  gap: 0.5rem;
}

.cat-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s;
}

.cat-btn:hover, .cat-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

a.product-card {
  text-decoration: none;
  color: inherit;
}

.product-card {
  background: var(--bg-elevated);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  border: 1px solid var(--border);
  display: block;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
}

.product-img {
  aspect-ratio: 1;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Clients Carousel */
.clients-section {
  padding: 4rem 0 3rem;
  background: var(--bg-main);
  overflow: hidden;
}
.clients-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.clients-header .section-title {
  margin-bottom: 0.75rem;
}
.clients-header .section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 0.75rem auto 0;
}
.clients-track-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.clients-track {
  display: flex;
  gap: 3rem;
  align-items: center;
  width: max-content;
  animation: scrollClients 30s linear infinite;
}
.clients-track img {
  height: 150px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: filter 0.3s, opacity 0.3s;
}
.clients-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
}
@keyframes scrollClients {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.product-tag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.product-info {
  padding: 1.25rem;
}

.product-info h4 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.product-info .price {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 400;
}

.product-info .price span {
  color: var(--text-dim);
  font-size: 0.75rem;
  margin-right: 0.25rem;
}

/* ── WHY US SECTION ── */
.whyus-section {
  padding: 5rem 3rem;
  background: var(--bg-elevated);
}
.whyus-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.whyus-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.whyus-header .section-title {
  margin-bottom: 0.75rem;
}
.whyus-header .section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 0.75rem auto 0;
}
.whyus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.whyus-card {
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.whyus-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(232,97,26,0.08);
}
.whyus-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
}
.whyus-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.whyus-card p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ── CTA SECTION ── */
.cta-section {
  padding: 8rem 3rem;
  text-align: center;
  background: var(--bg-elevated);
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--text);
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.cta-content p {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.85rem 2.25rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.85rem 2.25rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── FOOTER ── */
.footer {
  background: #1A1A1E;
  border-top: none;
  padding: 4rem 3rem 2rem;
  color: #F0EDE8;
}

.footer .footer-brand p,
.footer .footer-col a,
.footer .footer-contact-item,
.footer .footer-bottom p,
.footer .footer-bottom a {
  color: rgba(240, 237, 232, 0.55);
}

.footer .footer-col h4 {
  color: #F0EDE8;
}

.footer .footer-col a:hover {
  color: var(--accent);
}

.footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 300px;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  direction: ltr;
  text-align: right;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: var(--text-dim);
  font-size: 0.75rem;
}

.footer-bottom a {
  color: var(--text-dim);
  font-size: 0.75rem;
  text-decoration: none;
}

/* ── DEMO STRIP (internal previews, not part of the public site) ── */
.demo-strip {
  border: 1px solid rgba(232, 97, 26, 0.3);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 2rem;
  background: rgba(232, 97, 26, 0.04);
}

.demo-strip-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.demo-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.demo-strip-head span:last-child {
  font-size: 0.78rem;
  color: rgba(240, 237, 232, 0.55);
}

.demo-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.demo-col h5 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(240, 237, 232, 0.85);
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.demo-col a {
  /* flex + gap keeps the number separated from the label whether the label is
     Hebrew or Latin — a margin lands on the wrong side under bidi */
  display: flex;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: rgba(240, 237, 232, 0.6);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.2s, transform 0.2s;
}

.demo-col a:hover {
  color: var(--accent);
  transform: translateX(-3px);
}

.demo-col a b {
  font-weight: 700;
  color: rgba(240, 237, 232, 0.35);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
  .demo-cols { grid-template-columns: 1fr; gap: 1.1rem; }
  .demo-strip { padding: 1.1rem 1.2rem; }
}

/* ── MOBILE MENU ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #F0EDE8;
  margin: 5px 0;
  transition: all 0.3s;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .whyus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
  }
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }

  .section { padding: 4rem 1.5rem; }
  .services-inner,
  .products-inner { padding: 0 1.5rem; }

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

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

  .products-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .products-categories {
    flex-wrap: wrap;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .whyus-section { padding: 3rem 1.5rem; }
  .whyus-grid { grid-template-columns: 1fr; }
  .projects-section { padding: 3rem 1rem; }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .blog-section { padding: 3rem 1.5rem; }
  .blog-card { width: 260px; }
  .cta-section { padding: 5rem 1.5rem; }
  .cta-buttons { flex-direction: column; align-items: center; }

}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .scroll-line { animation: none; opacity: 0.5; }
  .hero-phase { transition: none; }
  html { scroll-behavior: auto; }
}

/* ── FOCUS ── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── QUOTE POPUP ── */
.quote-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  padding: 1.5rem;
}

.quote-overlay.open {
  opacity: 1;
  visibility: visible;
}

.quote-popup {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.2);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.quote-overlay.open .quote-popup {
  transform: translateY(0) scale(1);
}

.quote-popup-header {
  padding: 2rem 2rem 0;
  position: relative;
}

.quote-popup-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.quote-popup-header p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.quote-close {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  width: 36px;
  height: 36px;
  background: var(--bg-elevated);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: background 0.2s, color 0.2s;
}

.quote-close:hover {
  background: var(--accent);
  color: #fff;
}

.quote-form {
  padding: 1.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quote-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.quote-field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-mid);
}

.quote-field input,
.quote-field textarea,
.quote-field select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.25s, box-shadow 0.25s;
  direction: rtl;
}

.quote-field input:focus,
.quote-field textarea:focus,
.quote-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.quote-field textarea {
  min-height: 90px;
  resize: vertical;
}

.quote-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.quote-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
  margin-top: 0.25rem;
}

.quote-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--accent-glow);
}

.quote-privacy {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
}

.quote-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}

.quote-success.show {
  display: block;
}

.quote-success svg {
  width: 60px;
  height: 60px;
  stroke: #2d9a4e;
  fill: none;
  stroke-width: 2;
  margin-bottom: 1rem;
}

.quote-success h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.quote-success p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .quote-popup { max-width: 100%; }
  .quote-popup-header { padding: 1.5rem 1.5rem 0; }
  .quote-form { padding: 1.25rem 1.5rem 1.5rem; }
  .quote-row { grid-template-columns: 1fr; }
}


/* ── Inner-page shell (routes the theme does not hand-build) ── */
.page-shell { padding: 9rem 3rem 5rem; background: var(--bg); }
.page-shell-inner { max-width: 1200px; margin: 0 auto; }
.page-shell h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 1.5rem; }
.page-shell .entry { color: var(--text-mid); line-height: 1.9; }
.page-shell .entry a { color: var(--accent); }

/* Neutralise parent-theme resets without out-weighing component rules. */
:where(.page-shell) blockquote,
:where(.page-shell) figure,
:where(.page-shell) ul,
:where(.page-shell) dl { margin: 0; padding: 0; border: 0; }


/* ── Solid navigation for templates without a dark hero ── */
.nav.nav--solid { background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav.nav--solid .nav-logo-img { filter: none; }
.nav.nav--solid .nav-logo-text { color: var(--text); }
.nav.nav--solid .nav-links a { color: var(--text-dim); }
.nav.nav--solid .nav-links a:hover { color: var(--text); }
.nav.nav--solid .nav-toggle span { background: var(--text); }
.nav.nav--solid .nav-icon-btn svg { stroke: var(--text-dim); }
/* Split layout starts under the fixed bar. */
.split { padding-top: 84px; }
.cat-pagination { display:flex; justify-content:center; gap:0.4rem; padding:2rem 0 4rem; }
.cat-pagination .page-numbers { padding:0.5rem 0.9rem; border:1px solid var(--border); border-radius:8px; text-decoration:none; color:var(--text-dim); font-size:0.88rem; }
.cat-pagination .page-numbers.current { background:var(--accent); border-color:var(--accent); color:#fff; }

/* ── Homepage: real product grid ─────────────────────────────────────────── */
.products-grid .product-card[hidden] { display: none; }

.product-tag--out {
  background: var(--text-dim);
}

.products-more {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.products-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  border: 1.5px solid var(--border);
  border-radius: 40px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.products-more-btn:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

/* A post without a featured image still needs a card the right shape. */
.blog-card-img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  background: var(--bg-card);
  color: var(--accent);
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
}

/* ── Quote form ──────────────────────────────────────────────────────────
   Rendered by Brandale Forms, which ships its own two-column grid and field
   markup. These rules only widen the popup enough for two columns to breathe
   and dress the controls in the site's own language. Class names here are the
   ones the platform actually emits (.bd-f, .bd-f-label, .bd-f-opt …) — styling
   invented names silently does nothing. */

/* 520px was sized for the old single-column mock-up; two columns need more. */
.quote-popup { max-width: 720px; }

.quote-popup-header { padding: 2rem 2.5rem 0; }

#quoteForm { padding: 1.25rem 2.5rem 2.5rem; }

#quoteForm .bd-form { gap: 1.1rem; }

#quoteForm .bd-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.25rem;
}

#quoteForm .bd-f { min-width: 0; }
#quoteForm .bd-f.is-half { grid-column: span 1; }
#quoteForm .bd-f:not(.is-half) { grid-column: 1 / -1; }

#quoteForm .bd-f-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}

#quoteForm .bd-f-req { color: var(--accent); }

#quoteForm input[type="text"],
#quoteForm input[type="tel"],
#quoteForm input[type="email"],
#quoteForm input[type="number"],
#quoteForm input[type="date"],
#quoteForm select,
#quoteForm textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

#quoteForm input:focus,
#quoteForm select:focus,
#quoteForm textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

#quoteForm textarea { min-height: 110px; resize: vertical; }

#quoteForm .bd-f-help {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.5;
}

#quoteForm .bd-f-err {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #b32d2e;
}

/* Option groups read as a row of choices, not a stacked wall. */
#quoteForm fieldset.bd-f {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

#quoteForm .bd-f-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
}

#quoteForm .bd-f-opt {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.5;
  cursor: pointer;
}

#quoteForm .bd-f-opt input[type="checkbox"],
#quoteForm .bd-f-opt input[type="radio"] {
  accent-color: var(--accent);
  margin-top: 0.15rem;
  flex: none;
  width: 16px;
  height: 16px;
}

#quoteForm .bd-f-consent,
#quoteForm .bd-f-marketing {
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
}

#quoteForm .bd-f-marketing { border-top: 0; padding-top: 0; }

#quoteForm input[type="file"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  font-family: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

#quoteForm input[type="file"]:hover { border-color: var(--accent); }

/* The native control's own button; its "no file chosen" text comes from the
   browser's locale and cannot be set from here. */
#quoteForm input[type="file"]::file-selector-button {
  margin-inline-end: 0.9rem;
  padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 30px;
  background: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

#quoteForm input[type="file"]::file-selector-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

#quoteForm .bd-form-actions { margin-top: 0.5rem; }

#quoteForm .bd-form-submit {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 40px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

#quoteForm .bd-form-submit:hover { opacity: 0.9; }
#quoteForm .bd-form-submit[disabled] { opacity: 0.55; cursor: default; }

#quoteForm .bd-form-note,
#quoteForm .bd-form-status {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
}

#quoteForm .bd-form-status:not(:empty) {
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  background: rgba(232, 97, 26, 0.07);
  border: 1px solid rgba(232, 97, 26, 0.25);
  color: var(--text);
  text-align: center;
  font-size: 0.95rem;
}

/* The honeypot must stay in the DOM and out of sight. */
#quoteForm .bd-form-hp { position: absolute; left: -9999px; }

@media (max-width: 680px) {
  .quote-popup { max-width: 100%; }
  .quote-popup-header { padding: 1.5rem 1.25rem 0; }
  #quoteForm { padding: 1rem 1.25rem 2rem; }
  #quoteForm .bd-form-grid { grid-template-columns: 1fr; }
}

/* A mega-menu column heading now links to its own page. */
.mega-col h4 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.mega-col h4 a:hover { color: var(--accent); }

@media (max-width: 1180px) {
  .mega-inner { grid-template-columns: repeat(3, 1fr); }
}

/* Mega menu — rail layout for long catalogues (see cdplus_mega_split). */
.mega-split {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 0 2.5rem;
  direction: rtl;
  align-items: start;
}
.mega-rail {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.25rem;
  border-left: 1px solid rgba(0,0,0,0.08);
}
.mega-rail li { margin: 0; }
.mega-rail-item {
  display: block;
  width: 100%;
  text-align: right;
  background: none;
  border: 0;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-dim);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.mega-rail-item:hover,
.mega-rail-item.is-active {
  background: rgba(0,0,0,0.04);
  color: var(--text);
}
.mega-rail-item.is-active { color: var(--accent); }
.mega-rail-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.mega-group[hidden] { display: none; }
.mega-group-title {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text) !important;
  text-decoration: none;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--accent);
}
.mega-group-title:hover { color: var(--accent) !important; }
.mega-group-grid {
  column-count: 3;
  column-gap: 2.25rem;
}
.mega-sub {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 0.9rem;
}
.mega-sub-link {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text) !important;
  text-decoration: none;
  padding: 0.1rem 0;
  transition: color 0.18s;
}
.mega-sub-link:hover { color: var(--accent) !important; }
.mega-sub ul {
  list-style: none;
  margin: 0.2rem 0 0.4rem;
  padding: 0 0.7rem 0 0;
  border-right: 1px solid rgba(0,0,0,0.07);
}
.mega-sub li { margin: 0; }
.mega-sub li a {
  color: var(--text-dim) !important;
  font-size: 0.8rem;
  text-decoration: none;
  display: inline-block;
  padding: 0.08rem 0;
  transition: color 0.18s;
}
.mega-sub li a:hover { color: var(--accent) !important; }

@media (max-width: 1180px) {
  .mega-split { grid-template-columns: 200px 1fr; padding: 0 1.5rem; }
  .mega-group-grid { column-count: 2; }
}

/* ── Search modal ──────────────────────────────────────────────────────────
   A panel dropped from the top of the screen, results right under the field.
   The theme's margin reset strips the dialog's own centring, so it is placed
   explicitly. */
.search-modal {
  position: fixed;
  inset: 0;
  width: min(680px, calc(100vw - 2rem));
  max-width: none;
  max-height: min(78vh, 720px);
  margin: 9vh auto auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  flex-direction: column;
}

.search-modal[open] { display: flex; }

.search-modal::backdrop {
  background: rgba(12, 12, 14, 0.6);
  backdrop-filter: blur(4px);
}

.search-modal-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.search-modal-form > svg {
  width: 22px;
  height: 22px;
  flex: none;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.search-modal-form input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 1.15rem;
  color: var(--text);
  padding: 0.35rem 0;
}

.search-modal-form input[type="search"]::-webkit-search-cancel-button { display: none; }

.search-modal-close {
  flex: none;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-dim);
  border-radius: 8px;
  padding: 0.25rem 0.55rem;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}

.search-modal-close:hover { color: var(--accent); }

.search-modal-results {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.5rem;
}

.search-modal-hint {
  margin: 0;
  padding: 1.25rem 0.75rem;
  color: var(--text-dim);
  font-size: 0.95rem;
  text-align: center;
}

.search-modal-hint a { color: var(--accent); }

.search-label {
  margin: 0.6rem 0.75rem 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.search-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 0.75rem 0.4rem;
}

.search-cat {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.85rem;
  text-decoration: none;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}

.search-cat.is-active,
.search-cat:hover { background: var(--accent); color: #fff; }

.search-item.is-active,
.search-item:hover { background: var(--bg-elevated); }

.search-item-img {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 10px;
  background: var(--bg-card);
  overflow: hidden;
}

.search-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.search-item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.search-item-title {
  font-size: 0.97rem;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.search-item-title mark {
  background: none;
  color: var(--accent);
  font-weight: 700;
}

.search-item-cat {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.search-all {
  display: block;
  margin: 0.4rem 0.25rem 0.25rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: var(--bg-elevated);
  color: var(--accent);
  text-align: center;
  font-weight: 600;
  text-decoration: none;
}

.search-all.is-active,
.search-all:hover { background: var(--accent); color: #fff; }

@media (max-width: 600px) {
  .search-modal {
    width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
  }
}

/* The form styles give every focused field a frame; the panel is the frame here. */
.search-modal .search-modal-form input[type="search"]:focus {
  outline: none;
  border: 0;
  box-shadow: none;
}


/* ── Gallery lightbox (pages + home projects; moved from blog.css 2026-11-11) ── */

/* The theme resets margins, which strips the dialog's own centring, so the
   open dialog covers the viewport and centres the picture itself. */
.page-lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
}

.page-lightbox[open] {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-lightbox::backdrop { background: rgba(12, 12, 14, 0.9); }

.page-lightbox figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.page-lightbox img {
  display: block;
  max-width: min(88vw, 1100px);
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
}

.page-lightbox figcaption {
  font-style: normal;
  color: #fff;
  font-size: 1rem;
  text-align: center;
}

.page-lightbox button {
  position: fixed;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.page-lightbox button:hover,
.page-lightbox button:focus-visible { background: var(--accent); outline: none; }

.page-lightbox .lb-close { top: 1.25rem; left: 1.25rem; }
.page-lightbox .lb-prev { top: 50%; right: 1.25rem; transform: translateY(-50%); }
.page-lightbox .lb-next { top: 50%; left: 1.25rem; transform: translateY(-50%); }
a.project-item { display: block; color: inherit; text-decoration: none; cursor: zoom-in; }
a.project-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Seamless clients loop (2026-11-11). The track holds the logos twice and
   slides by -50%. In RTL the strip overflowed to the wrong side, and the flex
   gap made the halves unequal, so it ran out and jumped. LTR inside the
   strip plus per-logo spacing makes both halves exactly equal. */
.clients-track-wrapper { direction: ltr; }
.clients-track { gap: 0; }
.clients-track img { margin-right: 3rem; }
.clients-track-wrapper:hover .clients-track { animation-play-state: paused; }

/* Home blog cards fit the row exactly (2026-11-11): fixed 300px cards left the
   third one clipped. Three per row on desktop, two on tablet, a peek on phones. */
.blog-card { width: calc((100% - 3rem) / 3); }
@media (max-width: 900px) { .blog-card { width: calc((100% - 1.5rem) / 2); } }
@media (max-width: 600px) { .blog-card { width: 82%; } }

/* Floating WhatsApp (08-9584842), stacked above the accessibility button (2026-11-11). */
.wa-float { position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 99980; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.22); transition: transform .2s ease, box-shadow .2s ease; }
.wa-float:hover { transform: scale(1.06); box-shadow: 0 8px 26px rgba(0,0,0,.28); color: #fff; }
.wa-float:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px #25d366; }
@media (prefers-reduced-motion: reduce) { .wa-float, .wa-float:hover { transition: none; transform: none; } }
