/* ===================================================
   Analysis Accounting Solution — Custom CSS
   Complements Tailwind; handles brand polish details
   =================================================== */

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Hero gradient blob ---------- */
.hero-blob {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-blob::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -160px;
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(0,144,160,0.13) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-blob::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(48,176,192,0.09) 0%, transparent 70%);
  border-radius: 50%;
}

/* ---------- Browser-window mockup ---------- */
.browser-mockup {
  background: #fff;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.06),
    0 4px 8px rgba(0,0,0,0.04),
    0 12px 40px rgba(0,0,0,0.10),
    0 40px 80px rgba(0,144,160,0.08);
  overflow: hidden;
}
.browser-mockup .browser-bar {
  background: #F1F5F9;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #E2E8F0;
}
.browser-mockup .browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.browser-mockup .browser-dot:nth-child(1) { background: #FC5F57; }
.browser-mockup .browser-dot:nth-child(2) { background: #FDBC2C; }
.browser-mockup .browser-dot:nth-child(3) { background: #27C840; }
.browser-mockup .browser-url {
  margin-left: 10px;
  flex: 1;
  background: #fff;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  height: 22px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 11px;
  color: #64748B;
  letter-spacing: 0.01em;
  overflow: hidden;
  white-space: nowrap;
}
.browser-mockup .browser-body {
  background: #F8FAFC;
}
.browser-mockup .browser-body img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Card hover lift ---------- */
.card-lift {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  will-change: transform;
}
.card-lift:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(0,144,160,0.10),
    0 8px 24px rgba(0,144,160,0.12),
    0 20px 48px rgba(0,0,0,0.08);
}

/* ---------- Testimonial slider ---------- */
#testimonialTrack {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  scroll-behavior: smooth;
  padding-bottom: 4px;
}
#testimonialTrack::-webkit-scrollbar {
  display: none;
}
#testimonialTrack > * {
  scroll-snap-align: start;
  flex: 0 0 min(100%, 420px);
}

/* ---------- Utility buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 9999px;
  padding: 0.625rem 1.5rem;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: #0090A0;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,144,160,0.30);
}
.btn-primary:hover {
  background: #006070;
  box-shadow: 0 4px 16px rgba(0,144,160,0.38);
}

.btn-outline {
  background: transparent;
  color: #0090A0;
  border: 2px solid #0090A0;
}
.btn-outline:hover {
  background: rgba(0,144,160,0.06);
  border-color: #006070;
  color: #006070;
}

/* ---------- Sticky nav scroll shrink ---------- */
header.nav-scrolled {
  box-shadow: 0 1px 16px rgba(0,0,0,0.08);
}

/* ---------- Section divider fade ---------- */
.section-fade-top {
  background: linear-gradient(to bottom, #F8FAFC 0%, #fff 100%);
}

/* ---------- Pricing card highlight glow ---------- */
.pricing-highlight {
  box-shadow:
    0 0 0 2px #0090A0,
    0 8px 32px rgba(0,144,160,0.18),
    0 24px 56px rgba(0,0,0,0.08);
}

/* ---------- Logo strip grayscale filter ---------- */
.client-logo {
  filter: grayscale(100%) opacity(0.5);
  transition: filter 0.2s ease;
}
.client-logo:hover { filter: grayscale(0%) opacity(1); }

/* ---------- Icon wrapper ---------- */
.icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0,144,160,0.12), rgba(48,176,192,0.07));
  flex-shrink: 0;
}

/* ---------- Quote mark ---------- */
.quote-mark::before {
  content: '\201C';
  font-size: 4rem;
  line-height: 0.7;
  color: #0090A0;
  opacity: 0.18;
  font-family: Georgia, serif;
  display: block;
  margin-bottom: -1rem;
}

/* ==========================================================
   INTRO SPLASH — Vertex logo build-in animation
   Partial: partials/splash.php
   JS adds .run to start; .is-hidden to fade out.
   ========================================================== */

/* --- Base overlay --- */
#introSplash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;             /* overridden to none by inline style until JS */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 40%, #143a33 0%, #0a100f 70%);
  transition: opacity 0.6s ease;
}

#introSplash.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* --- Emblem scale-in --- */
@keyframes spEmblem {
  0%   { opacity:0; transform: scale(0.6); }
  60%  { opacity:1; transform: scale(1.04); }
  100% { opacity:1; transform: scale(1); }
}

/* --- A path draw (scaleY from 0 at base) --- */
@keyframes spDraw {
  0%   { transform: scaleY(0); opacity:0; }
  20%  { opacity:1; }
  100% { transform: scaleY(1); opacity:1; }
}

/* --- Apex chip drop-in --- */
@keyframes spChipIn {
  0%   { opacity:0; transform: translateY(-14px) scale(0.7); }
  100% { opacity:1; transform: translateY(0) scale(1); }
}

/* --- Pulse ring expand --- */
@keyframes spRing {
  0%   { opacity:0.7; transform: scale(1); }
  100% { opacity:0;   transform: scale(1.35); }
}

/* --- Sheen sweep across tile --- */
@keyframes spSheen {
  0%   { left: -100%; }
  100% { left:  160%; }
}

/* --- Wordmark fade-up --- */
@keyframes spWord {
  0%   { opacity:0; transform: translateY(10px); }
  100% { opacity:1; transform: translateY(0); }
}

/* --- Animations fire only when JS adds .run --- */
#introSplash.run .sp-emblem {
  animation: spEmblem 0.55s cubic-bezier(0.34,1.56,0.64,1) both;
}

#introSplash.run .sp-draw {
  animation: spDraw 0.55s cubic-bezier(0.22,1,0.36,1) 0.35s both;
}

#introSplash.run .sp-chip {
  animation: spChipIn 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.75s both;
}

#introSplash.run .sp-ring {
  animation: spRing 1.1s ease-out 0.5s both;
}

#introSplash.run .sp-sheen > div {
  animation: spSheen 0.7s ease-in-out 0.9s both;
}

#introSplash.run .sp-word {
  animation: spWord 0.5s ease-out 1.0s both;
}

/* --- Reduced-motion safety net (belt + suspenders) --- */
@media (prefers-reduced-motion: reduce) {
  #introSplash { display: none !important; }
}
