/*
Theme Name: Apex Sim Rigs
Description: Dark, product-led WooCommerce theme for a used sim racing and flight simulator store. No page builder.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: apex
*/

/* Palette sampled from the delivered logo: #060d27 ground, #6ba9e6 ice blue
   across the APEX wordmark, #625ac5 indigo, #172a54 panel navy. Teal appears
   only as a highlight in the logo, so it is used the same way here. Orange is
   reserved for price. */
:root{
	--bg:#060d27; --bg-2:#0a1535; --bg-3:#122045; --bg-4:#192b56;
	--line:#1e2f5c; --line-hot:#2d4480;
	--ink:#e6edfa; --muted:#8c99bd; --dim:#606e96;
	--cyan:#6ba9e6; --cyan-dim:#4678a9;
	--teal:#5fd5d0;
	--violet:#625ac5; --violet-dim:#4a42a0;
	--orange:#ff8a1f;
	--chrome:#dfe6f2;
	--accent:var(--cyan); --accent-600:var(--cyan-dim);
	--glow-cyan:rgba(107,169,230,.38);
	--glow-violet:rgba(98,90,197,.38);
	--grad:linear-gradient(100deg,#8ec6f5 0%,var(--cyan) 38%,var(--violet) 100%);
	--wrap:1280px; --radius:12px;
	--shadow:0 2px 8px rgba(0,0,0,.5),0 18px 48px rgba(0,0,0,.6);
	--s0:clamp(1rem,.97rem+.15vw,1.0625rem);
	--s1:clamp(1.1rem,1.04rem+.3vw,1.28rem);
	--s2:clamp(1.3rem,1.18rem+.6vw,1.75rem);
	--s3:clamp(1.6rem,1.35rem+1.2vw,2.3rem);
	--s4:clamp(1.95rem,1.45rem+2.3vw,3.25rem);
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
html,body{max-width:100%;overflow-x:hidden}
@media (prefers-reduced-motion:reduce){*{animation-duration:.001ms!important;transition-duration:.001ms!important}}
body{margin:0;background:var(--bg);color:var(--ink);font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:var(--s0);line-height:1.65;-webkit-font-smoothing:antialiased}
img,svg{max-width:100%;height:auto;display:block}
img,table,pre,iframe{max-width:100%}
h1,h2,h3,h4,p,li,a,td,th{overflow-wrap:anywhere}
a{color:var(--ink);text-underline-offset:2px}
a:hover{color:var(--cyan)}
h1,h2,h3,h4{line-height:1.12;margin:0 0 .5em;color:#fff;font-weight:900;letter-spacing:-.025em}
h1,h2{background:linear-gradient(180deg,#ffffff 0%,var(--chrome) 55%,#9fb4c9 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero h1 em,h1 em,h2 em{-webkit-text-fill-color:initial;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;font-style:normal}
h1{font-size:var(--s4)} h2{font-size:var(--s3)} h3{font-size:var(--s2)} h4{font-size:var(--s1)}
p{margin:0 0 1.1em}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}
.skip-link{position:absolute;left:-9999px;background:var(--accent);color:#fff;padding:12px 18px}
.skip-link:focus{left:0;color:#fff}

.wrap{width:min(100% - 2rem,var(--wrap));margin-inline:auto}
.section{padding:clamp(2.75rem,6vw,4.5rem) 0}
.section--alt{background:var(--bg-2)}
.eyebrow{display:inline-block;font-size:.74rem;font-weight:800;letter-spacing:.2em;text-transform:uppercase;color:var(--accent);margin-bottom:.7rem}
.section__head{max-width:46rem;margin-bottom:2rem}
.section__head p{color:var(--muted);font-size:var(--s1);margin:0}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.8rem 1.6rem;border-radius:var(--radius);font-weight:800;letter-spacing:.01em;text-decoration:none;border:2px solid transparent;transition:background-color .18s,border-color .18s,color .18s,box-shadow .18s}
.btn--primary{background:var(--grad);color:#060d27;box-shadow:0 0 18px -4px var(--glow-cyan);position:relative;overflow:hidden}
.btn--primary::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 20%,rgba(255,255,255,.45) 50%,transparent 80%);transform:translateX(-120%);transition:transform .6s ease}
.btn--primary:hover::after{transform:translateX(120%)}
.btn--primary:hover{color:#060d27;box-shadow:0 0 28px -2px var(--glow-cyan)}
.btn--ghost{border-color:var(--line);color:var(--ink);background:transparent}
.btn--ghost:hover{border-color:var(--cyan);color:var(--cyan);box-shadow:0 0 16px -6px var(--glow-cyan)}

/* header */
.site-header{position:sticky;top:0;z-index:100;background:rgba(11,14,19,.94);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.hdr{display:flex;align-items:center;gap:1.1rem;min-height:74px}
.brand{display:flex;align-items:center;gap:.6rem;margin-right:auto;text-decoration:none;color:#fff;font-weight:900;font-size:1.12rem;letter-spacing:.01em;text-transform:uppercase}
.brand img{max-height:54px;width:auto;filter:drop-shadow(0 2px 10px rgba(107,169,230,.35))}
.brand em{font-style:normal;color:var(--accent)}
.nav ul{display:flex;align-items:center;gap:.15rem;list-style:none;margin:0;padding:0}
.nav a{display:block;padding:.5rem .8rem;border-radius:7px;color:var(--ink);font-weight:650;text-decoration:none;font-size:.93rem}
.nav a:hover{background:var(--bg-3);color:#fff}
.nav .current-menu-item>a{color:var(--accent)}
.navbtn{display:inline-flex;flex-direction:column;justify-content:center;gap:5px;width:44px;height:44px;padding:0 10px;background:none;border:1px solid var(--line);border-radius:7px;cursor:pointer}
.navbtn span{display:block;height:2px;background:var(--ink);border-radius:2px;transition:transform .2s,opacity .2s}
.navbtn[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.navbtn[aria-expanded="true"] span:nth-child(2){opacity:0}
.navbtn[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
@media(min-width:1060px){.navbtn{display:none}}
@media(max-width:1059px){
	/* Collapsed, this panel paints nothing — a fixed element with max-height:0
	   but a border leaves a line hanging across the page while scrolling. */
	.nav{position:fixed;inset:auto 0 auto 0;top:var(--navtop,74px);background:transparent;border-bottom:0;box-shadow:none;max-height:0;overflow:hidden;visibility:hidden;pointer-events:none;transition:max-height .25s}
	.nav.is-open{max-height:80vh;overflow-y:auto;visibility:visible;pointer-events:auto;background:var(--bg-2);border-bottom:1px solid var(--line);box-shadow:var(--shadow)}
	.nav ul{flex-direction:column;align-items:stretch;gap:0;padding:.5rem 1rem 1.25rem}
	.nav a{padding:.9rem .5rem;border-bottom:1px solid var(--line);border-radius:0;font-size:1.05rem}
	.hdr{min-height:64px;gap:.6rem}
	.brand{font-size:1rem}
	.brand img{max-height:38px}
}

/* cart */
.apx-cart-wrap{display:inline-flex}
.apx-cart{position:relative;display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:8px;color:var(--ink);border:1px solid var(--line);background:transparent;text-decoration:none;transition:border-color .18s,color .18s}
.apx-cart:hover{border-color:var(--accent);color:var(--accent)}
.apx-cart__count{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:var(--accent);color:#fff;font-size:.72rem;font-weight:800;line-height:20px;text-align:center}
.apx-cart__count[data-count="0"]{display:none}
@media(max-width:1059px){.apx-cart{width:42px;height:42px}.apx-cart svg{width:20px;height:20px}}

/* hero */
.hero{position:relative;overflow:hidden;background:linear-gradient(160deg,#0b0e13 0%,#131b27 55%,#1a2434 100%)}
.hero::after{content:"";position:absolute;inset:0;background:radial-gradient(48rem 26rem at 82% -10%,rgba(224,37,43,.22),transparent 62%);pointer-events:none}
.hero__in{position:relative;z-index:2;padding:clamp(3rem,8vw,6rem) 0}
.hero h1{max-width:18ch}
.hero h1 em{font-style:normal;color:var(--accent)}
.hero p{color:var(--muted);font-size:var(--s1);max-width:40rem}
.hero__act{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:1.8rem}
.hero__stats{display:flex;flex-wrap:wrap;gap:1.2rem 2.5rem;margin-top:2.2rem;padding-top:1.4rem;border-top:1px solid var(--line)}
.hero__stats strong{display:block;font-size:1.6rem;color:#fff;line-height:1.1}
.hero__stats span{font-size:.84rem;color:var(--dim)}

/* grids */
.grid{display:grid;gap:1.1rem}
.grid--2,.grid--3,.grid--4{grid-template-columns:repeat(2,1fr)}
@media(min-width:768px){.grid--3{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1060px){.grid--4{grid-template-columns:repeat(4,1fr)}}

.tile{position:relative;display:block;border-radius:var(--radius);overflow:hidden;background:var(--bg-3);border:1px solid var(--line);text-decoration:none;min-height:170px}
.tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.42;transition:transform .4s,opacity .3s}
.tile:hover img{transform:scale(1.06);opacity:.3}
.tile__b{position:relative;z-index:1;padding:1.3rem;display:flex;flex-direction:column;justify-content:flex-end;min-height:170px}
.tile__b h3{font-size:1.05rem;margin:0 0 .15rem;color:#fff}
.tile__b span{font-size:.82rem;color:var(--muted)}

/* brand strip */
.brands{display:flex;flex-wrap:wrap;gap:.5rem}
.brands a{display:inline-flex;align-items:center;padding:.5rem 1rem;border:1px solid var(--line);border-radius:999px;color:var(--muted);text-decoration:none;font-size:.88rem;font-weight:650;transition:border-color .18s,color .18s}
.brands a:hover{border-color:var(--accent);color:#fff}

/* condition pill */
.cond{display:inline-flex;align-items:center;gap:.35rem;padding:.2rem .6rem;border-radius:999px;font-size:.72rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;background:rgba(53,194,122,.14);color:var(--good);border:1px solid rgba(53,194,122,.3)}

/* WooCommerce product grid — neutralise the float layout at all widths */
.woocommerce ul.products,.woocommerce-page ul.products{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;margin:0 0 2rem;padding:0;list-style:none}
.woocommerce ul.products::before,.woocommerce ul.products::after{content:none!important;display:none!important}
.woocommerce ul.products li.product,
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce ul.products[class*="columns-"] li.product:nth-child(2n){
	width:auto!important;float:none!important;clear:none!important;margin:0!important;
	display:flex;flex-direction:column;gap:.4rem;
	background:var(--bg-2);border:1px solid var(--line);border-radius:var(--radius);padding:.9rem;text-align:left;
	transition:border-color .2s,transform .2s,box-shadow .2s;
}
.woocommerce ul.products li.product:hover{border-color:#36435a;transform:translateY(-2px);box-shadow:var(--shadow)}
.woocommerce ul.products li.product img{border-radius:7px;margin:0 0 .6rem;width:100%;background:#fff}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:.95rem!important;color:#fff!important;padding:0!important;margin:0 0 .3rem;font-weight:700}
.woocommerce ul.products li.product .price{color:var(--ink)!important;font-weight:800;font-size:1.05rem;margin:0 0 .5rem}
.woocommerce ul.products li.product del{color:var(--dim)!important;font-weight:500}
.woocommerce ul.products li.product a.button{display:block;width:100%;text-align:center;margin:auto 0 0!important;background:var(--accent)!important;color:#fff!important;border-radius:var(--radius)!important;font-weight:800!important}
.woocommerce ul.products li.product a.button:hover{background:var(--accent-600)!important}
@media(min-width:768px){.woocommerce ul.products{grid-template-columns:repeat(3,1fr);gap:1.25rem}}
@media(min-width:1060px){.woocommerce ul.products{grid-template-columns:repeat(4,1fr);gap:1.4rem}}

.woocommerce .button,.woocommerce a.button,.woocommerce button.button{background:var(--accent)!important;color:#fff!important;border-radius:var(--radius)!important;font-weight:800!important}
.woocommerce .button:hover{background:var(--accent-600)!important}
.woocommerce div.product .product_title{color:#fff}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--ink)!important;font-size:1.6rem;font-weight:800}
.woocommerce-message,.woocommerce-info,.woocommerce-error{background:var(--bg-2)!important;color:var(--ink)!important;border-top-color:var(--accent)!important}
.woocommerce-tabs ul.tabs li{background:var(--bg-2)!important;border-color:var(--line)!important}
.woocommerce-tabs ul.tabs li a{color:var(--muted)!important}
.woocommerce-tabs ul.tabs li.active a{color:#fff!important}

/* page + prose */
.page-hero{background:linear-gradient(160deg,#0b0e13,#141c28 75%);border-bottom:1px solid var(--line);padding:clamp(2.25rem,5vw,3.5rem) 0}
.page-hero h1{margin:0}
.page-hero .crumbs{font-size:.84rem;color:var(--dim);margin-bottom:.6rem}
.page-hero .crumbs a{color:var(--muted)}
.prose{max-width:46rem;color:var(--muted)}
.prose>*+*{margin-top:1.05em}
.prose h2,.prose h3{color:#fff;margin-top:1.9em}
.prose table{display:block;overflow-x:auto;width:100%;border-collapse:collapse}
.prose th,.prose td{text-align:left;padding:.6rem .75rem;border-bottom:1px solid var(--line);min-width:6.5rem}
.prose th{background:var(--bg-2);color:#fff}
@media(min-width:768px){.prose table{display:table}.prose th,.prose td{min-width:0}}

/* footer */
.site-footer{background:#080b10;border-top:1px solid var(--line);padding-top:clamp(2.5rem,5vw,3.75rem);color:var(--muted)}
.site-footer h3{color:#fff;font-size:.9rem;text-transform:uppercase;letter-spacing:.08em;margin-bottom:1rem}
.site-footer a{color:var(--muted);text-decoration:none}
.site-footer a:hover{color:#fff}
.fgrid{display:grid;gap:2rem;padding-bottom:2.25rem}
@media(min-width:760px){.fgrid{grid-template-columns:1.6fr 1fr 1fr 1.2fr;gap:2.5rem}}
.flist{list-style:none;margin:0;padding:0;display:grid;gap:.5rem;font-size:.92rem}
.fbot{border-top:1px solid var(--line);padding:1.1rem 0 2rem;font-size:.84rem;color:var(--dim);display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;justify-content:space-between}

@media(max-width:767px){
	.section{padding:2.1rem 0}
	.hero__in{padding:2.4rem 0}
	.hero__stats{gap:.9rem 1.5rem}
	.hero__stats strong{font-size:1.28rem}
	.hero__act .btn{flex:1 1 100%}
	.tile,.tile__b{min-height:128px}
	.tile__b{padding:.85rem}
	.tile__b h3{font-size:.88rem}
	.woocommerce ul.products li.product{padding:.55rem}
	.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:.82rem!important}
	.woocommerce ul.products li.product .price{font-size:.9rem}
	.woocommerce ul.products li.product a.button{font-size:.78rem!important;padding:.55rem .5rem!important}
	.fbot{flex-direction:column;gap:.3rem}
	.woocommerce-result-count,.woocommerce-ordering{float:none!important;width:100%;margin-bottom:.7rem}
	.woocommerce-ordering select{width:100%}
	.woocommerce div.product div.images,.woocommerce div.product div.summary{width:100%!important;float:none!important;margin:0 0 1.2rem!important}
}
@media(pointer:coarse){.nav a,.btn{min-height:44px}}

.pagination{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:2.25rem}
.pagination .page-numbers{display:grid;place-items:center;min-width:42px;height:42px;padding:0 .7rem;border:1px solid var(--line);border-radius:7px;text-decoration:none;color:var(--ink)}
.pagination .current{background:var(--accent);color:#fff;border-color:var(--accent)}

/* ---------- upgrade path steps ---------- */
.step{display:flex;flex-direction:column;position:relative;padding:1.5rem 1.4rem 1.3rem;background:var(--bg-3);border:1px solid var(--line);border-radius:var(--radius);text-decoration:none;transition:border-color .2s,transform .2s}
.step:hover{border-color:var(--accent);transform:translateY(-2px)}
.step__n{position:absolute;top:1.1rem;right:1.2rem;font-size:2.4rem;font-weight:900;line-height:1;color:rgba(224,37,43,.22)}
.step h3{font-size:1.05rem;margin:0 0 .45rem;padding-right:2.5rem;color:#fff}
.step p{color:var(--muted);font-size:.92rem;margin:0 0 1rem}
.step__go{margin-top:auto;display:inline-flex;align-items:center;gap:.4rem;color:var(--accent);font-weight:750;font-size:.85rem}
.step:hover .step__go{gap:.6rem}
@media(max-width:767px){
	.step{padding:1.15rem 1.1rem}
	.step__n{font-size:1.8rem;top:.9rem;right:.9rem}
	.step h3{font-size:.95rem;padding-right:2rem}
	.step p{font-size:.85rem}
}

/* =====================================================================
   FUTURISTIC LAYER
   A faint grid behind dark sections, neon hairlines on panels, and a
   gradient edge that lights on hover. Kept to borders, glows and one
   sweep animation — nothing heavy enough to cost a frame on a phone.
   ===================================================================== */

body{
	background-image:
		linear-gradient(rgba(107,169,230,.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(107,169,230,.035) 1px, transparent 1px);
	background-size:64px 64px;
	background-attachment:fixed;
}

/* hairline that separates major bands */
.section{position:relative}
.section--alt{background:var(--bg-2);border-block:1px solid var(--line)}
.section--alt::before{
	content:"";position:absolute;inset:0 0 auto;height:1px;
	background:linear-gradient(90deg,transparent,var(--cyan),var(--violet),transparent);
	opacity:.55;
}

.eyebrow{
	color:var(--cyan);text-shadow:0 0 14px var(--glow-cyan);
	display:inline-flex;align-items:center;gap:.5rem;
}
.eyebrow::before{content:"";width:22px;height:1px;background:var(--grad)}

/* header */
.site-header{background:rgba(6,10,20,.88);border-bottom:1px solid var(--line)}
.site-header::after{
	content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;
	background:linear-gradient(90deg,transparent,var(--cyan),var(--violet),transparent);opacity:.5;
}
.brand em{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.nav a:hover{background:var(--bg-3);color:var(--cyan)}
.nav .current-menu-item>a{color:var(--cyan)}

.apx-cart:hover{border-color:var(--cyan);color:var(--cyan);box-shadow:0 0 16px -6px var(--glow-cyan)}
.apx-cart__count{background:var(--grad);color:#060d27}

/* hero */
.hero{background:radial-gradient(60rem 34rem at 78% -18%,rgba(98,90,197,.32),transparent 60%),
                 radial-gradient(44rem 26rem at 8% 108%,rgba(107,169,230,.18),transparent 62%),
                 linear-gradient(170deg,#060a14 0%,#0a1322 58%,#101d33 100%)}
.hero::after{
	content:"";position:absolute;inset:0;pointer-events:none;
	background:repeating-linear-gradient(0deg,rgba(255,255,255,.022) 0 1px,transparent 1px 3px);
	mix-blend-mode:overlay;
}
.hero__stats{border-top:1px solid var(--line);position:relative}
.hero__stats::before{content:"";position:absolute;top:-1px;left:0;width:9rem;height:1px;background:var(--grad)}
.hero__stats strong{background:linear-gradient(180deg,#fff,var(--chrome));-webkit-background-clip:text;background-clip:text;color:transparent}

/* panels get a gradient edge that lights on hover */
.tile,.step,.woocommerce ul.products li.product{
	position:relative;background:linear-gradient(180deg,var(--bg-3),var(--bg-2));
	border:1px solid var(--line);
}
.tile::after,.step::after,.woocommerce ul.products li.product::after{
	content:"";position:absolute;inset:-1px;border-radius:inherit;padding:1px;
	background:var(--grad);
	-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
	-webkit-mask-composite:xor;mask-composite:exclude;
	opacity:0;transition:opacity .25s;pointer-events:none;
}
.tile:hover::after,.step:hover::after,.woocommerce ul.products li.product:hover::after{opacity:.85}
.tile:hover,.step:hover,.woocommerce ul.products li.product:hover{border-color:transparent;transform:translateY(-3px)}

/* brand chips */
.brands a{border-color:var(--line);color:var(--muted);background:var(--bg-2)}
.brands a:hover{border-color:var(--cyan);color:var(--cyan);box-shadow:0 0 16px -8px var(--glow-cyan)}

/* condition badge — cyan, to read as a system readout rather than a sticker */
.cond{
	background:rgba(95,213,208,.12);color:var(--teal);
	border:1px solid rgba(95,213,208,.34);
	text-shadow:0 0 10px rgba(95,213,208,.4);
}

/* price in orange: the one place warm colour is used, so it carries weight */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price{color:var(--orange)!important}
.woocommerce ul.products li.product del{color:var(--dim)!important}

/* product images sit on chrome rather than plain white */
.woocommerce ul.products li.product img{background:linear-gradient(160deg,#f4f8fb,#dde7ee)}

/* buttons inside the loop */
.woocommerce ul.products li.product a.button{
	background:var(--grad)!important;color:#060d27!important;font-weight:900!important;letter-spacing:.01em;
}
.woocommerce ul.products li.product a.button:hover{box-shadow:0 0 20px -6px var(--glow-cyan)}
.woocommerce .button,.woocommerce a.button,.woocommerce button.button,
.woocommerce #payment #place_order{background:var(--grad)!important;color:#060d27!important;font-weight:900!important}

/* upgrade-path steps */
.step__n{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;opacity:.55}
.step__go{color:var(--cyan)}

/* page hero */
.page-hero{
	background:radial-gradient(40rem 20rem at 85% -40%,rgba(98,90,197,.28),transparent 62%),
	           linear-gradient(170deg,#060a14,#0d1726 80%);
	border-bottom:1px solid var(--line);position:relative;
}
.page-hero::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:linear-gradient(90deg,transparent,var(--cyan),var(--violet),transparent);opacity:.5}

/* footer */
.site-footer{background:#040710;border-top:1px solid var(--line);position:relative}
.site-footer::before{content:"";position:absolute;top:-1px;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,var(--violet),var(--cyan),transparent);opacity:.5}
.site-footer a:hover{color:var(--cyan)}

/* pagination */
.pagination .current{background:var(--grad);color:#060d27;border-color:transparent}
.pagination .page-numbers:hover{border-color:var(--cyan);color:var(--cyan)}

/* the grid texture is distracting at phone size; drop it */
@media(max-width:767px){
	body{background-image:none}
	.hero::after{opacity:.5}
}
@media(prefers-reduced-motion:reduce){
	.btn--primary::after{display:none}
	.tile:hover,.step:hover,.woocommerce ul.products li.product:hover{transform:none}
}

/* The logo already says the brand name, so the text fallback only shows
   when there is no logo set. */
.brand:has(img){font-size:0}
@media(max-width:1059px){.brand img{max-height:40px}}

/* ---------- logo as a blurred hero backdrop ----------
   Sits behind the text as atmosphere rather than decoration: heavily blurred,
   low opacity and desaturated slightly so it reads as a glow in the brand
   colours rather than a second copy of the logo competing with the headline.
   ----------------------------------------------------- */
.hero__logo{
	position:absolute;
	top:50%; right:-6%;
	width:min(78vw,900px);
	aspect-ratio:1121/791;
	transform:translateY(-50%);
	background-repeat:no-repeat;
	background-position:center;
	background-size:contain;
	filter:blur(46px) saturate(1.25);
	opacity:.55;
	z-index:0;
	pointer-events:none;
}
/* A second, sharper copy at very low opacity keeps some of the rig's shape
   readable in the haze — pure blur alone just looks like a colour wash. */
.hero--logo::before{
	content:"";
	position:absolute;
	top:50%; right:-4%;
	width:min(62vw,720px);
	aspect-ratio:1121/791;
	transform:translateY(-50%);
	background-image:inherit;
	background-repeat:no-repeat;
	background-position:center;
	background-size:contain;
	filter:blur(10px);
	opacity:.08;
	z-index:0;
	pointer-events:none;
}
.hero--logo .hero__in{position:relative;z-index:3}
.hero--logo::after{z-index:2}

/* The text has to stay readable over it, so the left side is darkened. */
.hero--logo .hero__in::before{
	content:"";
	position:absolute;
	inset:-2rem -4rem -2rem -50vw;
	background:linear-gradient(100deg,
		rgba(6,13,39,.94) 0%,
		rgba(6,13,39,.86) 42%,
		rgba(6,13,39,.52) 68%,
		rgba(6,13,39,.18) 100%);
	z-index:-1;
	pointer-events:none;
}

@media(max-width:900px){
	/* On a phone the logo would sit under the headline rather than beside it,
	   so it moves up and back and fades further. */
	.hero__logo{top:22%;right:-18%;width:118vw;opacity:.34;filter:blur(54px) saturate(1.2)}
	.hero--logo::before{display:none}
	.hero--logo .hero__in::before{
		background:linear-gradient(175deg,rgba(6,13,39,.88) 0%,rgba(6,13,39,.80) 50%,rgba(6,13,39,.90) 100%);
	}
}
