/* ContractorWebsiteHelp.com — shared design system
   Mobile-first, no framework, minimal CSS. */

:root {
  --navy: #16324F;
  --steel: #3D5A80;
  --light-bg: #EEF2F6;
  --cta-amber: #D97706;
  --cta-amber-dark: #B45309;
  --text: #1F2933;
  --muted: #52606D;
  --border: #D9E2EC;
  --white: #FFFFFF;
  --trust-green: #2E7D32;
  --light-green-bg: #EAF7EA;

  --max-width: 1080px;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cta-amber-dark); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--steel);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--white);
  padding: 0.75rem 1.25rem; z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border); background: var(--white);
  box-shadow: 0 1px 8px rgba(11, 53, 88, 0.06);
}
.header-inner {
  position: relative;
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between;
  gap: 0.75rem; padding: 1rem 1.25rem; max-width: var(--max-width); margin: 0 auto;
}
.logo { font-weight: 700; font-size: 1.15rem; color: var(--navy); text-decoration: none; white-space: nowrap; }

.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0; padding: 0; }
.main-nav a { display: inline-block; padding: 0.5rem 0.25rem; color: var(--text); text-decoration: none; font-weight: 500; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--cta-amber-dark); text-decoration: underline; }

.nav-toggle {
  display: none; align-items: center; justify-content: center; flex-direction: column;
  background: none; border: 0; cursor: pointer; padding: 6px; flex-shrink: 0;
}
.nav-toggle-bar { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-top: 1px solid var(--border);
    box-shadow: 0 10px 20px rgba(11, 53, 88, 0.12);
    max-height: calc(100vh - 60px); overflow-y: auto;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; width: 100%; padding: 0.5rem 1.25rem; margin: 0; }
  .main-nav a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
}

.hero { background: var(--light-bg); padding: 2.5rem 0 2.75rem; }
.hero h1 { color: var(--navy); font-size: 2rem; line-height: 1.2; margin: 0 0 0.75rem; }
.hero p { font-size: 1.1rem; color: var(--text); max-width: 62ch; margin: 0; }
@media (min-width: 640px) { .hero h1 { font-size: 2.5rem; } }

main { display: block; }
.section { padding: 2.25rem 0; }
.section + .section { border-top: 1px solid var(--border); }

h2 { color: var(--navy); font-size: 1.5rem; line-height: 1.3; margin: 0 0 0.75rem; }
h3 { color: var(--navy); font-size: 1.15rem; margin: 1.25rem 0 0.5rem; }
@media (min-width: 640px) { h2 { font-size: 1.75rem; } }

p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.5rem; }
.muted { color: var(--muted); }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.8rem; font-weight: 700;
  color: var(--steel); margin: 0 0 0.5rem;
}

.card-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 720px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}
.card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; background: var(--white); }
.card h3 { margin-top: 0; }
.card a.card-link { display: inline-block; margin-top: 0.5rem; font-weight: 600; text-decoration: none; }

.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 1.75rem; position: relative; }
.checklist li::before { content: "\2713"; position: absolute; left: 0; color: var(--trust-green); font-weight: 700; }

.btn {
  display: inline-block; padding: 0.85rem 1.4rem; border-radius: 8px; font-weight: 600;
  font-size: 1rem; text-decoration: none; text-align: center; border: 2px solid transparent;
}
.btn-primary { background: var(--cta-amber); color: var(--white); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--cta-amber-dark); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover, .btn-outline:focus-visible { border-color: var(--steel); color: var(--steel); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }

.cta-box { border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--border); background: var(--light-bg); }
.cta-box h3 { margin-top: 0; }

.bottom-contact { background: var(--navy); color: var(--white); padding: 2.5rem 0; }
.bottom-contact h2 { color: var(--white); }
.bottom-contact .cta-box { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.2); }
.bottom-contact .cta-box h3 { color: var(--white); }
.bottom-contact .cta-box p { color: #DCE7F0; }
.bottom-contact .muted { color: #B9C6D3; }

.faq-item { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--navy); font-size: 1.05rem; }
.faq-item p { margin-top: 0.75rem; }

.service-price-list { list-style: none; padding: 0; margin: 0; }
.service-price-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.75rem 0; border-bottom: 1px solid var(--border);
}
.service-price-list .svc-name { font-weight: 600; color: var(--text); }
.service-price-list .svc-price { color: var(--muted); white-space: nowrap; font-size: 0.95rem; }
@media (max-width: 480px) {
  .service-price-list li { flex-direction: column; gap: 0.15rem; }
}

.reviewed { font-size: 0.9rem; color: var(--muted); }

.disclaimer {
  background: #F6F8FA; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.25rem; font-size: 0.95rem; color: var(--muted);
}

.site-footer { background: #0F2438; color: #D9E2EC; padding: 2.5rem 0 1.5rem; font-size: 0.95rem; }
.site-footer a { color: #FFD8A8; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-grid h3 { color: var(--white); font-size: 1rem; margin-top: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 2rem; padding-top: 1.25rem;
  font-size: 0.85rem; color: #9FB3C4;
}
.footer-bottom p { margin: 0 0 0.5rem; }

.breadcrumbs { font-size: 0.85rem; color: var(--muted); padding: 0.75rem 0; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.35rem; color: var(--border); }

/* Forms */
.form-field { margin-bottom: 1.25rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: 0.35rem; color: var(--text); }
.form-field input[type="text"], .form-field input[type="email"], .form-field input[type="tel"],
.form-field select, .form-field textarea {
  width: 100%; font-size: 16px; font-family: var(--font); padding: 0.75rem 0.9rem;
  border: 1px solid var(--border); border-radius: 8px; background: var(--white); color: var(--text);
}
.form-field textarea { min-height: 7rem; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 3px solid var(--steel); outline-offset: 1px; border-color: var(--steel);
}
.required-mark { color: var(--steel); }
.form-note { font-size: 0.9rem; color: var(--muted); margin-top: 1rem; }

.download-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; border: 1px solid var(--border); background: var(--light-bg);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
}
.download-box .download-text h3 { margin: 0 0 0.25rem; }
.download-box .download-text p { margin: 0; color: var(--muted); }
