/* B3D Studio theme. Colours come from Customizer as --b3d-primary / --b3d-accent / --b3d-dark. */
:root{--b3d-primary:#1f5fa8;--b3d-accent:#f28c28;--b3d-dark:#14202e;--text:#1d2733;--muted:#5a6573;--line:#e1e6ec;--bg-alt:#f4f7fa;--radius:12px;--container:1200px;--shadow:0 8px 30px rgba(20,32,46,.08)}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:1rem;line-height:1.65;color:var(--text);background:#fff}
img,svg,video{max-width:100%;height:auto}
a{color:var(--b3d-primary)}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--b3d-accent);outline-offset:2px}
h1,h2,h3,h4{line-height:1.2;color:var(--b3d-dark);margin:0 0 .6em;letter-spacing:-.01em}
h1{font-size:clamp(1.8rem,3.2vw,2.6rem)}
h2{font-size:clamp(1.4rem,2.4vw,1.9rem)}
h3{font-size:1.15rem}
p{margin:0 0 1em}
input,select,textarea,button{font:inherit}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.skip-link:focus{clip:auto;width:auto;height:auto;left:8px;top:8px;z-index:1000;background:#fff;padding:.6rem 1rem;border-radius:6px;box-shadow:var(--shadow)}
.container{width:100%;max-width:var(--container);margin:0 auto;padding:0 20px}
.container--narrow{max-width:820px}
.section{padding:clamp(2.5rem,6vw,4.5rem) 0}
.section--alt{background:var(--bg-alt)}
.section__title{margin-bottom:1.25rem}
.section__head{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;flex-wrap:wrap}
.center{text-align:center}
.meta{color:var(--muted);font-size:.9rem}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4em;padding:.7rem 1.2rem;border-radius:10px;border:2px solid var(--b3d-primary);background:var(--b3d-primary);color:#fff;font-weight:600;text-decoration:none;line-height:1.2;cursor:pointer;transition:filter .15s,transform .15s}
.btn:hover{filter:brightness(1.08);text-decoration:none}
.btn:active{transform:translateY(1px)}
.btn--accent{background:var(--b3d-accent);border-color:var(--b3d-accent);color:#1b1206}
.btn--ghost{background:transparent;color:var(--b3d-primary)}
.btn--light{background:transparent;border-color:rgba(255,255,255,.7);color:#fff}
.btn--lg{padding:.9rem 1.5rem;font-size:1.05rem}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:var(--b3d-dark);color:#fff;box-shadow:0 1px 0 rgba(255,255,255,.06)}
.admin-bar .site-header{top:32px}
@media (max-width:782px){.admin-bar .site-header{top:0;position:relative}}
.site-header__inner{display:flex;align-items:center;gap:1rem;min-height:68px}
.site-brand{flex:0 0 auto}
.site-brand img{max-height:48px;width:auto;display:block}
.site-title{display:flex;align-items:center;gap:.6rem;color:#fff;text-decoration:none;font-weight:700;font-size:1.1rem}
.site-title__mark{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:10px;background:var(--b3d-primary);font-size:.8rem;letter-spacing:.04em}
.site-nav{margin-left:auto;display:flex;align-items:center;gap:1rem}
.site-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.25rem}
.site-nav a:not(.btn){display:block;padding:.5rem .7rem;border-radius:8px;color:rgba(255,255,255,.88);text-decoration:none;font-weight:500;font-size:.95rem}
.site-nav a:not(.btn):hover,.site-nav .current-menu-item>a,.site-nav a[aria-current]{color:#fff;background:rgba(255,255,255,.1)}
.site-nav .sub-menu{display:none;position:absolute;background:var(--b3d-dark);padding:.4rem;border-radius:8px;min-width:200px;flex-direction:column;box-shadow:var(--shadow)}
.site-nav li{position:relative}
.site-nav li:hover>.sub-menu,.site-nav li:focus-within>.sub-menu{display:flex}
.nav-toggle{display:none;margin-left:auto;background:none;border:0;width:44px;height:44px;cursor:pointer;color:#fff}
.nav-toggle__bars,.nav-toggle__bars::before,.nav-toggle__bars::after{display:block;width:24px;height:2px;background:currentColor;margin:auto;position:relative;transition:transform .2s}
.nav-toggle__bars::before,.nav-toggle__bars::after{content:"";position:absolute;left:0}
.nav-toggle__bars::before{top:-7px}.nav-toggle__bars::after{top:7px}
.nav-toggle[aria-expanded=true] .nav-toggle__bars{background:transparent}
.nav-toggle[aria-expanded=true] .nav-toggle__bars::before{transform:translateY(7px) rotate(45deg)}
.nav-toggle[aria-expanded=true] .nav-toggle__bars::after{transform:translateY(-7px) rotate(-45deg)}
@media (max-width:960px){
  .nav-toggle{display:block}
  .site-nav{display:none;position:absolute;left:0;right:0;top:100%;background:var(--b3d-dark);flex-direction:column;align-items:stretch;padding:1rem 20px 1.5rem;max-height:calc(100vh - 68px);overflow:auto}
  .site-nav.is-open{display:flex}
  .site-nav ul{flex-direction:column}
  .site-nav .sub-menu{display:flex;position:static;box-shadow:none;padding-left:1rem}
  .site-nav a:not(.btn){padding:.75rem .5rem;font-size:1.05rem}
}

/* Main / pages */
.site-main{min-height:60vh}
.site-main:focus{outline:none}
.page-head{margin-bottom:2rem;max-width:820px}
.page-head__lead{font-size:1.15rem;color:var(--muted)}
.entry-content>*{max-width:100%}
.entry-content>p,.entry-content>ul,.entry-content>ol,.entry-content>h2,.entry-content>h3{max-width:820px}
.entry-content .alignwide{max-width:var(--container)}
.entry-content img{border-radius:var(--radius)}
.entry-hero{display:block;width:100%;border-radius:var(--radius);margin-bottom:2rem}
.entry-content table{border-collapse:collapse;width:100%}
.entry-content th,.entry-content td{border-bottom:1px solid var(--line);padding:.5rem .6rem;text-align:left}
.post-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px}
.post-card{border:1px solid var(--line);border-radius:var(--radius);padding:1rem;background:#fff}
.post-card img{border-radius:8px;display:block;margin-bottom:.75rem}
.post-card__title a{color:inherit;text-decoration:none}
.nav-links{display:flex;gap:.4rem;margin-top:2rem;flex-wrap:wrap}
.nav-links .page-numbers{padding:.4rem .8rem;border:1px solid var(--line);border-radius:8px;text-decoration:none}
.nav-links .current{background:var(--b3d-primary);color:#fff;border-color:var(--b3d-primary)}
.search-form{display:flex;gap:.5rem;max-width:420px;margin:1rem auto}
.search-form input[type=search]{flex:1;padding:.6rem .8rem;border:1px solid #cbd2da;border-radius:8px}
.search-form .search-submit{padding:.6rem 1rem;border-radius:8px;border:0;background:var(--b3d-primary);color:#fff}

/* Hero */
.hero{background:radial-gradient(1200px 500px at 85% -10%,rgba(255,255,255,.08),transparent),linear-gradient(135deg,var(--b3d-dark),color-mix(in srgb,var(--b3d-dark) 70%,var(--b3d-primary)));color:#fff;overflow:hidden}
.hero__grid{display:grid;grid-template-columns:1.15fr .85fr;gap:2rem;align-items:center;padding-top:clamp(3rem,8vw,6rem);padding-bottom:clamp(3rem,8vw,6rem)}
.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:.8rem;font-weight:700;color:var(--b3d-accent);margin-bottom:.8rem}
.hero__title{color:#fff;font-size:clamp(2rem,4.5vw,3.4rem);max-width:16ch}
.hero__text{font-size:1.15rem;color:rgba(255,255,255,.85);max-width:56ch}
.hero__actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.5rem}
.hero__media{color:var(--b3d-primary);display:flex;justify-content:center}
.hero__art{width:100%;max-width:420px;filter:drop-shadow(0 20px 40px rgba(0,0,0,.35))}
.hero__img{border-radius:16px;box-shadow:0 20px 50px rgba(0,0,0,.35)}
@media (max-width:860px){.hero__grid{grid-template-columns:1fr}.hero__media{order:-1}.hero__art{max-width:240px}}

/* Features / steps / CTA */
.feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px}
.feature{display:block;padding:1.5rem;border:1px solid var(--line);border-radius:var(--radius);text-decoration:none;color:inherit;background:#fff;transition:box-shadow .2s,border-color .2s,transform .2s}
.feature:hover,.feature:focus-visible{border-color:var(--b3d-primary);box-shadow:var(--shadow);transform:translateY(-2px)}
.feature p{color:var(--muted);margin:0}
.feature__icon{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:12px;background:color-mix(in srgb,var(--b3d-primary) 12%,#fff);color:var(--b3d-primary);font-size:1.4rem;margin-bottom:1rem}
.steps{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px;counter-reset:s}
.steps li{counter-increment:s;padding:1.25rem 1.25rem 1.25rem 4rem;position:relative;border-radius:var(--radius);background:var(--bg-alt)}
.steps li::before{content:counter(s);position:absolute;left:1.1rem;top:1.1rem;width:2.1rem;height:2.1rem;border-radius:50%;display:grid;place-items:center;background:var(--b3d-primary);color:#fff;font-weight:700}
.steps strong{display:block;margin-bottom:.2rem}
.steps span{color:var(--muted);font-size:.95rem}
.cta-band{background:var(--b3d-primary);color:#fff;padding:2.5rem 0}
.cta-band h2{color:#fff;margin-bottom:.3rem}
.cta-band p{margin:0}
.cta-band__inner{display:flex;justify-content:space-between;align-items:center;gap:1.5rem;flex-wrap:wrap}
.cta-band .btn{margin:.25rem 0}

/* Catalog & product */
.chips{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1.5rem}
.chips a{padding:.4rem .9rem;border:1px solid var(--line);border-radius:99px;text-decoration:none;color:var(--text);font-size:.92rem}
.chips a[aria-current]{background:var(--b3d-primary);border-color:var(--b3d-primary);color:#fff}
.b3d-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:24px}
.b3d-product-card{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff;display:flex;flex-direction:column;transition:box-shadow .2s,transform .2s}
.b3d-product-card:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
.b3d-product-card a{color:inherit;text-decoration:none}
.b3d-product-card img,.b3d-product-card__ph{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:linear-gradient(135deg,#eef2f6,#dde4ec)}
.b3d-product-card h3{margin:.9rem 1rem .3rem}
.b3d-product-card p{margin:0 1rem .9rem;color:var(--muted);font-size:.93rem}
.b3d-product-card__ph{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%2390a0b3' stroke-width='2'%3E%3Cpath d='M32 8 54 20v24L32 56 10 44V20z'/%3E%3Cpath d='M10 20l22 12 22-12M32 32v24'/%3E%3C/svg%3E") center/64px no-repeat,linear-gradient(135deg,#eef2f6,#dde4ec)}
.b3d-badge{display:inline-block;margin:auto 1rem 1rem;padding:.2rem .6rem;border-radius:99px;background:color-mix(in srgb,var(--b3d-primary) 12%,#fff);color:var(--b3d-primary);font-size:.78rem;font-weight:600;align-self:flex-start}
.b3d-badge--muted{background:#eef1f4;color:var(--muted)}
.breadcrumbs{font-size:.9rem;color:var(--muted);margin-bottom:1.25rem}
.breadcrumbs a{color:inherit}
.product__grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:2.5rem;align-items:start}
.product__media .b3d-app{margin:0}
.product__image{width:100%;border-radius:var(--radius);aspect-ratio:4/3;object-fit:cover}
.product__photo{margin:1rem 0 0}
.product__photo img{border-radius:var(--radius)}
.product__lead{font-size:1.1rem;color:var(--muted)}
.product__actions{display:flex;flex-wrap:wrap;gap:.75rem;margin:1.25rem 0 .75rem}
.product__note{font-size:.88rem;color:var(--muted)}
.product__content{margin-top:2.5rem}
.b3d-specs{display:grid;grid-template-columns:auto 1fr;gap:.4rem 1.25rem;margin:1.5rem 0 0;padding:1.25rem;background:var(--bg-alt);border-radius:var(--radius)}
.b3d-specs dt{font-weight:600}
.b3d-specs dd{margin:0;color:var(--muted)}
.b3d-specs__full{grid-column:1/-1}
@media (max-width:860px){.product__grid{grid-template-columns:1fr}}

/* Plugin app containers get full content width */
.entry-content .b3d-app{max-width:none}

/* Footer */
.site-footer{background:var(--b3d-dark);color:rgba(255,255,255,.78);margin-top:0;font-size:.95rem}
.site-footer a{color:#fff}
.site-footer__grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:2rem;padding-top:3rem;padding-bottom:2rem}
.site-footer__brand{color:#fff;font-weight:700;font-size:1.15rem}
.site-footer__h{color:#fff;font-size:1rem;margin-bottom:.8rem}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li{margin:.3rem 0}
.site-footer li a{text-decoration:none}
.site-footer li a:hover{text-decoration:underline}
.site-footer__social{display:flex;gap:1rem;margin-top:1rem!important}
.site-footer__small{font-size:.85rem;opacity:.8}
.site-footer__bottom{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;border-top:1px solid rgba(255,255,255,.1);padding-top:1rem;padding-bottom:1.5rem;font-size:.85rem}
.site-footer__bottom p{margin:0}
.site-footer__bottom ul{display:flex;gap:1rem;flex-wrap:wrap}
@media (max-width:760px){.site-footer__grid{grid-template-columns:1fr}}
@media print{.site-header,.site-footer,.cta-band{display:none}}
