/* ==========================================================================
   Garages and carports. Built on the roof page's bones, with its own middle:
   a sizer that draws the plan while you pick what has to live in there.
   ========================================================================== */

/* ---------- the sizer ---------- */
.gx-fit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-areas: "picks plan" "read plan"; grid-template-rows: auto 1fr;
  column-gap: 40px; row-gap: 26px; align-items: start; }
.gx-picks { grid-area: picks; display: grid; gap: 22px; }
.gx-read { grid-area: read; display: grid; gap: 16px; align-content: start; }
.gx-set { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.gx-set legend { padding: 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gx-chip { height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 14.5px; color: var(--ink); cursor: pointer; transition: border-color .16s, background .16s, color .16s; }
.gx-chip:hover { border-color: var(--ink); }
.gx-chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
#gx-extras .gx-chip.on { background: var(--brand); border-color: var(--brand); }

.gx-out { display: grid; gap: 0; margin-top: 4px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; }
.gx-out-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line-2); }
.gx-out-row:first-child { border-top: 0; }
.gx-out-row span { font-size: 14px; color: var(--muted); }
.gx-out-row b { font-size: 19px; font-weight: 500; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.gx-out-row:first-child b { font-size: 24px; color: var(--brand); }
.gx-note { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 0; }
.gx-cta { align-self: start; justify-self: start; }

/* the plan, drawn from above */
.gx-plan { grid-area: plan; position: sticky; top: 110px; }
.gx-plan-box { position: relative; display: grid; place-items: center; padding: 46px 46px 34px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); min-height: 430px; }
.gx-plan-inner { position: relative; width: min(100%, 320px); max-height: 340px; border: 2px solid var(--ink); border-radius: 4px; background:
  repeating-linear-gradient(45deg, rgba(5, 15, 21, .04) 0 8px, transparent 8px 16px); transition: aspect-ratio .4s cubic-bezier(.22, 1, .36, 1); }
.gx-plan-box[data-posts="yes"] .gx-plan-inner::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 12px; height: 12px; margin-left: -6px; border-radius: 2px; background: var(--ink); }
/* the door sits on the bottom edge of the plan, not floating under it */
.gx-door { position: absolute; left: 50%; transform: translateX(-50%); bottom: -5px; height: 8px; border-radius: 2px; background: var(--brand); box-shadow: 0 0 0 3px #fff; transition: width .4s cubic-bezier(.22, 1, .36, 1); }
.gx-dim { position: absolute; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); background: #fff; padding: 2px 8px; }
.gx-dim-w { top: 16px; left: 50%; transform: translateX(-50%); }
.gx-dim-h { top: 50%; right: 10px; transform: translateY(-50%) rotate(90deg); transform-origin: center; }
.gx-plan-hint { text-align: center; font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }

/* ---------- the four kinds ---------- */
.gx-kinds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.gx-kind { display: grid; gap: 12px; align-content: start; padding: 24px 22px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color .18s, transform .18s; }
.gx-kind:hover { border-color: var(--brand); transform: translateY(-3px); }
.gx-kind-top { display: flex; align-items: baseline; gap: 12px; }
.gx-kind-n { font-size: 13px; letter-spacing: .1em; color: var(--brand); font-variant-numeric: tabular-nums; }
.gx-kind h3 { margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -.3px; }
.gx-kind p { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0; }
.gx-kind ul { margin: 2px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.gx-kind li { position: relative; padding-left: 20px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.gx-kind li::before { content: ""; position: absolute; left: 0; top: calc((1.5em - 8px) / 2);
  width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--brand); }

/* ---------- the three ways to get a garage ---------- */
.rx-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.gx-vs { display: grid; gap: 12px; }
.gx-vs-row { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.gx-vs-row.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 14px 34px rgba(25, 136, 255, .12); }
.gx-vs-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.gx-vs-h b { font-size: 17px; font-weight: 500; letter-spacing: -.2px; }
.gx-vs-h span { font-size: 13px; color: var(--muted); }
.gx-vs-row.on .gx-vs-h span { color: var(--brand); }
.gx-vs-row p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }


@media (max-width: 1080px) {
  .gx-fit { grid-template-columns: 1fr; grid-template-areas: "picks" "plan" "read"; grid-template-rows: auto; row-gap: 26px; }
  .gx-plan { position: static; }
  .gx-kinds { grid-template-columns: 1fr 1fr; }
  .rx-two { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  .gx-kinds { grid-template-columns: 1fr; }
  .gx-chip { height: 40px; padding: 0 13px; font-size: 14px; }
  .gx-plan-box { padding: 40px 30px 30px; min-height: 340px; }
  .gx-out-row:first-child b { font-size: 21px; }
}


/* ---------- the four kinds, drawn ----------
   Four front elevations off the same frame, so the difference between a
   carport and a workshop is something you see before you read it. Drawn, not
   generated: same roof, same posts, same car, and only the closing in changes.
   ------------------------------------------------------------------------ */
.gx-kind { padding-top: 0; overflow: hidden; }
.gx-kind-draw { margin: 0 -22px 2px; padding: 18px 22px 14px; background: var(--sand); border-bottom: 1px solid var(--line-2); }
.gx-kind-draw svg { display: block; width: 100%; height: auto; }
.gxd-ground { stroke: var(--ink); stroke-width: 1.6; }
.gxd-ink { fill: var(--ink); }
.gxd-fill { fill: #dfe5ea; }
.gxd-ghost { fill: #c3ccd4; }
.gxd-ghost-fill { fill: #c3ccd4; }
.gxd-ink-line { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.gxd-dash { stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 4 4; }
.gxd-car { fill: #b6c2cc; }
.gx-kind:hover .gxd-car { fill: var(--brand); }
.gxd-car, .gxd-fill { transition: fill .22s ease; }
.gx-kind:hover .gxd-fill { fill: #d4dde4; }

/* the closing picture now sits inside the dark band, under the three promises */
.gx-cta-media { margin: 34px 0 0; border-radius: var(--r); overflow: hidden; }
.gx-cta-media img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
