/* Flooring Commissioning Reference Site — styles.css */
/* Clean, institutional, authority-driven. Navy palette. Mobile-first. */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Newsreader:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --navy: #1a365d;
  --navy-light: #2a4a7f;
  --blue-accent: #2b6cb0;
  --blue-link: #2b6cb0;
  --gray-50: #f7fafc;
  --gray-100: #edf2f7;
  --gray-200: #e2e8f0;
  --gray-400: #a0aec0;
  --gray-600: #718096;
  --gray-700: #4a5568;
  --gray-800: #2d3748;
  --gray-900: #1a202c;
  --white: #ffffff;
  --callout-border: #2b6cb0;
  --callout-bg: #ebf4ff;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
  --max-width: 740px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ---- NAV ---- */
.site-nav {
  background: var(--navy);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
}
.nav-brand {
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 1rem 0;
  white-space: nowrap;
}
.nav-brand span { font-weight: 400; opacity: .7; }
.nav-links { display: flex; gap: 0; list-style: none; flex-wrap: wrap; }
.nav-links a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: .85rem;
  padding: 1rem .75rem;
  display: block;
  transition: color .2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; padding: .5rem; }
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column; width: 100%;
    position: absolute; top: 100%; left: 0; background: var(--navy);
    padding-bottom: .5rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .75rem 1.25rem; }
}

/* ---- LAYOUT ---- */
.page-header {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 3rem 1.25rem 2.5rem;
}
.page-header-inner { max-width: var(--max-width); margin: 0 auto; }
.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.01em;
}
.page-header .subtitle {
  margin-top: .75rem;
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.6;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

/* ---- TYPOGRAPHY ---- */
h2 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: var(--navy);
  margin: 2.5rem 0 1rem;
  font-weight: 700;
  line-height: 1.3;
}
h2:first-child { margin-top: 0; }
h3 {
  font-size: 1.15rem;
  color: var(--gray-800);
  margin: 2rem 0 .75rem;
  font-weight: 600;
}
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
em { font-style: italic; color: var(--gray-600); }
a { color: var(--blue-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy); }

/* ---- CALLOUT BOX (for canonical definition) ---- */
.callout {
  background: var(--callout-bg);
  border-left: 4px solid var(--callout-border);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
}
.callout p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray-900);
}

/* ---- SPEC BOX ---- */
.spec-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 6px;
  font-family: 'DM Sans', monospace;
  font-size: .9rem;
  line-height: 1.8;
  white-space: pre-wrap;
}

/* ---- TABLES ---- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  text-align: left;
  padding: .75rem 1rem;
}
td {
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}
tr:nth-child(even) td { background: var(--gray-50); }

/* ---- LISTS ---- */
ul, ol { margin: 1rem 0 1rem 1.5rem; }
li { margin-bottom: .4rem; line-height: 1.6; }

/* Not-list (what agent does NOT do) */
.not-list { list-style: none; margin-left: 0; }
.not-list li::before {
  content: "✕";
  color: #c53030;
  font-weight: 700;
  margin-right: .5rem;
}

/* Do-list */
.do-list { list-style: none; margin-left: 0; }
.do-list li::before {
  content: "✓";
  color: #276749;
  font-weight: 700;
  margin-right: .5rem;
}

/* ---- FAQ ---- */
.faq-item { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--gray-200); }
.faq-item:last-child { border-bottom: none; }
.faq-item h2 {
  font-size: 1.15rem;
  margin: 0 0 .75rem;
  color: var(--navy);
}

/* ---- RELATED QUESTIONS ---- */
.related {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-top: 3rem;
}
.related h2 { font-size: 1rem; margin: 0 0 .75rem; color: var(--gray-600); text-transform: uppercase; letter-spacing: .05em; }
.related ul { margin: 0; list-style: none; }
.related li { margin-bottom: .35rem; }
.related a { font-size: .95rem; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: .85rem;
  color: var(--gray-600);
  line-height: 1.7;
}
.site-footer p { max-width: var(--max-width); margin: 0 auto; }

/* ---- UTILITY ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.date-meta { font-size: .85rem; color: var(--gray-400); margin-top: .5rem; }

@media (max-width: 480px) {
  .page-header { padding: 2rem 1rem 1.75rem; }
  main { padding: 2rem 1rem 3rem; }
  th, td { padding: .5rem .65rem; font-size: .82rem; }
}
