/* Tate Security Services — shared stylesheet */

:root {
  --bg: #12151A;
  --panel: #181C23;
  --panel-2: #1E232B;
  --line: #2B313B;
  --text: #EDEBE6;
  --muted: #9AA1AC;
  --accent: #C89B3C;
  --accent-dim: #8A6E2F;
  --max: 1120px;
  --gutter: 32px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Archivo", "IBM Plex Sans", sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: #fff;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--text); max-width: 62ch; }
p.muted, .muted { color: var(--muted); }

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 21, 26, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand svg { width: 30px; height: 30px; flex-shrink: 0; }

.brand-text {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: 0.01em;
}
.brand-text span { display: block; font-family: "IBM Plex Sans", sans-serif; font-weight: 400; font-size: 0.7rem; color: var(--muted); letter-spacing: 0.06em; }

nav.primary-nav { display: flex; align-items: center; gap: 34px; }

nav.primary-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.15s ease;
}
nav.primary-nav a:hover { color: var(--text); }
nav.primary-nav a.active { color: #fff; }
nav.primary-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--accent);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.phone-link {
  display: none;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
}
.phone-link .num { color: var(--accent); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1rem;
}

@media (min-width: 880px) {
  .phone-link { display: block; }
}

@media (max-width: 879px) {
  nav.primary-nav {
    display: none;
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px var(--gutter) 28px;
    gap: 18px;
  }
  nav.primary-nav.open { display: flex; }
  .menu-toggle { display: block; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-accent {
  background: var(--accent);
  color: #14171C;
}
.btn-accent:hover { background: #d9ab48; }

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: #fff; }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

/* ---------- Reticle / bracket motif ---------- */
/* The recurring visual device: corner brackets, like a viewfinder or
   surveyed perimeter marker. Used sparingly on key focal elements. */

.bracketed {
  position: relative;
  padding: 40px;
}
.bracketed::before,
.bracketed::after,
.bracketed .bl,
.bracketed .br {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--accent);
}
.bracketed::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.bracketed::after { top: 0; right: 0; border-left: none; border-bottom: none; }
.bracketed .bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.bracketed .br { bottom: 0; right: 0; border-left: none; border-top: none; }

/* ---------- Hero ---------- */

.hero {
  border-bottom: 1px solid var(--line);
  padding: 96px 0 80px;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(200,155,60,0.08), transparent 55%),
    var(--bg);
}

.hero.hero--photo {
  background:
    linear-gradient(180deg, rgba(18,21,26,0.55) 0%, rgba(18,21,26,0.94) 88%),
    radial-gradient(ellipse at 15% 0%, rgba(200,155,60,0.10), transparent 55%),
    url('images/main_page.jpg') center 30% / cover no-repeat;
}

.hero .kicker {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.hero p.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 52ch;
  margin-top: 18px;
}

/* ---------- Capability / feature strip ---------- */

.strip {
  border-bottom: 1px solid var(--line);
  padding: 64px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.feature-grid > div {
  padding: 0 28px;
  border-left: 1px solid var(--line);
}
.feature-grid > div:first-child { border-left: none; padding-left: 0; }

.feature-grid svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 16px; }
.feature-grid h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-grid p { font-size: 0.95rem; color: var(--muted); margin: 0; }

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; gap: 28px; }
  .feature-grid > div { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .feature-grid > div:first-child { border-top: none; padding-top: 0; }
}

/* ---------- Stat strip ---------- */

.stats {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 44px var(--gutter);
}
.stats .stat {
  padding: 0 24px;
  border-left: 1px solid var(--line);
}
.stats .stat:first-child { border-left: none; padding-left: 0; }
.stats .num {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 2.1rem;
  color: #fff;
}
.stats .label { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }

@media (max-width: 760px) {
  .stats .wrap { grid-template-columns: 1fr; gap: 24px 0; }
  .stats .stat { border-left: none !important; }
}

/* ---------- Section generic ---------- */

.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}
.section-head { max-width: 62ch; margin-bottom: 48px; }

/* ---------- Service rows ---------- */

.service-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.service-row:first-child { border-top: none; padding-top: 0; }
.service-row .visual {
  width: 180px;
  height: 130px;
  flex-shrink: 0;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.service-row .visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-row .body { min-width: 0; }
.service-row .num {
  font-family: "IBM Plex Mono", "IBM Plex Sans", monospace;
  color: var(--accent-dim);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 6px;
}
.service-row h3 { margin-bottom: 12px; }
.service-row p { max-width: 60ch; }

@media (max-width: 700px) {
  .service-row { grid-template-columns: 1fr; gap: 16px; }
  .service-row .visual { width: 100%; height: 180px; }
}

/* ---------- Values row (about) ---------- */

.value-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.value-row h3 { font-size: 1.1rem; }
.value-row p { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 760px) {
  .value-row { grid-template-columns: 1fr; }
}

/* ---------- Two column (about story / contact) ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ---------- CTA banner ---------- */

.cta-banner {
  padding: 72px 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--bg));
}
.cta-banner .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { margin: 0; max-width: 20ch; }

/* ---------- Contact page ---------- */

.contact-info dt {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 24px;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd {
  margin: 4px 0 0;
  font-size: 1.05rem;
  color: #fff;
  font-weight: 500;
}

form.quote-form { display: flex; flex-direction: column; gap: 18px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.88rem; color: var(--muted); }
.field input,
.field select,
.field textarea {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 3px;
  font-family: inherit;
  font-size: 0.98rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 110px; }

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

.form-success {
  display: none;
  border: 1px solid var(--accent-dim);
  background: rgba(200,155,60,0.08);
  padding: 18px 20px;
  border-radius: 4px;
  margin-top: 18px;
  color: var(--text);
}
.form-success.visible { display: block; }

/* ---------- Footer ---------- */

footer.site-footer {
  padding: 56px 0 40px;
}
footer.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
footer.site-footer h4 {
  color: var(--muted);
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
footer.site-footer ul { list-style: none; margin: 0; padding: 0; }
footer.site-footer li { margin-bottom: 10px; }
footer.site-footer a { text-decoration: none; color: var(--muted); font-size: 0.92rem; }
footer.site-footer a:hover { color: var(--text); }
footer .foot-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 760px) {
  footer.site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
