/* J&co. — minimal professional theme */
:root {
  --bg: #0a0a0c;
  --bg-elevated: #121214;
  --text: #e8e6eb;
  --text-muted: #8c8896;
  --accent: #322f3e;
  --border: #2a2834;
  --highlight: #6b6579;
  --font: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--text);
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
}

.logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
  /* Slight lift so dark logo reads on dark background */
  filter: brightness(1.15) contrast(1.05);
}

.logo .logo-text {
  display: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

/* Main */
main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

/* Hero */
.hero {
  margin-bottom: 5rem;
}

.hero-logo {
  margin-bottom: 2rem;
}

.hero-logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.12) contrast(1.05);
  opacity: 0.9;
}

.hero-logo .logo-text {
  display: none;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.hero-tag {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-desc {
  color: var(--text-muted);
  margin: 0 0 2rem;
  font-size: 1.0625rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-primary:hover {
  background: var(--highlight);
}

/* Sections */
.section {
  margin-bottom: 4rem;
}

.section-label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
  font-weight: 500;
}

.section-intro {
  color: var(--text-muted);
  margin: 0 0 2rem;
  font-size: 1rem;
}

/* Work list */
.work-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}

.work-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.work-name {
  font-weight: 500;
  font-size: 0.9375rem;
}

.work-detail {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

@media (max-width: 520px) {
  .work-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* Demos */
.demo-grid {
  display: grid;
  gap: 1.5rem;
}

.demo-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
  overflow: hidden;
}

.demo-card-inner {
  padding: 1.5rem;
}

.demo-title {
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.demo-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.btn-demo {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-demo:hover {
  background: var(--accent);
  border-color: var(--highlight);
}

/* Services grid */
.services-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}

.service-card {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.service-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Contact */
.contact-section {
  padding-top: 1rem;
}

.contact-intro {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  font-size: 1rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-link {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s ease;
  display: inline-block;
}

.contact-link:hover {
  color: var(--highlight);
}

.contact-address {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--text-muted);
  transition: opacity 0.2s ease;
}

.footer-logo:hover {
  opacity: 0.85;
}

.footer-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.12) contrast(1.05);
  opacity: 0.85;
}

.footer-logo .logo-text {
  display: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
