/*
Theme Name: Xerolag
Theme URI: https://xerolag.com
Author: Xerolag
Description: Custom theme for the Xerolag AI marketing website. Black-first, thin teal accent lines, Space Grotesk + IBM Plex Sans.
Version: 1.0
Requires PHP: 7.4
Text Domain: xerolag
*/

:root {
  --surface-page: #000000;
  --surface-card: #0A0B0C;
  --border-hairline: rgba(200,204,206,0.16);
  --ink: #FFFFFF;
  --ink-muted: #C8CCCE;
  --ink-faint: #8A9298;
  --graphite: #565F64;
  --accent: #00A19B;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; }

body {
  background: var(--surface-page);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  margin: 0;
}

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

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

input::placeholder, textarea::placeholder { color: var(--graphite); }

input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

::selection { background: var(--accent); color: #000000; }

.wrap { max-width: 1280px; margin: 0 auto; }

button, input, textarea { font-family: inherit; }

.xg-form-status { font-size: 14px; margin-top: 4px; display: none; }
.xg-form-status.is-visible { display: block; }
.xg-form-status.is-success { color: var(--accent); }
.xg-form-status.is-error { color: #E5484D; }

/* Blog post content (rendered from the block/classic editor, so it needs
   its own type rules rather than the inline styles the rest of the site uses) */
.xg-post-content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-muted);
}
.xg-post-content > * + * { margin-top: 20px; }
.xg-post-content h2 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 48px;
}
.xg-post-content h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 36px;
}
.xg-post-content p { margin: 0; }
.xg-post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(0,161,155,0.4);
}
.xg-post-content ul, .xg-post-content ol {
  padding-left: 22px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.xg-post-content blockquote {
  margin: 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--accent);
  color: var(--ink);
  font-style: italic;
}
.xg-post-content img { border-radius: 12px; margin: 8px 0; }
.xg-post-content figcaption { font-size: 13px; color: var(--ink-faint); margin-top: 4px; }
.xg-post-content code {
  background: var(--surface-card);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}
.xg-post-content pre {
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
}
.xg-post-content pre code { background: none; padding: 0; }

/* Mobile nav: the full "Services / Blog / Contact / Book a call" row is too
   wide for narrow screens and nothing wraps it, which forces the whole page
   to scroll horizontally. Below 640px, drop to logo + the CTA button only. */
@media (max-width: 640px) {
  .xg-nav-links a:not(.xg-nav-cta) { display: none; }
  .xg-nav-links { gap: 0; }
  .xg-nav-cta { padding: 8px 14px !important; font-size: 13px !important; }
}
