/* The Garage MKG — inner pages (loaded after base.css).
   Page markup carries the design's inline styles; this file holds the pieces inline styles can't express. */

/* hero text is revealed by js/site-motion.js: hidden until it runs (class set in <head>, cleared by the script + a 3s failsafe) */
.js-anim [data-hero-text]{opacity:0}

/* links inside page content: ink, bronze on hover (header/footer set their own) */
main a{color:var(--color-ink-900)}
main a:hover{color:var(--color-bronze-600)}
main a.btn:hover{color:var(--color-ink-900)}

/* FAQ accordions (native <details>) */
summary{list-style:none}
summary::-webkit-details-marker{display:none}
details[open]>summary [data-plus]{transform:rotate(45deg)}

@media (prefers-reduced-motion:reduce){main *{transition:none!important}}

/*gm-cards*/
/* 24-track grid: with a plain `gap` the 23 column gaps alone exceed a phone's width and the grid overflows.
   Cap the column gap at 1/24 of the grid so the tracks can never go negative; spacing is unchanged wherever it fits. */
[data-cards]{display:grid;grid-template-columns:repeat(24,minmax(0,1fr));column-gap:min(var(--card-gap,16px),calc(100% / 24))}
[data-cards]>*{grid-column:span 24;min-width:0}
@media (min-width:600px) and (max-width:1099px){
[data-cards="2"]>*{grid-column:span 12}
[data-cards="4"]>*{grid-column:span 12}
[data-cards="5"]>*{grid-column:span 12}
[data-cards="5"]>:last-child{grid-column:7/span 12}
[data-cards="6"]>*{grid-column:span 12}
[data-cards="7"]>*{grid-column:span 12}
[data-cards="7"]>:last-child{grid-column:7/span 12}
[data-cards="8"]>*{grid-column:span 12}
[data-cards="9"]>*{grid-column:span 12}
[data-cards="9"]>:last-child{grid-column:7/span 12}
[data-cards="10"]>*{grid-column:span 12}
[data-cards="11"]>*{grid-column:span 12}
[data-cards="11"]>:last-child{grid-column:7/span 12}
[data-cards="12"]>*{grid-column:span 12}
}
@media (min-width:820px) and (max-width:1099px){
[data-cards="3"]>*{grid-column:span 8}
}
@media (min-width:1100px){
[data-cards="2"]>*{grid-column:span 12}
[data-cards="3"]>*{grid-column:span 8}
[data-cards="4"]>*{grid-column:span 6}
[data-cards="5"]>*{grid-column:span 8}
[data-cards="5"]>:nth-child(4){grid-column:5/span 8}
[data-cards="6"]>*{grid-column:span 8}
[data-cards="7"]>*{grid-column:span 6}
[data-cards="7"]>:nth-child(5){grid-column:4/span 6}
[data-cards="8"]>*{grid-column:span 6}
[data-cards="9"]>*{grid-column:span 8}
[data-cards="10"]>*{grid-column:span 6}
[data-cards="10"]>:nth-child(9){grid-column:7/span 6}
[data-cards="11"]>*{grid-column:span 6}
[data-cards="11"]>:nth-child(9){grid-column:4/span 6}
[data-cards="12"]>*{grid-column:span 6}
}
[data-cards][data-half]>*{grid-column:span 12}
[data-half][data-cards="3"]>:last-child{grid-column:7/span 12}
[data-half][data-cards="5"]>:last-child{grid-column:7/span 12}
[data-half][data-cards="7"]>:last-child{grid-column:7/span 12}
[data-half][data-cards="9"]>:last-child{grid-column:7/span 12}
[data-half][data-cards="11"]>:last-child{grid-column:7/span 12}
@media (max-width:499px){[data-cards][data-half]>*{grid-column:span 24!important}}
@media (max-width:599px){[data-tiles][data-cards]>*{grid-column:span 12}[data-tiles][data-cards="7"]>:last-child{grid-column:7/span 12}[data-tiles][data-cards="3"]>*{grid-column:span 24}}
@media (min-width:600px){
[data-tiles][data-cards="3"]>*{grid-column:span 8}
[data-tiles][data-cards="7"]>*{grid-column:span 6}
[data-tiles][data-cards="7"]>:nth-child(5){grid-column:4/span 6}
}
[data-gal]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important}
@media (min-width:1000px){[data-gal]{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
/*/gm-cards*/

/* reviews: balanced masonry columns (1 / 2 / 3) */
.reviews-cols{column-count:1;column-gap:18px}
@media (min-width:720px){.reviews-cols{column-count:2}}
@media (min-width:1100px){.reviews-cols{column-count:3}}
.reviews-cols>figure{break-inside:avoid;margin:0 0 18px !important}

/* image gallery thumbnails + lightbox */
.gal-btn{all:unset;box-sizing:border-box;display:block;width:100%;cursor:zoom-in;border-radius:10px}
.gal-btn:focus-visible{outline:2px solid var(--color-bronze-500);outline-offset:3px}
.gal-btn img{transition:transform .9s cubic-bezier(.22,1,.36,1)}
.gal-btn:hover img,.gal-btn:focus-visible img{transform:scale(1.06)}
.gal-ov{position:absolute;inset:0;background:linear-gradient(180deg,rgba(21,22,23,0) 45%,rgba(21,22,23,.72));opacity:0;transition:opacity .4s ease}
.gal-cap{position:absolute;left:18px;right:18px;bottom:16px;display:flex;justify-content:space-between;align-items:center;gap:12px;color:#fff;font-size:13px;font-weight:600;line-height:1.4;opacity:0;transform:translateY(8px);transition:opacity .4s ease,transform .5s cubic-bezier(.22,1,.36,1)}
.gal-btn:hover .gal-ov,.gal-btn:focus-visible .gal-ov,.gal-btn:hover .gal-cap,.gal-btn:focus-visible .gal-cap{opacity:1}
@media (max-width:599px){.gal-cap{justify-content:flex-end}.gal-cap>span:first-child{display:none}}   /* tiles are too small for the caption; the button keeps its aria-label */
.gal-btn:hover .gal-cap,.gal-btn:focus-visible .gal-cap{transform:translateY(0)}
.lightbox{position:fixed;inset:0;z-index:80;background:rgba(12,12,13,.95);display:flex;align-items:center;justify-content:center;padding:clamp(64px,8vh,88px) clamp(12px,7vw,104px);box-sizing:border-box;font-family:var(--font-sans);animation:lbFade .25s ease}
.lightbox[hidden]{display:none}
@keyframes lbFade{from{opacity:0}to{opacity:1}}
.lightbox-fig{margin:0;display:flex;flex-direction:column;align-items:center;gap:14px;max-width:100%;max-height:100%}
.lightbox-img{display:block;max-width:100%;max-height:calc(100vh - 190px);width:auto;height:auto;object-fit:contain;border-radius:6px;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.lightbox figcaption{display:flex;gap:14px;align-items:baseline;color:rgba(255,255,255,.82);font-size:14px;text-align:center}
.lightbox-pos{font-family:var(--font-display-accent);font-size:11px;letter-spacing:.14em;color:var(--color-bronze-300)}
.lightbox-btn{position:absolute;width:48px;height:48px;border-radius:50%;border:1px solid rgba(255,255,255,.3);background:rgba(21,22,23,.6);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:border-color .2s ease,color .2s ease}
.lightbox-btn:hover{border-color:var(--color-bronze-500);color:var(--color-bronze-300)}
.lightbox-close{top:clamp(12px,2vw,24px);right:clamp(12px,2vw,24px)}
.lightbox-prev{left:clamp(8px,2vw,28px);top:50%;transform:translateY(-50%)}
.lightbox-next{right:clamp(8px,2vw,28px);top:50%;transform:translateY(-50%)}
@media (prefers-reduced-motion:reduce){.lightbox{animation:none}}

/* ---------------------------------------------------------------------------------------------
   Legal pages (Terms & Conditions, Privacy Policy): article + "On This Page" navigation.
   < 1100px  one column: the TOC is a compact collapsible card above the article, never sticky.
   >= 1100px two columns: sticky sidebar TOC next to the article.
   --------------------------------------------------------------------------------------------- */
.legal-layout{max-width:1432px;margin:0 auto;padding:0 clamp(20px,4vw,56px);box-sizing:border-box;width:100%;display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(28px,4vw,40px);align-items:start}
.legal-toc{min-width:0}
.legal-toc details{border:1px solid rgba(21,22,23,.12);border-radius:var(--radius-lg);background:var(--color-ink-50)}
.legal-toc summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:0 20px;cursor:pointer;font-family:var(--font-display-accent);font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--color-accent-text)}
.legal-toc summary::after{content:"";flex:none;width:8px;height:8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .2s ease}
.legal-toc details[open] summary::after{transform:translateY(2px) rotate(225deg)}
.legal-toc-list{list-style:none;margin:0;padding:0 20px 8px;display:grid;grid-template-columns:minmax(0,1fr);column-gap:32px;border-top:1px solid rgba(21,22,23,.12)}
@media (min-width:600px){.legal-toc-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
.legal-toc-link{display:block;padding:12px 0;font-size:14px;font-weight:600;line-height:1.4;color:var(--color-ink-500);border-bottom:1px solid rgba(21,22,23,.08)}
.legal-article{min-width:0;max-width:760px;display:flex;flex-direction:column;gap:18px}
/* html already has scroll-padding-top:96px; +16px lifts the heading clear of the 97px-tall scrolled header */
.legal-article h2{scroll-margin-top:16px}

@media (min-width:1100px){
  .legal-layout{grid-template-columns:minmax(220px,300px) minmax(0,760px);column-gap:clamp(48px,5vw,88px);justify-content:start}
  .legal-toc{position:sticky;top:112px;max-height:calc(100vh - 136px);overflow-y:auto}
  .legal-toc details{border:0;border-radius:0;background:none}
  .legal-toc summary{min-height:0;padding:0;margin-bottom:14px;cursor:default;pointer-events:none}
  .legal-toc summary::after{display:none}
  .legal-toc-list{padding:0;grid-template-columns:minmax(0,1fr);border-top:1px solid rgba(21,22,23,.12)}
  .legal-toc-link{padding:10px 0;font-size:13.5px}
  .legal-toc details::details-content{content-visibility:visible;display:block}   /* where supported, shows the list even before JS opens it */
}

/* sticky columns: only where the columns really sit side by side and the viewport is tall enough to show them.
   Below that they stay in normal flow, so a sticky element can never ride over the content that follows it. */
.sticky-desktop{position:static}
@media (min-width:1100px) and (min-height:700px){.sticky-desktop{position:sticky;top:112px}}

/* blog / post sidebar: full width of its container on tablet and phone, a 300-400px column beside the article on desktop */
.blog-aside{flex:1 1 100%;min-width:0;max-width:none;box-sizing:border-box;display:flex;flex-direction:column;gap:20px;padding:clamp(28px,3vw,40px);border-radius:var(--radius-lg);background:var(--color-ink-900);color:#fff;border:1px solid rgba(255,255,255,.08)}
.blog-aside img{max-width:100%}
@media (min-width:1100px){.blog-aside{flex:1 1 300px;max-width:400px}}

/* touch screens: text links that were 16-28px tall get a 44px hit area (address/directions, "Read Article") */
@media (max-width:899px){
  /* plain text links only: anchors whose inline style sets their own display (contact rows, cards) already size themselves */
  main a[href^="https://maps.google"]:not([style*="display"]),main a[aria-label^="Read "]:not([style*="display"]),main a[href$="blog/"]:not([style*="display"]){display:inline-flex;align-items:center;min-height:44px}
  main a[aria-label^="Read "],main a[href$="blog/"]{min-height:44px}
}

/* ===== Responsive text, hero and link helpers (classes are set in the page markup; see README "Responsive conventions") ===== */
/* Text columns & measures.
   Inline pages used to cap stacked text columns at 440-560px. On a tablet the column wraps under its image and that cap
   leaves a third of the row empty (and, in a reversed row, pushes the text to the right). The cap now only applies where the
   columns sit side by side (>=1180px); below that a column may use the row up to a comfortable ~720px measure. */
.col-max{max-width:var(--col-max)}
.measure{max-width:var(--measure)}
@media (max-width:1179px){
  .col-max{max-width:min(100%,max(var(--col-max),720px))}
  .measure{max-width:min(100%,max(var(--measure),680px))}
}

/* Inner-page hero: the title column and the intro/CTA column share a row only from 1180px up.
   Below that the title takes the full row (a 534px column wrapped long titles to 5-6 lines at 1024px) and the intro sits under it. */
@media (max-width:1179px){.hero-lead{--hb:100%}}

/* "Call (231) …" text link beside the primary button: in a stacked (column) group it stretched to the full row, so its hover
   underline ran the whole width, and its 8px padding indented it from the button edge. Keep it as wide as its text, flush with the button. */
.hv3[href^="tel:"]{align-self:flex-start}
@media (max-width:1099px){.hv3[href^="tel:"]{margin-left:-8px}}

/* Line breaking: paragraphs and headings already carry text-wrap inline; list items, captions and sub-headings did not,
   which left single words alone on the last line (legal lists, gallery captions, card titles). */
main li,main figcaption,main summary{text-wrap:pretty}
main h3,main h4{text-wrap:balance}

/* generated hover rules (from design "style-hover") */
.hv1:hover{color:#e4b587 !important}
.hv2:hover{background:#b16f29 !important;color:#151617 !important}
.hv3:hover{color:#e4b587 !important;background-size:calc(100% - 16px) 1.5px !important}
.hv4:hover{border-color:#cd7f31 !important;color:#9a5d1b !important}
.hv5:hover{transform:scale(1.05) !important}
.hv7:hover{color:#151617 !important}
.hv8:hover{color:#9a5d1b !important}
.hv9:hover{color:#fff !important}
.hv10:hover{padding-left:10px !important;color:inherit !important}
.hv11:hover{background:#2a2b2c !important;color:#fff !important;border-color:#cd7f31 !important}
.hv12:hover{background:#f7f5f2 !important;color:#151617 !important;border-color:#cd7f31 !important}
.hv16:hover{transform:scale(1.04) !important}
.hv17:hover{border-color:rgba(205,127,49,.7) !important;transform:translateY(-3px) !important;box-shadow:0 14px 30px rgba(21,22,23,.08) !important;color:#151617 !important}
.hv18:hover{border-color:rgba(205,127,49,.85) !important;background:rgba(205,127,49,.12) !important;color:#fff !important}

