/* ============================================================
   HIVE HR CONSULTING — Design tokens
   ============================================================ */
:root {
  --ink: #1B1B16;
  --ink-soft: #3A3A32;
  --paper: #F7F5EE;
  --paper-raised: #FFFFFF;
  --gold: #D4AF34;
  --gold-deep: #A9871F;
  --honey: #8C6A2F;
  --slate: #62615A;
  --line: #E3DFD1;
  --line-dark: #33322A;
  --dark: #1B1B16;
  --dark-raised: #24231C;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --radius: 3px;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.32rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--honey);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
}

.on-dark .eyebrow { color: var(--gold); }
.on-dark .eyebrow::before { background: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-solid {
  background: var(--ink);
  color: var(--paper);
}
.btn-solid:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--dark); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.on-dark .btn-solid { background: var(--gold); color: var(--dark); border-color: var(--gold); }
.on-dark .btn-solid:hover { background: var(--paper); border-color: var(--paper); }
.on-dark .btn-ghost { border-color: var(--paper); color: var(--paper); }
.on-dark .btn-ghost:hover { background: var(--paper); color: var(--dark); }

/* ---------- Hex signature element ---------- */
.hex-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hex-field svg { position: absolute; opacity: 0.5; }

.hex-icon {
  width: 64px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.hex-icon svg { width: 100%; height: 100%; }

.hex-frame {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--dark);
  aspect-ratio: 1 / 1.05;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 42px; width: auto; }
.brand-word {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--slate);
  text-transform: uppercase;
  border-left: 1px solid var(--line);
  padding-left: 12px;
  line-height: 1.3;
}
.brand-word strong { display: block; color: var(--ink); font-size: 0.78rem; letter-spacing: 0.1em; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
nav.main-nav a {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
nav.main-nav a:hover::after,
nav.main-nav a.active::after { transform: scaleX(1); }
nav.main-nav a.active { color: var(--ink); }

.nav-cta { display: flex; align-items: center; gap: 24px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

@media (max-width: 860px) {
  nav.main-nav {
    position: fixed;
    top: 73px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  nav.main-nav.open { max-height: 320px; }
  nav.main-nav a { padding: 16px 20px; width: 100%; border-bottom: 1px solid var(--line); }
  nav.main-nav a::after { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .brand-word { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--dark);
  color: var(--paper);
  overflow: hidden;
  padding: 108px 0 96px;
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { color: var(--paper); max-width: 16ch; }
.hero .lede { color: #C8C6B8; margin-top: 22px; }
.hero-actions { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .hero { padding: 88px 0 64px; }
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
section.tight { padding: 72px 0; }
.section-head { margin-bottom: 56px; max-width: 60ch; }
.section-head .eyebrow { margin-bottom: 18px; }

.on-dark { background: var(--dark); color: var(--paper); }
.on-dark h2, .on-dark h3 { color: var(--paper); }
.on-dark p { color: #C8C6B8; }
.on-dark .line-top { border-color: var(--line-dark); }

.paper-raised { background: var(--paper-raised); }

.line-top { border-top: 1px solid var(--line); }
.line-bottom { border-bottom: 1px solid var(--line); }

/* ---------- Pillars (home highlight blocks) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.pillar {
  background: var(--paper-raised);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pillar .hex-icon svg path,
.pillar .hex-icon svg rect,
.pillar .hex-icon svg polygon { fill: var(--gold); }
.pillar h3 { margin-top: 4px; }
.pillar a.more {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--honey);
  margin-top: auto;
  padding-top: 8px;
}
.pillar a.more:hover { color: var(--gold-deep); }

@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ---------- Intro strip ---------- */
.intro-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 780px) {
  .intro-strip { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Testimonial ---------- */
.testimonial {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.testimonial blockquote {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 28px;
  color: var(--ink);
}
.on-dark .testimonial blockquote { color: var(--paper); }
.testimonial cite {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--honey);
  font-style: normal;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gold);
  color: var(--dark);
  padding: 72px 0;
}
.cta-band .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--dark); max-width: 20ch; }
.cta-band .btn-solid { background: var(--dark); color: var(--paper); border-color: var(--dark); }
.cta-band .btn-solid:hover { background: var(--paper); color: var(--dark); border-color: var(--paper); }

/* ---------- Tiers (services page) ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 940px) {
  .tiers { grid-template-columns: 1fr; }
}
.tier {
  border: 1px solid var(--line);
  background: var(--paper-raised);
  padding: 40px 32px;
  position: relative;
}
.tier .tier-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--honey);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  display: block;
}
.tier h3 { margin-bottom: 6px; }
.tier .tier-sub { color: var(--slate); font-size: 0.92rem; margin-bottom: 22px; }
.tier ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tier li {
  padding-left: 22px;
  position: relative;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.tier li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 8px; height: 8px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.tier.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.tier.featured .tier-num { color: var(--gold-deep); }

/* ---------- Adhoc services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 780px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-item {
  background: var(--paper-raised);
  padding: 36px 40px;
}
.service-item h3 { margin-bottom: 10px; font-size: 1.15rem; }
.service-item p { font-size: 0.95rem; }

/* ---------- About page ---------- */
.about-lead {
  max-width: 68ch;
}
.about-lead p { font-size: 1.08rem; }

.why-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 860px) {
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
}

.stat-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 28px;
}
.stat {
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-top: 1px solid var(--line-dark);
  padding-top: 18px;
}
.stat .num {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--gold);
  flex-shrink: 0;
  min-width: 90px;
}
.stat .label { font-size: 0.9rem; color: #C8C6B8; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 32px;
}
.contact-detail .item {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.contact-detail .item .k {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--honey);
  display: block;
  margin-bottom: 6px;
}
.contact-detail .item .v { font-size: 1.05rem; }
.contact-detail .item .v a:hover { color: var(--honey); }

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}
.field input, .field textarea, .field select {
  font-family: var(--sans);
  font-size: 0.98rem;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  border-radius: var(--radius);
  color: var(--ink);
  resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
form.contact-form button {
  align-self: flex-start;
  margin-top: 6px;
  cursor: pointer;
}

.note-box {
  background: #FBF3DC;
  border: 1px solid var(--gold);
  padding: 16px 18px;
  font-size: 0.85rem;
  color: var(--honey);
  border-radius: var(--radius);
  margin-top: 24px;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--dark);
  color: #B7B5A6;
  padding: 64px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { height: 40px; }
.footer-brand span {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-nav { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-nav a {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #B7B5A6;
}
.footer-nav a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 0.78rem;
}
.footer-bottom a:hover { color: var(--gold); }

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
