/* ============================================================
   base.css — portfolio baseline
   Per site-standards.md: system font stack first, no web fonts
   unless necessary; mobile-first; WCAG 2.1 AA contrast.
============================================================ */

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fff;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, picture, svg, video { max-width: 100%; display: block; height: auto; }
button, input, select, textarea { font: inherit; }

/* Skip-to-content (accessibility) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 999;
}
.skip-link:focus { left: 0; }

/* Typography scale (modular, 1.25 ratio) */
h1 { font-size: 2.25rem; line-height: 1.2; margin-bottom: 1rem; font-weight: 700; }
h2 { font-size: 1.75rem; line-height: 1.25; margin: 2rem 0 1rem; font-weight: 700; }
h3 { font-size: 1.375rem; line-height: 1.3; margin: 1.5rem 0 0.75rem; font-weight: 600; }
h4 { font-size: 1.125rem; line-height: 1.35; margin: 1.25rem 0 0.5rem; font-weight: 600; }
p, ul, ol { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; }
a { color: #1657c8; text-decoration: underline; text-underline-offset: 2px; }
a:hover, a:focus { color: #0d3a8b; }
:focus-visible { outline: 2px solid #1657c8; outline-offset: 2px; }

@media (min-width: 768px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
}

/* Layout container */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 768px) { .container { padding: 0 2rem; } }

/* Forms — accessible, mobile-friendly defaults */
label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #1a1a1a;
}
input[type="text"], input[type="number"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #c4c4c4;
  border-radius: 4px;
  background: #fff;
  font-size: 1rem;
  min-height: 44px; /* tap target */
}
input:focus, select:focus, textarea:focus {
  border-color: #1657c8;
  outline: 2px solid #1657c8;
  outline-offset: 1px;
}
button, .btn {
  display: inline-block;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  background: #1657c8;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
button:hover, .btn:hover, button:focus, .btn:focus {
  background: #0d3a8b;
}
button:disabled { background: #888; cursor: not-allowed; }

/* Calculator result block — the moment of value, give it visual weight */
.calc-result {
  background: #f0f6ff;
  border: 1px solid #c0d8ff;
  border-radius: 6px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}
.calc-result .result-value {
  font-size: 2rem;
  font-weight: 700;
  color: #0d3a8b;
}
.calc-result .result-label {
  font-size: 0.875rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Single CTA after calc result — affiliate/lead step */
.post-calc-cta {
  background: #fff8e1;
  border: 1px solid #f0d878;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.post-calc-cta a { font-weight: 600; }

/* FAQ list (also drives FAQPage schema) */
.faq details {
  border-bottom: 1px solid #e0e0e0;
  padding: 1rem 0;
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: " +"; color: #888; }
.faq details[open] summary::after { content: " −"; }
.faq details > *:not(summary) { margin-top: 0.5rem; color: #333; }
