/* Stage 4.5: deliberate Basel isolation; pixel geometry based on React card composition.
   Tokens below are controlled by Appearance > Firmino Settings. */
body#fbg-app{--fbg-brand-from:#06b6d4;--fbg-brand-to:#2563eb;--fbg-ink:#0f172a;--fbg-muted:#64748b;--fbg-alt-bg:#f8fafc;--fbg-card-radius:16px;--fbg-section-space:88px;--fbg-content-width:1280px;--fbg-header-height:80px}
body#fbg-app .fbg-navbar>.max-w-7xl,body#fbg-app .fbg-topbar>.max-w-7xl,body#fbg-app .fbg-batch-a>.max-w-7xl{max-width:var(--fbg-content-width)!important}
body#fbg-app .fbg-navbar>.max-w-7xl>div{min-height:var(--fbg-header-height)!important}
body#fbg-app .fbg-desktop-links{flex:1 1 auto;justify-content:center}
body#fbg-app .fbg-nav-quote,body#fbg-app .fbg-action-button,body#fbg-app .fbg-mobile-quote{background-image:linear-gradient(105deg,var(--fbg-brand-from),var(--fbg-brand-to))!important}
body#fbg-app .fbg-batch-a{padding-block:var(--fbg-section-space)}
body#fbg-app .fbg-batch-a.fbg-hero{padding-bottom:100px}
body#fbg-app .fbg-services{background:var(--fbg-alt-bg)!important}
body#fbg-app .fbg-services .fbg-section-heading h2,body#fbg-app .fbg-pool-styles .fbg-section-heading h2{color:var(--fbg-ink)!important}
body#fbg-app .fbg-services .fbg-section-heading p,body#fbg-app .fbg-pool-styles .fbg-section-heading p{color:var(--fbg-muted)!important}
body#fbg-app .fbg-batch-a .fbg-section-heading h2 span{background-image:linear-gradient(105deg,var(--fbg-brand-from),var(--fbg-brand-to));-webkit-background-clip:text;background-clip:text;color:transparent!important}
/* Service cards: eliminate inherited Basel button width, height and minimum-height.
   Each article is laid out in a stable 3/2/1 responsive grid. */
body#fbg-app .fbg-services .grid{display:grid!important;grid-template-columns:1fr!important;gap:24px!important;align-items:stretch!important}
body#fbg-app .fbg-services article.fbg-service{position:relative!important;display:flex!important;min-width:0!important;height:auto!important;min-height:290px!important;padding:0!important;overflow:hidden!important;background:#fff!important;border:1px solid #e2e8f0!important;border-radius:var(--fbg-card-radius)!important;box-shadow:none;vertical-align:top!important;transition:border-color .25s,box-shadow .25s,transform .25s}
body#fbg-app .fbg-services article.fbg-service:hover{border-color:#a5f3fc!important;transform:translateY(-4px)!important;box-shadow:0 15px 30px rgba(15,23,42,.07)!important}
body#fbg-app .fbg-services .fbg-service-toggle{position:static!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;float:none!important;width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:0!important;margin:0!important;padding:28px!important;background:transparent!important;background-image:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:var(--fbg-ink)!important;text-align:left!important;text-transform:none!important;white-space:normal!important;line-height:1.5!important;letter-spacing:normal!important;transform:none!important}
body#fbg-app .fbg-services .fbg-service-toggle>span:first-child{display:flex!important;align-items:center!important;justify-content:center!important;flex:none!important;width:56px!important;height:56px!important;min-height:56px!important;max-height:56px!important;margin:0 0 20px!important;border-radius:14px!important;background:linear-gradient(135deg,#ecfeff,#eff6ff)!important;color:#0891b2!important}
body#fbg-app .fbg-services .fbg-service-toggle>span:first-child svg{display:block!important;position:static!important;width:28px!important;height:28px!important;min-width:28px!important;stroke:currentColor!important;stroke-width:2!important;fill:none!important;transform:none!important}
body#fbg-app .fbg-services .fbg-service-toggle>span:nth-child(2){display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:8px!important;margin:0 0 14px!important;min-width:0}
body#fbg-app .fbg-services .fbg-service-toggle>span:nth-child(2)>span:first-child{font-size:20px!important;font-weight:700!important;line-height:1.4!important;overflow-wrap:break-word;flex:1}
body#fbg-app .fbg-services .fbg-service-toggle>span:nth-child(2)>span:last-child{display:inline-block!important;flex-shrink:0!important;max-width:46%;padding:5px 12px!important;margin:0!important;border-radius:999px!important;background:#ecfeff!important;color:#0891b2!important;font-size:13px!important;line-height:1.4!important;font-weight:600!important;white-space:nowrap!important}
body#fbg-app .fbg-services .fbg-service-toggle>span:nth-child(3){display:block!important;color:var(--fbg-muted)!important;font-size:14px!important;line-height:1.7!important;margin:0 0 22px!important;min-height:0!important}
body#fbg-app .fbg-services .fbg-service-features:not([hidden]){display:flex!important;flex-direction:column!important;gap:10px;margin-bottom:20px}
body#fbg-app .fbg-services .fbg-service-toggle>span:last-child{display:flex!important;align-items:center!important;gap:7px!important;margin-top:auto!important;color:#0891b2!important;font-weight:600!important;font-size:14px!important}
body#fbg-app .fbg-services .fbg-service-toggle>span:last-child svg{position:static!important;width:16px!important;height:16px!important;display:block!important;fill:none!important;stroke:currentColor!important;transition:transform .25s}
body#fbg-app .fbg-services .fbg-service:hover .fbg-service-arrow{transform:translateX(4px)}
/* Pool styles: permanent card geometry and predictable overlay text alignment. */
body#fbg-app .fbg-pool-styles .grid{display:grid!important;grid-template-columns:1fr!important;gap:20px!important;align-items:stretch!important}
body#fbg-app .fbg-pool-styles a.fbg-style-card{position:relative!important;display:block!important;isolation:isolate;min-width:0!important;width:100%!important;max-width:none!important;height:auto!important;aspect-ratio:3/4!important;margin:0!important;padding:0!important;overflow:hidden!important;border-radius:var(--fbg-card-radius)!important;background:#0f172a!important;text-decoration:none!important;box-shadow:none!important;transform:none!important}
body#fbg-app .fbg-pool-styles a.fbg-style-card>img{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;transform:scale(1);transition:transform .65s ease!important}
body#fbg-app .fbg-pool-styles a.fbg-style-card>.fbg-style-gradient{position:absolute!important;inset:0!important;z-index:1;display:block!important;background:linear-gradient(to top,rgba(15,23,42,.95) 0%,rgba(15,23,42,.45) 42%,transparent 78%)!important;transition:opacity .4s!important}
body#fbg-app .fbg-pool-styles a.fbg-style-card>div:last-child{position:absolute!important;inset:0!important;z-index:2;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-end!important;width:100%!important;height:100%!important;padding:24px!important;margin:0!important;box-sizing:border-box!important;transform:none!important;background:transparent!important}
body#fbg-app .fbg-pool-styles a.fbg-style-card>div:last-child>span:first-child{display:block!important;color:#22d3ee!important;font-size:12px!important;letter-spacing:.075em!important;text-transform:uppercase!important;font-weight:700!important;margin:0 0 7px!important;line-height:1.35!important}
body#fbg-app .fbg-pool-styles a.fbg-style-card h3{display:block!important;position:static!important;color:#fff!important;font-size:21px!important;line-height:1.3!important;font-weight:700!important;margin:0!important;padding:0!important}
body#fbg-app .fbg-pool-styles .fbg-style-reveal{display:block!important;position:static!important;min-height:0!important;max-height:0!important;overflow:hidden!important;opacity:0!important;margin:0!important;transform:translateY(8px)!important;transition:max-height .45s ease,opacity .35s ease,transform .45s ease!important}
body#fbg-app .fbg-pool-styles .fbg-style-reveal p{color:#cbd5e1!important;font-size:14px!important;line-height:1.6!important;margin:12px 0!important}
body#fbg-app .fbg-pool-styles .fbg-style-reveal>div{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;color:#fff!important}
body#fbg-app .fbg-pool-styles .fbg-style-reveal>div span:first-child{color:#22d3ee!important}
body#fbg-app .fbg-pool-styles .fbg-style-reveal svg{width:16px!important;height:16px!important;fill:none!important;stroke:currentColor!important}
body#fbg-app .fbg-pool-styles a.fbg-style-card:is(:hover,:focus-visible) .fbg-style-reveal{max-height:210px!important;opacity:1!important;transform:translateY(0)!important}
body#fbg-app .fbg-pool-styles a.fbg-style-card:is(:hover,:focus-visible)>img{transform:scale(1.08)!important}
body#fbg-app .fbg-pool-styles a.fbg-style-card:is(:hover,:focus-visible)>.fbg-style-gradient{background:linear-gradient(to top,rgba(15,23,42,.98) 0%,rgba(15,23,42,.65) 55%,rgba(15,23,42,.1) 100%)!important}
/* Icon sizes must not inherit Basel's button or span icon rules */
body#fbg-app .fbg-batch-a .fbg-section-heading svg{display:inline-block!important;width:16px!important;height:16px!important;min-width:16px!important;vertical-align:middle!important;stroke:currentColor!important;fill:none!important}
body#fbg-app .fbg-why article>div:first-child svg{display:block!important;width:24px!important;height:24px!important;fill:none!important;stroke:currentColor!important}
@media(min-width:640px){body#fbg-app .fbg-services .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}body#fbg-app .fbg-pool-styles .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(min-width:1024px){body#fbg-app .fbg-services .grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:28px!important}body#fbg-app .fbg-pool-styles .grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:767px){body#fbg-app .fbg-services article.fbg-service{min-height:0!important}body#fbg-app .fbg-pool-styles a.fbg-style-card{aspect-ratio:4/5!important}}
@media(prefers-reduced-motion:reduce){body#fbg-app .fbg-services *,body#fbg-app .fbg-pool-styles *{transition:none!important;animation:none!important}body#fbg-app .fbg-services article.fbg-service:hover{transform:none!important}}
