/* ========================================================
   HUB INTERFACE - SINGLE PROJECT CASE STUDY STYLES
   Figma Source: Project — Secure me (Frame 127:167 / 127:168)
   Inherits & complements styles-home.css
   Fluid responsive 16-24px edge-to-edge layout
   ======================================================== */

.project-single-main {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 5.56vw, 80px);
  position: relative;
  box-sizing: border-box;
}

/* ──────────────────────────────────────────────────────────
   1. HERO SECTION (Figma Node 127:169)
   White card container
   ────────────────────────────────────────────────────────── */
.project-hero-section {
  width: 100%;
  background: #FFFFFF;
  border-radius: 0;
  padding: clamp(100px, 9.72vw, 140px) var(--section-pad-x) clamp(48px, 5.56vw, 80px);
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6.94vw, 100px);
  box-sizing: border-box;
}

.project-hero-intro {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 4.44vw, 64px);
}

/* Hero Heading: Two Column Title & Intro Description */
.project-hero-heading {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(24px, 3.5vw, 50px);
}

.project-hero-title {
  font-family: var(--font-general);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(34px, 4.44vw, 64px);
  line-height: 105%;
  text-transform: uppercase;
  color: #000000;
  margin: 0;
  flex: 1 1 auto;
}

.project-hero-title .text-orange {
  color: #FF4000;
}

.project-intro-description {
  font-family: var(--font-general);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(14px, 1.04vw, 15px);
  line-height: 22px;
  color: #5B6871;
  max-width: 338px;
  margin: 0;
  flex-shrink: 0;
  padding-top: 6px;
}

/* Project Details Strip: 6 Columns (Figma Node 127:174) */
.project-details-strip {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(12px, 1.67vw, 24px);
  padding: 0 8px;
  box-sizing: border-box;
}

.project-detail-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.project-detail-label {
  font-family: var(--font-general);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(12px, 0.97vw, 14px);
  line-height: 22px;
  letter-spacing: 0.231px;
  text-transform: uppercase;
  color: #5B6871;
}

.project-detail-value {
  font-family: var(--font-general);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 135%;
  color: #000000;
  word-break: break-word;
}

/* Hero Cover Image (Figma Node 127:193) */
.project-cover-container {
  width: 100%;
}

.project-cover-box {
  width: 100%;
  aspect-ratio: 1362 / 640;
  min-height: 320px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #E5E7EB;
}

.project-cover-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-cover-box:hover img {
  transform: scale(1.02);
}

.project-cover-btn {
  position: absolute;
  left: clamp(16px, 2.22vw, 32px);
  bottom: clamp(16px, 2.22vw, 32px);
  z-index: 2;
  background: #1D1D1F;
  border-radius: 4px;
  padding: 10px 18px;
  text-decoration: none;
  color: #FF4000;
  font-family: var(--font-kaine);
  font-size: 18px;
  font-weight: 500;
  line-height: 24.3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.project-cover-btn:hover {
  background: #000000;
  transform: translateY(-2px);
  color: #FF5A1F;
}

/* Introduction Statement (Figma Node 127:196) */
.project-statement-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  box-sizing: border-box;
}

.project-statement-headline {
  width: 100%;
  max-width: 1362px;
  font-family: var(--font-general);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(24px, 2.78vw, 40px);
  line-height: 120%;
  color: #000000;
  margin: 0;
}

.project-statement-headline .text-italic-orange {
  font-family: var(--font-lora);
  font-style: italic;
  font-weight: 500;
  color: #FF4000;
}

.project-statement-sub {
  width: 100%;
  max-width: 444px;
  font-family: var(--font-general);
  font-style: normal;
  font-weight: 500;
  font-size: 15px;
  line-height: 22px;
  color: #5B6871;
  margin: 0;
}

/* ──────────────────────────────────────────────────────────
   2. PROCESS SECTION (Figma Node 127:199)
   Sits directly on grey background #ECEDEF
   ────────────────────────────────────────────────────────── */
.project-process-section {
  width: 100%;
  padding: 0 var(--section-pad-x);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 2.78vw, 40px);
  box-sizing: border-box;
}

.project-process-header {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.project-process-title {
  font-family: var(--font-general);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(28px, 2.78vw, 40px);
  line-height: 120%;
  color: #000000;
  margin: 0;
}

.project-process-subtitle {
  font-family: var(--font-general);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(16px, 1.39vw, 20px);
  line-height: 120%;
  color: #1E1E1E;
  max-width: 391px;
  margin: 0;
}

.project-process-subtitle .text-muted {
  color: #5B6871;
}

.project-process-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.39vw, 20px);
}

.project-process-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: clamp(28px, 2.78vw, 40px) clamp(18px, 1.67vw, 24px);
  min-height: 394px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-process-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

.project-process-step {
  font-family: var(--font-lora);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(32px, 2.78vw, 40px);
  line-height: 120%;
  color: #FF4000;
}

.project-process-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-process-step-title {
  font-family: var(--font-general);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(20px, 1.67vw, 24px);
  line-height: 120%;
  color: #000000;
  margin: 0;
}

.project-process-step-desc {
  font-family: var(--font-general);
  font-style: normal;
  font-weight: 500;
  font-size: 15px;
  line-height: 22px;
  color: #5B6871;
  margin: 0;
}

/* ──────────────────────────────────────────────────────────
   3. CONTENT & DETAILS SECTION (Figma Node 127:224 & 127:225)
   White card container
   ────────────────────────────────────────────────────────── */
.project-details-section {
  width: 100%;
  background: #FFFFFF;
  border-radius: 0;
  padding: clamp(60px, 5.56vw, 80px) var(--section-pad-x);
  display: flex;
  flex-direction: column;
  gap: clamp(64px, 8.33vw, 120px);
  box-sizing: border-box;
}

/* 3.1 Challenge (Figma Node 127:226) */
.project-challenge-row {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(28px, 4vw, 64px);
}

.project-challenge-title {
  font-family: var(--font-general);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(28px, 2.78vw, 40px);
  line-height: 120%;
  color: #000000;
  margin: 0;
}

.project-challenge-copy {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-challenge-lead {
  font-family: var(--font-general);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(16px, 1.39vw, 20px);
  line-height: 120%;
  color: #1E1E1E;
  margin: 0;
}

.project-challenge-lead .text-muted {
  color: #5B6871;
}

.project-challenge-body {
  font-family: var(--font-general);
  font-style: normal;
  font-weight: 500;
  font-size: 15px;
  line-height: 22px;
  color: #5B6871;
  margin: 0;
}

/* 3.2 Design Highlights (Figma Node 127:231) */
.project-highlights-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 2.78vw, 40px);
}

.project-highlights-title {
  font-family: var(--font-general);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(28px, 2.78vw, 40px);
  line-height: 120%;
  color: #000000;
  margin: 0;
}

.project-highlights-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 3.89vw, 56px);
}

/* Staggered Row 1 & 3: Large + Small */
.project-highlights-row {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(24px, 4.44vw, 64px);
  box-sizing: border-box;
}

.project-highlight-card-large {
  flex: 0 1 783px;
  width: 100%;
  max-width: 783px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-highlight-card-small {
  flex: 0 1 503px;
  width: 100%;
  max-width: 503px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Wide Centered Row 2 */
.project-highlight-row-wide {
  width: 100%;
  display: flex;
  justify-content: center;
}

.project-highlight-card-wide {
  width: 100%;
  max-width: 1123px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-highlight-img-box {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #E5E7EB;
}

.project-highlight-card-large .project-highlight-img-box {
  width: 100%;
  aspect-ratio: 783 / 583;
}

.project-highlight-card-small .project-highlight-img-box {
  width: 100%;
  max-width: 434px;
  aspect-ratio: 434 / 429;
}

.project-highlight-card-wide .project-highlight-img-box {
  width: 100%;
  aspect-ratio: 1123 / 583;
}

.project-highlight-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.project-highlight-img-box:hover img {
  transform: scale(1.02);
}

.project-highlight-info {
  width: 100%;
  max-width: 503px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.project-highlight-bullet {
  width: 8px;
  height: 8px;
  background: #FF4000;
  flex-shrink: 0;
  margin-top: 8px;
}

.project-highlight-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 483px;
}

.project-highlight-title {
  font-family: var(--font-general);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(20px, 1.67vw, 24px);
  line-height: 120%;
  color: #000000;
  margin: 0;
}

.project-highlight-desc {
  font-family: var(--font-general);
  font-style: normal;
  font-weight: 500;
  font-size: 15px;
  line-height: 22px;
  letter-spacing: 0.231px;
  color: #5B6871;
  margin: 0;
}

/* 3.3 Impact (Figma Node 127:271) */
.project-impact-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 3.89vw, 56px);
}

.project-impact-title {
  font-family: var(--font-general);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(28px, 2.78vw, 40px);
  line-height: 120%;
  color: #000000;
  margin: 0;
}

.project-impact-stats {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(16px, 2.22vw, 32px);
  box-sizing: border-box;
}

.project-impact-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  flex: 0 1 auto;
}

.project-impact-num {
  font-family: var(--font-general);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(28px, 2.5vw, 36px);
  line-height: 100%;
  color: #FF4000;
}

.project-impact-label {
  font-family: var(--font-general);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(12px, 0.97vw, 14px);
  line-height: 22px;
  letter-spacing: 0.231px;
  text-transform: uppercase;
  color: #5B6871;
  white-space: pre-line;
}

/* 3.4 Testimonial Quote (Figma Node 127:289) */
.project-testimonial-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(20px, 2.22vw, 32px);
  max-width: 1040px;
  margin: 0 auto;
  box-sizing: border-box;
}

.project-testimonial-quote {
  font-family: var(--font-general);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(22px, 2.78vw, 40px);
  line-height: 120%;
  color: #000000;
  margin: 0;
}

.project-testimonial-quote .text-italic-orange {
  font-family: var(--font-lora);
  font-style: italic;
  font-weight: 500;
  color: #FF4000;
}

.project-testimonial-author {
  font-family: var(--font-general);
  font-style: normal;
  font-weight: 500;
  font-size: 15px;
  line-height: 22px;
  color: #5B6871;
  margin: 0;
}

/* 3.5 Next Project (Figma Node 127:292) */
.project-next-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 2.78vw, 40px);
}

.project-next-header {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}

.project-next-title {
  font-family: var(--font-general);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(28px, 2.78vw, 40px);
  line-height: 120%;
  color: #000000;
  margin: 0;
}

.project-next-link {
  font-family: var(--font-general);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(15px, 1.11vw, 16px);
  line-height: 120%;
  color: #000000;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.project-next-link:hover {
  color: #FF4000;
  transform: translateX(3px);
}

.project-next-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-next-img-box {
  width: 100%;
  aspect-ratio: 1362 / 640;
  min-height: 280px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #E5E7EB;
}

.project-next-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-next-card:hover .project-next-img-box img {
  transform: scale(1.02);
}

.project-next-view-btn {
  position: absolute;
  left: clamp(16px, 1.76vw, 24px);
  bottom: clamp(16px, 1.76vw, 24px);
  z-index: 2;
  width: 137px;
  height: 44px;
  background: #1D1D1F;
  border-radius: 4px;
  text-decoration: none;
  color: #FF4000;
  font-family: var(--font-kaine);
  font-size: 18px;
  font-weight: 500;
  line-height: 24.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: capitalize;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}

.project-next-view-btn:hover {
  background: #000000;
  transform: scale(1.04);
}

.project-next-info {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.project-next-bullet {
  width: 8px;
  height: 8px;
  background: #FF4000;
  flex-shrink: 0;
  margin-top: 8px;
}

.project-next-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-next-item-title {
  font-family: var(--font-general);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(20px, 1.67vw, 24px);
  line-height: 120%;
  color: #000000;
  margin: 0;
}

.project-next-item-desc {
  font-family: var(--font-general);
  font-style: normal;
  font-weight: 500;
  font-size: 15px;
  line-height: 22px;
  color: #5B6871;
  margin: 0;
}

/* ──────────────────────────────────────────────────────────
   RESPONSIVE BREAKPOINTS (Fluid 16-24px Margins)
   ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .project-hero-heading {
    flex-direction: column;
    gap: 20px;
  }

  .project-intro-description {
    max-width: 100%;
  }

  .project-details-strip {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 24px;
  }

  .project-process-header {
    flex-direction: column;
    gap: 16px;
  }

  .project-process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-challenge-row {
    flex-direction: column;
    gap: 24px;
  }

  .project-challenge-copy {
    max-width: 100%;
  }

  .project-highlights-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .project-highlight-card-large,
  .project-highlight-card-small {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }

  .project-highlight-card-large .project-highlight-img-box,
  .project-highlight-card-small .project-highlight-img-box {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 10;
  }

  .project-impact-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 28px;
  }
}

@media (max-width: 768px) {
  .project-details-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-process-grid {
    grid-template-columns: 1fr;
  }

  .project-process-card {
    min-height: auto;
    gap: 24px;
  }

  .project-impact-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-highlight-card-wide .project-highlight-img-box {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 480px) {
  .project-details-strip {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }

  .project-impact-stats {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }
}
