/* CertiFloor Marketing Site — styles.css */
/* Professional, confident, warmer than reference site. Teal/navy with amber CTAs. */

@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 {
  --teal: #1a535c;
  --teal-light: #2c7a7b;
  --navy: #1a365d;
  --amber: #d69e2e;
  --amber-hover: #b7791f;
  --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: var(--teal);
  --callout-bg: #e6fffa;
  --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(--teal);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.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.15rem;
  text-decoration: none;
  padding: 1rem 0;
  letter-spacing: .01em;
}
.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); }

.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(--teal);
    padding-bottom: .5rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .75rem 1.25rem; }
}

/* ---- LAYOUT ---- */
.page-header {
  background: var(--teal);
  padding: 3.5rem 1.25rem 3rem;
  color: var(--white);
}
.page-header-inner { max-width: var(--max-width); margin: 0 auto; }
.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--white);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.01em;
}
.page-header .subtitle {
  margin-top: .75rem;
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  line-height: 1.6;
}
.page-header .date-meta { color: rgba(255,255,255,.5); }

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(--teal);
  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(--teal); }

/* ---- CALLOUT BOX ---- */
.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);
}

/* ---- STAT BLOCKS ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--gray-50);
  border-radius: 8px;
  border: 1px solid var(--gray-200);
}
.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1.2;
}
.stat-label {
  font-size: .85rem;
  color: var(--gray-600);
  margin-top: .35rem;
}

/* ---- CTA BUTTON ---- */
.cta-btn {
  display: inline-block;
  background: var(--amber);
  color: var(--gray-900);
  font-weight: 600;
  font-size: 1rem;
  padding: .85rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  margin: 1.5rem 0;
  transition: background .2s;
}
.cta-btn:hover { background: var(--amber-hover); color: var(--gray-900); }

/* ---- CASE STUDY CARDS ---- */
.case-study {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  margin: 2rem 0;
}
.case-study h2 { margin-top: 0; }
.case-meta {
  font-size: .9rem;
  color: var(--gray-600);
  font-style: italic;
  margin-bottom: 1rem;
}
.case-numbers {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: var(--callout-bg);
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin: 1rem 0;
  font-size: .9rem;
}
.case-numbers strong { color: var(--teal); }

/* ---- TABLES ---- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { background: var(--teal); 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 { list-style: none; margin-left: 0; }
.not-list li::before { content: "✕"; color: #c53030; font-weight: 700; margin-right: .5rem; }
.do-list { list-style: none; margin-left: 0; }
.do-list li::before { content: "✓"; color: #276749; font-weight: 700; margin-right: .5rem; }

/* ---- CONTACT ---- */
.contact-block {
  background: var(--gray-50);
  border: 2px solid var(--teal);
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}
.contact-block p { font-size: 1.1rem; margin-bottom: .5rem; }
.contact-block a { color: var(--teal); font-weight: 600; font-size: 1.1rem; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--teal);
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
}
.site-footer a { color: rgba(255,255,255,.9); }
.site-footer p { max-width: var(--max-width); margin: 0 auto; }

.date-meta { font-size: .85rem; color: var(--gray-400); margin-top: .5rem; }

@media (max-width: 480px) {
  .page-header { padding: 2.5rem 1rem 2rem; }
  main { padding: 2rem 1rem 3rem; }
  .case-study { padding: 1.25rem 1rem; }
  .stats { grid-template-columns: 1fr; }
  .case-numbers { flex-direction: column; gap: .5rem; }
}
