/* ══════════════════════════════════════════════════════════════
   PERMANENTIE.BE — TIJDELIJKE HUISVESTING
   Requires perm-global.css loaded first.
   ══════════════════════════════════════════════════════════════ */

/* ── COMPACT EYEBROW-STRIP HERO (photo overlay) ── */
.th-hero {
  position: relative;
  min-height: 62vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background: var(--perm-container);
}

/* Full-cover background photo */
.th-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
}

/* Dark gradient overlay for legibility */
.th-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(13,21,32,0.30) 0%,
      rgba(13,21,32,0.55) 35%,
      rgba(13,21,32,0.82) 70%,
      rgba(13,21,32,0.96) 100%),
    radial-gradient(ellipse 60% 50% at 15% 30%, rgba(44,80,110,0.22) 0%, transparent 65%);
}

/* Eyebrow */
.th-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--perm-blue);
  opacity: .85;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: fadeUp 0.6s ease both;
}
.th-hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--perm-blue);
  opacity: .5;
}

/* Central content block */
.th-hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(32px, 5vw, 60px) var(--gutter) 28px;
}

.th-hero-title {
  font-size: clamp(40px, 5.5vw, 78px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  animation: fadeUp 0.7s 0.1s ease both;
}

.th-hero-sub {
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.8;
  color: rgba(245,239,235,0.75);
  max-width: 54ch;
  margin-bottom: 28px;
  animation: fadeUp 0.7s 0.2s ease both;
}

.th-hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.3s ease both;
}

/* Stat strip at the very bottom */
.th-hero-stats {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(200,217,230,0.15);
  background: rgba(13,21,32,0.65);
  backdrop-filter: blur(4px);
}
.th-hero-stat {
  padding: 16px 24px;
  border-right: 1px solid rgba(200,217,230,0.12);
}
.th-hero-stat:last-child { border-right: none; }
.th-stat-val {
  font-family: var(--font-wordmark);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: #F5EFEB;
  line-height: 1;
}
.th-stat-val sup {
  font-size: .5em;
  vertical-align: super;
  color: var(--perm-blue);
}
.th-stat-lbl {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .18em;
  color: rgba(245,239,235,0.75);
  text-transform: uppercase;
  margin-top: 6px;
}

/* ── USE CASES GRID ── */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(200,217,230,0.12);
  margin-top: clamp(32px, 5vw, 56px);
}
.usecase-card {
  padding: clamp(28px, 4vw, 44px);
  border-right: 1px solid rgba(200,217,230,0.12);
  position: relative;
  overflow: hidden;
}
.usecase-card:last-child { border-right: none; }
.usecase-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--perm-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms var(--ease-out);
}
.usecase-card:hover::before { transform: scaleX(1); }
.usecase-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--perm-blue);
  margin-bottom: 16px;
}
.usecase-icon {
  font-family: var(--font-mono);
  font-size: 28px;
  color: rgba(200,217,230,.2);
  margin-bottom: 20px;
  line-height: 1;
}
.usecase-title {
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 700;
  color: #F5EFEB;
  margin-bottom: 12px;
  line-height: 1.3;
}
.usecase-body {
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.75;
  color: rgba(245,239,235,0.75);
}

/* ── PROCESS STEPS ── */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid rgba(200,217,230,0.12);
  margin-top: clamp(32px, 5vw, 56px);
}
.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0;
  border-bottom: 1px solid rgba(200,217,230,0.1);
}
.process-step:last-child { border-bottom: none; }
.process-step-num {
  padding: 32px 24px;
  border-right: 1px solid rgba(200,217,230,0.1);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: rgba(200,217,230,0.75);
  padding-top: 36px;
}
.process-step-content {
  padding: clamp(24px, 3.5vw, 36px) clamp(24px, 3.5vw, 40px);
}
.process-step-title {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 700;
  color: #F5EFEB;
  margin-bottom: 10px;
}
.process-step-body {
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.75;
  color: rgba(245,239,235,0.75);
}
.process-step-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--perm-blue);
  border: 1px solid rgba(200,217,230,.25);
  padding: 4px 10px;
  margin-top: 12px;
  text-transform: uppercase;
}

/* ── NOODDORP REFERENTIE BLOK ── */
.th-nooddorp {
  border: 1px solid rgba(200,217,230,0.12);
  overflow: hidden;
}

/* Bovenste rij: foto links + stats rechts */
.th-nooddorp-top {
  display: grid;
  grid-template-columns: min(800px, 70%) 1fr;
  border-bottom: 1px solid rgba(200,217,230,0.1);
}

.th-nooddorp-photo {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(200,217,230,0.2);
  outline: 1px solid rgba(200,217,230,.07);
  outline-offset: 7px;
}
.th-nooddorp-photo img {
  width: 100%;
  height: 100%;
  min-height: clamp(320px, 38vw, 500px);
  object-fit: cover;
  object-position: center 28%;
  display: block;
  filter: grayscale(12%) contrast(1.04);
}
.th-nooddorp-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(44,62,80,.3) 0%, transparent 60%);
  pointer-events: none;
}
.th-nooddorp-tag {
  position: absolute;
  top: 20px; left: 20px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .2em;
  color: #F5EFEB;
  text-transform: uppercase;
  background: rgba(6,10,15,.78);
  border: 1px solid rgba(200,217,230,.25);
  padding: 6px 11px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* Stats — rechterkolom naast de foto */
.th-nooddorp-stats {
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(200,217,230,0.1);
}
.th-nooddorp-stat {
  flex: 1;
  padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 36px);
  border-bottom: 1px solid rgba(200,217,230,0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.th-nooddorp-stat:last-child { border-bottom: none; }
.th-nd-val {
  font-family: var(--font-wordmark);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: #F5EFEB;
  line-height: 1;
}
.th-nd-lbl {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .18em;
  color: rgba(245,239,235,0.75);
  text-transform: uppercase;
  margin-top: 8px;
}

/* Onderste rij: tekst + feiten over volle breedte */
.th-nooddorp-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.th-nooddorp-main {
  padding: clamp(32px, 4vw, 56px);
  border-right: 1px solid rgba(200,217,230,0.1);
  display: flex;
  flex-direction: column;
}
.th-nooddorp-facts {
  padding: clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── FOTOGALERIJ ── */
.th-gallery-section { padding: 0; }
.th-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 2px;
}
.th-gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--perm-navy);
}
.th-gallery-item--wide {
  grid-column: 1 / -1;
}
.th-gallery-item img {
  width: 100%;
  height: clamp(220px, 30vw, 420px);
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: grayscale(20%) contrast(1.04);
  transition: transform 600ms var(--ease-out), filter 600ms;
}
.th-gallery-item--wide img {
  height: clamp(280px, 40vw, 540px);
}
.th-gallery-item:hover img {
  transform: scale(1.03);
  filter: grayscale(0%) contrast(1.04);
}
.th-gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 20px;
  background: linear-gradient(to top, rgba(6,10,15,0.80) 0%, transparent 100%);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(245,239,235,0.75);
}

/* ── SPECIFICATIES TABLE ── */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(200,217,230,0.12);
  margin-top: clamp(32px, 5vw, 56px);
}
.spec-table th, .spec-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid rgba(200,217,230,0.08);
}
.spec-table th {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(245,239,235,0.75);
  font-weight: 400;
  background: rgba(6,10,15,.4);
}
.spec-table td {
  font-size: clamp(13px, 1.3vw, 14px);
  color: rgba(245,239,235,0.75);
}
.spec-table tr:last-child td { border-bottom: none; }
.spec-table tr:hover td { background: rgba(134,169,185,.03); }
.spec-val {
  font-family: var(--font-display);
  font-weight: 700;
  color: #F5EFEB;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .th-hero { min-height: 58vh; max-height: none; }
  .th-hero-eyebrow { font-size: 8px; letter-spacing: .16em; }
  .usecases-grid { grid-template-columns: 1fr; }
  .usecase-card { border-right: none; border-bottom: 1px solid rgba(200,217,230,0.12); }
  .usecase-card:last-child { border-bottom: none; }
}
@media (max-width: 768px) {
  .th-hero { min-height: auto; max-height: none; }
  .th-hero-photo { object-position: 60% 40%; }
  .th-hero-eyebrow { display: none; }
  .th-hero-stats { grid-template-columns: 1fr 1fr; }
  .th-hero-stat:nth-child(2) { border-right: none; }
  .th-hero-stat:nth-child(3) { grid-column: span 2; border-top: 1px solid rgba(200,217,230,0.12); border-right: none; }
  .th-hero-ctas .btn-primary,
  .th-hero-ctas .btn-ghost { width: 100%; justify-content: center; }
  .process-step { grid-template-columns: 52px 1fr; }
  .process-step-num { padding-left: 12px; }
  .spec-table { font-size: 13px; }
  .spec-table th, .spec-table td { padding: 14px 16px; }
  .th-gallery-grid { grid-template-columns: 1fr; }
  .th-gallery-item--wide { grid-column: auto; }
  .th-nooddorp-top { grid-template-columns: 1fr; }
  .th-nooddorp-stats { flex-direction: row; border-left: none; border-top: 1px solid rgba(200,217,230,0.1); }
  .th-nooddorp-stat { border-bottom: none; border-right: 1px solid rgba(200,217,230,0.1); }
  .th-nooddorp-stat:last-child { border-right: none; }
  .th-nooddorp-body { grid-template-columns: 1fr; }
  .th-nooddorp-main { border-right: none; border-bottom: 1px solid rgba(200,217,230,0.1); }
  .cta-section { overflow: hidden; }
}
@media (max-width: 480px) {
  .th-hero-stats { grid-template-columns: 1fr; }
  .th-hero-stat { border-right: none; border-bottom: 1px solid rgba(200,217,230,0.10); }
  .th-hero-stat:nth-child(3) { grid-column: auto; border-top: none; }
  .th-nooddorp-stats { flex-direction: column; }
  .th-nooddorp-stat { border-right: none; border-bottom: 1px solid rgba(200,217,230,0.1); }
  .th-nooddorp-stat:last-child { border-bottom: none; }
  .spec-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cta-bg-word { display: none; }
}

/* ── CTA position anchor for bg-word ─â