
/* Purrtex design kit v2 — Craft */
:root {
    --px-gradient: linear-gradient(120deg, #c2410c, #eab308);
    --px-orb-1: radial-gradient(circle, rgba(234,179,8,.4), transparent 65%);
    --px-orb-2: radial-gradient(circle, rgba(194,65,12,.3), transparent 65%);
    --px-glass-bg: rgba(255,252,245,.6);
    --px-glass-border: rgba(28,25,23,.12);
    --px-card-bg: #fffdf8;
    --px-card-border: #1c1917;
    --px-card-shadow: 6px 6px 0 rgba(28,25,23,.9);
    --px-nav-bg: rgba(250,246,239,.75);
    --px-cta-bg: #1c1917;
    --px-display-color: #1c1917;
}

/* ---- floating pill navigation (glass, condenses on scroll)
   Sticky must live on the template-part WRAPPER: .px-nav alone can never
   stick because its parent (the header part box) is only as tall as the
   nav itself — a sticky element cannot travel beyond its parent's box. */
header.wp-block-template-part,
.wp-block-template-part:has(> .px-nav) {
    position: sticky; top: 0; z-index: 60;
    padding-top: .75rem;
}
.px-nav {
    width: min(1240px, calc(100% - 1.5rem));
    margin: 0 auto;
    border-radius: 999px;
    background: var(--px-nav-bg);
    -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5);
    border: 1px solid var(--px-card-border);
    box-shadow: 0 2px 14px rgba(0,0,0,.05);
    transition: box-shadow .3s ease, border-color .3s ease, background-color .3s ease,
                padding-top .3s ease, padding-bottom .3s ease;
}
/* scrolled state: solid, condensed, clearly separated from the content below */
.px-nav.is-scrolled {
    background: color-mix(in srgb, var(--wp--preset--color--purrtex-background) 88%, transparent);
    border-color: color-mix(in srgb, var(--wp--preset--color--purrtex-text) 14%, transparent);
    box-shadow: 0 14px 44px rgba(0,0,0,.16);
    padding-top: .45rem !important;
    padding-bottom: .45rem !important;
}
.px-nav.is-scrolled .px-brand { font-size: .95em; transition: font-size .3s ease; }
.px-brand a { text-decoration: none; }

/* ---- hero (full-bleed, content constrained to 1200px) */
html, body { overflow-x: clip; }
.px-hero {
    position: relative; overflow: clip; isolation: isolate;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}
.px-hero:not(.px-slider) > *:not(.px-orb) {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--wp--preset--spacing--50);
    padding-right: var(--wp--preset--spacing--50);
}
.px-orb {
    position: absolute; border-radius: 9999px; pointer-events: none; z-index: -1;
    filter: blur(90px); opacity: .55; will-change: transform;
}
.px-orb-1 { width: 34rem; height: 34rem; top: -10rem; right: -8rem; background: var(--px-orb-1); }
.px-orb-2 { width: 26rem; height: 26rem; bottom: -12rem; left: -10rem; background: var(--px-orb-2); opacity: .4; }
.px-kicker {
    font-family: var(--wp--preset--font-family--mono);
    font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    color: var(--wp--preset--color--purrtex-primary);
    display: inline-flex; align-items: center; gap: .6rem;
}
.px-kicker::before { content: ""; width: 2rem; height: 1px; background: var(--wp--preset--color--purrtex-primary); opacity: .6; }
.px-display {
    color: var(--px-display-color);
    max-width: 18ch;
}

.px-lede { max-width: 56ch; }
.px-stats { margin-top: 3rem; }
.px-stat-num {
    font-family: var(--wp--preset--font-family--heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; line-height: 1; margin: 0;
    background: var(--px-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.px-stat-label { color: var(--wp--preset--color--purrtex-muted); margin: .35rem 0 0; }

/* ---- cards (glass / flat per template vars) */
.px-card {
    background: var(--px-card-bg);
    border: 1px solid var(--px-card-border);
    border-radius: 18px;
    box-shadow: var(--px-card-shadow);
    
    transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease, border-color .35s ease;
}
.px-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--wp--preset--color--purrtex-primary) 45%, transparent);
}
.px-card h3 { margin-top: 0; }
.px-quote cite { color: var(--wp--preset--color--purrtex-muted); font-size: .9rem; }

/* ---- split visual block */
.px-visual {
    border-radius: 24px;
    background-image: linear-gradient(135deg, #c2410c 0%, #eab308 55%, #365314 130%);
    background-size: cover; background-position: center;
    box-shadow: var(--px-card-shadow);
    will-change: transform;
}

/* ---- CTA band */
.px-cta {
    border-radius: 26px;
    background: var(--px-cta-bg);
    border: 1px solid var(--px-glass-border);
    
    box-shadow: var(--px-card-shadow);
}

/* ---- buttons */
.wp-element-button { transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.wp-element-button:hover { transform: translateY(-2px); filter: brightness(1.06); }
.wp-element-button:active { transform: translateY(0); }
.wp-element-button:focus-visible { outline: 2px solid var(--wp--preset--color--purrtex-primary); outline-offset: 3px; }
.px-btn-ghost .wp-element-button {
    background: transparent; color: var(--wp--preset--color--purrtex-text);
    border: 1px solid var(--px-glass-border);
    
}
.px-btn-primary .wp-element-button { border: 1.5px solid #1c1917; box-shadow: 4px 4px 0 rgba(28,25,23,.9); } .px-btn-primary .wp-element-button:hover { box-shadow: 6px 6px 0 rgba(28,25,23,.9); }

/* ---- details / faq */
.wp-block-details summary { cursor: pointer; font-weight: 600; padding: 1rem 0; border-bottom: 1px solid var(--px-card-border); transition: color .2s ease; }
.wp-block-details[open] summary { color: var(--wp--preset--color--purrtex-primary); }
.wp-block-details p { padding: .6rem 0 1rem; color: var(--wp--preset--color--purrtex-muted); }

/* ---- footer */
.px-footer { border-top: 1px solid var(--px-card-border); }

/* ---- contact form */
.purrtex-contact-form input, .purrtex-contact-form textarea {
    width: 100%; max-width: 34rem; padding: .7rem .9rem;
    border: 1px solid var(--px-card-border); border-radius: 10px;
    background: var(--px-card-bg); color: inherit; font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.purrtex-contact-form input:focus, .purrtex-contact-form textarea:focus {
    outline: none; border-color: var(--wp--preset--color--purrtex-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--purrtex-primary) 25%, transparent);
}
.purrtex-contact-form button {
    background: var(--wp--preset--color--purrtex-primary); color: #ffffff; border: 0; border-radius: 10px;
    padding: .75em 1.6em; font-weight: 600; cursor: pointer;
    transition: transform .2s ease, filter .2s ease;
}
.purrtex-contact-form button:hover { transform: translateY(-2px); filter: brightness(1.06); }

/* ---- enquiry form (posts to provisioner plugin handler) */
.px-form-card { max-width: 44rem; margin: 0 auto; }
.px-form input[type="text"], .px-form input[type="email"], .px-form input[type="tel"],
.px-form select, .px-form textarea {
    width: 100%; padding: .7rem .9rem; margin-top: .3rem;
    border: 1px solid var(--px-card-border); border-radius: 10px;
    background: var(--px-card-bg); color: inherit; font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.px-form input:focus, .px-form select:focus, .px-form textarea:focus {
    outline: none; border-color: var(--wp--preset--color--purrtex-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--purrtex-primary) 25%, transparent);
}
.px-form .px-field { margin: 0 0 1.1rem; }
.px-form .px-field label { font-weight: 600; font-size: .95rem; }
.px-form .px-field label span { color: var(--wp--preset--color--purrtex-primary); }
.px-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.px-radios { border: 0; padding: 0; margin: 0 0 1.1rem; }
.px-radios legend { font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.px-radios label { display: inline-flex; align-items: center; gap: .4rem; margin-right: 1.4rem; font-weight: 400; }
.px-consent { font-size: .85rem; color: var(--wp--preset--color--purrtex-muted); }
.px-consent label { display: flex; gap: .6rem; align-items: flex-start; }
.px-consent input { margin-top: .25rem; flex: none; }
.px-form-submit {
    background: var(--wp--preset--color--purrtex-primary); color: #ffffff;
    border: 0; border-radius: 10px; padding: .8em 1.8em; font-weight: 600; font-size: 1rem;
    cursor: pointer; transition: transform .2s ease, filter .2s ease;
}
.px-form-submit:hover { transform: translateY(-2px); filter: brightness(1.06); }
.px-form-submit:focus-visible { outline: 2px solid var(--wp--preset--color--purrtex-primary); outline-offset: 3px; }
.px-form-note { color: var(--wp--preset--color--purrtex-muted); margin-top: 1rem; }
.px-form-status {
    border-radius: 12px; padding: 1rem 1.25rem; margin: 0 0 1.5rem;
    font-weight: 600; border: 1px solid transparent;
}
.px-form-status.is-ok {
    background: color-mix(in srgb, #16a34a 12%, transparent);
    border-color: color-mix(in srgb, #16a34a 45%, transparent);
    color: color-mix(in srgb, #15803d 80%, var(--wp--preset--color--purrtex-text));
}
.px-form-status.is-err {
    background: color-mix(in srgb, #dc2626 10%, transparent);
    border-color: color-mix(in srgb, #dc2626 45%, transparent);
    color: color-mix(in srgb, #b91c1c 80%, var(--wp--preset--color--purrtex-text));
}
.px-reassurance { margin-top: 1.1rem; }

/* ---- numbered process steps */
.px-step-num {
    font-family: var(--wp--preset--font-family--mono); font-size: .85rem; font-weight: 600;
    letter-spacing: .14em; margin: 0 0 .9rem; color: var(--wp--preset--color--purrtex-primary);
    display: inline-block; padding: .3rem .7rem; border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--purrtex-primary) 35%, transparent);
    background: color-mix(in srgb, var(--wp--preset--color--purrtex-primary) 8%, transparent);
}
.px-step h3 { margin-top: 0; }

/* ---- small print / disclaimer */
.px-small-print p { border-top: 1px solid var(--px-card-border); padding-top: 1.5rem; max-width: 68ch; }

/* ---- anchor targets (offset for sticky nav) */
.px-anchor { position: relative; top: -4.5rem; display: block; height: 0; }

/* ---- hero slider */
.px-slider { position: relative; overflow: clip; isolation: isolate; }
.px-slide {
    display: none; position: relative; border-radius: 0;
    animation: px-fade .8s cubic-bezier(.2,.7,.3,1);
}
.px-slide.is-active { display: block; }
@keyframes px-fade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.px-slide-bg {
    position: absolute; inset: 0; z-index: -1; margin: 0;
    border-radius: 26px; overflow: hidden;
}
.px-slide-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.px-slide-bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.62));
}
.px-slider-nav {
    display: flex; align-items: center; justify-content: center; gap: 1rem;
    padding-bottom: var(--wp--preset--spacing--50);
}
.px-dots { display: flex; gap: .5rem; }
.px-dot {
    width: .55rem; height: .55rem; border-radius: 999px; border: 0; cursor: pointer;
    background: var(--wp--preset--color--purrtex-muted); opacity: .4;
    transition: opacity .25s ease, transform .25s ease, background .25s ease;
}
.px-dot.is-active { opacity: 1; transform: scale(1.35); background: var(--wp--preset--color--purrtex-primary); }
.px-arrow {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.5rem; height: 2.5rem; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--px-glass-border); background: var(--px-glass-bg); color: inherit;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    font-size: 1rem; line-height: 1; transition: transform .2s ease, border-color .2s ease;
}
.px-arrow:hover { transform: translateY(-2px); border-color: var(--wp--preset--color--purrtex-primary); }

/* ---- horizontal carousel */
.px-carousel { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: 1.75rem; }
.px-carousel::-webkit-scrollbar { display: none; }
.px-track { display: flex; gap: 1.25rem; padding: .25rem; }
.px-slide-card { flex: 0 0 min(21rem, 82vw); scroll-snap-align: start; overflow: hidden; padding: 0 !important; }
.px-slide-card h3, .px-slide-card p { padding: 0 1.4rem; }
.px-slide-card h3 { margin-top: 1.1rem; }
.px-slide-card p { margin-bottom: 1.4rem; }
.px-card-img { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.px-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.px-slide-card:hover .px-card-img img { transform: scale(1.05); }
.px-carousel-btns { display: flex; gap: .5rem; }

/* ---- marquee strip */
.px-marquee {
    overflow: hidden; white-space: nowrap; margin: 0 0 var(--wp--preset--spacing--70);
    border-top: 1px solid var(--px-card-border); border-bottom: 1px solid var(--px-card-border);
    padding: 1.1rem 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.px-marquee-track { display: inline-flex; gap: 3rem; animation: px-marquee 28s linear infinite; }
.px-marquee span {
    font-family: var(--wp--preset--font-family--mono); font-size: .8rem; letter-spacing: .22em;
    text-transform: uppercase; color: var(--wp--preset--color--purrtex-muted);
}
@keyframes px-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- menu list (restaurant) */
.px-menu-item { padding-bottom: 1.25rem; border-bottom: 1px solid var(--px-card-border); }
.px-menu-line { gap: 1rem; }
.px-menu-line h3 { margin: 0; }
.px-menu-price {
    font-family: var(--wp--preset--font-family--heading); font-weight: 700; margin: 0;
    color: var(--wp--preset--color--purrtex-primary); white-space: nowrap;
}
.px-menu-item p { margin-top: .35rem; }

/* ---- pricing */
.px-price { display: flex; flex-direction: column; }
.px-price.is-featured {
    border-color: var(--wp--preset--color--purrtex-primary);
    box-shadow: 0 18px 44px -18px color-mix(in srgb, var(--wp--preset--color--purrtex-primary) 45%, transparent);
}
.px-price-num {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 2.5rem; font-weight: 700; line-height: 1.1; margin: .75rem 0 .25rem;
}
.px-price-num span { font-size: .95rem; font-weight: 500; color: var(--wp--preset--color--purrtex-muted); }
.px-price-feats { list-style: none; margin: 1.25rem 0 1.75rem; padding: 0; flex: 1; }
.px-price-feats li {
    padding: .45rem 0 .45rem 1.6rem; position: relative; font-size: .92rem;
    color: var(--wp--preset--color--purrtex-muted);
    border-bottom: 1px dashed var(--px-card-border);
}
.px-price-feats li::before {
    content: ""; position: absolute; left: 0; top: .85em; width: .8rem; height: .45rem;
    border-left: 2px solid var(--wp--preset--color--purrtex-primary);
    border-bottom: 2px solid var(--wp--preset--color--purrtex-primary);
    transform: rotate(-45deg);
}
.px-price .wp-block-buttons { margin-top: auto; }

/* ---- scroll reveal */
.px-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.px-reveal.px-delay-1 { transition-delay: .12s; }
.px-reveal.px-delay-2 { transition-delay: .24s; }
.px-reveal.px-delay-3 { transition-delay: .36s; }
.px-reveal.is-visible { opacity: 1; transform: none; }

[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
    .px-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    [data-parallax] { transform: none !important; }
    .px-card, .wp-element-button { transition: none; }
}
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
@media (max-width: 720px) {
    .px-orb { filter: blur(60px); opacity: .4; }
    .px-orb-1 { width: 22rem; height: 22rem; right: -10rem; }
}
.px-cta h2, .px-cta p { color: #faf6ef !important; } .px-cta .has-purrtex-muted-color { color: #d6cfc4 !important; } .px-card { border-width: 1.5px; } .px-card:hover { box-shadow: 9px 9px 0 rgba(28,25,23,.9); } .wp-block-details summary { border-bottom-color: rgba(28,25,23,.2); }
