/* 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 front page — approved 2026-07 redesign (ported from the Desktop mockup).
 *
 * Scoped to body.iplokus-front (this template's own chrome). Sky accent,
 * warm-black hero with Dusk gradient backdrop (photo slot ready: swap the
 * .ipk-backdrop background for an <img> when a licensed shot lands), Apple
 * glass on header/drawer/result cards, Contours content surface.
 *
 * @package dev
 */

body.iplokus-front {
  --ipk-ink: #14120b;
  --ipk-ink-2: #262217;
  --ipk-card: #ffffff;
  --ipk-line: #e7e4dc;
  --ipk-text: #3d3a30;
  --ipk-muted: #8a857a;
  --ipk-geo: #0ea5e9;
  --ipk-geo-dark: #0b88c2;
  --ipk-geo-light: #67d3f9;
  --ipk-radius: 10px;

  margin: 0;
  font: 400 16px/1.55 "Switzer", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ipk-text);
  background:
    repeating-radial-gradient(circle at 12% -10%, transparent 0 54px, rgba(20, 18, 11, 0.035) 54px 55px),
    repeating-radial-gradient(circle at 95% 30%, transparent 0 80px, rgba(20, 18, 11, 0.028) 80px 81px),
    linear-gradient(180deg, #f8f7f3 0%, #f4f3ee 100%);
  -webkit-font-smoothing: antialiased;
}
body.iplokus-front * { box-sizing: border-box; }

.ipk-wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* ── Header: glass ─────────────────────────────────────────────── */
.ipk-top {
  position: sticky; top: 0; z-index: 50; 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); }
}
.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 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: glass ─────────────────────────────────────────────── */
.ipk-drawer {
  position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); z-index: 60;
  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: 55; 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); }

/* ── Hero ──────────────────────────────────────────────────────── */
.ipk-hero {
  position: relative; overflow: hidden;
  background: var(--ipk-ink); color: #edecec;
  margin-top: -54px;                       /* photo behind the glass at scroll 0 */
  padding: calc(54px + 64px) 0 108px;
}
.ipk-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; isolation: isolate; overflow: hidden; }
.ipk-backdrop {
  position: absolute; inset: 0; opacity: 0; transition: opacity 700ms ease-out; will-change: transform;
  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%);
}
body.ipk-bg-revealed .ipk-backdrop { opacity: 1; }
.ipk-grain { position: absolute; inset: 0; opacity: 0.35; mix-blend-mode: overlay; }
.ipk-scrimlayer { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.25); }
#ipk-orbit { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.ipk-hero .ipk-wrap { position: relative; z-index: 10; }
.ipk-hero-content { opacity: 0; transition: opacity 500ms ease-out 500ms; }
body.ipk-content-revealed .ipk-hero-content { opacity: 1; }

body.iplokus-front .ipk-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  line-height: 1.0; letter-spacing: -1.3px; font-weight: 400;
  color: #edecec; margin: 0; text-wrap: balance;
}
.ipk-sub { color: rgba(237, 236, 236, 0.78); margin: 14px 0 0; max-width: 52ch; text-wrap: balance; }
.ipk-lookup { display: flex; gap: 10px; margin-top: 34px; max-width: 560px; }
.ipk-lookup input {
  flex: 1; font: inherit; font-size: 16px; height: 48px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 6px;
  background: #fff; color: #171717; caret-color: #171717; outline: none; min-width: 0;
}
.ipk-lookup input:focus-visible { box-shadow: 0 0 0 3px var(--ipk-geo-light); }
.ipk-lookup button {
  font: inherit; font-weight: 400; color: #fff; background: var(--ipk-geo);
  border: 0; border-radius: 6px; height: 48px; padding: 0 24px; cursor: pointer;
}
.ipk-lookup button:hover { background: var(--ipk-geo-dark); }
.ipk-yourip { margin: 12px 0 0; font-size: 0.85rem; color: rgba(237, 236, 236, 0.55); }
.ipk-yourip a { color: var(--ipk-geo-light); text-decoration: none; }

/* ── Result cards: glass over the seam ─────────────────────────── */
.ipk-results { margin-top: -58px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; z-index: 11; }
.ipk-card {
  border-radius: var(--ipk-radius); padding: 16px 18px;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  backdrop-filter: blur(20px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 24px rgba(24, 20, 8, 0.12);
}
@supports not (backdrop-filter: blur(1px)) {
  .ipk-card { background: rgba(255, 255, 255, 0.94); }
}
.ipk-card h4 { font-size: 0.68rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ipk-muted); margin: 0; }
.ipk-card .v { margin-top: 5px; font-size: 1.06rem; color: #171410; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ipk-card .v.ipk-ip { font-size: 0.98rem; }
.ipk-card .s { font-size: 0.84rem; color: var(--ipk-muted); margin-top: 2px; }

/* ── Map panel: zero cost until requested ──────────────────────── */
.ipk-map-panel { margin-top: 16px; border: 1px solid var(--ipk-line); border-radius: var(--ipk-radius); overflow: hidden; background: var(--ipk-card); box-shadow: 0 6px 18px rgba(24, 20, 8, 0.07); }
.ipk-map-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--ipk-line); }
.ipk-map-bar b { color: #171410; font-size: 0.95rem; font-weight: 400; }
.ipk-map-bar span { font-size: 0.82rem; color: var(--ipk-muted); }
.ipk-map-stage { position: relative; height: 420px; }
.ipk-facade {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(0deg, transparent 0 46px, #eae9df 46px 48px),
    repeating-linear-gradient(90deg, transparent 0 46px, #eae9df 46px 48px),
    linear-gradient(135deg, #f3f2e8 0%, #eff0e4 55%, #eaeee0 100%);
}
.ipk-facade::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background:
    linear-gradient(115deg, transparent 42%, #f3d98b 42.5%, #f3d98b 43.6%, transparent 44%),
    linear-gradient(20deg, transparent 60%, #f0c46c 60.4%, #f0c46c 61.2%, transparent 61.6%),
    linear-gradient(75deg, transparent 24%, #e3e4ea 24.4%, #e3e4ea 25.4%, transparent 25.8%);
}
.ipk-pinwrap { position: relative; text-align: center; z-index: 2; }
.ipk-pin { width: 44px; height: 44px; filter: drop-shadow(0 6px 8px rgba(24, 20, 8, 0.3)); }
.ipk-pulse { position: absolute; left: 50%; top: 34px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: rgba(255, 90, 69, 0.5); animation: ipk-pulse 2s infinite; }
@keyframes ipk-pulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(5); opacity: 0; } }
.ipk-loadmap { margin-top: 14px; font: inherit; cursor: pointer; background: var(--ipk-ink); color: #edecec; border: 0; border-radius: 999px; padding: 11px 22px; }
.ipk-loadmap:hover:not(:disabled) { background: var(--ipk-ink-2); }
.ipk-loadmap:disabled { opacity: 0.55; cursor: default; }
.ipk-facade .hint { margin-top: 9px; font-size: 0.8rem; color: #85846f; }
.ipk-livemap { position: absolute; inset: 0; display: none; }
.ipk-livemap.on { display: block; }
.ipk-livemap .leaflet-container { width: 100%; height: 100%; }

/* ── Promos + CMS copy ─────────────────────────────────────────── */
.ipk-promo { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ipk-pcard { background: var(--ipk-card); border: 1px solid var(--ipk-line); border-radius: var(--ipk-radius); padding: 22px 24px; }
.ipk-pcard h3 { color: #171410; font-size: 1.06rem; font-weight: 400; margin: 0; }
.ipk-pcard p { font-size: 0.92rem; margin: 6px 0 0; }
.ipk-pcard a { display: inline-block; margin-top: 12px; color: var(--ipk-geo); text-decoration: none; }
.ipk-pcard a:hover { color: var(--ipk-geo-dark); }
.ipk-copy { margin: 44px 0 0; max-width: 68ch; }
body.iplokus-front .ipk-copy h2 { color: #171410; font-size: 1.2rem; margin: 0 0 8px; font-weight: 400; letter-spacing: -0.3px; }
.ipk-copy p { margin: 0 0 12px; font-size: 0.95rem; }
.ipk-copy a { color: var(--ipk-geo); }

/* ── Footer ────────────────────────────────────────────────────── */
.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); }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .ipk-results { grid-template-columns: 1fr 1fr; }
  .ipk-promo { grid-template-columns: 1fr; }
  .ipk-map-stage { height: 340px; }
}
@media (max-width: 460px) {
  .ipk-results { grid-template-columns: 1fr; margin-top: -48px; }
  .ipk-lookup { flex-direction: column; }
  .ipk-lookup button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ipk-backdrop, .ipk-hero-content, .ipk-drawer { transition: none; }
  .ipk-pulse { animation: none; }
}
