/*
Theme Name: AICC LLC
Theme URI: https://aiccllc.com
Author: AICC LLC
Description: Practical AI and managed IT services site for AICC LLC. One-page front page with AI services, managed IT, process, remote support, ticket and contact forms.
Version: 2.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: aicc
*/

/* Layout: service-console — mono "ticket" labels, a live topology hero, bands that alternate paper and ink. */
:root {
  --paper: #f3f6f5;
  --surface: #ffffff;
  --ink: #0e1a1c;
  --muted: #4d5f61;
  --line: #d5dfde;
  --teal: #0b7a75;
  --teal-soft: #dcefed;
  --amber: #b86f00;
  --amber-soft: #fbefd6;
  --band: #0e1a1c;
  --band-fg: #e3ecea;
  --band-muted: #9fb3b1;
  --band-line: #24393b;
  --f-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 10px;
  --max: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1416; --surface: #111f22; --ink: #e3ecea; --muted: #9fb3b1; --line: #22373a;
    --teal: #3cc4bb; --teal-soft: #12302f; --amber: #f2b33d; --amber-soft: #2e2410;
    --band: #060d0e; --band-fg: #e3ecea; --band-muted: #93a8a6; --band-line: #1c2f31;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b1416; --surface: #111f22; --ink: #e3ecea; --muted: #9fb3b1; --line: #22373a;
  --teal: #3cc4bb; --teal-soft: #12302f; --amber: #f2b33d; --amber-soft: #2e2410;
  --band: #060d0e; --band-fg: #e3ecea; --band-muted: #93a8a6; --band-line: #1c2f31;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
img { max-width: 100%; height: auto; }
a { color: var(--teal); }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.wrap {
  max-width: var(--max); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.label {
  font: 500 0.78rem/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal);
  display: inline-flex; gap: 8px; align-items: center;
}
.label::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.lede { color: var(--muted); font-size: 1.12rem; max-width: 62ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font: 600 0.98rem/1 var(--f-display); text-decoration: none; cursor: pointer;
  padding: 14px 20px; border-radius: 8px; border: 1.5px solid transparent;
  transition: transform .15s ease, background .15s ease;
}
.btn-primary { background: var(--teal); color: var(--surface); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--teal); }
.band .btn-ghost { color: var(--band-fg); border-color: var(--band-line); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 8px; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font: 700 0.8rem/1 var(--f-mono); letter-spacing: 0.04em;
}
.brand-name { font: 700 1.15rem/1 var(--f-display); }
.brand-name small { display: block; font: 400 0.72rem/1.4 var(--f-mono); color: var(--muted); letter-spacing: 0.04em; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--teal); }
.nav .btn { padding: 10px 16px; color: var(--surface); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; color: var(--ink); font: 600 0.9rem var(--f-display); cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
         background: var(--surface); border-bottom: 1px solid var(--line);
         padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; }
}

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; font: 500 0.85rem/1.4 var(--f-mono); color: var(--muted); }
.hero-facts span::before { content: "✓ "; color: var(--teal); }
.console {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-width: 0;
  box-shadow: 0 20px 50px -30px rgba(14, 26, 28, .45);
}
.console-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 500 0.78rem/1 var(--f-mono); color: var(--muted); }
.dot-live { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); }
.dot-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.topology { display: block; width: 100%; height: auto; }
.topology .edge { stroke: var(--line); stroke-width: 2; fill: none; }
.topology .flow { stroke: var(--teal); stroke-width: 2.5; fill: none; stroke-dasharray: 6 10; animation: flow 1.6s linear infinite; }
.topology .flow.amber { stroke: var(--amber); }
.topology .node { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; }
.topology .node.core { fill: var(--ink); }
.topology text { font: 600 12px var(--f-mono); fill: var(--ink); }
.topology .core-text { fill: var(--paper); }
@keyframes flow { to { stroke-dashoffset: -32; } }
.console-log { border-top: 1px solid var(--line); padding: 12px 16px; display: grid; gap: 6px; font: 400 0.8rem/1.4 var(--f-mono); color: var(--muted); }
.console-log b { color: var(--ink); font-weight: 500; }
.console-log .ok { color: var(--teal); }

/* Sections */
section { scroll-margin-top: 80px; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: grid; gap: 12px; align-content: start; min-width: 0;
}
.card .tag { font: 500 0.72rem/1 var(--f-mono); color: var(--muted); letter-spacing: 0.06em; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card ul { margin: 0; padding-left: 18px; color: var(--ink); font-size: 0.93rem; display: grid; gap: 4px; }
.card-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; }
.card-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Dark band */
.band { background: var(--band); color: var(--band-fg); }
.band .label { color: var(--amber); }
.band .lede, .band p { color: var(--band-muted); }
.it-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--band-line); }
.it-item { padding: 26px 22px 26px 0; border-bottom: 1px solid var(--band-line); display: grid; gap: 8px; min-width: 0; }
.it-item h3 { color: var(--band-fg); }
.it-item .code { font: 500 0.75rem/1 var(--f-mono); color: var(--amber); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.step { padding: 24px 22px 24px 0; border-top: 3px solid var(--line); display: grid; gap: 10px; align-content: start; min-width: 0; }
.step:first-child { border-top-color: var(--teal); }
.step .num { font: 600 0.8rem/1 var(--f-mono); color: var(--teal); }
.step .time { font: 500 0.78rem/1 var(--f-mono); color: var(--muted); }
.step p { color: var(--muted); font-size: 0.95rem; }

/* Why */
.why { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.why-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.why-list div { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 180px 1fr; gap: 16px; }
.why-list b { font-family: var(--f-display); }
.why-list span { color: var(--muted); }

/* Support */
.support { background: var(--teal-soft); }
.support-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 24px; align-items: start; }
.remote-card { background: var(--ink); color: var(--paper); border-radius: 14px; padding: 28px; display: grid; gap: 16px; }
.remote-card p { color: color-mix(in srgb, var(--paper) 75%, transparent); }
.remote-card .btn { background: var(--amber); color: #111; }
.remote-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 0.95rem; }
.remote-meta { font: 500 0.8rem/1.5 var(--f-mono); color: color-mix(in srgb, var(--paper) 65%, transparent); }

/* Forms */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: grid; gap: 16px; min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font: 600 0.85rem/1.2 var(--f-display); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--f-body); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 8px; padding: 12px 14px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.85rem; color: var(--muted); }
.notice { padding: 14px 16px; border-radius: 8px; font-weight: 500; }
.notice.ok { background: var(--teal-soft); color: var(--teal); border: 1px solid var(--teal); }
.notice.err { background: var(--amber-soft); color: var(--amber); border: 1px solid var(--amber); }

/* About + contact */
.about-contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.about-copy { display: grid; gap: 16px; }
.about-copy p { color: var(--muted); }
.contact-lines { display: grid; gap: 10px; margin-top: 8px; font: 500 0.95rem/1.4 var(--f-mono); }
.contact-lines span { color: var(--muted); display: inline-block; min-width: 84px; }

/* Footer */
.site-footer { background: var(--band); color: var(--band-muted); padding-block: 40px; font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: var(--band-fg); text-decoration: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* Generic page content */
.page-content { padding-block: 56px; }
.page-content .entry { max-width: 760px; display: grid; gap: 18px; }

@media (max-width: 960px) {
  .hero .wrap, .why, .support-grid, .about-contact { grid-template-columns: 1fr; }
  .grid-3, .it-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-3, .grid-2, .it-list, .steps, .form-grid { grid-template-columns: 1fr; }
  .why-list div { grid-template-columns: 1fr; gap: 4px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .card, .form-card, .remote-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Private AI feature */
.private-ai { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(24px, 4vw, 44px); }
.private-ai-copy { display: grid; gap: 16px; align-content: start; min-width: 0; }
.private-ai-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); min-width: 0; }
.private-ai-points li { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.private-ai-points b { font-family: var(--f-display); }
.private-ai-points span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 960px) { .private-ai { grid-template-columns: 1fr; } }
