/* ═══════════════════════════════════════════════════════════
   NORTHMARK — Core Stylesheet
   Dark professional theme. Precision. Standards. Accountability.
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Jost:wght@300;400;500;600&display=swap');

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

:root {
  --primary:      #080808;
  --secondary:    #0f0f0f;
  --tertiary:     #151515;
  --accent:       #c8a96e;
  --accent-light: #dbbf89;
  --accent-dim:   #a8894e;
  --text-primary: #f2ede5;
  --text-secondary: #c8c2b8;
  --text-muted:   #8a847c;
  --border:       rgba(200, 169, 110, 0.15);
  --border-light: rgba(255, 255, 255, 0.05);
  --surface:      rgba(255, 255, 255, 0.03);
  --surface-hover:rgba(255, 255, 255, 0.055);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--primary);
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 { font-size: clamp(2.75rem, 5vw, 5rem); }
h2 { font-size: clamp(1.875rem, 3.5vw, 3rem); }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p { margin-bottom: 16px; color: var(--text-secondary); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-light); }

strong { color: var(--text-primary); font-weight: 600; }

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(8, 8, 8, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 68px;
  display: flex; align-items: center;
  padding: 0 48px;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-logo span {
  color: var(--accent);
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--primary) !important;
  padding: 9px 20px !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--accent-light) !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
  background: none; border: none;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text-secondary);
  transition: all 0.3s;
}

/* ── Page wrapper ── */
.page { padding-top: 68px; }

/* ── Sections ── */
section { padding: 100px 48px; }
.section-inner { max-width: 1160px; margin: 0 auto; }

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  margin-bottom: 20px;
}

.section-title em {
  font-style: italic;
  color: var(--text-muted);
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 56px;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent);
  color: var(--primary);
  padding: 14px 28px;
  border-radius: 4px;
  font-family: 'Jost', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  border: none; cursor: pointer;
}
.btn-primary:hover {
  background: var(--accent-light);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--text-primary);
  padding: 13px 27px;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-family: 'Jost', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: gap 0.2s, color 0.2s;
}
.btn-ghost:hover { gap: 10px; color: var(--accent-light); }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 32px;
  transition: border-color 0.2s, background 0.2s;
}
.card:hover {
  border-color: rgba(200, 169, 110, 0.2);
  background: var(--surface-hover);
}

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 0;
}

/* ── Ticker ── */
.ticker {
  background: var(--secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 0 36px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ticker-dot {
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── FAQ accordion ── */
.faq-item {
  border-bottom: 1px solid var(--border-light);
}
.faq-question {
  width: 100%; background: none; border: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
  font-family: 'Jost', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  gap: 16px;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s;
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 0 20px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 720px;
}
.faq-item.open .faq-answer { display: block; }

/* ── Footer ── */
footer {
  background: var(--secondary);
  border-top: 1px solid var(--border-light);
  padding: 64px 48px 40px;
}
.footer-inner { max-width: 1160px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 32px;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: block;
}
.footer-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 24px;
}
.footer-col h4 {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-legal {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 620px;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: 100px 48px 72px;
  background: var(--secondary);
  border-bottom: 1px solid var(--border-light);
}
.page-hero-inner { max-width: 1160px; margin: 0 auto; }
.page-hero h1 { margin-bottom: 20px; }
.page-hero p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.75;
}

/* ── Proof/stat blocks ── */
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.04em;
}

/* ── Checklist ── */
.checklist { list-style: none; padding: 0; }
.checklist li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.6;
}
.checklist li::before {
  content: '—';
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Service detail list ── */
.service-list { list-style: none; padding: 0; }
.service-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  display: flex; align-items: flex-start; gap: 14px;
  line-height: 1.6;
}
.service-list li::before {
  content: '→';
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.875rem;
}
.service-list li:last-child { border-bottom: none; }
.service-list li strong { color: var(--text-primary); display: block; margin-bottom: 2px; }

/* ── Highlight box ── */
.highlight-box {
  background: rgba(200, 169, 110, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.highlight-box p { font-size: 0.9375rem; margin: 0; }

/* ── CTA section ── */
.cta-section {
  background: var(--tertiary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 80px 48px;
  text-align: center;
}
.cta-section h2 { margin-bottom: 16px; }
.cta-section p { margin: 0 auto 32px; max-width: 500px; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
    background: rgba(8,8,8,0.98);
    padding: 40px 24px;
    gap: 20px; z-index: 99;
    align-items: flex-start;
  }
  .nav-links.open a { font-size: 1.125rem; }
  .nav-toggle { display: flex; }
  section { padding: 72px 24px; }
  .page-hero { padding: 80px 24px 56px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  footer { padding: 48px 24px 32px; }
  .cta-section { padding: 60px 24px; }
}

@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
