/* Copyright (c) 2024 Ryan Leckey Media. All rights reserved.
   No use, distribution, or modification is permitted without prior written permission. */

/* ==========================================================================
   V2 supplement for the SEO landing pages (/marketing/, /industries/).

   The landing pages are built from the V2 design system: .v2-section,
   .v2-container, .v2-bento, .btn-v2, .label-line, .grad-text and .reveal
   all come from v2.css. This file adds only the four components those
   pages need that V2 did not already have, using V2 tokens so nothing here
   introduces a second palette:

     .seo-crumb   breadcrumb trail
     .seo-chip    town / county / service pills (the internal-link rails)
     .seo-faq     accordion for the FAQ blocks that feed FAQPage schema
     .seo-fact    small factual statement card

   Everything is scoped under .v2 to match v2.css specificity.
   ========================================================================== */

/* ---------------------------------------------------------------- breadcrumb */

.v2 .seo-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
  color: var(--fg-4);
}
.v2 .seo-crumb a {
  color: var(--fg-3);
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}
.v2 .seo-crumb a:hover { color: var(--c-cyan); }
.v2 .seo-crumb span[aria-hidden] { color: var(--fg-4); }

/* --------------------------------------------------------------------- chips */

.v2 .seo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.v2 .seo-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  color: var(--fg-2);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--bd-white);
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out),
              color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.v2 .seo-chip:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: var(--bd-strong);
  background: rgba(0, 240, 255, 0.07);
}

/* Primary markets and "see everything" links, so the eye can tell the rails apart. */
.v2 .seo-chip--hot {
  border-color: rgba(255, 0, 240, 0.28);
  background: rgba(255, 0, 240, 0.05);
}
.v2 .seo-chip--hot:hover {
  border-color: rgba(255, 0, 240, 0.55);
  background: rgba(255, 0, 240, 0.1);
}

/* ----------------------------------------------------------------- fact cards */

.v2 .seo-facts {
  display: grid;
  gap: 16px;
  margin-top: 36px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.v2 .seo-fact {
  position: relative;
  padding: 24px;
  border-radius: var(--r);
  background: var(--bg-2);
  border: 1px solid var(--bd-white);
  overflow: hidden;
}
.v2 .seo-fact::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
  opacity: 0.7;
}
.v2 .seo-fact p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--fg-3);
}

/* ----------------------------------------------------------------------- FAQ */

.v2 .seo-faq {
  display: grid;
  gap: 12px;
  margin-top: 36px;
  max-width: 900px;
}

.v2 .seo-faq__item {
  border-radius: var(--r);
  background: var(--bg-2);
  border: 1px solid var(--bd-white);
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out);
}
.v2 .seo-faq__item[open] { border-color: var(--bd-strong); }

.v2 .seo-faq__q {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--fg);
  list-style: none;
}
.v2 .seo-faq__q::-webkit-details-marker { display: none; }
.v2 .seo-faq__q::after {
  content: "+";
  margin-left: auto;
  flex: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--c-cyan);
  transition: transform 0.3s var(--ease-out);
}
.v2 .seo-faq__item[open] .seo-faq__q::after { transform: rotate(45deg); }

.v2 .seo-faq__a {
  padding: 0 24px 22px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.72;
  color: var(--fg-3);
  max-width: 78ch;
}

/* --------------------------------------------------------------- check lists */

.v2 .seo-check {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.v2 .seo-check li {
  position: relative;
  padding-left: 32px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--fg-3);
}
.v2 .seo-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
}
/* Problem lists read differently from capability lists. */
.v2 .seo-check--warn li::before { background: linear-gradient(120deg, #ff8a0e, var(--c-pink)); }

/* --------------------------------------------------------------- two column */

.v2 .seo-split {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
  margin-top: 40px;
}
.v2 .seo-split h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--fg);
}
.v2 .seo-split p {
  font-family: var(--font-body);
  font-size: 0.99rem;
  line-height: 1.75;
  color: var(--fg-3);
}
.v2 .seo-split p strong { color: var(--fg); font-weight: 600; }

/* A directory block per county on /marketing/. */
.v2 .seo-county + .seo-county { margin-top: 52px; }
.v2 .seo-county h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.v2 .seo-county h3 a { color: var(--fg); text-decoration: none; }
.v2 .seo-county h3 a:hover { color: var(--c-cyan); }
.v2 .seo-county .count {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--fg-4);
  margin-left: 10px;
}
.v2 .seo-county > p {
  font-family: var(--font-body);
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--fg-3);
  max-width: 78ch;
  margin: 10px 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .v2 .seo-chip:hover { transform: none; }
}

/* ============================================================
   Industry roster on /industries/ — one row per vertical.
   Each row carries its own neon accent via --acc / --acc2;
   everything (beam, icon, eyebrow, chips, hover) derives from
   those two variables.
   ============================================================ */
.v2 .seo-roster { display: grid; gap: 14px; }

.v2 .seo-roster-row {
  --acc:  var(--c-cyan);
  --acc2: var(--c-pink);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 18px 48px;
  align-items: start;
  padding: 30px 34px 30px 38px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bd-white);
  border-radius: var(--r-lg);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.45s var(--ease-out),
              border-color 0.45s ease,
              box-shadow 0.45s ease;
}
.v2 .seo-roster-row.acc-cyan    { --acc: #00f0ff; --acc2: #0080ff; }
.v2 .seo-roster-row.acc-magenta { --acc: #ff00f0; --acc2: #7a42ff; }
.v2 .seo-roster-row.acc-orange  { --acc: #ff8a0e; --acc2: #ffd400; }
.v2 .seo-roster-row.acc-violet  { --acc: #7a42ff; --acc2: #ff00f0; }
.v2 .seo-roster-row.acc-green   { --acc: #3dffa0; --acc2: #00f0ff; }
.v2 .seo-roster-row.acc-red     { --acc: #ff0040; --acc2: #ff8a0e; }

/* Accent beam on the left edge */
.v2 .seo-roster-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--acc), var(--acc2));
  opacity: 0.85;
  z-index: 1;
}
/* Accent wash that floods in on hover */
.v2 .seo-roster-row::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
              color-mix(in srgb, var(--acc) 14%, transparent),
              transparent 60%);
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: -1;
}
.v2 .seo-roster-row:hover,
.v2 .seo-roster-row:focus-visible {
  transform: translateX(8px);
  border-color: color-mix(in srgb, var(--acc) 55%, transparent);
  box-shadow: 0 18px 60px color-mix(in srgb, var(--acc) 20%, transparent);
}
.v2 .seo-roster-row:hover::after,
.v2 .seo-roster-row:focus-visible::after { opacity: 1; }
.v2 .seo-roster-row:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
}

.v2 .seo-roster-id {
  display: flex;
  gap: 18px;
  align-items: center;
}
.v2 .seo-roster-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  color: #0b0b0c;
  font-size: 1.05rem;
  box-shadow: 0 6px 22px color-mix(in srgb, var(--acc) 35%, transparent);
}
.v2 .seo-roster-name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--fg);
  margin: 0;
}
.v2 .seo-roster-row:hover .seo-roster-name,
.v2 .seo-roster-row:focus-visible .seo-roster-name {
  background: linear-gradient(120deg, var(--acc), var(--acc2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.v2 .seo-roster-body p {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--fg-3);
  margin: 0;
}
.v2 .seo-roster-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 18px;
}
.v2 .seo-roster-mix {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}
.v2 .seo-roster-mix .chip {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent);
  background: color-mix(in srgb, var(--acc) 8%, transparent);
  color: var(--fg-2);
  white-space: nowrap;
}
.v2 .seo-roster-go {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--acc);
  white-space: nowrap;
  margin-left: auto;
}
.v2 .seo-roster-go span {
  display: inline-block;
  transition: transform 0.35s var(--ease-out);
}
.v2 .seo-roster-row:hover .seo-roster-go span,
.v2 .seo-roster-row:focus-visible .seo-roster-go span { transform: translateX(6px); }

@media (max-width: 860px) {
  .v2 .seo-roster-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 22px 24px 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .v2 .seo-roster-row,
  .v2 .seo-roster-row::after,
  .v2 .seo-roster-go span { transition: none; }
  .v2 .seo-roster-row:hover { transform: none; }
}

/* Roster variants: ranked rows (channel mix, where order = budget priority)
   and a two-column compact mode for cross-link blocks. */
.v2 .seo-roster-rank {
  flex: 0 0 auto;
  min-width: 46px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--acc);
  text-align: center;
}
.v2 .seo-roster--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v2 .seo-roster--duo .seo-roster-row {
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 24px 24px 24px 28px;
}
@media (max-width: 860px) {
  .v2 .seo-roster--duo { grid-template-columns: 1fr; }
}
