/* ===== Service Hero ===== */
.service-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: stretch;
}

.service-hero__icon-box {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
}

.service-hero__icon-box i {
  font-size: 2.25rem;
}

/* Subtle accent rule under H1 */
.service-hero h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 0.75rem;
  background-color: currentColor;
  opacity: 0.15;
}

/* ===== Insights ===== */
.service-featured-articles {
  margin-bottom: 3rem;
}

.card-grid--featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Single featured article - 2 column layout */
.card-grid--featured:has(.gbp-card-custom--featured:only-child) {
  grid-template-columns: 1fr;
}

.card-grid--featured:has(.gbp-card-custom--featured:only-child) .gbp-card-custom--featured {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
}

/* Remove padding/border-radius from single featured image */
.card-grid--featured:has(.gbp-card-custom--featured:only-child) .gbp-card-custom--featured .card__thumb {
  border-radius: 0;
  aspect-ratio: unset;
}

.gbp-card-custom--featured {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
}

.gbp-card-custom--featured .card__thumb {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 16/9;
  background: #f5f5f5;
}

.gbp-card-custom--featured .card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gbp-card-custom--featured .card__tag {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gbp-card-custom--featured .card__content {
  padding: 1.5rem;
}

/* Better padding for single featured article */
.card-grid--featured:has(.gbp-card-custom--featured:only-child) .gbp-card-custom--featured .card__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Mobile - stack single featured article */
@media (max-width: 768px) {
  .card-grid--featured:has(.gbp-card-custom--featured:only-child) .gbp-card-custom--featured {
    grid-template-columns: 1fr;
  }
}

.service-more-articles .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.gbp-card-custom {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
}

.gbp-card-custom .card__thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #f5f5f5;
}

.gbp-card-custom .card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gbp-card-custom .card__content {
  padding: .5rem!important;
}

/* ===== Case Studies ===== */
.cs-featured {
  position: relative;
}

.cs-track {
  position: relative;
}

.cs-slide {
  transition: opacity 0.3s ease;
}

.cs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.cs-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #ddd;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
}

.cs-nav--prev { left: -20px; }
.cs-nav--next { right: -20px; }

/* ===== Strategies ===== */
.strategies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.strategy-blurb {
  padding: 1.75rem;
  border-radius: 8px;
  background: #fafafa;
}

.strategy-blurb h3 {
  margin-top: 0;
}
/* ===== Engagement Rail ===== */
.engage__rail {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
}

.engage-card {
  min-width: 260px;
  scroll-snap-align: start;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1.5rem;
}

/* ===== FAQ ===== */
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 1rem 0;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.faq-a {
  padding-bottom: 1rem;
}

@media (max-width: 768px) {
  .service-hero {
    grid-template-columns: 1fr;
  }

  .cs-grid {
    grid-template-columns: 1fr;
  }

  .cs-nav {
    display: none;
  }
	
}

.hero-testimonial__logo {
  height: 48px;          /* tune as needed */
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}


/* =========================================================
   EXPLORE OUR SERVICES — FULL SECTION CSS
   (Grid tiles + snapped popover card)
   ========================================================= */

:root{
  --tile: 88px;
  --gap: 14px;
  --radius: 14px;

  /* PESO colors */
  --earned: #f05126;
  --paid:   #f7e009;
  --shared: #4fc4ca;
  --owned:  #92c848;
}

/* --- Hide any old “details panel” UI from earlier versions --- */
.service-details{ display:none !important; }

/* Section spacing */
.explore-services{ margin: 24px 0; }
.explore-services__header h2{ margin: 0 0 8px 0; }
.explore-services__header p{ margin: 0 0 14px 0; }

/* =========================================================
   Top controls (centered)
   ========================================================= */

.explore-services__controls{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin: 10px 0 14px 0;
}

/* AI row */
.explore-services__ai{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.explore-services__ai input{
  width: min(620px, 92vw);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #cfcfcf;
  font-size: 0.95rem;
}

.explore-services__ai .reset,
.explore-services__ai .explore-services__reset{
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  font-weight: 900;
  font-size: 0.95rem;
  cursor: pointer;
}

/* Filters row */
.explore-services__filters{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}

/* Checkbox-style filters */
.explore-services__filters button{
  position: relative;
  display:flex;
  align-items:center;
  gap:10px;

  padding: 10px 14px 10px 12px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  font-size: 0.95rem;

  background: #d9f4f7;
  color: #0b4b57;
}

/* checkbox square */
.explore-services__filters button::before{
  content:"";
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(255,255,255,0.9);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.15);
  display:block;
}

/* checked state */
.explore-services__filters button.active::before{
  content:"✓";
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 13px;
  font-weight: 900;
  color: #111;
}

/* unchecked fades */
.explore-services__filters button:not(.active){
  opacity: .55;
}

/* =========================================================
   Grid tiles
   ========================================================= */

.explore-services__grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, var(--tile));
  gap: var(--gap);
  align-items:start;
  position:relative; /* anchor popover */
}

/* Tile button */
.service-tile{
  width: var(--tile);
  height: var(--tile);
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;

  display:flex;
  align-items:center;
  justify-content:center;

  transition: transform .15s ease, box-shadow .15s ease, outline-color .15s ease;
  outline: 3px solid transparent;
}

/* hover */
.service-tile:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,.10);
}

/* active */
.service-tile.is-active{
  outline-color: rgba(0,0,0,0.28);
}

/* icons default */
.service-tile i{
  font-size: 28px;
  line-height: 1;
  color: #ffffff; /* white icons default */
}

/* PESO backgrounds */
.service-tile[data-channel="earned"] { background: var(--earned); }
.service-tile[data-channel="paid"]   { background: var(--paid); }
.service-tile[data-channel="shared"] { background: var(--shared); }
.service-tile[data-channel="owned"]  { background: var(--owned); }

/* Paid (yellow) icons are black */
.service-tile[data-channel="paid"] i { color: #000000; }

/* Keyboard focus */
.service-tile:focus-visible{
  outline-color: rgba(0,0,0,0.35);
}

/* Hide highlight when popover is open (including default-open tile) */
.explore-services__grid.has-open-popover .service-tile.is-active{
  outline-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

/* =========================================================
   Popover card (snapped to grid)
   ========================================================= */

.service-popover{
  position:absolute;
  z-index: 999;
  display:none;

  /* aligns to grid: 3 tiles + 2 gaps */
  width: calc((var(--tile) * 3) + (var(--gap) * 2));
  min-height: 220px;

  border-radius: var(--radius);
  box-shadow: 0 18px 36px rgba(0,0,0,0.18);

  /* default text color */
  color:#fff;

  animation: popIn .12s ease-out;
}

@keyframes popIn{
  from{ transform: scale(.98); opacity: 0; }
  to  { transform: scale(1);   opacity: 1; }
}

.service-popover.is-open{ display:block; }

/* Popover PESO backgrounds */
.service-popover[data-channel="earned"] { background: var(--earned); }
.service-popover[data-channel="paid"]   { background: var(--paid);   color:#000; }
.service-popover[data-channel="shared"] { background: var(--shared); }
.service-popover[data-channel="owned"]  { background: var(--owned);  }

/* Popover inner */
.service-popover__inner{
  padding: 20px 22px 18px 22px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  position:relative;
}

/* Close button (optional) */
.service-popover__close{
  position:absolute;
  top: 10px;
  right: 12px;
  border:0;
  background: transparent;
  color: inherit;
  font-weight: 900;
  cursor:pointer;
  opacity: .75;
}
.service-popover__close:hover{ opacity: 1; }

/* Icon ABOVE title, left aligned */
.service-popover__icon{
  width: 44px;
  height: 44px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom: 12px;

  /* KILL any blue background */
  background: transparent !important;
  box-shadow: none !important;
}

.service-popover__icon i{
  font-size: 28px;
  line-height: 1;
  color:#fff;
  background: transparent !important;
}

/* Paid popover icon black */
.service-popover[data-channel="paid"] .service-popover__icon i{
  color:#000;
}

/* Title */
.service-popover__title{
  margin: 0 0 10px 0;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align:left;
}

/* Body */
.service-popover__body{
  margin: 0 0 14px 0;
  line-height: 1.48;
  opacity: .95;
  text-align:left;
}

/* Link (no weird blue) */
.service-popover__link{
  font-weight: 900;
  text-decoration: none;
  color: rgba(255,255,255,0.92);
}

.service-popover__link:hover{
  text-decoration: underline;
  color:#fff;
}

/* Paid link black */
.service-popover[data-channel="paid"] .service-popover__link{
  color: rgba(0,0,0,0.86);
}
.service-popover[data-channel="paid"] .service-popover__link:hover{
  color:#000;
}

/* Link icon spacing */
.service-popover__link i{
  margin-right: 8px;
}

/* =========================================================
   Mobile adjustments
   ========================================================= */

@media (max-width:520px){
  :root{ --tile: 76px; --gap: 12px; --radius: 12px; }
  .service-tile i{ font-size:24px; }
	.faq-element { width:auto!important; }	
}



/* ==============================================
   HORIZONTAL SERVICES NAVIGATION - RIBBON VERSION
   ============================================== */

.services-horizontal-nav {
    position: relative;
    width: 100%;
    margin: 2rem 0 3rem 0;
    padding: 0;
}
.services-nav-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}


/* Horizontal scroll track */
.services-nav__track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.2) transparent;
}
.services-nav__track::-webkit-scrollbar {
    height: 6px;
}
.services-nav__track::-webkit-scrollbar-track {
    background: transparent;
}
.services-nav__track::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}
.services-nav__track::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.3);
}


/* Navigation arrows */
.services-nav__arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}
.services-nav__arrow:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: scale(1.05);
}
.services-nav__arrow:active {
    transform: scale(0.95);
}
.services-nav__arrow i {
    font-size: 14px;
    color: #333;
}


/* Service tile */
.service-nav-tile {
    position: relative;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    overflow: visible;
}
.service-nav-tile i {
    font-size: 28px;
    line-height: 1;
    color: #fff;
    position: relative;
    z-index: 2;
}
.service-nav-tile__fallback {
    font-size: 32px;
    color: #fff;
    font-weight: bold;
}

/* Hover effects */
.service-nav-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
	z-index: 200;
	position: relative;
}

/* Channel colors */
.service-nav-tile[data-channel="earned"] { background: #f05126; }
.service-nav-tile[data-channel="paid"]   { background: #f7e009; }
.service-nav-tile[data-channel="shared"] { background: #4fc4ca; }
.service-nav-tile[data-channel="owned"]  { background: #92c848; }

/* Paid channel has dark icons */
.service-nav-tile[data-channel="paid"] i,
.service-nav-tile[data-channel="paid"] .service-nav-tile__fallback {
    color: #000;
}

/* Ribbon that appears on hover */
.service-nav-tile__ribbon {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Arrow pointing up to tile */
.service-nav-tile__ribbon::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.85);
    transform: translateX(-50%) rotate(45deg);
}

/* Show ribbon on hover */
.service-nav-tile:hover .service-nav-tile__ribbon {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    bottom: -10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .services-horizontal-nav {
        margin: 1.5rem 0 2rem 0;
    }    
    .service-nav-tile {
        width: 64px;
        height: 64px;
    }
    .service-nav-tile i {
        font-size: 24px;
    }
    .service-nav-tile__ribbon {
        font-size: 11px;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .services-nav-wrapper {
        gap: 8px;
        padding: 0 0.5rem;
    }
    .services-nav__track {
        gap: 10px;
    }
    .services-nav__arrow i {
        font-size: 12px;
    }
    .service-nav-tile {
        width: 56px;
        height: 56px;
        border-radius: 10px;
    }
    .service-nav-tile i {
        font-size: 20px;
    }
    .service-nav-tile__ribbon {
        font-size: 10px;
        padding: 4px 8px;
    }
}

.tax-services .card__meta {
	display: none;
}

/* =========================================================
   SERVICES PAGE - TESTIMONIALS GRID (MINIMAL CSS)
   Add to Additional CSS
   ========================================================= */

/* Testimonials Section */
.service-testimonials h2 {
  text-align: center;
  margin-bottom: 3rem;
}

/* Testimonials Grid */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Individual Testimonial Card */
.testimonial {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 2rem;
  margin: 0;
}

/* Quote Text */
.testimonial__quote {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* Attribution */
.testimonial__by {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 600;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
  margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
.trust-logos img {
    WIDTH: 40%;
}
}


.card-grid--featured:has(.gbp-card-custom--featured:only-child) .gbp-card-custom--featured {
  min-height: 400px !important;
}

.card-grid--featured:has(.gbp-card-custom--featured:only-child) .gbp-card-custom--featured .card__thumb {
  height: 100% !important;
  min-height: 400px !important;
}

.card-grid--featured:has(.gbp-card-custom--featured:only-child) .gbp-card-custom--featured .card__thumb img {
  height: 100% !important;
  object-fit: cover !important;
}

/* If no image, collapse split layout to text-only */
.slab--no-image .slab__inner{
  grid-template-columns: 1fr !important;
}

