/*
Theme Name: Camden Kelly Staffing
Theme URI: https://camdenkellystaffing.com
Author: Camden Kelly Staffing
Description: Custom WordPress theme for Camden Kelly Staffing — Dallas technology recruiting and staffing. Dark command-center aesthetic: fixed cyber-grid backdrop, scanline overlay, cyan glow accents, glass cards, telemetry header, and an animated pipeline HUD.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: camden-kelly
*/

/* =========================================================
   Tokens
   ========================================================= */
:root {
  --cyan: #1d83e0;
  --cyan-bright: #2196f3;
  --bg: #16181b;
  --text: #e5e5e5;
  --dim: rgba(255, 255, 255, 0.5);
  --dim-2: rgba(255, 255, 255, 0.65);
  --line: rgba(255, 255, 255, 0.1);
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: #16181b;
  background-image: linear-gradient(180deg, #3a3f45 0%, #26292e 28%, #1a1d20 62%, #101214 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
::selection { background: var(--cyan); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--cyan-bright); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 10; }

/* Fixed backdrop layers */
.cyber-grid {
  background-image:
    linear-gradient(rgba(33, 150, 243, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 150, 243, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center center;
}
.bg-layers { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.bg-layers .grid-layer { position: absolute; inset: 0; }
.bg-layers .fade-layer {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(20,22,25,0.35) 55%, rgba(14,16,18,0.75) 100%);
}
.bg-layers .side-glow {
  position: absolute; top: 0; right: 0; width: 50%; height: 100%;
  background: linear-gradient(to left, rgba(33,150,243,0.06), transparent);
}
.scanline-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 40; opacity: .5;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(33,150,243,0.03) 50%, rgba(33,150,243,0.03));
  background-size: 100% 4px;
}
.glow-cyan { text-shadow: 0 0 10px rgba(33,150,243,0.6), 0 0 20px rgba(33,150,243,0.25); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  min-height: 96px; border-bottom: 1px solid var(--line);
  background: rgba(22,24,27,0.65); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0;
  border: 1px solid rgba(33,150,243,0.45); background: rgba(33,150,243,0.1);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--cyan-bright);
  box-shadow: 0 0 15px rgba(33,150,243,0.2);
  transition: transform .3s;
}
.brand:hover .brand-logo { transform: rotate(25deg); }
.brand img.custom-logo { max-height: 52px; width: auto; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  letter-spacing: 0.04em; color: #fff; text-transform: uppercase; line-height: 1.1;
}
.brand-name span { color: var(--cyan-bright); }
.brand-sub { font-family: var(--font-mono); font-size: 9px; color: rgba(255,255,255,0.4); letter-spacing: 0.2em; text-transform: uppercase; margin: 4px 0 0; }

.telemetry { display: none; align-items: center; gap: 20px; font-family: var(--font-mono); font-size: 10px; color: var(--dim); user-select: none; }
@media (min-width: 1100px) { .telemetry { display: flex; } }
.telemetry .seg { display: flex; align-items: center; gap: 8px; border-right: 1px solid var(--line); padding-right: 20px; }
.telemetry .seg:last-child { border-right: 0; padding-right: 0; }
.pulse-dot { display: inline-block; height: 8px; width: 8px; border-radius: 50%; background: var(--cyan-bright); animation: pulse 1.6s ease-in-out infinite; box-shadow: 0 0 8px rgba(33,150,243,0.7); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.telemetry .k { color: var(--cyan-bright); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.telemetry .v { color: rgba(255,255,255,0.8); }

nav.tabs ul { list-style: none; display: flex; align-items: center; gap: 28px; }
nav.tabs { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
nav.tabs a {
  color: rgba(255,255,255,0.6); text-decoration: none; padding: 10px 0;
  position: relative; transition: color .2s; white-space: nowrap; display: block;
}
nav.tabs a:hover { color: #fff; text-decoration: none; }
nav.tabs .current-menu-item > a,
nav.tabs .current_page_item > a { color: #fff; font-weight: 700; }
nav.tabs .current-menu-item > a::after,
nav.tabs .current_page_item > a::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--cyan-bright); box-shadow: 0 0 8px rgba(33,150,243,0.6);
}
nav.tabs .sub-menu { display: none; }
@media (max-width: 900px) {
  .site-header { height: auto; padding: 14px 0; }
  .header-inner { flex-direction: column; }
  nav.tabs ul { gap: 18px; flex-wrap: wrap; justify-content: center; }
  nav.tabs { font-size: 11px; }
}

/* =========================================================
   Shared elements
   ========================================================= */
main { position: relative; z-index: 20; display: block; }

.eyebrow {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--cyan-bright); display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(33,150,243,0.3); background: rgba(33,150,243,0.07);
  padding: 6px 12px; border-radius: 4px;
}
h1.display {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: -0.02em; color: #fff; font-size: clamp(34px, 5.2vw, 58px); line-height: 1.05;
}
h2.section-title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  color: #fff; font-size: clamp(24px, 3.4vw, 36px); letter-spacing: -0.01em;
}
.section-sub { color: var(--dim); font-size: 15px; line-height: 1.7; max-width: 700px; }
.section-head { padding: 100px 0 48px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.section-head.center { align-items: center; text-align: center; }
.section-head.center .section-sub { margin: 0 auto; }
.section-head.tight { padding-top: 60px; }

.card {
  border: 1px solid var(--line); background: rgba(255,255,255,0.05);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 16px;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.8);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.card:hover { border-color: rgba(33,150,243,0.4); box-shadow: inset 0 0 40px rgba(0,0,0,0.8), 0 0 22px rgba(33,150,243,0.13); transform: translateY(-3px); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none;
  border-radius: 10px; padding: 14px 26px; transition: all .2s; border: 0;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--cyan-bright); color: #fff; box-shadow: 0 0 18px rgba(33,150,243,0.35); }
.btn-primary:hover { background: var(--cyan); box-shadow: 0 0 28px rgba(33,150,243,0.5); color: #fff; }
.btn-ghost { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.15); }
.btn-ghost:hover { border-color: rgba(33,150,243,0.45); color: var(--cyan-bright); }

.mono-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.4); }

.icon-chip {
  width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0;
  border: 1px solid rgba(33,150,243,0.35); background: rgba(33,150,243,0.09);
  display: flex; align-items: center; justify-content: center; color: var(--cyan-bright);
  box-shadow: 0 0 15px rgba(33,150,243,0.13);
}
.icon-chip svg { width: 22px; height: 22px; }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding: 80px 0 50px; display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 920px) { .hero { grid-template-columns: 7fr 5fr; } }
.hero-copy p.lede { color: rgba(255,255,255,0.55); font-size: 16.5px; line-height: 1.75; margin: 22px 0 32px; max-width: 580px; }
.hero-copy p.lede strong { color: #fff; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-rotator { display: block; }

.hero-hud { position: relative; padding: 28px; overflow: hidden; }
.hero-hud .scan-line {
  position: absolute; left: 0; right: 0; height: 90px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(33,150,243,0.09), transparent);
  animation: scanning 5s linear infinite;
}
@keyframes scanning { 0% { top: -25%; } 100% { top: 110%; } }
.hud-head { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 20px; }
.hud-rows { display: flex; flex-direction: column; gap: 12px; }
.hud-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid rgba(255,255,255,0.08); background: rgba(0,0,0,0.45);
  border-radius: 10px; padding: 12px 16px; font-family: var(--font-mono); font-size: 11px;
}
.hud-row .lbl { color: rgba(255,255,255,0.45); letter-spacing: 0.1em; text-transform: uppercase; }
.hud-row .val { color: var(--cyan-bright); font-weight: 700; white-space: nowrap; }
.hud-bar { height: 5px; flex: 1; max-width: 110px; background: #000; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.hud-bar i {
  display: block; height: 100%; width: var(--w, 90%);
  background: linear-gradient(to right, var(--cyan), var(--cyan-bright));
  box-shadow: 0 0 8px rgba(33,150,243,0.5);
  animation: barflux 3.2s ease-in-out infinite alternate;
}
@keyframes barflux {
  from { width: calc(var(--w, 90%) - 9%); }
  to   { width: var(--w, 90%); }
}
.hud-row:nth-child(1) .hud-bar i { animation-duration: 2.7s; animation-delay: -0.4s; }
.hud-row:nth-child(2) .hud-bar i { animation-duration: 3.6s; animation-delay: -1.1s; }
.hud-row:nth-child(3) .hud-bar i { animation-duration: 2.9s; animation-delay: -2.0s; }
.hud-row:nth-child(4) .hud-bar i { animation-duration: 3.9s; animation-delay: -0.7s; }
.hud-row:nth-child(5) .hud-bar i { animation-duration: 3.1s; animation-delay: -1.6s; }
.hud-output {
  margin-top: 14px; border: 1px solid rgba(33,150,243,0.4); background: rgba(33,150,243,0.08);
  border-radius: 10px; padding: 13px 16px; text-align: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  color: var(--cyan-bright); text-transform: uppercase;
}

/* =========================================================
   Stats band
   ========================================================= */
.stats-band { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 24px 0 10px; }
@media (min-width: 860px) { .stats-band { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 26px 22px; text-align: left; }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: 36px; color: #fff; line-height: 1; }
.stat .num span { color: var(--cyan-bright); }
.stat .cap { margin-top: 10px; line-height: 1.5; display: block; }

/* =========================================================
   Modules (expertise) / features / benefits
   ========================================================= */
.module-grid { display: grid; grid-template-columns: 1fr; gap: 18px; padding-bottom: 30px; }
@media (min-width: 900px) { .module-grid { grid-template-columns: repeat(3, 1fr); } }
.module { padding: 30px 28px; position: relative; overflow: hidden; }
.module .mod-code { position: absolute; top: 18px; right: 22px; font-family: var(--font-mono); font-size: 9px; color: rgba(255,255,255,0.25); letter-spacing: 0.2em; }
.module h3 { font-family: var(--font-display); font-size: 19px; color: #fff; text-transform: uppercase; margin: 20px 0 4px; }
.module .tag { font-family: var(--font-mono); font-size: 10px; color: var(--cyan-bright); letter-spacing: 0.12em; text-transform: uppercase; }
.module p { color: var(--dim); font-size: 14px; line-height: 1.75; margin-top: 12px; }
.module ul { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.module li { display: flex; gap: 9px; align-items: flex-start; color: var(--dim-2); font-size: 13px; line-height: 1.5; }
.module li::before {
  content: ""; width: 7px; height: 7px; flex-shrink: 0; margin-top: 6px;
  background: var(--cyan-bright); transform: rotate(45deg);
  box-shadow: 0 0 6px rgba(33,150,243,0.5);
}

.benefits-grid { display: grid; grid-template-columns: 1fr; gap: 14px; padding-bottom: 70px; }
@media (min-width: 760px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
.benefit { padding: 20px 22px; display: flex; gap: 16px; align-items: flex-start; }
.benefit h4 { font-family: var(--font-display); color: #fff; font-size: 14.5px; text-transform: uppercase; margin-bottom: 5px; }
.benefit p { color: var(--dim); font-size: 13px; line-height: 1.65; margin: 0; }

/* =========================================================
   Steps (process)
   ========================================================= */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 16px; padding-bottom: 70px; counter-reset: step; }
@media (min-width: 860px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
.step-card { padding: 26px 24px; position: relative; }
.step-card::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute; top: 20px; right: 24px;
  font-family: var(--font-mono); font-size: 22px; font-weight: 700;
  color: rgba(33,150,243,0.35);
}
.step-card h4 { font-family: var(--font-display); color: #fff; font-size: 16px; text-transform: uppercase; margin-bottom: 8px; padding-right: 48px; }
.step-card p { color: var(--dim); font-size: 13.5px; line-height: 1.7; margin: 0; }

/* =========================================================
   Testimonials
   ========================================================= */
.quote-grid { display: grid; grid-template-columns: 1fr; gap: 16px; padding-bottom: 70px; }
@media (min-width: 860px) { .quote-grid { grid-template-columns: repeat(2, 1fr); } }
.quote { padding: 28px 26px; }
.quote blockquote { color: var(--dim-2); font-size: 14px; line-height: 1.8; font-style: italic; margin-bottom: 18px; }
.quote cite { font-style: normal; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: #fff; text-transform: uppercase; }
.quote .role { font-family: var(--font-mono); font-size: 10px; color: var(--cyan-bright); letter-spacing: 0.15em; text-transform: uppercase; margin-top: 4px; display: block; }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band { margin-bottom: 90px; padding: 54px 40px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--cyan-bright), transparent);
}
.cta-band p { color: var(--dim); max-width: 580px; margin: 14px auto 30px; line-height: 1.7; }
.cta-band .hero-cta { justify-content: center; }

/* =========================================================
   About / values / two-col
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 50px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 7fr 5fr; } }
.about-copy p { color: rgba(255,255,255,0.55); font-size: 15px; line-height: 1.85; margin-bottom: 18px; }
.about-copy strong { color: #fff; }
.values { display: flex; flex-direction: column; gap: 14px; }
.value { padding: 22px 24px; display: flex; gap: 18px; align-items: flex-start; }
.value h4 { font-family: var(--font-display); color: #fff; font-size: 15px; text-transform: uppercase; margin-bottom: 5px; }
.value p { color: var(--dim); font-size: 13px; line-height: 1.65; margin: 0; }

.two-col { display: grid; grid-template-columns: 1fr; gap: 24px; padding-bottom: 90px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   Contact / forms
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 24px; padding-bottom: 90px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 7fr; } }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-item { padding: 22px 24px; display: flex; gap: 18px; align-items: center; }
.contact-item .meta .mono-label { margin-bottom: 4px; display: block; }
.contact-item .meta .v { color: #fff; font-size: 14px; font-weight: 500; }
.contact-item .meta .v a { color: var(--cyan-bright); text-decoration: none; }

.contact-form { padding: 34px 32px; }
.contact-form h3 { font-family: var(--font-display); color: #fff; font-size: 18px; text-transform: uppercase; margin-bottom: 6px; }
.contact-form .hint { color: rgba(255,255,255,0.45); font-size: 13px; margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(0,0,0,0.5); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; color: rgba(255,255,255,0.85);
  font-family: var(--font-mono); font-size: 12.5px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field select option { background: #16181b; color: #e5e5e5; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(33,150,243,0.55); box-shadow: 0 0 0 3px rgba(33,150,243,0.13);
}
.field-row { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-row .field { margin-bottom: 0; }
.field-row + .field, .field-row + .field-row { margin-top: 18px; }

.form-notice {
  margin: 0 0 24px; padding: 14px 16px; border-radius: 10px;
  font-family: var(--font-mono); font-size: 11.5px; display: flex; align-items: center; gap: 10px;
}
.form-notice--ok { border: 1px solid rgba(16,185,129,0.3); background: rgba(6,78,59,0.25); color: #34d399; }
.form-notice--err { border: 1px solid rgba(239,68,68,0.3); background: rgba(127,29,29,0.25); color: #f87171; }
.hp-field { position: absolute !important; left: -9999px !important; }

/* =========================================================
   Page hero (inner pages)
   ========================================================= */
.page-hero { padding: 80px 0 20px; }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: -0.02em; color: #fff; font-size: clamp(30px, 4.5vw, 48px); line-height: 1.08; margin: 24px 0 14px;
}
.page-hero p { color: var(--dim); font-size: 15.5px; line-height: 1.75; max-width: 640px; margin: 0; }

.entry { max-width: 780px; padding: 40px 0 90px; }
.entry p, .entry li { color: rgba(255,255,255,0.6); }
.entry h2, .entry h3 { font-family: var(--font-display); color: #fff; text-transform: uppercase; margin: 1.2em 0 0.5em; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { border-top: 1px solid var(--line); background: rgba(10,11,13,0.7); position: relative; z-index: 20; }
.footer-inner { padding: 40px 0; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-logo { width: 34px; height: 34px; font-size: 13px; }
.footer-brand .brand-name { font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; }
.footer-links a { color: rgba(255,255,255,0.45); text-decoration: none; }
.footer-links a:hover { color: var(--cyan-bright); }
.footer-meta { width: 100%; padding-bottom: 34px; display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; color: rgba(255,255,255,0.4); text-transform: uppercase; }
.footer-meta a { color: rgba(255,255,255,0.55); }

/* Utility */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}
