/* ============================================================
   AI-Built Website Fix — page.css
   Extends ../../style.css
   ============================================================ */

/* ── Service hero (self-contained) ──────────────────────────── */
.svc-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  padding-top: 4rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.svc-hero-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.svc-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: center;
}

.hero-example-img {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  align-self: center;
}

.hero-example-img img {
  width: 100%;
  height: auto;
  display: block;
}

#heroParticles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.svc-hero-h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-size: clamp(2rem, min(4.5vw, 8svh), 3.5rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.15;
  margin: 0.25rem 0 0.375rem;
}

.svc-hero-sub {
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  color: var(--muted);
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 1.25rem;
}

.svc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.75rem;
  margin-bottom: 0.875rem;
  flex-wrap: wrap;
}

.svc-bc-home {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--white);
  -webkit-text-fill-color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s;
}

.svc-bc-home:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.svc-bc-current {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.875rem;
  background: var(--accent);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--white);
  -webkit-text-fill-color: var(--white);
  white-space: nowrap;
}

.svc-bc-arrow {
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.8;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-wrap: wrap;
}


/* ── Shared section-sub utility ──────────────────────────────── */
.section-sub {
  font-size: clamp(0.9375rem, 1.25vw, 1rem);
  color: var(--muted);
  line-height: 1.75;
  max-width: 640px;
  margin-top: -0.5rem;
}


/* ── Quick Answers ───────────────────────────────────────────── */
.aif-qa-section {
  background: var(--surface);
}

.aif-qa-head {
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.aif-qa-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.aif-qa-item {
  background: var(--surface2);
  padding: 1.875rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.aif-qa-q {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
}

.aif-qa-a {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
}


/* ── Problem ─────────────────────────────────────────────────── */
.aif-problem-section {
  background: var(--bg);
}

.aif-problem-head {
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.aif-problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.aif-problem-item {
  background: var(--surface2);
  padding: 1.5rem 1.875rem;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.aif-problem-item::before {
  content: '';
  display: block;
  width: 14px;
  height: 1px;
  background: var(--border2);
  flex-shrink: 0;
  margin-top: 0.72em;
}


/* ── What We Fix ─────────────────────────────────────────────── */
.aif-fix-section {
  background: var(--surface2);
}

.aif-fix-head {
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.aif-fix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.aif-fix-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 1.5rem 1.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.aif-fix-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.5em;
}

.aif-fix-text {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
}

.aif-fix-text strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}


/* ── What We Do Not Pretend ──────────────────────────────────── */
.aif-honest-section {
  background: var(--surface);
}

.aif-honest-head {
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.aif-honest-list {
  border-top: 1px solid var(--border);
  max-width: 840px;
}

.aif-honest-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
  display: flex;
  align-items: flex-start;
  gap: 1.125rem;
}

.aif-honest-num {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 0.28em;
  min-width: 1.5rem;
}


/* ── AI-Built Website Audit ──────────────────────────────────── */
.aif-audit-section {
  background: var(--bg);
}

.aif-audit-head {
  margin-bottom: 3rem;
  max-width: 640px;
}

.aif-audit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.aif-audit-item {
  background: var(--surface2);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.aif-audit-num {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.aif-audit-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.aif-audit-desc {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.75;
}


/* ── Repair Paths ────────────────────────────────────────────── */
.aif-paths-section {
  background: var(--surface2);
}

.aif-paths-head {
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.aif-paths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.aif-path-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.aif-path-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.aif-path-title {
  font-size: 1.1875rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.aif-path-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
  flex: 1;
}

.aif-path-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  text-decoration: none;
  padding-top: 0.5rem;
  transition: opacity 0.2s;
}

.aif-path-cta:hover {
  opacity: 0.75;
}


/* ── Who This Is For ─────────────────────────────────────────── */
.aif-fit-section {
  background: var(--surface);
}

.aif-fit-head {
  margin-bottom: 2.5rem;
  max-width: 640px;
}


/* ── Process ─────────────────────────────────────────────────── */
.aif-process-section {
  background: var(--bg);
}

.aif-process-head {
  margin-bottom: 3rem;
  max-width: 640px;
}

.aif-steps-list {
  border-top: 1px solid var(--border);
}

.aif-step-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, padding-left 0.2s, padding-right 0.2s;
}

.aif-step-row:hover {
  background: rgba(59, 130, 246, 0.03);
  padding-left: 1rem;
  padding-right: 1rem;
}

.aif-step-left {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
}

.aif-step-num {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
  flex-shrink: 0;
}

.aif-step-name {
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.aif-step-desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.85;
  padding-top: 0.25rem;
}


/* ── Service Links ───────────────────────────────────────────── */
.aif-links-section {
  background: var(--surface2);
}

.aif-links-head {
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.aif-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.aif-link-card {
  background: var(--surface);
  padding: 1.5rem 1.875rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background 0.2s;
}

.aif-link-card:hover {
  background: var(--bg);
}

.aif-link-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}


/* ── Final CTA ───────────────────────────────────────────────── */
.aif-cta-section {
  background: var(--surface);
}

.aif-cta-inner {
  max-width: 720px;
}

.aif-cta-title {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 1rem;
  background: linear-gradient(160deg, #ffffff 20%, #c0d0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.aif-cta-body {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 580px;
}

.aif-cta-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.aif-cta-email {
  font-size: 0.9375rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.aif-cta-email:hover {
  color: var(--white);
}


/* ── Nav active ─────────────────────────────────────────────── */
.nav-dropdown a.nav-active {
  color: var(--accent);
}


/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 760px) {
  .svc-hero-inner {
    display: block;
  }

  .hero-example-img {
    display: none;
  }
}

@media (max-width: 1100px) {
  .aif-audit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .aif-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .aif-qa-list {
    grid-template-columns: 1fr;
  }

  .aif-problem-grid {
    grid-template-columns: 1fr;
  }

  .aif-fix-grid {
    grid-template-columns: 1fr;
  }

  .aif-paths-grid {
    grid-template-columns: 1fr;
  }

  .aif-step-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .aif-step-left {
    gap: 0.75rem;
  }
}

@media (max-width: 640px) {
  .aif-audit-grid {
    grid-template-columns: 1fr;
  }

  .aif-links-grid {
    grid-template-columns: 1fr;
  }

  .aif-step-row {
    padding: 1.75rem 0;
  }
}
