/* ============================================================
   checkmyfactory.com — shared styles
   Palette: navy / teal, clean & trustworthy, mobile-first.
   ============================================================ */
:root {
  --navy: #14324f;
  --navy-800: #0f2538;
  --teal: #0e7c86;
  --teal-600: #0a636b;
  --ink: #1a1a1a;
  --muted: #5b6570;
  --line: #e3e8ee;
  --bg: #f6f8fa;
  --white: #fff;
  --ok: #1e7f3e;
  --warn: #b7791f;
  --bad: #c0392b;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(15,37,56,.06), 0 8px 24px rgba(15,37,56,.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-600); }
img { max-width: 100%; display: block; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(28px, 4.2vw, 44px); letter-spacing: -.5px; }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.lead { font-size: 18px; color: var(--muted); }
.muted { color: var(--muted); }
.reply { color: var(--muted); font-size: 13.5px; margin-top: 14px; }
.brand { font-weight: 800; font-size: 20px; color: var(--navy); letter-spacing: .3px; white-space: nowrap; }
.brand span { color: var(--teal); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); font-weight: 700; }
.nav-toggle { display: none; }
.nav-burger { display: none; font-size: 24px; cursor: pointer; color: var(--navy); line-height: 1; user-select: none; }

/* ---------- Language toggle ---------- */
.lang-toggle {
  background: none; border: 1px solid var(--line); border-radius: 8px;
  color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1;
  padding: 7px 12px; cursor: pointer; font-family: inherit; white-space: nowrap;
}
.lang-toggle:hover { color: var(--navy); border-color: var(--navy); }
@media (max-width: 720px) {
  .nav-links .lang-toggle {
    border: none; border-radius: 0; border-top: 1px solid var(--line);
    padding: 14px 24px; text-align: left; font-size: 15px; width: 100%;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-600); color: #fff; box-shadow: 0 6px 18px rgba(14,124,134,.28); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: #fff; }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-title p { color: var(--muted); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(15,37,56,.1); }
.card .price { font-size: 22px; font-weight: 800; color: var(--navy); }
.card .price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.card h3 { margin-bottom: 6px; }
.icon { color: var(--teal); display: inline-block; margin-bottom: 10px; line-height: 0; }
.icon svg { width: 26px; height: 26px; }
.h-icon { width: 18px; height: 18px; vertical-align: -3px; margin-right: 7px; }

/* ---------- Service card image layout ---------- */
.svc-body { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; align-items: center; margin-top: 16px; }
.svc-img { width: 100%; height: auto; }
@media (max-width: 800px) {
  .svc-body { grid-template-columns: 1fr; }
  .svc-img { order: -1; width: min(280px, 100%); margin: 0 auto; }
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 56px; margin-bottom: 26px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 2px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin-bottom: 4px; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #fff 0%, #f6f8fa 100%); border-bottom: 1px solid var(--line); padding: 72px 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Photo placeholder ---------- */
.ph {
  background: linear-gradient(135deg, #eef2f6, #e3e8ee);
  border: 1.5px dashed #c2cdd8; border-radius: var(--radius);
  min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: #8593a2; text-align: center; padding: 24px; font-size: 14px;
}
.ph svg { width: 34px; height: 34px; }
.hero-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); width: 70%; justify-self: center; }
.hero-photo img, .hero-photo video { display: block; width: 100%; height: auto; }

/* ---------- Stat band ---------- */
.stat-band { background: var(--navy); color: #dbe4ee; padding: 44px 0; }
.stat-band .grid { gap: 18px; }
.stat { text-align: center; }
.stat .num { font-size: 28px; font-weight: 800; color: #fff; }
.stat .lbl { font-size: 13.5px; color: #a9b8c9; margin-top: 4px; }

/* ---------- Price table ---------- */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.price-table th { background: var(--navy); color: #fff; text-align: left; padding: 14px 16px; font-weight: 600; }
.price-table td { padding: 13px 16px; border-top: 1px solid var(--line); }
.price-table td.amt { text-align: right; font-weight: 700; color: var(--navy); white-space: nowrap; }
.price-table tr.sub td { background: #f4f6f8; color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.price-table tr.total td { font-weight: 800; border-top: 2px solid var(--navy); background: #fbfcfd; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 7px 0 7px 30px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.checklist.x li::before { content: "✕"; color: var(--bad); }

/* ---------- Report document ---------- */
.doc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 40px 44px; max-width: 820px; margin: 0 auto;
}
.watermark {
  background: var(--bad); color: #fff; text-align: center; font-weight: 700;
  letter-spacing: 2px; padding: 10px 14px; font-size: 14px; border-radius: 6px; margin-bottom: 22px;
}
.doc table.grid { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 6px 0 18px; }
.doc table.grid th { background: var(--navy); color: #fff; text-align: left; padding: 9px 12px; font-weight: 600; }
.doc table.grid td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.doc .ok { color: var(--ok); font-weight: 700; }
.doc .warn { color: var(--warn); font-weight: 700; }
.finding { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 10px 0; font-size: 14.5px; }
.finding .tag { font-weight: 700; }
.photo { display: inline-block; border: 1px dashed var(--line); border-radius: 6px; padding: 8px 12px; margin: 8px 6px 0 0; color: var(--muted); font-size: 11.5px; background: #fafbfc; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--teal-600) 100%); color: #dbe4ee; text-align: center; padding: 72px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe0e4; max-width: 560px; margin: 0 auto 26px; }

/* ---------- Form ---------- */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; max-width: 640px; margin: 0 auto; text-align: left; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; font-family: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,124,134,.12); }
.field textarea { resize: vertical; min-height: 88px; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 16px; text-align: center; }

/* ---------- Terms / prose page ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 17px; margin: 28px 0 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.prose p, .prose li { font-size: 14.5px; }
.prose ul { padding-left: 20px; margin: 6px 0; }
.prose li { margin: 4px 0; }
.prose .note { background: #f0f7f7; border-left: 3px solid var(--teal); padding: 12px 14px; font-size: 14px; margin: 24px 0 0; }
.prose .legal { margin-top: 14px; font-size: 12px; color: #9aa3ad; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-800); color: #a9b8c9; padding: 56px 0 28px; font-size: 14px; }
.site-footer .brand { color: #fff; }
.site-footer .brand span { color: #5fd0d8; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-grid h4 { color: #fff; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.footer-grid a { display: block; color: #a9b8c9; padding: 3px 0; }
.footer-grid a:hover { color: #fff; }
.footer-grid .static { display: block; color: #a9b8c9; padding: 3px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.footer-bottom a { color: #a9b8c9; }

/* ---------- Reveal (subtle, JS-only) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .g3, .g4 { grid-template-columns: 1fr; }
  .g2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .hero { padding: 48px 0; }
  .doc { padding: 24px 20px; }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-burger { display: block; }
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav-links a { padding: 14px 24px; border-top: 1px solid var(--line); }
  .nav-toggle:checked ~ .nav-links { max-height: 420px; }
}
