/* Homepage hero video (v3.5.2, Direction C — Motion Editorial). The
   portrait 9:16 clip keeps its full frame: object-fit contain, never
   cover. The two-column hero grid comes from v3.css/home-v4.css (copy
   ~56% / media ~44% on desktop); this file owns the video column, the
   pause/play control, and the phone layouts. v3.5.6: desktop max-width
   360px → 300px — at 360px the figure stood 677px tall against a 495px
   copy column; at 300px the video itself (494px) matches the copy
   height. The 9:16 ratio is unchanged; only the frame is smaller.
   v3.5.8 (owner pick, Option A, Nov 19): desktop goes WIDER (400px)
   with a 4:5 cover crop, trimmed top and bottom — this OVERRIDES
   Direction C's "never cover" for desktop only, on the owner's explicit
   choice. object-position center 35% keeps all four star nails in
   frame. Phones keep the full 9:16 frame untouched (contain).
   v3.5.15 (owner request, Nov 20): the Pause button overlays the
   video's bottom-right corner instead of sitting in a row below it —
   the row pushed the figure 54px past the copy column's bottom edge
   while the video itself already lined up (measured in the local
   repro: copy bottom 575, video bottom 564, figure bottom 629). */
.sunrise-hero-video{margin:0;box-sizing:border-box;width:100%;max-width:400px;justify-self:center;padding:10px;background:var(--sunrise-blush);border:1px solid var(--sunrise-gold);border-radius:12px;position:relative;}
/* v3.8.0: the video + Pause toggle sit in their own frame, so the
   toggle stays pinned to the video's corner on phones (where the
   trust cards sit below the video) as well as on desktop (where
   the cards float over the panel). */
.sunrise-hero-video-frame{position:relative;}
.sunrise-hero-video video{display:block;width:100%;height:auto;aspect-ratio:9/16;object-fit:contain;border-radius:6px;background:#302A27;}
/* v3.8.0 trust cards: live rating + salon location. Phones: a row
   of two small cards below the video, never covering it. The
   frosted fill is the ivory token at 85% + a blur; the border is
   the motif gold at 45%; the shadow is espresso at 12% — all
   alpha variants of existing v3.6.2 tokens, no new colours. */
.sunrise-hero-trust-cards{display:flex;gap:8px;margin-top:10px;}
.sunrise-hero-trust-card{box-sizing:border-box;flex:1;min-width:0;padding:8px 10px;background:rgba(255,253,250,.85);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border:1px solid rgba(169,138,95,.45);border-radius:10px;box-shadow:0 4px 12px rgba(48,42,39,.12);}
.sunrise-hero-trust-value{display:block;color:var(--sunrise-espresso);font:700 15px/1.25 'DM Sans',sans-serif;}
.sunrise-hero-trust-label{display:block;margin-top:2px;color:#756A63;font:600 11px/1.35 'DM Sans',sans-serif;}
@media (min-width:801px){
 .sunrise-hero-video video{aspect-ratio:4/5;object-fit:cover;object-position:center 35%;}
 /* Frosted stack floating over the panel's top-right corner. */
 .sunrise-hero-trust-cards{position:absolute;top:18px;right:18px;flex-direction:column;margin-top:0;max-width:180px;}
 .sunrise-hero-trust-card{flex:none;}
}
.sunrise-hero-video-toggle{position:absolute;right:18px;bottom:18px;margin:0;min-height:44px;padding:6px 14px;background:#FFFDFA;color:var(--sunrise-espresso);border:1px solid var(--sunrise-gold);border-radius:999px;font:600 12px/1.2 'DM Sans',sans-serif;cursor:pointer;}
.sunrise-hero-video-toggle:focus-visible{outline:3px solid var(--sunrise-rust);outline-offset:2px;}
.sunrise-hero-video--fallback{padding:0;background:transparent;border:0;border-radius:0;}
.sunrise-hero-video--fallback .sunrise-site-photo{margin:0;}
/* Hero copy additions (v3.5.2): the phone number lives in the hero
   copy column, not only in the bottom bar. v3.5.18: the old
   .sunrise-v3-hero-offer rule is deleted — it matched nothing (the
   live offer <p> has no class); the offer is styled by the Direction
   A proof-strip rules in home-v4.css. */
.sunrise-v3-hero .sunrise-salon-phone{margin:6px 0 0;}
.sunrise-v3-hero .sunrise-salon-phone a{color:var(--sunrise-rust);}
/* Phones (361–800px): the core columns stack — copy first, video
   below. The video panel is width-limited and centred (v3.8.0),
   never a full-width 9:16 block dominating the viewport. The old
   :has() side-by-side rules are deleted: the
   video lives in its own column, not inside .sunrise-v3-hero, so
   they never matched anything. */
@media (min-width:361px) and (max-width:800px){
 .sunrise-hero-video{max-width:280px;margin-inline:auto;padding:8px;}
}
/* v3.8.0: phones get a capped video height, so the 9:16 video does
   not push the services far down the page. object-fit:contain
   keeps the full frame — the cap letterboxes, never crops. */
@media (max-width:800px){
 .sunrise-hero-video video{max-height:440px;}
}
/* Very narrow phones: stacked — copy first, then a centered portrait
   video at its natural 9:16 ratio. Never crop the video wider. */
@media (max-width:360px){
 .sunrise-hero-video{max-width:230px;margin-inline:auto;}
}

/* v3.8.54 — blended hero (Astra design, owner approved Nov 28);
   v3.8.55 — smoother blend (Astra mask spec, owner approved Nov 28).
   Active only while the hero-blend site photo is assigned; the
   :has() scope keeps every rule inert for the video hero. The long
   selector prefix beats the stale homepage rules in redesign-v35.css
   (the 90%/1160px columns cap) and redesign.css (the 480px img cap).
   Desktop: the photo fills the hero edge to edge at its natural
   height-fit size on the right; the fade is a mask ON the photo
   (transparent 0-3%, full at 40%) so its left edge dissolves into
   the ivory — no hero-wide gradient overlay (v3.8.55 replaced it;
   stacking the two washed out the fingers). Copy left in the 1152
   wrapper, max 560. Phone: photo band edge to edge, 240px tall
   (owner picked the taller band Nov 28 so the nails fill the width),
   mask fading down over the bottom 46%, copy below. Trust cards
   hidden (the trust line below the hero stays). */
.home .sunrise-content > .wp-block-group:first-child > .wp-block-columns:has(.sunrise-hero-blend) { position:relative; }
.sunrise-hero-blend { margin:0; }
.sunrise-hero-blend .sunrise-hero-trust-cards { display:none !important; }
.sunrise-hero-blend .sunrise-site-photo { margin:0; border:0 !important; border-radius:0 !important; box-shadow:none !important; }
.sunrise-hero-blend .sunrise-site-photo img { border:0 !important; border-radius:0 !important; box-shadow:none !important; }
@media (min-width:768px){
 .home .sunrise-content > .wp-block-group:first-child > .wp-block-columns:has(.sunrise-hero-blend) {
   width:100vw !important; max-width:none !important; margin-left:calc(50% - 50vw) !important; margin-right:0 !important;
   min-height:480px; padding:48px 0; align-items:center;
 }
 .sunrise-hero-blend { position:absolute; inset:0; z-index:0; }
 .sunrise-hero-blend .sunrise-site-photo { position:absolute; inset:0; }
 .home .sunrise-content > .wp-block-group:first-child > .wp-block-columns:has(.sunrise-hero-blend) .sunrise-hero-blend .sunrise-site-photo.sunrise-hero-blend-photo img {
   position:absolute; right:0; top:0; height:100% !important; width:auto !important; max-height:none !important; max-width:none !important;
   object-fit:cover;
   content-visibility:visible !important; contain-intrinsic-size:none !important;
   -webkit-mask-image:linear-gradient(to right, transparent 0% 3%, rgb(0 0 0 / 4%) 9%, rgb(0 0 0 / 18%) 16%, rgb(0 0 0 / 50%) 24%, rgb(0 0 0 / 82%) 32%, rgb(0 0 0 / 97%) 38%, #000 40% 100%);
   mask-image:linear-gradient(to right, transparent 0% 3%, rgb(0 0 0 / 4%) 9%, rgb(0 0 0 / 18%) 16%, rgb(0 0 0 / 50%) 24%, rgb(0 0 0 / 82%) 32%, rgb(0 0 0 / 97%) 38%, #000 40% 100%);
 }
 .home .sunrise-content > .wp-block-group:first-child > .wp-block-columns:has(.sunrise-hero-blend) > .wp-block-column:first-child {
   position:relative; z-index:2; flex-basis:auto !important;
   width:1152px; max-width:calc(100% - 128px); margin:0 auto;
 }
 .home .sunrise-content > .wp-block-group:first-child > .wp-block-columns:has(.sunrise-hero-blend) > .wp-block-column:nth-child(2) { position:absolute; inset:0; z-index:0; margin:0; }
 .home .sunrise-content > .wp-block-group:first-child > .wp-block-columns:has(.sunrise-hero-blend) .sunrise-v3-hero { max-width:560px; }
 .home .sunrise-content > .wp-block-group:first-child > .wp-block-columns:has(.sunrise-hero-blend) .sunrise-v3-h1 { font-size:54px !important; line-height:1.02 !important; }
}
@media (max-width:767px){
 .home .sunrise-content > .wp-block-group:first-child > .wp-block-columns:has(.sunrise-hero-blend) { display:block; padding-top:240px; position:relative; }
 .sunrise-hero-blend { position:absolute; top:0; left:0; right:0; height:240px; z-index:0; }
 .sunrise-hero-blend .sunrise-site-photo { position:absolute; inset:0; }
 .home .sunrise-content > .wp-block-group:first-child > .wp-block-columns:has(.sunrise-hero-blend) .sunrise-hero-blend .sunrise-site-photo.sunrise-hero-blend-photo img {
   width:100% !important; height:100% !important; max-height:none !important; object-fit:cover; object-position:50% 58%;
   content-visibility:visible !important; contain-intrinsic-size:none !important;
   -webkit-mask-image:linear-gradient(to bottom, #000 0% 54%, rgb(0 0 0 / 96%) 61%, rgb(0 0 0 / 80%) 69%, rgb(0 0 0 / 50%) 78%, rgb(0 0 0 / 20%) 87%, rgb(0 0 0 / 4%) 95%, transparent 98% 100%);
   mask-image:linear-gradient(to bottom, #000 0% 54%, rgb(0 0 0 / 96%) 61%, rgb(0 0 0 / 80%) 69%, rgb(0 0 0 / 50%) 78%, rgb(0 0 0 / 20%) 87%, rgb(0 0 0 / 4%) 95%, transparent 98% 100%);
 }
 .home .sunrise-content > .wp-block-group:first-child > .wp-block-columns:has(.sunrise-hero-blend) > .wp-block-column:nth-child(2) { position:absolute; top:0; width:100vw !important; max-width:none !important; left:calc(50% - 50vw) !important; right:auto !important; height:240px; margin:0; }
 .home .sunrise-content > .wp-block-group:first-child > .wp-block-columns:has(.sunrise-hero-blend) .sunrise-v3-h1 { font-size:36px !important; line-height:38px !important; margin-top:8px; }
 /* v3.8.56 — phone hero alignment (Astra spec, owner approved Nov 28):
    one steady left edge at the 20px gutter, level with the wordmark.
    The inset chain (columns wrapper 90% + column padding + v3-wrap
    89% margins) is flattened so the copy starts at x=19 at 375px. */
 .home .sunrise-content > .wp-block-group:first-child > .wp-block-columns:has(.sunrise-hero-blend) > .wp-block-column:first-child { padding:0 !important; }
 .home .sunrise-content > .wp-block-group:first-child > .wp-block-columns:has(.sunrise-hero-blend) .sunrise-v4-hero { margin:0 !important; padding:0 !important; display:block !important; }
 .home .sunrise-content > .wp-block-group:first-child > .wp-block-columns:has(.sunrise-hero-blend) .sunrise-v3-wrap { margin:0 !important; width:100% !important; max-width:none !important; }
 .home .sunrise-content > .wp-block-group:first-child > .wp-block-columns:has(.sunrise-hero-blend) .sunrise-v3-hero { margin-left:0 !important; margin-right:0 !important; width:100% !important; max-width:none !important; padding:0 !important; }
 .home .sunrise-content > .wp-block-group:first-child > .wp-block-columns:has(.sunrise-hero-blend) .sunrise-v3-h1 { font-size:clamp(25px, 7.4vw, 30px) !important; line-height:1.1 !important; font-weight:500 !important; text-align:left !important; margin-top:12px !important; max-width:none !important; }
 .sunrise-h1-line { display:block; white-space:nowrap; }
 .home .sunrise-content > .wp-block-group:first-child > .wp-block-columns:has(.sunrise-hero-blend) .sunrise-v3-tagline { margin-top:8px !important; font-size:22px !important; line-height:25px !important; }
 .home .sunrise-content > .wp-block-group:first-child > .wp-block-columns:has(.sunrise-hero-blend) .sunrise-v3-intro { margin-top:10px !important; font-size:16px !important; line-height:23px !important; }
 .home .sunrise-content > .wp-block-group:first-child > .wp-block-columns:has(.sunrise-hero-blend) .sunrise-v3-actions { margin-top:16px !important; }
}
