/* =========================================================
   MAKOR HOLDINGS — design tokens
   Concept: a drafting table / blueprint. Deep ink-navy panels,
   brass ink for the warm accent, a muted teal for the cool
   accent (blueprint-line colour), and a warm paper tone for
   light sections. Hairline borders + corner registration marks
   stand in for cards; no drop shadows.
   ========================================================= */

:root {
  --ink:        #0F1320;   /* base background */
  --ink-panel:  #171C2C;   /* raised panel on ink */
  --ink-line:   #2B3350;   /* hairline borders on ink */
  --paper:      #EFE9DA;   /* warm paper — light sections */
  --paper-panel:#E4DCC8;
  --paper-line: #C9BFA4;
  --brass:      #C9A24B;   /* warm accent — ink on ink */
  --brass-dim:  #8A7038;
  --teal:       #6FA8AE;   /* cool accent — blueprint line */
  --text-lo:    #F4F0E4;   /* light text on ink */
  --text-lo-mute: #A9AFC4;
  --text-hi:    #1B1E2A;   /* dark text on paper */
  --text-hi-mute:#5B5646;
  --radius: 3px;
  --max: 1180px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text-lo);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  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.35rem; }

p { margin: 0 0 1em; max-width: 62ch; }
.on-paper p, .on-paper li { color: var(--text-hi-mute); }

.lede {
  font-size: 1.15rem;
  color: var(--text-lo-mute);
  max-width: 46ch;
}

.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }
.section--paper { background: var(--paper); color: var(--text-hi); }
.section--panel { background: var(--ink-panel); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--ink-line);
  padding-bottom: 28px;
}
.section--paper .section-head { border-bottom-color: var(--paper-line); }
.section-head h2 { margin-bottom: 0.2em; }
.section-head .lede { margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--brass {
  background: var(--brass);
  color: #1A1405;
}
.btn--brass:hover { background: #DBB35C; }
.btn--outline {
  background: transparent;
  border-color: var(--ink-line);
  color: var(--text-lo);
}
.btn--outline:hover { border-color: var(--brass); color: var(--brass); }
.section--paper .btn--outline { border-color: var(--paper-line); color: var(--text-hi); }
.section--paper .btn--outline:hover { border-color: var(--brass-dim); color: var(--brass-dim); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 19, 32, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ink-line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-lo);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.brand .mark { color: var(--brass); }
.main-nav ul {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-size: 0.96rem;
  color: var(--text-lo-mute);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover { color: var(--text-lo); }
.main-nav a.active { color: var(--text-lo); border-bottom-color: var(--brass); }
.header-cta { display: flex; align-items: center; gap: 24px; }
.header-cta .btn { padding: 10px 20px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  width: 42px;
  height: 42px;
  color: var(--text-lo);
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  .site-header .wrap { height: 66px; }
  .brand { font-size: 1.08rem; white-space: nowrap; }
  .main-nav {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--ink-panel);
    border-bottom: 1px solid var(--ink-line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 400px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 20px 12px; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--ink-line); }
  .header-cta { gap: 8px; }
  .header-cta .btn--outline { display: none; }
  .header-cta .btn--brass { padding: 9px 13px; font-size: 0.82rem; white-space: nowrap; }
  .nav-toggle { display: block; flex-shrink: 0; }
}

@media (max-width: 360px) {
  .header-cta .btn--brass { padding: 8px 10px; font-size: 0.78rem; }
}

/* ---------- hero ---------- */
.hero {
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* blueprint grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--ink-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.28;
  mask-image: radial-gradient(ellipse at top right, black 10%, transparent 68%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy .kicker {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--teal);
  margin-bottom: 18px;
  display: block;
}
.hero-copy h1 { max-width: 13ch; }
.hero-copy .lede { margin-top: 18px; margin-bottom: 34px; }
.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--ink-line);
}
.hero-stats div strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--brass);
}
.hero-stats div span {
  font-size: 0.86rem;
  color: var(--text-lo-mute);
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-diagram { order: -1; max-width: 340px; margin: 0 auto; }
}

/* ---------- services (homepage) ---------- */
.service-list { display: flex; flex-direction: column; }
.service-row {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 32px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--ink-line);
}
.service-row:first-child { border-top: 1px solid var(--ink-line); }
.service-row .num { font-family: var(--mono); color: var(--teal); font-size: 0.9rem; padding-top: 6px; }
.service-row h3 { margin-bottom: 10px; }
.service-row .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text-lo-mute);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 4px 9px;
}
.service-row .go {
  align-self: center;
  font-size: 0.9rem;
  color: var(--brass);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
}
.service-row:hover .go { border-bottom-color: var(--brass); }

@media (max-width: 700px) {
  .service-row { grid-template-columns: 1fr; gap: 12px; }
  .service-row .go { justify-self: start; }
}

/* ---------- process (real sequence — numbering earned) ---------- */
.process-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.process-rail::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: var(--ink-line);
}
.process-step { position: relative; padding-right: 18px; }
.process-step .dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--brass);
  color: var(--brass);
  font-family: var(--mono);
  font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}
.process-step h4 { font-family: var(--sans); font-weight: 600; font-size: 1.02rem; margin-bottom: 6px; }
.process-step p { font-size: 0.92rem; color: var(--text-lo-mute); }

@media (max-width: 860px) {
  .process-rail { grid-template-columns: 1fr; gap: 30px; }
  .process-rail::before { display: none; }
}

/* ---------- why / feature panel ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
}
.feature-item {
  background: var(--paper);
  padding: 32px 30px;
}
.feature-item h4 { font-size: 1.08rem; margin-bottom: 8px; }
.feature-item p { font-size: 0.94rem; margin: 0; }

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

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--brass);
  color: #1A1405;
  padding: 64px 0;
}
.cta-band .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #1A1405; margin-bottom: 6px; }
.cta-band p { color: #4A3B15; margin: 0; }
.cta-band .btn--brass { background: #1A1405; color: var(--paper); }
.cta-band .btn--brass:hover { background: #2A2410; }

/* ---------- package panels (blueprint spec-sheet look) ---------- */
.pkg-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.pkg-nav a {
  font-size: 0.9rem;
  padding: 10px 18px;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  color: var(--text-lo-mute);
}
.pkg-nav a:hover { color: var(--text-lo); border-color: var(--brass); }

.pkg-group { margin-bottom: 96px; scroll-margin-top: 100px; }
.pkg-group-head { margin-bottom: 36px; max-width: 62ch; }
.pkg-group-head .eyebrow-line {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
.pkg-group-head .eyebrow-line::after {
  content: ""; flex: 1; height: 1px; background: var(--ink-line);
}
.pkg-group-head .eyebrow-line span {
  font-family: var(--mono); font-size: 0.82rem; color: var(--teal);
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .tier-grid { grid-template-columns: 1fr; }
}

.tier {
  position: relative;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 34px 28px;
  background: var(--ink-panel);
  display: flex;
  flex-direction: column;
}
.tier::before, .tier::after,
.tier .corner-br, .tier .corner-bl {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--brass-dim);
}
.tier::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.tier::after { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.tier .corner-bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.tier .corner-br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.tier--featured {
  border-color: var(--brass);
  background: #1D2233;
}
.tier--featured::before, .tier--featured::after,
.tier--featured .corner-bl, .tier--featured .corner-br { border-color: var(--brass); }

.tier-flag {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--brass);
  margin-bottom: 14px;
}
.tier h4 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 6px; }
.tier .price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 6px;
}
.tier .price strong { font-family: var(--serif); font-size: 2.1rem; color: var(--text-lo); }
.tier .price span { font-size: 0.85rem; color: var(--text-lo-mute); }
.tier .desc { font-size: 0.92rem; color: var(--text-lo-mute); margin-bottom: 22px; }
.tier ul {
  list-style: none;
  margin: 0 0 26px;
  padding: 18px 0 0;
  border-top: 1px solid var(--ink-line);
  flex: 1;
}
.tier li {
  font-size: 0.9rem;
  padding: 7px 0;
  padding-left: 20px;
  position: relative;
  color: var(--text-lo-mute);
}
.tier li::before {
  content: "";
  position: absolute;
  left: 0; top: 15px;
  width: 8px; height: 1px;
  background: var(--teal);
}
.tier .btn { width: 100%; justify-content: center; }

/* ---------- about page ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.stat-strip {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding: 40px 0;
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
}
.stat-strip div strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--brass-dim);
}
.stat-strip div span { font-size: 0.86rem; color: var(--text-hi-mute); }

.value-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
}
@media (max-width: 700px) { .value-list { grid-template-columns: 1fr; } }
.value-list h4 {
  font-family: var(--sans); font-weight: 600; font-size: 1.02rem;
  border-left: 2px solid var(--brass); padding-left: 14px; margin-bottom: 6px;
}
.value-list p { font-size: 0.93rem; padding-left: 16px; }

/* ---------- contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info dl { margin: 32px 0; }
.contact-info dt {
  font-family: var(--mono); font-size: 0.78rem; color: var(--teal);
  margin-top: 22px;
}
.contact-info dd { margin: 4px 0 0; font-size: 1.02rem; }

.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 0.86rem;
  color: var(--text-lo-mute);
  margin-bottom: 7px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--text-lo);
  font-family: var(--sans);
  font-size: 0.98rem;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brass);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-note { font-size: 0.82rem; color: var(--text-lo-mute); margin-top: 14px; }

.alert {
  padding: 16px 18px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  margin-bottom: 26px;
  border: 1px solid;
}
.alert--success { background: rgba(111,168,174,0.1); border-color: var(--teal); color: var(--teal); }
.alert--error { background: rgba(201,80,80,0.1); border-color: #C95050; color: #E08A8A; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink-panel);
  border-top: 1px solid var(--ink-line);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; color: var(--text-lo-mute); }
.footer-col h5 {
  font-family: var(--sans); font-weight: 600; font-size: 0.86rem;
  color: var(--text-lo); margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; font-size: 0.9rem; color: var(--text-lo-mute); }
.footer-col a { font-size: 0.9rem; color: var(--text-lo-mute); }
.footer-col a:hover { color: var(--brass); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-line);
  font-size: 0.82rem;
  color: var(--text-lo-mute);
}

/* ---------- misc page header (services/about/contact) ---------- */
.page-header {
  padding: 64px 0 20px;
  border-bottom: 1px solid var(--ink-line);
}
.page-header .kicker {
  font-family: var(--mono); font-size: 0.82rem; color: var(--teal); display: block; margin-bottom: 16px;
}
