/* ============================================================
   PayDay Payroll — Enterprise Blue Design System v2
   Palette: Deep Navy #0F2544 | Blue #1E4A8C | Sky #3B82F6 | 
            Steel #E8EFF8
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800;900&display=swap");

:root {
  --navy: #0f2544;
  --navy-mid: #1a3a6b;
  --blue: #1e4a8c;
  --blue-light: #2563eb;
  --sky: #3b82f6;
  --sky-light: #60a5fa;
  --accent: rgb(37, 99, 235);
  --accent-light: rgb(37, 99, 235);
  --accent-soft: rgba(232, 160, 32, 0.15);
  --steel: #e8eff8;
  --steel-dark: #c8d8ee;
  --surface: #eef4ff;
  --surface-dark: #dbeafe;
  --white: #ffffff;
  --text-dark: #0f172a;
  --text-mid: #334155;
  --text-light: #64748b;
  --border: #cbd5e1;
  --bg-page: #f5f8fd;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  background: #fff;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
}
img {
  display: block;
}

/* ══════════════════════════════════════════════
   ANNOUNCEMENT BAR
══════════════════════════════════════════════ */
.announcement-bar {
  background: var(--navy);
  color: #94a3b8;
  font-size: 0.775rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.announcement-bar a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
.announcement-bar a:hover {
  color: #fff;
}

/* ══════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s;
}
.site-header.scrolled {
  box-shadow: 0 2px 24px rgba(15, 37, 68, 0.12);
  border-bottom-color: transparent;
}

.nav-logo .logo-text {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-size: 1.55rem;
  color: var(--navy);
  letter-spacing: -1px;
  line-height: 1;
}
.nav-logo .logo-text span {
  color: var(--blue-light);
}
.nav-logo .logo-sub {
  font-size: 0.6rem;
  color: var(--text-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-top: 1px;
}

/* Logo hover/enlarge effect */
.nav-logo .site-logo {
  height: 44px;
  width: auto;
  transition:
    transform 0.25s ease,
    filter 0.2s ease;
  display: inline-block;
}
.nav-logo:hover .site-logo {
  transform: scale(1.08);
  filter: drop-shadow(0 8px 18px rgba(30, 74, 140, 0.12));
}

/* Show image-only logo site-wide and hide the text fallback */
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0; /* no extra padding when using img */
  transition: transform 0.25s ease;
  transform-origin: left center;
}

/* For pages that still use text, hide the text and show a background logo */
.nav-logo .logo-text,
.nav-logo .logo-sub {
  display: none !important;
}

/* Fallback: use a background image for pages without an <img> tag
   The path is relative to this CSS file: ../images/PayDay_Logo.png */
.nav-logo:not(:has(img)) {
  background-image: url("../images/PayDay_Logo.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: auto 44px;
  padding-left: 56px; /* space for the background logo */
  min-height: 44px;
}

/* Small scale/enlarge effect for the logo anchor */
.nav-logo:hover {
  transform: scale(1.02);
}

/* If an <img> exists (we added it on some pages), hide the background so we don't duplicate */
.nav-logo:has(img) {
  background: none;
  padding-left: 0;
}
.nav-logo img.site-logo {
  display: inline-block;
}

/* ── Desktop Nav ── */
.nav-link {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-mid);
  padding: 7px 13px;
  border-radius: 6px;
  transition:
    color 0.2s,
    background 0.2s,
    transform 0.15s;
  cursor: pointer;
  border: none;
  background: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-link:hover {
  color: var(--navy);
  background: var(--steel);
  transform: translateY(-2px) scale(1.02);
}
.nav-link.active {
  color: var(--blue-light);
  background: #eef4ff;
  font-weight: 600;
}

/* ── Dropdown ── */
.dropdown {
  position: relative;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 56px rgba(15, 37, 68, 0.16);
  min-width: 250px;
  padding: 8px;
  z-index: 9999;
  animation: dropIn 0.18s ease;
}
.dropdown-menu.show {
  display: block;
}
@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.865rem;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}
.dropdown-item:hover {
  background: var(--steel);
  color: var(--navy);
}
.di-icon {
  width: 34px;
  height: 34px;
  background: var(--steel);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: all 0.2s;
}
.dropdown-item:hover .di-icon {
  background: var(--navy);
  color: #fff;
}

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.btn-primary {
  background: var(--blue-light);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.38);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 10px 22px;
  border-radius: 8px;
  border: 2px solid var(--navy);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

.btn-accent {
  background: var(--sky);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 13px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px var(--sky-light);
}
.btn-accent:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 6px 12px var(--white);
}

/* legacy alias */
.btn-gold {
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 13px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(232, 160, 32, 0.35);
}
.btn-gold:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.bg-page-surface {
  background: var(--bg-page);
}
.bg-surface {
  background: var(--surface);
}
.bg-surface-soft {
  background: #f5f3ff;
}
.bg-surface-gradient {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
}
.bg-surface-gold-gradient {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
}
.bg-brand-navy-gradient {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
}
.bg-brand-blue-gradient {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
}
.bg-brand-accent-gradient {
  background: linear-gradient(135deg, var(--blue), var(--sky));
  box-shadow: 0 10px 30px rgba(30,74,140,0.12);
  border: 1px solid rgba(30,74,140,0.06);
  color: #fff;
}
.surface-panel {
  background: var(--surface);
  color: var(--navy);
  border: 1px solid rgba(30, 74, 140, 0.14);
}
.surface-glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.surface-frost {
  background: rgba(0, 0, 0, 0.12);
}
.btn-outline-white {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.bg-accent-light {
  background: var(--accent-light);
}
.text-brand-primary {
  color: var(--navy);
}
.text-brand-blue {
  color: var(--blue);
}
.text-brand-accent {
  color: var(--accent);
}
.text-accent-light {
  color: var(--accent-light);
}

/* ══════════════════════════════════════════════
   HERO (HOMEPAGE)
══════════════════════════════════════════════ */
.hero-section {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
}
/* Full-bleed people image overlay */
.hero-section .hero-img-overlay {
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1600880292203-757bb62b4baf?w=1600&auto=format&fit=crop&q=80");
  background-size: cover;
  background-position: center right;
  opacity: 0.18;
}
.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, var(--navy) 45%, transparent 100%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-light);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1px;
}
.hero-title .highlight {
  color: var(--accent);
}
.hero-subtitle {
  font-size: 1.05rem;
  color: #93c5fd;
  line-height: 1.75;
  max-width: 500px;
}

/* ══════════════════════════════════════════════
   STATS STRIP
══════════════════════════════════════════════ */
.stats-section {
  background: var(--blue);
  padding: 52px 0;
  position: relative;
}
.stats-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1600&auto=format&fit=crop&q=60");
  background-size: cover;
  background-position: center;
  opacity: 0.07;
}
.stat-card {
  text-align: center;
  padding: 18px 24px;
  position: relative;
  z-index: 1;
}
.stat-number {
  font-family: "Poppins", sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.stat-label {
  font-size: 0.825rem;
  color: #93c5fd;
  margin-top: 6px;
  letter-spacing: 0.3px;
}

/* ══════════════════════════════════════════════
   PAGE HERO (INNER PAGES)
══════════════════════════════════════════════ */
.page-hero {
  background: var(--navy);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero .hero-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(15, 37, 68, 0.55) 40%,
    rgba(15, 37, 68, 0.35) 100%
  );
  pointer-events: none;
}
.page-hero .inner {
  position: relative;
  z-index: 2;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.8rem;
}
.breadcrumb a {
  color: var(--sky-light);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #fff;
  border-bottom: 1px solid #fff;
}
.breadcrumb span {
  color: #ffffff;
}
.page-hero-title {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.page-hero-sub {
  color: #93c5fd;
  font-size: 1rem;
  margin-top: 14px;
  max-width: 560px;
  line-height: 1.75;
}

/* ══════════════════════════════════════════════
   SECTION LABELS & TITLES
══════════════════════════════════════════════ */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--steel);
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 50px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  border: 1px solid var(--steel-dark);
}
.section-tag.blue {
  background: #eef4ff;
  color: var(--blue-light);
  border-color: #bfdbfe;
}
.section-tag.accent {
  background: #fef3c7;
  color: var(--accent-dark);
  border-color: #fde68a;
}
/* legacy aliases */
.section-tag.green {
  background: #eef4ff;
  color: var(--blue);
  border-color: #bfdbfe;
}
.section-tag.gold {
  background: rgb(37, 99, 235);
  color: #ffffff;
  border-color: rgb(37, 99, 235);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2) inset;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.3px;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 600px;
  line-height: 1.75;
}

/* ══════════════════════════════════════════════
   PRODUCT CARDS
══════════════════════════════════════════════ */
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(15, 37, 68, 0.13);
  border-color: var(--blue);
}

.product-card-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  display: block;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
/* image inside card */
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-img img {
  transform: scale(1.04);
}

/* fallback gradient when no img */
.product-card-img .icon-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.25);
  background: linear-gradient(135deg, var(--navy), var(--blue));
}
.product-card-body {
  padding: 24px;
}
.product-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.product-card-text {
  font-size: 0.865rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 16px;
}

/* feature list */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}
.feature-list li {
  font-size: 0.845rem;
  color: var(--text-mid);
  padding: 4px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.feature-list li::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue-light);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8l3.5 3.5L13 5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: cover;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ══════════════════════════════════════════════
   WHY CARDS / FEATURE GRID
══════════════════════════════════════════════ */
.why-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 24px;
  border: 1px solid var(--border);
  transition: all 0.25s;
  height: 100%;
}
.why-card:hover {
  box-shadow: 0 16px 40px rgba(15, 37, 68, 0.1);
  border-color: var(--blue);
  transform: translateY(-4px);
}
.why-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
  background: var(--steel);
  color: var(--blue);
}
.why-icon.green {
  background: var(--steel);
  color: var(--blue);
}
.why-icon.gold {
  background: #fef3c7;
  color: var(--accent-dark);
}
.why-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.why-text {
  font-size: 0.865rem;
  color: var(--text-light);
  line-height: 1.65;
}

.feature-grid-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 22px;
  transition: all 0.2s;
  height: 100%;
}
.feature-grid-card:hover {
  box-shadow: 0 12px 35px rgba(15, 37, 68, 0.1);
  border-color: var(--blue);
  transform: translateY(-3px);
}
.fg-icon {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 15px;
}
.fg-icon.green {
  background: linear-gradient(135deg, var(--blue), var(--sky));
}
.fg-icon.gold {
  background: linear-gradient(135deg, var(--blue), var(--sky));
  box-shadow: 0 6px 18px rgba(59,130,246,0.12);
}

/* Specific icon variants: make containers with these icons use the blue→sky gradient */
.fg-icon:has(.fa-bullseye),
.fg-icon:has(.fa-gavel) {
  background: linear-gradient(135deg, var(--blue), var(--sky));
  box-shadow: 0 6px 18px rgba(59,130,246,0.12);
}
.fg-title {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
}
.fg-text {
  font-size: 0.855rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════
   COMPLIANCE SECTION
══════════════════════════════════════════════ */
.compliance-section {
  background: linear-gradient(135deg, var(--steel) 0%, #d6e8ff 100%);
  border-radius: 24px;
  border: 1px solid var(--steel-dark);
  padding: 60px;
}
.compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1.5px solid var(--blue-light);
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-dark);
  transition: all 0.2s;
  cursor: default;
}
.compliance-badge:hover {
  background: var(--blue-light);
  color: #fff;
  border-color: var(--blue-light);
}
.compliance-badge i {
  color: var(--blue-light);
  font-size: 1.2rem;
}
.compliance-badge:hover i {
  color: #fff;
}

/* ══════════════════════════════════════════════
   CTA BANNER
══════════════════════════════════════════════ */
.cta-section {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.cta-section .cta-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
}
.cta-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--navy) 40%,
    rgba(30, 74, 140, 0.85) 100%
  );
}

/* ══════════════════════════════════════════════
   WORKFLOW STEPS
══════════════════════════════════════════════ */
.workflow-steps {
  counter-reset: step;
}
.workflow-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--steel-dark);
}
.workflow-step:last-child {
  border-bottom: none;
}
.step-num {
  width: 42px;
  height: 42px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.step-content h4 {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.step-content p {
  font-size: 0.865rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════
   CONTACT CARDS & FORMS
══════════════════════════════════════════════ */
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 24px;
  text-align: center;
  transition: all 0.25s;
}
.contact-card:hover {
  box-shadow: 0 16px 40px rgba(15, 37, 68, 0.1);
  transform: translateY(-4px);
  border-color: var(--blue);
}
.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 14px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  display: block;
}
.form-control {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: "Inter", sans-serif;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  background: #fff;
  color: var(--text-dark);
  outline: none;
}
.form-control:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-control::placeholder {
  color: #94a3b8;
}
select.form-control {
  cursor: pointer;
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ══════════════════════════════════════════════
   FAQ ACCORDION
══════════════════════════════════════════════ */
.faq-item {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item.open {
  box-shadow: 0 8px 25px rgba(15, 37, 68, 0.08);
  border-color: var(--blue-light);
}
.faq-question {
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--text-dark);
  background: #fff;
  transition: color 0.2s;
  user-select: none;
}
.faq-item.open .faq-question {
  color: var(--blue);
}
.faq-icon {
  transition: transform 0.25s;
  color: var(--text-light);
}
.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--blue);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    padding 0.25s ease;
  padding: 0 22px;
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.75;
  background: var(--bg-page);
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 14px 22px 20px;
}

/* ══════════════════════════════════════════════
   DASHBOARD CARD (HERO MOCKUP)
══════════════════════════════════════════════ */
.dashboard-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
  padding: 24px;
  position: relative;
}
.dashboard-card::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  background: linear-gradient(
    135deg,
    rgba(232, 160, 32, 0.25),
    rgba(37, 99, 235, 0.12)
  );
  border-radius: 24px;
  z-index: -1;
}
.db-stat {
  background: var(--bg-page);
  border-radius: 10px;
  padding: 12px 14px;
  border-left: 3px solid var(--blue-light);
}
.db-stat.gold-border {
  border-left-color: var(--accent);
}
.db-stat.navy-border {
  border-left-color: var(--navy);
}
.db-bar-track {
  background: #e2e8f0;
  border-radius: 4px;
  height: 7px;
  overflow: hidden;
}
.db-bar-fill {
  background: var(--blue-light);
  border-radius: 4px;
  height: 100%;
  transition: width 1.5s ease;
}
.db-bar-fill.gold {
  background: var(--accent);
}

/* ══════════════════════════════════════════════
   IMAGE SECTIONS (people/office photos)
══════════════════════════════════════════════ */
.img-section {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}
.img-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-section .img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 37, 68, 0.7) 0%,
    rgba(30, 74, 140, 0.3) 100%
  );
}

/* Photo background utility — used on sections */
.photo-bg {
  position: relative;
  background-size: cover !important;
  background-position: center !important;
}
.photo-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  z-index: 0;
}
.photo-bg > * {
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════
   TESTIMONIAL CARDS
══════════════════════════════════════════════ */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  transition: all 0.25s;
}
.testimonial-card:hover {
  box-shadow: 0 16px 40px rgba(15, 37, 68, 0.1);
  transform: translateY(-3px);
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--steel-dark);
}
.stars {
  color: var(--accent);
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.site-footer {
  background: var(--navy);
  color: #94a3b8;
}
.footer-logo-text {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-size: 1.45rem;
  color: #fff;
  letter-spacing: -0.5px;
}
.footer-logo-text span {
  color: var(--accent);
}
.footer-heading {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #cbd5e1;
  margin-bottom: 16px;
}
.footer-link {
  display: block;
  font-size: 0.865rem;
  color: #64748b;
  text-decoration: none;
  margin-bottom: 9px;
  transition:
    color 0.2s,
    padding-left 0.2s;
}
.footer-link:hover {
  color: var(--accent);
  padding-left: 4px;
}
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.2s;
  margin-right: 6px;
}
.footer-social a:hover {
  background: var(--blue-light);
  color: #fff;
  border-color: var(--blue-light);
}
.footer-divider {
  border-color: rgba(255, 255, 255, 0.07);
  margin: 0;
}
.footer-bottom {
  padding: 18px 0;
  font-size: 0.78rem;
  color: #475569;
}

/* ══════════════════════════════════════════════
   BACK TO TOP / CHAT FAB
══════════════════════════════════════════════ */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 42px;
  height: 42px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 6px 20px rgba(30, 74, 140, 0.35);
  transition: all 0.2s;
  z-index: 999;
}
#back-to-top.show {
  display: flex;
}
#back-to-top:hover {
  background: var(--navy);
  transform: translateY(-2px);
}

.chat-fab {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 50px;
  height: 50px;
  background: var(--blue-light);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  transition: all 0.2s;
  z-index: 998;
  text-decoration: none;
}
.chat-fab:hover {
  background: var(--navy);
  transform: scale(1.06);
}

/* ══════════════════════════════════════════════
   MOBILE MENU
══════════════════════════════════════════════ */
.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}

body.mobile-nav-open {
  overflow: hidden;
}

/* Legacy in-header dropdown (fallback) */
#mobile-menu:not(.mobile-nav-panel) {
  display: none;
  background: #fff;
  border-top: 1px solid var(--steel);
  padding: 14px;
  box-shadow: 0 10px 30px rgba(15, 37, 68, 0.1);
}
#mobile-menu:not(.mobile-nav-panel).open {
  display: block;
}
.mobile-nav-link {
  display: block;
  padding: 10px 13px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-mid);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s;
}
.mobile-nav-link:hover {
  background: var(--steel);
}

#mobile-menu.mobile-nav-panel {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #ffffff;
  color: #0f172a;
  padding: 24px;
  overflow-y: auto;
  border: none;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  transition:
    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.28s ease,
    visibility 0.28s ease;
  will-change: transform, opacity;
}
#mobile-menu.mobile-nav-panel.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-100%);
}
.mobile-nav-panel {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #ffffff;
  color: #0f172a;
  padding: 24px;
  overflow-y: auto;
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  transition:
    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.28s ease,
    visibility 0.28s ease;
  will-change: transform, opacity;
}
.mobile-nav-panel.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-100%);
}
.mobile-nav-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.mobile-nav-panel__logo {
  color: #0f172a;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.mobile-nav-panel__logo img {
  display: block;
  max-height: 40px;
  width: auto;
}
.mobile-nav-panel__close {
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #0f172a;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.5rem;
  cursor: pointer;
}
.mobile-nav-panel__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-nav-panel__nav > a,
.mobile-nav-panel__nav > button,
.mobile-nav-panel__nav .dropdown-menu a {
  display: block;
  width: 100%;
  padding: 14px 16px;
  color: #0f172a;
  text-decoration: none;
  border-radius: 14px;
  font-weight: 600;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.mobile-nav-panel__nav > a:hover,
.mobile-nav-panel__nav > button:hover,
.mobile-nav-panel__nav .dropdown-menu a:hover {
  background: #f8fafc;
  color: #0f172a;
}
.mobile-nav-panel__nav .active {
  background: #e0f2fe;
  color: #0f172a;
}
.mobile-nav-panel__nav .dropdown {
  position: static;
  width: 100%;
}
.mobile-nav-panel__nav .dropdown-toggle {
  width: 100%;
  justify-content: space-between;
  color: #0f172a;
  background: #f8fafc;
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 600;
}
.mobile-nav-panel__nav .dropdown-toggle:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: none;
}
.mobile-nav-panel__nav .dropdown-menu {
  display: none;
  position: static;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
  padding-left: 8px;
  background: transparent;
  border: none;
  box-shadow: none;
  min-width: 0;
  animation: none;
}
.mobile-nav-panel__nav .dropdown-menu.show {
  display: flex;
}
.mobile-nav-panel__nav .dropdown-item {
  color: #475569;
  padding: 12px 16px;
  border-radius: 12px;
}
.mobile-nav-panel__nav .dropdown-item:hover {
  background: #f8fafc;
  color: #0f172a;
}
.mobile-nav-panel__nav .di-icon {
  background: #e2e8f0;
  color: #2563eb;
}
.mobile-nav-panel__nav .dropdown-item:hover .di-icon {
  background: #bfdbfe;
  color: #1d4ed8;
}

/* ══════════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════════ */
.shadow-soft {
  box-shadow: 0 8px 30px rgba(15, 37, 68, 0.08);
}
.rounded-2xl {
  border-radius: 16px;
}
.text-navy {
  color: var(--navy) !important;
}
.text-blue {
  color: var(--blue-light) !important;
}
.text-accent {
  color: var(--accent) !important;
}
.bg-page {
  background-color: var(--bg-page) !important;
}
.hero-home-bg {
  background-image: url("../images/payday_home.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* ══════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-scroll {
  animation: scrollText 30s linear infinite;
}
@keyframes scrollText {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100vw);
  }
}

/* ══════════════════════════════════════════════
   GLOBAL RESPONSIVE OVERRIDES
   These rules are shared across all pages through the main stylesheet,
   so the entire website inherits better mobile behavior without needing
   page-by-page CSS changes.
══════════════════════════════════════════════ */
html {
  -webkit-text-size-adjust: 100%;
}
body {
  font-size: 16px;
  line-height: 1.6;
}
img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}
a,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 1024px) {
  .hero-section,
  .page-hero,
  .hero-home-bg {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-title,
  .page-hero-title,
  h1 {
    font-size: clamp(2rem, 4.2vw, 2.8rem);
    line-height: 1.15;
  }

  .hero-subtitle,
  .hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
  }

  .page-hero-sub,
  .section-sub,
  p {
    font-size: 1rem;
    line-height: 1.75;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none !important;
  }
  .hamburger-btn {
    display: flex !important;
  }
  .hero-section {
    min-height: auto;
    padding: 80px 0 60px;
  }
  .compliance-section {
    padding: 28px 18px;
  }
  .page-hero {
    padding: 56px 0 44px;
  }
  .page-hero-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .page-hero-sub {
    font-size: 0.95rem;
  }
  .section-title {
    font-size: clamp(1.45rem, 5.5vw, 2rem);
  }
  .stat-number {
    font-size: 2rem;
  }
  .stats-section {
    padding: 36px 0;
  }
  .site-header .max-w-7xl {
    padding-left: 16px;
    padding-right: 16px;
  }
  .home-hero-section {
    aspect-ratio: auto !important;
    min-height: 280px !important;
    padding-bottom: 32px;
  }
  .home-hero-content {
    left: 4% !important;
    right: 4% !important;
    bottom: 8% !important;
  }
  .home-hero-section h1 {
    font-size: 1.4rem !important;
  }
  .home-hero-section .hero-subtitle {
    font-size: 0.875rem !important;
  }
  .home-hero-section .inline-block {
    padding: 10px 14px !important;
  }
  .btn-primary,
  .btn-outline {
    padding: 10px 18px;
    font-size: 0.825rem;
  }
  .contact-card {
    padding: 24px 18px;
  }
  .feature-grid-card {
    padding: 18px 16px;
  }
  .site-footer .grid {
    gap: 28px;
  }
  .chat-fab {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }
  #back-to-top {
    bottom: 80px;
    right: 20px;
  }
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
@media (min-width: 769px) {
  .hamburger-btn {
    display: none !important;
  }
  #mobile-menu {
    display: none !important;
  }
}
@media (max-width: 480px) {
  .announcement-bar {
    font-size: 0.7rem;
    padding: 6px 0;
  }
  .announcement-bar .max-w-7xl {
    padding-left: 12px;
    padding-right: 12px;
  }
  .grid.grid-cols-2:not([class*="md:grid-cols"]) {
    grid-template-columns: 1fr;
  }
}
