/* =============================================
   LAYANAN - LUXURY MARITIME DARK THEME
   PT. MODERN AULIA MANDIRI
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --navy-deep:  #081828;
  --navy:       #0d2233;
  --navy-mid:   #163347;
  --teal:       #3a9e8f;
  --teal-light: #5fc4b4;
  --teal-pale:  #a8ddd6;
  --gold:       #c9a84c;
  --gold-light: #e2c97e;
  --text-main:  #f0ede8;
  --text-muted: #c2d4e0;
}

/* =============================================
   PAGE TITLE / HERO BANNER
   ============================================= */

.page-title {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-title::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 24, 40, 0.72) 0%,
    rgba(8, 24, 40, 0.50) 50%,
    rgba(8, 24, 40, 0.85) 100%
  );
  z-index: 1;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--teal), transparent);
  z-index: 2;
}

.page-title .container {
  position: relative;
  z-index: 3;
  padding: 80px 20px 60px;
}

.page-title h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-main);
  margin: 0 0 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.45);
}

.page-title .breadcrumbs ol {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
}

.page-title .breadcrumbs ol li a {
  color: var(--teal-pale);
  text-decoration: none;
  transition: color 0.2s;
}

.page-title .breadcrumbs ol li a:hover {
  color: var(--teal-light);
}

.page-title .breadcrumbs ol li.current {
  color: var(--text-muted);
  opacity: 0.8;
}

.page-title .breadcrumbs ol li + li::before {
  content: '/';
  color: rgba(160,210,200,0.4);
  margin-right: 10px;
}

/* =============================================
   SERVICES SECTION
   ============================================= */

.services.section {
  background-color: var(--navy-deep);
  padding: 80px 0 100px;
  font-family: 'DM Sans', sans-serif;
  position: relative;
}

/* Grid texture */
.services.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(58,158,143,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,158,143,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.services.section .container {
  position: relative;
  z-index: 1;
}

/* =============================================
   SECTION TITLE
   ============================================= */

.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--teal-light), var(--teal-pale));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 16px;
}

.section-title p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.85;
}

/* Divider bawah judul */
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--teal), transparent);
  margin: 20px auto 0;
}

/* =============================================
   SERVICE IMAGE CARDS
   ============================================= */

.service-image-card {
  position: relative;
  height: 360px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  border: 1px solid rgba(58,158,143,0.12);
  transition: border-color 0.35s, transform 0.35s;
  cursor: pointer;
}

.service-image-card:hover {
  border-color: rgba(58,158,143,0.4);
  transform: translateY(-5px);
}

/* Zoom foto saat hover */
.service-image-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
  z-index: 0;
}

/* Dark gradient overlay */
.service-image-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,24,40,0.15) 0%,
    rgba(8,24,40,0.55) 50%,
    rgba(8,24,40,0.92) 100%
  );
  transition: background 0.35s;
  z-index: 1;
}

.service-image-card:hover::after {
  background: linear-gradient(
    to bottom,
    rgba(8,24,40,0.25) 0%,
    rgba(8,24,40,0.65) 45%,
    rgba(8,24,40,0.96) 100%
  );
}

/* Service number watermark */
.service-image-card .service-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 600;
  color: rgba(95, 196, 180, 0.12);
  line-height: 1;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

/* Overlay content */
.service-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 28px 32px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Teal top border accent */
.service-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(to right, var(--teal), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}

.service-image-card:hover .service-overlay::before {
  opacity: 1;
}

.service-overlay h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.service-overlay p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  opacity: 0.88;
}

/* CTA Button */
.service-overlay .btn-service {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  align-self: flex-start;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 6px;
  padding: 8px 18px;
  text-decoration: none;
  background: transparent;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s;
}

.service-overlay .btn-service:hover {
  background: rgba(201,168,76,0.12);
  border-color: var(--gold-light);
  color: var(--gold-light);
  transform: translateX(3px);
}

.service-overlay .btn-service .arrow {
  font-size: 16px;
  transition: transform 0.2s;
}

.service-overlay .btn-service:hover .arrow {
  transform: translateX(3px);
}

/* =============================================
   CARD GRID — 4th card center on wide screens
   ============================================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 4th card: offset to center */
.services-grid .card-item:nth-child(4) {
  grid-column: 2 / 3;
}

/* =============================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================= */

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid .card-item:nth-child(4) {
    grid-column: auto;
  }

  .service-image-card {
    height: 300px;
  }

  .section-title {
    margin-bottom: 40px;
  }
}

/* =============================================
   RESPONSIVE — MOBILE (≤ 600px)
   ============================================= */

@media (max-width: 600px) {
  .page-title {
    min-height: 240px;
  }

  .page-title .container {
    padding: 64px 16px 48px;
  }

  .services.section {
    padding: 48px 0 64px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .services-grid .card-item:nth-child(4) {
    grid-column: auto;
  }

  .service-image-card {
    height: 280px;
  }

  .service-overlay {
    padding: 20px 20px 24px;
  }

  .service-overlay h3 {
    font-size: 1.25rem;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }

  .section-title p {
    font-size: 13.5px;
  }
}