/* ==========================================================================
   SVENDESIGNS — HOME LAYOUT (mobile-first)
   Base rules target the smallest screen. Every @media query below adds
   capability for wider viewports — never subtracts for narrow ones.
   ========================================================================== */

/* — Nav — */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) 0;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  text-decoration: none;
  color: var(--color-ink);
}

/* — Hero — */
.hero {
  padding: var(--space-12) 0 var(--space-16);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
.hero-main .badge { margin-bottom: var(--space-4); }
.hero-main h1 {
  font-size: clamp(2.25rem, 7vw, var(--text-3xl));
  line-height: 1.05;
  margin-bottom: 0;
}
.hero-side { display: flex; flex-direction: column; gap: var(--space-6); }
.hero p.lead {
  font-size: var(--text-base);
  color: var(--color-slate);
  max-width: var(--line-max);
  margin: 0;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.hero-actions .btn { justify-content: center; }

/* — Proof panel (dark, textured, floating mockup) — */
.proof-panel {
  position: relative;
  overflow: hidden;
  background: var(--color-ink);
  padding: var(--space-16) 0;
}
.dot-texture {
  position: absolute;
  width: 220px;
  height: 220px;
  background-image: radial-gradient(rgba(245, 246, 243, 0.18) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  pointer-events: none;
}
.dot-texture--tl { top: -60px; left: -60px; }
.dot-texture--br { bottom: -60px; right: -60px; }

.proof-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
}

.mockup-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6);
  width: 100%;
  max-width: 560px;
}
.browser-chrome {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.chrome-dot {
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-line);
}
.chrome-url {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-slate);
  background: var(--color-paper);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-left: var(--space-2);
}

.wireframe { display: flex; flex-direction: column; gap: var(--space-3); }
.wf-nav, .wf-block, .wf-cta {
  background: var(--color-paper);
  border: var(--border-hairline);
  border-radius: var(--radius-sm);
}
.wf-nav { height: 20px; }
.wf-hero { position: relative; }
.wf-hero .wf-block { height: 70px; }
.wf-row { display: flex; gap: var(--space-3); }
.wf-row .wf-block { flex: 1; height: 48px; position: relative; }
.wf-cta { height: 32px; width: 40%; position: relative; }

.flag {
  position: absolute;
  top: -8px; right: -8px;
  width: 20px; height: 20px;
  border-radius: var(--radius-full);
  background: var(--color-signal);
  color: var(--color-paper);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  display: flex; align-items: center; justify-content: center;
}
.flag-static {
  position: static;
  flex-shrink: 0;
}

.findings {
  list-style: none;
  margin: 0; padding: 0;
  color: var(--color-on-dark);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
  max-width: 560px;
}
.findings li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
}

/* — Industries strip — */
.industries {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

/* — Services grid — */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.service-card h3 {
  font-size: var(--text-lg);
  margin: var(--space-3) 0 var(--space-2);
}
.service-card p {
  color: var(--color-slate);
  font-size: var(--text-sm);
}

/* — Process — */
.process-list {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
}
.process-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  border-top: var(--border-hairline);
}
.process-list .process-step:last-child { border-bottom: var(--border-hairline); }
.process-step .num {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-signal);
}
.process-step h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}
.process-step p {
  color: var(--color-slate);
  font-size: var(--text-sm);
  margin: 0;
}

/* — My Work — */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-8);
}
.work-item { min-width: 0; }
.work-img { width: 100%; display: block; border-radius: var(--radius-sm); }
.mockup-card.work-shot { max-width: none; padding: var(--space-4); }
.phone-frame {
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  max-width: 260px;
  margin: 0 auto;
}
.work-meta { margin-top: var(--space-4); }
.work-meta .badge { margin-bottom: var(--space-2); }
.work-meta h3 { font-size: var(--text-lg); margin: var(--space-2) 0; }
.work-meta p { color: var(--color-slate); font-size: var(--text-sm); margin: 0; }
.work-item--text {
  background: var(--color-surface);
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}
.work-item--text .work-meta { margin-top: 0; }
.work-shot-plain {
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.work-pair {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.work-pair > * { flex: 1; }
.contact-card {
  text-align: left;
  margin-top: var(--space-8);
}
.contact-card h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.site-footer {
  padding: var(--space-8) 0;
  color: var(--color-slate);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
}

/* ==========================================================================
   Tablet and up
   ========================================================================== */
@media (min-width: 700px) {
  .hero-actions { flex-direction: row; }
  .hero-actions .btn { justify-content: flex-start; }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .work-item--text, .work-item--wide { grid-column: 1 / -1; }
  .work-pair { flex-direction: row; }

  .process-step {
    grid-template-columns: 60px 200px 1fr;
    align-items: baseline;
  }
  .process-step h3 { margin-bottom: 0; }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: var(--space-12);
  }
  .hero-side { align-items: flex-start; }

  .proof-inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--space-16);
  }
}

/* ==========================================================================
   Desktop and up
   ========================================================================== */
@media (min-width: 1024px) {
  .hero { padding: var(--space-24) 0 var(--space-24); }
  .hero p.lead { font-size: var(--text-lg); }
}
