/* 
   DIGITALE HANDARBEIT - Design System
   Style: Editorial, Minimal, Calm, Professional
*/

:root {
  /* Colors */
  --bg-color: #faf9f6; /* Off-white / Paper */
  --text-main: #2b2b2b; /* Charcoal */
  --text-muted: #666666;
  --accent: #4a4a4a; /* Slightly lighter charcoal */
  --line-color: #e0e0e0;
  --surface: #ffffff;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 2rem;
  --space-l: 4rem;
  --space-xl: 8rem;
  
  /* Layout */
  --container-width: 1200px;
  --radius: 4px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding: 0;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  display: block;
}

/* Utilities */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.section {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--line-color);
}

.section:last-child {
  border-bottom: none;
}

.grid {
  display: grid;
  gap: var(--space-m);
}

.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: var(--space-l) 0; }
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-sans); /* Keeping headings clean/sans for modern look, or use serif for editorial feel */
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: var(--space-s);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.5rem;
  font-weight: 600;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
}

p {
  margin-bottom: var(--space-m);
  color: var(--text-muted);
  font-size: 1.125rem;
}

.text-large {
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--text-main);
  max-width: 800px;
}

.label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-s);
  display: block;
  font-weight: 600;
}

/* Header */
.header {
  padding: var(--space-m) 0;
  position: sticky;
  top: 0;
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid var(--line-color);
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  gap: var(--space-m);
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Components */
.btn {
  display: inline-block;
  padding: var(--space-s) var(--space-m);
  background: var(--text-main);
  color: var(--bg-color);
  border-radius: var(--radius);
  font-weight: 500;
  border: 1px solid var(--text-main);
}

.btn:hover {
  background: transparent;
  color: var(--text-main);
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--line-color);
}

.btn-outline:hover {
  border-color: var(--text-main);
}

/* Service / Product Cards */
.card {
  padding: var(--space-m);
  background: var(--surface);
  border: 1px solid var(--line-color);
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border-color: var(--text-main);
}

.card-icon {
  margin-bottom: var(--space-s);
  font-size: 1.5rem;
}

.product-preview {
  aspect-ratio: 16/9;
  background: #eee;
  margin-bottom: var(--space-m);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.product-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--line-color);
  border-radius: 100px;
  font-size: 0.75rem;
  margin-bottom: var(--space-s);
}

/* Footer */
.footer {
  padding: var(--space-xl) 0;
  background: var(--text-main);
  color: var(--bg-color);
}

.footer p {
  color: #999;
}

.footer h3 {
  color: var(--bg-color);
}
