/* PTI Security theme: dark graphite, white, signal red. Archivo display.
   Visual direction: full-bleed photography, large type, one accent, strong CTAs.
   Inspired by the rhythm and punch of modern integrator sites (look and feel only). */
@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-Variable.ttf") format("truetype"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/IBMPlexSans-Variable.ttf") format("truetype"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "PlexMono"; src: url("../fonts/IBMPlexMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
:root {
  --display: "Archivo", "Arial Narrow", sans-serif; --body: "Plex", system-ui, sans-serif; --mono: "PlexMono", ui-monospace, monospace;
  --paper: #101214; --paper-2: #181b20; --ink: #e6e8eb; --text: #e6e8eb; --ink-2: #b4bbc3; --muted: #8b939c; --heading: #ffffff; --line: rgba(255,255,255,.12);
  --accent: #c8202f; --accent-dark: #9c1723; --accent-text: #ff6b75; --on-accent: #ffffff; --link: #ff6b75; --focus: #ff6b75;
  --head-bg: transparent; --head-fg: #f2f3f4; --head-line: rgba(255,255,255,.0); --accent-on-head: #ff5a66; --out-fg: #f2f3f4;
  --hero-bg: #0a0c0e; --hero-fg: #f4f5f6; --hero-fg-2: #c5ccd3; --hero-heading: #ffffff; --hero-line: rgba(255,255,255,.2);
  --cross-bg: #16130f; --cross-fg: #efe6d8; --cross-fg-2: #cbbfae; --cross-heading: #fbf5ea; --cross-accent: #d3ab6a; --cross-line: rgba(255,255,255,.14);
  --foot-bg: #0a0c0e; --foot-fg: #b3bac2; --foot-heading: #ffffff; --foot-line: rgba(255,255,255,.12); --foot-accent: #ff5a66;
  --frame-bg: #1a1d22; --field-bg: #ffffff; --field-line: #c3c5c0;
  --draft-bg: #5c0f17; --draft-fg: #ffe3e5;
  --h1: clamp(2.8rem, 7vw, 5.6rem); --h1-lh: .96; --h1-weight: 800; --h1-track: -.04em; --h1-measure: 16ch;
  --h2: clamp(2rem, 4.4vw, 3.3rem); --h2-weight: 780; --h2-track: -.028em; --h3-weight: 700;
  --brand-weight: 850; --brand-size: 1.35rem; --brand-track: -.02em; --accent-style: normal;
}
h1, h2, .brand-name, .sec-num, .detail-num span, .foot-name { font-stretch: 96%; }

/* Header sits on the photo; solidifies after scroll */
.site-pti .site-header {
  background: transparent;
  border-bottom-color: transparent;
  transition: background .28s ease, border-color .28s ease, backdrop-filter .28s ease;
}
.site-pti .site-header.is-solid,
.site-pti .site-header.is-open-nav {
  background: rgba(10, 12, 14, .94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(255,255,255,.12);
}

/* Full-bleed photo heroes */
.hero.has-media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--hero-bg);
  border-bottom: 0;
  margin-top: -4.6rem;
  padding: 7.5rem 0 4.5rem;
}
.hero.has-media.is-full {
  /* Fill the visible window. 100dvh - 2.2rem left a dark strip under the photo on laptops and desktops. */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8rem 0 4.5rem;
  border-bottom: 0;
}
.hero-media {
  position: absolute;
  /* 1px bleed hides subpixel gaps without zooming the photo (the old scale(1.02) cropped the edges). */
  inset: -1px;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-pos, center 40%);
}
.hero-shade {
  position: absolute;
  inset: 0;
  /* Keep the photograph visible; shade only enough for type contrast. */
  background:
    linear-gradient(180deg, rgba(8,10,12,.45) 0%, rgba(8,10,12,.18) 28%, rgba(8,10,12,.42) 62%, rgba(8,10,12,.82) 100%),
    linear-gradient(90deg, rgba(8,10,12,.4) 0%, rgba(8,10,12,.08) 60%, rgba(8,10,12,.2) 100%);
}
.hero.has-media .wrap { position: relative; z-index: 1; }
.hero.has-media h1 {
  max-width: 18ch;
  text-shadow: 0 2px 28px rgba(0,0,0,.45);
}
.hero.has-media .lede {
  color: var(--hero-fg);
  font-size: clamp(1.12rem, 1.8vw, 1.35rem);
  max-width: 36rem;
  text-shadow: 0 1px 16px rgba(0,0,0,.4);
}
.hero.has-media .area-line { color: var(--hero-fg-2); border-top-color: var(--hero-line); }
.hero.has-media .btn-ghost { color: #fff; border-color: rgba(255,255,255,.85); }
.hero.has-media .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.hero.has-media.is-full .hero-grid.has-index { grid-template-columns: 1fr; }
.hero.has-media .hero-index { max-width: 46rem; }
@media (min-width: 1000px) {
  .hero.has-media:not(.is-full) .hero-grid.has-index {
    grid-template-columns: 1.3fr .9fr;
    align-items: end;
  }
}
@media (max-width: 700px) {
  .hero-shade {
    background: linear-gradient(180deg, rgba(8,10,12,.5) 0%, rgba(8,10,12,.35) 40%, rgba(8,10,12,.88) 100%);
  }
  .hero.has-media { margin-top: -4.6rem; padding-top: 6.5rem; }
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  margin-left: -1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: .8;
  text-decoration: none;
}
.hero-scroll span {
  width: .7rem;
  height: .7rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
}
.hero-scroll:hover { opacity: 1; }

/* Partner / certification strip */
.partners {
  background: #0a0c0e;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 1.15rem 0 1.25rem;
}
.partners-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem 2.5rem;
  flex-wrap: wrap;
}
.partners .k { margin: 0; color: var(--muted); }
.partners ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 2.2rem;
  margin: 0;
  padding: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  letter-spacing: -.01em;
  color: #fff;
}
.partners a { color: inherit; text-decoration: none; box-shadow: inset 0 -1px 0 rgba(255,255,255,.35); }
.partners a:hover { color: var(--accent-text); box-shadow: inset 0 -1px 0 var(--accent-text); }

/* Service photo cards */
.svc-band { padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.svc-grid { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; } }
.svc-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 100%;
  transition: transform .35s ease, border-color .35s ease;
}
.svc-card-media { overflow: hidden; aspect-ratio: 4 / 5; background: #000; }
@media (min-width: 860px) { .svc-card-media { aspect-ratio: 3 / 4; } }
.svc-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.svc-card-body { padding: 1.25rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.svc-card-body .eyebrow { margin: 0 0 .4rem; }
.svc-card-body h2 { font-size: clamp(1.5rem, 2.2vw, 1.85rem); margin: 0 0 .35rem; color: var(--heading); }
.svc-card-body p { color: var(--ink-2); margin: 0 0 .9rem; }
.svc-go { margin-top: auto; font-weight: 600; color: var(--link); font-size: .95rem; }
.svc-card:hover { border-color: rgba(255,255,255,.28); transform: translateY(-4px); }
.svc-card:hover .svc-card-media img { transform: scale(1.05); }

/* Larger work-photo bands */
.photo-band { padding: clamp(1.25rem, 3.5vw, 2.4rem) 0; border-top: 0; }
.photo-band.wide .wrap { max-width: 92rem; }
.photo-band .frame.has-photo { background: #0a0c0e; border-color: rgba(255,255,255,.1); }
.photo-band .frame.has-photo img { width: 100%; height: auto; display: block; }
.photo-band .frame.has-photo figcaption { color: var(--ink-2); }

/* 2x2 farm grid: keep a consistent 3:2 crop at every width */
#farm-photos .frame-shot {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
#farm-photos .frame-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Properties we protect: 3-then-2 grid, consistent 3:2 photos, title + one line, no captions */
#properties .sec-head h2 { max-width: 32ch; }
.prop-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .prop-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .prop-grid { grid-template-columns: repeat(6, 1fr); }
  .prop-tile:nth-child(-n+3) { grid-column: span 2; }
  .prop-tile:nth-child(n+4) { grid-column: span 3; }
}
.prop-tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--paper-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.prop-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #0a0c0e;
}
.prop-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.prop-body { padding: 1rem 1.15rem 1.2rem; }
.prop-body h3 {
  margin: 0 0 .3rem;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  color: var(--heading);
}
.prop-body p {
  margin: 0;
  color: var(--ink-2);
  font-size: .95rem;
}


/* Intrusion and alarm systems: point cards under a short lede */
#intrusion .alarm-intro {
  display: grid;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(1.6rem, 3.2vw, 2.4rem);
}
@media (min-width: 960px) {
  #intrusion .alarm-intro { grid-template-columns: 2.4rem 1fr; align-items: start; }
}
#intrusion .alarm-intro .lede { max-width: 44rem; }
.alarm-feature {
  margin: 0 0 clamp(1.4rem, 3vw, 2.1rem);
  border: 1px solid var(--line);
  background: #0c0d0f;
  overflow: hidden;
}
.alarm-feature img {
  display: block;
  width: 100%;
  height: auto;
}
.alarm-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .alarm-cards { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .alarm-cards { grid-template-columns: repeat(6, 1fr); }
  .alarm-card:nth-child(-n+3) { grid-column: span 2; }
  .alarm-card:nth-child(n+4) { grid-column: span 3; }
}
.alarm-card {
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  padding: 1.15rem 1.2rem 1.3rem;
  min-width: 0;
  overflow: hidden;
}
.alarm-card-media {
  margin: -1.15rem -1.2rem .95rem;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: rgba(0,0,0,.28);
}
.alarm-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.alarm-card-media.is-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--line);
}
.alarm-card-media.is-icon .ic {
  width: 2.6rem;
  height: 2.6rem;
  color: var(--accent-text);
}
.alarm-card h3 {
  margin: 0 0 .4rem;
  color: var(--heading);
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
}
.alarm-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: .98rem;
  line-height: 1.5;
}

/* Dark textured tint sections */
.section.tint {
  background-color: var(--paper-2);
  background-image: linear-gradient(rgba(16,18,20,.88), rgba(16,18,20,.92)), url("../images/stock-texture-dark-bg.jpg");
  background-size: cover;
  background-position: center;
}

/* Scroll reveal — only hide when JS is running, so the page never stays blank */
.has-js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.has-js .reveal.is-in { opacity: 1; transform: none; }

/* Forms stay high-contrast on the dark page */
.notice { background: rgba(255,255,255,.06); color: var(--ink); }
.checks label { background: var(--field-bg); color: #121417; }
.form-card h2, .contact-side { color: var(--heading); }
.contact-side a.tel, .contact-side a.mail { color: var(--heading); }
.side-off span { color: var(--ink-2); }

.foot-note {
  margin: 2rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--foot-line);
  font-size: .82rem;
  color: var(--foot-fg);
  opacity: .85;
  max-width: 42rem;
}
.foot-small { border-top: 0; margin-top: .6rem; padding-top: 0; }

/* Tighter desktop nav so Networks & Cabling + Custom PCs still fit */
@media (min-width: 1080px) {
  .site-nav ul { gap: 1.05rem; }
  .site-nav a { font-size: .82rem; }
  .site-nav .nav-cta { padding: .55rem 1rem; }
}
@media (min-width: 1280px) {
  .site-nav ul { gap: 1.35rem; }
  .site-nav a { font-size: .88rem; }
}

.cta a.tel-cta { color: var(--on-accent); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .svc-card, .svc-card-media img, .site-header { transition: none; }
  .hero-media img { transform: none; }
}


/* Keep header contact readable on the transparent photo header and the solid state. */
.site-pti .header-phone,
.site-pti .header-email {
  color: #fff;
  text-shadow: 0 1px 10px rgba(0,0,0,.55);
}
.site-pti .site-header.is-solid .header-phone,
.site-pti .site-header.is-solid .header-email,
.site-pti .site-header.is-open-nav .header-phone,
.site-pti .site-header.is-open-nav .header-email {
  text-shadow: none;
}


/* Featured RTI band on the photographic PTI theme */
.site-pti .rti-feature {
  background: #0f1215;
  color: var(--ink);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-pti .rti-feature h2 { color: #fff; }
.site-pti .rti-feature .lede { color: var(--ink-2, #c5ccd3); }
.site-pti .rti-feature .k { color: var(--muted); }
.site-pti .rti-feature a { color: var(--accent-text); }


/* Photo credits page (draft example). Quiet list, no captions under photos. */
.credit-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  max-width: 40rem;
}
.credit-list > li {
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}
.credit-use {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .45rem;
}
.credit-list p { margin: 0; color: var(--ink-2); line-height: 1.55; }
.credit-list a,
.credits-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .15em;
  text-decoration-thickness: 1px;
}
.credits-note { margin: 1.25rem 0 0; max-width: 40rem; color: var(--ink-2); }
.foot-note a { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }


/* Town / service-area pages */
.town-intro { display: grid; gap: 1.2rem 3rem; }
.town-intro h2 { max-width: 14ch; }
.town-prose { max-width: 44rem; }
.town-prose p { margin: 0 0 1.1rem; color: var(--ink-2); line-height: 1.65; }
@media (min-width: 960px) { .town-intro { grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); align-items: start; } }
.town-h2 { margin-bottom: 1.4rem; font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.town-cards { grid-template-columns: 1fr; }
@media (min-width: 720px) { .town-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) {
  .town-cards.n3 { grid-template-columns: repeat(3, 1fr); }
  .town-cards.n3 .alarm-card:nth-child(n) { grid-column: auto; }
  .town-cards.n4 { grid-template-columns: repeat(4, 1fr); }
  .town-cards.n4 .alarm-card:nth-child(n) { grid-column: auto; }
  .town-cards.n5 { grid-template-columns: repeat(6, 1fr); }
  .town-cards.n5 .alarm-card:nth-child(-n+3) { grid-column: span 2; }
  .town-cards.n5 .alarm-card:nth-child(n+4) { grid-column: span 3; }
  .town-cards.n6 { grid-template-columns: repeat(3, 1fr); }
  .town-cards.n6 .alarm-card:nth-child(n) { grid-column: auto; }
}
.area-link { display: block; text-decoration: none; color: inherit; }
.area-link:hover h3 { color: var(--accent-text); }
.area-link p { margin-bottom: .8rem; }
.town-list { list-style: none; display: flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 1.2rem; padding: 0; }
.town-list li { border: 1px solid var(--line); background: rgba(255,255,255,.035); padding: .45rem .95rem; border-radius: 2px; color: var(--ink); }
.town-note { color: var(--ink-2); max-width: 40rem; margin: 0 0 1.6rem; }
.town-other { margin: 0 0 .4rem; font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.town-other-list { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 0; padding: 0; }
.town-other-list a { color: var(--accent-text); }
.cta .btn-row .tel-cta { margin-right: 1rem; }
.foot-h2-sub { margin-top: 1.4rem; }
