/* Desert Line Auto Glass: service pages only (after homepage.css + inner.css).
   Cards with the section photo, the price gauge, insurer logos, credential badges, area notes, glass brand tiles. */

/* ---------- cards (H3 blocks), with the section's photo when it has one ---------- */
.cards { display: grid; gap: clamp(16px, 2vw, 24px); margin-top: clamp(40px, 5vw, 60px); align-items: stretch; }
.cards--photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cards-media { margin: 0; }
.cards-media .pane { height: 100%; min-height: 320px; aspect-ratio: auto; }
.cards-media .pane-img { object-position: 40% 50%; }
.cards-list { display: grid; gap: 16px; }
.cards:not(.cards--photo) .cards-list { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { position: relative; padding: clamp(24px, 2.6vw, 32px); border: 1px solid var(--g2); border-radius: 16px; background: var(--white); }
.card::before { content: ""; position: absolute; left: 30px; top: -1px; width: 46px; height: 2px; background: var(--e2); transition: width .6s var(--ease); }
.card-ico { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 18px; border-radius: 12px; background: var(--g0); border: 1px solid var(--g2); }
.card-ico svg, .why-grid--svc .why-ico svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card p { margin-top: 10px; color: var(--ink2); font-size: 16px; }
@media (hover: hover) { .card:hover::before { width: 96px; } }

/* ---------- cost: the price gauge (figures from the doc's own lines) ---------- */
.k-cost .cost-head { position: static; }
.gauge { position: sticky; top: calc(var(--hdr) + 40px); padding: clamp(24px, 3vw, 38px); border: 1px solid var(--g2); border-radius: 18px; background: var(--white); box-shadow: 0 50px 90px -70px rgba(10, 16, 32, .5); }
.gauge-axis { position: relative; height: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line2); padding-bottom: 26px; }
.gauge-axis span { position: absolute; top: 0; left: calc(var(--x) * 100%); transform: translateX(-50%); font-family: var(--mono); font-size: 11.5px; color: var(--ink3); white-space: nowrap; }
.gauge-axis span:first-child { transform: none; }
.gauge-row { padding: 22px 0 8px; }
.gauge-row + .gauge-row { border-top: 1px solid var(--line2); }
.gauge-name { font-stretch: 108%; font-weight: 650; font-size: 17px; color: var(--ink); }
.gauge-bar { position: relative; height: 54px; }
.gauge-track { position: absolute; left: 0; right: 0; top: 34px; height: 1px; background: var(--g2); }
.gauge-range { position: absolute; top: 32px; height: 5px; left: calc(var(--a) * 100%); width: calc((var(--b) - var(--a)) * 100%); border-radius: 3px;
  background: linear-gradient(90deg, var(--e1), var(--e3)); transform-origin: left; }
.gauge-row--from .gauge-range { background: linear-gradient(90deg, var(--e1), rgba(255, 178, 94, .45) 55%, rgba(255, 178, 94, 0)); }
.gauge-dot { position: absolute; top: 34px; left: calc(var(--a) * 100%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--white); border: 3px solid var(--e1); }
.gauge-dot--b { left: calc(var(--b) * 100%); border-color: var(--e3); }
.gauge-val { position: absolute; top: 4px; left: calc(var(--a) * 100%); transform: translateX(-50%); font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--eink); white-space: nowrap; }
.gauge-val--b { left: calc(var(--b) * 100%); }
.js .gauge .gauge-range { transform: scaleX(0); transition: transform 1.3s var(--ease); transition-delay: calc(.3s + var(--d) * 140ms); }
.js .gauge .gauge-dot, .js .gauge .gauge-val { opacity: 0; transition: opacity .5s var(--ease); transition-delay: calc(.45s + var(--d) * 140ms); }
.js .gauge.in .gauge-range { transform: scaleX(1); }
.js .gauge.in .gauge-dot, .js .gauge.in .gauge-val { opacity: 1; }

/* ---------- insurance: the insurers from the homepage doc's logo row ---------- */
.k-insurance .ins-grid { align-items: center; }
.ins-logos { list-style: none; margin: 0; padding: clamp(18px, 2.4vw, 28px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px;
  border: 1px solid var(--g2); border-radius: 18px; background: rgba(255, 255, 255, .55); }
.ins-logos .logo-tile { width: auto; height: 96px; grid-column: span 2; }
.ins-logos .logo-tile:nth-child(4) { grid-column: 2 / span 2; }
.ins-logos .logo-tile img { max-height: 56px; max-width: min(100%, 150px); }

/* ---------- why: credential badges under the intro ---------- */
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; padding: 0; }
.badges li { display: grid; place-items: center; height: 84px; padding: 12px 18px; border: 1px solid var(--g2); border-radius: 12px; background: var(--white); }
.badges img { width: auto; height: auto; max-height: 58px; max-width: 150px; }

/* ---------- service areas: one note per paragraph ---------- */
.notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(36px, 4vw, 52px); }
.note { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; padding: 24px 26px; border: 1px solid var(--g2); border-radius: 16px; background: var(--white); }
.note p { color: var(--ink2); }
.note-pin { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 138, 43, .14); }
.note-pin svg { width: 20px; height: 20px; fill: none; stroke: var(--eink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- glass brands: the doc's list as tiles; a logo where the client supplied one ---------- */
.gb-label { margin-top: clamp(34px, 4vw, 48px); }
.gb-label p { font-stretch: 106%; font-weight: 620; color: var(--ink); }
.gb-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.gb { display: grid; grid-template-rows: 92px auto; border: 1px solid var(--g2); border-radius: 16px; background: var(--white); overflow: hidden; }
.gb-mark { display: grid; place-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line2); }
.gb-mark img { width: auto; height: auto; max-width: 100%; max-height: 54px; }
.gb-mark svg { width: 40px; height: 40px; fill: none; stroke: var(--ink3); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.gb-name { padding: 14px 16px 16px; font-stretch: 106%; font-weight: 640; font-size: 15.5px; line-height: 1.35; color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) { .gb-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .cards--photo { grid-template-columns: minmax(0, 1fr); }
  .cards-media .pane { aspect-ratio: 16 / 10; min-height: 0; height: auto; }
  .gauge { position: static; }
}
@media (max-width: 760px) {
  .notes { grid-template-columns: minmax(0, 1fr); }
  .ins-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ins-logos .logo-tile, .ins-logos .logo-tile:nth-child(4) { grid-column: auto; }
  .ins-logos .logo-tile:last-child { grid-column: 1 / -1; }
  .gb-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) { .note { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* ---------- tables from the docs (price lists, business hours) ---------- */
.tbl { overflow-x: auto; border: 1px solid var(--g2); border-radius: 14px; background: var(--white); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.tbl th, .tbl td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line2); }
.tbl thead th { font-stretch: 118%; font-size: 11px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--ink3); background: var(--g0); }
.tbl tbody th { font-weight: 640; color: var(--ink); }
.tbl td { color: var(--ink2); font-variant-numeric: tabular-nums; }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }

/* ---------- a call label from the doc on a light section ---------- */
.btn-ghost-ink { background: var(--white); border-color: var(--g2); color: var(--ink); }
.btn-ghost-ink .ico { color: var(--eink); }
@media (hover: hover) { .btn-ghost-ink:hover { border-color: var(--e2); } }

/* ---------- utility pages: a photo under a text section's heading; list-style why items ---------- */
.txt-media { margin: 30px 0 0; }
.copy.pre { margin-top: 26px; max-width: 860px; }
/* checklist beside its card(s): the list reads on the left, the action card sits on the right */
.cards-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4.5vw, 72px); align-items: start; margin-top: clamp(32px, 4vw, 48px); }
.cards-split .copy.pre { margin-top: 0; max-width: none; }
.cards-split .cards { margin-top: 0; }
.cards-split .cards-list { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 980px) { .cards-split { grid-template-columns: minmax(0, 1fr); } }
.why-li { color: var(--ink2); font-size: 16px; }
.why-li b { display: block; margin-bottom: 6px; font-stretch: 106%; font-weight: 640; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.3; color: var(--ink); }
.cta-body > * + * { margin-top: 14px; }
.cta-body .ticks li { color: var(--mist2); }
.cta-body .ticks li::before { border-color: var(--e3); }
.cta-body .h3 { color: var(--mist); }
