/* Stonebriar Smile Design, website v2 shared rules (November 9 and 10, 2026): the hero with photo and video
   (.hv2, homepage) and the 12px card radius. Loaded on every v2 page before its own v2-pages/<key>.css. */

/* ---- v2 hero with the staging photo and video (Renan, November 9, 2026) ----
   Abraham's hero puts one photo at 84% width on the right, faded in from the left. Staging keeps
   its own photo (white coats; wide crop on desktop) and plays the live site's video over it on
   desktop, so the photo, the video and the fade sit together in .hv2-media. */
.hero.bleed.hv2 .frame{display:flex;justify-content:flex-end}
.hv2-media{position:relative;width:84%;height:100%;flex:none;-webkit-mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.05) 6%,rgba(0,0,0,.2) 12%,rgba(0,0,0,.45) 18%,rgba(0,0,0,.72) 25%,rgba(0,0,0,.92) 32%,#000 40%);mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.05) 6%,rgba(0,0,0,.2) 12%,rgba(0,0,0,.45) 18%,rgba(0,0,0,.72) 25%,rgba(0,0,0,.92) 32%,#000 40%)}
.hero.bleed.hv2 .hv2-media picture{position:absolute;inset:0}
.hero.bleed.hv2 .hv2-media img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 0;-webkit-mask-image:none;mask-image:none}
.hv2 .hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .6s ease;display:none}
.hv2 .hero-video-toggle{display:none}
@media (min-width:1025px){
.hv2 .hero-video{display:block}
.hv2 .hero-video.is-playing{opacity:1}
.hv2.video-on figcaption{display:none}
.hv2.video-on .hero-video-toggle:not([hidden]){display:grid;place-items:center;position:absolute;right:var(--s-3);bottom:var(--s-3);z-index:2;width:44px;height:44px;padding:0;border-radius:50%;border:1px solid rgba(255,255,255,.6);background:rgba(32,41,69,.55);color:#fff;cursor:pointer}
.hv2 .hero-video-toggle .i-play,.hv2 .hero-video-toggle.is-paused .i-pause{display:none}
.hv2 .hero-video-toggle.is-paused .i-play{display:block}
}
/* Phones keep the October 27 hero (Renan, November 9, 2026): photo on top, text below on navy. */
@media (max-width:700px){
.hero.hv2{display:flex;align-items:flex-end;min-height:calc(100svh - 73px)}
.hero.hv2>.wrap{width:100%}
.hero.hv2 .hero-grid{padding-block:var(--s-10) var(--s-12)}
.hero.bleed.hv2 .frame{background:var(--navy)}
.hv2-media{width:100%;height:62%;-webkit-mask-image:none;mask-image:none}
.hero.bleed.hv2 .hv2-media img{object-position:40% 0}
.hero.bleed.hv2::after{background:linear-gradient(0deg,rgba(32,41,69,1) 0%,rgba(32,41,69,1) 38%,rgba(32,41,69,.55) 48%,rgba(32,41,69,0) 62%)}
}

/* v2 card radius (Renan, November 10, 2026; handoff "Home v2 card radius change", extended to every v2 page the same
   day): cards get back the approved 12px card radius (--r-card) and clip their photos. Cards are .card (service,
   info and dentist cards), the closing cards (.cx-card) and the story-carousel cards (.st51-card, .tw51-card).
   Panels, photo frames, tiles and small controls stay square as Abraham designed them; buttons stay 6px.
   !important because each page's own rules set these to 0 with selectors of varying strength. */
:root body.sb-v2 .card,:root body.sb-v2 .cx-card,:root body.sb-v2 .st51-card,:root body.sb-v2 .tw51-card{border-radius:var(--r-card,12px)!important;overflow:hidden}
