/* ==========================================================================
   Services page — styles specific to service.html.
   Depends on css/base.css, css/navbar.css, css/footer.css being loaded first.
   No exact Figma spec available for this page (API rate-limited) — built to
   match the reference screenshot and stay consistent with the rest of the
   site's design tokens (css/base.css).
   ========================================================================== */
.sv-hero {
  position: relative;
  min-height: 900px;
  display: flex;
  align-items: center;
  padding: 140px 0 48px;
  overflow: hidden;
  color: #fff;
}

.sv-hero-media {
  position: absolute;
  inset: 0;
}

.sv-hero-media img,
.sv-hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sv-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #0b1326 0%,
    rgba(11, 19, 38, 0.55) 45%,
    rgba(11, 19, 38, 0.15) 100%
  );
}

.sv-hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sv-hero-title {
  color: #fff;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  letter-spacing: -0.03em;
}

.sv-hero-title .gradient-text {
  background: linear-gradient(
    131deg,
    var(--color-accent-cyan-light) 0%,
    #00d1ff 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.sv-hero-desc {
  max-width: 42rem;
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.6;
}

.sv-hero-tag {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sv-cards {
  padding-block: 64px;
}

.sv-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sv-card {
  position: relative;
  padding: 32px;
  overflow: hidden;
}

.sv-card-wide {
  grid-column: span 2;
}

.sv-card-narrow {
  grid-column: span 1;
}

.sv-card-dark {
  background: var(--color-ink);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sv-card-dark h3 {
  color: #fff;
  font-size: 1.35rem;
}

.sv-card-dark p {
  color: #bbc9cf;
  font-size: 0.9rem;
  line-height: 1.55;
}

.sv-card-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
}

.sv-card-link {
  margin-top: auto;
  padding-top: 8px;
}

.sv-card-media {
  min-height: 360px;
  display: flex;
  align-items: flex-end;
}

.sv-card-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sv-card-media:hover > img {
  transform: scale(1.08);
}

.sv-card-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(11, 19, 38, 0.92),
    rgba(11, 19, 38, 0.2) 60%
  );
  z-index: 1;
}

.sv-card-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sv-card-overlay h3 {
  color: #fff;
  font-size: 1.35rem;
}

.sv-card-overlay p {
  color: #bbc9cf;
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 34ch;
}

.sv-card-eyebrow {
  color: var(--color-accent-cyan-light);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sv-card-split {
  background: var(--color-ink);
  padding: 0;
  display: flex;
  align-items: stretch;
}

.sv-card-split-text {
  flex: 1.2;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.sv-card-split-text h3 {
  color: #fff;
  font-size: 1.35rem;
}

.sv-card-split-text p {
  color: #bbc9cf;
  font-size: 0.9rem;
  line-height: 1.55;
}

.sv-card-split-media {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.sv-card-split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sv-card-split-media:hover img {
  transform: scale(1.08);
}

.sv-deepdive {
  background: #bbc9cf;
  padding-block: 96px;
}

.sv-deepdive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.sv-deepdive-media {
  position: relative;
}

.sv-deepdive-media .media-frame {
  border-radius: 0;
  overflow: hidden;
}

.sv-deepdive-media .media-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.sv-deepdive-caption {
  position: absolute;
  left: -32px;
  bottom: -32px;
  background: linear-gradient(135deg, #1c263b 0%, #0b1326 100%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.sv-deepdive-caption-label {
  color: var(--color-accent-cyan-light);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sv-deepdive-caption strong {
  color: #fff;
  font-size: 1.15rem;
  line-height: 1.25;
  max-width: 18ch;
}

.sv-deepdive-text h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 40px;
}

.sv-deepdive-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sv-deepdive-list li {
  display: flex;
  gap: 20px;
}

.sv-deepdive-list img {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.sv-deepdive-list h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.sv-deepdive-list p {
  color: var(--color-body);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ==========================================================================
   Sektor Industri & Jenis Muatan
   ========================================================================== */
.sv-sector {
  background: #fff;
}

.sv-sector-banner {
  position: relative;
  min-height: clamp(280px, 32vw, 420px);
  display: flex;
  align-items: flex-end;
  background-image: var(--sv-sector-bg, none);
  background-size: cover;
  background-position: center;
  padding-block: 40px;
  color: #fff;
}

.sv-sector-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 19, 38, 0.92) 0%, rgba(11, 19, 38, 0.35) 65%, transparent 100%);
}

.sv-sector-banner .container {
  position: relative;
  z-index: 1;
}

.sv-sector-banner h2 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
}

.sv-sector-banner p {
  margin-top: 12px;
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.sv-sector-list {
  padding-block: 64px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.sv-sector-item {
  position: relative;
}

.sv-sector-card {
  position: relative;
  padding: 40px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
}

/* odd rows (1st, 3rd, ...): dark card, subtle inset cargo box */
.sv-sector-card--dark {
  background: #131b2e;
}

/* even rows (2nd, 4th, ...): light card with a border, solid cyan cargo box */
.sv-sector-card--light {
  background: var(--color-surface);
  border: 1px solid var(--color-muted);
}

.sv-sector-item-main {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1;
}

.sv-sector-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: #2d3449;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sv-sector-icon img {
  width: 24px;
  height: 24px;
}

.sv-sector-item-main h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 30px;
  line-height: 36px;
  letter-spacing: 0;
}

.sv-sector-card--dark .sv-sector-item-main h3 {
  color: #fff;
}

.sv-sector-card--light .sv-sector-item-main h3 {
  color: var(--color-ink);
}

.sv-sector-cargo {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 100%;
  max-width: 420px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sv-sector-card--dark .sv-sector-cargo {
  background: #171f33;
  border: 1px solid #3c494e33;
}

.sv-sector-card--light .sv-sector-cargo {
  background: var(--color-accent-cyan-light);
}

.sv-sector-cargo-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  line-height: 16px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sv-sector-card--dark .sv-sector-cargo-label {
  color: var(--color-accent-cyan-light);
}

.sv-sector-card--light .sv-sector-cargo-label {
  color: var(--color-ink);
}

.sv-sector-cargo p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0;
}

.sv-sector-card--dark .sv-sector-cargo p {
  color: #bbc9cf;
}

.sv-sector-card--light .sv-sector-cargo p {
  color: var(--color-ink);
}

.sv-sector-index {
  position: absolute;
  left: 40px;
  bottom: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 96px;
  line-height: 96px;
  letter-spacing: 0;
}

.sv-sector-card--dark .sv-sector-index {
  color: rgba(255, 255, 255, 0.06);
}

.sv-sector-card--light .sv-sector-index {
  color: rgba(11, 19, 38, 0.14);
}

.sv-sector-item.is-hidden {
  display: none;
}

.sv-sector-more {
  position: relative;
  text-align: center;
  /* the list's own bottom padding (64px) already mirrors its top padding */
  margin-top: 0;
  padding-top: 24px;
  padding-bottom: 64px;
}

.sv-sector-more::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  border-top: 1px dashed var(--color-border);
}

.sv-sector-more-btn {
  display: inline-block;
  background: none;
  border: none;
  border-bottom: 2px solid var(--color-primary);
  padding: 0 0 8px;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ==========================================================================
   Model Kerjasama
   ========================================================================== */
.sv-partnership {
  background: var(--color-surface-alt);
  padding-block: 96px;
}

.sv-partnership-header {
  margin-bottom: 40px;
}

.sv-partnership-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
}

.sv-partnership-header p {
  margin-top: 8px;
  color: var(--color-body);
  font-size: 0.9375rem;
}

.sv-partnership-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.sv-partnership-card {
  background: var(--color-ink);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sv-partnership-icon {
  width: 40px;
  height: 40px;
  background: #2d3449;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sv-partnership-icon img {
  width: 20px;
  height: 20px;
}

.sv-partnership-card h3 {
  color: #fff;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.sv-partnership-card p {
  color: #bbc9cf;
  font-size: 0.875rem;
  line-height: 1.55;
}

.sv-partnership-basis {
  margin-top: auto;
  border: 1px solid rgba(164, 230, 255, 0.2);
  padding: 12px 16px;
}

.sv-partnership-basis-label {
  display: block;
  color: var(--color-accent-cyan-light);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.sv-partnership-basis p {
  color: #9aa8b4;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.sv-cta {
  padding: 96px 24px;
  text-align: center;
}

.sv-cta-inner {
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.sv-cta h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.sv-cta-highlight {
  color: var(--color-primary);
}

.sv-cta p {
  color: var(--color-body);
  font-size: 1rem;
  line-height: 1.6;
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .sv-deepdive-grid {
    display: block;
  }

  .sv-deepdive-media {
    margin-bottom: 16px;
  }

  .sv-deepdive-media .media-frame {
    border-radius: 8px;
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  .sv-deepdive-media .media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* in-flow: only a fixed strip overlaps the photo, extra text lines grow downward */
  .sv-deepdive-caption {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: fit-content;
    max-width: 70%;
    margin: -56px 24px 0 auto;
    padding: 25px;
    background: linear-gradient(
      135deg,
      rgba(28, 38, 59, 0.92) 0%,
      rgba(11, 19, 38, 0.92) 100%
    );
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }

  .sv-deepdive-caption-label {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }

  .sv-deepdive-caption strong {
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.43;
    max-width: none;
  }

  .sv-deepdive-text {
    padding-top: 24px;
  }

  .sv-sector-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .sv-sector-cargo {
    max-width: none;
  }

  .sv-sector-index {
    position: static;
    margin-top: 24px;
  }

  .sv-partnership-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sv-hero {
    padding: 120px 0 40px;
    min-height: 700px;
  }

  .sv-cards-grid {
    grid-template-columns: 1fr;
  }

  .sv-card-wide,
  .sv-card-narrow {
    grid-column: span 1;
  }

  .sv-card-split {
    flex-direction: column;
  }

  .sv-card-split-media {
    min-height: 200px;
  }

  .sv-sector-banner {
    padding-block: 24px;
  }

  .sv-sector-list {
    padding-block: 40px;
    gap: 48px;
  }

  .sv-sector-card {
    padding: 24px;
  }

  .sv-sector-index {
    font-size: 56px;
    line-height: 56px;
    margin-top: 16px;
  }

  .sv-partnership {
    padding-block: 64px;
  }

  .sv-partnership-grid {
    grid-template-columns: 1fr;
  }
}

/* Armada Kami (Products Carousel) */
.sv-products-section {
    grid-column: 1 / -1;
    padding: 40px 0;
    overflow: hidden;
}

.sv-products-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.sv-products-header h2 {
    margin: 0;
    font-weight: 700;
    font-size: 48px;
    line-height: 48px;
    letter-spacing: -1.2px;
}

.sv-products-link {
    color: #007bff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    line-height: 16.5px;
    text-transform: uppercase;
    border-bottom: 2px solid #007bff;
    padding-bottom: 4px;
    letter-spacing: 1.1px;
}

.sv-products-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sv-products-carousel::-webkit-scrollbar {
    display: none;
}

.sv-product-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    padding: 0;
    overflow: hidden;
    flex: 0 0 calc(33.333% - 16px);
    scroll-snap-align: start;
    background: #22252a;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    height: 340px;
}

.sv-product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.sv-product-card-body {
    padding: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    background: rgba(34, 37, 42, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sv-product-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.sv-product-card-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #8e959e;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.sv-product-card-meta svg {
    color: #8e959e;
}

.sv-product-card-body h3 {
    margin: 0;
    font-size: 20px;
    color: #fff;
    font-weight: 700;
    line-height: 22.5px;
    letter-spacing: 0px;
}

.sv-products-section-container {
    padding-top: 60px;
}

.sv-product-card-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2px;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-left: auto;
}

@media (max-width: 768px) {
  /* unwrap the header box so its h2/link become direct flex items of
     .sv-products-section, letting `order` move the link below the
     carousel without touching the blade markup */
  .sv-products-section {
    display: flex;
    flex-direction: column;
  }

  .sv-products-header {
    display: contents;
  }

  .sv-products-header h2 {
    order: 1;
    margin-bottom: 20px;
    font-size: 32px;
    line-height: 36px;
  }

  .sv-products-carousel {
    order: 2;
  }

  .sv-products-link {
    order: 3;
    align-self: flex-start;
    margin-top: 16px;
  }

  .sv-product-card {
    flex: 0 0 calc(50% - 12px);
    height: auto;
    aspect-ratio: 1 / 1;
  }
}
