/**
 * Digital Domain Technologies — landing page styles.
 * Mirrors mx.allabout.network bookshop dark theme.
 * @author Tom Cranstoun
 */

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

/* ── Custom properties (mirrored from mx-unified.css) ── */
:root {
  --mx-blue-deep: #0a1628;
  --mx-blue-dark: #0d2137;
  --mx-blue-mid: #1a3a5c;
  --mx-blue-accent: #2070c0;
  --mx-blue-light: #5ba4e6;
  --mx-gold: #d4a843;
  --mx-white: #ffffff;
  --mx-text: #e8edf2;
  --mx-text-muted: #8a9bb5;

  --mx-surface: rgba(26, 58, 92, 0.3);
  --mx-surface-strong: rgba(26, 58, 92, 0.5);
  --mx-border: rgba(45, 125, 210, 0.15);
  --mx-border-strong: rgba(45, 125, 210, 0.25);

  --mx-font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --mx-max-width: 960px;
  --mx-radius: 8px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--mx-font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--mx-text);
  background-color: var(--mx-blue-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--mx-gold);
  color: var(--mx-blue-deep);
  padding: 0.5rem 1rem;
  border-radius: 0 0 4px 4px;
  z-index: 1000;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* ── Links ── */
a {
  color: var(--mx-blue-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--mx-gold);
}

a:focus-visible {
  outline: 2px solid var(--mx-gold);
  outline-offset: 2px;
}

/* WCAG 1.4.1: prose links must be distinguishable beyond colour */
main p a,
main li a,
main dd a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

main p a:hover,
main li a:hover,
main dd a:hover {
  text-decoration-thickness: 2px;
}

strong {
  color: var(--mx-white);
  font-weight: 600;
}

em {
  color: var(--mx-gold);
  font-style: italic;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(180deg, var(--mx-blue-dark) 0%, var(--mx-blue-deep) 100%);
  border-bottom: 1px solid var(--mx-border);
  padding: 4rem 1.5rem 4.5rem;
}

.hero-inner {
  max-width: var(--mx-max-width);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mx-gold);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--mx-white);
  letter-spacing: -0.01em;
}

.hero-accent {
  color: var(--mx-gold);
}

.lede {
  margin: 0 0 2rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--mx-text-muted);
  max-width: 36rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

/* ── Buttons (mirrored from mx-unified) ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--mx-blue-accent);
  color: var(--mx-white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--mx-blue-light);
  color: var(--mx-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(45, 125, 210, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--mx-text);
  border: 2px solid var(--mx-blue-accent);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--mx-blue-accent);
  color: var(--mx-white);
}

/* ── Main content ── */
main {
  max-width: var(--mx-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--mx-border);
}

.section:last-of-type {
  border-bottom: none;
}

h2 {
  margin: 0 0 1.25rem;
  font-size: 1.625rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--mx-white);
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
  color: var(--mx-text);
}

p:last-child {
  margin-bottom: 0;
}

/* ── Lists (default) ── */
ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  color: var(--mx-text);
}

li {
  margin-bottom: 0.5rem;
}

ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

/* ── Track record client list ── */
.client-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 0 0 1.5rem;
}

.client-list li {
  background: var(--mx-surface);
  border: 1px solid var(--mx-border);
  border-radius: var(--mx-radius);
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  margin: 0;
  color: var(--mx-text);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.client-list li:hover {
  border-color: var(--mx-blue-accent);
  transform: translateY(-1px);
}

/* ── Services definition list ── */
.services {
  margin: 0;
}

.services dt {
  font-weight: 700;
  margin-top: 1.5rem;
  color: var(--mx-gold);
  font-size: 1.0625rem;
}

.services dt:first-child {
  margin-top: 0;
}

.services dd {
  margin: 0.375rem 0 0;
  color: var(--mx-text-muted);
}

/* ── Resource list (MX section) ── */
.resource-list {
  list-style: none;
  padding: 0;
}

.resource-list li {
  padding: 1rem 0;
  border-top: 1px solid var(--mx-border);
  color: var(--mx-text-muted);
}

.resource-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.resource-list strong {
  display: inline;
}

/* ── Contact list ── */
.contact-list {
  list-style: none;
  padding: 0;
}

.contact-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--mx-border);
}

.contact-list li:last-child {
  border-bottom: none;
}

/* ── Postal address card ── */
.postal-address {
  display: block;
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.5rem;
  background: var(--mx-surface);
  border: 1px solid var(--mx-border);
  border-radius: var(--mx-radius);
  font-style: normal;
  line-height: 1.65;
  color: var(--mx-text-muted);
  transition: border-color 0.2s ease;
}

.postal-address:hover {
  border-color: var(--mx-border-strong);
}

.postal-address strong {
  display: block;
  color: var(--mx-white);
  margin-bottom: 0.375rem;
}

/* ── Footer ── */
.site-footer {
  max-width: var(--mx-max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  border-top: 1px solid var(--mx-border);
  color: var(--mx-text-muted);
  font-size: 0.875rem;
  text-align: center;
}

.site-footer p {
  margin: 0 0 0.5rem;
  color: var(--mx-text-muted);
}

.site-footer p:last-child {
  margin-bottom: 0;
}

/* ── Tablet and up ── */
@media (min-width: 640px) {
  .hero {
    padding: 6rem 2rem 6.5rem;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .lede {
    font-size: 1.1875rem;
  }

  main {
    padding: 0 2rem;
  }

  .section {
    padding: 4rem 0;
  }

  h2 {
    font-size: 1.875rem;
  }

  .site-footer {
    padding: 3.5rem 2rem 4.5rem;
  }
}

/* ── Larger desktop ── */
@media (min-width: 960px) {
  .hero h1 {
    font-size: 3.25rem;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .client-list li,
  .postal-address,
  a {
    transition: none;
  }

  .btn-primary:hover,
  .btn-primary:focus-visible {
    transform: none;
  }

  .client-list li:hover {
    transform: none;
  }
}
