/* ==========================================================================
   MPSV DP II OFFSHORE SUPPORT VESSEL — Alliance Charter Microsite
   ========================================================================== */

:root {
  --navy: #0a1f38;
  --navy-deep: #061426;
  --navy-mid: #10304f;
  --steel: #4a5d70;
  --steel-light: #8fa1b3;
  --white: #ffffff;
  --off-white: #f4f6f8;
  --accent: #c98f2c;
  --accent-light: #e8b458;
  --success: #1f7a4d;
  --border-light: #e1e6eb;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --header-height: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--navy-deep);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: var(--navy-deep);
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}
.btn-outline {
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}
.btn-outline-light {
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  padding: 12px 26px;
  border-radius: 4px;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }
.btn-large { width: 100%; padding: 18px; font-size: 1rem; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(10, 31, 56, 0.97);
  backdrop-filter: blur(6px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.brand-logo { height: 38px; width: auto; filter: brightness(0) invert(1); }
.brand-divider {
  width: 1px; height: 26px;
  background: rgba(255,255,255,0.25);
}
.brand-vessel {
  font-family: var(--font-heading);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 1rem;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--accent-light); }
.main-nav .nav-cta {
  background: var(--accent);
  color: var(--navy-deep);
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.main-nav .nav-cta:hover { background: var(--accent-light); color: var(--navy-deep); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.lang-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 4px 6px;
}
.lang-btn.active { color: var(--accent-light); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--accent);
  color: var(--navy-deep);
  text-align: center;
  padding: 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.9rem;
  z-index: 999;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  color: var(--white);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(6,20,38,0.95) 20%, rgba(6,20,38,0.75) 55%, rgba(6,20,38,0.45) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  width: 100%;
}
.hero-tag {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 12px;
  max-width: 800px;
}
.hero h1 span { display: block; color: var(--accent-light); }
.hero h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
  max-width: 700px;
}
.hero-text {
  max-width: 620px;
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  margin-bottom: 18px;
}
.hero-ecosystem {
  font-size: 0.82rem;
  color: var(--steel-light);
  letter-spacing: 0.03em;
  font-style: italic;
  margin-bottom: 30px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 20px;
  max-width: 780px;
  margin-bottom: 40px;
  border-top: 1px solid rgba(255,255,255,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding: 22px 0;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 700;
  color: var(--white);
}
.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--steel-light);
  text-transform: uppercase;
}

.hero-cta-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Sections generic ===== */
.section { padding: 90px 0; }
.section-kicker {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.section-kicker.light { color: var(--accent-light); }
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 24px;
  max-width: 800px;
}
.section-title.light { color: var(--white); }
.section-lead {
  font-size: 1.05rem;
  color: var(--steel);
  max-width: 680px;
  margin-bottom: 20px;
}
.section-lead.light { color: rgba(255,255,255,0.82); }

/* ===== Capabilities grid ===== */
.capabilities { background: var(--off-white); }
.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
}
.capability-item {
  background: var(--white);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: background 0.2s;
}
.capability-item:hover { background: var(--off-white); }
.capability-item i {
  font-size: 1.6rem;
  color: var(--navy-mid);
}
.capability-item span {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy-deep);
}

/* ===== Two col layout ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.col-media img {
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(10,31,56,0.18);
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* ===== Accommodation section ===== */
.berths-highlight {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 24px 0;
  padding: 20px 28px;
  background: var(--navy);
  border-radius: 6px;
  width: fit-content;
}
.berths-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent-light);
}
.berths-label {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.accommodation-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}
.accommodation-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--navy-deep);
}
.accommodation-list li i {
  color: var(--navy-mid);
  width: 20px;
  text-align: center;
}
.use-case-note {
  font-size: 0.92rem;
  color: var(--steel);
  font-style: italic;
  margin-top: 16px;
}

/* ===== Crane section ===== */
.crane-section { background: var(--off-white); }
.spec-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 26px 0;
}
.spec-mini {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 18px 14px;
  text-align: center;
}
.spec-mini-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy-mid);
  margin-bottom: 4px;
}
.spec-mini-label {
  font-size: 0.75rem;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.detail-list {
  list-style: none;
  margin: 18px 0;
  font-size: 0.95rem;
}
.detail-list li { margin-bottom: 8px; }
.disclaimer {
  font-size: 0.85rem;
  color: var(--steel);
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  margin-top: 20px;
}

/* ===== DP II section ===== */
.dp-section {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  text-align: center;
}
.dp-section .section-kicker,
.dp-section .section-title,
.dp-section .section-lead { margin-left: auto; margin-right: auto; }
.dp-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 16px 28px;
  border-radius: 6px;
  margin-top: 10px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}
.dp-badge i { color: var(--accent-light); font-size: 1.3rem; }

/* ===== Specs section ===== */
.specs-tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.specs-block h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--navy-mid);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 22px 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}
.specs-block h3:first-child { margin-top: 0; }
.specs-block table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 6px;
}
.specs-block table tr td {
  padding: 9px 4px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border-light);
}
.specs-block table tr td:first-child { color: var(--steel); }
.specs-block table tr td:last-child { text-align: right; font-weight: 600; color: var(--navy-deep); }

/* ===== Propulsion accordion ===== */
.propulsion-section { background: var(--off-white); }
.accordion {
  border: 1px solid var(--border-light);
  border-radius: 6px;
  margin-bottom: 12px;
  background: var(--white);
  overflow: hidden;
}
.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 18px 22px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-deep);
  cursor: pointer;
}
.accordion-header i { transition: transform 0.25s; color: var(--navy-mid); }
.accordion.open .accordion-header i { transform: rotate(180deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 22px;
}
.accordion.open .accordion-body { max-height: 200px; padding-bottom: 18px; }
.accordion-body p { font-size: 0.95rem; color: var(--steel); }

/* ===== Capacities ===== */
.table-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: 30px 0 14px;
  color: var(--navy-deep);
}
.consumption-table table {
  width: 100%;
  border-collapse: collapse;
}
.consumption-table th, .consumption-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border-light);
}
.consumption-table th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.fuel-type { margin-top: 16px; font-size: 0.95rem; }

/* ===== Gallery ===== */
.gallery-section { background: var(--off-white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 14px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}
.gallery-item.large { grid-column: span 2; grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(6,20,38,0.85), transparent);
  color: var(--white);
  padding: 30px 16px 12px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ===== Use cases ===== */
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.use-case-card {
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 30px 22px;
  text-align: center;
  transition: all 0.25s;
}
.use-case-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(10,31,56,0.1);
}
.use-case-card i {
  font-size: 1.8rem;
  color: var(--navy-mid);
  margin-bottom: 14px;
}
.use-case-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-deep);
}

/* ===== CTA Strong ===== */
.cta-strong {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
  color: var(--white);
  text-align: center;
}
.cta-strong h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 18px;
  max-width: 720px;
  margin-left: auto; margin-right: auto;
}
.cta-strong p {
  max-width: 640px;
  margin: 0 auto 30px;
  color: rgba(255,255,255,0.82);
}
.cta-strong .geo-note {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  max-width: 620px;
  margin: -10px auto 30px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-style: italic;
}

/* ===== Quote form ===== */
.quote-section { background: var(--off-white); }
.quote-form {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 40px;
  margin-top: 20px;
  box-shadow: 0 10px 40px rgba(10,31,56,0.06);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 26px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; margin-bottom: 26px; }
.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-deep);
}
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-size: 0.92rem;
  font-family: var(--font-body);
  color: var(--navy-deep);
  background: var(--off-white);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--navy-mid);
  background: var(--white);
}
.duration-group { display: flex; gap: 10px; }
.duration-group input { flex: 1; }
.duration-group select { flex: 1; }

.activity-fieldset {
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 18px 22px;
  margin-bottom: 26px;
}
.activity-fieldset legend {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-deep);
  padding: 0 6px;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}
.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  cursor: pointer;
}
.checkbox-grid input { width: 16px; height: 16px; accent-color: var(--navy-mid); }

.form-success {
  display: none;
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(31,122,77,0.1);
  border: 1px solid var(--success);
  color: var(--success);
  border-radius: 6px;
  font-size: 0.92rem;
  text-align: center;
}
.form-success.show { display: block; }

/* ===== Legal / Technical Notice ===== */
.legal-notice {
  background: var(--off-white);
  padding: 60px 0;
  border-top: 1px solid var(--border-light);
}
.legal-notice .section-kicker { color: var(--steel); }
.legal-text {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--steel);
  max-width: 900px;
  margin-bottom: 12px;
}
.legal-text:last-child { margin-bottom: 0; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-deep);
  color: var(--white);
  padding: 50px 0 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.footer-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 12px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 380px; }
.footer-brand img { height: 32px; width: auto; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.65); }
.footer-ecosystem { display: flex; flex-direction: column; gap: 10px; max-width: 300px; }
.footer-ecosystem .ecosystem-logo {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-ecosystem .ecosystem-caption {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  font-style: italic;
}
.footer-cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-cta a:not(.btn-outline-light) {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
}
.footer-cta a:not(.btn-outline-light):hover { color: var(--accent-light); }
.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-inner { justify-content: space-between; }
  .lang-switch { margin-left: auto; margin-right: 10px; }

  .main-nav.mobile-open {
    display: flex;
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    padding: 20px 24px 30px;
    gap: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .main-nav.mobile-open .nav-cta { width: fit-content; }

  .sticky-cta { display: block; }
  body { padding-bottom: 56px; }

  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 34px; }
  .two-col.reverse { direction: ltr; }
  .specs-tables { grid-template-columns: 1fr; }
  .spec-mini-grid { grid-template-columns: repeat(2, 1fr); }
  .use-case-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 180px); }
  .gallery-item.large { grid-column: span 2; grid-row: span 1; }
  .form-grid { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-brand, .footer-ecosystem { max-width: 100%; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-cta-group { flex-direction: column; }
  .hero-cta-group .btn { width: 100%; }
  .capability-grid { grid-template-columns: 1fr; }
  .use-case-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .gallery-item.large { grid-column: span 1; }
  .gallery-item { height: 240px; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .quote-form { padding: 26px; }
  .spec-mini-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-vessel { font-size: 0.82rem; }
}
