@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&display=swap');

:root {
  --bg: #ffffff;
  --bg2: #f7f7f8;
  --card: #ffffff;
  --card2: rgba(0, 0, 0, 0.03);
  --text: #111111;
  --muted: #555555;
  --line: #e4e4e7;
  --brand: #7c3aed;
  --brand2: #22c55e;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
}

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.top-bar {
  background: var(--brand);
  color: #fff;
  font-size: 0.85rem;
  text-align: right;
  padding: 6px 0;
}

.top-bar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.top-bar a:hover {
  text-decoration: underline;
}

.top-bar-divider {
  margin: 0 10px;
  opacity: 0.5;
}

.contact-phone {
  margin-top: 16px;
  font-size: 1.25rem;
  font-weight: 600;
}

.contact-phone a {
  color: var(--brand);
  text-decoration: none;
}

.contact-phone a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}

/* Smooth scrolling and sticky-header offset for anchor links (e.g. /services#ai). */
html {
  scroll-behavior: smooth;
}
:target {
  scroll-margin-top: 100px;
}
[id] {
  scroll-margin-top: 100px;
}

/* AI-led dark hero (used on home + geo landing pages). */
.hero-ai {
  background: linear-gradient(135deg, #0f0820 0%, #1a0d35 50%, #2d1b4e 100%);
  color: #fff;
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero-ai::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.35) 0%, transparent 50%),
              radial-gradient(circle at 15% 85%, rgba(34, 197, 94, 0.18) 0%, transparent 45%);
  pointer-events: none;
}
.hero-ai .hero-inner { position: relative; z-index: 1; }
.hero-ai .eyebrow {
  display: inline-block;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.3);
  margin-bottom: 24px;
}
.hero-ai h1 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 48px;
  line-height: 1.15;
  margin: 0 0 20px 0;
  color: #fff;
  max-width: 780px;
}
.hero-ai h1 .accent {
  background: linear-gradient(90deg, #c4b5fd 0%, #86efac 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-ai .subtitle {
  color: #cbd5e1;
  font-size: 18px;
  max-width: 680px;
  margin: 0 0 32px 0;
  line-height: 1.6;
}
.hero-ai .button {
  background: #22c55e;
  color: #0f0820;
  border: none;
  font-weight: 700;
}
.hero-ai .button:hover { background: #16a34a; }
/* Chain both classes (.button.button-secondary) so this beats the base
   `.button.button-secondary` rule defined later in the file. */
.hero-ai .button.button-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
}
.hero-ai .button.button-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  color: #fff;
}
.hero-ai .hero-geo {
  margin-top: 28px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  color: #94a3b8;
  letter-spacing: 0.04em;
}
.hero-ai .hero-geo a {
  color: #cbd5e1;
  text-decoration: none;
  border-bottom: 1px dotted rgba(203, 213, 225, 0.4);
}
.hero-ai .hero-geo a:hover { color: #86efac; border-bottom-color: #86efac; }
.hero-ai .hero-geo .dot { color: #22c55e; margin: 0 8px; }
@media (max-width: 720px) {
  .hero-ai h1 { font-size: 34px; }
  .hero-ai { padding: 56px 0 64px; }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 750;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.nav-link[aria-current="page"] {
  color: var(--text);
  border-color: var(--line);
  background: rgba(0, 0, 0, 0.05);
}

.hero {
  padding: 64px 0 28px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 22px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05;
  margin: 0 0 14px;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 650;
  color: #ffffff;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--brand), #2563eb);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.button.button-secondary {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
}

.hero-card {
  border: 1px solid var(--line);
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.stat {
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
}

.stat + .stat { margin-top: 10px; }

.stat-label {
  color: var(--muted);
  font-size: 13px;
}

.stat-value {
  font-weight: 750;
  font-size: 18px;
}

.section {
  padding: 44px 0;
}

.section-muted {
  background: var(--bg2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

h1, h2, h3 {
  font-family: 'Libre Baskerville', Georgia, serif;
}

h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.services-grid .card {
  padding: 16px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.blog-card p {
  color: var(--muted);
  margin: 0;
}

.blog-card .button {
  margin-top: auto;
  align-self: flex-start;
}

.card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  align-items: start;
}

.callout {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.06), rgba(0, 0, 0, 0.02));
  border-radius: var(--radius);
  padding: 18px;
}

.list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.cred-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.cred-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.cred-item:first-child {
  border-top: 1px solid var(--line);
}

.cred-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.cred-check svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cred-item-text {
  flex: 1;
}

.cred-item-title {
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
  font-size: 15px;
}

.cred-item-body {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.contact-form-wrap {
  max-width: 560px;
}

.about-wrap {
  max-width: 680px;
}

.about-role {
  font-size: 14px;
  color: var(--brand);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 4px 0 24px;
}

.about-quote {
  border-left: 3px solid var(--brand);
  margin: 28px 0;
  padding: 12px 0 12px 20px;
}

.about-quote p {
  margin: 0;
  font-style: italic;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.about-closing {
  font-weight: 600;
  color: var(--text);
  margin-top: 24px;
}

.about-cta {
  max-width: 560px;
}

.about-cta h2 {
  margin-bottom: 8px;
}

.about-cta p {
  color: var(--muted);
  margin: 0 0 20px;
}

.page-hero {
  padding: 46px 0 10px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 10px;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: underline;
}

.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  background: var(--bg2);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
}

.footer-right a {
  color: var(--muted);
  text-decoration: none;
}

.form {
  margin-top: 12px;
}

.form-row {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

label {
  color: var(--muted);
  font-size: 13px;
}

input, textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--text);
  outline: none;
}

input:focus, textarea:focus {
  border-color: rgba(124, 58, 237, 0.7);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.18);
}

.form-status {
  margin: 10px 0 0;
  color: var(--muted);
  min-height: 22px;
}

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 16px 0;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Blog pagination ── */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--bg2);
  border-color: var(--brand);
  color: var(--brand);
}

.pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pagination-pages {
  display: flex;
  gap: 4px;
}

.pagination-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.pagination-num:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.pagination-num.is-active {
  background: linear-gradient(135deg, var(--brand), #2563eb);
  border-color: transparent;
  color: #fff;
  cursor: default;
}

/* ── Trust bar ── */
.trust-bar {
  background: var(--bg2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  text-align: center;
}

.trust-bar-text {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
  font-weight: 500;
}

.trust-industries {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.trust-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 20px;
  padding: 4px 12px;
  white-space: nowrap;
}

/* ── Qualification form ── */
.qualify-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 32px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.qualify-copy h2 {
  margin-bottom: 8px;
}

.qualify-copy p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

.qualify-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.qualify-row-email {
  margin-bottom: 0;
}

.qualify-select,
.qualify-email {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--text);
  font-size: 14px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.qualify-select:focus,
.qualify-email:focus {
  border-color: rgba(124, 58, 237, 0.7);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.qualify-submit {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 14px;
  border: none;
  cursor: pointer;
}

.qualify-status {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
  min-height: 18px;
}

/* ── FAQ ── */
.faq-list {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 32px 18px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  position: relative;
  font-family: 'Libre Baskerville', Georgia, serif;
  line-height: 1.4;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--brand);
  transition: transform 0.2s;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.faq-question[aria-expanded="true"]::after {
  content: '−';
}

.faq-answer {
  display: none;
  padding: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.faq-answer.is-open {
  display: block;
}

.faq-answer p {
  margin: 0;
}

.faq-cta {
  margin-top: 20px;
  font-size: 15px;
  color: var(--muted);
}

.faq-link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.faq-link:hover {
  text-decoration: underline;
}

/* ── Sticky CTA bar ── */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(135deg, var(--brand), #2563eb);
  color: #fff;
  padding: 12px 20px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  flex-wrap: wrap;
}

.sticky-cta-text {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  min-width: 200px;
}

.sticky-cta-btn {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.4);
  white-space: nowrap;
  font-size: 14px;
  padding: 8px 16px;
}

.sticky-cta-btn:hover {
  background: rgba(255,255,255,0.28);
}

.sticky-cta-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  flex-shrink: 0;
}

.sticky-cta-close:hover {
  color: #fff;
}

/* ── Proof card (case study snippet) ── */
.proof-card {
  border-left: 3px solid var(--brand2);
}

.proof-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand2);
  margin: 0 0 8px;
}

.proof-text {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
  margin: 0;
  line-height: 1.6;
}

/* ── Who this is for cards ── */
.who-card {
  border-left: 3px solid var(--brand);
}

.who-profile {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ── Hamburger toggle ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Tablet (≤ 900px) ── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .qualify-wrap {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ── Mobile (≤ 640px) ── */
@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  /* Header */
  .header-inner {
    flex-wrap: nowrap;
    padding: 12px 0;
  }

  .brand-name {
    font-size: 14px;
  }

  /* Hamburger */
  .nav-toggle {
    display: flex;
  }

  /* Nav becomes a dropdown */
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 10px 16px 16px;
    gap: 4px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav-link {
    padding: 10px 12px;
    font-size: 16px;
  }

  /* Site header needs relative for the dropdown */
  .site-header {
    position: sticky;
  }

  /* Hero */
  .hero {
    padding: 36px 0 20px;
  }

  .hero-copy h1 {
    font-size: 28px;
  }

  .subtitle {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    text-align: center;
    justify-content: center;
  }

  /* Sections */
  .section {
    padding: 28px 0;
  }

  .page-hero {
    padding: 28px 0 8px;
  }

  /* Grids */
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  /* Typography */
  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 16px;
  }

  /* Callout CTA button */
  .callout .button {
    display: block;
    text-align: center;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
  }

  /* Qualify form */
  .qualify-row {
    flex-direction: column;
  }

  .qualify-select,
  .qualify-email {
    width: 100%;
  }

  .qualify-row-email {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .qualify-submit {
    width: 100%;
  }

  /* Sticky CTA */
  .sticky-cta-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .sticky-cta-text {
    min-width: unset;
  }

  .sticky-cta-close {
    position: absolute;
    top: 10px;
    right: 16px;
  }

  .sticky-cta {
    position: relative;
  }

  /* Pagination */
  .blog-pagination {
    gap: 6px;
    flex-wrap: wrap;
  }

  .pagination-btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .pagination-num {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
}
