/* InMapz v6 — Shared chrome (design tokens, nav, footer)
   Extracted from the v6 design system. Used by Newsroom & Contact templates.
   The six solution/platform templates carry their own full inline CSS. */

/* ---- Tokens, reset, base ---- */
:root {
  --ink: #0a0a0a;
  --paper: #f5f1e8;
  --paper-2: #ebe5d4;
  --blueprint: #1e4d7b;
  --blueprint-deep: #0d2c4a;
  --blueprint-line: rgba(30, 77, 123, 0.18);
  --burgundy: #7a1820;
  --burgundy-deep: #5a1118;
  --burgundy-bright: #9b2530;
  --burgundy-light: #e8a4a8;
  --burgundy-light-2: #f0b8bc;
  --accent: #7a1820;
  --accent-2: #5a1118;
  --accent-on-dark: #e8a4a8;
  --accent-on-dark-strong: #f0b8bc;
  --accent-glow: rgba(122, 24, 32, 0.5);
  --accent-soft: rgba(122, 24, 32, 0.08);
  --success: #15803d;
  --muted: #6b7280;
  --rule: rgba(10, 10, 10, 0.12);
  --rule-strong: rgba(10, 10, 10, 0.5);
  --display: 'Fraunces', Georgia, serif;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'ss02';
}

/* Blueprint grid background — subtle, contextual */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

main, header, footer { position: relative; z-index: 1; }

/* ============ HEADER ============ */

/* ---- Header / Nav ---- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 241, 232, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}

nav {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

.dropdown { position: relative; }
.dropdown > a::after {
  content: '↓';
  font-family: var(--mono);
  font-size: 0.75rem;
  margin-left: 0.3rem;
  opacity: 0.5;
}
.submenu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: -1rem;
  min-width: 240px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.5rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
  box-shadow: 0 10px 40px rgba(10, 10, 10, 0.08);
}
.dropdown:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu a {
  display: block;
  padding: 0.6rem 0.9rem;
  font-size: 0.88rem;
  border-radius: 6px;
}
.submenu a:hover { background: var(--paper-2); }

.nav-cta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(122, 24, 32, 0.35);
}

.btn-accent {
  background: var(--accent);
  color: white;
}
.btn-accent:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}

.btn-arrow::after {
  content: '→';
  transition: transform 0.2s;
}
.btn:hover .btn-arrow::after,
.btn-arrow:hover::after { transform: translateX(3px); }

/* ============ HERO ============ */

/* ---- Footer ---- */
footer {
  background: var(--paper-2);
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--rule);
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 3fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--rule);
}

.footer-brand .brand { margin-bottom: 1rem; }

.footer-tagline {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 320px;
  margin-bottom: 1.5rem;
}

.footer-contact {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
}
.footer-contact strong { color: var(--ink); font-weight: 500; display: block; margin-top: 0.5rem; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============ TESTIMONIALS ============ */

/* ---- Responsive (nav + footer) ---- */
@media (max-width: 1024px) { .footer-top { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  nav { padding: 0.85rem 1.25rem; gap: 1rem; }
  .nav-links { display: none; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Section scaffold ---- */
.section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-tag {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  max-width: 800px;
}
.section-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}

.section-lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 3rem;
}

/* ============ PROBLEM → SOLUTION ============ */

/* ---- Eyebrow ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blueprint);
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--blueprint-line);
  border-radius: 100px;
  background: rgba(30, 77, 123, 0.04);
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

/* ---- CTA card ---- */
.cta-final {
  padding: 7rem 2rem;
}

.cta-card {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--paper);
  border-radius: 24px;
  padding: 5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(122, 24, 32, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(30, 77, 123, 0.22) 0%, transparent 50%);
}

.cta-card > * { position: relative; z-index: 2; }

.cta-card h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.cta-card h2 em { font-style: italic; color: var(--accent-on-dark); font-weight: 300; }

.cta-card .section-tag::before { background: var(--accent-on-dark); }

.cta-card p {
  font-size: 1.15rem;
  color: rgba(245, 241, 232, 0.7);
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

.cta-card .hero-cta { justify-content: center; }

.cta-meta {
  margin-top: 2rem;
  display: flex;
  gap: 2rem;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: rgba(245, 241, 232, 0.55);
  flex-wrap: wrap;
}
.hero-cta { display:flex; gap:0.8rem; flex-wrap:wrap; }

/* ---- Keyframes ---- */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
