/* Integrated Protective Solutions, Inc. — site styles
   Palette taken from the IPS patrol vehicle livery. */
:root {
  --white: #FFFFFF;
  --fog: #F1F3F6;        /* page tint */
  --silver: #B9C1CD;     /* rules, borders */
  --steel: #5A6778;      /* secondary text */
  --navy: #0D2B55;       /* primary text, dark sections */
  --stripe: #1454A0;     /* livery stripe, links, buttons */
  --stripe-dark: #0E3F7A;
  --signal: #E9A23B;     /* light-bar amber, used sparingly */
  --ok: #2F7D5B;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--stripe); text-underline-offset: 3px; }
a:hover { color: var(--stripe-dark); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-stretch: 118%;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; font-stretch: 110%; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--silver);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 44px; height: auto; flex-shrink: 0; }
.brand-name { font-stretch: 120%; font-weight: 800; font-size: 1.05rem; line-height: 1.1; }
.brand-name small { display: block; font-stretch: 100%; font-weight: 500; font-size: .78rem; color: var(--steel); letter-spacing: .01em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--navy); font-weight: 600; font-size: .98rem; padding: 10px 12px; border-radius: var(--radius); }
.nav a:hover { background: var(--fog); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--stripe); box-shadow: inset 0 -3px 0 var(--stripe); border-radius: 0; }
.nav .nav-phone { margin-left: 8px; }

.menu-toggle { display: none; background: none; border: 1px solid var(--silver); border-radius: var(--radius); padding: 8px 12px; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 74px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 8px 16px 20px; border-bottom: 1px solid var(--silver); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid var(--fog); }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--stripe); padding-left: 16px; }
  .nav .nav-phone { margin: 12px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 1rem;
  padding: 14px 24px; border-radius: var(--radius); border: 2px solid var(--stripe);
  background: var(--stripe); color: var(--white); cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--stripe-dark); border-color: var(--stripe-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-light:hover { background: var(--fog); color: var(--navy); border-color: var(--fog); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 80px; background: var(--white); overflow: hidden; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-copy { flex: 1 1 440px; }
.hero-copy .lede { font-size: 1.2rem; color: var(--steel); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-cred { margin-top: 28px; font-size: .95rem; color: var(--steel); }
.hero-cred strong { color: var(--navy); }

/* The signature element: a sample patrol report */
.log {
  flex: 1 1 420px; max-width: 520px;
  background: var(--navy); color: var(--white);
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 24px 48px -24px rgba(13,43,85,.55);
  position: relative;
}
.log::before { /* livery stripe */
  content: ""; position: absolute; top: 0; right: 48px; width: 64px; height: 100%;
  background: var(--stripe); transform: skewX(-18deg); opacity: .55;
}
.log-head, .log-foot { position: relative; padding: 18px 22px; }
.log-head { border-bottom: 1px solid rgba(255,255,255,.14); }
.log-head h2 { font-size: 1.05rem; margin: 0; font-stretch: 112%; }
.log-head p { margin: 2px 0 0; font-size: .85rem; color: var(--silver); }
.log ol { list-style: none; margin: 0; padding: 6px 0; position: relative; }
.log li {
  display: flex; gap: 16px; align-items: baseline;
  padding: 11px 22px; font-size: .95rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.log li:last-child { border-bottom: 0; }
.log time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--silver); min-width: 5.2em; }
.log .dot { width: 9px; height: 9px; border-radius: 50%; background: #6FCF97; flex-shrink: 0; transform: translateY(-1px); }
.log .dot.flag { background: var(--signal); }
.log li span:last-child { flex: 1; }
.log-foot { font-size: .82rem; color: var(--silver); border-top: 1px solid rgba(255,255,255,.14); }

.log li { opacity: 0; animation: logIn .45s ease-out forwards; }
.log li:nth-child(1) { animation-delay: .2s; }
.log li:nth-child(2) { animation-delay: .5s; }
.log li:nth-child(3) { animation-delay: .8s; }
.log li:nth-child(4) { animation-delay: 1.1s; }
.log li:nth-child(5) { animation-delay: 1.4s; }
.log li:nth-child(6) { animation-delay: 1.7s; }
@keyframes logIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .log li { opacity: 1; } }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-tint { background: var(--fog); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark a { color: var(--white); }
.section-dark p { color: #D8DDE5; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--steel); font-size: 1.1rem; }
.section-dark .section-head p { color: var(--silver); }

/* Photo band */
.photo-band {
  min-height: 420px; background-color: var(--navy);
  background-size: cover; background-position: center 60%;
  display: flex; align-items: flex-end;
}
.photo-band .caption {
  background: rgba(13,43,85,.88); color: var(--white);
  padding: 18px 24px; margin: 0 0 28px; border-left: 4px solid var(--signal);
  max-width: 560px; font-size: .98rem;
}
.photo-band .caption strong { display: block; font-stretch: 115%; font-size: 1.1rem; }

/* Service list (home) */
.svc-list { display: flex; flex-wrap: wrap; border-top: 2px solid var(--navy); }
.svc-list a {
  flex: 1 1 340px; display: block; text-decoration: none; color: var(--navy);
  padding: 26px 28px 26px 0; border-bottom: 1px solid var(--silver);
}
.svc-list a:hover h3 { color: var(--stripe); }
.svc-list h3 { margin-bottom: .3em; }
.svc-list p { margin: 0; color: var(--steel); font-size: 1rem; }

/* Deliverables */
.deliver { display: flex; flex-wrap: wrap; gap: 40px; }
.deliver > div { flex: 1 1 280px; border-top: 4px solid var(--stripe); padding-top: 18px; }
.section-dark .deliver > div { border-top-color: var(--signal); }
.deliver h3 { font-size: 1.15rem; }

/* Process (real sequence, so numbered) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: flex; flex-wrap: wrap; gap: 32px; }
.steps li { flex: 1 1 220px; counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: var(--white); font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--steel); font-size: 1rem; margin: 0; }

/* Areas */
.areas { display: flex; flex-wrap: wrap; gap: 12px 32px; list-style: none; padding: 0; margin: 0; }
.areas li { flex: 1 1 240px; padding: 14px 0; border-bottom: 1px solid var(--silver); }
.areas strong { display: block; font-stretch: 112%; }
.areas span { color: var(--steel); font-size: .95rem; }

/* Two-column text */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split > * { flex: 1 1 380px; }

/* Checklist */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 10px 0 10px 32px; position: relative; border-bottom: 1px solid var(--silver); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 7px; border-left: 3px solid var(--stripe); border-bottom: 3px solid var(--stripe); transform: rotate(-45deg); }
.section-dark .checks li { border-bottom-color: rgba(255,255,255,.15); }
.section-dark .checks li::before { border-color: var(--signal); }

/* CTA band */
.cta-band { background: var(--stripe); color: var(--white); padding: 64px 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { margin: 0 0 .25em; }
.cta-band p { margin: 0; color: #DCE7F5; }

/* Page header (inner pages) */
.page-head { padding: 64px 0 48px; border-bottom: 1px solid var(--silver); }
.page-head p { font-size: 1.2rem; color: var(--steel); max-width: 60ch; }

/* Service detail blocks */
.svc-detail { display: flex; flex-wrap: wrap; gap: 24px 56px; padding: 48px 0; border-bottom: 1px solid var(--silver); scroll-margin-top: 90px; }
.svc-detail:last-child { border-bottom: 0; }
.svc-detail h2 { flex: 0 1 340px; font-size: 1.7rem; }
.svc-detail .body { flex: 1 1 460px; }
.svc-detail ul { margin: 0; padding-left: 1.2em; color: var(--steel); }
.svc-detail li { margin-bottom: .35em; }

/* Team */
.team { display: flex; flex-wrap: wrap; gap: 40px; }
.person { flex: 1 1 300px; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; min-height: 280px; border-radius: var(--radius);
  background: var(--fog); overflow: hidden; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
}
.portrait .initials { font-size: 3.4rem; font-weight: 800; font-stretch: 125%; color: var(--silver); }
.portrait img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin-bottom: .1em; }
.person .role { color: var(--stripe); font-weight: 700; margin-bottom: .6em; }
.person p { color: var(--steel); font-size: 1rem; }

/* Forms */
.form { max-width: 640px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .98rem; }
.field .hint { font-weight: 400; color: var(--steel); font-size: .88rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--navy);
  padding: 12px 14px; border: 1px solid var(--silver); border-radius: var(--radius); background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--stripe); outline: 2px solid var(--stripe); outline-offset: 0; }
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: flex; flex-wrap: wrap; gap: 0 18px; }
.field-row .field { flex: 1 1 240px; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 16px 18px; border-radius: var(--radius); margin-bottom: 24px; font-weight: 600; display: none; }
.notice.show { display: block; }
.notice.ok { background: #E6F3EC; color: var(--ok); border-left: 4px solid var(--ok); }
.notice.err { background: #FBEDE7; color: #9A3412; border-left: 4px solid #C2410C; }

.contact-card { background: var(--fog); border-radius: 10px; padding: 32px; }
.contact-card h2 { font-size: 1.4rem; }
.contact-card dl { margin: 0; }
.contact-card dt { font-weight: 700; margin-top: 16px; }
.contact-card dd { margin: 2px 0 0; color: var(--steel); }
.contact-card dd a { color: var(--navy); font-weight: 600; }

/* Legal copy */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.4rem; margin-top: 1.6em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C9D0DB; padding: 64px 0 28px; font-size: .95rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-grid > div { flex: 1 1 200px; }
.footer-grid .footer-brand { flex: 1.4 1 280px; }
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: .8em; font-stretch: 112%; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.license { display: inline-block; margin-top: 12px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); color: var(--white); font-weight: 600; font-size: .88rem; }
.footer-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }

@media (max-width: 640px) {
  .hero { padding: 48px 0 56px; }
  .section { padding: 60px 0; }
  .photo-band { min-height: 300px; }
  .log::before { right: 24px; width: 40px; }
  .svc-list a { padding-right: 0; }
}

/* Fixes */
.nav a.btn { color: var(--white); }
.nav a.btn:hover { background: var(--stripe-dark); color: var(--white); }
.photo-band .wrap { width: 100%; }
.areas li { flex: 1 1 180px; }
.section-tint .portrait { background: var(--white); border: 1px solid var(--silver); }
.section-tint .person { background: var(--white); border-top: 4px solid var(--stripe); padding: 24px 26px 8px; border-radius: 0 0 var(--radius) var(--radius); }
.photo-band { background-color: var(--navy); background-image: linear-gradient(135deg, var(--navy), var(--stripe)); }

/* Technology stack */
.stack { display: flex; flex-wrap: wrap; gap: 32px 48px; }
.stack > div { flex: 1 1 300px; }
.stack h3 { font-size: 1.15rem; padding-bottom: 12px; border-bottom: 2px solid var(--navy); margin-bottom: 4px; }
.stack ul { list-style: none; margin: 0; padding: 0; }
.stack li { padding: 14px 0; border-bottom: 1px solid var(--silver); }
.stack li strong { display: block; font-stretch: 110%; }
.stack li span { color: var(--steel); font-size: .97rem; }
.benefit-list { max-width: 820px; }
.benefit-list strong { color: var(--navy); }
.section-dark a.btn-light { color: var(--navy); }
.section-dark a.btn-light:hover { color: var(--navy); }

/* ===== Dark navy theme: navy backgrounds, silver and white type ===== */
:root {
  --bg: #0B2447; --bg-2: #10305B; --bg-3: #071A35;
  --ink: #FFFFFF; --ink-2: #C5CFDC; --rule: rgba(197,207,220,.28);
}
body { background: var(--bg); color: var(--ink); }
a { color: #A9C6EC; } a:hover { color: #FFFFFF; }
.site-header { background: var(--bg-3); border-bottom-color: var(--rule); }
.brand, .nav a { color: var(--ink); }
.brand-name small { color: var(--ink-2); }
.nav a:hover { background: var(--bg-2); color: var(--ink); }
.nav a[aria-current="page"] { color: #FFFFFF; box-shadow: inset 0 -3px 0 var(--silver); }
.menu-toggle { color: var(--ink); border-color: var(--rule); }
@media (max-width: 900px) { .nav { background: var(--bg-3); border-bottom-color: var(--rule); } .nav a { border-bottom-color: var(--bg-2); } .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--silver); } }
.hero, .page-head { background: var(--bg); }
.page-head { border-bottom-color: var(--rule); }
.hero-copy .lede, .page-head p, .section-head p, .hero-cred { color: var(--ink-2); }
.hero-cred strong { color: var(--ink); }
.log { background: var(--bg-3); border: 1px solid var(--rule); }
.section-tint { background: var(--bg-2); }
.section-dark { background: var(--bg-3); }
p { color: inherit; }
.svc-list { border-top-color: var(--silver); }
.svc-list a { color: var(--ink); border-bottom-color: var(--rule); }
.svc-list a:hover h3 { color: var(--silver); }
.svc-list p, .steps p, .areas span, .svc-detail ul, .stack li span, .person p { color: var(--ink-2); }
.deliver > div, .section-dark .deliver > div { border-top-color: var(--silver); }
.steps li::before { background: var(--silver); color: var(--bg-3); }
.areas li, .checks li, .svc-detail, .stack li { border-bottom-color: var(--rule); }
.checks li::before, .section-dark .checks li::before { border-color: var(--silver); }
.stack h3 { border-bottom-color: var(--silver); }
.benefit-list strong { color: var(--ink); }
.btn { background: var(--white); color: var(--bg); border-color: var(--white); }
.btn:hover { background: var(--silver); border-color: var(--silver); color: var(--bg); }
.btn-ghost, .btn-ghost:hover { background: transparent; color: var(--ink); border-color: var(--silver); }
.btn-ghost:hover { background: var(--bg-2); }
.nav a.btn, .nav a.btn:hover { color: var(--bg); }
.cta-band { background: var(--bg-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cta-band p { color: var(--ink-2); }
.site-footer { background: var(--bg-3); }
.photo-band .caption { background: rgba(7,26,53,.88); border-left-color: var(--silver); }
.contact-card { background: var(--bg-2); }
.contact-card dd { color: var(--ink-2); } .contact-card dd a { color: var(--ink); }
.field label { color: var(--ink); } .field .hint { color: var(--ink-2); }
.field input, .field select, .field textarea { border-color: var(--rule); }

/* Locations */
.areas li a { display: block; text-decoration: none; color: inherit; }
.areas li a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.areas-lg li { flex: 1 1 320px; padding: 22px 0; }
.areas-lg strong { font-size: 1.3rem; margin-bottom: 4px; }
.crumb { font-size: .92rem; margin-bottom: 14px; color: var(--ink-2); }
.crumb a { color: var(--ink-2); }
.city-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.city-list li { border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px; font-size: .95rem; color: var(--ink); }
.other-areas { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.other-areas a { font-weight: 700; font-size: 1.05rem; }
.checks li a { color: var(--ink); }
@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 74px; left: 0; right: 0; background: var(--bg-3); flex-direction: column; align-items: stretch; padding: 8px 16px 20px; border-bottom: 1px solid var(--rule); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid var(--bg-2); }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--silver); padding-left: 16px; }
  .nav .nav-phone { margin: 12px 0 0; text-align: center; }
}
