/* Armstrong Security — site styles
   Palette drawn from the shield: field navy, brushed steel, flag red,
   on CSI cream stock. Type: Lora (CSI serif) + Arimo (Liberation Sans metrics). */

:root {
  --navy-900: #121B28;
  --navy-800: #182436;
  --navy-700: #22324A;
  --flag-blue: #2A5CAA;
  --steel-500: #7D8A98;
  --steel-300: #B9C2CC;
  --steel-100: #E4E8EC;
  --red: #B22234;
  --red-dark: #8C1B29;
  --cream: #F5F4F0;
  --paper: #FFFFFF;
  --ink: #1C2526;
  --ink-soft: #4A5558;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Arimo", "Liberation Sans", Arial, Helvetica, sans-serif;
  --measure: 66ch;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--flag-blue); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: .6rem 1rem; z-index: 50; font-family: var(--sans); }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; font-weight: 600; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; max-width: var(--measure); }

/* Small sans kicker, sentence case, used only where it names the section's job */
.kicker { font-family: var(--sans); font-size: .9rem; font-weight: 700; color: var(--red); margin: 0 0 .5rem; letter-spacing: .02em; }
.dark .kicker { color: var(--steel-300); }

/* ---------- Header ---------- */
.site-header { background: var(--navy-900); color: var(--paper); border-bottom: 3px solid var(--red); position: sticky; top: 0; z-index: 40; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--paper); text-decoration: none; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand span { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; letter-spacing: .14em; line-height: 1.1; }
.brand small { display: block; font-weight: 400; font-size: .72rem; letter-spacing: .32em; color: var(--steel-300); }
.brand:hover { color: var(--paper); }

.nav-toggle { display: none; background: none; border: 1px solid var(--steel-500); color: var(--paper); font-family: var(--sans); font-size: .95rem; padding: .45rem .8rem; border-radius: 4px; cursor: pointer; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; align-items: center; }
.site-nav a { display: block; color: var(--steel-100); text-decoration: none; font-family: var(--sans); font-size: .95rem; padding: .5rem .8rem; border-radius: 4px; }
.site-nav a:hover { color: var(--paper); background: var(--navy-700); }
.site-nav a[aria-current="page"] { color: var(--paper); box-shadow: inset 0 -2px 0 var(--steel-300); border-radius: 0; }
.site-nav a.nav-cta { background: var(--red); color: var(--paper); margin-left: .5rem; }
.site-nav a.nav-cta:hover { background: var(--red-dark); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy-900); border-bottom: 3px solid var(--red); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: .5rem 1.25rem 1rem; }
  .site-nav a { padding: .8rem .5rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--steel-300); padding-left: .9rem; }
  .site-nav a.nav-cta { margin: .5rem 0 0; text-align: center; }
}

/* ---------- Hero (the one bold moment) ---------- */
.hero {
  background:
    radial-gradient(ellipse 70% 90% at 78% 45%, #2B3E5C 0%, var(--navy-800) 55%, var(--navy-900) 100%);
  color: var(--paper);
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero h1 { color: var(--paper); }
.hero p { color: var(--steel-100); font-size: 1.15rem; }
.hero-mark img { width: min(420px, 100%); margin-inline: auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); }
.hero-license { font-family: var(--sans); font-size: .9rem; color: var(--steel-300); margin-top: 1.5rem; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-mark { order: -1; }
  .hero-mark img { width: 220px; }
}

/* Inner page banner */
.page-banner { background: var(--navy-800); color: var(--paper); border-bottom: 1px solid var(--navy-700); }
.page-banner .wrap { padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.page-banner h1 { color: var(--paper); margin-bottom: .4em; }
.page-banner p { color: var(--steel-100); font-size: 1.1rem; margin: 0; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn { display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 1rem; text-decoration: none; padding: .85rem 1.4rem; border-radius: 4px; border: 2px solid transparent; cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--red); color: var(--paper); }
.btn-primary:hover { background: var(--red-dark); color: var(--paper); }
.btn-ghost { border-color: var(--steel-300); color: var(--paper); }
.btn-ghost:hover { background: var(--paper); color: var(--navy-900); }
.btn-outline { border-color: var(--navy-800); color: var(--navy-800); }
.btn-outline:hover { background: var(--navy-800); color: var(--paper); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section.alt { background: var(--paper); }
.section-head { max-width: 46rem; margin-bottom: 2.25rem; }

/* CSI diamond divider */
.diamond { display: flex; align-items: center; gap: .9rem; color: var(--steel-500); margin: 0 0 2.25rem; max-width: 14rem; }
.diamond::before, .diamond::after { content: ""; flex: 1; height: 1px; background: currentColor; }
.diamond span { width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); }
.center .diamond { margin-inline: auto; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 780px) { .two-col { grid-template-columns: 1fr; } }

/* Tier panels — the two officer tiers, set like plates on a shield */
.tiers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.tier { background: var(--paper); border: 1px solid var(--steel-300); border-top: 5px solid var(--navy-800); padding: 1.75rem; }
.tier.sentinel { border-top-color: var(--red); }
.tier h3 { font-size: 1.5rem; margin-bottom: .25rem; }
.tier .tier-line { font-family: var(--sans); color: var(--ink-soft); font-size: .95rem; margin-bottom: 1rem; }
.tier ul { margin: 0; padding-left: 1.1rem; }
.tier li { margin-bottom: .4rem; }
@media (max-width: 780px) { .tiers { grid-template-columns: 1fr; } }

/* Plain list with steel markers */
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.points li { padding-left: 1.4rem; position: relative; }
.points li::before { content: ""; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; background: var(--red); transform: rotate(45deg); }
.points strong { display: block; font-family: var(--serif); font-size: 1.15rem; }
.points.grid3 { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 860px) { .points.grid3 { grid-template-columns: 1fr; } }

/* Sequenced steps — genuinely a sequence, so numbered */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps li { counter-increment: step; border-top: 2px solid var(--navy-800); padding-top: 1rem; }
.steps li::before { content: "Step " counter(step); display: block; font-family: var(--sans); font-weight: 700; font-size: .9rem; color: var(--red); margin-bottom: .35rem; }
.steps h3 { font-size: 1.1rem; }
.steps p { font-size: .98rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Dark banner callout (CSI) */
.callout { background: var(--navy-900); color: var(--paper); border-left: 6px solid var(--red); padding: clamp(1.75rem, 4vw, 2.75rem); }
.callout h2 { color: var(--paper); }
.callout p { color: var(--steel-100); }

/* Tinted coaching panel (CSI) */
.panel { background: var(--steel-100); border-left: 4px solid var(--flag-blue); padding: 1.5rem 1.75rem; }
.panel p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { background: var(--red); color: var(--paper); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 2.5rem; }
.cta-band h2 { color: var(--paper); margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-band p { margin: .35rem 0 0; color: #F6DADD; }
.cta-band .btn { background: var(--paper); color: var(--red-dark); }
.cta-band .btn:hover { background: var(--navy-900); color: var(--paper); }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.contact-list .label { display: block; font-family: var(--sans); font-size: .9rem; font-weight: 700; color: var(--ink-soft); }
.contact-list .value { font-size: 1.2rem; }
.form { background: var(--paper); border: 1px solid var(--steel-300); padding: 1.75rem; }
.form label { display: block; font-family: var(--sans); font-weight: 700; font-size: .95rem; margin-bottom: .35rem; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 1rem; padding: .7rem .8rem; border: 1px solid var(--steel-500); border-radius: 4px; background: var(--paper); color: var(--ink); margin-bottom: 1.1rem; }
.form textarea { min-height: 140px; resize: vertical; }
.form .note { font-family: var(--sans); font-size: .9rem; color: var(--ink-soft); }
.placeholder-flag { background: #FFF3C4; color: #1C2526; padding: 0 .3em; }

/* ---------- Footer: three-column (CSI) ---------- */
.site-footer { background: var(--navy-900); color: var(--steel-300); font-family: var(--sans); font-size: .95rem; border-top: 3px solid var(--red); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-block: 3rem 2rem; }
.site-footer h2 { font-family: var(--sans); font-size: 1rem; color: var(--paper); margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: var(--steel-100); text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; }
.site-footer .foot-logo { width: 150px; margin-bottom: 1rem; }
.site-footer p { max-width: 36ch; }
.legal { border-top: 1px solid var(--navy-700); }
.legal .wrap { display: block; padding-block: 1.25rem; font-size: .85rem; color: var(--steel-500); }
@media (max-width: 780px) { .site-footer .wrap { grid-template-columns: 1fr; gap: 2rem; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-mark img { animation: settle .9s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes settle { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
}

/* ---------- Leadership panel with portrait ---------- */
.leader { background: var(--steel-100); border-left: 4px solid var(--flag-blue); padding: 1.75rem; }
.leader h3 { margin-bottom: .1em; }
.leader .role { font-family: var(--sans); font-size: .95rem; color: var(--ink-soft); margin-bottom: 1rem; }
.leader p:last-child { margin-bottom: 0; }
.leader p { max-width: none; }
.leader-portrait {
  float: right;
  width: 42%;
  max-width: 180px;
  margin: 0 0 .75rem 1.25rem;
  background: radial-gradient(ellipse at 50% 30%, var(--navy-700) 0%, var(--navy-900) 100%);
  border-bottom: 3px solid var(--red);
  shape-outside: margin-box;
}
.leader-portrait img { width: 100%; }
.leader::after { content: ""; display: block; clear: both; }
@media (max-width: 480px) { .leader-portrait { width: 38%; margin-left: 1rem; } }

/* breathing room when a subhead follows a point list */
.points + h3 { margin-top: 2.25rem; }

/* contact form fallback when no mail app is registered */
.form-fallback { margin-top: 1.5rem; }
.form-fallback h3 { margin-bottom: .4em; }
.form-fallback textarea { width: 100%; font: inherit; font-size: .95rem; padding: .7rem .8rem; border: 1px solid var(--steel-500); border-radius: 4px; background: var(--paper); margin-bottom: .9rem; }
