/* ==============================================
   Work Detail Specific Styles
   ============================================== */

/* ---- Global Adjustments for Detail Page ---- */
.site-header--detail {
  position: absolute;
  /* Overlays on hero */
  width: 100%;
  z-index: 100;
  background: transparent;
}

/* ---- Hero Section ---- */
.wd-hero {
  position: sticky;
  top: 0;
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding-bottom: var(--space-xl);
  z-index: -1;
}

.wd-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.wd-hero__bg img {
  width: 100%;
  height: 100%;
  /* object-fit: cover;
  object-position: center; */
}

/* Folder tab card */
.wd-hero__card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 560px;
  /* Narrower to match design */
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  /* clip-path to create the folder tab shape */
  clip-path: polygon(0% 0%, 40% 0%, 50% 10%, 100% 10%, 100% 100%, 0 100%);
  display: flex;
  flex-direction: column;
  padding: 0rem 2rem 2rem;
  border-radius: var(--radius-lg);
  margin-top: 15vh;
  gap: 2rem;
}

.wd-hero__category {
  color: var(--color-accent);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  margin-bottom: 2rem;
  margin-top: 1rem;
}

.wd-hero__title {
  color: #fff;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1;
  font-weight: var(--fw-bold);
  margin-bottom: 0.2rem;
}

.wd-hero__subtitle {
  color: #ddd;
  font-size: var(--text-lg);
  margin-bottom: 3rem;
}

.wd-hero__desc {
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.3;
  margin-bottom: 4rem;
  max-width: 25ch;
}

.wd-hero__timeline {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.wd-hero__timeline-label {
  color: #fff;
  font-size: var(--text-sm);
  line-height: 1.2;
}

.wd-hero__timeline-divider {
  width: 1px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.3);
}

.wd-hero__timeline-value {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.wd-hero__timeline-number {
  color: var(--color-accent);
  font-size: 3rem;
  font-weight: var(--fw-medium);
  line-height: 1;
}

.wd-hero__timeline-unit {
  color: var(--color-accent);
  font-size: var(--text-sm);
}

/* ---- Overview Section ---- */
.wd-overview {
  position: relative;
  z-index: 20;
  background-color: #f2f2f2;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  padding-block: var(--space-3xl);
}

.wd-overview__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-2xl);
}

.wd-overview__heading {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.wd-overview__heading-black {
  color: #111;
  font-weight: var(--fw-medium);
}

.wd-overview__heading-teal {
  color: #0d6178;
  font-weight: var(--fw-bold);
}

.wd-overview__graphic {
  width: clamp(80px, 15vw, 150px);
}

.wd-overview__graphic img {
  width: 100%;
  height: auto;
}

.wd-overview__divider {
  border: none;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.1);
  margin-bottom: var(--space-xl);
}

.wd-overview__bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wd-overview__scope-label {
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  color: #111;
}

.wd-overview__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  max-width: 620px;
}

.wd-section-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1.1;
  font-weight: var(--fw-medium);
  letter-spacing: -0.02em;
}

.wd-section-title--center {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.wd-tag {
  display: inline-flex;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: var(--text-sm);
  color: #333;
  font-weight: var(--fw-medium);
}

.wd-tag--dark {
  background-color: #111;
  color: #fff;
  border-color: #111;
}

/* ---- Split Layout Sections (Challenge & Idea) ---- */
.wd-challenge {
  background-color: #fff;
  padding-block: var(--space-3xl);
}

.wd-idea {
  background-color: #0b5e78;
  /* Deep teal/blue */
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  padding-block: var(--space-3xl);
}

.wd-header-row {
  /* display: flex;
  align-items: flex-end; */
  margin-bottom: var(--space-2xl);
  width: 100%;

}

.wd-header-row--idea {
  align-items: center;
}

.wd-header-row__title {
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.1;
  font-weight: var(--fw-medium);
  white-space: nowrap;
  margin-right: 2rem;
  padding-bottom: 25px;
}

.wd-header-row__title--grey {
  color: #999;
}

.wd-header-row__title--white {
  color: #fff;
}

.wd-header-row__line {
  flex-grow: 1;
  height: 1px;
}

.wd-header-row__line--orange {
  background-color: var(--color-accent);
}

.wd-header-row__line--white {
  background-color: rgba(255, 255, 255, 0.3);
}

.wd-split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.wd-text-block {
  font-size: var(--text-base);
  line-height: 1.6;
  color: #111;
}

.wd-text-block--white {
  color: #fff;
}

.wd-idea__media {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: var(--space-2xl);
}

.wd-idea__media img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Solution & Mockups ---- */
.wd-solution-intro {
  background-color: #f2f2f2;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  padding-block: var(--space-3xl);
}

.wd-solution-header {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-3xl);
  width: 100%;
  gap: 25px;
}

.wd-solution-header__label {
  color: #999;
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.1;
  font-weight: var(--fw-medium);
  white-space: nowrap;
  margin-right: 2rem;
}

.wd-solution-header__line {
  flex-grow: 1;
  height: 1px;
  background-color: var(--color-accent);
}

.wd-solution__headline {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.1;
  color: var(--color-black);
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-2xl);
}

.wd-solution__logo-mark {
  max-width: 500px;
  /* margin-left: auto;
  margin-right: auto; */
}

.wd-solution__logo-mark img {
  width: 100%;
  height: auto;
  display: block;
}

.wd-solution {
  background-color: #f2f2f2;
  padding-bottom: var(--space-3xl);
}

.wd-mockups {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-inline: 1.5rem;
}

.wd-mockups__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.wd-mockups__grid .wd-mockup-item {
  border-radius: 0;
  display: flex;
  flex-direction: column;
}

.wd-mockup-item {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.wd-mockup-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.wd-mockups__grid .wd-mockup-item img {
  height: 100%;
  flex: 1;
}

/* Responsive Overrides */
@media (max-width: 768px) {

  .wd-scope__grid,
  .wd-split {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .wd-mockups__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .wd-hero__card {
    margin: 0 1rem;
    width: calc(100% - 2rem);
  }

  .wd-mockups {
    padding-inline: 1rem;
  }
  .wd-split-layout {
    display: block;
  }
}

/* ---- Bombay Chai Specific Colors ---- */
.bg-bombay-yellow {
  background-color: #ffaa33 !important;
}

.bg-bombay-brown {
  background-color: #522d1c !important;
}

.text-bombay-brown {
  color: #522d1c !important;
}

.text-bombay-white {
  color: #fff !important;
}

/* ---- Nutriventia Specific Colors ---- */
.bg-nutri-dark-green {
  background-color: #0f2712 !important;
}

.bg-nutri-light-green {
  background-color: #2ba25b !important;
}

.text-nutri-white {
  color: #fff !important;
}

/* ---- Prowiz Specific Colors ---- */
.bg-prowiz-blue {
  background-color: #0f4874 !important;
}

.bg-prowiz-gray {
  background-color: #6e6e6e !important;
}

.bg-prowiz-dark {
  background-color: #000000 !important;
}

.bg-prowiz-diagonal {
  background: linear-gradient(165deg, #0f4874 65%, #2a2a2a 65%) !important;
}