/* ═══════════════════════════════════════════════════════════
   KEEPP — Services Page v2 Styles
   Three differentiated layout modules
   ═══════════════════════════════════════════════════════════ */

/* ── Page Hero ── */
#svc-hero {
  background: radial-gradient(ellipse at 30% 20%, #f0f7ff 0%, #f8fafc 50%, #fafbfd 100%);
  padding: 160px 80px 80px;
  text-align: center;
}
.svc-hero-content {
  max-width: 720px;
  margin: 0 auto;
}


/* ═══════════════════════════════════════════════════════════
   Sticky Section Nav
   ═══════════════════════════════════════════════════════════ */
.svc-sticky-nav {
  position: sticky;
  top: 84px;
  z-index: 500;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(18,47,81,0.06);
  transition: box-shadow .3s ease;
}
.svc-sticky-nav.stuck {
  box-shadow: 0 2px 16px rgba(18,47,81,0.06);
}
.svc-sticky-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 40px;
  height: 52px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.svc-sticky-inner::-webkit-scrollbar { display: none; }
.svc-sticky-link {
  font-family: 'Questrial', sans-serif;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 14px 20px;
  white-space: nowrap;
  position: relative;
  transition: color .3s ease;
}
.svc-sticky-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transition: transform .3s ease;
}
.svc-sticky-link.active {
  color: var(--navy);
}
.svc-sticky-link.active::after {
  transform: scaleX(1);
}
.svc-sticky-num {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  margin-right: 6px;
  font-size: 12px;
  opacity: 0.5;
  vertical-align: middle;
  line-height: 1;
}
.svc-sticky-link.active .svc-sticky-num {
  opacity: 1;
}
.svc-link-short { display: none; }
@media (max-width: 768px) {
  .svc-link-full { display: none; }
  .svc-link-short { display: inline; }
}

/* ═══════════════════════════════════════════════════════════
   Shared Module Styles
   ═══════════════════════════════════════════════════════════ */
.svc-module {
  padding: 100px 80px;
}
.svc-module-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.svc-module-header {
  text-align: center;
  margin-bottom: 64px;
}
.svc-module-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(48px, 7vw, 80px);
  color: var(--navy-pale);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: -8px;
}

/* Shared card styles — glassmorphism */
.svc-card {
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
  transition: transform .3s ease, box-shadow .3s ease;
}
.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(18,47,81,0.10), inset 0 1px 0 rgba(255,255,255,0.6);
}
.svc-num {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 2.2rem;
  color: rgba(18,47,81,0.08);
  line-height: 1;
}
.svc-card-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy);
  margin: 8px 0 10px;
}
.svc-card-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 12px;
}
.svc-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.svc-card-tags span {
  font-family: 'Questrial', sans-serif;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy-light);
  padding: 5px 12px;
  border: 1px solid rgba(18,47,81,0.1);
  border-radius: 100px;
  background: rgba(255,255,255,0.7);
}

/* ═══════════════════════════════════════════════════════════
   Module 1: Product & Manufacturing — Split Screen
   ═══════════════════════════════════════════════════════════ */
#mod-manufacturing {
  background: var(--off-white);
  padding: 0;                 /* override .svc-module padding — handled by m1-split */
}

/* Split layout container */
.m1-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1200px;
  margin: 0 auto;
  gap: 64px;
  padding: 100px 80px;
  align-items: start;
}

/* ── Left: Immersive image card ── */
.m1-left {
  position: sticky;
  top: 160px;                 /* nav(84) + sticky-nav(52) + 24px gap */
}
.m1-image-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--navy);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.m1-image-bg {
  position: absolute;
  inset: 0;
}
.m1-carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.m1-carousel-img.active {
  opacity: 1;
}
.m1-carousel-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(12,32,64,0.85) 0%, rgba(18,47,81,0.5) 40%, rgba(18,47,81,0.3) 100%);
  z-index: 1;
}
.m1-image-overlay {
  position: relative;
  z-index: 2;
  padding: 40px;
}
.m1-image-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  color: #fff;
  line-height: 1.15;
  margin: 8px 0 12px;
}
.m1-image-title em {
  font-style: italic;
  color: var(--navy-pale);
}
.m1-image-lead {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.65);
  max-width: 340px;
}

/* ── Right: Step cards with vertical line ── */
.m1-right {
  padding-top: 16px;
}
.m1-right > .eyebrow {
  margin-bottom: 32px;
  display: block;
}
.m1-steps {
  display: flex;
  flex-direction: column;
  gap: 0;                     /* gap handled by step padding */
}

/* Each step row: number | card */
.m1-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
}

/* Step indicator column — number + connecting line */
.m1-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 28px;          /* vertically center num with card title */
}
.m1-step-num {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  opacity: 0.25;
  line-height: 1;
  flex-shrink: 0;
}
.m1-step-line {
  display: block;
  width: 1px;
  flex: 1;
  min-height: 24px;
  background: rgba(18,47,81,0.10);
  margin-top: 12px;
}
/* Last step: no connecting line (already omitted in HTML) */

/* Card styling */
.m1-step-card {
  padding: 28px;
  margin-bottom: 20px;
}

/* ── Module bottom CTA ── */
.svc-module-cta {
  text-align: center;
  padding: 48px 80px 0;
}
#mod-manufacturing .svc-module-cta {
  padding-top: 0;
  padding-bottom: 60px;
}

/* ═══════════════════════════════════════════════════════════
   Module 2: Brand & Market Strategy — 3×2 Grid
   ═══════════════════════════════════════════════════════════ */
#mod-brand {
  background: linear-gradient(160deg, #f0e8fb 0%, #e8f0fd 50%, #fde8f2 100%);
  padding: 0;
}

/* ── 3-column grid container ── */
.m2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
  margin: 0 auto;
  gap: 24px;
  padding: 100px 80px 0;
}

/* ── Navy title card (first cell) ── */
.m2-title-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 260px;
}
.m2-image-bg {
  position: absolute;
  inset: 0;
}
.m2-deco-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.m2-title-overlay {
  position: relative;
  z-index: 2;
  padding: 32px 28px;
  background: linear-gradient(180deg, rgba(12,32,64,0.85) 0%, rgba(12,32,64,0.3) 60%, transparent 100%);
  flex: 1;
}
.m2-image-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(24px, 2.5vw, 34px);
  color: #fff;
  line-height: 1.15;
  margin: 8px 0 12px;
}
.m2-image-title em {
  font-style: italic;
  color: var(--navy-pale);
}
.m2-image-lead {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
}

/* ── Service cards ── */
.m2-card {
  padding: 28px;
}

/* CTA spacing for Module 2 */
#mod-brand .svc-module-cta {
  padding: 48px 80px 60px;
}

/* ═══════════════════════════════════════════════════════════
   Module 3: Global Operation — Mirrored Split (Cards Left + Image Right)
   ═══════════════════════════════════════════════════════════ */
#mod-global {
  background: radial-gradient(ellipse at 30% 20%, #f0f7ff 0%, #f8fafc 50%, #fafbfd 100%);
  padding: 0;
}

/* Split layout — mirrored from M1 (cards left, image right) */
.m3-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1200px;
  margin: 0 auto;
  gap: 64px;
  padding: 100px 80px;
  align-items: start;
}

/* ── Left: Step cards with vertical line ── */
.m3-left {
  padding-top: 16px;
}
.m3-left > .eyebrow {
  margin-bottom: 32px;
  display: block;
}
.m3-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.m3-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
}
.m3-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 28px;
}
.m3-step-num {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  opacity: 0.25;
  line-height: 1;
  flex-shrink: 0;
}
.m3-step-line {
  display: block;
  width: 1px;
  flex: 1;
  min-height: 24px;
  background: rgba(18,47,81,0.10);
  margin-top: 12px;
}
.m3-step-card {
  padding: 28px;
  margin-bottom: 20px;
}

/* ── Right: Immersive image card (sticky) ── */
.m3-right {
  position: sticky;
  top: 160px;
}
.m3-image-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--navy);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.m3-image-bg {
  position: absolute;
  inset: 0;
}
.m3-deco-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.m3-image-overlay {
  position: relative;
  z-index: 2;
  padding: 40px;
  background: linear-gradient(180deg, rgba(12,32,64,0.85) 0%, rgba(12,32,64,0.3) 60%, transparent 100%);
}
.m3-image-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  color: #fff;
  line-height: 1.15;
  margin: 8px 0 12px;
}
.m3-image-title em {
  font-style: italic;
  color: var(--navy-pale);
}
.m3-image-lead {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.65);
  max-width: 340px;
}

/* CTA spacing for Module 3 */
#mod-global .svc-module-cta {
  padding-top: 0;
  padding-bottom: 60px;
}

/* ═══════════════════════════════════════════════════════════
   Responsive — Tablet (≤ 1024px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  #svc-hero {
    padding: 140px 40px 60px;
  }
  .svc-module {
    padding: 80px 40px;
  }
  .svc-sticky-inner {
    justify-content: flex-start;
    padding: 0 20px;
  }
  /* Module 1 */
  .m1-split { gap: 40px; padding: 80px 40px; }
  .m1-image-card { min-height: 460px; }
  /* Module 3 */
  .m3-split { gap: 40px; padding: 80px 40px; }
  .m3-image-card { min-height: 460px; }
  /* Module 2 — Tablet: 2-col, title card spans top */
  .m2-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 80px 40px 0; }
  .m2-title-card { grid-column: 1 / -1; min-height: 200px; }
  .m2-card { padding: 22px; }
  #mod-brand .svc-module-cta { padding: 40px 40px 48px; }
}

/* ═══════════════════════════════════════════════════════════
   Responsive — Mobile (≤ 768px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #svc-hero {
    padding: 120px 20px 48px;
  }
  /* Sticky nav mobile — pill style matching homepage */
  .svc-sticky-nav {
    top: 90px;
    position: sticky;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: 0 4px 24px rgba(18,47,81,0.08);
    border-radius: 100px;
    border-bottom: none;
    margin: 0 24px;
    padding: 4px;
  }
  .svc-sticky-nav::after {
    display: none;
  }
  .svc-sticky-inner {
    justify-content: center;
    gap: 0;
    padding: 0;
    height: auto;
  }
  .svc-sticky-link {
    flex: 1;
    text-align: center;
    font-size: 10px;
    letter-spacing: .12em;
    padding: 10px 16px;
    min-height: 40px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .svc-sticky-link::after {
    display: none;
  }
  .svc-sticky-link.active {
    background: var(--navy-light);
    color: var(--white);
  }
  .svc-sticky-link.active .svc-sticky-num {
    color: var(--white);
    opacity: 0.8;
  }
  .svc-sticky-link:hover {
    background: rgba(18,47,81,0.05);
    border-radius: 100px;
  }
  .svc-sticky-link.active:hover {
    background: var(--navy-light);
  }

  /* Modules */
  .svc-module {
    padding: 64px 20px;
  }
  .svc-module-header {
    margin-bottom: 40px;
  }

  /* Module 1 — Mobile: stack vertically */
  .m1-split {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 64px 20px;
  }
  .m1-left {
    position: relative;        /* un-sticky on mobile */
    top: auto;
  }
  .m1-image-card { min-height: 320px; border-radius: 20px; }
  .m1-image-title { font-size: 28px; }
  .m1-step-card { padding: 24px; margin-bottom: 16px; }
  .m1-step { grid-template-columns: 36px 1fr; gap: 14px; }
  .m1-step-indicator { padding-top: 24px; }
  .m1-step-num { font-size: 0.95rem; }

  /* Module 2 — Mobile: single column stack */
  .m2-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 64px 20px 0;
  }
  .m2-title-card { min-height: 200px; border-radius: 20px; }
  .m2-image-title { font-size: 26px; }
  .m2-card { padding: 24px; }
  #mod-brand .svc-module-cta { padding: 32px 20px 40px; }

  /* Module 3 — Mobile: stack vertically (image card on top) */
  .m3-split {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 64px 20px;
  }
  .m3-right {
    position: relative;
    top: auto;
    order: -1;               /* image card moves to top on mobile */
  }
  .m3-image-card { min-height: 320px; border-radius: 20px; }
  .m3-image-title { font-size: 28px; }
  .m3-step-card { padding: 24px; margin-bottom: 16px; }
  .m3-step { grid-template-columns: 36px 1fr; gap: 14px; }
  .m3-step-indicator { padding-top: 24px; }
  .m3-step-num { font-size: 0.95rem; }

}
