/* =========================================================================
   DESIGN & NAVAL ARCHITECTURE — page-specific styles (design-engineering.css)
   Global rules (reset, colors, fonts, .container, .btn, .card, .hero,
   .section, .section-head, .grid, navbar, footer) live in /style.css.
   Colors/fonts come only from the §6/§7 variables — no new colors;
   --dusty-denim is the only accent.
   ========================================================================= */

/* ------------------------------------------------------------------ 1 · HERO */
.page-hero { min-height: 86vh; }

.scroll-indicator {
  position: absolute;
  z-index: 2;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  animation: si-bounce 1.8s ease-in-out infinite;
}
.scroll-indicator svg { width: 22px; height: 22px; }
.scroll-indicator:hover { background: rgba(255, 255, 255, 0.15); }
@keyframes si-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}
@media (prefers-reduced-motion: reduce) { .scroll-indicator { animation: none; } }

/* --------------------------------------------------- shared prose + stats */
.prose { max-width: 860px; margin-inline: auto; }
.prose p { color: var(--color-secondary); margin-bottom: 1.25rem; }
.prose p:last-child { margin-bottom: 0; }

.stat-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}
@media (min-width: 900px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 2rem 1rem;
  transition: all 0.25s ease;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.stat-num {
  display: block;
  font-family: var(--font-heading-en);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
}
html[lang="ar"] .stat-num { font-family: var(--font-heading-ar); }
.stat-label { display: block; margin-top: 0.5rem; font-size: 0.88rem; color: var(--color-secondary); }

/* --------------------------------------------------- 3 · CAPABILITY CLUSTERS */
.cluster-head {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 3rem;
  text-align: center;
}
.cluster-head .eyebrow {
  display: inline-block;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 0.6rem;
}
html[lang="ar"] .cluster-head .eyebrow { letter-spacing: normal; }
.cluster-head h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }

/* Lead service row (image + content) */
.svc-row {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
}
@media (min-width: 900px) {
  .svc-row { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
}
.svc-media {
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
}
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: all 0.25s ease; }
.svc-row:hover .svc-media img { transform: scale(1.05); }
.svc-body h4 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); margin-bottom: 0.75rem; }
.svc-body > p { color: var(--color-secondary); }

/* Shared service icon (boxed, hover → accent) */
.feat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-primary);
  margin-bottom: 1rem;
  transition: all 0.25s ease;
}
.feat-icon svg { width: 25px; height: 25px; }
.svc-row:hover .feat-icon,
.feature-item:hover .feat-icon {
  background: var(--color-accent);
  color: #fff;
}
/* On a --color-surface band, boxed icons need a white base to stay visible */
.section--surface .feat-icon,
.section--surface-alt .feat-icon { background: #fff; }

/* Remaining services in a cluster → two-column feature list */
.feature-list {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .feature-list { grid-template-columns: 1fr 1fr; } }
.feature-item .feat-icon { margin-bottom: 0.85rem; }
.feature-item h4 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.feature-item p { color: var(--color-secondary); font-size: 0.96rem; }

/* --------------------------------------------------- 4 · PROCESS TIMELINE */
.phases { display: flex; flex-direction: column; gap: 3.5rem; }
.phase { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) {
  .phase { grid-template-columns: 0.85fr 1.15fr; gap: 3.5rem; }
}
.phase-head h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); margin-bottom: 1.5rem; }
.phase-media {
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
}
.phase-media img { width: 100%; height: 100%; object-fit: cover; transition: all 0.25s ease; }
.phase:hover .phase-media img { transform: scale(1.04); }

.timeline { position: relative; }
.stage {
  position: relative;
  padding-inline-start: 3.5rem;
  padding-bottom: 1.75rem;
}
.stage:last-child { padding-bottom: 0; }
.stage-num {
  position: absolute;
  inset-inline-start: 0;
  top: -0.15rem;
  width: 2.5rem;
  text-align: center;
  font-family: var(--font-heading-en);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1;
}
html[lang="ar"] .stage-num { font-family: var(--font-heading-ar); }
.stage:not(:last-child)::before {
  content: "";
  position: absolute;
  inset-inline-start: 1.2rem;
  top: 1.9rem;
  bottom: -0.1rem;
  width: 2px;
  background: rgba(36, 58, 94, 0.15);
}
.stage h4 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.stage p { color: var(--color-secondary); font-size: 0.92rem; }

/* --------------------------------------------------- 5 · R&D GRID */
.rnd-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .rnd-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .rnd-grid { grid-template-columns: repeat(5, 1fr); } }
.rnd-item {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: all 0.25s ease;
}
.rnd-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.rnd-item .feat-icon { margin-inline: auto; margin-bottom: 0.75rem; }
.rnd-item:hover .feat-icon { background: var(--color-accent); color: #fff; }
.rnd-item h4 { font-size: 0.98rem; line-height: 1.35; }

/* --------------------------------------------------- 6 · CLOSING CTA */
.cta-band {
  position: relative;
  padding-block: 6rem;
  text-align: center;
  color: var(--color-text-invert);
  overflow: hidden;
}
.cta-band .cta-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.cta-band .hero-overlay { z-index: 1; }
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.cta-band p { max-width: 580px; margin: 1rem auto 2rem; color: rgba(255, 255, 255, 0.9); }
.cta-actions { display: flex; gap: 1.25rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.cta-band .btn-primary { background: #fff; color: var(--color-primary); }
.cta-band .btn-primary:hover { background: var(--color-surface-alt); color: var(--color-primary); transform: translateY(-2px); }
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: #fff;
  transition: all 0.25s ease;
}
.cta-link svg { width: 18px; height: 18px; transition: transform 0.25s ease; }
.cta-link:hover { color: var(--color-surface-alt); }
.cta-link:hover svg { transform: translateX(4px); }
html[dir="rtl"] .cta-link svg { transform: scaleX(-1); }
html[dir="rtl"] .cta-link:hover svg { transform: scaleX(-1) translateX(4px); }

.img-zoom { overflow: hidden; }
