/* Providence Flow Services — custom styles */

:root {
  --canvas: #0b0f19;
  --surface: #111827;
  --line: #1f2937;
  --accent: #3b82f6;
  --success: #10b981;
  --text-muted: #94a3b8;
  --header-h: 64px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

/* Header glass */
.site-header {
  background: rgba(11, 15, 25, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.logo-mark {
  display: inline-flex;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
}

.nav-link.is-active {
  position: relative;
}

.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.mobile-nav-link.is-active {
  color: #fff;
  background: rgba(59, 130, 246, 0.12);
}

.mobile-nav-link {
  display: block;
  border-radius: 0.5rem;
  padding: 0.75rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #cbd5e1;
  transition: background 0.15s ease, color 0.15s ease;
}

.mobile-nav-link:hover {
  background: rgba(31, 41, 55, 0.6);
  color: #fff;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu:not([hidden]) {
  display: block;
  animation: fadeSlide 0.2s ease;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.625rem;
  background: var(--accent);
  padding: 0.7rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35), 0 8px 24px rgba(59, 130, 246, 0.25);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.45), 0 12px 28px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.625rem;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0.7rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #e2e8f0;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.btn-secondary:hover {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(17, 24, 39, 0.8);
  transform: translateY(-1px);
}

/* Hero */
.hero-glow {
  pointer-events: none;
  position: absolute;
  top: -10%;
  left: 50%;
  width: 70%;
  height: 60%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.18) 0%, transparent 65%);
  filter: blur(40px);
}

.pipeline-mockup {
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(17, 24, 39, 0.95) 0%, rgba(11, 15, 25, 0.98) 100%);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.08), 0 24px 80px rgba(0, 0, 0, 0.45), 0 0 60px rgba(59, 130, 246, 0.08);
  overflow: hidden;
  animation: mockupIn 0.8s ease both;
}

@keyframes mockupIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pipeline-mockup__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 25, 0.6);
  padding: 0.75rem 1rem;
}

.pipeline-mockup__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.875rem 1rem 0;
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(11, 15, 25, 0.7);
  padding: 0.35rem 0.7rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #cbd5e1;
}

.metric-chip--success {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
  color: #6ee7b7;
}

.pipeline-stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.625rem;
  padding: 0.875rem 1rem 1.125rem;
}

.pipeline-stage__label {
  margin-bottom: 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.pipeline-card {
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  background: rgba(11, 15, 25, 0.85);
  padding: 0.55rem 0.65rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pipeline-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.35);
}

.pipeline-card--dim {
  opacity: 0.55;
}

.pipeline-card--accent {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.08);
}

.pipeline-card--success {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
}

.pipeline-card__name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #f1f5f9;
}

.pipeline-card__meta {
  margin-top: 0.15rem;
  font-size: 0.625rem;
  color: #64748b;
}

@media (max-width: 420px) {
  .pipeline-stages {
    grid-template-columns: 1fr;
  }
}

/* Social proof */
.proof-badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #94a3b8;
}

.proof-divider {
  width: 1px;
  height: 1rem;
  background: var(--line);
}

/* Sections */
.section-eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
}

.section-lead {
  margin-top: 0.875rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #94a3b8;
}

/* Service cards */
.service-card {
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.5rem;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(59, 130, 246, 0.08);
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(59, 130, 246, 0.25);
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
}

.service-card__title {
  margin-top: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}

.service-card__desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #94a3b8;
}

.service-card__list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service-card__list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #cbd5e1;
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: var(--success);
}

/* Tabs */
.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.35rem;
  border-radius: 0.875rem;
  border: 1px solid var(--line);
  background: rgba(11, 15, 25, 0.5);
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 0.625rem;
  border: 1px solid transparent;
  background: transparent;
  padding: 0.65rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.tab-btn:hover {
  color: #e2e8f0;
}

.tab-btn.is-active {
  color: #fff;
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.tab-panel {
  display: none;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.5rem;
  animation: fadeSlide 0.25s ease;
}

.tab-panel.is-active {
  display: block;
}

.tab-panel[hidden] {
  display: none;
}

.feature-visual {
  border-radius: 0.875rem;
  border: 1px solid var(--line);
  background: rgba(11, 15, 25, 0.7);
  padding: 1.25rem;
}

/* Nurture timeline */
.nurture-visual {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline-step {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: 0.875rem;
  position: relative;
  padding-bottom: 1rem;
}

.timeline-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 0.4rem;
  top: 1rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(59, 130, 246, 0.5), var(--line));
}

.timeline-dot {
  width: 0.875rem;
  height: 0.875rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--canvas);
  z-index: 1;
}

.timeline-dot--active {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.timeline-card {
  border-radius: 0.625rem;
  border: 1px solid var(--line);
  background: rgba(17, 24, 39, 0.9);
  padding: 0.75rem 0.875rem;
}

/* Calendar visual */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.calendar-slots {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.cal-slot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.625rem;
  border: 1px solid var(--line);
  background: rgba(17, 24, 39, 0.8);
  padding: 0.75rem;
}

.cal-slot--next {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.08);
}

.cal-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #1f2937;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
}

.cal-avatar--next {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.status-pill {
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.status-pill--booked {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}

.status-pill--open {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}

/* Analytics bars */
.analytics-visual {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.analytics-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr 2.5rem;
  align-items: center;
  gap: 0.75rem;
}

.analytics-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
}

.analytics-bar {
  height: 0.5rem;
  border-radius: 999px;
  background: #1f2937;
  overflow: hidden;
}

.analytics-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  animation: barGrow 0.8s ease both;
}

.analytics-bar--accent span {
  background: linear-gradient(90deg, #2563eb, #3b82f6);
}

.analytics-bar--success span {
  background: linear-gradient(90deg, #059669, #10b981);
}

.analytics-value {
  font-size: 0.75rem;
  font-weight: 700;
  text-align: right;
  color: #cbd5e1;
}

@keyframes barGrow {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }
  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}

/* Process roadmap */
.process-roadmap {
  display: grid;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: none;
}

@media (min-width: 768px) {
  .process-roadmap {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
  }

  .process-roadmap::before {
    content: '';
    position: absolute;
    top: 1.35rem;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--line) 10%, var(--line) 90%, transparent);
    z-index: 0;
  }
}

.process-step {
  position: relative;
  z-index: 1;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.35rem 1.25rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.process-step:hover {
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-3px);
}

.process-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(11, 15, 25, 0.9);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 1rem;
}

.process-step__title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.process-step__desc {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #94a3b8;
}

/* Booking embed */
.booking-embed {
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.booking-embed__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 25, 0.5);
  padding: 0.875rem 1.125rem;
}

.booking-embed__body {
  min-height: 420px;
}

.booking-embed__body--calendar {
  min-height: 620px;
  padding: 0;
  overflow: hidden;
}

.booking-embed__body--calendar iframe {
  display: block;
  width: 100%;
  min-height: 620px;
  border: 0;
}

.booking-embed__body--form {
  min-height: 1120px;
  padding: 0;
  overflow: hidden;
  background: #0b0f19;
}

.booking-embed__body--form iframe {
  display: block;
  width: 100%;
  min-height: 1120px;
  height: 1120px;
  border: 0;
}

.ghl-form-embed {
  overflow: hidden;
}

.booking-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 2rem 1.5rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.1), transparent 55%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 23px,
      rgba(31, 41, 55, 0.35) 24px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 23px,
      rgba(31, 41, 55, 0.35) 24px
    );
}

.booking-placeholder__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
}

/* FAQ accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.faq-item {
  border-radius: 0.875rem;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:has(.faq-trigger[aria-expanded='true']) {
  border-color: rgba(59, 130, 246, 0.35);
}

.faq-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.15rem;
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #f1f5f9;
  background: transparent;
  border: none;
  cursor: pointer;
}

.faq-trigger:hover {
  color: #fff;
}

.faq-chevron {
  color: #64748b;
  transition: transform 0.25s ease, color 0.2s ease;
}

.faq-trigger[aria-expanded='true'] .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-panel {
  padding: 0 1.15rem 1.15rem;
}

.faq-panel[hidden] {
  display: none;
}

.faq-panel p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #94a3b8;
}

/* Footer */
.footer-link {
  color: #94a3b8;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: #fff;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Multi-page: breadcrumbs, page hero, prose */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #64748b;
}

.breadcrumbs a {
  color: #94a3b8;
  transition: color 0.15s ease;
}

.breadcrumbs a:hover {
  color: #fff;
}

.breadcrumbs .sep {
  color: #475569;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 2.75rem 0 3rem;
}

.page-hero .hero-glow {
  top: -40%;
  height: 80%;
  opacity: 0.7;
}

.prose-content {
  max-width: 48rem;
}

.prose-content p {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.75;
  color: #94a3b8;
}

.prose-content h2 {
  margin-top: 2.25rem;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.prose-content h3 {
  margin-top: 1.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #e2e8f0;
}

.prose-content ul {
  margin-top: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.prose-content li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #cbd5e1;
}

.prose-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: var(--accent);
}

.check-list li::before {
  background: var(--success);
}

.cta-band {
  border-radius: 1rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(17, 24, 39, 0.9));
  padding: 1.75rem;
}

.deliverable-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  .deliverable-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.deliverable-item {
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #e2e8f0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pipeline-mockup,
  .tab-panel,
  .mobile-menu:not([hidden]),
  .analytics-bar span {
    animation: none;
  }

  .service-card:hover,
  .process-step:hover,
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }
}
