/* isgpatrol.com — the single stylesheet for every ISG page (CLAUDE.md standard #4's sibling; Plan 10).
   Rondin pages have their own sheet (rondin/rondin.css). Fonts: @fontsource-variable/open-sans@5.2.7 (OFL), self-hosted. */

@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url('/fonts/open-sans-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url('/fonts/open-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --night:   #0b1320;   /* page background — Dallas at night */
  --night-2: #121c2c;   /* raised surfaces */
  --night-3: #1a2840;   /* hover */
  --steel:   #9aa4b2;   /* secondary text */
  --line:    #223047;   /* hairlines */
  --white:   #f4f6f8;   /* primary text */
  --lite:    #fff6d8;   /* accent — the light bar's warm white */
  --max:     1180px;
  --banner-h: clamp(260px, 40vw, max(520px, 32vw));   /* the photo above where the page text starts */
  --banner-fade: clamp(100px, 9vw, 200px);           /* the photo's fade into the background, under the text */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--white);
  font-family: 'Open Sans', Arial, sans-serif; font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 10px 18px; border-radius: 5px; font-weight: 700; font-size: 15px;
  text-decoration: none; white-space: nowrap; line-height: 1.2; }
.btn--primary { background: var(--lite); color: var(--night); }
.btn--primary:hover, .btn--primary:focus-visible { background: #fff; }
.btn--ghost { border: 1px solid rgba(255,255,255,.6); color: var(--white); }

/* ---------- Site header (sits on a photo's sky) ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center;
  gap: 28px; padding: 16px 28px; background: linear-gradient(rgba(11,19,32,.7), rgba(11,19,32,0)); }
.brand { display: flex; align-items: center; gap: 22px; text-decoration: none; }
.brand__logo { width: 56px; height: 64px; }
.brand__name { width: auto; height: 20px; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 15px; opacity: .92; }
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; box-shadow: 0 2px 0 var(--lite); }
.site-phone { font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; border: 1px solid rgba(255,255,255,.55);
  padding: 7px 12px; border-radius: 5px; }
.nav-toggle, .nav-burger { display: none; }

/* ---------- Homepage hero ----------
   The photo is 4:3. The hero is never taller than 4:3 (no side-cropping) and never trimmed beyond 5:3,
   so the skyline and the light bar always show; on wider screens the hero stops growing (width cap)
   and fades into the night background. The boxes ride on the concrete. */
.hero { --w: min(100vw, calc(100svh / 0.6)); position: relative; width: var(--w); margin: 0 auto;
  height: clamp(calc(var(--w) * 0.6), 100svh, calc(var(--w) * 0.75)); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
@media (min-aspect-ratio: 5/3) {
  .hero__img { -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
}
.hero__boxes { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; display: flex; gap: 12px; }
.hero__box { display: flex; align-items: center; padding: 14px 20px; border-radius: 8px;
  background: rgba(11,19,32,.8); border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero__box--slogan { flex: 1.15; }
.hero__box--tag { flex: 1.25; }
.hero__box--act { flex: .75; justify-content: center; }
.hero__box h1 { margin: 0; font-size: clamp(20px, 1.9vw, 30px); line-height: 1.15; font-weight: 800; }
.hero__box p { margin: 0; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.45; opacity: .92; }

/* ---------- Interior banner (lone figure under the streetlamp) ---------- */
/* The photo runs past where the page text starts and fades into the night background; the text sits
   over the fade. --banner-h grows past 520px on wide screens so the skyline-to-walker band always shows. */
.banner { position: relative; height: calc(var(--banner-h) + var(--banner-fade)); overflow: hidden; }
.banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.banner::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--banner-fade) + 60px);
  background: linear-gradient(rgba(11,19,32,0), var(--night)); }
.banner + .page { position: relative; z-index: 1; margin-top: calc(-1 * var(--banner-fade)); }
.banner__title { position: absolute; left: 28px; bottom: calc(var(--banner-fade) + 22px); z-index: 2; margin: 0; max-width: min(32%, 480px);
  font-size: clamp(24px, 2.6vw, 40px); line-height: 1.15; font-weight: 800; text-shadow: 0 2px 12px rgba(0,0,0,.6); }

/* ---------- Homepage sections ---------- */
.home-section { max-width: var(--max); margin: 0 auto; padding: 56px 28px; }
.home-section + .home-section { border-top: 1px solid var(--line); }
.home-section h2 { margin: 0 0 18px; font-size: 26px; line-height: 1.2; font-weight: 800; }
.home-split { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: 36px; align-items: stretch; }

.points { display: grid; gap: 10px; }
.point { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 18px;
  background: var(--night-2); border-left: 3px solid var(--lite); border-radius: 0 6px 6px 0;
  text-decoration: none; transition: background .2s; }
.point:hover, .point:focus-visible { background: var(--night-3); }
.point__text strong { display: block; font-size: 17px; font-weight: 700; }
.point__text span { color: var(--steel); font-size: 15px; }
.point__arrow { color: var(--lite); font-weight: 700; font-size: 18px; }

/* The live map: tall so the whole city fits; display-only; the frame stays night-blue if the embed fails. */
.live-map { position: relative; margin: 0; overflow: hidden; border-radius: 8px; display: flex; flex-direction: column; }
/* At least as tall as the points beside it; otherwise 4:5, capped at 85% of the screen height. */
.live-map__frame { flex: 1; min-height: 100%; max-height: 85svh; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 8px;
  border: 1px solid var(--line); background: var(--night-2); }
.live-map__frame iframe { width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
.live-map__tag { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 4px; font-size: 13px;
  font-weight: 600; background: rgba(11,19,32,.85); }
.live-map__tag i { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%;
  background: #e5484d; animation: livepulse 1.6s ease-in-out infinite; }
@keyframes livepulse { 50% { opacity: .25; } }
.live-map__caption { position: absolute; left: 1px; right: 1px; bottom: 1px; margin: 0; padding: 14px 16px;
  border-radius: 0 0 8px 8px; background: rgba(11,19,32,.94); border-top: 1px solid var(--line); font-size: 15px;
  transform: translateY(100%); opacity: 0; transition: transform .3s ease, opacity .3s ease; }
.live-map:hover .live-map__caption, .live-map:focus-within .live-map__caption { transform: none; opacity: 1; }
@media (hover: none) {
  .live-map { overflow: visible; }
  .live-map__caption { position: static; transform: none; opacity: 1; background: none; border: 0; padding: 10px 2px 0;
    color: var(--steel); }
}

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tile { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px;
  border: 1px solid var(--line); border-radius: 8px; text-decoration: none; transition: border-color .2s, background .2s; }
.tile:hover, .tile:focus-visible { border-color: rgba(255,246,216,.5); background: var(--night-2); }
.tile__pics { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tile__pics--one { grid-template-columns: 1fr; }
.tile__pics img { width: 100%; height: auto; border-radius: 4px; }
.tile__text strong { display: block; font-size: 16px; margin-bottom: 2px; }
.tile__text span { display: block; color: var(--steel); font-size: 14px; line-height: 1.45; }
.tile__text .tile__go { color: var(--lite); font-weight: 600; font-size: 13px; margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  .live-map__tag i { animation: none; }
  .point, .tile, .live-map__caption { transition: none; }
}

/* ---------- Articles + interior content ---------- */
.lede { margin: 0 0 24px; font-size: 19px; color: var(--steel); }
article.article { max-width: 760px; margin: 0 auto; font-size: 17px; line-height: 1.7; }
.article__back { margin: 0 0 18px; font-size: 14px; }
.article__back a, article.article a { color: var(--lite); }
article.article h2 { margin: 36px 0 10px; font-size: 24px; line-height: 1.25; }
article.article h3 { margin: 28px 0 8px; font-size: 19px; line-height: 1.3; }
article.article img { margin: 18px 0; border-radius: 6px; }
/* Article building blocks for breaking up long text (Jim, 2026-10-18). Patrol / "ours" is highlighted. */
.vs, .compare-cols, .usecases { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 30px; }
.vs-card, .compare-col, .usecases-card { padding: 18px 20px; border-radius: 10px; background: var(--night-2); border: 1px solid var(--line); }
.vs-card.is-ours, .compare-col.is-ours, .usecases-card.is-ours { border-color: rgba(255,246,216,.4); }
.vs-card > svg { width: 34px; height: 34px; color: var(--steel); }
.vs-card.is-ours > svg { color: var(--lite); }
article.article .vs-card h3, article.article .compare-col h3, article.article .usecases-card h3 { margin: 8px 0 6px; font-size: 18px; }
.vs-card p { margin: 0; font-size: 16px; }
article.article .compare-col ul, article.article .usecases-card ul { list-style: none; padding: 0; margin: 0; }
.compare-col li, .usecases-card li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 16px; line-height: 1.45; }
.compare-col li svg, .usecases-card li svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.is-pro svg { color: #6fcf8f; }
.is-con svg { color: #ff8b8e; }
.usecases-card li svg { color: var(--steel); }
.usecases-card.is-ours li svg { color: #6fcf8f; }
.stat-band { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 30px 0; padding: 24px; border-radius: 10px;
  background: linear-gradient(135deg, var(--night-2), var(--night-3)); text-align: center; }
.stat-band strong { display: block; font-size: clamp(44px, 6vw, 64px); line-height: 1; font-weight: 800; color: var(--lite); }
.stat-band span { display: block; margin-top: 6px; color: var(--steel); font-size: 15px; }
.stat-band p { grid-column: 1 / -1; margin: 6px 0 0; font-size: 16px; }
article.article blockquote.pull { margin: 30px 0; padding: 6px 0 6px 20px; border-left: 4px solid var(--lite); font-size: 21px;
  line-height: 1.45; font-weight: 700; }
article.article blockquote.pull p { margin: 0; }
.article-photo { margin: 30px 0; }
/* An opening statement that must not be skimmed past: larger, set apart, accent bar. */
article.article p.callout { margin: 36px 0 40px; padding: 22px 26px; border-left: 4px solid var(--lite); border-radius: 0 10px 10px 0;
  background: var(--night-2); font-size: 21px; line-height: 1.55; }
.sec-head { margin: 44px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.sec-head .kicker { margin: 0 0 4px; }
article.article .sec-head h2 { margin: 0; font-size: 28px; }
/* Photo beside its text (e.g. one vehicle per row); stacks on phones. */
.media-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 22px; align-items: center; margin: 22px 0; }
article.article .media-row img { margin: 0; }
article.article .media-row h3 { margin: 0 0 6px; }
.media-row p { margin: 0 0 10px; }
.kicker { color: var(--lite); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
/* Who We Are: one card per line of work — the ones we stopped dimmed, Patrol highlighted. */
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 26px; }
.reason-card { padding: 16px 18px; border-radius: 10px; background: var(--night-2); border: 1px solid var(--line); }
.reason-card > svg { width: 28px; height: 28px; color: #5d6878; }
.reason-card p { margin: 8px 0 0; font-size: 16px; }
.reason-card.is-ours { grid-column: 1 / -1; border-color: rgba(255,246,216,.4); }
.reason-card.is-ours > svg { color: var(--lite); }
.stat-band.stat-band--1 { grid-template-columns: 1fr; }
.stat-band.stat-band--note { grid-template-columns: 1fr; }
.stat-band--note p { margin: 0; font-size: 20px; line-height: 1.45; }
.stat-band--note strong { display: inline; font-size: inherit; }
.stat-band.stat-band--3 { grid-template-columns: repeat(3, 1fr); }
.article-photo img { width: 100%; }
/* Who We Are: what we do (Patrol, highlighted) and what we no longer do (dimmed). */
article.article ul.services { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.service { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 16px 6px;
  border-radius: 8px; color: #8b95a5; font-size: 14px; font-weight: 600; line-height: 1.25; }
/* Text for screen readers only (the eye gets the strikethrough instead). */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.service svg { width: 40px; height: 40px; }
.service:not(.is-ours) span { text-decoration: line-through; text-decoration-thickness: 1px; }
.service.is-ours { color: var(--lite); background: var(--night-2); border: 1px solid rgba(255,246,216,.35); }
/* Videos: the 2024 clips, self-hosted; nothing downloads until play is pressed (preload="none"). */
.videos { display: grid; gap: 22px; margin: 22px 0; }
.video { margin: 0; }
.video video { display: block; width: 100%; height: auto; border-radius: 8px; background: #000; }
.video figcaption { margin-top: 8px; color: var(--steel); font-size: 15px; font-weight: 600; }
/* A weaker supporting photo (e.g. the red-lit dashboard shot): small, never full width. */
article.article img.img--inset { width: min(100%, 340px); margin: 18px auto; }
article.article blockquote { margin: 24px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--lite); }
article.article blockquote h3 { margin: 0; }
article.article ul { padding-left: 22px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 18px 0; }
.gallery img { margin: 0; width: 100%; height: 150px; object-fit: cover; }

.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.contact h2, .employment h2 { margin: 0 0 10px; font-size: 22px; }
.contact__phone { margin: 0 0 6px; font-size: 30px; font-weight: 800; }
.contact__phone a { text-decoration: none; color: var(--lite); }
.contact__menu { list-style: none; padding: 0; margin: 0; color: var(--steel); }
.contact__quote { grid-column: 1 / -1; }
.contact__quote ul { padding-left: 22px; }
.employment { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 32px 48px; align-items: start; }
.stop { padding: 22px 24px; border: 2px solid #e5484d; border-radius: 10px; background: rgba(229,72,77,.08); }
.stop h2 { color: #ff8b8e; }
.requirements h2 + p { margin-top: 0; }
.req-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.req-list li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 16px; background: var(--night-2); border-radius: 8px; }
.req-list strong { display: block; }
/* The 2024 site's icons (Font Awesome Free), in the accent colour. */
.req-icon { flex: none; display: inline-flex; width: 26px; height: 26px; margin-top: 3px; color: var(--lite); }
.req-icon svg { width: 100%; height: 100%; }
.req-head { display: flex; gap: 14px; align-items: flex-start; }
.req-head--title { align-items: center; margin: 26px 0 8px; }
.req-head--title h2, .req-head h2 { margin: 0 0 8px; }
.req-head--title h2 { margin: 0; }
.stop-icon { display: block; width: 44px; height: 44px; margin-bottom: 10px; color: #ff8b8e; }
.stop-icon svg { width: 100%; height: 100%; }
.contact__phone .req-icon { width: 24px; height: 24px; margin: 0 10px 0 0; vertical-align: middle; }
.employment__contact { grid-column: 1 / -1; }
.our-people { grid-column: 1 / -1; max-width: 760px; }


/* ---------- Forms ---------- */
.isg-form { max-width: 560px; }
.isg-form p { margin: 0 0 14px; }
.isg-form label { display: block; margin-bottom: 4px; font-weight: 600; font-size: 14px; }
.isg-form input, .isg-form textarea { width: 100%; height: 42px; padding: 9px 12px; border-radius: 5px; border: 1px solid var(--line);
  background: var(--night-2); color: var(--white); font: inherit; font-size: 16px; }
.isg-form textarea { height: auto; min-height: 150px; resize: vertical; }
.isg-form input:focus, .isg-form textarea:focus { outline: 2px solid var(--lite); outline-offset: 1px; }
.isg-form button { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { padding: 10px 14px; border-radius: 6px; background: rgba(229,72,77,.12); border: 1px solid #e5484d; }
.form-error a, .form-done a { color: var(--lite); }
.form-done { padding: 16px 20px; border-radius: 8px; background: var(--night-2); border-left: 3px solid var(--lite); }
.form-done h3 { margin: 0 0 4px; }

/* ---------- Page body ---------- */
.page { max-width: var(--max); margin: 0 auto; padding: 40px 28px 56px; }
.page--home { max-width: none; padding: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); color: var(--steel); font-size: 14px; }
.site-footer__inner { max-width: var(--max); margin: 0 auto; padding: 22px 28px; display: flex; flex-wrap: wrap;
  align-items: center; gap: 8px 24px; }
.site-footer p { margin: 0; }
.site-footer strong { color: var(--white); font-weight: 600; }
.site-footer a { color: var(--steel); }
.site-footer .btn--primary { color: var(--night); }
.site-footer p:last-child { margin-left: auto; }

/* ---------- Narrower screens: the menu collapses behind a button so the wide name still fits ---------- */
@media (max-width: 1100px) {
  .brand { flex: 1 1 auto; min-width: 0; margin-right: auto; }
  .brand__name { width: auto; height: auto; max-height: 18px; max-width: 100%; min-width: 0; }   /* shrinks to fit */
  .site-phone { order: 2; }
  /* The checkbox stays invisible but focusable, so Tab + Space opens the menu; the burger draws its ring. */
  .nav-toggle { display: block; position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
  .nav-toggle:focus-visible + .nav-burger { outline: 2px solid var(--white); outline-offset: 4px; }
  .nav-burger { order: 3; display: block; margin-left: 4px; width: 26px; height: 20px; position: relative; cursor: pointer; }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after { content: ''; position: absolute; left: 0;
    width: 100%; height: 2px; background: var(--white); }
  .nav-burger span { top: 9px; } .nav-burger span::before { top: -7px; } .nav-burger span::after { top: 7px; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--night);
    border-bottom: 1px solid var(--line); padding: 8px 14px 14px; }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 12px; }
}

/* ---------- Phones ---------- */
@media (max-width: 720px) {
  .site-header { padding: 10px 14px; gap: 12px; }
  .brand__logo { width: 30px; height: 34px; }
  .brand { gap: 12px; }
  .brand__name { max-height: 12px; }
  .site-phone { font-size: 12px; padding: 5px 8px; }
  .hero { width: 100%; height: auto; overflow: visible; }
  .hero__img { position: static; height: auto; aspect-ratio: 4 / 3; }
  .hero__boxes { position: static; flex-direction: column; padding: 12px 14px 4px; gap: 10px; }
  .hero__box { padding: 12px 16px; }
  .hero__box--act { justify-content: flex-start; }
  .banner__title { left: 16px; bottom: calc(var(--banner-fade) + 14px); max-width: 80%; }
  .home-section { padding: 36px 16px; }
  .home-split { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .tile { grid-template-columns: 150px minmax(0, 1fr); }
  .contact, .employment { grid-template-columns: 1fr; }
  article.article { font-size: 16px; }
  article.article ul.services { grid-template-columns: repeat(3, 1fr); }
  .vs, .compare-cols, .usecases, .media-row, .stat-band.stat-band--3, .reasons { grid-template-columns: 1fr; }
  .site-footer p:last-child { margin-left: 0; }
}
