/* Embroidery Dude Extras: motion, reviews, work gallery, about page. Uses the storefront tokens (--ed-*) */

/* ---------- Scroll reveal ---------- */
html.edc-js body.edc-site [data-reveal]{opacity:0;transform:translate3d(0,24px,0);transition:opacity .85s cubic-bezier(.2,.65,.25,1),transform .85s cubic-bezier(.2,.65,.25,1);transition-delay:var(--rd,0ms)}
html.edc-js body.edc-site [data-reveal="fade"]{transform:none}
html.edc-js body.edc-site [data-reveal="zoom"]{transform:scale(.96)}
html.edc-js body.edc-site [data-reveal="left"]{transform:translate3d(-28px,0,0)}
html.edc-js body.edc-site [data-reveal="right"]{transform:translate3d(28px,0,0)}
html.edc-js body.edc-site [data-reveal].is-in,html.edc-reveal-all body.edc-site [data-reveal]{opacity:1;transform:none}
html.edc-js body.edc-site .edc-rv-later{display:none}

/* Header: really stick to the top (its wrapper was the same height, so it never stuck) */
body.edc-site header.wp-block-template-part:has(> .edc-header){position:sticky;top:0;z-index:60}
body.admin-bar.edc-site header.wp-block-template-part:has(> .edc-header){top:var(--wp-admin--admin-bar--height,32px)}
#thsp-sticky-header{display:none!important}
/* Header gets a soft shadow once you scroll */
.edc-header{transition:box-shadow .3s ease,background-color .3s ease}
.edc-header.is-scrolled{box-shadow:0 8px 28px rgba(15,17,21,.07)}

/* Hero photo: gentle settle-in and a hint of parallax */
body.edc-site .edc-hero-media img{transition:transform .2s linear}
body.edc-site .edc-hero-badge{transition:transform .5s cubic-bezier(.2,.65,.25,1)}

/* Buttons: a little lift */
body.edc-site .wp-block-button__link,body.edc-site .edc-btn{will-change:transform}
body.edc-site .wp-block-button__link:active,body.edc-site .edc-btn:active{transform:translateY(0) scale(.98)}

/* ---------- Stars ---------- */
.edc-stars{display:inline-flex;gap:2px;color:#f2a516;line-height:1}
.edc-stars svg{width:16px;height:16px;fill:currentColor;display:block}

/* ---------- Reviews wall ---------- */
.edc-reviews{margin-top:36px}
.edc-rv-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:0 0 40px}
.edc-rv-stat{background:var(--ed-surface);border-radius:20px;padding:22px 22px 20px}
.edc-rv-stat b{display:block;font:700 clamp(1.8rem,3.2vw,2.5rem)/1 "Inter Tight","Inter",sans-serif;letter-spacing:-.02em;color:var(--ed-ink);margin-bottom:8px;font-variant-numeric:tabular-nums}
.edc-rv-stat span{color:var(--ed-muted);font-size:.92rem}
.edc-rv-featured{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:0 0 48px}
.edc-rv-bar{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center;justify-content:space-between;margin:0 0 20px}
.edc-rv-bar .edc-filters{margin:0}
.edc-chip-btn span{opacity:.6;font-weight:500;margin-left:2px}
.edc-rv-search input{font:inherit;font-size:.95rem;border:1px solid var(--ed-line);border-radius:999px;padding:10px 18px;min-width:280px;background:#fff;color:var(--ed-ink)}
.edc-rv-search input:focus{outline:none;border-color:var(--ed-ink);box-shadow:0 0 0 3px rgba(15,17,21,.08)}
.edc-rv-status{color:var(--ed-muted);font-size:.9rem;margin:0 0 14px;min-height:1.2em}
.edc-rv-grid{columns:3 300px;column-gap:18px}
.edc-rv{break-inside:avoid;margin:0 0 18px;background:#fff;border:1px solid var(--ed-line);border-radius:20px;padding:22px 22px 18px;display:flex;flex-direction:column;gap:12px;transition:border-color .2s,box-shadow .2s,transform .2s}
.edc-rv:hover{border-color:transparent;box-shadow:0 16px 36px rgba(15,17,21,.07)}
.edc-rv blockquote{margin:0;padding:0;border:0;quotes:none}
.edc-rv blockquote p{margin:0;font-size:1rem;line-height:1.6;color:var(--ed-ink2)}
.edc-rv figcaption{display:flex;align-items:center;gap:12px;margin-top:4px}
.edc-rv figcaption b{display:block;font-weight:600;font-size:.95rem;color:var(--ed-ink)}
.edc-rv figcaption small{display:block;color:var(--ed-muted);font-size:.8rem}
.edc-rv-av{width:36px;height:36px;border-radius:50%;background:var(--ed-surface);display:grid;place-items:center;font:700 .9rem "Inter Tight",sans-serif;color:var(--ed-ink);flex:none}
.edc-rv.is-featured{background:var(--ed-ink);border-color:var(--ed-ink);padding:28px}
.edc-rv.is-featured blockquote p{color:#e9e9e6;font-size:1.06rem}
.edc-rv.is-featured figcaption{margin-top:auto;padding-top:6px}
.edc-rv.is-featured figcaption b{color:#fff}
.edc-rv.is-featured figcaption small{color:#a3a6ad}
.edc-rv.is-featured .edc-rv-av{background:#2a2e35;color:#fff}
.edc-rv[hidden]{display:none}
.edc-rv-more-wrap{text-align:center;margin-top:16px}
.edc-rv-more[hidden]{display:none}
@media (max-width:900px){.edc-rv-stats{grid-template-columns:1fr 1fr}.edc-rv-featured{grid-template-columns:1fr}.edc-rv-search,.edc-rv-search input{width:100%;min-width:0}}

/* ---------- Review strip (home) ---------- */
.edc-rstrip{overflow:hidden;margin:28px -24px 0;padding:6px 0 10px;-webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)}
.edc-rstrip-track{display:flex;width:max-content;animation:edc-marquee 110s linear infinite}
.edc-rstrip:hover .edc-rstrip-track,.edc-rstrip:focus-within .edc-rstrip-track{animation-play-state:paused}
.edc-rstrip-set{display:flex;gap:16px;padding-right:16px}
.edc-rv.is-strip{width:340px;margin:0;flex:none}
.edc-rv.is-strip blockquote p{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
@keyframes edc-marquee{to{transform:translate3d(-50%,0,0)}}
.edc-strip-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px}
.edc-strip-head h2{margin:0!important}
.edc-strip-head p{margin:0}
.edc-textlink{font-weight:600;text-decoration:none!important;border-bottom:1.5px solid currentColor;padding-bottom:2px}
.edc-textlink:hover{color:var(--ed-accent)}

/* ---------- Customer work gallery ---------- */
.edc-work{display:grid;gap:14px;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:32px}
.edc-work-item{margin:0;position:relative;border-radius:20px;overflow:hidden;background:var(--ed-surface);aspect-ratio:1/1}
.edc-work--bento .edc-work-item:first-child{grid-column:span 2;grid-row:span 2;aspect-ratio:auto}
.edc-work-link{display:block;width:100%;height:100%;cursor:zoom-in}
.edc-work--bento .edc-work-item:first-child .edc-work-link{position:absolute;inset:0}
.edc-work-item img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .7s cubic-bezier(.2,.65,.25,1),filter .4s}
.edc-work-item:hover img{transform:scale(1.045)}
.edc-work-zoom{position:absolute;right:12px;bottom:12px;width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.92);opacity:0;transform:translateY(6px);transition:opacity .25s,transform .25s;display:grid;place-items:center}
.edc-work-zoom::before{content:"";width:12px;height:12px;border:2px solid var(--ed-ink);border-radius:50%;margin:-3px 0 0 -3px}
.edc-work-zoom::after{content:"";position:absolute;width:2px;height:7px;background:var(--ed-ink);transform:translate(5px,5px) rotate(-45deg)}
.edc-work-item:hover .edc-work-zoom,.edc-work-link:focus-visible .edc-work-zoom{opacity:1;transform:none}
.edc-work--row{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(220px,1fr);overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px}
.edc-work--row .edc-work-item{aspect-ratio:4/5;scroll-snap-align:start}
.edc-work--grid .edc-work-item{aspect-ratio:4/5}
.edc-work-item[hidden]{display:none}
.edc-portfolio{margin-top:8px}
.edc-portfolio .edc-filters{margin:0}
.edc-portfolio .edc-work{margin-top:22px}
@media (max-width:860px){.edc-work{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.edc-work-item{border-radius:16px}}

/* Lightbox */
.edc-lb{border:0;padding:0;background:transparent;max-width:none;max-height:none;width:100vw;height:100vh;margin:0;overflow:hidden}
.edc-lb::backdrop{background:rgba(10,11,14,.88);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.edc-lb-inner{position:fixed;inset:0;display:grid;place-items:center;padding:56px 72px}
.edc-lb img{max-width:100%;max-height:calc(100vh - 112px);border-radius:16px;box-shadow:0 30px 80px rgba(0,0,0,.45);animation:edc-lb-in .35s cubic-bezier(.2,.65,.25,1)}
.edc-lb button{position:fixed;width:46px;height:46px;border-radius:50%;border:0;background:rgba(255,255,255,.12);color:#fff;font:400 24px/1 "Inter",sans-serif;cursor:pointer;display:grid;place-items:center}
.edc-lb button:hover{background:rgba(255,255,255,.24)}
.edc-lb .edc-lb-close{top:18px;right:18px}
.edc-lb .edc-lb-prev{left:16px;top:50%;margin-top:-23px}
.edc-lb .edc-lb-next{right:16px;top:50%;margin-top:-23px}
@keyframes edc-lb-in{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}
@media (max-width:700px){.edc-lb-inner{padding:64px 12px}.edc-lb .edc-lb-prev,.edc-lb .edc-lb-next{top:auto;bottom:18px;margin:0}}

/* ---------- About page ---------- */
.edc-about-hero .edc-hero-media{aspect-ratio:4/5}
.edc-about-hero .edc-hero-media img,.edc-about-hero .edc-hero-media figure{width:100%!important;height:100%;margin:0!important;mix-blend-mode:normal;object-fit:cover}
.edc-about-hero .edc-hero-media figure{position:absolute;inset:0}
.edc-about-hero .edc-hero-media figure img{border-radius:0}
.edc-about-hero .edc-hero-badge{z-index:2}
.edc-split{display:grid!important;grid-template-columns:1fr 1fr;gap:56px;align-items:center}
.edc-split>*{margin:0!important}
.edc-split .wp-block-image,.edc-split figure{margin:0}
.edc-split .wp-block-image img{border-radius:24px;width:100%;height:auto;display:block}
.edc-split-text p{color:var(--ed-ink2);font-size:1.06rem}
.edc-pair{display:grid!important;grid-template-columns:1fr 1fr;gap:16px}
.edc-pair>*{margin:0!important}
.edc-pair .wp-block-image img{border-radius:20px;aspect-ratio:3/4;object-fit:cover;width:100%;height:auto}
.edc-pair .wp-block-image:nth-child(2){margin-top:48px!important}
.edc-team{display:grid!important;grid-template-columns:1fr 1fr;gap:20px;margin-top:32px!important}
.edc-team>*{margin:0!important}
.edc-person{background:#fff;border:1px solid var(--ed-line);border-radius:24px;padding:14px 14px 22px!important;transition:transform .25s,box-shadow .25s,border-color .25s}
.edc-person:hover{transform:translateY(-3px);box-shadow:0 18px 40px rgba(15,17,21,.08);border-color:transparent}
.edc-person .wp-block-image{margin:0 0 18px!important}
.edc-person .wp-block-image img{border-radius:16px;aspect-ratio:1/1;object-fit:cover;object-position:50% 25%;width:100%;height:auto}
.edc-person h3{margin:0 8px 4px!important;font-size:1.35rem!important}
.edc-person p{margin:0 8px!important;color:var(--ed-muted)}
.edc-person .edc-role{font:600 .78rem "Inter",sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--ed-accent)!important;margin-top:2px!important}
.edc-statband{background:var(--ed-ink);color:#d7d8db;border-radius:28px;max-width:var(--ed-max);margin:24px auto 88px!important;padding:56px 48px!important;display:grid!important;grid-template-columns:repeat(3,1fr);gap:24px;box-sizing:border-box}
.edc-statband>*{margin:0!important}
.edc-statband strong{display:block;font:700 clamp(2.4rem,5vw,3.8rem)/1 "Inter Tight","Inter",sans-serif;letter-spacing:-.03em;color:#fff;margin-bottom:10px;font-variant-numeric:tabular-nums}
.edc-statband span{color:#a3a6ad;font-size:.95rem}
.edc-values{display:grid!important;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:32px!important}
.edc-values>*{margin:0!important;background:#fff;border-radius:20px;padding:26px!important}
.edc-values h3{margin:14px 0 8px!important}
.edc-values p{margin:0;color:var(--ed-muted)}
.edc-ico{width:44px;height:44px;border-radius:12px;background:var(--ed-ink);color:#fff;display:grid;place-items:center}
.edc-ico svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.edc-shopfloor{display:grid!important;grid-template-columns:1.3fr 1fr 1fr;gap:14px;margin-top:32px!important}
.edc-shopfloor>*{margin:0!important}
.edc-shopfloor .wp-block-image img{border-radius:20px;width:100%;height:100%;object-fit:cover;aspect-ratio:4/5}
.edc-shopfloor .wp-block-image:first-child img{aspect-ratio:auto;height:100%}
@media (max-width:900px){
 .edc-split,.edc-team,.edc-values{grid-template-columns:1fr;gap:28px}
 .edc-statband{grid-template-columns:1fr;padding:40px 28px!important;border-radius:0;gap:28px}
 .edc-shopfloor{grid-template-columns:1fr 1fr}
 .edc-shopfloor .wp-block-image:first-child{grid-column:span 2}
 .edc-shopfloor .wp-block-image:first-child img{aspect-ratio:4/3}
 .edc-pair .wp-block-image:nth-child(2){margin-top:28px!important}
}

/* ---------- Contact helpers ---------- */
.edc-contact-steps{list-style:none;margin:20px 0 0!important;padding:0!important;display:grid;gap:10px}
.edc-contact-steps li{display:flex;gap:10px;align-items:flex-start;color:var(--ed-ink2);font-size:.95rem}
.edc-contact-steps li::before{content:"";flex:none;width:18px;height:18px;margin-top:3px;border-radius:50%;background:var(--ed-ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat}
body.edc-site .fluentform .ff-message-success{border:0;border-radius:16px;background:var(--ed-surface);padding:24px;box-shadow:none;color:var(--ed-ink)}

@media (prefers-reduced-motion:reduce){
 html.edc-js body.edc-site [data-reveal]{opacity:1!important;transform:none!important;transition:none!important}
 .edc-rstrip{overflow-x:auto;-webkit-mask-image:none;mask-image:none}
 .edc-rstrip-track{animation:none}
 .edc-rstrip-set[aria-hidden="true"]{display:none}
}
/* Shop grid: the beanie and New Era photos are shot closer, so show them a little smaller to match the other hats. */
.edc-card[href*="/product/new-era-structured-stretch-cotton-cap"] .edc-card-img img{transform:scale(.82)}
.edc-card[href*="/product/cuffed-beanie-made-in-usa"] .edc-card-img img{transform:scale(.7)}
