/* PartyCarton home page (front-page.php). Section styles live in base.css (design classes m-*);
   this file adds the bits the static design did inline, the FAQ as <details>, and the phone layout below 1024px
   (Home-Phone.dc.html: 2-up grids, sideways rails, compact hero). */
.pc-h1{font-size:56px}
.pc-lede{margin:0;font-size:18px;color:#34435A;max-width:31ch}
.pc-hbtns{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:6px}
.pc-xh{font-size:46px;color:#fff}
.pc-h2l{font-size:33px;margin-top:10px}
.pc-sub{margin:10px 0 20px;color:#4B5A6E;font-size:16px;max-width:40ch}
.pc-note{margin:10px 0 0;font-size:13px;color:#4B5A6E}
.pc-acchd{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #E1E7F0}
.pc-reo{height:36px;font-size:13.500px;padding:0 12px}
.m-tk .m-add{cursor:pointer}
.m-or a{color:inherit}
.m-or a:hover{color:#1D4ED8}
.m-or .th{width:44px;height:44px;border-radius:5px;background:#F2F6FC;display:grid;place-items:center;overflow:hidden}
.m-or .th img{width:38px;height:38px;object-fit:contain}
.pc-new{grid-template-columns:repeat(5,minmax(0,1fr))}
/* the theme's generic .m img{height:auto} must not flatten the design's positioned photos */
.m .m-bulk img{height:72%;max-width:36%}
.m .m-th .ar img{height:100%}
.m .m-nx i img{height:50px}
.m .m-who i img{height:40px}
.m .m-kit .im img{height:auto}
/* FAQ as details/summary */
details.m-fq summary{list-style:none;cursor:pointer}
details.m-fq summary::-webkit-details-marker{display:none}
details.m-fq .m-fqb i::before{content:"+"}
details.m-fq[open] .m-fqb i::before{content:"−"}
details.m-fq summary:focus-visible{outline:3px solid #1D4ED8;outline-offset:2px;border-radius:5px}

/* Season planner: clickable months */
.pc-mo{font:inherit;color:inherit;text-align:left;cursor:pointer;background:none;border:0;border-radius:6px;padding:6px;margin:-6px;min-height:92px}
.pc-mo:hover{background:#F5F8FF}
.pc-mo:focus-visible{outline:3px solid #1D4ED8;outline-offset:1px}
.pc-mo.on > span:first-child{color:#1D4ED8;font-weight:800}
.pc-mo.on .bar{box-shadow:0 0 0 2px #fff,0 0 0 4px #1D4ED8}
.pc-mo.now:not(.on) .bar{box-shadow:none;outline:0}
.pc-mo.now:not(.on) > span:first-child{color:#4B5A6E}
.pc-next[hidden]{display:none}
.pc-next{animation:pcFade .18s ease}
@keyframes pcFade{from{opacity:.35}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.pc-next{animation:none}}
/* order sheet without the SKU column */
#order-sheet .m-or{grid-template-columns:52px minmax(200px,1fr) 170px 104px 130px 118px 100px}
@media (max-width:1180px){#order-sheet .m-or{grid-template-columns:52px minmax(150px,1fr) 130px 118px 100px}}

@media (max-width:1180px){.pc-new{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* ---------- phone layout ---------- */
@media (max-width:1023.98px){
.pc-home .m-hero{grid-template-columns:minmax(0,1fr);gap:16px;padding-top:6px}
.pc-home .m-hl{gap:12px}
.pc-h1{font-size:33px}
.pc-lede{font-size:15.500px}
.pc-hbtns{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
.pc-hbtns .m-btn{padding:0 10px;font-size:15px}
.pc-home .m-stage{height:220px}
.pc-home .m-tk{display:none}
.pc-home .m-tb{grid-template-columns:1fr 1fr}
.pc-home .m-tbc{padding:10px 12px;gap:10px;border-left:0;border-bottom:1px solid #E1E7F0}
.pc-home .m-tbc:nth-child(odd){border-right:1px solid #E1E7F0}
.pc-home .m-tbc .pcf{width:34px;height:34px}
.pc-home .m-tbc b{font-size:13px;line-height:1.25}
.pc-home .m-tbc span.t{display:none}
.m-sec{padding-top:36px}
.m-sh{margin-bottom:12px}
.m-sh h2,.pc-h2l{font-size:25px}
.m-sh p{font-size:13.500px;margin-top:4px}
.pc-cats{grid-template-columns:1fr 1fr;gap:10px}
.pc-cats .m-cc .co{aspect-ratio:1/.72}
.pc-cats .m-cc .bd{padding:10px 12px 12px}
.pc-cats .m-cc h3{font-size:16px;margin:0}
.pc-cats .m-cc .m-sl{display:none}
.pc-cats .m-cc .m-lnk{margin-top:4px;font-size:13px}
.m-more{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-left:-16px;margin-right:-16px;padding:0 16px}
.m-more::-webkit-scrollbar{display:none}
.m-more > span{display:none}
.m-more a{flex:none;white-space:nowrap}
.m-col{padding:14px 16px}
.m-sws{grid-template-columns:repeat(4,minmax(0,1fr))}
/* sideways rails */
.pc-rail{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:16px;margin-left:-16px;margin-right:-16px;padding:0 16px 6px;scrollbar-width:none}
.pc-rail::-webkit-scrollbar{display:none}
.pc-rail > *{flex:none;scroll-snap-align:start}
#essentials .pc-rail > .m-fav{width:240px;aspect-ratio:auto;height:270px}
#essentials .m-fav .m-btn{height:44px;font-size:14.500px}
#themes .pc-rail > .m-th{width:260px}
#kits .pc-rail > .m-kit{width:300px;grid-template-columns:1fr}
#kits .m-kit .im{min-height:150px}
#kits .m-kit .im img{max-height:130px}
.m .m-bulk img{height:80%}
.m .m-nx i img{height:36px}
.m-xm{margin:0}
.pc-xh{font-size:30px}
.m-xl{padding:22px 20px 0}
.m-xr{min-height:190px}
.pc-new{grid-template-columns:1fr 1fr;gap:10px}
.pc-new .c-card .m-nm{font-size:13.500px}
.pc-new .c-card .m-pr{font-size:15px}
.m-cal{display:flex;overflow-x:auto;gap:10px;padding:14px;scrollbar-width:none}
.m-cal::-webkit-scrollbar{display:none}
.m-mo{flex:none;width:112px;min-height:0;padding:10px;border:1px solid #E1E7F0;border-radius:6px}
.pc-mo{margin:0;min-height:0;scroll-snap-align:start}
.pc-mo.on{border-color:#1D4ED8;background:#F5F8FF}
.pc-mo.on .bar{box-shadow:none}
.pc-cal{scroll-snap-type:x proximity;scroll-padding-inline:14px}
.m-next{grid-template-columns:1fr 1fr}
.m-nx{padding:12px;gap:10px;border-bottom:1px solid #E1E7F0}
.m-nx i{width:46px;height:46px}
.m-nx i img{width:36px;height:36px}
.m-nx b{font-size:15px}
.m-nx em{display:none}
/* order sheet: stacked rows */
.m-os{overflow:visible}
.m-or.h{display:none}
#order-sheet .m-or,.m-or{min-width:0;grid-template-columns:48px minmax(0,1fr) auto;grid-template-areas:"th nm nm" "th pr qt" "th . tt";gap:2px 10px;padding:12px 14px;min-height:0}
.m-or .th{grid-area:th;align-self:start}
.m-or > a{grid-area:nm;font-weight:600;font-size:14px;line-height:1.3}
.m-or .x{display:none}
.m-or > .r:not([data-total]){grid-area:pr;font-size:13.500px}
.m-or .m-qty{grid-area:qt;justify-self:end}
.m-or [data-total]{grid-area:tt;justify-self:end;font-size:14.500px}
.m-of{flex-wrap:wrap;gap:10px 14px;padding:12px 14px}
.m-of .m-btn{width:100%}
.pc-bulk{grid-template-columns:1fr;gap:10px}
.m-bulk{min-height:0;padding:16px 40% 16px 16px}
.m-bulk h3{font-size:19px}
.m-bulk p{font-size:13.500px}
.m-two{grid-template-columns:minmax(0,1fr);gap:20px}
.m-form{grid-template-columns:1fr}
.m-how{grid-template-columns:1fr}
.m-how .m-step{border-left:0;margin-left:0;border-bottom:1px solid #EEF1F4;padding:12px 16px;min-height:58px}
.m-how .m-step .ar{display:none}
.m-how .m-step b{font-size:15px}
.m-feed{height:190px}
.m-ord{min-width:0;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;padding:0 14px;min-height:52px;font-size:13.500px}
.m-ord > span:nth-child(2),.m-ord .pc-reo{display:none}
.pc-acchd{padding:12px 14px}
.m-fqb{font-size:15.500px;min-height:54px}
.m-cta{margin-top:40px;padding:22px 18px;gap:20px}
.m-cta h2{font-size:24px}
.m-cta p{font-size:14.500px;margin:8px 0 16px}
.m-cta .pc-hbtns{grid-template-columns:1fr}
.m-who em{display:none}
}
@media (max-width:370px){.pc-h1{font-size:30px}.pc-hbtns{grid-template-columns:1fr}.m-sh h2,.pc-h2l{font-size:23px}}
/* ---- home motion ---- */
.pc-js .pc-rv{opacity:0;transform:translateY(22px);transition:opacity .7s cubic-bezier(.2,.7,.2,1) var(--rv,0ms),transform .7s cubic-bezier(.2,.7,.2,1) var(--rv,0ms)}
.pc-js .pc-rv.in{opacity:1;transform:none}
.pc-js .pc-rv:not(.in){animation:pc-rv-safe 0s 4s forwards}
@keyframes pc-rv-safe{to{opacity:1;transform:none}}
.m-stage > img.pc-rv{transform:translateY(26px) scale(.92)}
.m-stage > img.pc-rv.in{transform:none}
/* hero products bob gently, each on its own rhythm */
.m-stage > img{animation:pc-hfloat 6s ease-in-out infinite}
.m-stage > img:nth-of-type(2n){animation-duration:7.2s;animation-delay:-2s}
.m-stage > img:nth-of-type(3n){animation-duration:8.1s;animation-delay:-4s}
@keyframes pc-hfloat{0%,100%{translate:0 0}50%{translate:0 -9px}}
.m-stage{isolation:isolate}
.pc-conf{position:absolute;top:-6%;width:9px;height:9px;border-radius:2px;opacity:.85;z-index:-1;pointer-events:none;animation:pc-confall 14s linear infinite}
.pc-conf.r{border-radius:50%;width:8px;height:8px}
.pc-conf.s{width:14px;height:5px;border-radius:3px}
@keyframes pc-confall{0%{transform:translateY(0) rotate(0);opacity:0}8%{opacity:.85}92%{opacity:.85}100%{transform:translateY(560px) rotate(540deg);opacity:0}}
/* small playful touches */
.m-tbc .pcf,.m-ft3 .pcf,.m-step .pcf{transition:transform .35s cubic-bezier(.3,1.6,.5,1)}
.m-tbc:hover .pcf,.m-ft3:hover .pcf,.m-step:hover .pcf{transform:translateY(-3px) rotate(-6deg) scale(1.08)}
#christmas .m-xm img{animation:pc-sway 5.5s ease-in-out infinite;transform-origin:50% 0}
#christmas .m-xm img:nth-of-type(2n){animation-duration:6.6s;animation-delay:-2.5s}
@keyframes pc-sway{0%,100%{rotate:-2.5deg}50%{rotate:2.5deg}}
.m-step.lit .pcf{animation:pc-pop1 .55s cubic-bezier(.3,1.6,.5,1)}
.m-step.lit .ar{animation:pc-nudge 1.6s ease-in-out .3s 2}
@keyframes pc-pop1{0%{transform:scale(.7)}60%{transform:scale(1.15)}100%{transform:none}}
@keyframes pc-nudge{0%,100%{transform:none}50%{transform:translateX(4px)}}
.pc-cta-box{width:84px;height:84px;margin:-6px 0 8px -8px}
.pc-cta-box svg{width:100%;height:100%;overflow:visible}
@media (prefers-reduced-motion:reduce){.m-stage > img,#christmas .m-xm img,.pc-conf{animation:none!important}.pc-js .pc-rv{opacity:1;transform:none;transition:none}.m-step.lit .pcf,.m-step.lit .ar{animation:none}}
