/* =========================================================
   Concierge Security Investigations
   Redesign — "Refined & Premium" direction
   Warm near-black + cream + brass gold (from the CSI logo)
   Type: Fraunces (display serif) · Hanken Grotesk (body)
   ========================================================= */

:root {
  /* Cool graphite neutrals — never pure black/white */
  --ink:      #131417;   /* base background */
  --ink-2:    #1a1c20;   /* alternating sections */
  --ink-3:    #22252b;   /* cards, inputs */
  --cream:    #f2f0ec;   /* primary text (cool off-white) */
  --cream-2:  #b9bdc5;   /* secondary text (cool grey, a shade of the base) */
  --gold:     #c9a24b;   /* brass accent, from logo */
  --gold-2:   #ddb96a;   /* accent hover / highlight */
  --line:     rgba(242, 240, 236, 0.12);
  --line-2:   rgba(242, 240, 236, 0.22);

  --maxw: 1200px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1); /* ease-out-quint-ish */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--gold-2); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--cream); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
  font-optical-sizing: auto;
}

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 2rem; height: 1px;
  background: var(--gold);
  display: inline-block;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--cream); color: var(--ink);
  padding: 0.6rem 1rem; z-index: 300; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.6rem; border-radius: 2px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: #14161a; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-2); border-color: var(--gold-2); color: #14161a; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 78px;
}
.brand { display: flex; align-items: center; gap: 0.75rem; margin-right: auto; }
.brand img { width: 44px; height: 44px; }
.brand .brand-name {
  font-family: var(--font-display); font-weight: 500; font-size: 1.05rem;
  color: var(--cream); line-height: 1.05; letter-spacing: -0.01em;
  max-width: 15ch;
}
.main-nav ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  color: var(--cream-2); font-weight: 500; font-size: 0.95rem;
  letter-spacing: 0.02em; position: relative; padding-block: 0.35rem;
}
.main-nav a:hover { color: var(--cream); }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width 0.25s var(--ease);
}
.main-nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-phone { color: var(--cream); font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.header-phone:hover { color: var(--gold-2); }

.nav-toggle {
  display: none; background: none; border: 0; color: var(--cream);
  font-size: 1.6rem; cursor: pointer; padding: 0.25rem 0.4rem; line-height: 1;
}

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ink) 55%, transparent) 0%, color-mix(in srgb, var(--ink) 30%, transparent) 40%, var(--ink) 100%),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 92%, transparent) 0%, color-mix(in srgb, var(--ink) 55%, transparent) 55%, transparent 100%);
}
.hero .wrap {
  min-height: min(88vh, 780px);
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(5rem, 12vh, 9rem);
  max-width: 1080px;
}
.hero-inner { max-width: 44rem; }
.hero h1 {
  font-size: clamp(2.9rem, 7vw, 5.75rem);
  line-height: 0.98;
  margin: 0 0 1.4rem;
}
.hero h1 em {
  font-style: italic; color: var(--gold-2); font-weight: 400;
}
.hero .lead {
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  color: var(--cream-2); max-width: 40rem; margin: 0 0 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* Trust strip */
.trust {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}
.trust .wrap {
  display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; align-items: center;
  padding-block: 1.15rem;
}
.trust span {
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream-2); font-weight: 600; display: inline-flex; align-items: center; gap: 0.7rem;
}
.trust span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* =========================================================
   Section scaffolding — varied rhythm
   ========================================================= */
section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-alt { background: var(--ink-2); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2.1rem, 4.5vw, 3.5rem); margin-bottom: 1rem; }
.section-head p { color: var(--cream-2); font-size: 1.1rem; max-width: 42rem; }

/* -------- Services (editorial split + list) -------- */
.services-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
.services-list { list-style: none; margin: 0; padding: 0; }
.services-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem;
  padding: 1.35rem 0; border-top: 1px solid var(--line);
}
.services-list li:last-child { border-bottom: 1px solid var(--line); }
.services-list .num {
  font-family: var(--font-display); font-size: 1.05rem; color: var(--gold);
  font-weight: 500; padding-top: 0.15rem; font-variant-numeric: tabular-nums;
}
.services-list h3 { font-size: 1.4rem; font-weight: 500; margin-bottom: 0.3rem; }
.services-list p { margin: 0; color: var(--cream-2); font-size: 1rem; }
.services-copy p { color: var(--cream-2); }
.services-copy p + p { margin-top: 1.1rem; }

/* -------- Feature rows (Coverage, Why Us) -------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.feature.reverse .feature-media { order: 2; }
.feature h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); margin-bottom: 1.2rem; }
.feature p { color: var(--cream-2); }
.feature p + p { margin-top: 1rem; }
.feature-media { position: relative; }
.feature-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
}
.feature-media::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px var(--line);
  pointer-events: none;
}

/* Coverage area chips */
.areas { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.areas li {
  list-style: none;
  border: 1px solid var(--line-2); color: var(--cream);
  padding: 0.45rem 1rem; font-size: 0.9rem; font-weight: 500;
  border-radius: 2px;
}
.areas li.more { border-color: transparent; color: var(--cream-2); font-style: italic; }

/* Why-us value points */
.values { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1.4rem; }
.values li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; }
.values .mark {
  color: var(--gold); font-family: var(--font-display); font-size: 1.2rem; line-height: 1.3;
}
.values h3 { font-size: 1.2rem; font-weight: 500; margin-bottom: 0.15rem; }
.values p { margin: 0; color: var(--cream-2); font-size: 0.98rem; }

/* Pull quote */
.pull {
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; color: var(--cream);
  border-left: 2px solid var(--gold); padding-left: 1.4rem; margin: 0 0 1.6rem;
}

/* =========================================================
   Contact
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0; align-items: stretch; }
.contact-media { position: relative; }
.contact-media img { width: 100%; height: 100%; object-fit: cover; min-height: 460px; }
.contact-panel { background: var(--ink-3); padding: clamp(2rem, 4vw, 3.5rem); }
.contact-panel h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.6rem; }
.contact-panel .sub { color: var(--cream-2); margin: 0 0 2rem; }
.contact-direct { display: flex; flex-wrap: wrap; gap: 0.4rem 1.75rem; margin: 0 0 2rem; }
.contact-direct a { color: var(--cream); font-weight: 600; }
.contact-direct a:hover { color: var(--gold-2); }
.contact-direct .lbl { color: var(--cream-2); font-weight: 400; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; display: block; margin-bottom: 0.1rem; }

.contact-form { display: grid; gap: 1.15rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.85rem; letter-spacing: 0.02em; color: var(--cream); }
.field label .req { color: var(--gold); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--cream);
  background: color-mix(in srgb, var(--cream) 5%, transparent);
  border: 1px solid var(--line-2); border-radius: 2px;
  padding: 0.75rem 0.9rem; width: 100%; transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--cream) 35%, transparent); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  background: color-mix(in srgb, var(--cream) 8%, transparent);
}
.field textarea { resize: vertical; min-height: 120px; }
.contact-form .btn-primary { justify-self: start; margin-top: 0.3rem; padding-inline: 2.2rem; }

.hp { position: absolute; left: -5000px; opacity: 0; height: 0; overflow: hidden; }
.form-status { font-weight: 500; min-height: 1.2em; font-size: 0.95rem; }
.form-status.success { color: #8fd6a0; }
.form-status.error { color: #ff9b8b; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--ink); border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 1rem; max-width: 24rem; }
.footer-brand img { width: 60px; height: 60px; }
.footer-brand .fb-name { font-family: var(--font-display); font-size: 1.15rem; color: var(--cream); line-height: 1.1; }
.footer-brand .fb-name span { display: block; color: var(--cream-2); font-family: var(--font-body); font-size: 0.85rem; margin-top: 0.35rem; letter-spacing: 0.04em; }
.footer-cols { display: flex; gap: clamp(2rem, 6vw, 5rem); flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 0 0 1rem; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-col a, .footer-col li { color: var(--cream-2); font-size: 0.95rem; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
  color: var(--cream-2); font-size: 0.85rem;
}

/* =========================================================
   Reveal on scroll / load
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero-inner > * { opacity: 0; transform: translateY(20px); animation: rise 0.8s var(--ease) forwards; }
.hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.18s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.31s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.44s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .feature, .feature.reverse { grid-template-columns: 1fr; }
  .feature.reverse .feature-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-media { min-height: 260px; }
  .contact-media img { min-height: 260px; }
}

@media (max-width: 760px) {
  .brand .brand-name { display: none; }
  .main-nav, .header-phone { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-header .wrap { gap: 0.75rem; }
  .main-nav.open {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink-2); border-bottom: 1px solid var(--line);
    padding: 1.25rem var(--pad) 1.75rem;
  }
  .main-nav.open ul { flex-direction: column; gap: 1.1rem; }
  .header-cta .btn { display: none; }
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-delay: 0 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
