/* Motion Auto Detailing site styles. All layout and visual styling is inline in the HTML (exported from the design). This file holds only what inline styles cannot: resets, hover states, and the responsive and interactive visibility rules. */
html{scroll-behavior:smooth;scroll-padding-top:72px}
/* The sticky header is accounted for by scroll-padding above (it also keeps keyboard focus from hiding under the
   header), so sections no longer add their own 72px offset. Anchors land exactly where they did before. */
main [id]{scroll-margin-top:0 !important}
body{margin:0;background:#0a0a0a;color:#f2f2f2;font-family:'Barlow',system-ui,sans-serif;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:#f2f2f2;text-decoration:none}
a:hover{color:#ffffff}
::selection{background:#d71920;color:#ffffff}
:focus-visible{outline:2px solid #d71920;outline-offset:2px}
img{display:block;max-width:100%}

/* Hover states (from the design's style-hover values; !important beats the inline base style) */
.hv1:hover{color:#ffffff !important;}
.hv2:hover{background:#b5141a !important;color:#ffffff !important;}
.hv3:hover{border-color:#9a9a9a !important;color:#ffffff !important;}
.hv4:hover{border-color:#d71920 !important;color:#ffffff !important;}
.hv5:hover{border-color:#4a4a4a !important;}
.hv6:hover{border-color:#b0b0b0 !important;color:#ffffff !important;}
.hv7:hover{color:#ffffff !important;text-decoration:underline !important;}
.hv8:hover{border-color:#8a8a8a !important;color:#ffffff !important;}
.hv9:hover{color:#ffffff !important;border-color:#9a9a9a !important;}
.hv10:hover{opacity:0.88 !important;}
.hv11:hover{border-color:#9a9a9a !important;}
.hv12:hover{background:#b5141a !important;}
.hv13:hover{background:#141414 !important;color:#ffffff !important;}
.hv14:hover{border-color:#d9dedb !important;color:#ffffff !important;}

/* Navigation: desktop links at 1120px and wider, compact bar and slide down panel below */
[data-if="panel"]{display:none !important}
@media (max-width:1119.98px){
  [data-if="desktop"]{display:none !important}
  header.menu-open [data-if="panel"]{display:block !important}
}
@media (min-width:1120px){
  [data-if="mobile"]{display:none !important}
}

/* Subscriptions: Contact Steven options, revealed by the button */
[data-if="open"]{display:none !important}
.steven-open [data-if="open"]{display:flex !important}

/* Gallery: filter tabs (active tab is white with a red underline) */
.g-tab[aria-pressed="true"]{color:#ffffff !important}
.g-tab[aria-pressed="true"] > span:last-child{transform:scaleX(1) !important}

/* Gallery preview fade: photos showing through it stay clickable; only its label and button take clicks */
#g-more{pointer-events:none}
#g-more > *{pointer-events:auto}

/* Scroll reveal (js/reveal.js adds these only below the first screen; removed again when the animation ends) */
.rv{opacity:0 !important;transform:translate3d(0,28px,0) !important;
  transition:opacity 0.7s cubic-bezier(0.22,0.61,0.36,1),transform 0.7s cubic-bezier(0.22,0.61,0.36,1) !important;
  transition-delay:var(--rv-delay,0ms) !important}
.rv.rv-in{opacity:1 !important;transform:none !important}
@media (prefers-reduced-motion:reduce){.rv{opacity:1 !important;transform:none !important;transition:none !important}}

/* Skip link: off screen until it receives keyboard focus */
.skip-link{position:absolute;left:12px;top:-200px;z-index:200;display:inline-flex;align-items:center;height:44px;padding:0 18px;
  background:#d71920;color:#ffffff;font-family:'Barlow Condensed',sans-serif;font-weight:600;font-size:16px;letter-spacing:0.12em;
  text-transform:uppercase;border-radius:2px}
.skip-link:focus{top:12px;color:#ffffff}
main:focus{outline:none}

/* Gallery: lightbox */
[data-if="viewing"]{display:none !important}
body.lb-open [data-if="viewing"]{display:flex !important}
body.lb-open{overflow:hidden}
