/* Mohum Consulting — styles. System fonts, responsive, light/dark aware. */

:root {
  --navy: #0b1f3a;
  --navy-deep: #081627;
  --accent: #2f9e8f;
  --accent-bright: #38c2ae;
  --ink: #15212e;
  --muted: #5b6b7b;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --card: #ffffff;
  --border: #e2e8ef;
  --ring: #38c2ae;
  --radius: 12px;
  --maxw: 1120px;
  --shadow: 0 1px 2px rgba(8, 22, 39, 0.06), 0 8px 24px rgba(8, 22, 39, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eef5;
    --muted: #9fb0c0;
    --bg: #0a0f1a;
    --bg-alt: #0e1626;
    --card: #111b2c;
    --border: #1f2c40;
    --navy: #0a0f1a;
    --navy-deep: #060b14;
  }
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.narrow {
  max-width: 760px;
}

.center {
  text-align: center;
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

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

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  color: var(--accent);
  font-size: 1.25rem;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-weight: 500;
}
.site-nav a:hover {
  background: var(--bg-alt);
}
.nav-cta {
  background: var(--accent);
  color: #fff !important;
}
.nav-cta:hover {
  background: var(--accent-bright);
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #eef4fb;
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.hero h1 {
  color: #fff;
  max-width: 18ch;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-bright);
  margin: 0 0 0.75rem;
}
.lede {
  font-size: 1.15rem;
  color: #c7d4e2;
  max-width: 60ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.15s ease, transform 0.05s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-bright);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Sections */
.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 60ch;
  margin-bottom: 2rem;
}

/* Service cards */
.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}
.card p {
  margin: 0;
  color: var(--muted);
}

/* Contact form */
.contact-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.1rem;
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field label {
  font-weight: 600;
  font-size: 0.95rem;
}
.req {
  color: var(--accent);
}
.opt {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.contact-form textarea {
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 0;
}
.field-error {
  color: #c0392b;
  font-size: 0.85rem;
  margin: 0;
  min-height: 0;
}
@media (prefers-color-scheme: dark) {
  .field-error {
    color: #ff8a80;
  }
}
.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] {
  border-color: #c0392b;
}
.form-status {
  margin: 0;
  font-weight: 600;
}
.form-status.is-error {
  color: #c0392b;
}
.form-status.is-success {
  color: var(--accent);
}
.form-fineprint {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* Honeypot — hidden from real users, present for bots. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #c7d4e2;
  padding: 2.5rem 0 1.5rem;
}
.footer-inner {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
    align-items: start;
  }
}
.footer-brand .brand-name {
  color: #fff;
  font-size: 1.1rem;
}
.footer-blurb {
  color: #8fa3b8;
  margin: 0.25rem 0 0;
}
.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.site-footer a {
  color: #c7d4e2;
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-legal {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #8fa3b8;
}
.footer-legal p {
  margin: 0;
}

/* Legal pages */
.legal h2 {
  margin-top: 2.25rem;
  scroll-margin-top: 80px;
}
.legal h1 {
  scroll-margin-top: 80px;
}
.legal-meta {
  color: var(--muted);
  font-size: 0.9rem;
}
.legal ul {
  padding-left: 1.25rem;
}
.legal li {
  margin-bottom: 0.5rem;
}
.callout {
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
}
.legal-toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.legal-toc ol {
  margin: 0;
  padding-left: 1.25rem;
  columns: 2;
  column-gap: 2rem;
}
@media (max-width: 600px) {
  .legal-toc ol {
    columns: 1;
  }
}
.legal-toc a {
  text-decoration: none;
}
.legal-toc a:hover {
  text-decoration: underline;
}
