/*
Theme Name: PrepKnow Logistics
Theme URI: https://prepknow.com
Author: PrepKnow
Description: A fast, clean WordPress theme for PrepKnow logistics directory and delivery communication pages.
Version: 1.7.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: prepknow-logistics
*/

:root {
  --pk-theme-bg: #f6f8fb;
  --pk-theme-surface: #ffffff;
  --pk-theme-ink: #0f172a;
  --pk-theme-muted: #5b6474;
  --pk-theme-line: #dde6f1;
  --pk-theme-primary: #1167f1;
  --pk-theme-radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--pk-theme-bg);
  color: var(--pk-theme-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--pk-theme-primary);
}

img {
  max-width: 100%;
  height: auto;
}

.pk-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 248, 251, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--pk-theme-line);
}

.pk-container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.pk-header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.pk-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--pk-theme-ink);
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -0.03em;
  font-size: 22px;
}

.pk-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--pk-theme-primary);
  color: #fff;
  font-weight: 900;
}

.pk-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pk-nav a {
  display: inline-flex;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--pk-theme-ink);
  text-decoration: none;
  font-weight: 750;
}

.pk-nav a:hover,
.pk-nav .current-menu-item > a {
  background: #eaf2ff;
  color: var(--pk-theme-primary);
}

.pk-main {
  min-height: 68vh;
}

.pk-content-wrap {
  padding: 28px 0 70px;
}

.pk-article {
  background: var(--pk-theme-surface);
  border: 1px solid var(--pk-theme-line);
  border-radius: var(--pk-theme-radius);
  padding: clamp(24px, 4vw, 44px);
}

.pk-article h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin-top: 0;
}

.pk-site-footer {
  border-top: 1px solid var(--pk-theme-line);
  background: #0f172a;
  color: #cbd5e1;
  padding: 38px 0;
}

.pk-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.pk-footer-inner a {
  color: #fff;
}

.pk-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 780px) {
  .pk-header-inner {
    display: block;
    padding: 14px 0;
  }

  .pk-nav ul {
    justify-content: flex-start;
    margin-top: 12px;
  }
}


/* PrepKnow v1.4 theme UX polish */
.pk-site-header {
  box-shadow: 0 10px 30px rgba(15,23,42,.04);
}

.pk-nav a[href*="add-business-location"] {
  background: var(--pk-theme-primary);
  color: #fff;
}

.pk-nav a[href*="dashboard"],
.pk-nav a[href*="business-live-chat"] {
  background: #eaf2ff;
  color: var(--pk-theme-primary);
}

.pk-content-wrap {
  padding-top: 18px;
}

.pk-article:has(.prepknow-hero),
.pk-article:has(.prepknow-page-hero),
body.single-prep_business .pk-article,
body.post-type-archive-prep_business .pk-article {
  background: transparent;
  border: 0;
  padding: 0;
}

@media (max-width: 980px) {
  .pk-nav ul {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 4px;
  }
  .pk-nav a {
    white-space: nowrap;
  }
}


/* PrepKnow v1.5 operations UX */
.pk-nav a[href*="operations-center"] {
  background: #f0fdf4;
  color: #166534;
}
.pk-nav a[href*="listing-standards"] {
  background: #fff7ed;
  color: #9a3412;
}


/* PrepKnow v1.6 mobile navigation and auth polish */
.pk-mobile-toggle{display:none;align-items:center;gap:9px;border:1px solid var(--pk-theme-line);background:#fff;color:var(--pk-theme-ink);border-radius:999px;padding:10px 12px;font-weight:900;cursor:pointer;box-shadow:0 10px 26px rgba(15,23,42,.07)}
.pk-mobile-toggle-bars{display:grid;gap:4px}.pk-mobile-toggle-bars span{display:block;width:20px;height:2px;border-radius:999px;background:currentColor}.pk-site-header.is-open .pk-mobile-toggle{background:#eaf2ff;color:var(--pk-theme-primary)}
.pk-nav a[href*="login-register"],.pk-nav a[href*="wp-login"]{background:#0f172a;color:#fff}.pk-nav a[href*="login-register"]:hover{background:#1167f1;color:#fff}
.pk-post-thumb,.pk-card-thumb{display:block;overflow:hidden;border-radius:20px;margin-bottom:16px;background:#eaf2ff}.pk-post-thumb img,.pk-card-thumb img{width:100%;height:auto;display:block;aspect-ratio:16/9;object-fit:cover}.pk-article .pk-post-thumb{margin:-8px 0 24px}.pk-article .pk-post-meta{color:var(--pk-theme-muted);font-weight:750;margin-top:-12px;margin-bottom:20px}.pk-archive-card{overflow:hidden}.pk-archive-card .prepknow-link{font-weight:900}
@media (max-width: 980px){
  .pk-header-inner{display:flex;min-height:68px;padding:10px 0;align-items:center}.pk-mobile-toggle{display:inline-flex}.pk-brand{min-width:0;font-size:20px}.pk-nav{position:absolute;left:18px;right:18px;top:calc(100% + 8px);display:none;background:#fff;border:1px solid var(--pk-theme-line);border-radius:24px;box-shadow:0 24px 70px rgba(15,23,42,.18);padding:12px;max-height:min(78vh,640px);overflow:auto}.pk-site-header.is-open .pk-nav{display:block}.pk-nav ul{display:grid!important;grid-template-columns:1fr;gap:7px;margin:0!important;padding:0!important;overflow:visible!important}.pk-nav li{display:block}.pk-nav a{display:flex;align-items:center;justify-content:space-between;width:100%;border-radius:16px;padding:13px 14px;background:#f8fafc;white-space:normal!important}.pk-nav a::after{content:'›';opacity:.38}.pk-nav a[href*="add-business-location"],.pk-nav a[href*="login-register"],.pk-nav a[href*="wp-login"]{justify-content:center}.pk-nav a[href*="add-business-location"]::after,.pk-nav a[href*="login-register"]::after,.pk-nav a[href*="wp-login"]::after{content:''}.pk-container{width:min(100% - 28px,1180px)}.pk-content-wrap{padding-top:16px}.pk-article{border-radius:20px;padding:20px}.pk-article h1{font-size:clamp(32px,10vw,48px)}
}
@media (max-width: 560px){.pk-brand span:not(.pk-brand-mark){max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pk-brand-mark{width:36px;height:36px}.pk-mobile-toggle .pk-mobile-label{display:none}.pk-nav{left:10px;right:10px}.prepknow-listing-grid{grid-template-columns:1fr!important}.pk-article{padding:16px}}

/* PrepKnow v1.7 profile portal navigation */
.pk-nav a[href*="my-profile"]{background:#f0fdf4;color:#166534}.pk-nav a[href*="my-profile"]:hover{background:#dcfce7;color:#14532d}
