/* WorkgroupIT: light, friendly, modern */
:root {
  --navy: #0e2346;
  --blue: #2e7cf6;
  --blue-dark: #1d62d1;
  --text: #4a5876;
  --muted: #7a87a3;
  --bg: #fbfcff;
  --white: #ffffff;
  --line: #e3e9f4;
  --tint: #f3f7fd;
  --sky: #eaf2ff;
  --peach: #fff1e2;
  --mint: #e6f8f1;
  --lilac: #f1edff;
  --green: #22c38e;
  --radius: 16px;
  --wrap: 1140px;
  --head: "Manrope", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--navy); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.15em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 100; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; font-weight: 500; font-size: 15px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px -6px rgba(46,124,246,.55); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { border-color: var(--line); color: var(--navy); background: var(--white); }
.btn-ghost:hover { border-color: #c9d6ea; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,252,255,.88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo img { width: 193px; height: auto; display: block; }
.nav > ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav a, .sub-btn { color: var(--navy); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 10px; display: inline-flex; align-items: center; gap: 4px; }
.nav > ul > li > a:not(.btn):hover, .sub-btn:hover { background: var(--tint); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--blue); }
.nav .btn { color: #fff; margin-left: 8px; }
.sub-btn { background: none; border: 0; font-family: inherit; cursor: pointer; }
.sub-btn .icon { width: 16px; height: 16px; transition: transform .2s; }
.has-sub { position: relative; }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 8px); left: -8px; min-width: 260px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(14,35,70,.25); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: all .18s; }
.has-sub:hover .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover .sub-btn .icon, .has-sub.open .sub-btn .icon { transform: rotate(180deg); }
.sub a { display: flex; gap: 10px; padding: 9px 10px; width: 100%; font-weight: 500; }
.sub a:hover { background: var(--tint); text-decoration: none; }
.sub-ic { color: var(--blue); display: inline-flex; }
.menu-btn { display: none; background: none; border: 0; color: var(--navy); padding: 8px; cursor: pointer; }
.menu-btn .icon { width: 28px; height: 28px; }

/* Soft background shapes */
.hero, .page-hero { position: relative; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; pointer-events: none; }
.blob-a { width: 520px; height: 520px; right: -140px; top: -160px; background: var(--sky); }
.blob-b { width: 180px; height: 180px; right: 34%; bottom: 24px; background: var(--peach); }

/* Home hero */
.hero { padding: 72px 0 80px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.hero-title { font-family: var(--head); color: var(--navy); margin: 0 0 .4em; font-size: clamp(2.8rem, 7vw, 4.6rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; }
.hero-title span { color: var(--blue); }
h1.eyebrow, .eyebrow { font-family: var(--body); line-height: 1.4; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.lead { font-size: 1.2rem; color: var(--text); max-width: 36em; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.mike-card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(14,35,70,.25); max-width: 290px; justify-self: center; width: 100%; }
.mike-card img { width: 100%; aspect-ratio: 1 / 0.78; object-fit: cover; object-position: center 20%; background: #fff; }
.mike-card-body { padding: 16px 20px 18px; }
.mike-card-title { font-family: var(--head); font-weight: 700; font-size: 1.05rem; color: var(--navy); margin: 0 0 4px; line-height: 1.25; }
.mike-card-text { margin: 0 0 10px; font-size: 14px; }
.mike-card-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1rem; }
.mike-card-phone .icon { width: 20px; height: 20px; }

/* Tiles */
.tiles-section { padding-top: 0; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 6px; color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s; }
.tile:hover, .tile.reveal.in:hover { text-decoration: none; transform: translateY(-4px); border-color: #cfdcf0; box-shadow: 0 20px 40px -24px rgba(14,35,70,.3); }
.tile-label { font-family: var(--head); font-weight: 600; font-size: 1.15rem; color: var(--navy); margin-top: 8px; }
.tile-text { font-size: 15px; }
.card-ic { width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.card-ic .icon { width: 24px; height: 24px; }
.tone-0 { background: var(--sky); color: var(--blue); }
.tone-1 { background: var(--mint); color: #16a174; }
.tone-2 { background: var(--peach); color: #e07a1f; }
.tone-3 { background: var(--lilac); color: #6a55d8; }

/* Sections */
.section { padding: 80px 0; }
.section-tint { background: var(--tint); }
.section-title { text-align: center; max-width: 26em; margin: 0 auto 12px; font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.section-sub { text-align: center; max-width: 34em; margin: 0 auto 40px; }
.section-title + .cards, .section-title + .quotes { margin-top: 36px; }

/* Compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin: 0 auto; }
.compare-col { border-radius: var(--radius); padding: 28px; }
.compare-col ul { list-style: none; margin: 0; padding: 0; }
.compare-col li { display: flex; gap: 12px; padding: 9px 0; }
.compare-col li .icon { margin-top: 4px; }
.compare .old { background: var(--white); border: 1px solid var(--line); }
.compare .old h3 { color: var(--muted); }
.compare .old li { color: var(--muted); }
.compare .old .icon { color: #d9826a; }
.compare .new { background: var(--navy); color: #d7e2f4; }
.compare .new h3 { color: #fff; }
.compare .new .icon { color: var(--green); }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.quote blockquote { margin: 12px 0 16px; color: var(--navy); flex: 1; }
.quote figcaption { font-size: 14px; color: var(--muted); }
.stars { color: #f5a623; display: flex; gap: 2px; }
.stars .icon { width: 16px; height: 16px; fill: currentColor; }

/* About strip */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; max-width: 960px; }
.about-photo { border-radius: 24px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.badges { list-style: none; padding: 0; margin: 48px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.badges li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 500; color: var(--navy); }

/* Home intro and extra sections */
.intro-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.intro-grid h2 { font-size: clamp(1.3rem, 2.1vw, 1.6rem); line-height: 1.25; }
.intro-grid img { border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(14,35,70,.3); }
.eyebrow.center { text-align: center; }
.industries { margin-top: 0; max-width: 900px; margin-left: auto; margin-right: auto; }
.about-grid p { margin-bottom: .8em; }

/* Inner page hero */
.page-hero { padding: 64px 0 56px; }
.page-hero-grid { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.page-hero-grid.no-image { grid-template-columns: 1fr; max-width: 820px; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.hero-figure { margin: 0; }
.hero-figure > img { border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(14,35,70,.3); width: 100%; max-height: 420px; object-fit: cover; }
.hero-figure-small { max-width: 290px; justify-self: center; width: 100%; }
.hero-figure-small > img { aspect-ratio: 1; }

/* Long-form text */
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 28px; margin: 6px 0; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 10px; height: 10px; border-radius: 50%; background: var(--sky); border: 2px solid var(--blue); }
.prose blockquote { margin: 1.5em 0; padding: 20px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--navy); }
.prose blockquote p:last-child { margin: 0; }
.prose img { display: block; margin: 1.5em auto; border-radius: var(--radius); max-height: 440px; width: auto; max-width: 100%; object-fit: cover; }
.prose .img-wide { width: 100%; height: auto; max-height: none; object-fit: contain; border: 1px solid var(--line); background: #fff; }
.prose .btn { margin: .5em 0 1em; }
.prose a.btn:hover { text-decoration: none; }
.logos { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-top: 24px; }
.logos img { max-height: 90px; width: auto; margin: 0; border-radius: 0; }

/* Cards */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.cards > .card { flex: 1 1 260px; max-width: calc((100% - 40px) / 3); display: flex; flex-direction: column; }
.cards > .card .card-link { margin-top: auto; padding-top: 14px; align-self: flex-start; }
@media (max-width: 980px) { .cards > .card { max-width: calc((100% - 20px) / 2); } }
@media (max-width: 600px) { .cards > .card { max-width: 100%; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s, box-shadow .2s, border-color .2s; }
/* Only cards that link somewhere react to hover; the whole card is the link. */
.card-clickable { position: relative; }
.card-clickable .card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-clickable:hover, .card-clickable.reveal.in:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -26px rgba(14,35,70,.3); border-color: #cfdcf0; }
.card-clickable:hover .card-link { text-decoration: underline; }
.card-clickable:has(.card-link:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.card h3 { margin: 14px 0 8px; }
.card p { font-size: 15.5px; margin: 0; }
.ticks { list-style: none; padding: 0; margin: 10px 0 0; font-size: 15px; }
.ticks li { padding: 3px 0 3px 24px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid #16a174; border-bottom: 2px solid #16a174; transform: rotate(-45deg); }
.card-link { display: inline-flex; gap: 6px; align-items: center; margin-top: 14px; font-weight: 500; font-size: 15px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: grid; gap: 16px; box-shadow: 0 30px 60px -36px rgba(14,35,70,.3); }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--navy); }
.form input, .form textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--navy); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--sky); background: #fff; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; color: var(--text); line-height: 1.5; }
.form .consent input { margin-top: 3px; }
.form .hp { display: none; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.form legend { padding: 0; margin-bottom: 4px; font-size: 14px; font-weight: 500; color: var(--navy); line-height: 1.5; }
.form .sublabel { font-weight: 400; font-size: 13px; }
.form .req { font-weight: 400; color: var(--text); }
.form .hint { margin: 0; font-size: 13px; font-weight: 400; color: var(--text); }
.form label .hint { margin-top: -2px; }
.form-msg { font-size: 15px; margin: 0; }
.form-msg.ok { color: #16a174; }
.form-msg.err { color: #c0392b; }
.contact-facts { list-style: none; padding: 0; margin: 24px 0; }
.contact-facts li { display: flex; gap: 12px; align-items: center; padding: 10px 0; color: var(--navy); font-weight: 500; }
.contact-facts .card-ic { width: 40px; height: 40px; }

/* Video */
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; margin: 1.5em 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* CTA band */
.cta-band { background: var(--navy); color: #c9d6ea; padding: 56px 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(46,124,246,.18); right: -80px; top: -160px; }
.cta-inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: #0a1a35; color: #93a3c0; font-size: 15px; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo { width: 193px; height: auto; margin-bottom: 14px; }
.site-footer h3 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.site-footer a { color: #c9d6ea; }
.social { display: flex; gap: 12px; align-items: center; margin-top: 14px; }
.social .icon { width: 22px; height: 22px; }
.bbb-seal { display: inline-block; margin-top: 16px; background: #fff; border-radius: 10px; padding: 4px; }
.bbb-seal img { width: 200px; height: auto; }
.footer-base { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 20px; font-size: 14px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, .reveal { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* Tablet and phone */
@media (max-width: 960px) {
  .mike-card { justify-self: start; max-width: 260px; }
  .menu-btn { display: block; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; display: none; max-height: calc(100vh - 76px); overflow-y: auto; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a, .sub-btn { width: 100%; justify-content: space-between; padding: 12px 8px; font-size: 16px; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 8px; display: none; min-width: 0; }
  .has-sub.open .sub { display: block; }
  .has-sub:hover .sub { opacity: 1; }
  .sub a { justify-content: flex-start; }
  .nav .btn { margin: 12px 0 0; justify-content: center; }
  .hero-grid, .page-hero-grid, .contact-grid, .intro-grid { grid-template-columns: 1fr; gap: 36px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 56px; }
  .section { padding: 56px 0; }
  .tiles { gap: 12px; }
  .tile { padding: 18px; }
  .compare, .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 240px; }
  .form .row2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; gap: 8px; }
  .logo img { width: 166px; }
  .cta-actions .btn { flex: 1; justify-content: center; }
}

/* Photo credit under hero images (required for Creative Commons photos) */
.hero-figure .credit { margin-top: 6px; font-size: 11px; color: var(--muted); text-align: right; }
.hero-figure .credit a { color: inherit; }

/* Testimonials inside text pages: two columns on wide screens */
.prose .quote-grid { columns: 2 320px; column-gap: 20px; margin: 1.5em 0; }
.prose .quote-grid blockquote { break-inside: avoid; margin: 0 0 20px; font-size: 15.5px; }

/* Service-area map (Placer County page) */
.service-map { height: 420px; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(14,35,70,.3); background: var(--tint); z-index: 0; }
.service-map > img { width: 100%; height: 100%; object-fit: cover; box-shadow: none; border-radius: 0; max-height: none; }
.service-map.is-live .leaflet-tile-pane { filter: saturate(.35) brightness(1.04); }
.service-map .leaflet-control-attribution { font-size: 10px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; color: var(--text); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(14,35,70,.15); }
.map-legend .ring { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 2px dashed var(--navy); }
.map-tip { font-family: var(--body); font-size: 12.5px; color: var(--navy); border-radius: 8px; border: 1px solid var(--line); box-shadow: 0 6px 18px -8px rgba(14,35,70,.35); }
.map-home span { display: block; transform: translate(-50%, -115%); white-space: nowrap; background: var(--navy); color: #fff; font: 600 12.5px/1.2 var(--head); padding: 6px 10px; border-radius: 10px; text-align: center; box-shadow: 0 8px 20px -10px rgba(14,35,70,.6); }
.map-home span small { font: 500 10.5px var(--body); opacity: .8; }
.map-home span::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--navy); }
@media (max-width: 860px) { .service-map { height: 340px; } }
