/* DM Analytics - static site styles */

:root {
  --ink: #1c1c1c;
  --muted: #5c5c5c;
  --accent: #c9a227;
  --bg: #ffffff;
  --bg-alt: #f6f5f2;
  --border: #e4e1d9;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

a { color: var(--ink); }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site-header {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand img { height: 40px; width: auto; }

.brand span {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

nav.site-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

nav.site-nav a:hover,
nav.site-nav a.active {
  color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: 90px 0;
  text-align: center;
  overflow: hidden;
}

.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.35;
}

.hero .wrap { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  margin: 0 0 12px;
  line-height: 1.3;
}

.hero p.lead {
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
  color: #eee;
}

.hero.hero-tall {
  display: flex;
  align-items: center;
  padding: 40px 0;
  min-height: clamp(340px, 32vw, 820px);
}

.hero.hero-tall .wrap { width: 100%; }

/* Page header (non-home) */
.page-header {
  padding: 60px 0 20px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin: 0;
  font-size: 2rem;
}

/* Sections */
section { padding: 60px 0; }
section.alt { background: var(--bg-alt); }

section h2 {
  font-size: 1.6rem;
  margin: 0 0 18px;
}

section h3 {
  font-size: 1.1rem;
  margin: 0 0 10px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 30px;
}

.grid figure {
  margin: 0;
}

.grid figure img {
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 14px;
}

.numbered-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.numbered-list li {
  border-top: 3px solid var(--accent);
  padding-top: 10px;
}

.numbered-list .num {
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.faq-item:first-child { padding-top: 0; }

.faq-item h3 {
  margin: 0 0 8px;
}

.legal h2 {
  font-size: 1.2rem;
  margin-top: 34px;
}

.legal p { color: var(--muted); }

.contact-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-top: 30px;
}

.contact-block h3 {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}

.contact-block a { color: var(--ink); text-decoration: none; }
.contact-block a:hover { text-decoration: underline; }

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
  background: var(--bg-alt);
}

footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

footer.site-footer nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

footer.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

footer.site-footer a:hover { color: var(--ink); }

@media (max-width: 640px) {
  nav.site-nav ul { gap: 14px 18px; }
  .hero { padding: 60px 0; }
  section { padding: 40px 0; }
}
