/* ==========================================================================
   No Click Automation — Custom CSS
   Effects & layouts that block markup can't express
   ========================================================================== */

/* ---------- Sticky nav blur ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 15, 20, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  max-width: 100vw;
  box-sizing: border-box;
  overflow: hidden;
}

/* ---------- Hero glow gradient ---------- */
.nca-hero {
  position: relative;
}

.nca-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 650px;
  background: radial-gradient(ellipse, rgba(45,212,168,0.045) 0%, transparent 65%);
  pointer-events: none;
}

/* ---------- Hero badge pulse ---------- */
.nca-hero-badge::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--wp--preset--color--accent-500);
  border-radius: 50%;
  margin-right: 8px;
  animation: ncaPulse 2s infinite;
  vertical-align: middle;
}

@keyframes ncaPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ---------- Cycling headline ---------- */
.nca-cycle-wrapper {
  display: inline-grid;
  vertical-align: bottom;
  overflow: hidden;
  max-height: 1.35em;
  align-items: start;
}

.nca-cycle-wrapper .nca-cycle-line {
  grid-area: 1 / 1;
  white-space: nowrap;
  font-style: normal;
  color: var(--wp--preset--color--accent-500);
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transform: translateY(40px);
  transition: opacity 0.4s ease, transform 0.4s ease, max-width 0.35s ease;
}

.nca-cycle-wrapper .nca-cycle-line.active {
  opacity: 1;
  max-width: 100vw;
  transform: translateY(0);
}

.nca-cycle-wrapper .nca-cycle-line.exiting {
  opacity: 0;
  max-width: 100vw;
  transform: translateY(-40px);
}

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

/* ---------- Blog grid card images ---------- */
.wp-block-post-template .wp-block-group {
  overflow: hidden;
}

.wp-block-post-featured-image {
  overflow: hidden;
}

.wp-block-post-featured-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------- Service card hover transforms ---------- */
.nca-service-card {
  transition: border-color 0.25s, transform 0.25s;
}

.nca-service-card:hover {
  border-color: rgba(45,212,168,0.15) !important;
  transform: translateY(-2px);
}

/* ---------- Differentiator items ---------- */
.nca-diff-check-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
  font-size: 0.8rem;
  font-weight: 700;
  margin-right: 12px;
}

.nca-diff-check-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: rgba(45, 212, 168, 0.15);
  color: #2dd4a8;
  font-size: 0.8rem;
  font-weight: 700;
  margin-right: 12px;
}

.nca-diff-item {
  transition: background 0.2s;
  border-radius: 8px;
}

.nca-diff-item:hover {
  background: rgba(255,255,255,0.015);
}

/* ---------- Pricing: Most Popular badge ---------- */
.nca-pricing-featured {
  position: relative;
  border-color: rgba(45,212,168,0.25) !important;
  box-shadow: 0 0 40px rgba(45,212,168,0.04);
}

.nca-pricing-featured::after {
  content: 'Most Popular';
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--wp--preset--color--accent-500);
  color: var(--wp--preset--color--bg-950);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.85rem;
  border-radius: 100px;
  white-space: nowrap;
  z-index: 1;
}

/* Tier card hover */
.nca-tier-card {
  transition: transform 0.25s, border-color 0.25s;
}

.nca-tier-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.12) !important;
}

/* Tier features check marks */
.nca-tier-features li::before {
  content: '\2713';
  color: var(--wp--preset--color--accent-500);
  font-weight: 700;
  flex-shrink: 0;
  margin-right: 8px;
}

.nca-tier-features li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  list-style: none;
}

/* ---------- Process connecting line ---------- */
.nca-process-steps {
  position: relative;
}

.nca-process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 16.5%;
  right: 16.5%;
  height: 1px;
  background: rgba(255,255,255,0.12);
}

/* Step number circles */
.nca-step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wp--preset--color--surface-900);
  border: 2px solid var(--wp--preset--color--accent-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wp--preset--color--accent-500);
  position: relative;
  z-index: 1;
}

/* ---------- Case study card hover ---------- */
.nca-case-study-card {
  transition: border-color 0.3s, transform 0.3s;
}

.nca-case-study-card:hover {
  border-color: rgba(255,255,255,0.12) !important;
  transform: translateY(-2px);
}

/* ---------- Contact section glow ---------- */
.nca-contact-section {
  position: relative;
}

.nca-contact-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(45,212,168,0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* Contact option equal height */
.nca-contact-options > .wp-block-column {
  display: flex;
}

.nca-contact-option {
  flex: 1;
  transition: border-color 0.25s, transform 0.25s;
}

.nca-contact-option:hover {
  border-color: rgba(45,212,168,0.2) !important;
  transform: translateY(-2px);
}

/* Booking placeholder */
.nca-booking-placeholder {
  min-height: 380px;
  border: 1px dashed rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
}

/* ---------- Button hovers ---------- */
.nca-btn-primary {
  transition: all 0.2s;
}

.nca-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(45,212,168,0.2);
}

.nca-btn-secondary {
  transition: all 0.2s;
}

.nca-btn-secondary:hover {
  border-color: rgba(255,255,255,0.25) !important;
  color: var(--wp--preset--color--text-050) !important;
}

/* ---------- Section label uppercase ---------- */
.nca-section-label {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}

/* ---------- Responsive overrides ---------- */
@media (max-width: 768px) {
  .nca-hero {
    padding-top: 6.5rem !important;
    padding-bottom: 3.5rem !important;
  }

  .nca-stats-grid .wp-block-columns {
    flex-wrap: wrap;
  }

  .nca-stats-grid .wp-block-column {
    flex-basis: 48% !important;
  }

  .nca-diff-grid .wp-block-columns {
    flex-direction: column;
  }

  .nca-case-study-card .wp-block-columns {
    flex-direction: column;
  }

  .nca-process-steps::before {
    display: none;
  }

  .nca-process-steps .wp-block-columns {
    flex-direction: column;
    gap: 2rem;
  }

  .nca-contact-options .wp-block-columns {
    flex-direction: column;
  }

  .nca-footer .wp-block-group[style*="flex"] {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .nca-nav-link-item {
    display: none !important;
  }
}

/* ==========================================================================
   Funnel Landing Page Styles
   ========================================================================== */

/* ---------- Funnel page overflow clip ---------- */
body:has(.nca-funnel-hero) {
  overflow-x: hidden;
}

/* ---------- Funnel hero ---------- */
.nca-funnel-hero {
  position: relative;
  min-height: 100vh;
  overflow: visible;
}

.nca-funnel-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 650px;
  background: radial-gradient(ellipse, rgba(45,212,168,0.045) 0%, transparent 65%);
  pointer-events: none;
}

/* ---------- Funnel pain cards ---------- */
.nca-funnel-pain-card {
  transition: all 0.25s;
}

.nca-funnel-pain-card:hover {
  border-color: rgba(248,113,113,0.12) !important;
  transform: translateY(-2px);
}

.nca-funnel-pain-stat {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--wp--preset--color--red-soft);
  font-weight: 600;
  background: rgba(248, 113, 113, 0.1);
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
}

/* ---------- Funnel solution cards ---------- */
.nca-funnel-solution-card {
  transition: all 0.25s;
}

.nca-funnel-solution-card:hover {
  border-color: rgba(45,212,168,0.15) !important;
  transform: translateY(-2px);
}

.nca-funnel-solution-icon {
  width: 40px;
  height: 40px;
  background: rgba(45,212,168,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

/* ---------- Funnel booking section ---------- */
.nca-funnel-booking {
  position: relative;
  overflow: hidden;
}

.nca-funnel-booking::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(45,212,168,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.nca-funnel-booking-action {
  transition: all 0.25s;
}

.nca-funnel-booking-action:hover {
  border-color: rgba(45,212,168,0.2) !important;
  transform: translateY(-2px);
}

/* ---------- Sticky mobile CTA (funnel pages) ---------- */
.nca-funnel-sticky-cta {
  display: none;
}

@media (max-width: 768px) {
  .nca-funnel-sticky-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    padding: 0.5rem 1rem;
    background: rgba(11, 15, 20, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--wp--preset--color--border-800);
    box-sizing: border-box;
  }

  .nca-funnel-sticky-cta a {
    display: block;
    text-align: center;
    background: var(--wp--preset--color--accent-500);
    color: var(--wp--preset--color--bg-950);
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
    box-sizing: border-box;
  }

  .nca-funnel-sticky-cta a:hover {
    background: var(--wp--preset--color--accent-600);
  }
}

/* ---------- Funnel responsive ---------- */
@media (max-width: 768px) {
  .nca-funnel-hero {
    min-height: auto;
    padding-top: 6.5rem !important;
    padding-bottom: 3.5rem !important;
  }

  body:has(.nca-funnel-sticky-cta) {
    padding-bottom: 70px;
  }

  /* Pain point cards — stack vertically */
  .nca-funnel-pain-card {
    margin-bottom: 0;
  }

  /* Solution cards — stack vertically */
  .nca-funnel-solution-card {
    margin-bottom: 0;
  }

  /* Differentiator — stack columns */
  .nca-diff-section .nca-diff-grid.wp-block-columns {
    flex-direction: column;
  }

  /* Pricing tier cards — stack vertically */
  .nca-tier-card {
    margin-bottom: 0;
  }

  /* All funnel wp:columns stack on mobile */
  .nca-funnel-hero ~ .wp-block-group .wp-block-columns,
  body:has(.nca-funnel-hero) .wp-block-columns {
    flex-direction: column;
  }

  /* Reduce section padding on mobile */
  body:has(.nca-funnel-hero) .wp-block-group[style*="padding-top:5.5rem"] {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }

  /* Calendar iframe responsive */
  body:has(.nca-funnel-hero) iframe[src*="calendar.google"] {
    min-height: 600px !important;
  }
}

/* ---------- Sticky nav body offset ---------- */
body {
  padding-top: 64px;
}
