/* ClearQuote Data Recovery — shared styles
   Faithful to the wireframes, with responsive + polish layered on top.
   Layout-critical desktop styling stays inline in the HTML; this file adds
   the base reset, hover states, responsive collapses, modal, and accordion. */

:root{
  --navy:#14284a;
  --navy-deep:#0f1e38;
  --ink:#16233b;
  --blue:#2f6fd0;
  --blue-dark:#1f56b0;
  --slate:#5c6675;
  --muted:#8a93a3;
  --line:#e6eaf1;
  --wash:#f6f9fd;
  --wash-blue:#eef4fd;
  --green:#17945a;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:#fff;
  color:var(--ink);
  font-family:'Instrument Sans',system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--blue);text-decoration:none}
a:hover{color:var(--blue-dark)}
h1,h2,h3{font-family:'Space Grotesk',system-ui,sans-serif;margin:0}
img{max-width:100%}
:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

/* page shell */
.cq-page{max-width:1600px;margin:0 auto;overflow:hidden}

/* ---------- hover polish (was style-hover in wireframes) ---------- */
.cq-card-link{transition:box-shadow .18s ease, transform .18s ease}
.cq-card-link:hover{box-shadow:0 16px 40px -22px rgba(20,40,74,.4);transform:translateY(-2px)}
.cq-menu-link{transition:background .15s ease, color .15s ease}
.cq-menu-link:hover{background:#f2f6fc;color:var(--blue-dark)}
.cq-btn{transition:background .15s ease, box-shadow .15s ease, transform .05s ease}
.cq-btn:hover{filter:saturate(1.05) brightness(.97)}
.cq-btn:active{transform:translateY(1px)}
.cq-footer-link{transition:color .15s ease}
.cq-footer-link:hover{color:#fff !important}
.cq-related:hover{border-color:#cfe0f8;box-shadow:0 14px 34px -24px rgba(20,40,74,.4)}
.cq-tab{transition:background .15s ease,color .15s ease,border-color .15s ease}

/* ---------- header / nav ---------- */
.cq-hamburger{display:none;background:none;border:1px solid var(--line);border-radius:9px;
  width:42px;height:40px;cursor:pointer;align-items:center;justify-content:center;color:var(--navy)}
.cq-hamburger svg{width:20px;height:20px}
.cq-mobile-menu{display:none}

/* services dropdown: JS + hover both supported */
.cq-dropdown[data-open="true"] .cq-dropdown-panel{display:flex !important}

/* ---------- accordion FAQ ---------- */
.cq-faq{border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}
.cq-faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;
  align-items:center;gap:16px;padding:18px 22px;font-family:'Space Grotesk',sans-serif;
  font-size:16px;font-weight:600;color:var(--ink)}
.cq-faq summary::-webkit-details-marker{display:none}
.cq-faq summary .cq-faq-icon{flex:none;width:22px;height:22px;border-radius:50%;
  background:var(--wash-blue);color:var(--blue);display:flex;align-items:center;
  justify-content:center;font-size:18px;line-height:1;transition:transform .2s ease}
.cq-faq[open] summary .cq-faq-icon{transform:rotate(45deg)}
.cq-faq .cq-faq-body{padding:0 22px 20px;font-size:14.5px;color:var(--slate);line-height:1.6}

/* ---------- modal (quote form) ---------- */
.cq-modal{position:fixed;inset:0;z-index:100;display:none;align-items:center;justify-content:center;padding:20px}
.cq-modal[data-open="true"]{display:flex}
.cq-modal-backdrop{position:absolute;inset:0;background:rgba(15,30,56,.55);backdrop-filter:blur(2px)}
.cq-modal-card{position:relative;width:100%;max-width:460px;background:#fff;border-radius:18px;
  padding:30px 30px 26px;box-shadow:0 40px 90px -30px rgba(20,40,74,.6);
  max-height:calc(100vh - 40px);overflow:auto}
.cq-modal-close{position:absolute;top:14px;right:14px;background:none;border:none;cursor:pointer;
  font-size:22px;line-height:1;color:var(--muted);width:34px;height:34px;border-radius:8px}
.cq-modal-close:hover{background:#f2f6fc;color:var(--ink)}
.cq-field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.cq-field label{font-size:13px;font-weight:600;color:var(--ink)}
.cq-field input,.cq-field select,.cq-field textarea{
  font-family:inherit;font-size:14.5px;color:var(--ink);padding:11px 13px;
  border:1px solid var(--line);border-radius:9px;background:#fff;width:100%}
.cq-field input:focus,.cq-field select:focus,.cq-field textarea:focus{
  outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(47,111,208,.15)}
.cq-field textarea{resize:vertical;min-height:74px}
.cq-modal-success{text-align:center;display:flex;flex-direction:column;gap:12px;align-items:center;padding:14px 0}
.cq-modal-success .cq-check{width:56px;height:56px;border-radius:50%;background:var(--wash-blue);
  color:var(--green);display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:700}

/* ---------- responsive collapses (override inline grids) ---------- */
@media (max-width:1000px){
  .cq-header{padding:14px 22px !important;gap:14px !important}
  .cq-nav,.cq-header-cta{display:none !important}
  .cq-hamburger{display:inline-flex}
  .cq-mobile-menu[data-open="true"]{display:block}
}
@media (max-width:900px){
  .cq-hero{grid-template-columns:1fr !important;gap:30px !important;padding:44px 22px 46px !important}
  .cq-split{grid-template-columns:1fr !important;gap:32px !important}
  .cq-g4{grid-template-columns:repeat(2,1fr) !important}
  .cq-article{grid-template-columns:1fr !important;gap:30px !important}
  .cq-article aside{position:static !important}
}
@media (max-width:760px){
  .cq-g3{grid-template-columns:1fr !important}
  .cq-g2{grid-template-columns:1fr !important}
  .cq-footer-grid{grid-template-columns:1fr 1fr !important;gap:28px !important}
  .cq-sec{padding-left:22px !important;padding-right:22px !important}
  .cq-hero h1{font-size:38px !important}
  .cq-h2{font-size:27px !important}
}
@media (max-width:560px){
  .cq-g4{grid-template-columns:1fr 1fr !important}
  .cq-footer-grid{grid-template-columns:1fr !important}
  .cq-compare{font-size:12.5px}
  .cq-topbar{gap:10px !important;font-size:11px !important}
  .cq-cta-band{padding:36px 24px !important}
  .cq-hero h1{font-size:32px !important}
  .cq-modal-card{padding:24px 20px}
}
