/* Golding Software — one-pager styles */

:root {
  --gold: #c9a227;
  --gold-strong: #a8861d;
  --ink: #16243a;
  --ink-soft: #44526a;
  --bg: #ffffff;
  --bg-alt: #f6f4ee;
  --line: #e4e1d8;
  --card: #ffffff;
  --ok: #2e7d32;
  --err: #c62828;
  --radius: 12px;
  --max: 1060px;
}

/* Dark palette applies when the visitor's system prefers dark (unless they
   toggled light), or when they explicitly toggled dark. */
:root[data-theme="dark"] {
  --gold: #e3b93c;
  --gold-strong: #f0ca55;
  --ink: #eef2f8;
  --ink-soft: #aab6c8;
  --bg: #10182a;
  --bg-alt: #131d31;
  --line: #2a3650;
  --card: #172136;
  --ok: #81c784;
  --err: #ef9a9a;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --gold: #e3b93c;
    --gold-strong: #f0ca55;
    --ink: #eef2f8;
    --ink-soft: #aab6c8;
    --bg: #10182a;
    --bg-alt: #131d31;
    --line: #2a3650;
    --card: #172136;
    --ok: #81c784;
    --err: #ef9a9a;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.12rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand img { display: block; }
.site-nav { display: flex; gap: 22px; align-items: center; }
.site-nav a { color: var(--ink-soft); font-size: 0.95rem; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav .nav-cta {
  color: var(--ink);
  border: 1px solid var(--gold);
  padding: 7px 16px; border-radius: 999px;
}
.site-nav .nav-cta:hover { background: var(--gold); color: #1a1a12; }
.nav-toggle { display: none; }

/* Theme toggle */
.theme-toggle {
  background: none; border: 1px solid var(--line); border-radius: 999px;
  width: 36px; height: 36px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink-soft); padding: 0;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--gold); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle[data-mode="dark"] .icon-sun { display: block; }
.theme-toggle[data-mode="dark"] .icon-moon { display: none; }

/* Hero */
.hero { padding: 96px 0 72px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  color: var(--gold-strong); font-weight: 600; margin: 0 0 14px;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 46em; margin: 18px 0 28px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-facts {
  list-style: none; display: flex; gap: 10px 26px; flex-wrap: wrap;
  padding: 0; margin: 30px 0 0; color: var(--ink-soft); font-size: 0.92rem;
}
.hero-facts li::before { content: "— "; color: var(--gold); }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.06s ease, opacity 0.15s ease;
}
.btn:hover { text-decoration: none; opacity: 0.92; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: #1a1a12; }
.btn-ghost { border-color: var(--line); color: var(--ink); }

/* Sections */
.section { padding: 72px 0; scroll-margin-top: 64px; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 { color: var(--ink); }
.card h3::after {
  content: ""; display: block; width: 34px; height: 3px; background: var(--gold);
  border-radius: 2px; margin-top: 10px;
}
.card p { color: var(--ink-soft); margin-bottom: 0; font-size: 0.97rem; }

/* Outcomes */
.outcomes { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; max-width: 56em; }
.outcomes li { padding-left: 26px; position: relative; color: var(--ink-soft); }
.outcomes li::before { content: "◆"; color: var(--gold); position: absolute; left: 0; font-size: 0.8rem; top: 5px; }
.outcomes strong { color: var(--ink); }
.note { color: var(--ink-soft); font-size: 0.92rem; margin-top: 26px; max-width: 56em; font-style: italic; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; margin-top: 24px; align-items: start; }
.about-grid p { color: var(--ink-soft); }
.about-side { display: flex; flex-direction: column; gap: 22px; }
.about-photo {
  width: 100%; max-width: 320px; height: auto; display: block;
  border-radius: var(--radius); border: 1px solid var(--line);
}
.stack { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stack li {
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px;
  font-size: 0.85rem; color: var(--ink-soft); background: var(--card);
}

/* All Bubbles */
.lede-small { color: var(--ink-soft); max-width: 46em; font-size: 1.05rem; }
.tm { font-size: 0.6em; vertical-align: super; }
.badge {
  display: inline-block; background: var(--gold); color: #1a1a12; font-size: 0.8rem;
  font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-right: 16px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.link-arrow { font-weight: 600; }
.link-arrow + .link-arrow { margin-left: 18px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; margin-top: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); color: var(--ink); font: inherit;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; font-size: 0.95rem; margin-top: 12px; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.contact-aside p { color: var(--ink-soft); margin: 0 0 18px; }
.contact-aside strong { color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0; }
.footer-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer p { margin: 0; color: var(--ink-soft); font-size: 0.85rem; }

/* Responsive */
@media (max-width: 860px) {
  .cards, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 52px; }
  .section { padding: 52px 0; }

  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; background: none;
    border: none; padding: 8px; cursor: pointer;
  }
  .nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
  .site-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 18px 24px 22px; gap: 16px; align-items: flex-start;
  }
  .site-nav.open { display: flex; }
}
