/* ===========================================
   BRUTALIST TESTIMONIAL LANDING PAGE
   Reads all data from data.json
   =========================================== */

/* --- RESET & BASE --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #1a1a1a;
  --white: #f5f0e8;
  --cream: #ede7d9;
  --yellow: #e8c840;
  --red: #c0392b;
  --border: 3px solid var(--black);
  --border-thick: 5px solid var(--black);
  --shadow: 6px 6px 0 var(--black);
  --shadow-sm: 4px 4px 0 var(--black);
  --font-mono: 'Space Mono', 'Courier New', Courier, monospace;
  --font-sans: 'Inter', Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--white);
  color: var(--black);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--yellow);
  color: var(--black);
}

/* --- HERO --- */
.hero {
  background-color: var(--black);
  color: var(--white);
  border-bottom: var(--border-thick);
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

/* --- HERO TOP BAR --- */
.hero-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 16px 24px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-slot {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(245, 240, 232, 0.3);
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-placeholder {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: #888;
  letter-spacing: 1px;
}

.company-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* --- HERO CONTENT --- */
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--black);
  background: var(--yellow);
  padding: 6px 20px;
  border: 2px solid var(--black);
  margin-bottom: 32px;
  text-transform: uppercase;
}

.hero-headline {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding: 8px;
}

.hero-subheadline {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  line-height: 1.6;
  color: #b0a99a;
  max-width: 620px;
  margin: 0 auto;
  padding: 8px;
}

.hero-arrow {
  font-size: 2rem;
  margin-top: 40px;
  animation: bounce 2s infinite;
  color: var(--yellow);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* --- TESTIMONIAL GRID --- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 0;
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- TESTIMONIAL CARD --- */
.testi-card {
  position: relative;
  border: var(--border);
  border-top: none;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.testi-card:nth-child(-n+3) {
  border-top: var(--border);
}

.testi-card:hover {
  z-index: 2;
}

.card-number {
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  color: var(--white);
  background: var(--black);
  padding: 2px 10px;
  z-index: 3;
  letter-spacing: 1px;
}

/* --- VIDEO SLOT --- */
.video-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #2a2a2a;
  overflow: hidden;
  border-bottom: var(--border);
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.video-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1px;
}

/* --- CARD BODY --- */
.card-body {
  padding: 20px 18px 22px;
  flex: 1;
}

.caption-text {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--black);
  white-space: pre-wrap;
  word-break: break-word;
}

/* --- EMPTY STATE --- */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  font-family: var(--font-mono);
  color: #999;
  font-size: 14px;
  letter-spacing: 1px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

/* --- FOOTER --- */
.footer {
  border-top: var(--border-thick);
  background: var(--black);
  color: var(--white);
  padding: 28px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-left {
  padding: 4px 8px;
}

.footer-right {
  color: #666;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero {
    padding: 70px 20px 40px;
  }

  .hero-topbar {
    position: relative;
    padding: 16px 0 10px;
  }

  .testi-grid {
    grid-template-columns: 1fr;
  }

  .testi-card {
    border-top: var(--border) !important;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .hero-headline {
    letter-spacing: -1px;
  }
}
