/* =========================================================================
   SHIPBUILDING & COMMERCIAL VESSELS — page-specific styles (shipbuilding.css)
   Global rules (reset, colors, fonts, .container, .btn, .card, .hero,
   .section, .section-head, .grid, navbar, footer) live in /style.css.
   Only this page's own layout belongs here. Colors/fonts come only from the
   §6/§7 variables — no new colors; --dusty-denim is the only accent.
   ========================================================================= */

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

.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 block */
.prose {
  max-width: 860px;
  margin-inline: auto;
}
.prose p {
  color: var(--color-secondary);
  margin-bottom: 1.25rem;
}
.prose p:last-child { margin-bottom: 0; }

/* --------------------------------------------------- 2 · STAT CARDS */
.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.4rem, 3vw, 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 · VESSEL FAMILY BANDS */
/* Each family is its own full-width band with a distinct background
   (set in the HTML: white / --color-surface / --color-surface-alt). */
.family-band-head {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
  text-align: center;
}
.family-band-head h3 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 0.75rem;
}
.family-band-head p { color: var(--color-secondary); }

/* Full-width alternating rows */
.vessel-rows {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}
.vessel-row {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .vessel-row {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  /* Alternate the image to the opposite side. Media is always first in the
     DOM, so on mobile it stays on top regardless of this desktop-only order. */
  .vessel-row--reverse .vrow-media { order: 2; }
}

/* Image side — fixed 4:3, hover zoom inside an overflow:hidden wrapper */
.vrow-media {
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
}
.vrow-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.25s ease;
}
.vessel-row:hover .vrow-media img { transform: scale(1.05); }

/* Content side */
.vrow-icon {
  display: inline-flex;
  color: var(--color-secondary); /* --dusty-denim */
  margin-bottom: 1rem;
}
.vrow-icon svg { width: 34px; height: 34px; }
.vrow-body h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.9rem;
}
.vrow-body > p { color: var(--color-secondary); }

/* Inline spec figures with thin vertical dividers */
.vrow-specs {
  display: flex;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.vspec {
  padding-inline: 1.5rem;
  border-inline-start: 1px solid rgba(36, 58, 94, 0.15);
}
.vspec:first-child {
  padding-inline-start: 0;
  border-inline-start: none;
}
.vspec-num {
  display: block;
  font-family: var(--font-heading-en);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.15;
}
html[lang="ar"] .vspec-num { font-family: var(--font-heading-ar); }
.vspec-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-secondary);
}
html[lang="ar"] .vspec-label {
  letter-spacing: normal;
  text-transform: none;
  font-size: 0.85rem;
}

/* Discuss link (no card lift now — link reacts to the row hover) */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--color-secondary);
  transition: all 0.25s ease;
}
.card-link svg { width: 18px; height: 18px; transition: transform 0.25s ease; }
.vessel-row:hover .card-link,
.card-link:hover { color: var(--color-primary); }
.vessel-row:hover .card-link svg,
.card-link:hover svg { transform: translateX(4px); }
html[dir="rtl"] .card-link svg { transform: scaleX(-1); }
html[dir="rtl"] .vessel-row:hover .card-link svg,
html[dir="rtl"] .card-link:hover svg { transform: scaleX(-1) translateX(4px); }

/* Img zoom wrapper (shared with capability images) */
.img-zoom { overflow: hidden; }

/* --------------------------------------------------- 4 · SHIPYARD CAPABILITY */
.cap-media {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.75rem;
}
@media (min-width: 768px) {
  .cap-media { grid-template-columns: 1fr 1fr; }
}
.cap-media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.features { margin-top: 3rem; }
.feature-col { text-align: center; }
.feature-col .card-icon { margin-inline: auto; }
.feature-col h4 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.feature-col p { color: var(--color-secondary); font-size: 0.92rem; }

/* --------------------------------------------------- 5 · OPERATING LIFE */
.support-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .support-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 4rem;
  }
}
.support-media img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.support-copy .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.75rem;
}
html[lang="ar"] .support-copy .eyebrow { letter-spacing: normal; }
.support-copy h2 { margin-bottom: 1.25rem; }
.support-copy > p { color: var(--color-primary); margin-bottom: 1.5rem; }
.support-features {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}
.support-features li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 500;
}
.support-features .card-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 0;
  flex: 0 0 auto;
}
.support-features .card-icon svg { width: 20px; height: 20px; }

/* --------------------------------------------------- 6 · PROCESS STRIP */
.process-steps {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .process-steps { grid-template-columns: repeat(5, 1fr); }
}
.proc-step {
  position: relative;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.25s ease;
}
.proc-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.proc-num {
  position: absolute;
  top: 0.9rem;
  inset-inline-end: 1.1rem;
  font-family: var(--font-heading-en);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-surface-alt);
  line-height: 1;
}
html[lang="ar"] .proc-num { font-family: var(--font-heading-ar); }
.proc-step .card-icon { margin-inline: auto; }
.proc-step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.proc-step p { color: var(--color-secondary); font-size: 0.9rem; }

.center-cta { margin-top: 3rem; text-align: center; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--color-secondary);
  transition: all 0.25s ease;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.25s ease; }
.link-arrow:hover { color: var(--color-primary); }
.link-arrow:hover svg { transform: translateX(4px); }
html[dir="rtl"] .link-arrow svg { transform: scaleX(-1); }
html[dir="rtl"] .link-arrow:hover svg { transform: scaleX(-1) translateX(4px); }

/* --------------------------------------------------- 7 · 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: 560px;
  margin: 1rem auto 2rem;
  color: rgba(255, 255, 255, 0.9);
}
.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);
}
