/* Armshield Security — site styles
   Palette: deep royal blue #034B9B (brand), bright security blue #0172CB (accent),
   black-derived ink for text, silver-derived slate for secondary, white surfaces.
   Signature element: the "eagle eye" iris — concentric rings reused across the site. */

:root {
  --brand: #034B9B;
  --brand-deep: #023A78;
  --accent: #0172CB;
  --ink: #141A21;
  --slate: #5A6470;
  --silver: #A6A6A6;
  --line: #D9DEE4;
  --cloud: #F2F7FC;
  --white: #FFFFFF;
  --danger: #8C1D18;
  --danger-bg: #FBEAE9;
  --ok: #0E5B2E;
  --ok-bg: #E6F3EA;

  --maxw: 72rem;
  --pad: 1rem;

  /* corner radii — cards 5–8px, buttons 4–6px, chips/badges 3px */
  --r-card: 8px;
  --r-btn: 6px;
  --r-chip: 3px;

  /* image slots — adjust each ratio here when real imagery arrives */
  --ratio-hero: 4/3;
  --ratio-svc: 16/9;
  --ratio-portrait: 4/5;
  --ratio-strip: 4/3;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; color: var(--brand); margin: 0 0 .5rem; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 1.4rem + 2vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.3rem, 1.15rem + 1vw, 1.6rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1rem; max-width: 68ch; }
a { color: var(--accent); }
a:hover { color: var(--brand); }
address { font-style: normal; }
ul, ol { padding-left: 1.2rem; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.muted { color: var(--slate); }

.skip-link {
  position: absolute; left: .5rem; top: -4rem;
  background: var(--brand); color: var(--white);
  padding: .75rem 1rem; z-index: 200; border-radius: 0 0 4px 4px;
}
.skip-link:focus { top: 0; color: var(--white); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--brand); color: var(--white);
  border: 2px solid var(--brand); border-radius: var(--r-btn);
  padding: .8rem 1.4rem; font-weight: 700; font-size: 1rem;
  text-decoration: none; text-align: center; cursor: pointer;
  min-height: 44px; line-height: 1.3;
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: var(--white); }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--ghost:hover { background: var(--cloud); color: var(--brand-deep); }
.btn--light { background: var(--white); color: var(--brand); border-color: var(--white); }
.btn--light:hover { background: var(--cloud); border-color: var(--cloud); color: var(--brand-deep); }
.btn--small { padding: .5rem .95rem; font-size: .92rem; min-height: 44px; }
.btn--big { font-size: 1.05rem; padding: 1rem 1.6rem; }
.btn--block { display: block; width: 100%; margin-bottom: .6rem; }

.eyebrow {
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .8rem;
}
.eyebrow--light { color: var(--silver); }
.iris-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 3px solid var(--accent); position: relative; flex: none;
}
.iris-dot::after {
  content: ""; position: absolute; inset: 2px; border-radius: 50%;
  background: var(--brand);
}

/* ---------------- header ---------------- */
.topbar { background: var(--brand-deep); color: var(--white); font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 34px; }
.topbar-tag { margin: 0; max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-tel { color: var(--white); font-weight: 600; text-decoration: none; }
.topbar-tel:hover { text-decoration: underline; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
.navbar { display: flex; align-items: center; gap: .8rem; padding-top: .6rem; padding-bottom: .6rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand-logo { display: block; height: 44px; width: auto; object-fit: contain; }
.brand--footer { display: inline-block; background: var(--white); border-radius: var(--r-card); padding: .5rem .9rem; margin-bottom: .6rem; }
.brand--footer .brand-logo { height: 46px; }

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white);
  border-radius: var(--r-btn); cursor: pointer; padding: 0 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--brand); }
.main-nav { display: none; }
.main-nav.open {
  display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 2px solid var(--brand); padding: .5rem var(--pad) 1rem;
}
.main-nav a {
  display: block; padding: .8rem .4rem; color: var(--ink); text-decoration: none;
  font-weight: 600; border-bottom: 1px solid var(--line); min-height: 44px;
}
.main-nav a:hover { color: var(--brand); }
.nav-cta { display: none; }

/* ---------------- hero ---------------- */
.hero { background: var(--brand); color: var(--white); }
.hero-grid { display: grid; gap: 1.5rem; padding-top: 2.2rem; padding-bottom: 2.4rem; }
.hero-copy h1 { color: var(--white); font-size: 2rem; }
.hero .eyebrow { color: var(--silver); }
.hero .eyebrow .iris-dot { border-color: var(--silver); }
.hero .eyebrow .iris-dot::after { background: var(--white); }
.lede { font-size: 1.1rem; }
.hero .lede { color: #DCE8F5; max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.hero-actions .btn { min-width: 0; }
.btn-short { display: none; }

.hero-media { position: relative; }
.hero-media img {
  aspect-ratio: var(--ratio-hero); object-fit: cover; width: 100%;
  border-radius: var(--r-card); border: 1px solid var(--brand-deep);
}
.iris-overlay {
  position: absolute; right: -14px; bottom: -18px; width: 110px; height: 110px;
  color: var(--accent); opacity: .9;
}

/* ---------------- credentials bar ---------------- */
.credbar { background: var(--cloud); border-bottom: 1px solid var(--line); }
.credbar-inner { display: flex; gap: .6rem; padding: .8rem var(--pad); flex-wrap: wrap; }
.cred-chip {
  flex: none; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: .55rem .9rem; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; min-height: 44px; justify-content: center;
}
.cred-chip strong { font-size: .82rem; line-height: 1.25; }
.cred-chip span { font-size: .72rem; color: var(--ok); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.cred-chip--more { background: var(--brand); border-color: var(--brand); color: var(--white); justify-content: center; font-weight: 600; }

/* ---------------- sections ---------------- */
.section { padding: 2.6rem 0; }
.section--cloud { background: var(--cloud); }
.section--navy { background: var(--brand); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: #DCE8F5; }
.section-head { margin-bottom: 1.6rem; }
.section-head p { color: var(--slate); }
.section-more { margin-top: 1rem; font-weight: 600; }

/* ---------------- service list (home) ---------------- */
.svc-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.svc-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.svc-thumb { width: 84px; height: 56px; flex: none; object-fit: cover; border-radius: var(--r-card); border: 1px solid var(--line); }
.svc-row-body { flex: 1; min-width: 0; }
.svc-row-body h3 { margin: 0 0 .15rem; font-size: 1.02rem; }
.svc-row-body h3 a { color: var(--brand); text-decoration: none; }
.svc-row-body h3 a:hover { text-decoration: underline; }
.svc-row-body p { margin: 0; color: var(--slate); font-size: .92rem; }
.svc-row-link {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; color: var(--brand);
  text-decoration: none; font-size: 1.1rem;
}
.svc-row-link:hover { border-color: var(--brand); }

/* ---------------- rapid response strip ---------------- */
.rr-strip { display: grid; gap: 1.6rem; }
.coverage h3 { font-size: 1rem; margin-bottom: .6rem; }
.coverage-towns { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.coverage-towns li {
  border: 1px solid rgba(255,255,255,.45); border-radius: var(--r-chip);
  padding: .35rem .9rem; font-size: .85rem; color: var(--white);
}

/* ---------------- layers explorer ---------------- */
.layers { display: grid; gap: 2rem; }
.layers-diagram { position: relative; }
.layers-diagram svg { width: 100%; max-width: 380px; margin: 0 auto; display: block; }
.ring { fill: none; stroke: var(--accent); stroke-width: 2; opacity: .55; }
.ring--core { stroke: var(--brand); opacity: 1; }
.ring-dot { fill: var(--brand); }
.layers-key { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.layers-key li { display: flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; color: var(--slate); }
.layers-key li span {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2.5px solid var(--accent); display: inline-block;
}
.layers-key li:last-child span { border-color: var(--brand); background: var(--brand); }
.layers-detail details { border: 1px solid var(--line); border-radius: var(--r-card); margin-bottom: .7rem; background: var(--white); }
.layers-detail summary {
  padding: .9rem 1.1rem; font-weight: 700; color: var(--brand); cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: .8rem;
  min-height: 44px;
}
.layers-detail summary::-webkit-details-marker { display: none; }
.layers-detail summary span { font-weight: 400; font-size: .82rem; color: var(--slate); }
.layers-detail details[open] { border-color: var(--brand); background: var(--cloud); }
.layers-detail details p { padding: 0 1.1rem .4rem; margin: 0 0 .5rem; }
.layers-detail details a { display: inline-block; padding: 0 0 .9rem 1.1rem; font-weight: 600; }

/* ---------------- steps ---------------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: step; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.1rem; }
.steps li h3 { margin-bottom: .35rem; }
.steps li p { margin: 0; font-size: .92rem; color: var(--slate); }

/* ---------------- finder ---------------- */
.finder { display: grid; gap: 1.4rem; }
.finder-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 1.2rem; display: grid; gap: 1rem;
}
.finder-form--page { max-width: 40rem; margin-bottom: 2rem; }
.finder-results h2 { margin-top: 0; }

/* ---------------- guard management band ---------------- */
.gms-grid { display: grid; gap: 1.6rem; }
.gms-shot { margin: 0; }
.gms-shot img { border-radius: var(--r-card); border: 1px solid var(--brand-deep); aspect-ratio: var(--ratio-svc); object-fit: cover; }
.gms-shot figcaption { font-size: .78rem; color: var(--silver); margin-top: .5rem; }

/* ---------------- leader ---------------- */
.leader { display: grid; gap: 1.4rem; }
.leader-photo img { aspect-ratio: var(--ratio-portrait); object-fit: cover; border-radius: var(--r-card); border: 1px solid var(--line); width: 100%; }
.leader-role { font-weight: 700; color: var(--accent); margin-bottom: .6rem; }

/* ---------------- assessment band ---------------- */
.assess-inner { text-align: center; }
.assess-steps { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .5rem; }
.assess-steps li {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-chip);
  padding: .6rem 1.2rem; font-weight: 600; color: var(--brand);
}

/* ---------------- cards / quotes ---------------- */
.cards { display: grid; gap: 1rem; }
.card { border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.2rem; background: var(--white); }
.quote-card { background: var(--cloud); }
.quote-card footer { font-weight: 600; font-size: .9rem; color: var(--slate); }

/* ---------------- reviews marquee ---------------- */
.rev-section { padding-bottom: 3rem; }
.rev-strip { overflow: hidden; }
.rev-track {
  list-style: none; margin: 0; padding: 0 0 .5rem;
  display: flex; width: max-content;
  animation: rev-scroll 60s linear infinite;
}
.rev-strip:hover .rev-track,
.rev-strip:focus-within .rev-track { animation-play-state: paused; }
.rev-card {
  flex: none; width: 19rem; margin-right: 1rem; background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 1.1rem 1.2rem;
}
.rev-card blockquote { margin: 0; }
.rev-card p { font-size: .93rem; margin-bottom: .8rem; }
.rev-card footer { display: grid; gap: .1rem; }
.rev-card footer strong { font-size: .9rem; color: var(--ink); }
.rev-card footer span { font-size: .8rem; color: var(--slate); }
@keyframes rev-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------------- faq ---------------- */
.faq-preview details, .faq-item {
  border-bottom: 1px solid var(--line); padding: .9rem 0;
}
.faq-preview summary, .faq-item summary {
  font-weight: 700; color: var(--brand); cursor: pointer; min-height: 44px;
  display: flex; align-items: center; position: relative; padding-right: 2.4rem;
  list-style: none;
}
.faq-preview summary::-webkit-details-marker, .faq-item summary::-webkit-details-marker { display: none; }
.faq-preview summary::after, .faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; color: var(--accent); font-weight: 400;
}
.faq-preview details[open] summary::after, .faq-item[open] summary::after { content: "\2212"; border-color: var(--accent); color: var(--brand); }
.faq-preview details p, .faq-item p { margin: .4rem 0 .4rem; }

/* ---------------- photo strip ---------------- */
.photostrip { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.photostrip figure { margin: 0; }
.photostrip img { aspect-ratio: var(--ratio-strip); object-fit: cover; border-radius: var(--r-card); width: 100%; }

/* ---------------- page head ---------------- */
.pagehead { background: var(--cloud); border-bottom: 1px solid var(--line); padding: 1.6rem 0 2rem; }
.crumbs { font-size: .82rem; margin-bottom: .9rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.crumbs a { color: var(--slate); }
.pagehead h1 { margin-bottom: .4rem; }
.pagehead .lede { margin: 0; color: var(--slate); max-width: 62ch; }

/* ---------------- services index ---------------- */
.svc-grid { display: grid; gap: 1rem; }
.svc-card {
  display: block; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
  text-decoration: none; background: var(--white); transition: border-color .15s;
}
.svc-card:hover { border-color: var(--brand); }
.svc-card-img { display: block; width: 100%; aspect-ratio: 8/5; object-fit: cover; background: var(--cloud); }
.svc-card-body { padding: 1.1rem 1.3rem 1.3rem; }
.svc-card h2 { font-size: 1.15rem; margin: 0 0 .4rem; }
.svc-card p { color: var(--slate); font-size: .93rem; margin-bottom: .8rem; }
.svc-card-cta { font-weight: 700; font-size: .88rem; color: var(--accent); }
.svc-card:hover .svc-card-cta { color: var(--brand); }

/* ---------------- industries ---------------- */
.ind-grid { display: grid; gap: 1rem; }
.ind-card {
  border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
  background: var(--white); transition: border-color .15s;
}
.ind-card:hover { border-color: var(--brand); }
.ind-card-img { display: block; width: 100%; aspect-ratio: 2/1; object-fit: cover; background: var(--cloud); }
.ind-card-body { padding: 1.2rem; }
.ind-card-body h2 { font-size: 1.15rem; margin-top: 0; }
.ind-card-body p { color: var(--slate); font-size: .93rem; }

/* ---------------- service detail ---------------- */
.svc-detail { display: grid; gap: 2rem; }
.media-slot img { aspect-ratio: var(--ratio-svc); object-fit: cover; border-radius: var(--r-card); border: 1px solid var(--line); width: 100%; }
.svc-main h2 { margin-top: 1.8rem; }
.ticks { list-style: none; padding: 0; }
.ticks li { padding: .45rem 0 .45rem 1.7rem; position: relative; border-bottom: 1px solid var(--line); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .75rem;
  width: 12px; height: 12px; border-radius: 50%;
  border: 3px solid var(--accent); background: var(--white);
}
.chiplist { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chiplist li {
  border: 1px solid var(--line); border-radius: var(--r-chip); padding: .35rem .9rem;
  font-size: .85rem; font-weight: 600; color: var(--brand); background: var(--cloud);
}
.chiplist--links a { color: var(--accent); text-decoration: none; }
.chiplist--links a:hover { text-decoration: underline; }

.side-card { border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.2rem; margin-bottom: 1rem; background: var(--white); }
.side-actions { display: grid; gap: .6rem; }
.side-actions .btn--block { margin-bottom: 0; }
.side-card h2 { font-size: 1.05rem; }
.side-card--quiet { background: var(--cloud); }
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links a { display: block; padding: .5rem 0; min-height: 44px; }

/* ---------------- about ---------------- */
.about-grid { display: grid; gap: 2rem; }
.about-main h2 { margin-top: 1.8rem; }
.about-main h2:first-child { margin-top: 0; }
.values { display: grid; gap: .8rem; margin-top: 1rem; }
.value { background: var(--cloud); border: 1px solid var(--line); padding: 1rem 1.1rem; border-radius: var(--r-card); }
.value h3 { margin-bottom: .2rem; }
.value p { margin: 0; font-size: .92rem; color: var(--slate); }
.leader-card { border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.2rem; margin: 1rem 0; }

/* ---------------- compliance ---------------- */
.verified-line { font-size: .9rem; color: var(--slate); margin-bottom: 1.4rem; }
.credwall { display: grid; gap: 1rem; }
.credcard { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--white); }
.credcard-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  padding: 1rem 1.2rem; background: var(--cloud); border-bottom: 1px solid var(--line);
}
.credcard-head h2 { font-size: 1.02rem; margin: 0; }
.credcard-body { margin: 0; padding: 1rem 1.2rem; }
.credcard-body > div { display: grid; gap: .15rem; padding: .35rem 0; }
.credcard-body dt { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--slate); }
.credcard-body dd { margin: 0; font-size: .93rem; }
.badge {
  flex: none; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  border-radius: var(--r-chip); padding: .25rem .7rem;
}
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--warn { background: var(--danger-bg); color: var(--danger); }
.badge--muted { background: var(--line); color: var(--slate); }
.crednote { border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.2rem; margin-top: 1.4rem; }
.crednote + .crednote { margin-top: 1rem; }
.crednote h2 { font-size: 1.05rem; }

/* ---------------- forms ---------------- */
.form-wrap { max-width: 46rem; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.4rem; }
.form-card h2 { margin-bottom: 1rem; }
form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .9rem; }
form input[type="text"], form input[type="tel"], form input[type="email"],
form input[type="number"], form input[type="date"], form input[type="password"],
form select, form textarea {
  display: block; width: 100%; margin-top: .35rem;
  font: inherit; font-size: 16px; /* prevents iOS zoom */
  padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: var(--r-btn);
  background: var(--white); color: var(--ink); min-height: 44px;
}
form select {
  appearance: none; padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23034B9B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px;
}
form input:focus, form select:focus, form textarea:focus { border-color: var(--accent); outline: none; }
form textarea { min-height: 100px; }
fieldset { border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.1rem; margin: 0 0 1.2rem; }
legend { font-weight: 700; color: var(--brand); padding: 0 .5rem; }
.subfieldset { margin-top: 0; }
.check { display: flex; align-items: flex-start; gap: .6rem; font-weight: 500; }
.check input { width: 20px; height: 20px; margin-top: .15rem; flex: none; accent-color: var(--brand); }
/* multi-option groups: bordered choice chips with a clear checked state */
.subfieldset .check {
  border: 1.5px solid var(--line); border-radius: var(--r-btn);
  padding: .5rem .9rem; min-height: 44px; align-items: center; font-size: .95rem;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.subfieldset .check input { margin-top: 0; }
.subfieldset .check:has(input:checked) { border-color: var(--brand); background: var(--cloud); font-weight: 600; }
.fieldrow { display: grid; gap: 0; }
.field-error { display: block; color: var(--danger); font-size: .85rem; font-weight: 600; margin: -.5rem 0 .8rem; }
.form-banner { border-radius: var(--r-card); padding: .9rem 1.1rem; margin-bottom: 1.2rem; }
.form-banner--err { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger); }
.form-banner--warn { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--silver); }
.form-note { font-size: .85rem; color: var(--slate); margin-top: .8rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; }

/* ---------------- contact ---------------- */
.contact-grid { display: grid; gap: 1.6rem; }
.contact-cards { display: grid; gap: .9rem; }
.contact-card {
  border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.1rem 1.2rem;
  text-decoration: none; color: var(--ink); display: block; background: var(--white);
}
a.contact-card:hover { border-color: var(--brand); }
.contact-card h2 { font-size: 1rem; }
.contact-big { font-size: 1.2rem; font-weight: 800; color: var(--brand); margin-bottom: .25rem; }
.contact-big a { color: var(--brand); }
.contact-card p { margin: 0; font-size: .9rem; color: var(--slate); }
.contact-card address { font-size: .95rem; margin-bottom: .4rem; }
.contact-card--alert h2 { color: var(--danger); }
.contact-forms { display: grid; gap: 1.2rem; align-content: start; }

/* ---------------- tender ---------------- */
.tender-grid { display: grid; gap: 1.6rem; }

/* ---------------- careers ---------------- */
.careers-grid { display: grid; gap: 1.6rem; }
.careers-main h2 { margin-top: 1.8rem; }
.careers-main h2:first-child { margin-top: 0; }
.role-list { display: grid; gap: .8rem; }
.role-card { border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.1rem 1.2rem; }
.role-card h3 { margin-bottom: .2rem; }
.empty-state {
  border: 1.5px dashed var(--silver); border-radius: var(--r-card); padding: 1.4rem;
  background: var(--cloud); color: var(--slate);
}
.empty-state p { margin: 0; }

/* ---------------- resources ---------------- */
.res-list { display: grid; gap: 1rem; }
.res-card { display: block; border: 1px solid var(--line); border-radius: var(--r-card); text-decoration: none; overflow: hidden; transition: border-color .15s; }
.res-card-img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--cloud); }
.res-card-body { padding: 1.1rem 1.2rem 1.2rem; }
.res-card h2 { font-size: 1.1rem; margin-top: 0; }
.res-card p { color: var(--slate); }
.res-card:hover { border-color: var(--brand); }
.article { max-width: 44rem; }
.article h2 { margin-top: 1.8rem; }
.article-intro { font-size: 1.08rem; }

/* ---------------- confirm / 404 ---------------- */
.confirm-page, .nf-page { padding-top: 3.4rem; }
.confirm-box, .nf-box { max-width: 34rem; margin: 0 auto; text-align: center; }
.confirm-box p, .nf-box p { margin-left: auto; margin-right: auto; }
.confirm-iris { width: 96px; height: 96px; margin: 0 auto 1.2rem; display: block; }
.refnum {
  font-size: 1.5rem; font-weight: 800; letter-spacing: .06em; color: var(--brand);
  border: 1.5px dashed var(--accent); border-radius: var(--r-card); padding: .7rem 1rem; display: inline-block;
}
.confirm-box .hero-actions, .nf-box .hero-actions { justify-content: center; }

/* ---------------- footer ---------------- */
.site-footer { background: var(--brand); color: var(--white); margin-top: 0; }
.footer-grid { display: grid; gap: 1.8rem; padding-top: 2.4rem; padding-bottom: 1.6rem; }
.footer-name { font-weight: 800; margin-bottom: .2rem; max-width: none; }
.footer-tag { color: var(--silver); font-size: .9rem; }
.footer-brand address { color: #DCE8F5; font-size: .9rem; margin-top: .8rem; }
.footer-col h2 { color: var(--white); font-size: .95rem; margin-bottom: .6rem; }
.footer-col a {
  display: block; color: #DCE8F5; text-decoration: none;
  padding: .3rem 0; font-size: .92rem;
}
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-cta { font-weight: 700; color: var(--white) !important; }
.footer-legal { margin-top: .8rem; font-size: .85rem; }
.footer-legal a { display: inline; }
.footer-base { border-top: 1px solid var(--brand-deep); padding-top: 1rem; padding-bottom: 1.2rem; font-size: .82rem; color: var(--silver); display: flex; justify-content: space-between; gap: .5rem 1.5rem; flex-wrap: wrap; }
.footer-base p { margin: 0; }
.footer-base a { color: var(--white); }

/* ---------------- floating buttons ---------------- */
.floatcta {
  display: flex; flex-direction: column; gap: .7rem;
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
}
.float-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--white); text-decoration: none;
}
.float-btn svg { display: block; }
.float-wa { background: #25D366; }
.float-wa:hover { background: #1EBE5B; color: var(--white); }
.float-call { background: var(--brand); }
.float-call:hover { background: var(--brand-deep); color: var(--white); }

/* ---------------- admin ---------------- */
.admin { background: var(--cloud); padding-bottom: 0; }
.admin-bar { background: var(--brand); color: var(--white); }
.admin-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; flex-wrap: wrap; }
.brand--admin { color: var(--white); font-weight: 800; text-decoration: none; }
.brand--admin em { font-style: normal; font-weight: 600; font-size: .8rem; color: var(--silver); }
.admin-nav { display: flex; flex-wrap: wrap; gap: .2rem; }
.admin-nav a { color: #DCE8F5; text-decoration: none; padding: .5rem .7rem; font-size: .9rem; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.admin-nav a:hover { color: var(--white); }
.admin-main { padding: 2rem 0 4rem; }
.admin-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.6rem; }
.admin-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.1rem; text-decoration: none; color: var(--ink); display: grid; gap: .2rem; }
.admin-card-num { font-size: 1.9rem; font-weight: 800; color: var(--brand); }
.admin-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: .9rem; }
.admin-table th, .admin-table td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); }
.admin-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--slate); }
.admin-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem; }
.admin-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.admin-filters a { border: 1px solid var(--line); border-radius: var(--r-chip); padding: .35rem .9rem; text-decoration: none; color: var(--slate); font-size: .85rem; font-weight: 600; }
.admin-filters a.active { background: var(--brand); border-color: var(--brand); color: var(--white); }
.login-box { max-width: 24rem; margin: 3rem auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.6rem; }
.lead-detail { display: grid; gap: 1.6rem; }
.lead-data { margin: 0; }
.lead-data > div { padding: .4rem 0; border-bottom: 1px solid var(--line); }
.lead-data dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--slate); font-weight: 700; }
.lead-data dd { margin: 0; }
.inline-form { display: flex; align-items: flex-end; gap: .8rem; flex-wrap: wrap; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1rem; margin-bottom: 1.4rem; }
.inline-form label { margin: 0; }
.inline-form input { width: auto; }
.cred-admin-list { display: grid; gap: 1rem; }
.cred-admin-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.1rem; }
.cred-admin-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.cred-admin-head h2 { font-size: 1rem; margin: 0; }

/* ============================ breakpoints ============================ */
@media (min-width: 480px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-actions .btn { flex: 1 1 auto; }
  .fieldrow { grid-template-columns: 1fr 1fr; gap: .9rem; }
  .assess-steps { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  h1 { font-size: 2.4rem; }
  .hero-copy h1 { font-size: 2.7rem; }
  .floatcta { right: 1.2rem; bottom: 1.4rem; }
  .nav-toggle { display: none; }
  .brand-logo { height: 54px; }
  .main-nav { display: flex; gap: .2rem; align-items: center; }
  .main-nav a { border-bottom: 0; padding: .55rem .7rem; font-size: .92rem; }
  .main-nav a:hover { color: var(--brand); text-decoration: underline; }
  .nav-cta { display: inline-block; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; }
  .rr-strip { grid-template-columns: 1.4fr 1fr; align-items: center; }
  .steps { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .layers { grid-template-columns: 1fr 1fr; align-items: start; }
  .layers-diagram { position: sticky; top: 1rem; }
  .finder { grid-template-columns: 1fr 1.2fr; align-items: center; }
  .gms-grid { grid-template-columns: 1fr 1.1fr; align-items: center; }
  .leader { grid-template-columns: 280px 1fr; align-items: center; gap: 2.4rem; }
  .about-grid { grid-template-columns: 1.5fr 1fr; }
  .svc-detail { grid-template-columns: 1.6fr .9fr; }
  .contact-grid { grid-template-columns: .9fr 1.1fr; }
  .tender-grid { grid-template-columns: 1fr 1fr; }
  .careers-grid { grid-template-columns: 1.2fr .9fr; }
  .credwall { grid-template-columns: 1fr 1fr; }
  .photostrip { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .res-list { grid-template-columns: 1fr 1fr; }
  .ind-grid { grid-template-columns: 1fr 1fr; }
  .lead-detail { grid-template-columns: 1.2fr .8fr; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .ind-grid { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .credwall { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 3.4rem 0; }
}

@media (min-width: 1280px) {
  :root { --maxw: 76rem; }
  .svc-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-copy h1 { font-size: 3rem; }
}

/* ============================ mobile (<=479px) ============================
   All small-screen overrides live in this one block:
   - page container side padding = 6px (edge-to-card distance)
   - gap between cards = 6px, card padding = 6px
   - single-column card layouts get 2px extra inset => 8px edge distance */
@media (max-width: 479px) {
  :root { --r-card: 6px; --r-btn: 5px; }
  .blog-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .blog-card-body { padding: 6px; }
  .blog-card-body h2 { font-size: .88rem; }
  .blog-card-body p { font-size: .8rem; }

  /* container side padding: 6px everywhere */
  .wrap { padding-left: 6px; padding-right: 6px; }
  .main-nav.open { padding-left: 6px; padding-right: 6px; }
  .credbar-inner { padding-left: 6px; padding-right: 6px; gap: 6px; }

  /* two-per-line card grids: 6px gap, 6px card padding */
  .svc-grid, .ind-grid, .values, .contact-cards, .res-list, .admin-cards {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  }
  .value, .contact-card, .admin-card { padding: 6px; }
  .svc-card-body, .ind-card-body, .res-card-body { padding: 6px; }
  .svc-card h2 { font-size: .95rem; }
  .svc-card p { font-size: .8rem; }
  .svc-card-cta { font-size: .78rem; }
  .ind-card-body h2 { font-size: .98rem; }
  .ind-card-body p { font-size: .8rem; }
  .ind-card-body .chiplist { gap: .3rem; }
  .ind-card-body .chiplist li { padding: .2rem .5rem; font-size: .75rem; }
  .res-card h2 { font-size: .95rem; }
  .res-card-body p { font-size: .8rem; }
  .svc-thumb { width: 56px; height: 38px; border-radius: 5px; }
  .svc-row { gap: .7rem; padding: .8rem 0; }
  .svc-row-body p { font-size: .82rem; }
  .photostrip { gap: 6px; }

  /* single-column card layouts: 8px from screen edge to card
     (6px container padding + 2px card margin) */
  .svc-list, .credwall, .role-list, .steps,
  .form-card, .finder-form, .side-card, .leader-card,
  .cred-admin-card, .empty-state {
    margin-left: 2px; margin-right: 2px;
  }

  /* paired action buttons: two per line, one-line labels */
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .hero-actions .btn {
    white-space: nowrap; padding: .6rem .5rem;
    font-size: .82rem; letter-spacing: -.01em;
  }
  .hero-actions--trio .btn:last-child { grid-column: 1 / -1; }
  .btn-long { display: none; }
  .btn-short { display: inline; }
  .side-actions { grid-template-columns: 1fr 1fr; }
  .side-actions .btn {
    width: auto; margin-bottom: 0; white-space: nowrap;
    padding: .6rem .5rem; font-size: .82rem; letter-spacing: -.01em;
  }
  .side-actions .btn:nth-child(3):last-child { grid-column: 1 / -1; }
}

/* ---------------- motion & print ---------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rev-strip { overflow-x: auto; }
  .rev-track { width: max-content; }
}

@media print {
  .site-header, .site-footer, .floatcta, .hero-actions, .btn, .crumbs { display: none !important; }
  body { font-size: 12pt; }
  .section { padding: 1rem 0; }
  .pagehead { background: none; border: 0; }
  a { color: var(--ink); text-decoration: none; }
}


/* ---------- blog ---------- */
.chip { display: inline-block; padding: .2rem .6rem; border-radius: var(--r-chip); font-size: .75rem; font-weight: 600; background: var(--cloud); color: var(--brand); text-decoration: none; }
.cat-pills { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.cat-pills a { padding: .35rem .8rem; border: 1px solid var(--line); border-radius: var(--r-chip); background: var(--white); color: var(--slate); text-decoration: none; font-size: .85rem; font-weight: 600; }
.cat-pills a.on { background: var(--brand); border-color: var(--brand); color: var(--white); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.blog-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--white); text-decoration: none; color: var(--ink); overflow: hidden; }
.blog-card:hover { border-color: var(--accent); }
.blog-card-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.blog-card-body { padding: .9rem; display: flex; flex-direction: column; gap: .4rem; }
.blog-card-body h2 { margin: 0; font-size: 1.05rem; }
.blog-card-body p { margin: 0; color: var(--slate); font-size: .92rem; }
.blog-meta { font-size: .82rem; color: var(--slate); display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.article-wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: start; }
.article-hero img { width: 100%; border-radius: var(--r-card); aspect-ratio: 16/9; object-fit: cover; }
.prose { font-size: 1.02rem; line-height: 1.7; }
.prose h2 { margin: 1.4rem 0 .5rem; font-size: 1.3rem; }
.prose h3 { margin: 1.2rem 0 .4rem; font-size: 1.12rem; }
.prose h4 { margin: 1rem 0 .35rem; font-size: 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose blockquote { margin: 1rem 0; padding: .6rem 1rem; border-left: 3px solid var(--accent); background: var(--cloud); }
.prose a { color: var(--accent); }
.prose pre { background: var(--ink); color: #dfe8f2; padding: .9rem; border-radius: var(--r-card); overflow-x: auto; }
.prose code { font-size: .9em; }

/* ---------- 403 standalone page ---------- */
.err-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 0; background: var(--cloud); text-align: center; }
.err-code { font-size: 3.4rem; font-weight: 800; color: var(--brand); margin: 0; }
.err-page h1 { margin: .3rem 0 .6rem; }
.err-page p { max-width: 34rem; margin: 0 auto 1rem; color: var(--slate); }

@media (max-width: 899px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .article-wrap { grid-template-columns: 1fr; }
}


/* ---------- photographic page heroes ---------- */
.pagehead--img {
  position: relative; border-bottom: 1px solid var(--line);
  background: var(--ink);
}
.pagehead--img::before {
  content: ''; position: absolute; inset: 0;
  background: var(--ink) var(--hero-img) center 35%/cover no-repeat;
}
.pagehead--img::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(12, 26, 44, .78);
}
.pagehead--img .wrap { position: relative; z-index: 1; }
.pagehead--img h1 { color: var(--white); }
.pagehead--img .lede { color: #D7E1EC; }
.pagehead--img .crumbs, .pagehead--img .crumbs a { color: #B8C8DB; }
.pagehead--img .crumbs [aria-current='page'] { color: var(--white); }
.pagehead--img { padding: 3.2rem 0 3.4rem; }

/* ---------- rapid response band photo ---------- */
.rr-strip { grid-template-columns: 1fr; }
.rr-media { margin: 0; }
.rr-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--r-card); border: 1px solid rgba(255,255,255,.25); }
@media (min-width: 900px) {
  .rr-strip { grid-template-columns: 1.3fr 1fr; }
  .rr-media img { aspect-ratio: 4/3; }
}
.rr-strip .coverage { margin-top: 1.2rem; }

/* ---------- service gallery ---------- */
.svc-gallery {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem;
  margin-top: 1.6rem;
}
.svc-gallery figure { margin: 0; }
.svc-gallery img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--r-card); border: 1px solid var(--line); display: block;
}

/* ---------- hero badge stamp ---------- */
.iris-overlay {
  background: var(--white); border-radius: 50%; padding: 6px;
  box-sizing: border-box;
}
