/* ContractorCheck — Styles
 * constructtrackpro.com/contractorcheck/
 */

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

:root {
  --carbon:     #1D1D1F;
  --carbon-2:   #2C2C2E;
  --chalk:      #F5F5F7;
  --white:      #FFFFFF;
  --mid:        #86868B;
  --light:      #E8E8ED;
  --orange:     #FF6B35;
  --orange-dim: rgba(255,107,53,0.10);
  --blue:       #0071E3;
  --green:      #34C759;
  --green-dim:  rgba(52,199,89,0.08);
  --red:        #FF3B30;
  --red-dim:    rgba(255,59,48,0.08);
  --yellow:     #FF9F0A;
  --yellow-dim: rgba(255,159,10,0.08);
  --radius-card: 16px;
  --radius-pill: 980px;
}

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--chalk); color: var(--carbon); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1 { font-size: clamp(28px,4.5vw,52px); font-weight: 200; letter-spacing: -0.03em; line-height: 1.1; }
h2 { font-size: clamp(22px,3vw,36px); font-weight: 200; letter-spacing: -0.025em; line-height: 1.15; }
h3 { font-size: clamp(16px,2vw,22px); font-weight: 400; letter-spacing: -0.02em; }
p  { line-height: 1.65; }

/* ─── NAV ─── */
.cc-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 52px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  background: rgba(29,29,31,0.92);
  backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-brand { display:flex; align-items:center; gap:10px; font-size:13px; font-weight:400; letter-spacing:-0.01em; color:rgba(255,255,255,0.9); text-decoration:none; }
.nav-brand svg { width:22px; height:22px; flex-shrink:0; }
.nav-brand .sep { color:rgba(255,255,255,0.2); margin:0 4px; }
.nav-brand .hub { color:var(--orange); font-weight:500; }
.nav-links { display:flex; align-items:center; gap:20px; }
.nav-links a { font-size:12px; color:rgba(255,255,255,0.5); text-decoration:none; transition:color 0.2s; }
.nav-links a:hover, .nav-links a.active { color:rgba(255,255,255,0.9); }
.nav-links a.active { color:var(--orange); }
.nav-cta { height:30px; padding:0 14px; background:var(--orange); color:white; border-radius:var(--radius-pill); font-size:11px; font-weight:500; text-decoration:none; display:flex; align-items:center; transition:opacity 0.2s; border:none; cursor:pointer; font-family:'DM Sans',sans-serif; }
.nav-cta:hover { opacity:0.88; }

/* ─── BREADCRUMB ─── */
.breadcrumb { padding:68px 0 0; }
.breadcrumb-inner { max-width:1000px; margin:0 auto; padding:16px 40px 0; display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:12px; color:var(--mid); font-family:'DM Mono',monospace; }
.breadcrumb-inner a { color:var(--mid); text-decoration:none; transition:color 0.2s; }
.breadcrumb-inner a:hover { color:var(--carbon); }

/* ─── HERO ─── */
.page-hero { background:var(--carbon); padding:64px 40px 56px; text-align:center; position:relative; overflow:hidden; }
.page-hero::before { content:''; position:absolute; inset:0; background-image:linear-gradient(rgba(255,255,255,0.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,0.025) 1px,transparent 1px); background-size:48px 48px; }
.page-hero::after { content:''; position:absolute; width:500px; height:500px; border-radius:50%; background:radial-gradient(ellipse,rgba(255,107,53,0.12) 0%,transparent 70%); top:50%; left:50%; transform:translate(-50%,-60%); }
.page-hero > * { position:relative; z-index:1; }
.hero-eyebrow { font-family:'DM Mono',monospace; font-size:10px; letter-spacing:0.14em; text-transform:uppercase; color:var(--orange); margin-bottom:16px; }
.hero-title { color:white; margin-bottom:16px; }
.hero-title strong { font-weight:500; }
.hero-sub { font-size:clamp(14px,1.8vw,17px); font-weight:300; color:rgba(255,255,255,0.45); line-height:1.6; max-width:620px; margin:0 auto 28px; }
.hero-pills { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.hero-pill { height:32px; padding:0 16px; border-radius:var(--radius-pill); font-size:12px; font-weight:400; text-decoration:none; display:flex; align-items:center; gap:6px; transition:all 0.2s; }
.hero-pill.primary { background:var(--orange); color:white; border:none; cursor:pointer; font-family:'DM Sans',sans-serif; }
.hero-pill.primary:hover { background:#ff7a48; transform:translateY(-1px); }
.hero-pill.ghost { background:transparent; color:rgba(255,255,255,0.6); border:1px solid rgba(255,255,255,0.15); }

/* ─── STATS ─── */
.stats-row { display:flex; background:var(--white); border-top:1px solid var(--light); border-bottom:1px solid var(--light); flex-wrap:wrap; }
.stat-item { padding:18px 28px; text-align:center; border-right:1px solid var(--light); flex:1; min-width:100px; }
.stat-item:last-child { border-right:none; }
.stat-num { font-size:22px; font-weight:200; letter-spacing:-0.03em; color:var(--orange); display:block; margin-bottom:2px; }
.stat-label { font-size:10px; color:var(--mid); font-family:'DM Mono',monospace; letter-spacing:0.04em; }

/* ─── AD ─── */
.ad-unit { display:flex; align-items:center; justify-content:center; min-height:90px; padding:16px; background:var(--white); border-top:1px solid var(--light); border-bottom:1px solid var(--light); }

/* ─── ASSESSMENT WRAP ─── */
.assessment-wrap { max-width:720px; margin:0 auto; padding:40px 40px 64px; }

/* ─── PROGRESS BAR ─── */
.progress-bar-wrap { margin-bottom:32px; }
.progress-meta { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.progress-label { font-family:'DM Mono',monospace; font-size:10px; letter-spacing:0.08em; text-transform:uppercase; color:var(--mid); }
.progress-track { height:4px; background:var(--light); border-radius:var(--radius-pill); overflow:hidden; }
.progress-fill { height:100%; background:var(--orange); border-radius:var(--radius-pill); transition:width 0.3s ease; }

/* ─── GROUP HEADERS ─── */
.question-group-header { margin:32px 0 20px; }
.group-title { font-family:'DM Mono',monospace; font-size:10px; letter-spacing:0.12em; text-transform:uppercase; color:var(--orange); margin-bottom:6px; }
.group-desc { font-size:12px; color:var(--mid); font-weight:300; line-height:1.6; }

/* ─── QUESTION CARDS ─── */
.question-card { background:var(--white); border:1.5px solid var(--light); border-radius:var(--radius-card); padding:24px; margin-bottom:14px; transition:border-color 0.2s; }
.question-card.answered { border-color:rgba(255,107,53,0.25); }
.question-card.answered-low  { border-left:3px solid var(--green); }
.question-card.answered-med  { border-left:3px solid var(--yellow); }
.question-card.answered-high { border-left:3px solid var(--red); }

.q-header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:16px; }
.q-number { font-family:'DM Mono',monospace; font-size:10px; letter-spacing:0.08em; color:var(--mid); flex-shrink:0; margin-top:2px; }
.q-text { font-size:14px; font-weight:500; letter-spacing:-0.01em; color:var(--carbon); line-height:1.5; flex:1; }
.q-weight-badge { flex-shrink:0; height:22px; padding:0 8px; border-radius:4px; font-family:'DM Mono',monospace; font-size:9px; letter-spacing:0.06em; display:flex; align-items:center; }
.weight-high { background:rgba(255,107,53,0.1); color:var(--orange); }
.weight-med  { background:var(--chalk); color:var(--mid); }

.q-options { display:flex; flex-direction:column; gap:8px; }
.q-option { position:relative; }
.q-option input[type=radio] { position:absolute; opacity:0; width:0; height:0; }
.q-option label {
  display:flex; align-items:flex-start; gap:10px; padding:11px 14px;
  border:1.5px solid var(--light); border-radius:10px;
  background:var(--chalk); cursor:pointer; transition:all 0.15s;
  font-size:13px; font-weight:400; color:var(--carbon); line-height:1.4;
}
.q-option label:hover { border-color:#ccc; background:var(--white); }
.q-option input:checked + label { border-color:var(--orange); background:var(--white); box-shadow:0 0 0 2px rgba(255,107,53,0.1); }
.q-option input[data-value="0"]:checked + label { border-color:var(--green); box-shadow:0 0 0 2px rgba(52,199,89,0.12); }
.q-option input[data-value="2"]:checked + label { border-color:var(--red); box-shadow:0 0 0 2px rgba(255,59,48,0.1); }
.option-radio { width:18px; height:18px; border:1.5px solid var(--light); border-radius:50%; flex-shrink:0; margin-top:1px; display:flex; align-items:center; justify-content:center; transition:all 0.15s; }
.q-option input:checked + label .option-radio { border-color:currentColor; }
.q-option input:checked + label .option-radio::after { content:''; width:8px; height:8px; border-radius:50%; background:currentColor; display:block; }
.option-text { flex:1; }
.option-hint { display:block; font-size:11px; color:var(--mid); margin-top:2px; font-weight:300; }

/* Why this matters */
.q-why-toggle { display:flex; align-items:center; gap:5px; font-size:11px; color:var(--blue); background:none; border:none; cursor:pointer; padding:8px 0 0; font-family:'DM Sans',sans-serif; transition:opacity 0.2s; }
.q-why-toggle:hover { opacity:0.7; }
.q-why-content { display:none; margin-top:10px; padding:12px 14px; background:var(--chalk); border-radius:8px; border-left:2px solid var(--orange-dim); }
.q-why-content.open { display:block; }
.q-why-content p { font-size:12px; color:var(--mid); font-weight:300; line-height:1.6; }
.q-why-content .legal-basis { font-family:'DM Mono',monospace; font-size:10px; color:rgba(134,134,139,0.7); margin-top:6px; letter-spacing:0.02em; }

/* ─── CALCULATE BUTTON ─── */
.calculate-wrap { margin-top:32px; }
.btn-calculate { width:100%; height:56px; background:var(--orange); color:white; border:none; border-radius:14px; font-family:'DM Sans',sans-serif; font-size:16px; font-weight:500; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; justify-content:center; gap:10px; letter-spacing:-0.01em; }
.btn-calculate:hover { background:#ff7a48; transform:translateY(-2px); box-shadow:0 8px 28px rgba(255,107,53,0.35); }
.unanswered-note { text-align:center; font-size:12px; color:var(--mid); margin-top:10px; display:none; font-weight:300; }

/* ─── RESULT PANEL ─── */
#resultPanel { display:none; margin-top:40px; }

.risk-banner { border-radius:var(--radius-card); padding:28px 32px; margin-bottom:24px; }
.risk-banner.low    { background:var(--green-dim);  border:1px solid rgba(52,199,89,0.2); }
.risk-banner.medium { background:var(--yellow-dim); border:1px solid rgba(255,159,10,0.2); }
.risk-banner.high   { background:var(--red-dim);    border:1px solid rgba(255,59,48,0.2); }
.risk-banner-top { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; margin-bottom:12px; }
.risk-label { font-size:24px; font-weight:500; letter-spacing:-0.02em; }
.risk-label.low    { color:#1d8a3c; }
.risk-label.medium { color:#9a6000; }
.risk-label.high   { color:#c0241a; }
.risk-score-display { font-family:'DM Mono',monospace; font-size:11px; letter-spacing:0.04em; }
.risk-score-display.low    { color:#1d8a3c; }
.risk-score-display.medium { color:#9a6000; }
.risk-score-display.high   { color:#c0241a; }

/* Risk meter */
.risk-meter { height:8px; background:var(--light); border-radius:var(--radius-pill); overflow:hidden; margin-bottom:16px; }
.risk-meter-fill { height:100%; border-radius:var(--radius-pill); transition:width 0.6s ease; }
.risk-meter-fill.low    { background:var(--green); }
.risk-meter-fill.medium { background:var(--yellow); }
.risk-meter-fill.high   { background:var(--red); }

.risk-desc { font-size:13px; font-weight:300; line-height:1.6; }
.risk-desc.low    { color:#1d8a3c; }
.risk-desc.medium { color:#9a6000; }
.risk-desc.high   { color:#c0241a; }

/* Factor flags */
.flags-section { margin-bottom:24px; }
.flags-heading { font-family:'DM Mono',monospace; font-size:10px; letter-spacing:0.12em; text-transform:uppercase; color:var(--mid); margin-bottom:12px; }
.flag-card { background:var(--white); border:1px solid var(--light); border-radius:12px; padding:16px 18px; margin-bottom:10px; }
.flag-card.flag-high { border-left:3px solid var(--red); }
.flag-card.flag-medium { border-left:3px solid var(--yellow); }
.flag-top { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.flag-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.flag-dot.high { background:var(--red); }
.flag-dot.medium { background:var(--yellow); }
.flag-label { font-size:13px; font-weight:500; letter-spacing:-0.01em; }
.flag-badge { height:20px; padding:0 8px; border-radius:4px; font-family:'DM Mono',monospace; font-size:9px; letter-spacing:0.06em; margin-left:auto; flex-shrink:0; }
.flag-badge.high   { background:var(--red-dim);    color:#c0241a; }
.flag-badge.medium { background:var(--yellow-dim); color:#9a6000; }
.flag-answer { font-size:12px; color:var(--mid); font-style:italic; margin-bottom:8px; font-weight:300; }
.flag-explanation { font-size:12px; color:var(--carbon); font-weight:300; line-height:1.6; }
.flag-basis { font-family:'DM Mono',monospace; font-size:10px; color:var(--mid); margin-top:6px; letter-spacing:0.02em; }

/* No flags */
.no-flags { background:var(--green-dim); border:1px solid rgba(52,199,89,0.2); border-radius:12px; padding:16px 20px; display:flex; align-items:center; gap:12px; }
.no-flags p { font-size:13px; color:#1d8a3c; font-weight:300; }

/* Remediation */
.remediation-section { background:var(--white); border:1px solid var(--light); border-radius:var(--radius-card); padding:24px; margin-bottom:24px; }
.remediation-heading { font-family:'DM Mono',monospace; font-size:10px; letter-spacing:0.12em; text-transform:uppercase; color:var(--orange); margin-bottom:14px; }
.remediation-list { list-style:none; display:flex; flex-direction:column; gap:10px; }
.remediation-item { display:flex; align-items:flex-start; gap:10px; font-size:13px; font-weight:300; line-height:1.6; color:var(--carbon); }
.remediation-icon { font-size:14px; flex-shrink:0; margin-top:1px; }

/* Result actions */
.result-actions { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:24px; }
.btn { height:44px; padding:0 24px; border-radius:var(--radius-pill); font-family:'DM Sans',sans-serif; font-size:14px; font-weight:500; cursor:pointer; border:none; transition:all 0.2s; display:inline-flex; align-items:center; gap:8px; text-decoration:none; }
.btn-primary { background:var(--orange); color:white; }
.btn-primary:hover { background:#ff7a48; transform:translateY(-1px); box-shadow:0 6px 20px rgba(255,107,53,0.3); }
.btn-secondary { background:var(--chalk); color:var(--carbon); border:1px solid var(--light); }
.btn-secondary:hover { background:var(--light); }
.btn-sm { height:34px; padding:0 16px; font-size:12px; }

/* ─── LAWYER CTA ─── */
.lawyer-cta { background:var(--carbon); border-radius:var(--radius-card); padding:24px 28px; margin-bottom:20px; color:white; }
.lawyer-cta-eyebrow { font-family:'DM Mono',monospace; font-size:9px; letter-spacing:0.12em; text-transform:uppercase; color:var(--orange); margin-bottom:6px; }
.lawyer-cta h4 { font-size:16px; font-weight:400; letter-spacing:-0.01em; color:white; margin-bottom:6px; }
.lawyer-cta p { font-size:13px; color:rgba(255,255,255,0.45); font-weight:300; line-height:1.6; margin-bottom:16px; }
.lawyer-cta-actions { display:flex; gap:10px; flex-wrap:wrap; }

/* ─── EMPLOYMENT HERO CTA ─── */
.eh-cta { background:var(--chalk); border:1px solid var(--light); border-radius:var(--radius-card); padding:20px 24px; margin-bottom:20px; display:flex; align-items:flex-start; gap:16px; flex-wrap:wrap; }
.eh-cta-icon { width:40px; height:40px; border-radius:10px; background:var(--orange-dim); display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:18px; }
.eh-cta-body { flex:1; min-width:200px; }
.eh-cta-body p:first-child { font-family:'DM Mono',monospace; font-size:9px; letter-spacing:0.1em; text-transform:uppercase; color:var(--orange); margin-bottom:4px; }
.eh-cta-body h4 { font-size:14px; font-weight:500; letter-spacing:-0.01em; margin-bottom:4px; }
.eh-cta-body p:last-child { font-size:12px; color:var(--mid); font-weight:300; line-height:1.5; }

/* ─── EMAIL CAPTURE ─── */
.email-capture-wrap { background:var(--carbon); border-radius:var(--radius-card); padding:28px 32px; margin-bottom:20px; color:white; }
.email-capture-wrap p.ec-eyebrow { font-family:'DM Mono',monospace; font-size:9px; letter-spacing:0.14em; text-transform:uppercase; color:var(--orange); margin-bottom:6px; }
.email-capture-wrap h3 { font-size:18px; font-weight:400; letter-spacing:-0.02em; color:white; margin-bottom:8px; }
.email-capture-wrap p.ec-sub { font-size:13px; color:rgba(255,255,255,0.45); font-weight:300; margin-bottom:20px; }

/* ─── DISCLAIMER ─── */
.disclaimer { background:rgba(255,107,53,0.05); border:1px solid rgba(255,107,53,0.15); border-radius:10px; padding:16px 20px; margin-bottom:20px; }
.disclaimer p { font-size:12px; color:var(--mid); line-height:1.6; font-weight:300; }
.disclaimer strong { color:var(--carbon); font-weight:500; }

/* ─── CROSS-PROMO ─── */
.cross-promo { background:var(--carbon); border-radius:var(--radius-card); padding:24px 28px; margin-bottom:20px; color:white; display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.cross-promo-text p:first-child { font-family:'DM Mono',monospace; font-size:9px; letter-spacing:0.12em; text-transform:uppercase; color:var(--orange); margin-bottom:4px; }
.cross-promo-text h3 { font-size:16px; font-weight:400; letter-spacing:-0.02em; color:white; }
.cross-promo-text p:last-child { font-size:12px; color:rgba(255,255,255,0.5); font-weight:300; margin-top:2px; }

/* ─── CONTENT / FAQ ─── */
.content-section { max-width:1000px; margin:0 auto; padding:0 40px 48px; }
.content-section h2 { margin-bottom:16px; }
.content-section p { font-size:14px; color:var(--mid); font-weight:300; line-height:1.7; margin-bottom:12px; }
.content-section a { color:var(--blue); }
.content-section strong { color:var(--carbon); font-weight:500; }

.faq-section { max-width:1000px; margin:0 auto; padding:0 40px 64px; }
.faq-item { border-top:1px solid var(--light); }
.faq-q { width:100%; text-align:left; background:none; border:none; cursor:pointer; padding:18px 0; display:flex; justify-content:space-between; align-items:center; font-family:'DM Sans',sans-serif; font-size:14px; font-weight:400; color:var(--carbon); letter-spacing:-0.01em; gap:16px; }
.faq-q svg { flex-shrink:0; transition:transform 0.3s; }
.faq-item.open .faq-q svg { transform:rotate(45deg); }
.faq-a { font-size:13px; color:var(--mid); line-height:1.7; font-weight:300; padding-bottom:18px; display:none; }
.faq-item.open .faq-a { display:block; }
.faq-a a { color:var(--blue); }
.faq-a strong { color:var(--carbon); font-weight:500; }

/* ─── FOOTER ─── */
.cc-footer { background:var(--carbon); border-top:1px solid rgba(255,255,255,0.06); padding:40px 60px; }
.footer-inner { max-width:1000px; margin:0 auto; display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:24px; }
.footer-brand { display:flex; align-items:center; gap:8px; font-size:13px; color:rgba(255,255,255,0.5); text-decoration:none; }
.footer-brand svg { width:18px; height:18px; }
.footer-links { display:flex; gap:20px; flex-wrap:wrap; }
.footer-links a { font-size:12px; color:rgba(255,255,255,0.3); text-decoration:none; transition:color 0.2s; }
.footer-links a:hover { color:rgba(255,255,255,0.7); }
.footer-copy { font-family:'DM Mono',monospace; font-size:10px; color:rgba(255,255,255,0.2); letter-spacing:0.04em; line-height:1.7; width:100%; margin-top:8px; }

/* ─── PRINT ─── */
@media print {
  .cc-nav, .breadcrumb, .page-hero, .stats-row, .ad-unit,
  .progress-bar-wrap, .question-card, .calculate-wrap, .q-why-toggle,
  .result-actions, .lawyer-cta, .eh-cta, .email-capture-wrap,
  .cross-promo, .content-section, .faq-section, .cc-footer { display:none !important; }
  body { background:white; }
  #resultPanel { display:block !important; }
  .assessment-wrap { padding:0; max-width:100%; }
  .risk-banner { border:1px solid #ccc; }
  .flag-card { border:1px solid #ccc; box-shadow:none; page-break-inside:avoid; }
  .remediation-section { border:1px solid #ccc; }
}

/* ─── RESPONSIVE ─── */
@media (max-width:768px) {
  .cc-nav { padding:0 20px; }
  .nav-links .hide-mobile { display:none; }
  .page-hero { padding:64px 24px 40px; }
  .assessment-wrap { padding:24px 20px 48px; }
  .content-section, .faq-section { padding-left:20px; padding-right:20px; }
  .cc-footer { padding:32px 24px; }
  .stats-row .stat-item { min-width:50%; }
  .risk-banner-top { flex-direction:column; align-items:flex-start; gap:8px; }
  .cross-promo { flex-direction:column; }
  .result-actions { flex-direction:column; }
  .result-actions .btn { justify-content:center; }
}
