/* AutoDefect.org — shared production stylesheet (static build, Aug 2026) */
html, body { margin: 0; padding: 0; background: #ffffff; color: #0b0c0e; font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: #0b0c0e; text-decoration: none; }
a:hover { color: #1a4fd6; }
::selection { background: #1a4fd6; color: #ffffff; }
:focus-visible { outline: 2px solid #4b79e4; outline-offset: 2px; }
[id] { scroll-margin-top: 96px; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: #1a4fd6; color: #ffffff; padding: 12px 18px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; }
.skip-link:focus { left: 0; color: #ffffff; }
@keyframes adMenuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: #0b0c0e; }
.head-row { max-width: 1560px; margin: 0 auto; display: flex; align-items: center; gap: 30px; height: 76px; padding: 0 40px; }
.brand { display: flex; flex-direction: column; gap: 3px; color: #ffffff; flex: none; }
.brand:hover { color: #ffffff; }
.brand .brand-name { font-size: 15px; font-weight: 700; letter-spacing: 0.08em; }
.brand .brand-sub { font-size: 8.5px; font-weight: 500; letter-spacing: 0.18em; color: #8d939c; }
.nav-desktop { display: flex; align-items: center; gap: 24px; flex: 1; }
.nav-item > a { position: relative; display: inline-block; padding: 12px 2px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; color: #c9cdd4; transition: color 0.2s; white-space: nowrap; }
.nav-item > a:hover, .nav-item:hover > a, .nav-item:focus-within > a { color: #ffffff; }
.nav-item:hover > a::after, .nav-item:focus-within > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #4b79e4; }
.mega { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #101216; border-top: 1px solid #262a31; border-bottom: 1px solid #262a31; animation: adMenuIn 0.24s cubic-bezier(0.4, 0, 0.2, 1); }
.nav-item:hover .mega, .nav-item:focus-within .mega { display: block; }
.mega-grid { max-width: 1560px; margin: 0 auto; padding: 40px 40px 48px; display: grid; grid-template-columns: 1fr 1fr 1fr 1.2fr; gap: 40px; }
.mega-h { font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; color: #7d848e; margin-bottom: 16px; }
.mega-col { display: flex; flex-direction: column; gap: 11px; }
.mega-col a { font-size: 14px; color: #dfe2e6; }
.mega-col a:hover { color: #7fa4f5; }
.mega-note { border-left: 1px solid #262a31; padding-left: 40px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.mega-note .mn-t { font-size: 16px; font-weight: 700; color: #ffffff; letter-spacing: -0.01em; }
.mega-note p { margin: 0; font-size: 13px; color: #9aa0a8; line-height: 1.6; }
.mega-note a { font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; color: #7fa4f5; }
.mega-note a:hover { color: #ffffff; }
.head-side { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.btn-cta { display: inline-block; background: #1a4fd6; color: #ffffff; padding: 13px 22px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; white-space: nowrap; transition: background 0.2s; }
.btn-cta:hover { background: #1440ae; color: #ffffff; }
.nav-toggle { display: none; align-items: center; gap: 8px; background: none; border: 1px solid #3a3f47; color: #c9cdd4; padding: 11px 14px; font-family: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; cursor: pointer; min-height: 44px; }
.nav-toggle[aria-expanded="true"] { border-color: #ffffff; color: #ffffff; }
.nav-mobile { display: none; background: #101216; border-top: 1px solid #262a31; max-height: calc(100vh - 64px); overflow: auto; }
.nav-mobile:not([hidden]) { display: block; }
.nav-mobile details { border-bottom: 1px solid #23262c; }
.nav-mobile summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 20px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: #dfe2e6; cursor: pointer; min-height: 44px; box-sizing: border-box; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary::after { content: "+"; font-size: 17px; color: #7d848e; flex: none; }
.nav-mobile details[open] summary::after { content: "\2013"; }
.nav-mobile a { display: flex; align-items: center; padding: 12px 20px 12px 34px; font-size: 14px; color: #c9cdd4; min-height: 44px; box-sizing: border-box; }
.nav-mobile a:hover { color: #ffffff; }
.nav-mobile a.nav-direct { padding-left: 20px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: #dfe2e6; border-bottom: 1px solid #23262c; }
@media (min-width: 941px) { .nav-mobile { display: none !important; } }
@media (max-width: 1240px) { .nav-desktop { gap: 16px; } .head-row { gap: 20px; } }
@media (max-width: 1080px) { .nav-item > a { letter-spacing: 0.1em; font-size: 11px; } }
@media (max-width: 940px) {
  .head-row { height: 64px; padding: 0 20px; gap: 14px; }
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .btn-cta { padding: 12px 14px; font-size: 10.5px; }
}

/* ---------- hover utilities (replace style-hover) ---------- */
.hv-w:hover { color: #ffffff !important; }
.hv-bl:hover { color: #7fa4f5 !important; }
.hv-db:hover { color: #1440ae !important; }
.hv-k:hover { color: #0b0c0e !important; }
.hv-btn:hover { background: #1440ae !important; color: #ffffff !important; }
.hv-btnb:hover { background: #1a4fd6 !important; color: #ffffff !important; }
.hv-bd:hover { border-color: #0b0c0e !important; color: #0b0c0e !important; }
.hv-bdb:hover { border-color: #1a4fd6 !important; color: #1a4fd6 !important; }
.hv-bdw:hover { border-color: #ffffff !important; color: #ffffff !important; }
.hv-ghost:hover { border-color: #ffffff !important; background: rgba(255, 255, 255, 0.08) !important; color: #ffffff !important; }
.hv-row:hover { background: #f8f9fb !important; color: #0b0c0e !important; }

/* ---------- forms ---------- */
.form-label { display: flex; flex-direction: column; gap: 8px; }
.form-label > span:first-child { font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; color: #6b7078; }
.form-input, .form-select, .form-textarea { border: 1px solid #d8dade; border-radius: 0; padding: 14px 16px; font-family: inherit; font-size: 14px; background: #ffffff; color: #0b0c0e; width: 100%; box-sizing: border-box; }
.form-textarea { resize: vertical; }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: 2px solid #1a4fd6; outline-offset: 0; }
.form-check { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.6; }
.form-check input { width: 18px; height: 18px; accent-color: #1a4fd6; margin-top: 2px; flex: none; }
fieldset.form-group { border: 0; padding: 34px 0 0; margin: 0; border-top: 1px solid #e4e6e9; }
fieldset.form-group + fieldset.form-group { margin-top: 40px; }
.form-legend { padding: 0 0 4px; font-size: 21px; letter-spacing: -0.015em; font-weight: 700; }
.form-count { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; color: #1a4fd6; display: block; margin-bottom: 10px; }
.form-hint { margin: 6px 0 24px; font-size: 13.5px; color: #5c6167; line-height: 1.65; max-width: 620px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px 24px; }
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.form-note { font-size: 12px; color: #8b919b; line-height: 1.7; }
.btn-submit { background: #1a4fd6; color: #ffffff; border: none; cursor: pointer; padding: 18px 36px; font-family: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; transition: background 0.2s; }
.btn-submit:hover { background: #1440ae; }
.req { color: #a33326; }
.receipt { display: none; border: 1px solid #1a4fd6; background: #f2f6ff; padding: 22px 26px; margin: 0 0 40px; font-size: 14px; line-height: 1.7; color: #0b0c0e; }
.receipt:target { display: block; }

/* ---------- shared responsive layer (targets legacy inline-styled layouts) ---------- */
@media (max-width: 940px) {
  body { overflow-x: hidden; }
  [style*="minmax(260px, 320px) 1fr"] { grid-template-columns: 1fr !important; }
  [style*="minmax(260px, 320px) 1fr"] > aside { padding: 18px 20px !important; gap: 14px !important; }
  [style*="padding:56px 64px 72px"] { padding: 32px 20px 56px !important; }
  [style*="flex:0 0 230px"] { display: none !important; }
}
@media (max-width: 700px) {
  [data-screen-label]:not(header):not([data-screen-label="Intake"]) { padding-left: 20px !important; padding-right: 20px !important; }
  section div[style*="padding:0 40px"] { padding-left: 20px !important; padding-right: 20px !important; }
  [style*="minmax(440px"], [style*="minmax(480px"], [style*="minmax(400px"] { grid-template-columns: 1fr !important; gap: 36px !important; }
  [style*="minmax(240px, 340px) 1fr"] { grid-template-columns: 1fr !important; }
  [style*="span 3"] { grid-row: auto !important; height: 240px !important; border-right: none !important; border-bottom: 1px solid #e4e6e9; }
  img[style*="min-height"] { min-height: 240px !important; height: auto !important; }
  [style*="padding:88px 72px"] { padding: 48px 20px !important; }
  [data-screen-label="Hero"] { min-height: 540px !important; }
  [style*="padding:36px 40px"], [style*="padding:28px 40px"], [style*="padding:20px 40px"] { padding-left: 20px !important; padding-right: 20px !important; }
}
@media (max-width: 560px) {
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  [style*="minmax(340px"], [style*="minmax(300px"], [style*="minmax(280px"], [style*="minmax(260px, 1fr)"] { grid-template-columns: 1fr !important; }
  [style*="150px 1fr"] { grid-template-columns: 1fr !important; gap: 6px !important; }
  [style*="minmax(180px, 280px) 1fr"] { grid-template-columns: 1fr !important; gap: 4px !important; }
  [style*="120px minmax(160px"] { grid-template-columns: 104px 1fr !important; }
  [style*="120px minmax(160px"] > p { grid-column: 1 / -1 !important; padding-top: 0 !important; }
  [style*="60px minmax(160px"] { grid-template-columns: 44px 1fr !important; }
  [style*="60px minmax(160px"] > span:last-child { grid-column: 1 / -1 !important; }
  [style*="130px 24px 1fr"] { grid-template-columns: 74px 18px 1fr !important; gap: 12px !important; }
  [style*="130px 24px 1fr"] > div:first-child { font-size: 9.5px !important; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
