/* =============================================
   PRECISION ACCOUNTING & ADVISORY — styles.css
   Blue #1d4ed8 | Slate-900 #0f172a | Sky-50 #f0f9ff
   DM Sans
   ============================================= */

html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }

/* ─── Scroll Progress ─── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #1d4ed8, #3b82f6);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ─── Navbar ─── */
.nav-bar {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(29, 78, 216, 0.1);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav-bar.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.nav-link {
  position: relative;
  padding-bottom: 4px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #1d4ed8;
  transition: width 0.3s ease;
  border-radius: 2px;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: #1d4ed8; }

/* ─── Hamburger ─── */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger-line {
  width: 24px;
  height: 2px;
  background: #0f172a;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: block;
  border-radius: 2px;
}
.hamburger-btn.open .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger-btn.open .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger-btn.open .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── Mobile Menu ─── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.99);
  z-index: 40;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 2rem;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-inner { max-width: 400px; margin: 0 auto; padding-top: 1rem; }

/* ─── Hero ─── */
.hero-section { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.85) 0%, rgba(29,78,216,0.65) 60%, rgba(15,23,42,0.80) 100%);
}
.hero-badge { animation: fadeInDown 0.9s ease forwards; }
.hero-title { animation: fadeInUp 1s ease 0.3s forwards; opacity: 0; }
.hero-subtitle { animation: fadeInUp 1s ease 0.6s forwards; opacity: 0; }
.hero-ctas { animation: fadeInUp 1s ease 0.9s forwards; opacity: 0; }

/* ─── Buttons ─── */
.btn-primary {
  display: inline-block;
  background: #1d4ed8;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 11px 26px;
  border: 2px solid #1d4ed8;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.2s, box-shadow 0.3s;
  text-align: center;
}
.btn-primary:hover {
  background: #1e40af;
  border-color: #1e40af;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.35);
}
.btn-outline {
  display: inline-block;
  background: transparent;
  color: #1d4ed8;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 11px 26px;
  border: 2px solid #1d4ed8;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.2s;
  text-align: center;
}
.btn-outline:hover {
  background: #1d4ed8;
  color: #fff;
  transform: translateY(-1px);
}

/* ─── Pricing Toggle ─── */
.pricing-toggle-btn {
  padding: 8px 24px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  color: #6b7280;
}
.pricing-toggle-btn.active-toggle {
  background: #1d4ed8;
  color: #fff;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

/* ─── Card Hover ─── */
.card-hover { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-hover:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

/* ─── Reveal ─── */
.reveal-section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-section.revealed { opacity: 1; transform: translateY(0); }

/* ─── Carousel ─── */
.carousel-slide { display: none; animation: fadeSlide 0.5s ease; }
.carousel-slide.active { display: block; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  padding: 0;
}
.carousel-dot.active { background: #1d4ed8; width: 24px; border-radius: 4px; }

/* ─── FAQ ─── */
.faq-item { overflow: hidden; transition: box-shadow 0.3s; }
.faq-item.open { box-shadow: 0 4px 20px rgba(29,78,216,0.1); }
.faq-trigger { background: none; border: none; cursor: pointer; width: 100%; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-icon { transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ─── Modal ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-content {
  background: #fff;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
  width: 100%;
}
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }

/* ─── Back to Top ─── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: #1d4ed8;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(29,78,216,0.4);
}
.back-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-to-top:hover { background: #1e40af; }

/* ─── Lazy images ─── */
.lazy-img { filter: blur(8px); transition: filter 0.5s ease; }
.lazy-img.loaded { filter: blur(0); }

/* ─── Keyframes ─── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Form ─── */
.form-error { display: block; }
input.error, select.error, textarea.error { border-color: #ef4444 !important; }

/* ─── Services icon ring ─── */
.service-icon-wrap {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

/* ─── Stats counter ─── */
.stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}
.stat-card:hover { transform: translateY(-4px); }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0f9ff; }
::-webkit-scrollbar-thumb { background: #1d4ed8; border-radius: 4px; }

/* ─── Blue sky bg ─── */
.bg-blue-sky { background-color: #f0f9ff; }
