/* Shared bits for the BerryLime demo sites: fonts, the demo bar, practice-photo stand-ins, the phone dock, the stamp.
   Each demo keeps its own look in its own page; this file only carries what every demo shares. */
@font-face{font-family:"Outfit";src:url(fonts/outfit-latin-wght-normal.woff2) format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"Nunito Sans";src:url(fonts/nunito-sans-latin-wght-normal.woff2) format("woff2");font-weight:200 1000;font-display:swap}
@font-face{font-family:"Newsreader";src:url(fonts/newsreader.woff2) format("woff2");font-weight:200 800;font-style:normal;font-display:swap}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;min-width:320px;overflow-x:hidden;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img,svg{display:block;max-width:100%}
a{color:inherit}
:focus-visible{outline:3px solid var(--focus,#D91445);outline-offset:3px;border-radius:6px}
.wrap{width:min(100% - 32px,1180px);margin-inline:auto}
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* The demo bar: every visitor knows this is a made-up business, built by BerryLime to show what a page can do. */
.demo-bar{position:relative;z-index:30;background:#1E1A1D;color:#F6F1E7;font:500 13px/1.35 "Nunito Sans",system-ui,sans-serif}
.demo-bar .wrap{display:flex;align-items:center;gap:10px;min-height:40px;padding-block:6px}
.demo-bar svg{width:16px;height:16px;flex:none}
.demo-bar p{margin:0;flex:1;min-width:0}
.demo-bar b{font-weight:800}
.demo-bar a{flex:none;display:inline-flex;align-items:center;min-height:44px;color:#1E1A1D;background:#78C514;border-radius:999px;padding:6px 14px;font-weight:800;text-decoration:none;white-space:nowrap}
@media (max-width:520px){.demo-bar{font-size:12.5px}}

/* Practice photos: art-directed stand-ins until the demo's licensed photos land. Each one says what goes there. */
.ph{position:relative;overflow:hidden;background:var(--ph,linear-gradient(135deg,#c9b8a6,#6d5847));isolation:isolate}
.ph::before{content:"";position:absolute;inset:0;background:radial-gradient(60% 55% at var(--lx,30%) var(--ly,30%),rgba(255,248,235,.55),transparent 70%),radial-gradient(70% 60% at 85% 95%,rgba(20,12,8,.45),transparent 70%);z-index:-1}
.ph::after{content:"";position:absolute;inset:0;opacity:.32;mix-blend-mode:overlay;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
.ph .ph-art{position:absolute;inset:0;display:grid;place-items:center;color:rgba(255,250,240,.78)}
.ph .ph-art svg{width:min(34%,150px);height:auto;filter:drop-shadow(0 6px 18px rgba(0,0,0,.25))}
.ph figcaption,.ph .cap{position:absolute;left:10px;bottom:10px;z-index:2;display:inline-flex;align-items:center;gap:6px;max-width:calc(100% - 20px);padding:5px 10px;border-radius:999px;background:rgba(20,16,14,.62);color:#fff;font:600 12px/1.2 "Nunito Sans",system-ui,sans-serif;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.ph .cap::before{content:"";width:7px;height:7px;border-radius:2px;background:#78C514;flex:none}

/* The phone dock: the two or three taps that matter, always under the thumb. */
.dock{position:fixed;left:0;right:0;bottom:0;z-index:40;display:none;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:var(--dock-bg,rgba(255,255,255,.9));border-top:1px solid var(--line);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.dock a{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;border-radius:14px;font:800 15px/1 var(--head-font,system-ui);text-decoration:none}
.dock svg{width:18px;height:18px}
@media (max-width:760px){.dock{display:flex}body{padding-bottom:76px}}

/* The stamp: once, in the footer, quiet. */
.bl-stamp{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:inherit;text-decoration:none;font:500 12px/1 "Nunito Sans",system-ui,sans-serif;letter-spacing:.16em;text-transform:uppercase}
.bl-stamp svg{width:18px;height:18px}
.bl-stamp b{font-weight:800}

/* ---- Shared motion (demo.js). Transform and opacity only, so nothing shifts the layout. ---- */
.js [data-reveal]:not(.in){opacity:0;transform:translateY(18px)}
.js [data-reveal]{transition:opacity .7s cubic-bezier(.2,.7,.2,1),transform .7s cubic-bezier(.2,.7,.2,1);transition-delay:calc(var(--i,0) * 70ms)}
/* If the script never runs, show everything after a beat. */
.js:not(.demo-ready) [data-reveal]{animation:bl-show 0s 2.5s forwards}
@keyframes bl-show{to{opacity:1;transform:none}}
/* A subtle hero motion: a slow drift on the hero photo inside its own clipped frame. */
.hero-motion{animation:bl-drift 22s ease-in-out infinite alternate;transform-origin:50% 60%;will-change:transform}
@keyframes bl-drift{from{transform:scale(1)}to{transform:scale(1.06) translate3d(-1%,-1%,0)}}
/* The phone call bar slides up after the first screen. */
@media (max-width:760px){.js .dock{transform:translateY(110%);visibility:hidden;transition:transform .35s cubic-bezier(.2,.7,.2,1),visibility 0s .35s}.js .dock.up{transform:none;visibility:visible;transition:transform .35s cubic-bezier(.2,.7,.2,1),visibility 0s}}
@media (prefers-reduced-motion:reduce){.js [data-reveal]:not(.in){opacity:1;transform:none}.hero-motion{animation:none}.js .dock{transition:none}}
.demo-legal{font-size:12px}
/* A stand-in's own background layer, so the hero drift moves the picture and not its frame. Real photos use <img class="hero-motion">. */
.ph > .ph-bg{position:absolute;inset:0;z-index:-2;background:var(--ph)}
.ph > img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
/* With a real photo in place, the stand-in's light, grain, line art and "Your photo" chip step aside (the alt text stays). */
.ph:has(> img)::before,.ph:has(> img)::after,.ph:has(> img) .ph-art,.ph:has(> img) > .cap,.ph:has(> img) > figcaption.cap{display:none}
.ph > img.hero-motion{transform-origin:50% 60%}
/* A demo has no map to open, so the control that would is a plain line. */
.map-note{margin:0;font-size:15px;line-height:1.4;color:var(--muted)}
/* P2-01: every standalone link is at least 44x44, with the padding inside the anchor. */
.dock a,.nav a,.pnav a,.menu-jump a,.foot-grid a,.map-note a,.more,.rv-link{min-height:44px;min-width:44px;display:inline-flex;align-items:center;padding-block:10px}
.brand{min-height:44px}

/* The way from one demo to the others (Nov 14, round four): someone sent one demo link could not find the rest. */
.more-demos{display:inline-flex;align-items:center;min-height:44px;color:inherit;text-underline-offset:3px}

/* A phone number never splits across two lines (Nov 14, round six: html-validate tel-non-breaking, 78 places). */
a[href^="tel:"],a[href^="sms:"]{white-space:nowrap}
