/* Preview fixes, Nov 30 2026. Loaded after the site's own styles so these win. Brand: navy #0f1a2c, red #b20e0c. */

/* Anchored sections clear the sticky header (the form's first row was hidden under it). */
[id] { scroll-margin-top: 84px }

/* Buttons respond to a press (Emil: every button needs an :active state). */
.btn, .hh-b, .mbar a, .bare-tel { transition: transform .12s cubic-bezier(.2,.8,.2,1), background-color .15s ease, box-shadow .15s ease }
.btn:active, .hh-b:active, .mbar a:active, .bare-tel:active, #ckc-visualizer-btn:active { transform: scale(.97) }
@media (prefers-reduced-motion: reduce) { .btn, .hh-b, .mbar a, .bare-tel { transition: none } .btn:active, .hh-b:active, .mbar a:active, .bare-tel:active, #ckc-visualizer-btn:active { transform: none } }

/* ---------- Fix 8: desktop menu on one line ---------- */
@media (min-width: 900px) {
  .nav { gap: 26px; font-size: .98rem; white-space: nowrap }
  .nav a { white-space: nowrap }
  .hdr-phone, .hdr-cta .btn { white-space: nowrap }
  .hdr-cta { gap: 18px }
  .hdr-cta .btn.sm { padding: 10px 18px }
}

/* ---------- Fix 1: homepage hero leads with a finished floor ---------- */
.hh { background: #0f1a2c }
.hh-pic img { object-position: center 30% }
.hh:after { background: linear-gradient(90deg, #0f1a2cf5 0%, #0f1a2ce0 30%, #0f1a2c8c 52%, #0f1a2c14 74%, #0f1a2c00 100%), linear-gradient(180deg, transparent 70%, #0f1a2c99) }
@media (min-width: 980px) {
  .hh-grid { grid-template-columns: minmax(0, 600px) !important; min-height: min(76vh, 620px) !important; padding: 56px 20px !important }
}
.hh .lead { color: #e4e9f0 }
.hh-proof { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: #e4e9f0; font-size: .95rem }
.hh-proof li { display: flex; align-items: center; gap: 8px }
.hh-proof li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: #b20e0c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat }
/* Phones: the photo gets the top of the first screen, the words sit below it on navy */
@media (max-width: 699px) {
  .hh { display: flex; flex-direction: column }
  .hh-pic { position: relative; inset: auto; height: 58vw; max-height: 340px }
  .hh:after { display: none }
  .hh-grid { padding: 22px 16px 26px !important }
  .hh h1 { font-size: clamp(1.9rem, 8.4vw, 2.4rem) }
  .hh .lead { font-size: 1.02rem }
}

/* Quiz card moves to a strip under the hero */
.qstrip { background: #0f1a2c; padding: 0 0 32px; color: #e9eef3 }
.qstrip .hh-card { box-shadow: none; border-color: #263246 }
@media (min-width: 900px) {
  .qstrip { padding: 8px 0 40px }
  .qstrip .hh-card { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; align-items: center; gap: 8px 28px; padding: 22px 26px }
  .qstrip .hh-n { grid-column: 1 } .qstrip .hh-q { grid-column: 1; margin: 4px 0 0 }
  .qstrip .hh-o { grid-column: 2; grid-row: 1 / span 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px }
  .qstrip .hh-o .hh-b { margin: 0 }
}

/* ---------- Fix 2: short quote form ---------- */
.qf .two + .two { margin-top: 2px }
.qf-more { border: 1px solid #dbe1ea; border-radius: 10px; padding: 0 14px; margin: 6px 0 16px; background: #f7f9fc }
.qf-more > summary { cursor: pointer; padding: 13px 0; font-weight: 600; color: #0f1a2c; list-style-position: inside }
.qf-more > summary small, .qf .fld small { font-weight: 400; color: #56627a }
.qf-more[open] { padding-bottom: 8px }
#qf .chk { align-items: flex-start }
#qf .chk span { font-size: .8rem; line-height: 1.5; color: #46505d }
#qf .chk span b { color: #0f1a2c }
.qf .chk input + span:first-letter { }
#qf .flegal { font-size: .78rem; color: #46505d; margin-top: 10px; max-width: 68ch }

/* Round 3: garage size tap row (required) */
.qf-size { border: 0; margin: 2px 0 14px; padding: 0; min-width: 0 }
.qf-size legend { font-weight: 600; padding: 0; margin-bottom: 6px }
.qf-size-o { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px }
.qf-size-o label { position: relative; display: block; cursor: pointer }
.qf-size-o input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer }
.qf-size-o span { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 6px 4px; border: 1.5px solid #c9d2df; border-radius: 10px; background: #fff; font-weight: 600; text-align: center; transition: background-color .15s ease, border-color .15s ease, transform .12s cubic-bezier(.2,.8,.2,1) }
.qf-size-o input:checked + span { background: #0f1a2c; border-color: #0f1a2c; color: #fff }
.qf-size-o input:focus-visible + span { outline: 3px solid #b20e0c; outline-offset: 2px }
.qf-size-o label:active span { transform: scale(.97) }
.qf-size.bad .qf-size-o span { border-color: #b20e0c }
.lpf .qf-size legend, .lp-form .qf-size legend { color: inherit }
@media (prefers-reduced-motion: reduce) { .qf-size-o span { transition: none } .qf-size-o label:active span { transform: none } }

/* ---------- Fix 4: /garage on phones ---------- */
.bare-tel { white-space: nowrap; background: #b20e0c; color: #fff !important; border-radius: 999px; padding: 9px 16px; font-size: .92rem; text-decoration: none }
.bare-tel .ph-l { display: none }
@media (min-width: 480px) { .bare-tel .ph-s { display: none } .bare-tel .ph-l { display: inline } }
.mbar.bare3 { grid-template-columns: 1fr 1fr 1.3fr }

/* ---------- Fix 5: chat widget never covers content on phones ---------- */
@media (max-width: 899px) { chat-widget, #lc_text-widget, .lc_text-widget, [id^="lc_text-widget"] { display: none !important } }

/* ---------- Taste checker round 1 fixes ---------- */
/* Body text dark enough to read easily (7:1); grey kept for small labels. */
:root { --mut: #46505d }
/* A focus ring you can see on navy and on white (keyboard users). */
:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; box-shadow: 0 0 0 6px #b20e0c; border-radius: 4px }
/* Skip link stays on screen when focused, off screen otherwise, without running past the edge. */
.skip { left: 10px !important; top: 10px; transform: translateY(-200%); transition: none }
.skip:focus { transform: none }
/* Price lines wrap inside their cards instead of being cut off. */
.price { white-space: normal !important }
.card-f { flex-wrap: wrap }
/* Review cards keep their own height (no empty bands). */
.revs { align-items: start }
/* Phones: every link or control outside running text is a 44px tap target. */
@media (max-width: 899px) {
  .card-f .lnk, .card h3 a, .ftr ul a, .faq summary, .ba2 p a, .card-b p > a:only-child { display: inline-flex; align-items: center; min-height: 44px }
  .ftr ul { gap: 0 }
  .qf .chk { min-height: 44px; padding: 4px 0 }
  .qstrip { padding-top: 14px }
}
/* Desktop: the homepage hero fills the first screen on its own. */
@media (min-width: 980px) { .hh-grid { min-height: calc(100svh - 60px) !important } }
@media (max-width: 699px) { .hh { min-height: calc(100svh - 60px) } .hh-grid { flex: 1 } }

/* Impeccable round 1 */
h1, h2, h3 { text-wrap: balance }
p, li, blockquote, figcaption { text-wrap: pretty }
.flegal { max-width: 68ch }
.hh-rv { border-left: 0 !important; border-radius: 12px; background: #0f1a2cb3 }

/* Round 4: quiz photo tiles. The site-wide ".ph" photo rule (4:3 box, gray gradient) also matched the quiz buttons
   and cut their labels off. Let the tile grow to fit photo + label. */
.qo.ph{aspect-ratio:auto!important;height:auto;background:var(--panel2,#16202e)}
.qo.ph{position:relative}
.qo.ph img[data-sample]{filter:none}
.qo.ph:has(img[data-sample])::before{content:"Sand sample";position:absolute;top:10px;left:10px;z-index:1;padding:3px 8px;border-radius:6px;background:#0f1a2ce6;color:#fff;font:600 12px/1.3 system-ui,sans-serif}

/* Round 4: quiz result card. The quiz panel is narrow, so the photo goes on top at full width instead of a thin side strip. */
.qz .rcard{display:block}
.qz .rmedia{position:relative;width:100%}
.qz .rmedia #rImg{width:100%;aspect-ratio:16/10;object-fit:cover;display:block}
.qz .rmedia:not(:has(#rImg:not([style*="none"]))):not(:has(#rBlend:not([hidden]))){display:none}
/* Consent text on the dark quiz card: the bold consent headings were dark on dark (invisible). Same wording, readable. */
#qzContact .chk b,.qz .chk b{color:#fff!important}
#qzContact .chk span,.qz .chk span{color:#c5cfdb!important}
.qz .flegal{color:#aeb9c7!important}
