/* ============================================
   Data Project Services — Placeholder Site
   Aesthetic: Refined geometric / business card
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=Instrument+Serif:ital@0;1&display=swap');

/* --- Design Tokens --- */
:root {
  --color-ink: #1a1a2e;
  --color-ink-light: #3d3d5c;
  --color-ink-muted: #6b6b8a;
  --color-surface: #f8f7f4;
  --color-surface-warm: #f0efe9;
  --color-accent: #2d5a7b;
  --color-accent-light: #3a7ca5;
  --color-rule: #d4d2c8;
  --color-rule-light: #e8e6de;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  --max-width: 720px;
}

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

/* --- Base --- */
html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-ink);
  background-color: var(--color-surface);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Geometric background texture --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(45, 90, 123, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(45, 90, 123, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* --- Grid lines decoration --- */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 90vw);
  height: 100%;
  border-left: 1px solid var(--color-rule-light);
  border-right: 1px solid var(--color-rule-light);
  pointer-events: none;
  z-index: 0;
}

/* --- Layout --- */
.container {
  position: relative;
  z-index: 1;
  width: min(var(--max-width), 90vw);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* --- Header --- */
.site-header {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-lg);
  text-align: left;
}

.site-header::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background-color: var(--color-accent);
  margin-top: var(--space-md);
}

.company-name {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

.tagline {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--color-ink-muted);
  margin-top: var(--space-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --- Main content --- */
main {
  flex: 1;
}

.services {
  padding-bottom: var(--space-xl);
}

.services-intro {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-ink-light);
  max-width: 540px;
}

.services-detail {
  margin-top: var(--space-md);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-ink-muted);
  line-height: 1.8;
  max-width: 480px;
}

/* --- Service list --- */
.service-list {
  list-style: none;
  margin-top: var(--space-md);
  display: grid;
  gap: var(--space-xs);
}

.service-list li {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-ink-light);
  padding-left: 1.5rem;
  position: relative;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border: 1px solid var(--color-accent);
  transform: rotate(45deg);
}

/* --- Divider --- */
.divider {
  border: none;
  height: 1px;
  background: var(--color-rule);
  margin: var(--space-lg) 0;
}

/* --- Footer --- */
.site-footer {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-rule);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.contact-email {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.contact-email:hover {
  color: var(--color-accent-light);
}

.copyright {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--color-ink-muted);
  letter-spacing: 0.02em;
}

/* --- Entrance animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-header {
  animation: fadeUp 0.6s ease-out both;
}

.services {
  animation: fadeUp 0.6s ease-out 0.15s both;
}

.site-footer {
  animation: fadeUp 0.6s ease-out 0.3s both;
}

/* --- Responsive --- */
@media (max-width: 480px) {
  html {
    font-size: 16px;
  }

  .site-header {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-md);
  }

  .footer-content {
    flex-direction: column;
    gap: var(--space-xs);
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .site-header,
  .services,
  .site-footer {
    animation: none;
  }
}

/* --- Print --- */
@media print {
  body::before,
  body::after {
    display: none;
  }

  .site-header,
  .services,
  .site-footer {
    animation: none;
  }
}
