/*
Theme Name: Simple Intelligence
Theme URI: https://simpleintelligence.io
Author: Simple Intelligence Group
Author URI: https://simpleintelligence.io
Description: Canonical theme for simpleintelligence.io marketing site. Reuses shared design system (si-theme.css + si-particles.js) so every page across the platform renders with the same particle hero + brand system.
Version: 1.0.1
Requires at least: 6.5
Tested up to: 6.5
Requires PHP: 8.2
License: Proprietary
Text Domain: simpleintelligence
*/

/*
 * Canonical tokens live in assets/si-theme.css (shared design system).
 * The rules below are theme-only additions — product-grid, form,
 * principles — that do not belong in the shared file because they
 * are marketing-site layout, not brand primitives.
 */

/* ---- Product cards ----------------------------------------------------- */

.si-products-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.si-product-card {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: transform .18s ease, border-color .18s ease;
}
.si-product-card:hover { transform: translateY(-2px); }

/* .si-product-card-status pill weights are defined in assets/si-theme.css
   (Product status badges) so base typography + tone variants stay in one
   stylesheet. */

.si-product-card-tagline {
  font-family: var(--si-font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--si-prussian, #182C43);
  margin: -.25rem 0 .25rem;
}

.si-product-card-more {
  margin-top: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--si-ocean-green, #46B491);
  letter-spacing: .01em;
}

/* ---- Product detail page ---------------------------------------------- */

.si-product-highlights {
  list-style: none;
  padding: 0;
  margin: 2rem 0 3rem;
  display: grid;
  gap: 1rem;
}
.si-product-highlights li {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--si-ocean-green, #46B491);
  background: rgba(70, 180, 145, 0.06);
  font-size: 16px;
  line-height: 1.55;
}

.si-product-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(24, 44, 67, 0.12);
}
.si-product-meta-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--si-text-muted, #6b7280);
  margin-bottom: .35rem;
}
.si-product-meta-value {
  font-family: var(--si-font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--si-prussian, #182C43);
  line-height: 1.4;
}

/* ---- Principles -------------------------------------------------------- */

.si-principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.si-principle h3 {
  font-size: 18px;
  margin: .75rem 0 .5rem;
}
.si-principle p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--si-text-muted, #6b7280);
}
.si-principle-num {
  font-family: var(--si-font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--si-ocean-green, #46B491);
  letter-spacing: .08em;
}

/* ---- Contact form ------------------------------------------------------ */

.si-form { display: grid; gap: 1.25rem; }
.si-form-label { display: grid; gap: .4rem; }
.si-form-label > span {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--si-prussian, #182C43);
}
.si-form input[type="text"],
.si-form input[type="email"],
.si-form textarea {
  font: inherit;
  font-family: var(--si-font-sans);
  padding: .85rem 1rem;
  border: 1px solid rgba(24, 44, 67, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--si-prussian, #182C43);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.si-form input:focus,
.si-form textarea:focus {
  outline: none;
  border-color: var(--si-ocean-green, #46B491);
  box-shadow: 0 0 0 3px rgba(70, 180, 145, 0.18);
}
.si-form button { justify-self: start; }

.si-form-note {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  font-size: 14px;
}
.si-form-note-ok  { background: rgba(70, 180, 145, 0.10); color: var(--si-prussian, #182C43); border-left: 3px solid var(--si-ocean-green, #46B491); }
.si-form-note-err { background: rgba(220, 116, 14, 0.10); color: var(--si-prussian, #182C43); border-left: 3px solid var(--si-orange, #DC740E); }

/* ---- Portfolio category headers --------------------------------------- */

.si-category {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(24, 44, 67, 0.08);
}
.si-category:first-of-type {
  margin-top: 2.5rem;
  padding-top: 0;
  border-top: 0;
}
.si-category-header {
  max-width: 720px;
  margin-bottom: 2rem;
}
.si-category-title {
  font-family: var(--si-font-display);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--si-prussian, #182C43);
  margin: 0 0 .5rem;
}
.si-category-tagline {
  font-family: var(--si-font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--si-ocean-green, #46B491);
  margin: 0 0 .5rem;
}
.si-category-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--si-text-subtle-dark, #4a5e78);
  margin: 0;
}

/* ---- Status pill tones (SOUL Rule 5) ----------------------------------
   Moved to assets/si-theme.css (Product status badges) to consolidate
   with the new pill visuals (filled/outline/amber). */

/* ---- Surface badges (Web / Copilot / Desktop) ------------------------- */

.si-surface-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .75rem;
}
.si-surface-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
  border: 1px solid transparent;
  background: rgba(24, 44, 67, 0.04);
  color: var(--si-text-subtle-dark, #4a5e78);
}
.si-surface-icon { font-size: 12px; line-height: 1; }
.si-surface-label { line-height: 1; }
.si-surface-state {
  font-size: 10px;
  opacity: .8;
  margin-left: .2rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.si-surface-badge.si-surface-available {
  background: rgba(70, 180, 145, 0.12);
  color: var(--si-ocean-green, #46B491);
  border-color: rgba(70, 180, 145, 0.25);
}
.si-surface-badge.si-surface-in_development {
  background: rgba(220, 116, 14, 0.10);
  color: var(--si-orange, #DC740E);
  border-color: rgba(220, 116, 14, 0.25);
}
.si-surface-badge.si-surface-planned {
  background: rgba(138, 154, 181, 0.12);
  color: var(--si-text-muted, #8a9ab5);
  border-color: rgba(138, 154, 181, 0.2);
}

/* Hero variant — larger, centered */
.si-surface-badges-hero {
  justify-content: center;
  gap: .6rem;
  margin: 1.5rem 0 2rem;
}
.si-surface-badges-hero .si-surface-badge {
  padding: .4rem .85rem;
  font-size: 12px;
}

/* ---- Cross-portfolio Copilot section grid ----------------------------- */

.si-copilot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  text-align: left;
}
.si-copilot-item {
  padding: 1.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--si-radius-lg, 16px);
}
.si-copilot-item-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--si-ocean-green, #46B491);
  margin-bottom: .5rem;
}
.si-copilot-item h4 {
  font-family: var(--si-font-display);
  font-size: 17px;
  color: var(--si-white, #fff);
  margin: 0 0 .6rem;
}
.si-copilot-item p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--si-text-muted, #8a9ab5);
  margin: 0;
}

/* ---- Backwards-compatibility aliases ---------------------------------- *
 * The shared design system exposes --si-emerald for historical reasons.
 * SOUL.md canonical name is Ocean Green. Aliases allow new theme code to
 * reference the canonical name without touching the shared CSS file.
 */
.si-theme {
  --si-ocean-green: var(--si-emerald);
  --si-night-sky: var(--si-navy-deep, #112032);
}
