/* Switzer — self-hosted (Fontshare/ITF Free Font License). THE brand typeface. */
@font-face {
  font-family: 'Switzer';
  src: url('/wp-content/themes/dev/assets/fonts/switzer-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('/wp-content/themes/dev/assets/fonts/switzer-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('/wp-content/themes/dev/assets/fonts/switzer-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
/**
 * IPLokus sitewide chrome — glass header + drawer + dark title band.
 *
 * Loaded on every page that renders through the child header.php (the three
 * standalone tool templates carry their own copy of these rules inside
 * front-page.css). Scoped to unique .ipk-* classes: no Storefront collisions.
 * The FOOTER is deliberately untouched in this phase.
 *
 * @package dev
 */

:root {
  --ipk-ink: #14120b;
  --ipk-ink-2: #262217;
  --ipk-geo: #0ea5e9;
  --ipk-geo-dark: #0b88c2;
  --ipk-geo-light: #67d3f9;
}

/* ── Glass header ──────────────────────────────────────────────── */
.ipk-top {
  position: sticky; top: 0; z-index: 999; color: #edecec;
  background: rgba(20, 18, 11, 0.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.7);
  backdrop-filter: blur(18px) saturate(1.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@supports not (backdrop-filter: blur(1px)) {
  .ipk-top { background: rgba(20, 18, 11, 0.92); }
}
.admin-bar .ipk-top { top: 32px; }
@media (max-width: 782px) { .admin-bar .ipk-top { top: 46px; } }

.ipk-wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.ipk-top-in { display: flex; align-items: center; justify-content: space-between; height: 54px; }
.ipk-wordmark { display: flex; align-items: center; gap: 9px; color: #edecec; text-decoration: none; }
.ipk-wordmark:hover { color: #edecec; }
.ipk-wordmark b { font-size: 1.05rem; font-weight: 400; letter-spacing: 0.3px; }
.ipk-wordmark b span { color: var(--ipk-geo-light); }
.ipk-accent-fill { fill: var(--ipk-geo-light); }
.ipk-burger { display: flex; flex-direction: column; gap: 5px; padding: 12px 10px; background: none; border: 0; cursor: pointer; }
.ipk-burger i { display: block; width: 22px; height: 2px; background: #edecec; border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
.ipk-burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ipk-burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.ipk-burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Drawer ────────────────────────────────────────────────────── */
.ipk-drawer {
  position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); z-index: 100000;
  color: #edecec; padding: 68px 26px 26px;
  background: rgba(20, 18, 11, 0.55);
  -webkit-backdrop-filter: blur(26px) saturate(1.7);
  backdrop-filter: blur(26px) saturate(1.7);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateX(100%); transition: transform 0.28s ease;
}
@supports not (backdrop-filter: blur(1px)) {
  .ipk-drawer { background: rgba(20, 18, 11, 0.94); }
}
.ipk-drawer.open { transform: none; box-shadow: -18px 0 50px rgba(10, 9, 4, 0.5); }
.ipk-scrim { position: fixed; inset: 0; z-index: 99999; background: rgba(12, 10, 4, 0.5); opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.ipk-scrim.show { opacity: 1; pointer-events: auto; }
.ipk-drawer h5 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: #7d7768; margin: 22px 0 6px; font-weight: 400; }
.ipk-drawer a { display: block; color: #edecec; text-decoration: none; padding: 9px 2px; font-size: 1.02rem; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.ipk-drawer a:hover, .ipk-drawer a.now { color: var(--ipk-geo-light); }

/* ── Dark title band: what the glass frosts at scroll 0 ───────── */
.ipk-pageband {
  position: relative; overflow: hidden;
  background:
    radial-gradient(62% 52% at 76% 74%, rgba(224, 122, 52, 0.32), transparent 62%),
    linear-gradient(205deg, #0a1522 0%, #1a2b40 55%, #241d16 100%);
  color: #edecec;
  margin-top: -54px;
  padding: calc(54px + 34px) 0 40px;
}
.ipk-pageband .ipk-band-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.25); }
#ipk-band-orbit { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ipk-pageband .ipk-wrap { position: relative; z-index: 2; }
.ipk-pageband h1 {
  margin: 0; color: #edecec;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400; letter-spacing: -0.8px; line-height: 1.1;
  text-wrap: balance;
}

/* The band shows the title; hide the duplicate inside the content area */
body.ipk-band-on .entry-header .entry-title,
body.ipk-band-on .woocommerce-products-header__title { display: none; }
body.ipk-band-on .entry-header:has(> .entry-title:only-child) { display: none; }

/* ── Width alignment: the content rail matches the chrome rail ──
   Storefront's .col-full is wider than .ipk-wrap (1060px), so body text
   started left of the header/band. One rail everywhere. */
body.ipk-band-on #content .col-full {
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* ── Footer (phase 2, 2026-07-06) ──────────────────────────────── */
.ipk-foot { margin-top: 56px; background: var(--ipk-ink); color: #9d9787; }
.ipk-foot-in { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; font-size: 0.86rem; flex-wrap: wrap; gap: 12px; }
.ipk-foot a { color: #d9d5ca; text-decoration: none; margin-left: 18px; }
.ipk-foot a:hover { color: var(--ipk-geo-light); }
