/*
Theme Name: NSEW Security
Theme URI: https://nsewsecurity.com/
Author: NSEW Security
Description: A custom lead-generation WordPress theme for NSEW Security, featuring armed and unarmed security, mobile patrol, quote requests, and careers.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: nsew-security
*/

:root {
  --nsew-navy: #071a43;
  --nsew-navy-2: #0d285d;
  --nsew-red: #c60000;
  --nsew-red-dark: #930000;
  --nsew-white: #ffffff;
  --nsew-ice: #f3f6fb;
  --nsew-steel: #cbd3df;
  --nsew-text: #182033;
  --nsew-muted: #5d687c;
  --nsew-border: rgba(7, 26, 67, .14);
  --nsew-shadow: 0 18px 50px rgba(7, 26, 67, .14);
  --nsew-radius: 18px;
  --nsew-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--nsew-text);
  background: var(--nsew-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--nsew-red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--nsew-red-dark); }
button, input, select, textarea { font: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 9999;
  padding: 10px 14px;
  color: #fff;
  background: var(--nsew-navy);
}
.skip-link:focus { left: 8px; }

.nsew-container { width: min(calc(100% - 36px), var(--nsew-max)); margin-inline: auto; }
.nsew-section { padding: 88px 0; }
.nsew-section--tight { padding: 58px 0; }
.nsew-section--ice { background: var(--nsew-ice); }
.nsew-section--navy { color: #fff; background: var(--nsew-navy); }
.nsew-section--dark {
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(198,0,0,.28), transparent 30%),
    linear-gradient(135deg, #03102d, #0b2455 58%, #071a43);
}

.nsew-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--nsew-red);
  font-weight: 850;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.nsew-section--navy .nsew-eyebrow,
.nsew-section--dark .nsew-eyebrow { color: #ff5757; }
.nsew-eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; }

h1, h2, h3, h4 {
  margin: 0 0 .55em;
  color: var(--nsew-navy);
  font-family: "Arial Narrow", Impact, Haettenschweiler, "Franklin Gothic Condensed", sans-serif;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.8rem, 7vw, 5.9rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.75rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
.nsew-section--navy h2, .nsew-section--navy h3,
.nsew-section--dark h1, .nsew-section--dark h2, .nsew-section--dark h3 { color: #fff; }

.nsew-lead { max-width: 760px; font-size: clamp(1.08rem, 2vw, 1.28rem); color: var(--nsew-muted); }
.nsew-section--navy .nsew-lead, .nsew-section--dark .nsew-lead { color: #dce5f5; }
.nsew-copy-narrow { max-width: 760px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: #fff;
  background: rgba(3, 16, 45, .96);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
}
.admin-bar .site-header { top: 32px; }
.site-header__inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.site-brand img, .custom-logo { width: 70px; max-height: 66px; object-fit: contain; }
.site-brand__text { display: grid; line-height: 1; }
.site-brand__name { font-family: Impact, "Arial Narrow", sans-serif; font-size: 1.55rem; letter-spacing: .045em; }
.site-brand__tagline { margin-top: 7px; color: #ff4a4a; font-size: .68rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }

.primary-menu { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.primary-menu a { display: inline-flex; padding: 10px 11px; color: #fff; font-size: .93rem; font-weight: 700; text-decoration: none; border-radius: 9px; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { background: rgba(255,255,255,.1); }
.primary-menu .menu-item-quote > a,
.header-cta { background: var(--nsew-red); }
.primary-menu .menu-item-quote > a:hover,
.header-cta:hover { color: #fff; background: #e00000; }
.menu-toggle { display: none; border: 0; color: #fff; background: transparent; font-size: 1.5rem; cursor: pointer; }

.nsew-hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  display: grid;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(3,16,45,.98) 0%, rgba(7,26,67,.92) 48%, rgba(7,26,67,.45) 100%),
    linear-gradient(145deg, #051330, #0c2d64);
}
.nsew-hero::before,
.nsew-hero::after { content: ""; position: absolute; pointer-events: none; }
.nsew-hero::before {
  right: -8vw;
  top: 0;
  width: 48vw;
  height: 100%;
  opacity: .85;
  background:
    linear-gradient(160deg, transparent 12%, rgba(198,0,0,.95) 12% 25%, transparent 25% 42%, rgba(255,255,255,.08) 42% 52%, transparent 52% 68%, rgba(198,0,0,.52) 68% 78%, transparent 78%);
  transform: skewX(-8deg);
}
.nsew-hero::after {
  right: 3vw;
  bottom: -90px;
  width: 460px;
  height: 460px;
  border: 2px solid rgba(255,255,255,.13);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255,255,255,.04), 0 0 0 72px rgba(198,0,0,.08);
}
.nsew-hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; padding: 95px 0; }
.nsew-hero h1 { max-width: 880px; color: #fff; }
.nsew-hero h1 span { color: #ff3939; }
.nsew-hero__copy p { max-width: 740px; color: #dce5f5; font-size: clamp(1.08rem, 2vw, 1.32rem); }
.nsew-hero__logo { justify-self: center; width: min(390px, 100%); filter: drop-shadow(0 30px 35px rgba(0,0,0,.35)); }
.nsew-hero__actions, .nsew-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 28px; }
.nsew-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  color: #fff;
  background: var(--nsew-red);
  border: 2px solid var(--nsew-red);
  border-radius: 10px;
  font-weight: 850;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .045em;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.nsew-button:hover { color: #fff; background: #e00000; border-color: #e00000; transform: translateY(-2px); }
.nsew-button--outline { color: #fff; background: transparent; border-color: rgba(255,255,255,.7); }
.nsew-button--outline:hover { background: #fff; border-color: #fff; color: var(--nsew-navy); }
.nsew-button--navy { background: var(--nsew-navy); border-color: var(--nsew-navy); }
.nsew-button--navy:hover { background: var(--nsew-navy-2); border-color: var(--nsew-navy-2); }

.nsew-trustbar { color: #fff; background: var(--nsew-red); }
.nsew-trustbar__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.nsew-trustbar__item { padding: 22px 26px; text-align: center; border-right: 1px solid rgba(255,255,255,.25); }
.nsew-trustbar__item:last-child { border-right: 0; }
.nsew-trustbar strong { display: block; font-size: 1.02rem; letter-spacing: .05em; text-transform: uppercase; }
.nsew-trustbar span { display: block; margin-top: 2px; font-size: .88rem; opacity: .9; }

.nsew-grid { display: grid; gap: 24px; }
.nsew-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nsew-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nsew-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nsew-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--nsew-border);
  border-radius: var(--nsew-radius);
  box-shadow: 0 10px 30px rgba(7,26,67,.07);
}
.nsew-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: linear-gradient(90deg, var(--nsew-red), var(--nsew-navy)); }
.nsew-card p:last-child { margin-bottom: 0; }
.nsew-card__icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 20px; color: #fff; background: var(--nsew-navy); border-radius: 14px; font-size: 1.5rem; font-weight: 900; }
.nsew-card__link { display: inline-flex; margin-top: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .035em; text-decoration: none; }

.nsew-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.nsew-feature__visual {
  min-height: 490px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 50px;
  color: #fff;
  background:
    radial-gradient(circle at 72% 18%, rgba(198,0,0,.55), transparent 24%),
    linear-gradient(135deg, #03102d, #0d2b61);
  border-radius: 28px;
  box-shadow: var(--nsew-shadow);
}
.nsew-feature__visual::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border: 34px solid rgba(255,255,255,.08);
  border-radius: 50%;
}
.nsew-feature__visual img { position: relative; z-index: 2; width: min(300px, 78%); }
.nsew-checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 13px; }
.nsew-checklist li { position: relative; padding-left: 34px; }
.nsew-checklist li::before { content: "✓"; position: absolute; left: 0; top: .05em; width: 23px; height: 23px; display: grid; place-items: center; color: #fff; background: var(--nsew-red); border-radius: 50%; font-size: .75rem; font-weight: 900; }
.nsew-section--navy .nsew-checklist li::before { background: #ff3d3d; }

.nsew-process { counter-reset: steps; }
.nsew-step { position: relative; padding: 26px 24px 26px 76px; border-left: 2px solid var(--nsew-steel); }
.nsew-step::before { counter-increment: steps; content: counter(steps); position: absolute; left: 22px; top: 24px; width: 36px; height: 36px; display: grid; place-items: center; color: #fff; background: var(--nsew-red); border-radius: 50%; font-weight: 900; }
.nsew-step:last-child { border-left-color: transparent; }

.nsew-band { padding: 44px 0; color: #fff; background: linear-gradient(100deg, var(--nsew-red-dark), var(--nsew-red)); }
.nsew-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.nsew-band h2 { color: #fff; margin-bottom: .15em; font-size: clamp(1.9rem, 4vw, 3.1rem); }
.nsew-band p { margin: 0; color: rgba(255,255,255,.92); }

.nsew-page-hero { padding: 92px 0 72px; color: #fff; background: linear-gradient(130deg, #03102d, #0b2a62 70%, #871010); }
.nsew-page-hero h1 { color: #fff; font-size: clamp(2.8rem, 6vw, 5rem); }
.nsew-page-hero p { max-width: 760px; margin-bottom: 0; color: #dce5f5; font-size: 1.2rem; }

.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }

.nsew-form-wrap { max-width: 900px; padding: 34px; background: #fff; border: 1px solid var(--nsew-border); border-radius: var(--nsew-radius); box-shadow: var(--nsew-shadow); }
.nsew-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.nsew-field--full { grid-column: 1 / -1; }
.nsew-field label { display: block; margin-bottom: 7px; color: var(--nsew-navy); font-weight: 800; }
.nsew-field input, .nsew-field select, .nsew-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--nsew-text);
  background: #fff;
  border: 1px solid #b9c4d3;
  border-radius: 8px;
}
.nsew-field textarea { min-height: 150px; resize: vertical; }
.nsew-field input:focus, .nsew-field select:focus, .nsew-field textarea:focus { outline: 3px solid rgba(198,0,0,.18); border-color: var(--nsew-red); }
.nsew-honeypot { position: absolute !important; left: -9999px !important; }
.nsew-form-note { color: var(--nsew-muted); font-size: .9rem; }
.nsew-notice { margin-bottom: 24px; padding: 14px 18px; border-radius: 8px; font-weight: 700; }
.nsew-notice--success { color: #14532d; background: #dcfce7; border: 1px solid #86efac; }
.nsew-notice--error { color: #7f1d1d; background: #fee2e2; border: 1px solid #fca5a5; }

.nsew-contact-card { padding: 28px; color: #fff; background: var(--nsew-navy); border-radius: var(--nsew-radius); }
.nsew-contact-card h3 { color: #fff; }
.nsew-contact-card a { color: #fff; }
.nsew-stat { padding: 26px; text-align: center; border: 1px solid var(--nsew-border); border-radius: 14px; }
.nsew-stat strong { display: block; color: var(--nsew-red); font-family: Impact, "Arial Narrow", sans-serif; font-size: 2rem; letter-spacing: .03em; }

.site-footer { color: #dbe3f1; background: #020a1d; }
.site-footer__main { padding: 58px 0; display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 42px; }
.site-footer h3 { color: #fff; font-size: 1.25rem; }
.site-footer a { color: #dbe3f1; }
.site-footer__logo { width: 115px; }
.site-footer__nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.site-footer__bottom { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); color: #a9b5c9; font-size: .9rem; }

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .site-navigation { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 14px 18px 22px; background: #03102d; border-top: 1px solid rgba(255,255,255,.1); }
  .site-navigation.is-open { display: block; }
  .primary-menu { align-items: stretch; flex-direction: column; }
  .primary-menu a { width: 100%; }
  .nsew-hero__inner { grid-template-columns: 1fr; }
  .nsew-hero__logo { width: 250px; justify-self: start; }
  .nsew-feature { grid-template-columns: 1fr; }
  .nsew-grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .nsew-grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 700px) {
  body { font-size: 16px; }
  .nsew-section { padding: 66px 0; }
  .site-brand__text { display: none; }
  .site-brand img, .custom-logo { width: 58px; }
  .nsew-hero { min-height: auto; }
  .nsew-hero__inner { padding: 76px 0; }
  .nsew-hero__logo { display: none; }
  .nsew-trustbar__grid { grid-template-columns: 1fr; }
  .nsew-trustbar__item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.24); }
  .nsew-trustbar__item:last-child { border-bottom: 0; }
  .nsew-grid--2, .nsew-grid--3, .nsew-grid--4 { grid-template-columns: 1fr; }
  .nsew-form-grid { grid-template-columns: 1fr; }
  .nsew-field--full { grid-column: auto; }
  .nsew-band__inner { align-items: flex-start; flex-direction: column; }
  .site-footer__main { grid-template-columns: 1fr; }
}
