/* =============================================
   CARR-I-FREIGHT CASE STUDY — Problem Statement
   ============================================= */

.carr-problem-panel {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  height: 360px;
  border: 4px solid #000;
  background: #0a0a0a;
}

.carr-problem-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.carr-problem-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.28) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
  pointer-events: none;
}

.carr-problem-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  display: block;
}

.carr-problem-layout {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.carr-problem-card {
  position: absolute;
  top: 48px;
  left: 48px;
  width: calc(52% - 56px);
  max-width: 500px;
  background: rgba(30, 30, 30, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px 28px 24px 22px;
  pointer-events: auto;
}

.carr-problem-card .sym-problem-text {
  max-width: none;
}

.carr-problem-preview {
  position: absolute;
  right: 40px;
  bottom: 32px;
  width: 44%;
  max-width: 360px;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
  pointer-events: auto;
}

.carr-problem-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.carr-problem-logo {
  position: absolute;
  left: 48px;
  bottom: 28px;
  z-index: 3;
  width: 152px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

@media (max-width: 1024px) {
  .carr-problem-panel {
    height: auto;
    min-height: 360px;
  }

  .carr-problem-layout {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 40px 32px 100px;
    pointer-events: auto;
  }

  .carr-problem-card {
    position: static;
    width: 100%;
    max-width: none;
  }

  .carr-problem-preview {
    position: static;
    width: 100%;
    max-width: 100%;
    height: 180px;
  }

  .carr-problem-logo {
    left: 32px;
    bottom: 24px;
    width: 130px;
  }
}

@media (max-width: 768px) {
  .carr-problem-layout {
    padding: 32px 24px 88px;
  }

  .carr-problem-preview {
    height: 160px;
  }

  .carr-problem-logo {
    width: 112px;
    left: 24px;
  }
}

/* =============================================
   CARR-I-FREIGHT — Website Screen Showcase
   ============================================= */

.carr-screens {
  padding: 40px 0 64px;
  background: #ececec;
}

.carr-screens-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  max-width: 880px;
  margin: 0 auto;
}

.carr-screen-frame {
  border: 7px solid #000;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.carr-screen-viewport {
  overflow: hidden;
  aspect-ratio: 580 / 410;
}

.carr-screen-img {
  width: 100%;
  height: auto;
  display: block;
  transform: translateY(var(--crop-y, 0));
}

.carr-screen-img--hero {
  --crop-y: 0;
}

.carr-screen-img--about {
  --crop-y: -2%;
}

.carr-screen-img--partner {
  --crop-y: -35%;
}

.carr-screen-img--cta {
  --crop-y: -66%;
}

.carr-screen-img--services {
  --crop-y: -12%;
}

.carr-screen-img--gallery {
  --crop-y: -46%;
}

@media (max-width: 900px) {
  .carr-screens-grid {
    max-width: 640px;
    gap: 16px 18px;
  }

  .carr-screen-frame {
    border-width: 6px;
    border-radius: 22px;
  }
}

@media (max-width: 640px) {
  .carr-screens {
    padding: 32px 0 48px;
  }

  .carr-screens-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    gap: 16px;
  }
}

/* =============================================
   CARR-I-FREIGHT — Solution & Conclusion
   ============================================= */

.carr-mockup-frame {
  border: 7px solid #000;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  position: relative;
  z-index: 1;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.carr-mockup-viewport {
  overflow: hidden;
  aspect-ratio: 580 / 410;
}

.carr-mockup-viewport img {
  width: 100%;
  height: auto;
  display: block;
  transform: translateY(0);
}

.carr-solution-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
}

.carr-solution-glow {
  position: absolute;
  top: 6%;
  right: 8%;
  width: 260px;
  height: 260px;
  background: var(--red);
  opacity: 0.14;
  filter: blur(90px);
  border-radius: 50%;
  pointer-events: none;
}

.carr-solution-visual .carr-mockup-frame {
  width: 100%;
  max-width: 480px;
}

.carr-conclusion .sym-dark-panel {
  align-items: center;
  overflow: hidden;
  padding-bottom: 0;
  min-height: 380px;
}

.carr-conclusion-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  align-self: end;
  min-height: 280px;
  margin-bottom: -64px;
}

.carr-conclusion-visual .carr-mockup-frame {
  width: 100%;
  max-width: 420px;
  transform: translateY(6px);
}

@media (max-width: 1024px) {
  .carr-solution-visual .carr-mockup-frame {
    max-width: 400px;
  }

  .carr-conclusion-visual {
    margin-bottom: -48px;
  }

  .carr-conclusion-visual .carr-mockup-frame {
    max-width: 360px;
  }
}

@media (max-width: 768px) {
  .carr-solution-visual {
    min-height: 260px;
    margin-top: 12px;
  }

  .carr-solution-visual .carr-mockup-frame,
  .carr-conclusion-visual .carr-mockup-frame {
    max-width: 100%;
  }

  .carr-conclusion .sym-dark-panel {
    padding-bottom: 0;
  }

  .carr-conclusion-visual {
    margin-bottom: -36px;
    min-height: 220px;
  }

  .carr-conclusion .sym-dark-copy {
    padding-bottom: 48px;
  }
}

