/* ============================================================
   DataPerk 2026 — Always-On Network Design Direction
   Loaded after global.css; same-specificity rules win by
   source order. !important used only where inline styles
   can't be removed from the template.
   ============================================================ */

:root :where(.home .is-layout-flow) > *,
header.wp-block-template-part + section {
  margin-block-start: 0;
}

.home {
  .entry-content {
    max-width: unset;
  }

  .entry-content h2:first-of-type {
    margin-top: 0;
  }
}

:not(.home) .page-header-band {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='800' height='200' viewBox='0 0 800 200'><path d='M0 160 H200 V80 H500 V30 H790 V160 H800' stroke='%232d568a33' stroke-width='1.5' fill='none'/><circle cx='200' cy='80' r='4' fill='%2399c63a33'/><circle cx='500' cy='30' r='4' fill='%2399c63a33'/><circle cx='790' cy='160' r='4' fill='%2399c63a33'/></svg>");
}

header {
  .wp-block-navigation__responsive-container.is-menu-open {
    overflow: visible;
  }

  .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
    padding: 0;

    .wp-block-navigation__responsive-close {
      padding: 20px;
      background-color: #fff;
    }
  }

  .wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container {
    padding-left: 1rem;
  }

  .main-header nav {
    order: 4;
  }

  .header-cta {
    display: none;

    @media (min-width: 520px) {
      display: flex
    }
  }
}

@media (min-width: 600px) {
  header {
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
      display:inherit;
    }

    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
      display: none;
    }
  }
}

@media (min-width: 1030px) {
  header {
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
      display:none;
    }

    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
      display: block;
    }

    .main-header nav {
      order: unset;
    }
  }
}

.contact-us {
  iframe {
    width: 100%;
    aspect-ratio: 4/3;
  }
}

/* ---- Hero: circuit trace SVG layer ---- */
.hero-circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.16;
  z-index: 0;
}

.hero-circuit svg {
  width: 100%;
  height: 100%;
}

/* Lift hero content above the circuit layer */
.hero-section .wp-block-cover__inner-container > .wp-block-group {
  position: relative;
  z-index: 1;
}

/* ---- Hero eyebrow ---- */
.hero-eyebrow {
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #99c63a;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

/* ---- Status card ---- */
.status-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.5rem;
  color: #fff;
}

.status-card-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.9);
}

.status-card-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.status-card-stat strong {
  color: #99c63a;
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700;
}

/* ---- Pulse dot ---- */
.pulse-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #99c63a;
  flex-shrink: 0;
  animation: dp-pulse-ring 2s ease-out infinite;
}

@keyframes dp-pulse-ring {
  0%   { box-shadow: 0 0 0 0    rgba(153, 198, 58, 0.65); }
  70%  { box-shadow: 0 0 0 10px rgba(153, 198, 58, 0); }
  100% { box-shadow: 0 0 0 0    rgba(153, 198, 58, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-dot {
    animation: none;
    box-shadow: 0 0 0 2px rgba(153, 198, 58, 0.5);
  }
}

/* ---- Button variants ---- */
.wp-block-button.btn-primary .wp-block-button__link {
  background-color: #99c63a !important;
  color: #0c1f3d !important;
}

.wp-block-button.btn-secondary .wp-block-button__link {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

.wp-block-button.btn-secondary .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

/* ---- Service cards — light theme override ---- */

/* Override global.css dark card style */
.service-card {
  background: #ffffff;
  border: 1px solid #dde3ea;
  border-radius: var(--wp--custom--border-radius--md, 8px);
  padding: var(--wp--preset--spacing--lg);
  transition: transform 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 24px rgba(20, 44, 82, 0.08);
}

/* Icon circle */
.service-card-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(153, 198, 58, 0.12);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.service-card-icon::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #99c63a;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.service-card:hover .service-card-icon::after {
  opacity: 1;
}

.service-card-icon svg {
  display: block;
}

/* ---- Testimonial band ---- */
.testimonial-band {
  background-color: #0c1f3d;
}

/* Green quote-mark glyph above each testimonial */
.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  display: block;
  font-family: var(--wp--preset--font-family--montserrat), Georgia, serif;
  font-size: 4.5rem;
  line-height: 0.85;
  font-weight: 700;
  color: #99c63a;
  margin-bottom: 0.5rem;
  pointer-events: none;
}

/* ---- Page header band ---- */
.page-header-band {
  position: relative;
  background: var(--navy, #142C52);
  padding: 56px 8vw 48px;
  overflow: hidden;
}

.page-header-band .hero-circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.16;
}

.page-header-band > * {
  position: relative;
  z-index: 2;
}

.page-header-band h1 {
  margin: 0;
}

/* ---- Footer logo — invert to white against navy background ---- */
.footer-logo-reversed img {
  filter: brightness(0) invert(1);
}

/* ---- Mobile responsive ---- */
@media (max-width: 781px) {
  .hero-circuit {
    display: none;
  }

  /* Keep the band's circuit visible — only the homepage hero circuit hides */
  .page-header-band .hero-circuit {
    display: block;
  }

  .page-header-band {
    padding: 40px 6vw 32px;
  }

  .status-card {
    margin-top: 1.5rem;
  }

  /* Hero: collapse to single column, reduce padding by ~1/3 */
  .hero-section {
    padding-top: var(--wp--preset--spacing--xl) !important;
    padding-bottom: var(--wp--preset--spacing--xl) !important;
  }

  .hero-section .wp-block-columns {
    flex-wrap: wrap;
  }

  .hero-section .wp-block-column {
    flex-basis: 100% !important;
    min-width: 100%;
  }

  /* Services grid: collapse from 4 columns to 2 columns */
  .services-section .wp-block-columns {
    flex-wrap: wrap;
  }

  .services-section .wp-block-column {
    flex-basis: calc(50% - 0.75rem) !important;
    min-width: calc(50% - 0.75rem);
  }

  /* Testimonial quotes: reduce font-size to avoid overflow on narrow screens */
  .testimonial-card .wp-block-paragraph {
    font-size: 1.1875rem !important; /* ~19px */
  }
}

@media (max-width: 480px) {
  /* Services grid: collapse to 1 column at smallest viewports */
  .services-section .wp-block-column {
    flex-basis: 100% !important;
    min-width: 100%;
  }
}

/* ============================================================
   SERVICE / PAGE BODY CONTENT — migrated content styling
   Scoped to .entry-content so all 7 service pages inherit it
   ============================================================ */
.entry-content { max-width: 820px; margin: 0 auto; }
.entry-content > p {
  font-size: 16.5px; line-height: 1.75; color: #33393f; margin: 0 0 1.25em;
}
.entry-content h2 {
  font-family: 'Montserrat', sans-serif;
  color: #142C52;
  font-size: 26px; font-weight: 700; line-height: 1.2;
  margin: 2.2em 0 0.7em; padding-top: 1.4em;
  border-top: 1px solid #e4e9ef;
}
.entry-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 1em; }
.entry-content a { color: #2d568a; text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: #142C52; }
.entry-content img.article-image { max-width: 280px; height: auto; }

/* Testimonial blockquote */
.entry-content blockquote {
  border-left: 3px solid #99c63a;
  background: #f6f8fa;
  padding: 22px 26px; margin: 2em 0; border-radius: 0 6px 6px 0;
}
.entry-content blockquote p { font-style: italic; color: #45505f; margin: 0; font-size: 16px; }

/* Feature-card grid (ul.grid-list) */
.entry-content ul.grid-list {
  list-style: none; margin: 1.5em 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: #dde3ea; border: 1px solid #dde3ea;
}
.entry-content ul.grid-list > li {
  background: #fff; margin: 0; padding: 24px 22px; list-style: none;
}
.entry-content .list-placement-image { margin-bottom: 10px; }
.entry-content .list-placement-image img {
  width: 34px; height: 34px; margin-bottom: 10px; display: block;
}
.entry-content .list-placement-image strong {
  font-family: 'Montserrat', sans-serif;
  color: #142C52; font-size: 16px; display: block;
}
.entry-content ul.grid-list > li > p { font-size: 14px; line-height: 1.6; color: #6b7280; margin: 0; }
.entry-content .clearall { clear: both; display: block; height: 0; }

/* Two-column benefits (.dp_grid / .unit-1-2) */
.entry-content .dp_grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 1.5em 0; }
.entry-content .dp_grid ul { list-style: none; padding: 0; margin: 0 0 1em; }
.entry-content .dp_grid li { margin-bottom: 1em; line-height: 1.65; font-size: 15.5px; }
.entry-content .dp_grid strong { color: #142C52; }

/* Mobile: collapse content grids to one column */
@media (max-width: 781px) {
  .entry-content ul.grid-list { grid-template-columns: 1fr; }
  .entry-content .dp_grid { grid-template-columns: 1fr; gap: 0; }
}

/* ============================================================
   2026 Theme Revisions — movement, new homepage sections
   ============================================================ */

/* ---- Scroll-reveal (JS toggles .is-visible via IntersectionObserver) ---- */
.reveal-on-scroll,
.reveal-on-load {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.is-visible,
.reveal-on-load.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .reveal-on-load {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Hiring strip (top announcement bar, above utility bar) ---- */
.hiring-strip a { color: inherit; text-decoration: none; }
.hiring-strip a:hover { text-decoration: underline; }

/* ---- Client Support dropdown (utility bar) ---- */
.client-support-menu { position: relative; display: inline-block; font-size: var(--wp--preset--font-size--sm); }
.client-support-menu summary {
  cursor: pointer;
  list-style: none;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}
.client-support-menu summary::-webkit-details-marker { display: none; }
.client-support-menu summary::after {
  content: '▾';
  font-size: 0.7em;
}
.client-support-menu summary:hover { color: var(--dp-green); }
.client-support-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  padding: 0.5rem 0;
  min-width: 180px;
  z-index: 200;
  display: flex;
  flex-direction: column;
}
.client-support-menu__panel a {
  color: var(--dp-navy);
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  white-space: nowrap;
}
.client-support-menu__panel a:hover { background: var(--dp-light); color: var(--dp-blue); }

/* ---- Header CTA button ---- */
.header-cta { margin-left: 1rem; }

/* ---- Stats band (oversized numbers, navy) ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-number {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 800;
  font-size: var(--wp--preset--font-size--display);
  line-height: 1;
  color: #99c63a;
  letter-spacing: -0.02em;
}
.stat-label {
  margin-top: 0.5rem;
  font-size: var(--wp--preset--font-size--sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}

/* ---- Problems We Solve ---- */
.problem-list { display: flex; flex-direction: column; }
.problem-row {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(20,44,82,0.12);
  transition: padding-left 0.3s ease;
}
.problem-row:last-child { border-bottom: 1px solid rgba(20,44,82,0.12); }
.problem-row:hover { padding-left: 0.75rem; }
.problem-index {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 800;
  font-size: var(--wp--preset--font-size--xl);
  color: rgba(20,44,82,0.18);
  flex-shrink: 0;
  min-width: 3rem;
}
.problem-row p {
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: var(--wp--preset--font-size--xl);
  font-weight: 600;
  color: #142C52;
  margin: 0;
  line-height: 1.3;
}

/* ---- Brand moment ---- */
.brand-moment { text-align: center; }

/* ---- Managed IT feature panel ---- */
.managed-it-panel {
  background: #f6f8fa;
  border-radius: var(--wp--custom--border-radius--lg, 16px);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.managed-it-panel-row {
  font-size: var(--wp--preset--font-size--md);
  color: #142C52;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.managed-it-panel-row span {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 800;
  font-size: var(--wp--preset--font-size--xl);
  color: #99c63a;
  min-width: 2.5ch;
}

/* ---- Service accordion ("What can we take off your plate?") ---- */
.service-accordion { border-top: 1px solid #dde3ea; }
.service-accordion details {
  border-bottom: 1px solid #dde3ea;
}
.service-accordion summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700;
  font-size: var(--wp--preset--font-size--lg);
  color: #142C52;
}
.service-accordion summary::-webkit-details-marker { display: none; }
.service-accordion summary svg { color: #99c63a; flex-shrink: 0; transition: transform 0.25s ease; }
.service-accordion details[open] summary svg { transform: rotate(45deg); }
.service-accordion summary:hover { color: #2d568a; }
.service-accordion-panel {
  padding: 0 0 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.service-accordion-panel p {
  color: #5a6a7e;
  font-size: var(--wp--preset--font-size--base);
  line-height: 1.6;
  max-width: 640px;
  margin: 0;
}
.service-accordion-panel a {
  color: #99c63a;
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700;
  font-size: var(--wp--preset--font-size--sm);
  text-decoration: none;
  white-space: nowrap;
}
.service-accordion-panel a:hover { text-decoration: underline; }

/* ---- Why DataPerk (alternating rows, no cards) ---- */
.why-row {
  padding: 1.75rem 0;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.why-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.14); }
.why-row h3 {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700;
  font-size: var(--wp--preset--font-size--xl);
  color: #99c63a;
  margin: 0 0 0.5rem;
}
.why-row p {
  color: rgba(255,255,255,0.85);
  font-size: var(--wp--preset--font-size--md);
  line-height: 1.6;
  margin: 0;
  max-width: 720px;
}

/* ---- Team section ---- */
.team-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.team-photo-slot {
  aspect-ratio: 4 / 3;
  border: 2px dashed rgba(20,44,82,0.3);
  border-radius: var(--wp--custom--border-radius--md, 8px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(20,44,82,0.45);
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700;
  font-size: var(--wp--preset--font-size--sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: repeating-linear-gradient(135deg, rgba(20,44,82,0.04) 0 10px, transparent 10px 20px);
}
.team-photo-slot--wide { grid-column: span 2; aspect-ratio: 16 / 7; }

/* ---- Who We Serve pills ---- */
.who-we-serve-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.who-we-serve-pills span {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700;
  font-size: var(--wp--preset--font-size--md);
  color: #142C52;
  background: #f6f8fa;
  border: 1px solid #dde3ea;
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.who-we-serve-pills span:hover {
  background: rgba(153,198,58,0.15);
  transform: translateY(-2px);
}

/* ---- Getting Started steps ---- */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.step-tile { text-align: left; }
.step-number {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 800;
  font-size: var(--wp--preset--font-size--xl);
  color: #ffffff;
  background: #142C52;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.step-tile h3 {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700;
  font-size: var(--wp--preset--font-size--lg);
  color: #142C52;
  margin: 0 0 0.4rem;
}
.step-tile p { color: #5a6a7e; margin: 0; line-height: 1.6; }

/* ---- Client success / testimonial redesign (large quotes, no cards) ---- */
.client-success { display: flex; flex-direction: column; gap: 3.5rem; }
.client-quote { max-width: 900px; }
.client-quote.align-right { margin-left: auto; text-align: right; }
.client-quote-mark {
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 0.6;
  color: #99c63a;
  display: block;
  margin-bottom: 0.5rem;
}
.client-quote.align-right .client-quote-mark { text-align: right; }
.client-quote p.quote-text {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 500;
  font-size: var(--wp--preset--font-size--xl);
  line-height: 1.4;
  color: #ffffff;
  margin: 0 0 1rem;
}
.client-quote .quote-attrib {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700;
  font-size: var(--wp--preset--font-size--sm);
  color: #8a9ab5;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.client-quote .quote-attrib span { color: #99c63a; }

/* ---- IT Insights (de-emphasized) ---- */
.it-insights-section .blog-card { transition: transform 0.2s ease; }
.it-insights-section .blog-card:hover { transform: translateY(-2px); }

/* ---- Mobile responsive: 2026 revision sections ---- */
@media (max-width: 781px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .managed-it-feature .wp-block-columns,
  .team-section .wp-block-columns { flex-wrap: wrap; }
  .managed-it-feature .wp-block-column,
  .team-section .wp-block-column { flex-basis: 100% !important; min-width: 100%; }
  .steps-row { grid-template-columns: 1fr; gap: 2rem; }
  .problem-row { gap: 1rem; padding: 1.25rem 0; }
  .problem-row p, .problem-index { font-size: var(--wp--preset--font-size--lg); }
  .service-accordion summary { font-size: var(--wp--preset--font-size--md); padding: 1.1rem 0; }
  .client-quote.align-right { margin-left: 0; text-align: left; }
  .client-quote.align-right .client-quote-mark { text-align: left; }
  .client-quote p.quote-text { font-size: var(--wp--preset--font-size--lg); }
  .team-photo-grid { grid-template-columns: 1fr; }
  .team-photo-slot--wide { grid-column: span 1; }
  .header-cta .wp-block-button__link { padding: 10px 16px !important; font-size: 0.7rem !important; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}
