/*
Theme Name: High Point Security Group
Theme URI: https://highpointsecurity.example
Author: High Point Security Group
Description: Custom theme for High Point Security Group — executive protection, armed and unarmed security, corporate intelligence and investigations. Dark steel-and-gold design built around the HPSG shield.
Version: 1.0.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: highpoint
*/

/* ===== Tokens ===== */
:root {
  --obsidian: #0b0c0e;      /* page background */
  --graphite: #14161a;      /* panels, cards */
  --graphite-2: #1b1e24;    /* raised surfaces */
  --line: #262a31;          /* hairlines */
  --steel: #bcc2cb;         /* brushed silver — primary headings */
  --steel-dim: #8b929e;     /* secondary text */
  --gold: #c99b2f;          /* logo gold — the single accent */
  --gold-bright: #e8b84b;   /* gold highlight (hover, keylines) */
  --ink-on-gold: #14120a;

  --font-display: "Big Shoulders", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", sans-serif;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(4rem, 9vw, 7.5rem);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--obsidian);
  color: var(--steel-dim);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: var(--gold); }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--steel);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 0 0 1rem;
}

p { margin: 0 0 1.15rem; }

.wrap {
  width: min(1180px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* Two-tone heading treatment — echoes the HIGH|POINT wordmark */
.tt-gold { color: var(--gold); }

/* Ops-briefing eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: var(--gold);
}

/* Ridgeline divider — the signature motif */
.ridge {
  display: block;
  width: 100%;
  height: 38px;
  color: var(--line);
}
.ridge--gold { color: var(--gold); opacity: 0.55; }
.ridge svg { display: block; width: 100%; height: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--obsidian) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--steel);
}
.brand img, .brand svg { height: 46px; width: auto; }
/* The logo JPG has a baked-in black background; screen-blending melts it into the dark page */
.brand img, .hero-shield img { mix-blend-mode: screen; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--steel);
}
.brand-text .tt-gold { color: var(--gold); }
.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--steel-dim);
  margin-top: 0.3rem;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--steel);
  font: inherit;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.95rem 1.9rem;
  border: 1px solid var(--gold);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-solid {
  background: var(--gold);
  color: var(--ink-on-gold);
}
.btn-solid:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--ink-on-gold); }
.btn-ghost { color: var(--steel); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: calc(var(--section-pad) * 1.1) 0 var(--section-pad);
  background:
    radial-gradient(1100px 480px at 78% -10%, rgba(201, 155, 47, 0.10), transparent 60%),
    linear-gradient(180deg, #101216 0%, var(--obsidian) 70%);
  overflow: hidden;
}
/* No z-index here: a stacking context would isolate the shield's mix-blend-mode from the photo */
.hero .wrap { position: relative; }

/* Photo backdrop with a slow drift (Ken Burns) */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.6) brightness(0.7) contrast(1.05);
  animation: hps-drift 32s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 12, 14, 0.92) 0%, rgba(11, 12, 14, 0.55) 55%, rgba(11, 12, 14, 0.35) 100%),
    linear-gradient(180deg, rgba(11, 12, 14, 0.3) 0%, transparent 40%, rgba(11, 12, 14, 0.95) 100%);
}
@keyframes hps-drift {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.12) translate(-1.5%, -2.5%); }
}

/* Orchestrated hero entrance */
@keyframes hps-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.hero .eyebrow     { animation: hps-rise 0.6s ease-out 0.05s both; }
.hero h1           { animation: hps-rise 0.6s ease-out 0.15s both; }
.hero .hero-lede   { animation: hps-rise 0.6s ease-out 0.3s both; }
.hero .hero-cta    { animation: hps-rise 0.6s ease-out 0.45s both; }
.hero .hero-strip  { animation: hps-rise 0.6s ease-out 0.6s both; }
/* Note: no animation/z-index on .hero-shield — either would create a stacking
   context and break the img's mix-blend-mode against the photo backdrop. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(3.2rem, 8.5vw, 6.5rem);
  margin-bottom: 1.4rem;
}
.hero-lede {
  max-width: var(--measure);
  font-size: 1.15rem;
  color: var(--steel-dim);
  margin-bottom: 2.2rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-shield { justify-self: center; position: relative; }
.hero-shield img, .hero-shield svg {
  width: clamp(220px, 26vw, 340px);
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.6));
}

/* credibility strip under hero CTAs */
.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel-dim);
}
.hero-strip span::before {
  content: "▸";
  color: var(--gold);
  margin-right: 0.55rem;
}

/* Legal DBA disclaimer */
.dba-note {
  margin: 1.1rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--steel-dim);
  opacity: 0.75;
}
.dba-note-footer { opacity: 0.85; }

/* ===== Sections ===== */
.section { padding: var(--section-pad) 0; }
.section-dark { background: var(--graphite); border-block: 1px solid var(--line); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.section-head p { font-size: 1.08rem; }

/* ===== Services grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-card {
  background: var(--graphite);
  padding: 1.9rem 1.7rem 1.7rem;
  position: relative;
  transition: background 0.2s ease;
}
.service-card:hover { background: var(--graphite-2); }
.service-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.service-card:hover::after { transform: scaleX(1); }
.service-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
}
.service-card p { font-size: 0.95rem; margin: 0; }
.service-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.service-card { color: var(--steel-dim); display: block; }
.service-card:hover { color: var(--steel-dim); }
.service-icon {
  display: block;
  width: 34px;
  height: 34px;
  color: var(--steel);
  margin-bottom: 1rem;
  transition: color 0.2s ease;
}
.service-card:hover .service-icon { color: var(--gold-bright); }
.card-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.service-card:hover .card-more { color: var(--gold-bright); }

/* ===== Service hero (detail pages) ===== */
.service-hero {
  position: relative;
  padding: calc(var(--section-pad) * 0.9) 0;
  background: linear-gradient(180deg, #101216 0%, var(--obsidian) 80%);
  overflow: hidden;
}
.service-hero .wrap { position: relative; z-index: 1; }
.service-hero h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); }
.service-hero .hero-lede { margin-bottom: 2rem; }
.service-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(62%, 820px);
  height: 100%;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
}

/* Photo layer under the line art on service heroes */
.service-photo {
  position: absolute;
  inset: 0;
}
.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.85) brightness(0.55) contrast(1.08);
}
.service-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 12, 14, 0.94) 0%, rgba(11, 12, 14, 0.72) 50%, rgba(11, 12, 14, 0.45) 100%),
    linear-gradient(180deg, transparent 55%, rgba(11, 12, 14, 0.95) 100%);
}

/* ===== Service detail layout ===== */
.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.scope-panel {
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  background: var(--graphite);
  padding: 1.8rem 1.7rem;
  position: sticky;
  top: 96px;
}
.scope-panel h3 {
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  margin-bottom: 1.1rem;
}
.scope-panel ul { list-style: none; margin: 0; padding: 0; }
.scope-panel li {
  padding: 0.6rem 0 0.6rem 1.4rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  position: relative;
}
.scope-panel li:last-child { border-bottom: none; }
.scope-panel li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ===== Field band (home page) ===== */
.field-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}
.field-panel {
  position: relative;
  display: block;
  min-height: 300px;
  border: 1px solid var(--line);
  background: linear-gradient(200deg, var(--graphite-2) 0%, var(--graphite) 70%);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.field-panel:hover { border-color: var(--gold); }
.field-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.85) brightness(0.5) contrast(1.05);
  transition: transform 0.4s ease, filter 0.3s ease;
}
.field-panel:hover .field-photo {
  transform: scale(1.04);
  filter: grayscale(0.5) brightness(0.6) contrast(1.05);
}
.field-panel .service-art {
  inset: 0;
  width: 100%;
  opacity: 0.35;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  transition: opacity 0.25s ease;
}
.field-panel:hover .service-art { opacity: 0.55; }
.field-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem 1.5rem;
  display: block;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 12, 14, 0.92) 55%);
}
.field-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.6rem;
  color: var(--steel);
  line-height: 1;
  margin: 0.35rem 0 0.4rem;
}
.field-sub {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.field-panel:hover .field-sub { color: var(--gold-bright); }

/* ===== Engagement process ===== */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  counter-reset: step;
}
.process-step {
  counter-increment: step;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  position: relative;
}
.process-step::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 0.7rem;
}
.process-step h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.95rem; margin: 0; }

/* ===== Credo band ===== */
.credo {
  text-align: center;
  padding: var(--section-pad) 0;
  background:
    radial-gradient(700px 300px at 50% 120%, rgba(201, 155, 47, 0.12), transparent 65%),
    var(--obsidian);
}
.credo-tagline {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 4.5vw, 3rem);
  letter-spacing: 0.08em;
  color: var(--steel);
}
.credo-tagline .sep { color: var(--gold); padding: 0 0.35em; }
.credo-tagline--sub {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  letter-spacing: 0.18em;
  margin-top: 2rem;
}

/* "Based in Chicago | Deployable worldwide" banner on the About page */
.about-banner {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  letter-spacing: 0.06em;
  color: var(--steel);
  margin: 2.5rem 0 0;
}
.about-banner .sep { color: var(--gold); padding: 0 0.4em; }
.credo p { max-width: 44rem; margin: 1.2rem auto 2rem; }

/* ===== CTA panel ===== */
.cta-panel {
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  background: var(--graphite);
  padding: clamp(2.2rem, 5vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta-panel h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0; }
.cta-panel p { margin: 0.4rem 0 0; }

/* ===== Forms (quote form) ===== */
.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.4rem;
  max-width: 46rem;
}
.quote-form .field-full { grid-column: 1 / -1; }
.quote-form label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.45rem;
}
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  background: var(--graphite-2);
  border: 1px solid var(--line);
  color: var(--steel);
  font: inherit;
  padding: 0.8rem 0.95rem;
  border-radius: 0;
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.quote-form textarea { min-height: 9rem; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--steel-dim); }
.form-success {
  border: 1px solid var(--gold);
  background: rgba(201, 155, 47, 0.08);
  color: var(--steel);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
}
.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* ===== Page content (generic) ===== */
.page-hero {
  padding: calc(var(--section-pad) * 0.7) 0 0;
}
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.9rem; margin-top: 2.4rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--graphite);
  padding: 3.5rem 0 2.5rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.site-footer h3 {
  font-size: 1rem;
  letter-spacing: 0.18em;
  color: var(--steel);
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: var(--steel-dim); }
.site-footer a:hover { color: var(--gold-bright); }
.footer-licenses {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--steel-dim);
}
.footer-licenses span::before {
  content: "▸";
  color: var(--gold);
  margin-right: 0.5rem;
}
.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shield { order: -1; }
  .hero-shield img, .hero-shield svg { width: clamp(150px, 34vw, 220px); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .service-detail { grid-template-columns: 1fr; }
  .scope-panel { position: static; }
  .service-art { width: 100%; opacity: 0.25; }

  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--obsidian);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 1rem var(--gutter) 1.5rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
@media (max-width: 640px) {
  .quote-form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
