/* Services Hub page-scoped styles (extracted from inline for performance/cache) */
:root { --surface: #fff; } html:focus-within { scroll-behavior: smooth; } @media (prefers-reduced-motion: reduce){ html {  scroll-behavior: auto; } } /* Skip link */.skip-link { position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden; } .skip-link:focus { left: 12px; top: 12px; width: auto; height: auto; background: #fff; border: 2px solid currentColor; padding: .5rem .75rem; border-radius: 6px; z-index: 10000; } /* Header: keep classic look, ensure on top and tappable */.site-header { position: relative; z-index: 10001; background: unset; border-bottom: none; box-shadow: none; } .menu-btn { position: relative; z-index: 10002; -webkit-tap-highlight-color: transparent; } /* Mobile panel: use global style.css (same as home) — no overrides */ html.nav-open { overflow: hidden; } /* Trust bar */.trustbar { border-top: 1px solid rgba(0,0,0,.06); border-bottom: 1px solid rgba(0,0,0,.06); } .trustbar .wrap { display: grid; gap: 12px; align-items: center; grid-template-columns: repeat(4,1fr); } @media (max-width:900px){ .trustbar .wrap {  grid-template-columns: repeat(2,1fr); } } @media (max-width:520px){ .trustbar .wrap {  grid-template-columns: 1fr; }  .trustbar .kpi-tile { justify-content: flex-start; }  .trustbar .kpi-tile > span:first-child { min-width: 1.75em; flex-shrink: 0; text-align: center; } } .kpi-tile { display: flex; gap: 10px; align-items: center; justify-content: center; padding: .5rem 0; } .kpi-num { font-size: 1.35rem; font-weight: 800; } .kpi-label { font-size: .9rem; opacity: .85; } /* Hero */.hero-alt .lead { max-width: 62ch; } .hero-bullets { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 12px; } @media (max-width:700px){ .hero-bullets {  grid-template-columns: 1fr; } } .hero-bullets .b { display: flex; gap: 8px; align-items: flex-start; } .cred-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 8px; } .cred-row .badge { border: 1px solid rgba(0,0,0,.1); } .hero-cta { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; margin-top: 20px; } @media (max-width:900px){ .hero-cta {  grid-template-columns: 1fr; } } .mini-form { display: grid; gap: 8px; padding: 12px; border: 1px solid rgba(0,0,0,.08); border-radius: 10px; background: var(--surface,#fff); } .mini-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } @media (max-width:640px){ .mini-form .row {  grid-template-columns: 1fr; } } /* Quick filter (no longer sticky so it scrolls with page and doesn’t feel disconnected) */
.quick-nav-sticky { position: relative; z-index: 1; background: var(--surface,#fff); border-bottom: 1px solid rgba(0,0,0,.06); } .chip { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .65rem; border-radius: 999px; border: 1px solid rgba(0,0,0,.14); text-decoration: none; } .chip[aria-pressed="true"] { box-shadow: inset 0 0 0 2px currentColor; } /* Grid fallbacks in case theme.css lacks them */.grid { display: grid; gap: 1rem; } .grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); } @media (max-width:1024px){ .grid-3 {  grid-template-columns: repeat(2,minmax(0,1fr)); } } @media (max-width:640px){ .grid-3 {  grid-template-columns: 1fr; } } /* Service cards */.svc-card { position: relative; transition: transform .18s ease, box-shadow .18s ease; outline: none; background: rgba(255,255,255,.06); border: 1px solid rgba(0,0,0,.08); border-radius: 12px; padding: 12px; } .svc-card:hover, .svc-card:focus { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); } .svc-card:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; } .svc-icon { width: 96px; height: 96px; display: inline-flex; align-items: center; justify-content: center; border-radius: 18px; background: #eaf2fd; border: 1px solid rgba(13,59,102,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 2px 10px rgba(13,59,102,.08); } .svc-icon img { width: 84px; height: 84px; object-fit: contain; } @media (max-width:640px){ .svc-icon {  width: 86px;  height: 86px; }  .svc-icon img {  width: 74px;  height: 74px; } } /* Table matrix */.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; } .table.table-compact { font-size: .92rem; border-collapse: separate; border-spacing: 0; min-width: 760px; } .table.table-compact th, .table.table-compact td { padding: 10px 12px; white-space: nowrap; } .table.table-compact thead th { position: sticky; top: 0; background: #fff; z-index: 2; } .table--matrix th[scope="row"] { position: sticky; left: 0; background: var(--surface,#fff); z-index: 1; } .table--matrix td.is-col-hover, .table--matrix th.is-col-hover { outline: 2px solid rgba(0,0,0,.08); } .table--matrix td.hidden-col, .table--matrix th.hidden-col { display: none; } .matrix-controls { display: grid; gap: .5rem; margin: 8px 0 12px; } .matrix-controls .row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; } .matrix-controls .inline { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; } .matrix-controls .inline .input { min-width: 220px; } /* Reveal on scroll */[data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; } [data-reveal].is-visible { opacity: 1; transform: none; } /* Testimonial strip */.testi { border-top: 1px solid rgba(0,0,0,.06); border-bottom: 1px solid rgba(0,0,0,.06); margin-top: 12px; } .testi .inner { display: grid; gap: 6px; place-items: center; padding: 12px; } .stars { letter-spacing: 2px; } /* Footer */.footer-columns { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; } @media (max-width:800px){ .footer-columns {  grid-template-columns: 1fr; } } .footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } /* Progress bar */.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; background: transparent; z-index: 100; } .progress > i { display: block; height: 100%; width: 0; background: currentColor; opacity: .4; transition: width .15s linear; } /* Small helpers */.center { text-align: center; } .mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .visually-hidden { position: absolute!important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; } /* Prevent hero glow from blocking taps */.hero-alt::before { pointer-events: none; }

/* ------------------------------
   Service Hub V2 Visual Redesign
   ------------------------------ */
.page-services .grid.grid-3 {
  gap: 1.25rem;
}

.page-services .grid.grid-3 > * {
  min-width: 0;
}

.service-card.svc-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(13, 59, 102, 0.14);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  box-shadow: 0 10px 24px rgba(13, 59, 102, 0.08);
  padding: 14px;
}

.service-card.svc-card:hover,
.service-card.svc-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(13, 59, 102, 0.14);
}

.service-card.svc-card .svc-icon {
  width: 100%;
  height: clamp(224px, 22vw, 332px);
  min-height: 0;
  box-sizing: border-box;
  padding: clamp(14px, 2vw, 24px);
  margin: 0;
  border-radius: 14px;
  border: 1px solid rgba(13, 59, 102, 0.1);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 4px 12px rgba(13, 59, 102, 0.06);
}

.service-card.svc-card .svc-icon img {
  width: 90%;
  height: auto;
  max-width: 700px;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  transform: translateZ(0);
  filter: drop-shadow(0 8px 14px rgba(10, 36, 68, 0.18));
}

.service-card.svc-card h3 {
  margin: 0;
  font-size: clamp(1.12rem, 0.3vw + 1.04rem, 1.42rem);
  line-height: 1.23;
  letter-spacing: -0.01em;
}

.service-card.svc-card p {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.52;
  color: #2f4d70;
}

.service-card.svc-card .link-more {
  margin-top: auto;
  padding-top: 0.2rem;
  font-weight: 700;
  color: #123a66;
}

@media (max-width: 1024px) {
  .service-card.svc-card .svc-icon {
    height: 236px;
    min-height: 236px;
    aspect-ratio: auto;
    padding: 14px;
  }

  .service-card.svc-card .svc-icon img {
    width: 92%;
    max-width: 100%;
    max-height: 100%;
  }
}

@media (max-width: 640px) {
  .page-services .grid.grid-3 {
    gap: 0.95rem;
  }

  .service-card.svc-card {
    padding: 12px;
    border-radius: 15px;
  }

  .service-card.svc-card .svc-icon {
    height: 252px;
    min-height: 252px;
    padding: 12px;
    border-radius: 12px;
  }

  .service-card.svc-card .svc-icon img {
    max-width: 100%;
    max-height: 100%;
  }

  .service-card.svc-card h3 {
    font-size: 1.34rem;
  }

  .service-card.svc-card p {
    font-size: 1rem;
  }
}

/* iPhone fine-tune: larger white tile while keeping icon scale */
@media (min-width: 390px) and (max-width: 430px) {
  .service-card.svc-card .svc-icon {
    height: 266px;
    min-height: 266px;
  }
}

/* ---- HARD OVERRIDE: keep Service Hub icons large on all breakpoints ---- */
/* Applies to all category grids: Projects, Install & Finish, Exterior, Interior, etc. */
.page-services .service-card.svc-card .svc-icon {
  width: 100% !important;
  height: clamp(220px, 22vw, 340px) !important;
  min-height: 220px !important;
  padding: clamp(10px, 1.6vw, 18px) !important;
}

.page-services .service-card.svc-card .svc-icon img {
  width: 98% !important;
  height: auto !important;
  max-height: 100% !important;
}

@media (max-width: 768px) {
  .page-services .service-card.svc-card .svc-icon {
    height: 260px !important;
    min-height: 260px !important;
  }
}
