/* =============================================
   DAHAN HOLDINGS LTD — Redesigned Stylesheet
   Light, RTL Hebrew, Large Typography
   ============================================= */

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

:root {
  --navy:        #0C2558;
  --navy-dark:   #081840;
  --navy-light:  #1A4080;
  --blue:        #1E6FC8;
  --gold:        #B8923A;
  --gold-light:  #D4A94A;

  --bg:          #FFFFFF;
  --bg-light:    #F2F6FD;
  --bg-navy:     #0B1E40;

  --text:        #111827;
  --text-muted:  #5A6272;
  --text-light:  #8A9BB5;

  --border:      #DDE4F0;
  --border-light:#E8EDF6;

  --shadow-sm:   0 2px 12px rgba(12,37,88,0.07);
  --shadow-md:   0 6px 28px rgba(12,37,88,0.11);
  --shadow-lg:   0 16px 50px rgba(12,37,88,0.15);

  --font: 'Assistant', 'Arial Hebrew', Arial, sans-serif;
  --max-w: 1240px;
  --gap: 8rem;
}

html { scroll-behavior: smooth; font-size: 17px; }

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section  { padding: var(--gap) 0; }
.bg-light { background: var(--bg-light); }

/* ---- Reveal Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- Typography ---- */
.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(12,37,88,0.07);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.4rem;
}
.section-tag.light {
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.1);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 1.4rem;
}
.section-title.light { color: #fff; }

.text-accent { color: var(--blue); }
.text-gold   { color: var(--gold-light); }

.section-desc {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.75;
}

.section-header { margin-bottom: 3.5rem; }
.section-header.center { text-align: center; }
.section-header.center .section-desc { margin: 0 auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2.4rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-full { width: 100%; }


/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 200;
  overflow: visible;
  transition: background 0.35s, box-shadow 0.35s;
}
.nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(12,37,88,0.1);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
}

.nav-logo-img {
  height: 130px !important;
  max-height: none !important;
  width: auto !important;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  image-rendering: -webkit-optimize-contrast;
  /* No colour filters — display original logo exactly as-is */
  filter: drop-shadow(0 1px 6px rgba(0,0,0,0.25));
}

.footer-logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}
.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav.scrolled .nav-links a { color: var(--text-muted); }
.nav.scrolled .nav-links a:hover { color: var(--navy); }

.nav-links .nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 0.6rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  border: 2px solid var(--navy);
}
.nav-links .nav-cta:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
}
.nav.scrolled .nav-links .nav-cta { background: var(--navy); color: #fff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: background 0.3s;
}
.nav.scrolled .nav-toggle span { background: var(--navy); }

.nav-mobile {
  display: none;
  flex-direction: column;
  background: #fff;
  padding: 1rem 2rem 2rem;
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.nav-mobile a {
  padding: 1rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--navy); }
.nav-mobile.open { display: flex; }


/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* ---- Image Slider ---- */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

/* Dark gradient overlay over photos */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(5, 15, 35, 0.22) 0%,
      rgba(5, 15, 35, 0.18) 50%,
      rgba(5, 15, 35, 0.52) 100%
    );
}

/* Slider arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  backdrop-filter: blur(4px);
  direction: ltr; /* prevent RTL bidi-mirroring of › and ‹ characters */
}
.slider-arrow:hover {
  background: rgba(255,255,255,0.35);
  border-color: #fff;
  transform: translateY(-50%) scale(1.1);
}
.slider-arrow--prev { right: 2rem; }
.slider-arrow--next { left: 2rem; }

/* Slider dots */
.slider-dots {
  position: absolute;
  bottom: 6.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.6rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}
.slider-dot.active {
  background: #fff;
  transform: scale(1.3);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 9rem 2rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(184,146,58,0.18);
  border: 1px solid rgba(184,146,58,0.35);
  color: var(--gold-light);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.45rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.hero-headline {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  color: rgba(255,255,255,0.92);
  margin-bottom: 1rem;
  max-width: 780px;
}

.hero-hl {
  color: var(--gold-light);
  display: block;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.12em;
  margin-bottom: 1.8rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Caption (overlaid on slideshow, bottom-right) */
.hero-caption {
  position: absolute;
  bottom: 5rem;
  right: 4rem;
  z-index: 2;
  text-align: right;
  max-width: 580px;
}
.hero-caption .hero-headline {
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}
.hero-caption--hidden {
  opacity: 0 !important;
  pointer-events: none;
  transition: opacity 0.5s ease !important;
}
@media (max-width: 768px) {
  .hero-caption {
    right: 1.5rem;
    left: 1.5rem;
    bottom: 5.5rem;
    max-width: 100%;
  }
}

/* Hero Stats Bar */
.hero-stats-bar {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  margin-top: 4rem;
}

.hero-stats {
  display: flex;
  align-items: stretch;
}

.hero-stat {
  flex: 1;
  padding: 1.4rem 2rem;
  text-align: center;
  border-left: 1px solid rgba(255,255,255,0.07);
}
.hero-stat:last-child { border-left: none; }

.hero-stat-div { display: none; }

.stat-num {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}


/* ============================================
   ABOUT
   ============================================ */
.about { background: #fff; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 6rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-block {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  position: relative; /* establishes containing block for absolute children */
}

.about-img-inner {
  position: absolute;
  inset: 0; /* fills the block reliably regardless of aspect-ratio height */
  background: #0C2558; /* fallback while image loads */
}

.about-img-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.about-img-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(6,18,38,0.45) 100%);
  pointer-events: none;
}

.about-badge-card {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--navy);
  color: #fff;
  padding: 1.5rem 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  min-width: 130px;
}

.badge-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.badge-text {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  font-weight: 400;
}

.about-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.65rem;
}

.about-pillars {
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.pillar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}

.pillar-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}


/* ============================================
   SECTORS
   ============================================ */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

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

.sector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.sector-tags span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  background: rgba(12,37,88,0.07);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
}

.sector-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.sector-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-light);
}

.sector-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.sector-visual {
  height: 140px;
  position: relative;
  overflow: hidden;
}

.sector-visual--industrial {
  background: linear-gradient(135deg, #1a2d4a 0%, #2a4570 40%, #1a3060 100%);
}
.sector-visual--logistics {
  background: linear-gradient(135deg, #0d3060 0%, #1060a0 40%, #0a2a50 100%);
}
.sector-visual--commercial {
  background: linear-gradient(135deg, #1a3a2a 0%, #2a6050 40%, #142a20 100%);
}
.sector-visual--energy {
  background: linear-gradient(135deg, #3a2a08 0%, #705010 40%, #2a1e04 100%);
}

.sector-visual::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      -45deg, transparent, transparent 20px,
      rgba(255,255,255,0.03) 20px, rgba(255,255,255,0.03) 21px
    );
}

.sector-num-bg {
  position: absolute;
  bottom: 0.5rem;
  left: 1rem;
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255,255,255,0.07);
  line-height: 1;
  user-select: none;
  font-family: var(--font);
}

.sector-body {
  padding: 1.75rem;
}

.sector-icon {
  width: 40px;
  height: 40px;
  color: var(--navy);
  margin-bottom: 1rem;
}
.sector-icon svg { width: 100%; height: 100%; }

.sector-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.7rem;
}

.sector-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}


/* ============================================
   STRATEGY
   ============================================ */
.strategy { background: #fff; }

.strategy-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 7rem;
  align-items: start;
}

.strategy-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-top: 1.25rem;
}

.strategy-step {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  padding: 1.75rem;
  background: var(--bg-light);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  transition: box-shadow 0.3s, transform 0.3s;
}
.strategy-step:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(-4px);
}

.step-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
  opacity: 0.15;
  line-height: 1;
  flex-shrink: 0;
  width: 56px;
  transition: opacity 0.3s;
}
.strategy-step:hover .step-num { opacity: 0.5; }

.step-body h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.step-body p {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.step-connector {
  width: 2px;
  height: 2rem;
  background: linear-gradient(to bottom, var(--border), transparent);
  margin-right: calc(56px / 2 + 1.75rem - 1px);
}


/* ============================================
   PORTFOLIO — Card Grid
   ============================================ */

.pf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.pf-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 16px rgba(12,37,88,0.09);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid var(--border-light);
}
.pf-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(12,37,88,0.16);
}

.pf-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background-color: #0d1828; /* dark fallback — no white flash on first load */
  position: relative;
  overflow: hidden;
}

/* Cross-fade overlay layer — new image fades in above old, no blank state */
.pf-card-img-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

/* Card mini-gallery arrows */
.pf-card-prev,
.pf-card-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(5,15,35,0.42);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  direction: ltr;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.pf-card-prev { right: 0.55rem; }
.pf-card-next { left: 0.55rem; }
.pf-card:hover .pf-card-prev,
.pf-card:hover .pf-card-next { opacity: 1; }
.pf-card-prev:hover,
.pf-card-next:hover {
  background: rgba(5,15,35,0.72);
  border-color: rgba(255,255,255,0.8);
}

/* Card mini-gallery dots */
.pf-card-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: row;
  direction: ltr;
  gap: 0.3rem;
  pointer-events: none; /* let click pass through to card unless on a dot */
}
.pf-card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  pointer-events: all;
  transition: background 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
}
.pf-card-dot.active {
  background: #fff;
  transform: scale(1.35);
}
.pf-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(5,15,35,0.35) 100%);
}

.pf-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12,37,88,0);
  transition: background 0.25s ease;
}
.pf-card:hover .pf-card-overlay {
  background: rgba(12,37,88,0.45);
}

.pf-card-cta {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  direction: rtl;
}
.pf-card:hover .pf-card-cta {
  opacity: 1;
  transform: translateY(0);
}

.pf-card-body {
  padding: 1.1rem 1.4rem 1.25rem;
}
.pf-card-body .ptag {
  margin-bottom: 0.4rem;
}
.pf-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0.3rem 0 0.3rem;
  line-height: 1.3;
}
.pf-card-location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   PORTFOLIO — Project Modal
   ============================================ */

.pf-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.pf-modal.open {
  visibility: visible;
  opacity: 1;
}

.pf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,15,35,0.80);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.pf-modal-box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 16px;
  width: min(860px, 96vw);
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 70px rgba(0,0,0,0.45);
}

.pf-modal-box .pf-slideshow {
  min-height: 420px;
  border-radius: 16px 16px 0 0;
}

.pf-modal-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(5,15,35,0.55);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  line-height: 1;
}
.pf-modal-close:hover { background: rgba(5,15,35,0.85); }

.pf-modal-info {
  padding: 1.8rem 2rem 2rem;
}
.pf-modal-info h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0.5rem 0 0.85rem;
  line-height: 1.25;
}
.pf-modal-info p {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.4rem;
}

body.pf-modal-open { overflow: hidden; }

@media (max-width: 640px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-modal-box .pf-slideshow { min-height: 260px; }
  .pf-modal-info { padding: 1.2rem 1.2rem 1.5rem; }
}

/* ============================================
   PORTFOLIO — Featured Slideshow
   ============================================ */

.pf-featured {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
  border: 1px solid var(--border-light);
}

/* Industrial featured — flip column order (slideshow on left, info on right) */
.pf-featured--industrial {
  direction: ltr; /* flip grid direction so image appears on left */
}

.pf-featured--industrial .pf-info {
  direction: rtl; /* restore Hebrew text direction inside info panel */
}

/* Category divider label */
.pf-category-label {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--navy);
}

.pf-cat-num {
  font-family: var(--font);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--navy);
  opacity: 0.12;
  line-height: 1;
  flex-shrink: 0;
}

.pf-category-label h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.pf-category-label p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Slideshow panel */
.pf-slideshow {
  position: relative;
  overflow: hidden;
  background: #111;
  min-height: 480px;
}

.pf-slides { position: absolute; inset: 0; }

.pf-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.pf-slide.active { opacity: 1; }

/* Arrows */
.pf-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
  direction: ltr; /* prevent RTL bidi-mirroring of › and ‹ characters */
}
.pf-arrow:hover {
  background: rgba(255,255,255,0.35);
  transform: translateY(-50%) scale(1.1);
}
.pf-arrow--prev { right: 1rem; }
.pf-arrow--next { left: 1rem; }

/* Counter */
.pf-counter {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  backdrop-filter: blur(4px);
  z-index: 10;
}

/* Dots */
.pf-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  direction: ltr;
  gap: 0.5rem;
  z-index: 10;
}
.pf-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}
.pf-dot.active {
  background: #fff;
  transform: scale(1.35);
}

/* Info panel */
.pf-info {
  background: #fff;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pf-info h3 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0.75rem 0 1.1rem;
  line-height: 1.25;
}

.pf-info p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.pf-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.5rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
}

.pf-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pf-meta-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}

.pf-meta-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

/* Other cards below — 3 col grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ============================================
   PORTFOLIO — Cards
   ============================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.portfolio-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform 0.3s, box-shadow 0.3s;
}
.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.portfolio-card--featured {
  grid-row: 1 / 3;
}

.portfolio-img {
  height: 200px;
}
.portfolio-card--featured .portfolio-img {
  height: 320px;
}

.pimg--industrial {
  background: linear-gradient(145deg, #0C2558 0%, #1E4A90 50%, #0a1e45 100%);
  position: relative;
}
.pimg--logistics {
  background: linear-gradient(145deg, #082040 0%, #104878 50%, #061630 100%);
  position: relative;
}
.pimg--energy {
  background: linear-gradient(145deg, #3a2800 0%, #784e00 50%, #2a1c00 100%);
  position: relative;
}
.pimg--commercial {
  background: linear-gradient(145deg, #142818 0%, #285030 50%, #0e1c10 100%);
  position: relative;
}

.pimg--industrial::after,
.pimg--logistics::after,
.pimg--energy::after,
.pimg--commercial::after {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      45deg, transparent, transparent 35px,
      rgba(255,255,255,0.025) 35px, rgba(255,255,255,0.025) 36px
    ),
    linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
}

.portfolio-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.ptag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(30,111,200,0.09);
  padding: 0.25rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 0.85rem;
}

.portfolio-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.portfolio-card--featured h3 { font-size: 1.5rem; }

.portfolio-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

.portfolio-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-light);
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}
.pmeta-sep { color: var(--border); }


/* ============================================
   METRICS
   ============================================ */
.metrics-section {
  background: var(--bg-navy);
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}

.metrics-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(30,111,200,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,111,200,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
}

.metrics-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

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

.metric-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: background 0.3s, transform 0.3s;
}
.metric-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}

.metric-val {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.9rem;
}

.metric-label {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.metric-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}


/* ============================================
   CLIENTS
   ============================================ */
.clients { background: #fff; }

.clients-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 7rem;
  align-items: start;
}

.clients-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 1.25rem;
}

.client-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.75rem;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  margin-bottom: 1.1rem;
  transition: box-shadow 0.3s, transform 0.3s;
  background: #fff;
}
.client-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(-4px);
}

.client-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  line-height: 1;
}

.client-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.client-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}


/* ============================================
   QUOTE
   ============================================ */
.quote-section {
  padding: 6rem 0;
  text-align: center;
}

.quote {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
  max-width: 780px;
  margin: 0 auto 1.25rem;
  font-style: normal;
}

.quote-em {
  color: var(--blue);
}

.quote-attr {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 400;
}


/* ============================================
   CONTACT
   ============================================ */
.contact { background: #fff; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 7rem;
  align-items: start;
}

.contact-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-top: 1.25rem;
  margin-bottom: 2.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}
.contact-item:last-child { border-bottom: none; }

.contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}

.contact-item a, .contact-item span {
  font-size: 1rem;
  color: var(--navy);
  font-weight: 500;
  transition: color 0.2s;
}
.contact-item a:hover { color: var(--blue); }

/* Form Card */
.contact-form-card {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid var(--border);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  direction: rtl;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(12,37,88,0.08);
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A9BB5' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  padding-left: 2.5rem;
}

.form-group select option { background: #fff; }

.form-group textarea { resize: vertical; min-height: 120px; }


/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.65);
  padding: 5.5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  margin-top: 0.5rem;
  max-width: 260px;
}

.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.4rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.footer-col a,
.footer-col span {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  padding: 0.4rem 0;
  transition: color 0.2s;
  display: block;
}
.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.28);
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .sectors-grid--2col { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 900px) {
  :root { --gap: 5.5rem; }

  /* Nav */
  .nav-inner { height: 64px; }
  .nav-logo-img { height: 110px !important; max-height: none !important; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  /* Layouts */
  .about-grid,
  .strategy-grid,
  .contact-grid,
  .clients-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-badge-card { left: auto; right: 1rem; }
  .step-connector { margin-right: 0; }
  .strategy-step:hover { transform: none; }
  .client-card:hover { transform: none; }

  /* Portfolio featured — always image on top, info below */
  .pf-featured,
  .pf-featured--industrial {
    grid-template-columns: 1fr;
    direction: rtl;
  }
  .pf-featured--industrial .pf-info { direction: rtl; }
  .pf-featured .pf-slideshow,
  .pf-featured--industrial .pf-slideshow { order: 1; }
  .pf-featured .pf-info,
  .pf-featured--industrial .pf-info { order: 2; }

  /* Slideshow height */
  .pf-slideshow { min-height: 320px; }

  /* Portfolio grid */
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card--featured { grid-row: auto; }

  /* Hero stats */
  .hero-stats { flex-wrap: wrap; }
  .hero-stat { min-width: 50%; border-left: none; border-top: 1px solid rgba(255,255,255,0.07); }

  /* Info panel */
  .pf-info { padding: 2rem 1.75rem; }
  .pf-info h3 { font-size: 1.4rem; }
  .pf-meta-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }

  /* Touch-friendly arrows */
  .pf-arrow { width: 44px; height: 44px; font-size: 1.5rem; }
  .slider-arrow { width: 44px; height: 44px; font-size: 2rem; }
}

@media (max-width: 600px) {
  :root { --gap: 3.5rem; }
  html { font-size: 15px; }

  /* Nav */
  .nav-inner { height: 60px; padding: 0 1rem; }
  .nav-logo-img { height: 96px !important; max-height: none !important; }

  /* Container */
  .container { padding: 0 1rem; }

  /* Hero */
  .hero-content { padding: 5rem 1rem 1.5rem; }
  .hero-headline { font-size: 2rem; line-height: 1.25; }
  .hero-sub { font-size: 0.9rem; letter-spacing: 0.05em; }
  .hero-actions { flex-direction: column; gap: 0.75rem; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .hero-stat { min-width: 100%; }
  .stat-num { font-size: 2rem; }

  /* Slideshow */
  .pf-slideshow { min-height: 260px; }
  .pf-arrow { width: 40px; height: 40px; font-size: 1.3rem; top: 50%; }
  .pf-arrow--prev { right: 0.5rem; }
  .pf-arrow--next { left: 0.5rem; }
  .slider-arrow { width: 40px; height: 40px; font-size: 1.8rem; top: 50%; }
  .slider-arrow--prev { right: 0.25rem; }
  .slider-arrow--next { left: 0.25rem; }

  /* Portfolio info */
  .pf-info { padding: 1.5rem 1rem; }
  .pf-info h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
  .pf-info p { font-size: 0.9rem; line-height: 1.7; }
  .pf-meta-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .pf-meta-label { font-size: 0.7rem; }
  .pf-meta-val { font-size: 0.85rem; }
  .pf-counter { font-size: 0.75rem; padding: 0.2rem 0.5rem; }
  .pf-dots { gap: 0.3rem; bottom: 0.5rem; }
  .pf-dot { width: 6px; height: 6px; }

  /* Category label */
  .pf-category-label { gap: 1rem; }
  .pf-cat-num { font-size: 2rem; }
  .pf-category-label h3 { font-size: 1.2rem; }

  /* Sections */
  .section-title { font-size: 1.8rem; }
  .sectors-grid,
  .sectors-grid--2col { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metric-val { font-size: 2.2rem; }

  /* About */
  .about-img-block { min-height: 260px; }
  .about-badge-card { display: none; }

  /* Contact */
  .form-row { grid-template-columns: 1fr; }
  .contact-form-card { padding: 1.25rem; }
  .contact-form input,
  .contact-form select,
  .contact-form textarea { font-size: 16px; } /* prevent iOS zoom */

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  /* Quote */
  .quote { font-size: 1.35rem; }

  /* Client cards */
  .client-card { padding: 1.25rem; gap: 1rem; }
}
