/*
Theme Name: Cognito Business
Theme URI: https://cognito.business
Description: The public website of Cognito — electrical and IT infrastructure installers, a hardware shop and a consultancy. A child of Twenty Twenty-Five, so WooCommerce's shop, basket and checkout templates wear the brand without being rebuilt. Demo customer of the Cogenic self-host fixture.
Author: Monza Creatives
Template: twentytwentyfive
Version: 1.1.11
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: cognito-business
*/

/* ── Only what theme.json cannot say ─────────────────────────────────────────────────────────── */

/* The wordmark is an inline SVG whose letters are TEXT, so it renders in the page's own Raleway —
   an <img> could not reach a web font and would fall back to a system face. */
.cog-logo { display: inline-flex; align-items: center; line-height: 0; }
.cog-logo svg { height: 34px; width: auto; }
.cog-logo--light text { fill: #ffffff; }

/* Header: a quiet bar that stays put. */
/* ☠️ The frosted blur lives on a ::before layer, NOT on the header: `backdrop-filter` makes an element the
   containing block for its position:fixed descendants, and the phone menu's full-screen overlay is one — it
   opened 63px tall, trapped in the header bar, showing one link (David, 2026-09-23). */
.cog-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--wp--preset--color--line); }
.cog-header::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
	background: color-mix(in srgb, var(--wp--preset--color--base) 88%, transparent); }

/* The phone menu, open: full screen, white, big tappable links in the brand face. */
.cog-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--contrast) !important; padding: 1.25rem clamp(1rem, 4vw, 2rem) 2rem; }
.cog-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 0 !important; width: 100%; }
.cog-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%;
	border-bottom: 1px solid var(--wp--preset--color--line); }
.cog-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: block; padding: 1rem 0; font-family: var(--wp--preset--font-family--raleway); font-size: 1.5rem; font-weight: 500; }
.cog-header .wp-block-navigation__responsive-container-close { color: var(--wp--preset--color--contrast); }
.cog-header .wp-block-navigation__responsive-container-open,
.cog-header .wp-block-navigation__responsive-container-close { padding: .35rem; }
.cog-header .wp-block-navigation a:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 3px; }
.cog-header .wp-block-navigation a { font-weight: 500; }
.cog-header .wp-block-navigation a:hover { color: var(--wp--preset--color--primary); }

/* Hero — a deep navy field with a faint cable grid, drawn in CSS so no image has to load. */
.cog-hero { position: relative; overflow: hidden; color: #fff;
	background:
		radial-gradient(1100px 520px at 85% 10%, rgba(80, 196, 237, .22), transparent 60%),
		radial-gradient(900px 600px at 0% 100%, rgba(56, 122, 223, .35), transparent 55%),
		linear-gradient(180deg, #0a1a33 0%, #0d2345 100%); }
.cog-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
	background-image:
		linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); }
.cog-hero > * { position: relative; }
.cog-hero .cog-eyebrow { color: var(--wp--preset--color--accent); }
.cog-hero p { color: rgba(255, 255, 255, .82); }
.cog-hero-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 60px rgba(0,0,0,.35)); }

.cog-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; }

/* Trust strip */
.cog-trust { border-bottom: 1px solid var(--wp--preset--color--line); }
.cog-trust p { display: flex; align-items: center; gap: .6rem; margin: 0; }
.cog-trust p::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%;
	background: var(--wp--preset--color--accent); box-shadow: 0 0 0 4px rgba(80,196,237,.18); }

/* Cards */
.cog-card { height: 100%; border: 1px solid var(--wp--preset--color--line); border-radius: 14px;
	background: var(--wp--preset--color--base); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.cog-card:hover { transform: translateY(-3px); border-color: rgba(56,122,223,.35);
	box-shadow: 0 18px 40px -22px rgba(13, 35, 69, .45); }
.cog-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
	background: linear-gradient(135deg, rgba(56,122,223,.12), rgba(80,196,237,.18)); color: var(--wp--preset--color--primary); }
.cog-icon svg { width: 26px; height: 26px; }

/* Numbered process */
.cog-step-num { font-family: var(--wp--preset--font-family--raleway); font-weight: 300; font-size: 3rem;
	line-height: 1; color: var(--wp--preset--color--primary); }

/* Quotes */
.cog-quote { border-left: 3px solid var(--wp--preset--color--accent); padding-left: 1.25rem; }

/* Call-to-action band */
.cog-cta { background: linear-gradient(120deg, #2f6fd6 0%, #387adf 45%, #50c4ed 130%); color: #fff; border-radius: 22px; }
.cog-cta p { color: rgba(255,255,255,.88); }

/* Footer */
.cog-footer { background: #0a1a33; color: rgba(255,255,255,.72); }
.cog-footer a { color: rgba(255,255,255,.86); text-decoration: none; }
.cog-footer a:hover { color: #fff; text-decoration: underline; }
.cog-footer h2, .cog-footer h3 { color: #fff; }
.cog-footer .cog-small { font-size: .82rem; color: rgba(255,255,255,.5); }

/* Contact details list */
.cog-list { list-style: none; padding: 0; margin: 0; }
.cog-list li { padding: .45rem 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.cog-footer .cog-list li { border-color: rgba(255,255,255,.08); }

/* WooCommerce — small touches only; the blocks already read theme.json. */
.wc-block-components-product-badge, .wc-block-components-sale-badge { border-radius: 999px; }
.wp-block-woocommerce-product-template .wc-block-components-product-image img,
.wc-block-grid__product-image img, .woocommerce-product-gallery img { border-radius: 12px; background: #f3f7fd; }
.wc-block-components-product-price { font-weight: 600; color: var(--wp--preset--color--contrast); }

@media (max-width: 781px) {
	.cog-logo svg { height: 28px; }
	.cog-hide-mobile { display: none !important; }
}

/* WooCommerce's own demo-store bar is switched OFF (setup/02-store.php) — the top strip carries the note. */

/* A product name is a name, not a headline: the display size made the long ones four lines tall. */
.single-product .wp-block-post-title { font-size: clamp(1.75rem, 2.6vw, 2.4rem) !important; font-weight: 600; }

/* Basket count — WooCommerce paints the badge from inline styles (navy on navy here), so the brand
   colours are forced: a white number on Cognito blue, ringed white so it lifts off the icon. */
.wc-block-mini-cart__badge { background: var(--wp--preset--color--primary) !important; color: #fff !important;
	font-weight: 700; font-size: .72rem !important; box-shadow: 0 0 0 2px #fff; min-width: 1.35rem !important; height: 1.35rem !important; }

/* Top strip — the demonstration note and "Powered by" the Cogenic logo, white on navy. */
/* Solid royal blue (David, 2026-09-23: "lose the hashing — just a solid colour"). */
.cog-topbar { color: rgba(255,255,255,.8); font-size: .78rem; background: #21448f; }
/* Whole-pixel geometry: a 32px row with a 20px logo centres it at an integer offset. A fractional top
   (measured 6.69px with rem padding) smears every horizontal stroke of the mark by half a pixel. */
.cog-topbar > .alignwide { min-height: 32px; align-items: center; }
.cog-topbar p { margin: 0; }
.cog-powered { display: inline-flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; white-space: nowrap; }
.cog-powered span { color: rgba(255,255,255,.6); }
/* ⚠️ The mark is thin strokes (24 units of a 200-unit height): at 16px each is ~1.9px, crisp only on
   whole pixels — hence the fixed 32px row below. At 15px it smeared (54% of its pixels solid, the E's bar grey). */
.cog-powered svg { height: 16px; width: auto; display: block; } /* 16px (David, 2026-09-23) — 112 × 16, whole pixels in the 32px row */
.cog-powered:hover span { color: #fff; }
/* Phones: the note goes; the mark stays RIGHT-aligned — centring put it at x 163.9, a half-pixel smear. */
@media (max-width: 600px) { .cog-topbar__note { display: none; } .cog-topbar .alignwide { justify-content: flex-end !important; } }
.cog-header .is-menu-open .wp-block-navigation__responsive-container-content,
.cog-header .is-menu-open .wp-block-navigation__container { align-items: flex-start !important; justify-content: flex-start !important; }
.cog-header .is-menu-open .wp-block-navigation-item { justify-content: flex-start !important; text-align: left; }
/* The menu focuses its first link on open; show a ring to KEYBOARD users only, not a box after a tap. */
.cog-header .is-menu-open a:focus:not(:focus-visible) { outline: none !important; box-shadow: none !important; }
/* The desktop menu is right-justified, and WordPress hands that to the open overlay through these two
   variables — which beat plain alignment rules. Reset them for the open menu only. */
.cog-header .wp-block-navigation__responsive-container.is-menu-open { --navigation-layout-justification-setting: flex-start; --navigation-layout-justify: flex-start; --navigation-layout-align: flex-start; }
.cog-header .is-menu-open .wp-block-navigation-item__content { text-align: left !important; width: 100%; }
