/*
Theme Name: AI Blind Spot
Theme URI: https://theaiblindspot.com
Author: Ben Merrick, CPA
Author URI: https://theaiblindspot.com
Description: WordPress theme for The AI Blind Spot website. Dark navy theme with amber accents, designed for accounting firm owners. Features the AI Operating System framework, blog, and lead magnet integration.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aib-blindspot
Requires at least: 6.0
Requires PHP: 7.4
Tags: one-column, custom-colors, custom-logo, custom-menu, featured-images, full-site-editing, block-patterns, translation-ready
*/

/* ─────────────────────────────────────────────────────────
   THE AI BLIND SPOT  |  Brand stylesheet
   Last updated: launch
   ───────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&family=Newsreader:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --navy: #0A1628;
  --navy-darker: #050D18;
  --navy-warm: #122240;
  --amber: #F59E0B;
  --amber-warm: #FBBF24;
  --amber-dark: #B45309;
  --slate: #334155;
  --slate-light: #64748B;
  --light-gray: #94A3B8;
  --off-white: #F8FAFC;
  --pale-gray: #F1F5F9;
  --white: #FFFFFF;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-editorial: 'Newsreader', Georgia, serif;

  --max-width: 1280px;
  --content-width: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--amber-dark); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--amber); }

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

/* ───── NAVIGATION ───── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--amber);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand-logo {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.08em;
  color: var(--white);
  text-decoration: none;
}
.brand-logo .accent { color: var(--amber); }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  color: var(--off-white);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--amber); }
.nav-cta {
  background: var(--amber);
  color: var(--navy) !important;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 700 !important;
  transition: all 0.2s ease;
}
.nav-cta:hover { background: var(--amber-warm); transform: translateY(-1px); }

/* ───── HERO ───── */
.hero {
  background: var(--navy);
  background-image:
    radial-gradient(ellipse at top left, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(245, 158, 11, 0.05) 0%, transparent 60%);
  color: var(--white);
  padding: 96px 32px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--amber);
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
  color: var(--white);
}
.hero-title .accent { color: var(--amber); }
.hero-sub {
  font-family: var(--font-editorial);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  font-style: italic;
  color: var(--off-white);
  margin-bottom: 36px;
  max-width: 560px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--amber);
  color: var(--navy);
}
.btn-primary:hover { background: var(--amber-warm); transform: translateY(-2px); color: var(--navy); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--off-white);
}
.btn-secondary:hover { background: var(--white); color: var(--navy); }

/* Video container */
.hero-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy-darker);
  border: 2px solid var(--amber);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5);
}
.hero-video video,
.hero-video iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--off-white);
  text-align: center;
  padding: 24px;
}
.video-placeholder .play-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.video-placeholder .play-icon::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 22px solid var(--navy);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 6px;
}
.video-placeholder p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--light-gray);
  letter-spacing: 0.04em;
}

/* ───── SECTIONS ───── */
.section {
  padding: 96px 32px;
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
}
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--navy);
  margin-bottom: 32px;
}
.section-title .accent { color: var(--amber); }
.section-lead {
  font-family: var(--font-editorial);
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.6;
  color: var(--slate);
  margin-bottom: 24px;
}
.section-body p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--slate);
  margin-bottom: 20px;
}

/* ───── PROBLEM / DIAGNOSIS ───── */
.diagnosis {
  background: var(--pale-gray);
  position: relative;
}
.diagnosis-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.diagnosis-image {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--navy);
  position: relative;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.2);
}
.diagnosis-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.diagnosis-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-gray);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.08em;
  background:
    linear-gradient(135deg, var(--navy) 0%, var(--navy-warm) 100%);
}

/* ───── FRAMEWORK / AI-OS ───── */
.framework {
  background: var(--navy);
  color: var(--white);
  position: relative;
}
.framework .section-title { color: var(--white); }
.framework .section-title .accent { color: var(--amber); }
.framework .section-eyebrow { color: var(--amber); }
.framework .section-lead { color: var(--off-white); }
.framework-layers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.layer-card {
  background: var(--navy-warm);
  border-top: 3px solid var(--amber);
  padding: 32px 24px;
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.layer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(245, 158, 11, 0.2);
}
.layer-num {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 12px;
}
.layer-name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 12px;
}
.layer-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--light-gray);
}

/* ───── BEN INTRO ───── */
.host-intro {
  background: var(--off-white);
}
.host-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: center;
}
.host-image {
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  background: var(--navy);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
  position: relative;
}
.host-image img { width: 100%; height: 100%; object-fit: cover; }
.host-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-gray);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.08em;
  background:
    linear-gradient(160deg, var(--navy) 0%, var(--navy-warm) 100%);
}

/* ───── BLOG PREVIEW ───── */
.blog-preview {
  background: var(--pale-gray);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.blog-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.15);
}
.blog-card-image {
  aspect-ratio: 16 / 9;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-gray);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-warm) 100%);
}
.blog-card-body {
  padding: 28px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-category {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 12px;
}
.blog-card-title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--navy);
  margin-bottom: 16px;
}
.blog-card-excerpt {
  font-size: 15px;
  line-height: 1.55;
  color: var(--slate);
  margin-bottom: 20px;
  flex: 1;
}
.blog-card-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-dark);
  text-decoration: none;
  margin-top: auto;
}
.blog-card-link::after {
  content: ' →';
  transition: transform 0.2s ease;
  display: inline-block;
}
.blog-card-link:hover::after { transform: translateX(4px); }

/* ───── LEAD MAGNET CTA ───── */
.lead-magnet {
  background: var(--navy);
  color: var(--white);
  padding: 96px 32px;
  position: relative;
  overflow: hidden;
}
.lead-magnet::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--amber);
}
.lead-magnet-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.lead-magnet .section-eyebrow { color: var(--amber); }
.lead-magnet .section-title { color: var(--white); }
.lead-magnet .section-title .accent { color: var(--amber); }
.lead-magnet p { color: var(--off-white); font-size: 17px; line-height: 1.65; margin-bottom: 16px; }
.opt-in-form {
  background: var(--navy-warm);
  padding: 36px 32px;
  border-radius: 6px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.opt-in-form label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}
.opt-in-form input {
  width: 100%;
  padding: 14px 16px;
  background: var(--white);
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 16px;
}
.opt-in-form input:focus { outline: 2px solid var(--amber); }
.opt-in-form button {
  width: 100%;
  padding: 16px;
  background: var(--amber);
  color: var(--navy);
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}
.opt-in-form button:hover { background: var(--amber-warm); }
.opt-in-form .privacy {
  font-size: 12px;
  color: var(--light-gray);
  margin-top: 14px;
  margin-bottom: 0;
  text-align: center;
  letter-spacing: 0;
}

/* ───── FOOTER ───── */
.site-footer {
  background: var(--navy-darker);
  color: var(--light-gray);
  padding: 64px 32px 32px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 48px;
}
.footer-brand .brand-logo {
  font-size: 28px;
  margin-bottom: 16px;
  display: inline-block;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 360px;
  color: var(--light-gray);
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--light-gray);
  font-size: 14px;
  text-decoration: none;
}
.footer-col a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--slate-light);
  letter-spacing: 0.04em;
}

/* ───── ARTICLE PAGE ───── */
.article-header {
  background: var(--navy);
  color: var(--white);
  padding: 80px 32px 64px;
  position: relative;
}
.article-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--amber);
}
.article-header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}
.article-meta {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 24px;
}
.article-meta .dot { color: var(--light-gray); margin: 0 8px; }
.article-meta .read-time { color: var(--off-white); }
.article-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: var(--white);
  margin-bottom: 24px;
}
.article-byline {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 16px;
  color: var(--off-white);
  border-top: 1px solid rgba(245, 158, 11, 0.3);
  padding-top: 20px;
}
.article-body {
  background: var(--off-white);
  padding: 64px 32px 96px;
}
.article-body-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}
.article-body p {
  font-family: var(--font-editorial);
  font-size: 19px;
  line-height: 1.7;
  color: var(--slate);
  margin-bottom: 24px;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--navy);
  margin-top: 56px;
  margin-bottom: 20px;
}
.article-body h2::before {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--amber);
  margin-bottom: 16px;
}
.pull-quote {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 26px;
  line-height: 1.4;
  color: var(--navy);
  border-left: 4px solid var(--amber);
  padding: 8px 0 8px 28px;
  margin: 40px 0;
}
.article-cta {
  background: var(--navy);
  color: var(--white);
  padding: 36px 32px;
  border-radius: 6px;
  margin: 56px 0 32px;
  border-left: 5px solid var(--amber);
}
.article-cta-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}
.article-cta-title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 16px;
}
.article-cta-title.no-margin-rule::before { display: none; }
.article-cta p {
  font-family: var(--font-body) !important;
  font-style: normal !important;
  font-size: 15px !important;
  color: var(--off-white) !important;
  margin-bottom: 20px !important;
  line-height: 1.6 !important;
}
.article-cta .btn-primary { display: inline-block; }

.related-articles {
  background: var(--pale-gray);
  padding: 64px 32px;
}
.related-articles-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.related-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 8px;
}
.related-title {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--navy);
  margin-bottom: 32px;
}

/* ───── BLOG LANDING ───── */
.blog-hero {
  background: var(--navy);
  color: var(--white);
  padding: 80px 32px 64px;
  position: relative;
}
.blog-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--amber);
}
.blog-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.blog-hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 16px;
}
.blog-hero-title .accent { color: var(--amber); }
.blog-hero-sub {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 20px;
  color: var(--off-white);
  max-width: 640px;
}
.blog-list {
  background: var(--off-white);
  padding: 64px 32px 96px;
}
.blog-list-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ───── RESPONSIVE ───── */
@media (max-width: 960px) {
  .hero-inner,
  .diagnosis-grid,
  .host-grid,
  .lead-magnet-inner { grid-template-columns: 1fr; gap: 48px; }
  .framework-layers { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .nav-links { gap: 20px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .section { padding: 64px 24px; }
  .article-body p { font-size: 17px; }
}
@media (max-width: 540px) {
  .framework-layers { grid-template-columns: 1fr; }
  .hero { padding: 56px 20px 48px; }
  .lead-magnet { padding: 64px 24px; }
}

/* WordPress-specific adjustments */
.alignwide {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  left: 50%;
  right: 50%;
}

.wp-block-image img {
  height: auto;
}

.site-content {
  padding-top: 0 !important;
}