/* ========================================
   WESTMARK CONSULT — Design Tokens
   Palette:
     --ink:    #221F26  (deep charcoal-plum, dark sections + text)
     --ink-soft: #5C566A
     --paper:  #F7F5F2  (warm light background)
     --plum:   #7A2E4D  (primary accent — buttons, highlights)
     --plum-deep: #5C2239
     --line:   #E5E1DA
   Type:
     Display — Playfair Display (elegant serif)
     Body    — Inter
     Utility — IBM Plex Mono
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap');

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

:root {
  --ink: #221F26;
  --ink-soft: #5C566A;
  --paper: #F7F5F2;
  --plum: #7A2E4D;
  --plum-deep: #5C2239;
  --line: #E5E1DA;
  --card: #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.18;
}

.on-dark, .on-dark h1, .on-dark h2, .on-dark h3 { color: #ffffff; }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--plum);
}
.on-dark .eyebrow { color: #D89FB4; }

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* ===== COMPASS MOTIF (signature element — "Westmark" = waypoint) ===== */
.compass-bg { position: relative; overflow: hidden; }
.compass-bg::before {
  content: "";
  position: absolute;
  top: 50%; right: -140px;
  transform: translateY(-50%) rotate(20deg);
  width: 380px; height: 380px;
  border: 1px solid rgba(122,46,77,0.14);
  border-radius: 50%;
  pointer-events: none;
}
.compass-bg::after {
  content: "";
  position: absolute;
  top: 50%; right: -140px;
  transform: translateY(-50%) rotate(20deg);
  width: 2px; height: 380px;
  background: linear-gradient(180deg, transparent 0%, rgba(122,46,77,0.18) 50%, transparent 100%);
  pointer-events: none;
}

/* ===== NAV ===== */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; position: relative; z-index: 50; }
.nav-logo { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; align-items: center; gap: 36px; font-size: 0.92rem; font-weight: 500; }
.nav-links a { color: var(--ink-soft); transition: color 0.15s ease; }
.on-dark .nav-links a { color: #C9C2D1; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.on-dark .nav-links a:hover, .on-dark .nav-links a.active { color: #ffffff; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }
.on-dark .mobile-toggle span { background: #ffffff; }

.mobile-panel { display: none; flex-direction: column; gap: 18px; padding: 20px 0 28px 0; border-top: 1px solid var(--line); }
.on-dark .mobile-panel { border-top-color: rgba(255,255,255,0.15); }
.mobile-panel.open { display: flex; }
.mobile-panel a { font-size: 1rem; font-weight: 500; color: var(--ink); }
.on-dark .mobile-panel a { color: #ffffff; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 3px; font-weight: 600; font-size: 0.92rem; cursor: pointer; border: none; transition: transform 0.15s ease, background 0.15s ease; }
.btn-primary { background: var(--plum); color: #ffffff; }
.btn-primary:hover { background: var(--plum-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.on-dark .btn-ghost { color: #ffffff; border-color: rgba(255,255,255,0.3); }
.on-dark .btn-ghost:hover { border-color: #ffffff; }

section { padding: 90px 0; }
section.tight { padding: 56px 0; }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: 2.15rem; margin-top: 10px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin-top: 14px; }
.on-dark .section-head p { color: #C9C2D1; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 30px; }

footer { border-top: 1px solid var(--line); padding: 48px 0; margin-top: 40px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-links { display: flex; gap: 28px; font-size: 0.88rem; color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-family: 'IBM Plex Mono', monospace; font-size: 0.74rem; color: var(--ink-soft); }

@media (max-width: 780px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  #navCta { display: none; }
  .section-head h2 { font-size: 1.6rem; }
  section { padding: 56px 0; }
  .compass-bg::before, .compass-bg::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }
