/* Kuhn Software LLC — marketing site
   Palette: near-black charcoal, warm off-white, copper/amber #C87533 */

:root {
  --bg: #0a0a0b;
  --bg-elevated: #121214;
  --bg-card: #141416;
  --border: rgba(255, 248, 240, 0.08);
  --border-strong: rgba(255, 248, 240, 0.14);
  --text: #f4f0ea;
  --text-muted: #a39e96;
  --accent: #c87533;
  --accent-hover: #d98945;
  --accent-soft: rgba(200, 117, 51, 0.14);
  --focus: #e8a86a;
  --danger: #e07070;
  --success: #7cb89a;
  --radius: 10px;
  --header-h: 4.25rem;
  --max: 68rem;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Oswald", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
  color-scheme: dark;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--accent-hover);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #0a0a0b;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo img {
  height: calc(var(--header-h) - 0.45rem);
  width: auto;
  object-fit: contain;
}

.site-nav ul {
  display: flex;
  gap: 0.25rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero */
.hero {
  padding: clamp(4.5rem, 12vw, 8rem) 0 clamp(4rem, 10vw, 6.5rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 20%, rgba(200, 117, 51, 0.09), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(200, 117, 51, 0.04), transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 40rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 6.5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text);
}

.hero-sub {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0.7rem 1.4rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0b;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #0a0a0b;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-soft);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.15;
}

.section-lede {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* Industries — hub infographic */
.industries {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.hub {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas:
    "a core e"
    "b core f"
    "c core g"
    "d core h";
  column-gap: 2.75rem;
  row-gap: 0.85rem;
  align-items: center;
}

.hub ul {
  display: contents;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hub li {
  position: relative;
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hub li:nth-child(1) { grid-area: a; text-align: right; }
.hub li:nth-child(2) { grid-area: b; text-align: right; }
.hub li:nth-child(3) { grid-area: c; text-align: right; }
.hub li:nth-child(4) { grid-area: d; text-align: right; }
.hub li:nth-child(5) { grid-area: e; }
.hub li:nth-child(6) { grid-area: f; }
.hub li:nth-child(7) { grid-area: g; }
.hub li:nth-child(8) { grid-area: h; }

.hub li::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 2.75rem;
  height: 1px;
  background: var(--accent);
}

.hub li:nth-child(-n + 4)::after {
  right: -2.75rem;
  background: linear-gradient(90deg, rgba(200, 117, 51, 0.2), var(--accent));
}

.hub li:nth-child(n + 5)::after {
  left: -2.75rem;
  background: linear-gradient(90deg, var(--accent), rgba(200, 117, 51, 0.2));
}

.hub-core {
  grid-area: core;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 11.5rem;
  padding: 0.5rem 0;
}

.hub-core::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 117, 51, 0.16), transparent 68%);
  pointer-events: none;
}

.hub-core img {
  width: 7.25rem;
  height: auto;
}

.hub-core p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.15;
}

/* Services cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  padding: 1.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease);
}

.card:hover {
  border-color: rgba(200, 117, 51, 0.35);
}

.card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
}

.card h3::before {
  content: "";
  display: block;
  width: 1.75rem;
  height: 2px;
  margin-bottom: 1rem;
  background: var(--accent);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9875rem;
}

/* Contact */
.contact {
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-meta {
  margin: 2rem 0 0;
  display: grid;
  gap: 1.25rem;
}

.contact-meta div {
  margin: 0;
}

.contact-meta dt {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-meta dd {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 500;
}

.contact-meta a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.contact-meta a:hover {
  color: var(--accent-hover);
}

.contact-form {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.req {
  color: var(--accent);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6b6660;
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(200, 117, 51, 0.4);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.field-error {
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
  color: var(--danger);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  margin: 1rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.form-status.is-success {
  color: var(--success);
  background: rgba(124, 184, 154, 0.1);
  border: 1px solid rgba(124, 184, 154, 0.3);
}

.form-status.is-error {
  color: var(--danger);
  background: rgba(224, 112, 112, 0.1);
  border: 1px solid rgba(224, 112, 112, 0.3);
}

.form-note {
  margin: 0.9rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form-note a {
  color: var(--text);
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  text-align: center;
}

.footer-inner p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(10, 10, 11, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem 1.25rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }

  .hub {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .hub-core {
    order: -1;
    width: auto;
  }

  .hub ul {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: none;
    gap: 0.65rem;
    width: 100%;
    margin: 0;
    padding: 0 0 0 1.15rem;
    border-left: 1px solid rgba(200, 117, 51, 0.55);
  }

  .hub li:nth-child(n) {
    grid-area: auto / auto / auto / auto;
    text-align: left;
  }

  .hub li::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.75rem, var(--max));
  }

  .contact-form {
    padding: 1.25rem;
  }
}
