/* ---------------------------------------------
   DiPStrategy -- Corporate Website Page
   style/corporate-website.css
   --------------------------------------------- */

/* --- TOP SECTION: hero + body, satu background navy menerus --- */
.cw-top-section {
  position: relative;
  width: 100%;
  background-color: var(--navy);
  overflow: hidden;
  padding-bottom: 80px;
}

.cw-top-pattern {
  position: absolute;
  inset: 0;
  background-image: url('../assets/pattern-01.png');
  background-repeat: repeat;
  background-size: auto;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.cw-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.82) 0%,
    rgba(0,0,0,0.55) 40%,
    rgba(0,0,0,0.15) 75%,
    rgba(0,0,0,0) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* -- Hero image: bottom left -- */
.cw-hero-img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50%;
  height: auto;
  z-index: 5;
  pointer-events: none;
  object-fit: contain;
  object-position: bottom left;
}

/* -- Hero content -- */
.cw-hero-content {
  position: relative;
  z-index: 10;
  padding: 180px 56px 60px;
  padding-left: calc(30% + 56px);
}

.cw-accent-line {
  width: 160px;
  height: 4px;
  background: var(--lime);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s forwards;
}

.cw-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.6s 0.3s forwards;
}

.cw-label-star {
  width: 14px; height: 14px;
  animation: spin 12s linear infinite;
  flex-shrink: 0;
}

.cw-headline {
  font-family: 'Montserrat', sans-serif;
  line-height: 0.95;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.7s 0.4s forwards;
}

.cw-headline .hl-light {
  display: block;
  font-weight: 200;
  font-size: clamp(32px, 3vw, 72px);
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
}

.cw-headline .hl-bold {
  display: block;
  font-weight: 900;
  font-size: clamp(36px, 4.5vw, 80px);
  letter-spacing: -0.04em;
  color: #fff;
  text-transform: uppercase;
}

.cw-subtext {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.7s 0.5s forwards;
}

.cw-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  padding: 14px 28px;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  opacity: 0;
  animation: fadeUp 0.7s 0.6s forwards;
}

.cw-cta:hover {
  background: #DEFF2D;
  border-color: #DEFF2D;
  color: #093564;
}

/* -- Body part (menerus dari hero) -- */
.cw-body-inner {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
  align-items: start;
  padding: 60px 56px 0;
  padding-left: calc(30% + 56px);
}

.cw-body-spacer { /* reserved 30% kiri */ }

.cw-body-text {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}

.cw-body-text:last-child { margin-bottom: 0; }

.cw-statement {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: clamp(20px, 2.5vw, 32px);
  line-height: 1.4;
  color: #fff;
  letter-spacing: -0.01em;
}

/* --- GROWTH PLATFORM SECTION --- */
.cw-gp-section {
  position: relative;
  background-color: #f0f0e6;
  padding: 0;
  overflow: hidden;
  margin-top: 0;
}

.cw-gp-pattern {
  position: absolute; inset: 0;
  background-image: url('../assets/pattern-01.png');
  background-repeat: repeat;
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}

.cw-gp-layout {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 45% 1fr;
  align-items: center;
  min-height: 400px;
}

/* Left panel — pink background like reference */
.cw-gp-left {
  padding: 64px 56px;
  background: #E8357A;
  align-self: stretch;
  display: flex; flex-direction: column; justify-content: center;
}

.cw-gp-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Barlow', sans-serif;
  font-weight: 900; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.85); margin-bottom: 20px;
}

.cw-gp-star {
  width: 14px; height: 14px;
  animation: spin 12s linear infinite; flex-shrink: 0;
  stroke: rgba(255,255,255,0.7) !important;
}

.cw-gp-star g { stroke: rgba(255,255,255,0.7); }

.cw-gp-headline {
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
  font-size: clamp(30px, 4vw, 85px);
  line-height: 1.05; color: #fff;
  letter-spacing: -0.02em; margin-bottom: 20px;
}

.cw-gp-headline strong { font-weight: 900; }

.cw-gp-subtext {
  font-family: 'Barlow', sans-serif;
  font-weight: 300; 
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.25; color: white;
}

/* Right: grid */
.cw-gp-right {
  position: relative;
}

.cw-gp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

/* Color card */
.cw-gp-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: default;
  background: var(--card-color);
}

/* Front: solid color + label */
.cw-gp-card-front {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 24px;
  z-index: 1;
  transition: opacity 0.8s ease;
}

.cw-gp-card-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(18px, 1.8vw, 26px);
  color: var(--card-text);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Back: image + overlay + desc */
.cw-gp-card-back {
  position: absolute; inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 2.5s ease;
}

.cw-gp-card-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.cw-gp-card-back-inner {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(4,23,46,0.92) 0%,
    rgba(4,23,46,0.6) 50%,
    rgba(4,23,46,0.2) 100%
  );
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.cw-gp-card-back-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900; font-size:24px;
  color: #DEFF2D; letter-spacing: -0.01em;
  margin-bottom: 8px; line-height: 1.2;
}

.cw-gp-card-back-desc {
  font-family: 'Barlow', sans-serif;
  font-weight: 300; font-size: 12px;
  line-height: 1.65; color: rgba(255,255,255,0.75);
}

/* Hover state: fade in cepat, fade out lambat (via base transition di atas) */
.cw-gp-card:hover .cw-gp-card-front { opacity: 0; transition: opacity 0.2s ease; }
.cw-gp-card:hover .cw-gp-card-back  { opacity: 1; transition: opacity 0.2s ease; }

/* --- SAMPLE WORK SECTION --- */
.cw-sw-section {
  position: relative;
  background-color: #f0f0e6;
  padding: 96px 56px;
  overflow: hidden;
}

.cw-sw-pattern {
  position: absolute; inset: 0;
  background-image: url('../assets/pattern-01.png');
  background-repeat: repeat;
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}

.cw-sw-inner {
  position: relative;
  z-index: 1;
  max-width: 100%;
}

/* -- Section header -- */
.cw-sw-header {
  text-align: center;
  margin-bottom: 32px;
}

.cw-sw-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #093564;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.cw-sw-star {
  width: 14px; height: 14px;
  animation: spin 12s linear infinite;
  flex-shrink: 0;
}

.cw-sw-subtitle {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 2.5vw, 85px);
  color: #093564;
  letter-spacing: -0.02em;
}

/* -- Intro text -- */
.cw-sw-intro {
  margin: 0 auto;
  padding: 0 10% 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid rgba(9,53,100,0.1);
  text-align: center;
}

.cw-sw-intro-text {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: clamp(15px 1.3vw 18px);
  line-height: 1.25;
  color: rgba(9,53,100,0.65);
  margin-bottom: 16px;
}

.cw-sw-intro-text:last-child { margin-bottom: 0; }

/* -- Carousel -- */
.cw-sw-carousel {
  position: relative;
  overflow: hidden;
}

.cw-sw-track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* -- Card -- */
.cw-sw-card {
  flex: 0 0 calc((100% - 48px) / 3);
  cursor: pointer;
  position: relative;
}

.cw-sw-card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 10px;
  /*background: #d0d5dd;*/
  position: relative;
}

.cw-sw-card-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.cw-sw-card:hover .cw-sw-card-img {
  transform: scale(1.04);
  filter: brightness(0.85);
}

/* Hover overlay */
.cw-sw-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.cw-sw-card:hover .cw-sw-card-overlay { opacity: 1; }

.cw-sw-card-overlay svg {
  width: 40px; height: 40px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

/* Caption */
.cw-sw-card-caption {
  padding: 12px 4px 0;
}

.cw-sw-card-client {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #093564;
  display: block;
  margin-bottom: 2px;
}

.cw-sw-card-project {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 12px;
  color: rgba(9,53,100,0.55);
}

/* -- Dots -- */
.cw-sw-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.cw-sw-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(9,53,100,0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, width 0.3s;
}

.cw-sw-dot.active {
  background: #093564;
  width: 20px;
  border-radius: 3px;
}

/* -- Lightbox -- */
.cw-sw-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cw-sw-lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.cw-sw-lb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4,23,46,0.92);
  backdrop-filter: blur(8px);
}

.cw-sw-lb-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 90vw;
  border-radius: 12px;
  overflow: hidden;
  transform: scale(0.95) translateY(16px);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}

.cw-sw-lightbox.open .cw-sw-lb-content {
  transform: scale(1) translateY(0);
}

.cw-sw-lb-img {
  width: 100%;
  max-height: 75vh;
  object-fit: cover;
  display: block;
}

.cw-sw-lb-caption {
  background: #05213F;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cw-sw-lb-client {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  display: block;
  margin-bottom: 2px;
}

.cw-sw-lb-project {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.cw-sw-lb-close {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.08);
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: rgba(255,255,255,0.6);
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.cw-sw-lb-close:hover { background: rgba(255,255,255,0.15); color: #fff; }
.cw-sw-lb-close svg { width: 15px; height: 15px; }

/* -- Responsive -- */
@media (max-width: 900px) {
  .cw-sw-section { padding: 64px 24px; }
  .cw-sw-intro   { padding: 0 4% 40px; }
  .cw-sw-card    { flex: 0 0 calc((100% - 24px) / 2); }
}

@media (max-width: 480px) {
  .cw-sw-card { flex: 0 0 100%; }
}


@media (max-width: 900px) {
  .cw-hero-img      { display: none; }
  .cw-hero-content  { padding: 140px 24px 40px; }
  .cw-body-inner    { grid-template-columns: 1fr; padding: 48px 24px 0; gap: 32px; }
  .cw-gp-section    { padding: 64px 0; }
  .cw-gp-layout     { grid-template-columns: 1fr; }
  .cw-gp-left       { padding: 0 24px 40px; }
  .cw-gp-grid       { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .cw-gp-grid { grid-template-columns: 1fr; }
}
