/*
Theme Name: OrgPhysics AI
Theme URI: https://orgphysics.ai
Author: Lex Sisney
Description: Custom theme for OrgPhysics.AI consulting site.
Version: 1.0.4
License: GNU General Public License v2 or later
Text Domain: orgphysics-ai
*/

/* ─── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --bg:           #0c0e13;
  --surface:      #13161e;
  --border:       #1e2230;
  --text:         #e8e2d5;
  --text-muted:   #8a8fa8;
  --accent:       #c27d3a;
  --accent-light: #e8a050;
  --max-w:        760px;
  --font-headline: 'Playfair Display', Georgia, serif;
}

/* ─── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────────── */
h1 {
  font-family: var(--font-headline);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
h2 {
  font-family: var(--font-headline);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1.2rem;
}
h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
p { margin-bottom: 1.25rem; color: var(--text); }
p:last-child { margin-bottom: 0; }
em { font-style: italic; }
a { color: inherit; }

/* ─── LAYOUT ─────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.container--wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── NAV ────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 14, 19, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-headline);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bg);
  background: var(--accent);
  padding: 0.5rem 1.25rem;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-light); }

/* ─── WP Admin Bar offset ────────────────────────────────────── */
.admin-bar nav { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar nav { top: 46px; } }

/* ─── SECTION STRUCTURE ───────────────────────────────────────── */
section { padding: 7rem 0; }

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}
.section-rule {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 4rem auto;
  opacity: 0.6;
}

/* ─── HERO ───────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at 50% 50%, #16192400 0%, var(--bg) 70%);
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(194, 125, 58, 0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 11rem 2rem 5rem;
}
.hero-text h1 { margin-bottom: 2rem; }
.hero-text p {
  font-size: 1.05rem;
  color: rgba(232, 226, 213, 0.8);
  max-width: 540px;
}
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── GEAR SVG ANIMATIONS ─────────────────────────────────────── */
.gear-ring-anim { animation: rotateCW 36s linear infinite; }
.gear-sun-anim  { animation: rotateCW 18s linear infinite; }
@keyframes rotateCW { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.gear-tooth       { fill: #1e2230; stroke: #c27d3a; stroke-width: 1; }
.ring-tooth-inner { fill: #1e2230; stroke: #c27d3a; stroke-width: 0.8; }

/* ─── CTA BUTTON ──────────────────────────────────────────────── */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--bg);
  background: var(--accent);
  padding: 0.85rem 2rem;
  text-decoration: none;
  margin-top: 2rem;
  transition: background 0.2s;
}
.cta-button:hover { background: var(--accent-light); color: var(--bg); }
.cta-button::after { content: '→'; }

/* ─── TWO-COLUMN ──────────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 5rem;
  align-items: start;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 2rem;
}
.two-col-visual { position: sticky; top: 8rem; }

/* ─── RESULTS PANEL ───────────────────────────────────────────── */
#results {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin: 3rem 0;
}
.result-stat { text-align: center; }
.result-number {
  font-family: var(--font-headline);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: 0.75rem;
}
.result-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ─── FAQ ─────────────────────────────────────────────────────── */
.faq-item {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.faq-a { font-size: 1rem; color: rgba(232, 226, 213, 0.75); line-height: 1.8; margin: 0; }

/* ─── THREE THINGS ────────────────────────────────────────────── */
.three-things-item {
  margin-bottom: 3rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent);
}
.three-things-item h3 {
  font-family: var(--font-headline);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  margin-bottom: 0.6rem;
}

/* ─── POSTS LIST (Enterprise AI Strategies) ───────────────────── */
.posts-hero {
  min-height: 40vh;
  display: flex;
  align-items: flex-end;
  padding: 14rem 0 5rem;
  border-bottom: 1px solid var(--border);
}
.posts-list { margin-top: 1rem; }
.post-item {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.post-item:last-child { border-bottom: 1px solid var(--border); }
.post-item-date {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.6rem;
}
.post-item h2 {
  font-family: var(--font-headline);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.post-item h2 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.post-item h2 a:hover { color: var(--accent-light); }
.post-item-excerpt {
  font-size: 0.95rem;
  color: rgba(232, 226, 213, 0.7);
  line-height: 1.75;
  margin: 0 0 1rem;
}
.post-readmore {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.post-readmore:hover { color: var(--accent-light); }
.no-posts {
  padding: 4rem 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ─── CONTACT PAGE ────────────────────────────────────────────── */
.contact-intro {
  min-height: 40vh;
  display: flex;
  align-items: flex-end;
  padding: 14rem 0 5rem;
}
.contact-meta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.contact-meta p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.contact-email {
  font-family: var(--font-headline);
  font-size: 1.3rem;
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-email:hover { color: var(--text); }

/* ─── SINGLE POST CONTENT ─────────────────────────────────────── */
.post-content p  { margin-bottom: 1.4rem; line-height: 1.9; }
.post-content h2 { margin-top: 5rem; margin-bottom: 1rem; }
.post-content h3 { font-family: var(--font-headline); font-size: 1.1rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text); margin-top: 2.5rem; margin-bottom: 0.75rem; }
.post-content ul, .post-content ol { margin: 0 0 1.4rem 1.5rem; }
.post-content li { margin-bottom: 0.4rem; color: var(--text); line-height: 1.75; }
.post-content strong { color: var(--text); font-weight: 600; }
.post-content em { font-style: italic; }
.post-content a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--text); }
.post-content blockquote { border-left: 2px solid var(--accent); margin: 2rem 0; padding: 0 0 0 1.5rem; }
.post-content blockquote p { color: rgba(232,226,213,0.8); font-style: italic; }
.post-content hr { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }
.post-content img { max-width: 100% !important; width: auto; height: auto; display: block; margin: 2rem auto; }
.post-content figure { max-width: 100% !important; margin: 2rem 0; overflow: hidden; }
.post-content figure img { margin: 0 auto; max-width: 100% !important; }
.post-content .wp-block-image { max-width: 100% !important; overflow: hidden; }
/* Prevent Gutenberg wide/full alignment from breaking out of the reading column */
.post-content .wp-block-image.alignwide,
.post-content .wp-block-image.alignfull,
.post-content .alignwide,
.post-content .alignfull { max-width: 100% !important; width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
.post-content .alignwide img,
.post-content .alignfull img { max-width: 100% !important; width: 100%; height: auto; display: block; }

/* ─── FOOTER ──────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
}
footer p { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.04em; }

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-text p { max-width: 100%; }
  .two-col { grid-template-columns: 1fr; }
  .two-col-visual { display: none; }
  .results-grid { grid-template-columns: 1fr; gap: 2rem; }
  .nav-links { display: none; }
}
