/* ==========================================================
   HRDelivered — Payroll & Tax Service Page
   Depends on: hrdelivered-global.css (tokens, nav, footer, btn-primary, etc.)
   ========================================================== */

/* ── Shared content width (mirrors homepage) ──────────────── */
.pt-hero-inner,
.section-inner {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 768px) {
  .pt-hero-inner,
  .section-inner {
    padding-inline: 2.5rem;
  }
}

/* ── Section base (reuse from homepage) ─────────────────────
   These are already in hrdelivered-homepage.css; duplicating
   here so this page is self-contained. Specificity is the same. */
.section {
  padding-block: 4rem;
}

.section--white { background: #ffffff; }
.section--cream { background: var(--color-cream, #F6F3E8); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--color-navy, #001342);
  margin-bottom: 0.75rem;
}
.section-header p {
  font-size: 1.0625rem;
  color: var(--color-text-muted, #4b5563);
  line-height: 1.65;
}

/* ── Card grid (reuse .card from homepage) ──────────────────── */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-3 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid rgba(0,19,66,0.10);
  border-radius: var(--radius-xl, 16px);
  padding: 2.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: rgba(9,79,254,0.35); box-shadow: 0 4px 24px rgba(0,19,66,0.08); }

.card--step { position: relative; overflow: hidden; }
.card-num {
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-size: 4.5rem;
  font-weight: 700;
  color: rgba(9,79,254,0.10);
  line-height: 1;
  pointer-events: none;
}

.card-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9,79,254,0.08);
  border-radius: var(--radius-md, 10px);
  margin-bottom: 1.25rem;
}
.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-navy, #001342);
  margin-bottom: 0.625rem;
}
.card-body {
  font-size: 0.9375rem;
  color: rgba(0,19,66,0.60);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   HERO  (homepage-style: centered, single-column, navy bg)
   ══════════════════════════════════════════════════════════════ */
.hero {
  background-color: var(--color-navy, #001342);
  padding: 8rem 1.5rem 6rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-glow1 {
  position: absolute;
  top: 4rem; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px;
  background: rgba(9,79,254,0.25);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.hero-glow2 {
  position: absolute;
  top: 4rem; left: 33%;
  transform: translateX(-50%);
  width: 400px; height: 300px;
  background: rgba(215,1,63,0.20);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 56rem;
  margin-inline: auto;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(91,140,255,0.40);
  border-radius: var(--radius-full, 9999px);
  background-color: rgba(91,140,255,0.15);
  margin-bottom: 2rem;
}
.hero-badge-text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.80);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero h1 span { color: var(--color-blue-light, #5b8cff); }

.hero p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.70);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 640px) { .hero-btns { flex-direction: row; } }
@media (max-width: 768px) { .hero { padding-top: 7rem; padding-bottom: 4rem; } }

/* ── Hero fade-up animations (matches homepage) ──────────── */
@keyframes hrdFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badge {
  animation: hrdFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0s;
}
.hero-inner h1 {
  animation: hrdFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.12s;
}
.hero-inner > p {
  animation: hrdFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.26s;
}
.hero-btns {
  animation: hrdFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.4s;
}
@media (prefers-reduced-motion: reduce) {
  .hero-badge,
  .hero-inner h1,
  .hero-inner > p,
  .hero-btns { animation: none; }
}

/* Outline white button (for dark backgrounds) */
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  border: 1.5px solid rgba(255,255,255,0.55);
  color: rgba(255,255,255,0.9);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline-white:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* ══════════════════════════════════════════════════════════════
   STAT BAR
   ══════════════════════════════════════════════════════════════ */
.hi-stat-bar {
  background-color: var(--color-cream, #F6F3E8);
  border-top: 1px solid rgba(0,19,66,0.10);
  border-bottom: 1px solid rgba(0,19,66,0.10);
  padding-block: 1rem;
}
.hi-stat-bar-inner {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (min-width: 768px) {
  .hi-stat-bar-inner { padding-inline: 2.5rem; }
}
.hi-stat {
  padding: 1.6rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(0,19,66,0.10);
}
.hi-stat:last-child { border-right: none; }
@media (max-width: 960px) {
  .hi-stat-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .hi-stat:nth-child(2) { border-right: none; }
  .hi-stat:nth-child(3) { border-right: 1px solid rgba(0,19,66,0.10); }
  .hi-stat:nth-child(3),
  .hi-stat:nth-child(4) { border-top: 1px solid rgba(0,19,66,0.10); }
}
.hi-stat-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy, #001342);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}
.hi-stat-label {
  font-size: 0.875rem;
  color: rgba(0,19,66,0.55);
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════════
   FEATURES 4-UP (Services overview)
   ══════════════════════════════════════════════════════════════ */
.pt-features-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .pt-features-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .pt-features-4 { grid-template-columns: repeat(4, 1fr); }
}

.pt-feature-tile {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.75rem;
}
.pt-feature-icon {
  width: 44px;
  height: 44px;
  background: #eff4ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.pt-feature-tile h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-navy, #001342);
  margin-bottom: 0.5rem;
}
.pt-feature-tile p {
  font-size: 0.9375rem;
  color: var(--color-text-muted, #4b5563);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   TWO-COLUMN SPLIT (text + image)
   ══════════════════════════════════════════════════════════════ */
.pt-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .pt-split {
    grid-template-columns: 1fr 1fr;
  }
  .pt-split--reverse .pt-split-text { order: 2; }
  .pt-split--reverse .pt-split-image { order: 1; }
}

.pt-split-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-navy, #001342);
  margin-bottom: 1rem;
  line-height: 1.25;
}
.pt-split-text p {
  font-size: 1rem;
  color: var(--color-text-muted, #4b5563);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.pt-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}
.pt-bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9375rem;
  color: #374151;
  line-height: 1.55;
  padding-block: 0.35rem;
}
.pt-bullet-list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-blue, #094ffe);
  margin-top: 0.5rem;
}

.ab-check-list { list-style: none; padding: 0; margin: 1.25rem 0 2rem; }
.ab-check-list li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9375rem; color: var(--color-navy, #001342); background: none !important; line-height: 1.55; margin-bottom: 0.35rem; padding-block: 0; }
.ab-check-list li::before { content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%2322c55e'/%3E%3Cpath d='M6 10l3 3 5-5' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center/contain no-repeat; }

.pt-split-image img {
  width: 100%;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}

/* ══════════════════════════════════════════════════════════════
   COST SAVINGS CALLOUT BAR
   ══════════════════════════════════════════════════════════════ */
.pt-callout-section {
  background: #F6F3E8;
  border-bottom: 1px solid #e2dece;
  padding-block: 2rem;
}
.pt-callout-inner {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .pt-callout-inner { padding-inline: 2.5rem; }
}
@media (min-width: 900px) {
  .pt-callout-inner { flex-wrap: nowrap; }
}

.pt-callout-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: rgba(0, 19, 66, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy, #001342);
}
.pt-callout-body { flex: 1; min-width: 220px; }
.pt-callout-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.25rem;
}
.pt-callout-text {
  font-size: 1rem;
  color: var(--color-navy, #001342);
  line-height: 1.6;
}
.pt-callout-text strong { color: var(--color-navy, #001342); font-weight: 700; }

/* Red CTA button override for callout */
.pt-callout-btn {
  background: var(--color-crimson, #d7013f) !important;
  border-color: var(--color-crimson, #d7013f) !important;
  white-space: nowrap;
  flex-shrink: 0;
}
.pt-callout-btn:hover {
  background: #b5012f !important;
  border-color: #b5012f !important;
}

/* ══════════════════════════════════════════════════════════════
   FEATURES 6-UP (Confidence section)
   ══════════════════════════════════════════════════════════════ */
.pt-grid-2-plus-img {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .pt-grid-2-plus-img {
    grid-template-columns: 1fr 360px;
  }
}

.pt-features-6 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .pt-features-6 { grid-template-columns: 1fr 1fr; }
}

.pt-feature-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  transition: box-shadow 0.2s;
}
.pt-feature-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.pt-feature-card-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: #eff4ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pt-feature-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-navy, #001342);
  margin-bottom: 0.3rem;
}
.pt-feature-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted, #4b5563);
  line-height: 1.55;
}

.pt-confidence-image img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

/* ══════════════════════════════════════════════════════════════
   TAX SOLUTIONS GRID (8 cards, 4 cols)
   ══════════════════════════════════════════════════════════════ */
.pt-tax-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .pt-tax-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .pt-tax-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ══════════════════════════════════════════════════════════════
   MID-PAGE CTA
   ══════════════════════════════════════════════════════════════ */
.pt-mid-cta {
  background: var(--color-cream, #F6F3E8);
  border-top: 1px solid #e2dece;
  border-bottom: 1px solid #e2dece;
  padding-block: 4rem;
  text-align: center;
}
.pt-mid-cta-inner {
  max-width: 680px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 768px) {
  .pt-mid-cta-inner { padding-inline: 2.5rem; }
}
.pt-mid-cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--color-navy, #001342);
  margin-bottom: 0.75rem;
}
.pt-mid-cta p {
  font-size: 1.0625rem;
  color: var(--color-text-muted, #4b5563);
  margin-bottom: 2rem;
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════════
   FAQ ACCORDION
   ══════════════════════════════════════════════════════════════ */
.pt-faq {
  max-width: 820px;
  margin-inline: auto;
}

.pt-faq-item {
  border-bottom: 1px solid #e5e7eb;
}
.pt-faq-item:first-child {
  border-top: 1px solid #e5e7eb;
}

.pt-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  background: none;
  border: none;
  padding-block: 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy, #001342);
  cursor: pointer;
  line-height: 1.4;
  transition: color 0.15s;
}
.pt-faq-q:hover { color: var(--color-blue, #094ffe); }

.pt-faq-chevron {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.pt-faq-item.is-open .pt-faq-chevron {
  transform: rotate(180deg);
}

.pt-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.pt-faq-a p {
  font-size: 0.9375rem;
  color: var(--color-text-muted, #4b5563);
  line-height: 1.7;
  padding-bottom: 1.25rem;
}

/* ══════════════════════════════════════════════════════════════
   BOTTOM CTA (mirrors homepage cta-section)
   ══════════════════════════════════════════════════════════════ */
.cta-section {
  position: relative;
  overflow: hidden;
  background: #001342;
  padding-block: 5rem;
  text-align: center;
}
.cta-glow1, .cta-glow2 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cta-glow1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(9,79,254,0.25) 0%, transparent 70%);
  top: -150px; left: -100px;
}
.cta-glow2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(91,140,255,0.18) 0%, transparent 70%);
  bottom: -100px; right: -80px;
}
.cta-inner {
  position: relative;
  max-width: 640px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 768px) {
  .cta-inner { padding-inline: 2.5rem; }
}
.cta-inner h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}
.cta-inner p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  line-height: 1.65;
}
.cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ══ COMPREHENSIVE HEALTH BENEFITS — TILE GRID ══════════════════════ */
.chb-tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-content: start;
}
@media (max-width: 640px) {
  .chb-tile-grid { grid-template-columns: 1fr; }
}

/* ══ IMAGE-ABOVE-TITLE ON MOBILE ════════════════════════════════════ */
@media (max-width: 899px) {
  .pt-split--img-top-mobile .pt-split-image { order: -1; }
}

.chb-tile {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
}

.chb-tile-icon {
  width: 40px;
  height: 40px;
  background: #eff4ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.875rem;
}

.chb-tile h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-navy, #001342);
  margin-bottom: 0.375rem;
}

.chb-tile p {
  font-size: 0.875rem;
  color: var(--color-text-muted, #4b5563);
  line-height: 1.55;
}

/* ══ EMPLOYEE BENEFITS — SPECIFIC STYLES ════════════════════════════ */

.eb-hero-h1-accent { color: var(--color-blue-light, #5b8cff); }

/* Carrier logos strip */
.eb-carriers {
  padding-block: 2.5rem;
  background: #ffffff;
}
.eb-carriers-heading {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 1.5rem;
}
.eb-carrier-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem 3rem;
}
.eb-carrier-logos img {
  max-height: 40px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: opacity 0.2s, filter 0.2s;
}
.eb-carrier-logos img:hover {
  opacity: 1;
  filter: none;
}

/* Impact image (full-width below cards) */
.eb-impact-image {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 2.5rem;
  display: block;
}

/* Portal advantages 2-col grid */
.eb-cards-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .eb-cards-4 { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   PARTNER NETWORK MARQUEE
   ══════════════════════════════════════════════════════════════ */
@keyframes ab-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ab-marquee-outer {
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.ab-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ab-marquee 28s linear infinite;
}

.ab-marquee-outer:hover .ab-marquee-track {
  animation-play-state: paused;
}

.ab-marquee-logo {
  flex-shrink: 0;
  padding: 0.75rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ab-marquee-logo img {
  max-width: 200px;
  height: auto;
  filter: grayscale(40%);
  opacity: 0.8;
  transition: filter 0.2s, opacity 0.2s;
}

.ab-marquee-logo img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .ab-marquee-track { animation: none; }
}
