/* ==========================================================================
   Six Scales — Executive Defense & Engineering Stylesheet
   ========================================================================== */

:root {
  --bg-page: #f8f9fa;
  --bg-surface: #ffffff;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --accent: #1e3a5f;
  --accent-hover: #0f2440;
  --border: #e5e7eb;
  --max-width: 860px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
}

/* Navigation */
header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.75rem;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

nav a:hover {
  color: var(--accent);
}

nav a:first-child {
  margin-right: auto;
  color: var(--text-primary);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Main Layout & Typography */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4.5rem;
}

h1 {
  margin: 0 0 1.25rem;
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

p {
  margin: 0 0 1.25rem;
  color: var(--text-secondary);
}

strong {
  color: var(--text-primary);
  font-weight: 600;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

/* Sections & Articles */
section,
article {
  margin-bottom: 3rem;
}

#hero {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

#hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 72ch;
}

article {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 1.75rem 2rem;
}

/* Lists */
ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

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

/* Portfolio Figures (Ready for future photos) */
figure {
  margin: 0 0 2rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 0.75rem;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  background-color: #e5e7eb;
}

figcaption {
  padding: 0.85rem 0.5rem 0.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  margin-top: 0.75rem;
}

/* Procurement FAQ */
dl {
  margin: 0 0 3rem;
}

dt {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  padding-top: 1.5rem;
  margin-bottom: 0.4rem;
  border-top: 1px solid var(--border);
}

dt:first-child {
  border-top: none;
  padding-top: 0;
}

dd {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
}

/* Contact Block */
#contact {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 1.75rem 2rem;
}

#contact ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  background-color: var(--bg-surface);
  padding: 1.75rem 1.5rem;
  text-align: center;
}

footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Mobile Adjustments */
@media (max-width: 640px) {
  nav {
    gap: 1rem;
  }

  nav a:first-child {
    width: 100%;
    margin-right: 0;
  }

  main {
    padding: 2.25rem 1.25rem 3rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  article,
  #contact {
    padding: 1.25rem;
  }
}
