/* ═══════════════════════════════════════════
   SEO PILLAR — "LIVING GRAPH"
   Page-specific styles for /seo-company-los-angeles
   Visceral, premium, alive. Pillar = hub (no FAQ, no pricing).
   ═══════════════════════════════════════════ */

/* ── Screen-reader-only utility (local to this page) ── */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ── HERO ── */
.seo-hero {
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-h);
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}
.seo-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}
.seo-hero__label {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
.seo-hero__label.seo-revealed { opacity: 1; transform: translateY(0); }

.seo-hero__h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 24px;
  color: var(--text);
}
.seo-hero__h1 .seo-word {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1),
              filter .6s cubic-bezier(.16,1,.3,1),
              transform .6s cubic-bezier(.16,1,.3,1);
}
.seo-hero__h1 .seo-word.seo-revealed { opacity: 1; filter: blur(0); transform: translateY(0); }
.seo-hero__h1 .highlight {
  background: linear-gradient(135deg, #60a5fa, #3b82f6, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.seo-hero__sub {
  color: var(--text-2);
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 660px;
  margin: 0 auto 36px;
  opacity: 0;
  filter: blur(4px);
  transform: translateY(12px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1),
              filter .6s cubic-bezier(.16,1,.3,1),
              transform .6s cubic-bezier(.16,1,.3,1);
}
.seo-hero__sub.seo-revealed { opacity: 1; filter: blur(0); transform: translateY(0); }

.seo-hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
.seo-hero__ctas.seo-revealed { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════════
   LIVING GRAPH — signature visualization
   ════════════════════════════════════════════ */
.seo-graph {
  position: relative;
  padding: 80px 0 60px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.seo-graph__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
  padding: 0 24px;
}
.seo-graph__head h2 { margin-bottom: 12px; }
.seo-graph__head p { color: var(--text-2); font-size: 1rem; line-height: 1.6; }

.seo-graph__stage {
  position: relative;
  width: 100%;
  height: 720px;
  max-width: 1100px;
  margin: 0 auto;
}
.seo-graph__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: default;
}
.seo-graph__canvas--interactive {
  cursor: pointer;
}

.seo-graph__legend {
  margin: 32px auto 0;
  max-width: 720px;
  text-align: center;
  padding: 0 24px;
  color: var(--text-2);
  font-size: .95rem;
  line-height: 1.7;
}
.seo-graph__legend em {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}
.seo-graph__hint {
  display: block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--text-3);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Floating tooltip rendered by JS over canvas */
.seo-graph__tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--surface-2);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -130%);
  transition: opacity .2s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 24px rgba(59,130,246,0.12);
  z-index: 5;
}
.seo-graph__tooltip.is-visible { opacity: 1; }
.seo-graph__tooltip::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px; height: 8px;
  background: var(--surface-2);
  border-right: 1px solid var(--border-accent);
  border-bottom: 1px solid var(--border-accent);
}

/* ════════════════════════════════════════════
   GROWTH COUNTERS
   ════════════════════════════════════════════ */
.seo-counters {
  padding: 80px 0;
}
.seo-counters__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.seo-counter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.seo-counter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(280px circle at 50% 0%, rgba(59,130,246,0.08), transparent 60%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.seo-counter:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(0,0,0,0.32), 0 0 32px rgba(59,130,246,0.06);
}
.seo-counter:hover::before { opacity: 1; }

.seo-counter__value {
  font-family: var(--mono);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 700;
  background: linear-gradient(135deg, #60a5fa, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 8px;
}
.seo-counter__label {
  color: var(--text-3);
  font-size: .82rem;
  line-height: 1.5;
}

/* ════════════════════════════════════════════
   SERP CLIMB
   ════════════════════════════════════════════ */
.seo-serp {
  padding: 80px 0;
  background: var(--bg-2);
}
.seo-serp__wrap {
  max-width: 760px;
  margin: 32px auto 0;
  background: #fafbfc;
  color: #202124;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 24px 28px 28px;
  font-family: arial, sans-serif;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.45), 0 0 60px rgba(59,130,246,0.08);
}
.seo-serp__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -24px -28px 16px;
  padding: 12px 28px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  font-family: arial, sans-serif;
}
.seo-serp__google {
  font-family: arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.5px;
}
.seo-serp__google span:nth-child(1) { color: #4285f4; }
.seo-serp__google span:nth-child(2) { color: #ea4335; }
.seo-serp__google span:nth-child(3) { color: #fbbc05; }
.seo-serp__google span:nth-child(4) { color: #4285f4; }
.seo-serp__google span:nth-child(5) { color: #34a853; }
.seo-serp__google span:nth-child(6) { color: #ea4335; }

.seo-serp__search {
  flex: 1;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 24px;
  padding: 6px 16px;
  font-size: .85rem;
  color: #5f6368;
  display: flex;
  align-items: center;
  gap: 8px;
}
.seo-serp__search::before {
  content: '🔍';
  font-size: .8rem;
  opacity: .6;
}
.seo-serp__count {
  font-size: .75rem;
  color: #4a5060;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ebebeb;
}
.seo-serp__list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.seo-serp__item {
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 4px;
  position: relative;
  transition: transform .8s cubic-bezier(.34,1.56,.64,1),
              background .8s ease,
              box-shadow .8s ease,
              border-color .8s ease;
  border: 1px solid transparent;
  background: transparent;
}
.seo-serp__item--you {
  background: #fff7ed;
  border-color: #fed7aa;
}
.seo-serp__item--you.is-climbed {
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #93c5fd;
  box-shadow: 0 4px 16px rgba(59,130,246,0.18);
  transform: scale(1.02);
}
.seo-serp__pos {
  position: absolute;
  left: -36px;
  top: 12px;
  font-family: var(--mono);
  font-size: .72rem;
  color: #5a6272;
  font-weight: 600;
  width: 24px;
  text-align: right;
  transition: color .8s ease;
}
.seo-serp__item--you .seo-serp__pos { color: #f97316; }
.seo-serp__item--you.is-climbed .seo-serp__pos { color: #2563eb; }

.seo-serp__crumb {
  font-size: .75rem;
  color: #5f6368;
  margin-bottom: 2px;
}
.seo-serp__title {
  font-size: 1.05rem;
  color: #1a0dab;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 4px;
}
.seo-serp__item--you .seo-serp__title { font-weight: 500; }
.seo-serp__desc {
  font-size: .82rem;
  color: #4d5156;
  line-height: 1.5;
}
.seo-serp__caption {
  margin-top: 18px;
  text-align: center;
  color: #4a5060;
  font-size: .85rem;
  font-family: var(--sans);
}
.seo-serp__caption strong { color: #1e4ed8; font-weight: 700; }

/* Climb arrow indicator */
.seo-serp__arrow {
  position: absolute;
  left: -52px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--accent);
  opacity: 0;
  transition: opacity .6s ease .8s;
}
.seo-serp__item--you.is-climbed .seo-serp__arrow { opacity: 1; }

/* ════════════════════════════════════════════
   CLUSTER CARDS
   ════════════════════════════════════════════ */
.seo-clusters { padding: 100px 0; }
.seo-clusters__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.seo-cluster {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.16,1,.3,1),
              border-color .3s,
              box-shadow .35s;
}
.seo-cluster::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(59,130,246,0.10), transparent 55%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.seo-cluster:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  box-shadow: 0 12px 40px rgba(0,0,0,0.32), 0 0 32px rgba(59,130,246,0.10);
  color: var(--text);
}
.seo-cluster:hover::before { opacity: 1; }
.seo-cluster__num {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--accent);
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.seo-cluster h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.seo-cluster p {
  color: var(--text-2);
  font-size: .88rem;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.seo-cluster__link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
}

/* ════════════════════════════════════════════
   METHODOLOGY
   ════════════════════════════════════════════ */
.seo-method {
  padding: 100px 0;
  background: var(--bg-2);
}
.seo-method__inner {
  max-width: 820px;
  margin: 0 auto;
}
.seo-method__list {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}
.seo-method__item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .3s, transform .3s;
}
.seo-method__item:hover { border-color: var(--border-accent); transform: translateX(4px); }
.seo-method__bullet {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--accent);
  font-weight: 700;
  padding-top: 2px;
}
.seo-method__item .seo-method__title {
  font-size: .98rem;
  margin: 0 0 4px;
  color: var(--text);
  font-weight: 700;
}
.seo-method__item p {
  color: var(--text-2);
  font-size: .88rem;
  line-height: 1.6;
  margin: 0;
}

/* ════════════════════════════════════════════
   BLOG HUB
   ════════════════════════════════════════════ */
.seo-blog { padding: 100px 0; }
.seo-blog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.seo-blog__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.seo-blog__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), #6366f1);
  transition: width .4s ease;
}
.seo-blog__card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  color: var(--text);
}
.seo-blog__card:hover::before { width: 100%; }
.seo-blog__tag {
  font-family: var(--mono);
  font-size: .65rem;
  color: var(--accent);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.seo-blog__card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.35;
}
.seo-blog__card p {
  color: var(--text-2);
  font-size: .82rem;
  line-height: 1.5;
  margin: 0 0 14px;
  flex: 1;
}
.seo-blog__more {
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
}

/* ════════════════════════════════════════════
   CTA
   ════════════════════════════════════════════ */
.seo-cta {
  text-align: center;
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}
.seo-cta__glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 800px; height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.seo-cta h2 { margin-bottom: 14px; }
.seo-cta__sub {
  color: var(--text-2);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .seo-counters__grid { grid-template-columns: repeat(2, 1fr); }
  .seo-clusters__grid { grid-template-columns: repeat(2, 1fr); }
  .seo-graph__stage { height: 620px; }
}
@media (max-width: 768px) {
  .seo-hero { min-height: auto; padding-top: calc(var(--nav-h) + 24px); padding-bottom: 40px; }
  .seo-hero__h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
  .seo-hero__sub { font-size: 1rem; }
  .seo-hero__ctas { flex-direction: column; align-items: center; }

  .seo-graph { padding: 60px 0 40px; }
  .seo-graph__stage { height: 520px; }

  .seo-counters, .seo-serp, .seo-clusters, .seo-method, .seo-blog, .seo-cta { padding: 60px 0; }
  .seo-counters__grid { gap: 12px; }
  .seo-counter { padding: 20px 14px; }
  .seo-clusters__grid { grid-template-columns: 1fr; }

  /* SERP — collapse position to inline on left */
  .seo-serp__wrap { padding: 16px 18px 20px; }
  .seo-serp__chrome { margin: -16px -18px 12px; padding: 10px 18px; }
  .seo-serp__pos { left: 4px; top: 8px; position: relative; display: inline-block; margin-right: 6px; }
  .seo-serp__item { padding-left: 8px; }
  .seo-serp__item--you.is-climbed { transform: scale(1.01); }
  .seo-serp__arrow { display: none; }
}
@media (max-width: 480px) {
  .seo-hero__ctas .btn { width: 100%; justify-content: center; }
  .seo-counters__grid { grid-template-columns: 1fr 1fr; }
  .seo-counter__value { font-size: 1.5rem; }
  .seo-graph__stage { height: 460px; }
  .seo-serp__title { font-size: .95rem; }
  .seo-serp__desc { font-size: .76rem; }
}

/* ════════════════════════════════════════════
   REDUCED MOTION
   ════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .seo-hero__h1 .seo-word,
  .seo-hero__sub,
  .seo-hero__ctas,
  .seo-hero__label {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }
  .seo-serp__item,
  .seo-counter,
  .seo-cluster,
  .seo-blog__card,
  .seo-method__item {
    transition: none !important;
  }
  .seo-serp__item--you.is-climbed { transform: none !important; }
}
