/* ==========================================================================
   Crowned Protective Advisory — Site Styles
   Premium black steel & gold theme
   ========================================================================== */

:root {
  --black: #060606;
  --black-soft: #101012;
  --charcoal: #17181a;
  --charcoal-light: #202224;
  --hairline: rgba(201, 169, 76, 0.28);
  --hairline-soft: rgba(201, 169, 76, 0.14);
  --gold: #c9a94c;
  --gold-dark: #9c7c2e;
  --gold-bright: #f0d998;
  --gold-grad: linear-gradient(135deg, #a9843a 0%, #e9d18d 45%, #a9843a 100%);
  --red: #ad1730;
  --red-bright: #d4213f;
  --white: #f5f5f3;
  --grey: #b8b8b3;
  --grey-dim: #8a8a85;
  --font-head: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Brushed black steel backdrop — used site-wide instead of photography */
body {
  margin: 0;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background-color: #050505;
  background-image:
    repeating-linear-gradient(118deg, rgba(255,255,255,0.028) 0px, rgba(255,255,255,0.028) 1px, transparent 1px, transparent 4px),
    radial-gradient(ellipse at 50% -10%, rgba(255,255,255,0.05), transparent 55%),
    linear-gradient(180deg, #101011 0%, #060606 35%, #0a0a0a 100%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
  color: var(--white);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); line-height: 1.08; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.2; font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }

p { color: var(--grey); margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 500;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section--tight { padding: 4rem 0; }

.section--alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0) 40%), var(--black-soft);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.center { text-align: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.95rem 2.2rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid var(--gold);
  transition: all 0.25s ease;
  cursor: pointer;
}

/* Compound selectors (.btn.btn--gold) intentionally used so button colors
   always win over nav/link color rules, regardless of where the button
   is placed (header, hero, footer, etc). */
.btn.btn--gold {
  background: var(--gold-grad);
  color: #0a0a0a;
  border-color: transparent;
  font-weight: 600;
}
.btn.btn--gold:hover { filter: brightness(1.1); box-shadow: 0 0 0 1px var(--gold-bright); }

.btn.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(245,245,243,0.4);
}
.btn.btn--outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- Header / Nav ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.5rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0));
  transition: background 0.3s ease;
}

.site-header.scrolled {
  background: rgba(6,6,6,0.94);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(6px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.4rem;
  color: var(--white);
  white-space: nowrap;
}
.brand-name .accent { color: var(--gold); }

/* Crown emblem jewels — the red accent color lives here and on the
   "armed" service indicators, so it reads as intentional, not random. */
.gem { fill: var(--red); stroke: none; }

/* Thin red rule under any "Crowned Protective Advisory" wordmark —
   the header logo text, the footer heading, and the homepage hero title. */
.brand-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 0.3em;
}
.brand-underline::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
}

/* Compact heading variant for longer titles (e.g. a 4-region list) so
   they read comfortably on one line at typical desktop widths. */
.heading-compact { font-size: clamp(1.35rem, 2.6vw, 1.9rem); letter-spacing: 0; }

@media (max-width: 520px) {
  .brand-name { font-size: 1.02rem; }
}

nav.main-nav { display: flex; align-items: center; gap: 2.4rem; }
nav.main-nav a {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--grey);
  position: relative;
  padding-bottom: 4px;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--gold); }
nav.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
}
nav.main-nav .btn { margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  width: 42px; height: 42px;
  font-size: 1.3rem;
  cursor: pointer;
}

@media (max-width: 940px) {
  nav.main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: var(--black-soft);
    border-left: 1px solid var(--hairline);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.8rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  nav.main-nav.open { transform: translateX(0); }
  .nav-toggle { display: block; }
}

/* ---- Hero (no photography — brushed steel + gold watermark emblem) ---- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 75% 15%, rgba(201,169,76,0.10), transparent 45%),
    repeating-linear-gradient(122deg, rgba(255,255,255,0.035) 0px, rgba(255,255,255,0.035) 2px, transparent 2px, transparent 7px),
    linear-gradient(150deg, #17181a 0%, #0a0a0a 55%, #050505 100%);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 55%, rgba(5,5,5,0.95) 100%);
  z-index: 0;
  pointer-events: none;
}
.hero-watermark {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: 42vw;
  max-width: 560px;
  min-width: 280px;
  color: var(--gold);
  opacity: 0.07;
  z-index: 0;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; padding: 8rem 2rem 4rem; margin: 0 auto; width: 100%; }
.hero-content p.lead { color: var(--grey); font-size: 1.15rem; max-width: 560px; }


.hero--small { min-height: 46vh; }
.hero--small .hero-content { padding: 9rem 2rem 3rem; }

/* Armed / unarmed availability badges — used in the hero to make the
   dual-service offering immediately obvious. */
.badge-row { display: flex; gap: 1.6rem; flex-wrap: wrap; margin: 0.4rem 0 1.8rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  color: var(--grey);
}
.badge::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.badge--armed::before { background: var(--red); box-shadow: 0 0 8px rgba(173,23,48,0.6); }
.badge--unarmed::before { background: var(--gold); box-shadow: 0 0 8px rgba(201,169,76,0.6); }

/* ---- Grids / Cards ---- */
.grid {
  display: grid;
  gap: 2rem;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid--4 { grid-template-columns: 1fr; }
}

/* Corner-bracket framing — the recurring "premium" motif used on cards,
   panels, and forms in place of stock photography. */
.corner-frame { position: relative; }
.corner-frame::before,
.corner-frame::after {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid var(--gold);
  opacity: 0.85;
  pointer-events: none;
}
.corner-frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.corner-frame::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.card {
  background: linear-gradient(160deg, rgba(255,255,255,0.03), transparent 40%), var(--charcoal);
  border: 1px solid var(--hairline);
  padding: 2.6rem 2.2rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover { border-color: var(--gold); transform: translateY(-4px); }
.card .icon {
  color: var(--gold);
  width: 52px; height: 52px;
  margin-bottom: 1.3rem;
}
.card .icon svg { width: 100%; height: 100%; }
.card .tag {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

/* Armed Guards now matches the styling of the other service cards
   (gold accent, same background/border) for visual consistency across
   the services grid. */

/* ---- Emblem panel (About page — replaces the old stock photo) ---- */
.emblem-panel {
  background: linear-gradient(160deg, rgba(255,255,255,0.035), transparent 45%), var(--charcoal);
  border: 1px solid var(--hairline);
  padding: 3.5rem 2.5rem;
  text-align: center;
}
.emblem-panel .icon {
  color: var(--gold);
  width: 74px; height: 74px;
  margin: 0 auto 1.5rem;
}
.emblem-panel .icon svg { width: 100%; height: 100%; }
.emblem-panel blockquote {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.3rem;
  color: var(--white);
  margin: 0;
}
.emblem-panel cite {
  display: block;
  margin-top: 1.2rem;
  font-style: normal;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

/* ---- Divider ---- */
.gold-rule {
  width: 64px; height: 2px;
  background: var(--gold-grad);
  margin: 0 auto 1.5rem;
}
.gold-rule.left { margin: 0 0 1.5rem; }

/* ---- Stats bar ---- */
.stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: center;
}
.stats .stat .num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.5rem;
  display: block;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats .stat .label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--grey-dim);
}
.stats .stat .num.num--plain {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--white);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
}

/* ---- Service areas ---- */
.area-list {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.area-pill {
  border: 1px solid var(--hairline);
  background: rgba(201,169,76,0.05);
  padding: 0.7rem 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--gold);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.area-pill:hover { background: rgba(201,169,76,0.12); border-color: var(--gold); }

/* ---- CTA banner ---- */
.cta-banner {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 60%), var(--charcoal);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 4.5rem 0;
  text-align: center;
}

/* ---- Values list (About) ---- */
.values-list { list-style: none; padding: 0; margin: 0; }
.values-list li {
  border-bottom: 1px solid var(--hairline);
  padding: 1.6rem 0;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
}
.values-list li:first-child { border-top: 1px solid var(--hairline); }
.values-list .v-name {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  font-size: 1.15rem;
}
@media (max-width: 640px) {
  .values-list li { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* ---- Contact page ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.03), transparent 40%), var(--charcoal);
  border: 1px solid var(--hairline);
  padding: 2.6rem;
}
.contact-card .rep-name { font-family: var(--font-head); text-transform: uppercase; font-weight: 700; font-size: 1.5rem; color: var(--white); }
.contact-card .rep-title { color: var(--gold); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; margin-bottom: 1.6rem; display: block; }
.contact-line {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.9rem 0;
  border-top: 1px solid var(--hairline);
}
.contact-line:first-of-type { border-top: none; }
.contact-line .l-label { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.7rem; color: var(--grey-dim); display: block; }
.contact-line .l-value { color: var(--white); font-size: 1.05rem; }
.contact-line a.l-value:hover { color: var(--gold); }

/* ---- Form ---- */
form.inquiry-form {
  background: linear-gradient(160deg, rgba(255,255,255,0.03), transparent 40%), var(--charcoal);
  border: 1px solid var(--hairline);
  padding: 2.6rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 1.3rem; }
.field label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--grey-dim);
  margin-bottom: 0.5rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--black-soft);
  border: 1px solid var(--hairline);
  color: var(--white);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 130px; }

.checkbox-row { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 1.5rem; }
.checkbox-row input { width: auto; margin-top: 4px; }
.checkbox-row label { text-transform: none; font-size: 0.85rem; color: var(--grey); letter-spacing: 0; }

.form-msg {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-size: 0.9rem;
  display: none;
}
.form-msg.visible { display: block; }

/* ---- Footer ---- */
footer.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 3.5rem 0 2rem;
  background: var(--black-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer-grid p, .footer-grid a { font-size: 0.9rem; color: var(--grey); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 0.6rem; }
.footer-grid ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--grey-dim);
  letter-spacing: 0.04em;
}

/* utility */
.mb-0 { margin-bottom: 0; }
.text-gold { color: var(--gold); }
