/* =========================================================
   Zunova Cyberspace — BOLD / BRUTALIST system
   Neutral near-black, hard edges, structural borders,
   oversized type, mono labels, one loud cyan accent.
   ========================================================= */

:root {
  /* Palette — light / warm paper */
  --bg: #F4F3EF;
  --surface: #FFFFFF;
  --surface-2: #EBEAE4;
  --text: #17171A;
  --muted: #5B5B54;
  --accent: #0B7268;       /* deep teal: text, lines, icons (readable on light) */
  --accent-fill: #4FD1C5;  /* bright cyan: solid blocks (dark text on top) */
  --accent-2: #5B6CF9;     /* used very sparingly */
  --ink: #17171A;          /* dark text on bright fills */

  /* Structural lines */
  --line: rgba(23, 23, 26, 0.14);
  --line-strong: rgba(23, 23, 26, 0.30);
  --accent-soft: rgba(79, 209, 197, 0.16);

  /* Type */
  --font-display: "Space Grotesk", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(16px, 5vw, 44px);
  --radius: 0;             /* hard corners everywhere */
  --nav-h: 88px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* ---------- Utilities ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 9vw, 128px); }
.section + .section { border-top: 1px solid var(--line); }

/* Inverted (dark) band — flips theme tokens for contrast rhythm */
.invert {
  --bg: #131316;
  --surface: #1C1C21;
  --surface-2: #26262C;
  --text: #F3F2EE;
  --muted: #9A9A93;
  --accent: #4FD1C5;          /* bright cyan reads well on dark */
  --ink: #131316;
  --line: rgba(243, 242, 238, 0.14);
  --line-strong: rgba(243, 242, 238, 0.30);
  background: var(--bg);
  color: var(--text);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head h2 { font-size: clamp(32px, 4.4vw, 46px); }
.section-head p { color: var(--muted); margin-top: 18px; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* anchor targets clear the sticky header */
[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  background: var(--accent-fill);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 200;
  font-family: var(--font-mono);
  font-size: 13px;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  padding: 14px 22px;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .14s linear, color .14s linear, border-color .14s linear;
}
.btn svg { width: 18px; height: 18px; }
.btn { touch-action: manipulation; }
.btn:active { transform: translateY(1px); }

/* solid accent block */
.btn--cta { background: var(--accent-fill); color: var(--ink); }
.btn--cta:hover { background: #6BE3D8; }
.btn--cta svg { stroke: var(--ink); }

/* bordered ghost */
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* light (kept for compatibility) */
.btn--light { background: var(--ink); color: var(--bg); }
.btn--light:hover { background: #000; }
.btn--light svg { stroke: var(--bg); }

/* =========================================================
   Header / nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 19px;
  text-transform: uppercase;
}
.brand__mark { width: 32px; height: 32px; }
.brand__name span { color: var(--muted); font-weight: 500; }

/* Logo only, enlarged — header and footer */
.site-header .brand__name,
.site-footer .brand__name { display: none; }
.site-header .brand__mark,
.site-footer .brand__mark { width: 64px; height: 64px; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  position: relative;
  padding: 9px 14px;
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--muted);
  transition: color .14s linear;
}
.nav__links a:hover { color: var(--text); }
.nav__links a.is-active { color: var(--accent); }
/* hover/active underline indicator (state clarity) */
.nav__links a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 3px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .16s ease;
}
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: 10px;
  padding: 11px 16px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  transition: background .14s linear, color .14s linear, border-color .14s linear;
}
.nav__cta:hover { background: var(--accent-fill); color: var(--ink); border-color: var(--accent-fill); }
.nav__cta:hover svg { stroke: var(--ink); }
.nav__cta svg { width: 15px; height: 15px; }

.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  width: 44px; height: 44px;
  padding: 0;
  color: var(--text);
  cursor: pointer;
}
.nav__toggle svg { width: 22px; height: 22px; margin-inline: auto; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 880px) {
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    transform: translateY(-6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s linear, transform .16s linear;
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 16px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav__cta { margin-left: 0; margin-top: 14px; justify-content: center; padding: 15px; font-size: 14px; }
}

/* =========================================================
   Hero — oversized, left-aligned, structural strip
   ========================================================= */
.hero { border-bottom: 1px solid var(--line); }
.hero .wrap { padding-block: clamp(64px, 12vh, 148px); }

.hero__kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 26px;
}

.hero h1 {
  font-size: clamp(44px, 9vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 16ch;
}
/* loud accent highlight block behind a word */
.hl {
  background: var(--accent-fill);
  color: var(--ink);
  padding: 0 0.06em;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}

.hero__sub {
  margin-top: 28px;
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 20px);
}

.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero__tools {
  margin-top: 30px;
  max-width: 54ch;
  color: var(--muted);
  font-size: 15px;
}
.hero__tools strong { color: var(--text); font-weight: 500; }

.hero__strip {
  margin-top: clamp(40px, 5vw, 60px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}
.hero__strip > div {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
}
.hero__strip > div::before {
  content: "";
  flex: 0 0 auto;
  width: 7px; height: 7px;
  background: var(--accent);
}
.hero__strip > div:last-child { border-right: none; }

@media (max-width: 760px) {
  .hero__strip { grid-template-columns: 1fr; }
  .hero__strip > div { border-right: none; border-bottom: 1px solid var(--line); }
  .hero__strip > div:last-child { border-bottom: none; }
}

/* =========================================================
   Service cards (Home)
   ========================================================= */
.grid { display: grid; gap: 0; }
.grid--3 { grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.grid--2 { grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); }

.card {
  position: relative;
  background: var(--bg);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 28px;
  transition: background .14s linear;
}
/* remove doubled outer borders on last column/row of a 3-up */
.grid--3 .card:nth-child(3n) { border-right: none; }
.grid--3 .card:nth-last-child(-n+3) { border-bottom: none; }
.grid--2 .card:nth-child(2n) { border-right: none; }
.grid--2 .card:nth-last-child(-n+2) { border-bottom: none; }

a.card:hover { background: var(--surface); }
a.card:active { background: var(--surface-2); }

/* one dominant card breaks the uniform grid */
.card--featured { background: var(--surface); box-shadow: inset 0 3px 0 var(--accent); }
a.card--featured:hover { background: var(--surface-2); }
.card--featured .card__icon { background: var(--accent-fill); border-color: var(--accent-fill); }
.card--featured .card__icon svg { stroke: var(--ink); }
.card.card--featured h3 { font-size: 25px; }
.card--featured::after { background: var(--accent); }

.card::after {
  content: "";
  position: absolute;
  top: 22px; right: 22px;
  width: 8px; height: 8px;
  background: var(--line-strong);
  transition: background .14s linear;
}
a.card:hover::after { background: var(--accent); }

.card__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  margin-bottom: 22px;
}
.card__icon svg { width: 24px; height: 24px; stroke: var(--accent); }

.card__tag { font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.card h3 { font-size: 21px; margin: 8px 0 10px; }
.card p { color: var(--muted); font-size: 15.5px; }

.card__link {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}
.card__link svg { width: 15px; height: 15px; transition: transform .14s linear; }
a.card:hover .card__link svg { transform: translateX(4px); }

@media (max-width: 920px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 .card:nth-child(3n) { border-right: 1px solid var(--line); }
  .grid--3 .card:nth-child(2n) { border-right: none; }
  .grid--3 .card:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .grid--3 .card:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 620px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .grid--3 .card, .grid--2 .card { border-right: none; border-bottom: 1px solid var(--line); }
  .grid--3 .card:last-child, .grid--2 .card:last-child { border-bottom: none; }
}

/* =========================================================
   Detailed service rows (Services page)
   ========================================================= */
.svc {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 26px;
  padding: 38px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
}
.svc__icon svg { width: 26px; height: 26px; stroke: var(--accent); }
.svc__head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.svc__head h3 { font-size: clamp(22px, 2.6vw, 28px); }
.svc__tag { font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.svc__body { margin-top: 14px; color: var(--muted); max-width: 70ch; }
.svc__points { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 0; }
.svc__points li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text);
  padding: 7px 13px;
  border: 1px solid var(--line);
  margin: -1px 0 0 -1px;
}

@media (max-width: 560px) { .svc { grid-template-columns: 1fr; gap: 18px; } }

/* =========================================================
   Value / trust band (structural grid)
   ========================================================= */
.values { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.values > div { padding: 34px 30px; border-right: 1px solid var(--line); }
.values > div:last-child { border-right: none; }
.value__k { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3.2vw, 34px); color: var(--accent); letter-spacing: -0.03em; }
.value__t { margin-top: 12px; font-family: var(--font-display); font-weight: 500; font-size: 18px; }
.value__d { margin-top: 10px; color: var(--muted); font-size: 15px; }

@media (max-width: 760px) {
  .values { grid-template-columns: 1fr; }
  .values > div { border-right: none; border-bottom: 1px solid var(--line); }
  .values > div:last-child { border-bottom: none; }
}

/* =========================================================
   CTA band — loud solid accent block
   ========================================================= */
.cta-band .panel {
  background: var(--accent-fill);
  color: var(--ink);
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
}
.cta-band h2 { font-size: clamp(30px, 4.4vw, 46px); max-width: 16ch; color: var(--ink); }
.cta-band p { color: rgba(23, 23, 26, 0.74); margin-top: 16px; max-width: 46ch; }
.cta-band .panel__action { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.cta-band .phone {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(24px, 3.2vw, 34px);
  color: var(--ink);
  letter-spacing: -0.02em;
}
/* dark button on the accent block */
.cta-band .btn--cta { background: var(--ink); color: var(--accent-fill); }
.cta-band .btn--cta:hover { background: #000; }
.cta-band .btn--cta svg { stroke: var(--accent-fill); }

@media (max-width: 800px) { .cta-band .panel { grid-template-columns: 1fr; } }

/* =========================================================
   About page
   ========================================================= */
.prose { max-width: 70ch; }
.prose p + p { margin-top: 20px; }
.prose p { color: var(--muted); }
.prose strong { color: var(--text); font-weight: 500; }

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.pillar { padding: 26px 0; border-top: 1px solid var(--line); }
.pillar:first-child { border-top: none; padding-top: 0; }
.pillar h3 { font-size: 19px; display: flex; align-items: baseline; gap: 14px; }
.pillar h3 .n { font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 400; }
.pillar p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

/* =========================================================
   Contact page
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  border: 1px solid var(--line);
  align-items: stretch;
}
.call-card {
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: clamp(30px, 4vw, 48px);
}
.call-card .eyebrow { margin-bottom: 16px; }
.call-card .big-phone {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(30px, 6vw, 48px);
  letter-spacing: -0.03em;
  color: var(--accent);
  margin: 8px 0 8px;
}
.call-card .hours { color: var(--muted); font-size: 15px; }
.call-card .call-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; }

.detail-list { display: flex; flex-direction: column; }
.detail {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 26px clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.detail:last-child { border-bottom: none; }
.detail__icon {
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.detail__icon svg { width: 22px; height: 22px; stroke: var(--accent); }
.detail__k { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.detail__v { margin-top: 6px; font-size: 16.5px; }
.detail__v a { border-bottom: 1px solid transparent; transition: color .14s linear, border-color .14s linear; }
.detail__v a:hover { color: var(--accent); border-color: var(--accent); }
.detail__note { margin-top: 5px; color: var(--muted); font-size: 13.5px; }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .call-card { border-right: none; border-bottom: 1px solid var(--line); }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding-block: clamp(48px, 6vw, 76px) 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { color: var(--muted); max-width: 34ch; font-size: 15px; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a, .footer-col address {
  color: var(--text);
  font-size: 15px;
  font-style: normal;
  transition: color .14s linear;
}
.footer-col a:hover { color: var(--accent); }
.footer-col address { color: var(--muted); line-height: 1.7; }

.footer-bottom {
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: var(--muted); font-size: 13px; font-family: var(--font-mono); }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal (JS adds .reveal-init only when motion is allowed) ---------- */
.reveal-init { opacity: 0; transform: translateY(16px); will-change: opacity, transform; }
.reveal-in {
  opacity: 1;
  transform: none;
  transition: opacity .55s ease, transform .55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal-init { opacity: 1 !important; transform: none !important; }
}
