/* ==========================================================================
   Mountain Detection & Security — stylesheet
   Palette: near-black slate background, steel blue accent, muted gold nod
   to the MDS logo used sparingly for icon badges + dividers.
   ========================================================================== */

:root {
  --bg: #0a0e14;
  --bg-alt: #0d1219;
  --surface: #12161d;
  --surface-2: #171c25;
  --border: #232a36;
  --border-strong: #2f3946;
  --text: #f2f4f7;
  --text-muted: #9aa3b0;
  --text-dim: #6b7480;
  --blue: #4f9cf0;
  --blue-dark: #2f6dc4;
  --gold: #d4af6a;
  --radius: 10px;
  --wrap: 1180px;
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Fixed, faded background image with slow-scroll parallax ---------- */
.bg-parallax {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-parallax-img {
  position: absolute;
  top: -18%;
  left: 0;
  width: 100%;
  height: 136%;
  background:
    linear-gradient(rgba(10, 14, 20, 0.86), rgba(10, 14, 20, 0.86)),
    url("../img/hero-background.jpg") center center / cover no-repeat;
  will-change: transform;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; margin-bottom: 8px; }

p { margin: 0 0 16px; color: var(--text-muted); }

.section { padding: 88px 0; }
.section-title { max-width: 640px; }
.section-lead { max-width: 640px; margin-bottom: 32px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow-rule { width: 28px; height: 2px; background: var(--blue); display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #06101c; }
.btn-primary:hover { background: #6bacf3; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--blue); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 20, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-mark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--text);
}
.brand-name {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
  display: none;
}
@media (min-width: 720px) { .brand-name { display: inline; } }

.main-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: var(--blue); border-bottom-color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--text); }

@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 400px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 20px; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 64px;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { margin-bottom: 22px; }
.accent { color: var(--blue); }
.hero-sub { font-size: 1.05rem; max-width: 480px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art { display: flex; justify-content: center; }
.mountain-svg { width: 100%; max-width: 460px; }
.m-back { fill: #182130; }
.m-front { fill: #202b3c; }
.node { fill: var(--blue); }
.node-line { stroke: var(--blue); stroke-width: 1; opacity: 0.5; }

.trust-bar { border-top: 1px solid var(--border); background: var(--bg-alt); }
.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  padding: 20px 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.trust-bar-inner span { display: flex; align-items: center; gap: 8px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); display: inline-block; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: 80px 0 56px; border-bottom: 1px solid var(--border); }
.page-hero h1 { max-width: 680px; }
.page-hero .hero-sub { max-width: 620px; }

/* ---------- Service pills ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 14px; }
.pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pill:hover { border-color: var(--blue); background: var(--surface-2); }
.pill-icon { font-size: 1.1rem; }
.chev { color: var(--blue); margin-left: 4px; }

/* ---------- Service detail rows ---------- */
.service-detail { border-top: 1px solid var(--border); }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: center;
}
.service-detail.reverse .detail-grid { grid-template-columns: 1.3fr 1fr; }
@media (max-width: 860px) {
  .detail-grid, .service-detail.reverse .detail-grid { grid-template-columns: 1fr; }
  .service-detail.reverse .detail-art { order: -1; }
}
.detail-art { display: flex; justify-content: center; }
.icon-badge {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}
.icon-badge.lg { width: 140px; height: 140px; font-size: 3.4rem; border-radius: 22px; }
.icon-badge.sm { width: 52px; height: 52px; font-size: 1.5rem; border-radius: 12px; margin-bottom: 18px; }
.detail-copy h2 { max-width: 480px; }
.detail-copy p { max-width: 520px; }
.link-arrow { color: var(--blue); font-weight: 600; font-size: 0.92rem; }

.check-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-muted); font-size: 0.94rem; }
.check { color: var(--gold); font-weight: 700; margin-top: 1px; }

/* ---------- Feature / brand cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.feature-card p { margin: 0; font-size: 0.92rem; }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.brand-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.brand-card h3 { color: var(--gold); }
.brand-card p { font-size: 0.9rem; margin: 0; }

/* ---------- Why-us radio-style bullets ---------- */
.why-us { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 36px;
}
@media (max-width: 720px) { .why-grid { grid-template-columns: 1fr; } }
.why-item { display: flex; gap: 16px; padding: 28px; background: var(--bg-alt); }
.radio {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  margin-top: 4px;
  position: relative;
}
.radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--blue);
}
.why-item h3 { margin-bottom: 6px; font-size: 1.02rem; }
.why-item p { margin: 0; font-size: 0.92rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, #101826, #0a0e14);
  border-top: 1px solid var(--border);
  padding: 80px 0;
  text-align: center;
}
.cta-banner-inner { max-width: 560px; margin: 0 auto; }
.cta-banner h2 { margin-bottom: 12px; }
.cta-banner p { margin-bottom: 30px; }

/* ---------- Two column (about) ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 780px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.form-row { margin-bottom: 18px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--text-muted); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-note { font-size: 0.85rem; margin: 16px 0 0; }
.form-note a { color: var(--blue); font-weight: 600; }

.contact-info { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.info-card h3 { font-size: 0.95rem; margin-bottom: 6px; color: var(--gold); }
.info-card p { margin: 0; font-size: 0.92rem; }
.info-card a { color: var(--blue); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-top: 64px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand .brand-mark { font-size: 1.1rem; }
.footer-brand p { font-size: 0.88rem; margin-top: 10px; max-width: 280px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { font-size: 0.9rem; color: var(--text-muted); }
.footer-col a:hover { color: var(--blue); }
.footer-contact li { color: var(--text-muted); font-size: 0.9rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  font-size: 0.82rem;
  color: var(--text-dim);
}
