/* Shared Styles for Navbar and Footer */
:root {
  --primary: #0e3a6c;
  --accent: #c5a059;
  --bg: #ffffff;
  --surface: #f7f9fc;
  --surface2: #eef2f7;
  --text: #0a0f14;
  --text-muted: #526071;
  --border: rgba(0, 0, 0, 0.08);
  --border2: rgba(0, 0, 0, 0.13);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
.container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 5%;
}

/* ── PREMIUM SERVICE PAGE COMPONENTS ── */

/* Feature Cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: white;
  padding: 40px;
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 24px;
  border-radius: 12px;
  transition: all 0.3s;
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: white;
}

/* Process Section */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  position: relative;
}

.process-step {
  position: relative;
}

.step-number {
  font-family: "Instrument Serif", serif;
  font-size: 4rem;
  font-style: italic;
  color: rgba(197, 160, 89, 0.15);
  line-height: 1;
  margin-bottom: -20px;
}

.step-content {
  position: relative;
  z-index: 1;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

/* Unique Sections CSS */

/* Before & After (Bookkeeping) */
.before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.ba-col {
  padding: 40px;
}

.ba-col.before {
  background: #fdf2f2;
}

.ba-col.after {
  background: #f0fdf4;
}

.ba-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  font-weight: 600;
}

.ba-item:last-child {
  margin-bottom: 0;
}

.ba-item.before-item i {
  color: #ef4444;
}
.ba-item.after-item i {
  color: #22c55e;
}

/* Checklist (Month-End) */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.checklist-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.3s;
}

.checklist-card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Vertical Timeline (Payroll / Cleanup) */
.vertical-timeline {
  position: relative;
  padding-left: 30px;
}

.vertical-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -39px;
  top: 0;
  width: 20px;
  height: 20px;
  background: white;
  border: 4px solid var(--accent);
  border-radius: 50%;
}

/* Report Previews (Reporting) */
.report-card {
  background: white;
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s;
}

.report-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--primary);
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s var(--ease);
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-top: 16px;
}

.faq-question svg {
  transition: transform 0.3s var(--ease);
}
.faq-item.active .faq-question svg {
  transform: rotate(45deg);
}

/* Industry Chips */
.industry-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.industry-chip {
  padding: 12px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  transition: all 0.3s;
}

.industry-chip:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}

/* Final CTA */
.final-cta {
  background: var(--primary);
  padding: 100px 0;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 70% 30%,
    rgba(197, 160, 89, 0.1),
    transparent 50%
  );
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-label::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 30px;
}

/* ── NAVBAR ── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.4s var(--ease);
  z-index: 1000;
}

#navbar.scrolled {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 100px;
  transition: all 0.4s var(--ease);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#navbar.scrolled .nav-inner {
  height: 80px;
}

.nav-link {
  transition: all 0.3s;
  color: white; /* Default for transparent state over dark hero */
}

#navbar.scrolled .nav-link {
  color: var(--primary) !important;
}

.logo img,
header img {
  height: 55px;
  width: auto;
  transition: all 0.4s var(--ease);
  object-fit: contain;
}

#navbar.scrolled .logo img,
#navbar.scrolled header img {
  height: 32px;
}

/* Mega menu */
.dropdown {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
  min-width: 900px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
  border-radius: 12px;
  overflow: hidden;
}

.dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-container {
  display: flex;
  min-height: 480px;
}

/* Sidebar Tabs */
.mega-sidebar {
  width: 280px;
  background: #f8fafc;
  border-right: 1px solid var(--border);
  padding: 20px 0;
}

.mega-tab {
  display: block;
  padding: 15px 30px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.mega-tab:hover,
.mega-tab.active {
  background: white;
  color: var(--accent);
  border-left-color: var(--accent);
}

/* Content Area */
.mega-content {
  flex: 1;
  padding: 40px;
  display: none; /* Hidden by default */
}

.mega-content.active {
  display: block;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.mega-service-item {
  text-decoration: none;
  display: block;
  transition: transform 0.2s;
}

.mega-service-item:hover {
  transform: translateX(5px);
}

.mega-service-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.mega-service-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cta-nav {
  background: var(--accent);
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  margin-left: 20px;
}

@media (max-width: 1024px) {
  .cta-nav {
    display: none !important;
  }
  
  #navbar {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
  }
  
  .nav-inner {
    height: 80px;
  }
  
  #navbar.scrolled .nav-inner {
    height: 70px;
  }
}

.cta-nav:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  background: white;
  color: var(--accent);
}

/* ── MOBILE MENU ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  transition: all 0.3s;
  position: relative;
  z-index: 2001;
  margin-right: -8px;
}

@media (max-width: 1024px) {
  .hamburger {
    display: flex;
  }
  .mega-menu {
    display: none;
  }
}

.hamburger span {
  display: block;
  height: 1.5px;
  background: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 4px;
}

#navbar.scrolled .hamburger span {
  background: var(--primary);
}

.hamburger span:nth-child(1) {
  width: 28px;
}
.hamburger span:nth-child(2) {
  width: 20px;
}
.hamburger span:nth-child(3) {
  width: 26px;
}

.hamburger.open span {
  background: var(--primary) !important;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
  width: 28px;
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(10px);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
  width: 28px;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 15, 30, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease);
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 400px;
  height: 100%;
  background: white;
  z-index: 2000;
  padding: 100px 40px 60px;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.1);
  transition: all 0.5s var(--ease);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-menu.open {
  right: 0;
}

.mob-link-main {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary) !important;
  text-decoration: none;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.4s var(--ease);
}

.mobile-menu.open .mob-link-main {
  opacity: 1;
  transform: translateX(0);
}

.mob-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.sub-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted) !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.social-btn-mob {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

/* ── SUBPAGE HERO ── */
.subpage-hero {
  padding: 180px 0 100px;
  background: #0a1f3a; /* Deep Navy */
  background-image:
    radial-gradient(
      circle at 20% 30%,
      rgba(14, 58, 108, 0.4) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(197, 160, 89, 0.1) 0%,
      transparent 50%
    );
  position: relative;
  overflow: hidden;
  color: white;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .subpage-hero {
    padding: 140px 0 60px;
    min-height: auto;
  }
}

.subpage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://www.transparenttextures.com/patterns/cubes.png");
  opacity: 0.03;
  pointer-events: none;
}

.subpage-hero .section-label {
  color: var(--accent);
}

.subpage-hero .section-title {
  color: white;
}

.subpage-hero .section-title em {
  color: var(--accent);
  font-family: "Instrument Serif", serif;
  font-style: italic;
}

.subpage-hero .text-text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h5 {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 12px;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.social-btn {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.3s;
}

.social-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
}
