/* ====================================================
   Harmony Consulting & Innovations — shared site styles
   ==================================================== */

:root {
  --paper: #f4efe6;
  --paper-2: #ede6d6;
  --rule: #d8cfba;
  --ink: #1a1916;
  --ink-2: #3a362e;
  --ink-3: #6b6557;
  --accent: #7a3a5e;
  --accent-ink: #48213a;
  --accent-soft: #d9bccb;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --maxw: 1360px;
  --gutter: 56px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--paper); }

/* ---------- primitives ---------- */
.mono {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3);
}
.mono strong { color: var(--ink); font-weight: 500; }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.container {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter);
}
.display {
  font-family: var(--serif); font-weight: 400;
  letter-spacing: -0.01em; line-height: 0.95;
}
.display em { font-style: italic; color: var(--accent-ink); }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
}
.eyebrow .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: 10px; transform: translateY(-1px);
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  border-radius: 999px;
  cursor: pointer; transition: transform .15s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn .arrow { width: 14px; height: 14px; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- utility bar ---------- */
.utility {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3);
}
.utility .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gutter);
  max-width: var(--maxw); margin: 0 auto;
}
.utility .left, .utility .right { display: flex; align-items: center; gap: 18px; }
.utility a { padding: 6px 2px; }
.utility a:hover { color: var(--ink); }
.utility .sep { width: 1px; height: 12px; background: var(--rule); }
.pulse {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #5ea36a; margin-right: 8px; transform: translateY(-1px);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(94,163,106,.6);}
  70% { box-shadow: 0 0 0 8px rgba(94,163,106,0);}
  100% { box-shadow: 0 0 0 0 rgba(94,163,106,0);}
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(244,239,230,0.88);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
.nav .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .hc-mark {
  width: 32px; height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand .text-stack { display: flex; flex-direction: column; line-height: 1; }
.brand .mark {
  font-family: var(--serif); font-style: italic; font-size: 28px;
  color: var(--ink); letter-spacing: -0.01em;
}
.brand .mark b { font-style: normal; color: var(--accent-ink); font-weight: 400; }
.brand .sub {
  font-family: var(--mono); font-size: 10px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.14em;
}
.nav ul { display: flex; gap: 32px; list-style: none; padding: 0; margin: 0; }
.nav ul a { font-size: 14px; color: var(--ink-2); padding: 8px 2px; display: inline-block; }
.nav ul a:hover, .nav ul a.active { color: var(--accent-ink); }
.nav .cta { display: flex; align-items: center; gap: 14px; }

/* ---------- mobile menu toggle + drawer (hidden on desktop) ---------- */
.nav .menu-toggle {
  display: none;
  width: 40px; height: 40px; padding: 0;
  background: transparent; border: 1px solid var(--rule);
  border-radius: 999px; cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.nav .menu-toggle span {
  display: block; width: 18px; height: 1.5px;
  background: var(--ink); border-radius: 1px;
  transition: transform .2s ease, opacity .15s ease;
}
.nav .mobile-drawer { display: none; }

/* ---------- section base ---------- */
section { padding: 96px 0; border-bottom: 1px solid var(--rule); position: relative; }
.section-head {
  display: grid; grid-template-columns: 220px 1fr 240px;
  gap: 32px; align-items: start;
  padding-bottom: 56px; border-bottom: 1px solid var(--rule);
  margin-bottom: 56px;
}
.section-head .num {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  color: var(--ink-3); text-transform: uppercase;
}
.section-head .num b { color: var(--accent-ink); font-weight: 500; }
.section-head h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1; letter-spacing: -0.015em; margin: 0;
}
.section-head h2 em { font-style: italic; color: var(--accent-ink); }
.section-head .aside {
  font-size: 14px; color: var(--ink-2); line-height: 1.55;
}
.section-head .aside .mono { display: block; margin-bottom: 8px; }

/* ---------- footer ---------- */
footer.foot {
  background: var(--ink); color: var(--paper); padding: 80px 0 40px;
  border-top: 1px solid rgba(244,239,230,0.15);
}
footer.foot .top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 56px; border-bottom: 1px solid rgba(244,239,230,0.15);
}
footer.foot .mark-row { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
footer.foot .mark-row .hc {
  width: 56px; height: auto;
  filter: brightness(0) invert(1); opacity: 0.85;
}
footer.foot .mark {
  font-family: var(--serif); font-style: italic; font-size: 56px; line-height: 0.95;
  letter-spacing: -0.015em; margin: 0;
}
footer.foot .mark b { font-style: normal; color: var(--accent-soft); font-weight: 400; }
footer.foot .tagline { font-size: 14px; color: rgba(244,239,230,0.7); max-width: 36ch; }
footer.foot h5 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(244,239,230,0.55);
  margin: 0 0 16px;
}
footer.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
footer.foot ul a { font-size: 15px; color: rgba(244,239,230,0.9); padding: 4px 0; display: inline-block; }
footer.foot ul a:hover { color: var(--accent-soft); }
footer.foot .bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(244,239,230,0.55);
}
footer.foot .bottom .right { display: flex; gap: 22px; }

/* ---------- accessibility helpers ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 12px 16px; z-index: 100;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
  outline: 2px solid var(--accent-soft);
  outline-offset: 0;
}

/* ---------- responsive baseline ---------- */
@media (max-width: 980px) {
  :root { --gutter: 24px; }
  .nav ul, .nav .cta { display: none; }
  .nav .menu-toggle { display: flex; }
  .nav .mobile-drawer {
    display: block;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s ease;
  }
  body.nav-open .nav .mobile-drawer { max-height: 80vh; }
  .nav .mobile-drawer ul {
    list-style: none; margin: 0;
    padding: 8px var(--gutter) 12px;
    display: flex; flex-direction: column; gap: 0;
  }
  .nav .mobile-drawer ul a {
    display: block; padding: 14px 0;
    font-size: 17px; color: var(--ink);
    border-bottom: 1px solid var(--rule);
  }
  .nav .mobile-drawer ul li:last-child a { border-bottom: none; }
  .nav .mobile-drawer .drawer-cta {
    padding: 8px var(--gutter) 20px;
    display: flex; flex-direction: column; gap: 8px;
  }
  .nav .mobile-drawer .drawer-cta .btn {
    width: 100%; justify-content: center;
  }
  /* hamburger → X animation when open */
  body.nav-open .nav .menu-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body.nav-open .nav .menu-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav .menu-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  body.nav-open { overflow: hidden; }

  .section-head { grid-template-columns: 1fr; gap: 16px; padding-bottom: 32px; margin-bottom: 32px; }
  footer.foot .top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  section { padding: 56px 0; }
  .utility { font-size: 10px; }
  .utility .row { padding: 10px var(--gutter); }
  .utility .left .sep, .utility .right .sep { display: none; }
  .brand .sub { display: none; }
  .brand .mark { font-size: 24px; }
  .brand .hc-mark { width: 28px; height: 28px; }
  .nav .row { padding: 14px var(--gutter); }
  footer.foot { padding: 56px 0 32px; }
  footer.foot .top { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
  footer.foot .mark { font-size: 40px; }
  footer.foot .mark-row .hc { width: 44px; }
  footer.foot .bottom {
    flex-direction: column; align-items: flex-start; gap: 12px;
    padding-top: 20px;
  }
  footer.foot .bottom .right { gap: 16px; flex-wrap: wrap; }
}
