/* BF What We Do. Every value is copied from sections/BF What We Do.dc.html (its <style> blocks and inline styles).
   The design scopes section rules to #services / [data-screen-label="What we do"]; here that is .fp-wwd. */

.fp-wwd { position: relative; padding: 0 24px 140px; }
.bf-wwd-inner { position: relative; max-width: 1280px; margin: 16px auto 0; }
.fp-wwd.is-flush > .bf-wwd-inner { margin-top: 0; }
.bf-wwd-head { position: relative; max-width: 700px; }
.bf-wwd-headline { position: relative; display: inline-block; }
.bf-wwd-headline .bf-glitch { left: -70px; top: -6px; width: 160px; height: 40px; }
.bf-wwd-headline .bf-glitch span:nth-child(1) { top: 0; left: 0; width: 120px; background: rgba(255,255,255,0.25); }
.bf-wwd-headline .bf-glitch span:nth-child(2) { top: 11px; left: 30px; width: 90px; background: rgba(255,255,255,0.5); }
.bf-wwd-headline .bf-glitch span:nth-child(3) { top: 22px; left: 10px; width: 140px; background: rgba(255,255,255,0.18); }
.bf-wwd-intro { position: relative; z-index: 1; margin: 36px 0 0 110px; max-width: 560px; color: #C4D5E0; }

/* Optional accent image (not in the design; added at the client's request). Sits beside the headline and intro,
   above the card and tabs, faded like the Hero art. Tablets get a smaller, fainter copy beside the headline only;
   phones leave it out, since the headline and intro fill the width and it would sit behind text. */
.bf-wwd-accent { position: absolute; top: -20px; right: 18px; width: 560px; height: 380px; object-fit: cover; opacity: 0.5; pointer-events: none; z-index: 0; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 35%, rgba(0,0,0,0.5) 65%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 35%, rgba(0,0,0,0.5) 65%, transparent 100%); }
@media (min-width: 768px) and (max-width: 1023px) { .bf-wwd-accent { top: -10px; right: 0; width: 400px; height: 210px; opacity: 0.3; } }
@media (max-width: 767px) { .bf-wwd-accent { display: none; } }

.bf-offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; margin-top: 56px; }

/* Detail card. Its own 1px border (0.1 alpha) wins over the library's .bf-detail border/hover colors in the design,
   so the rendered card keeps a fixed border; reproduced as rendered. */
.bf-detail { position: relative; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; background: #04202F; border: 1px solid rgba(255,255,255,0.1); min-height: 380px; border-radius: 6px !important; }
.bf-detail > img.bf-ht { position: absolute; right: -60px; bottom: -40px; height: 115%; opacity: 0.5; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 55% 55%, #000 30%, transparent 85%); mask-image: radial-gradient(ellipse 60% 70% at 55% 55%, #000 30%, transparent 85%); }
.bf-detail-fade { position: absolute; inset: 0; background: linear-gradient(90deg, #04202F 30%, rgba(4,32,47,0.6) 60%, rgba(4,32,47,0.05) 100%); pointer-events: none; }
.bf-detail > .bf-detail-copy { flex: 1; }
.bf-detail-copy { position: relative; padding: 42px 40px; max-width: 400px; box-sizing: border-box; display: flex; flex-direction: column; height: 100%; animation: bf-in .32s cubic-bezier(.22,.61,.36,1) both; }
.bf-detail-copy[hidden] { display: none; }
.bf-detail-copy .bf-eyebrow { margin-bottom: 12px; }
.bf-detail-copy h3 { font-size: 24px; font-weight: 800; text-transform: uppercase; color: #FFFFFF; margin: 0 0 14px; line-height: 1.1; }
.bf-detail-copy p { color: #C4D5E0; margin: 0; }
.bf-detail-copy .bf-btn { padding-top: 8px; align-self: flex-start; margin-top: 30px; }
.bf-detail:focus-visible { outline: 2px solid #8DC63F; outline-offset: 4px; }

/* Tabs */
.bf-wwd-tabs { display: flex; flex-direction: column; padding-top: 6px; border-top: 1px solid rgba(255,255,255,0.12); }
.bf-tab { display: block; width: 100%; text-align: left; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,0.12); padding: 24px 0; cursor: pointer; font-family: inherit; color: #FFFFFF; position: relative; transition: padding-left .45s cubic-bezier(.22,.61,.36,1), background .3s ease; }
.bf-tab::before { content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: linear-gradient(90deg, #0096E1, #8DC63F); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.bf-tab[data-on="true"]::before { transform: scaleX(1); }
.bf-tab[data-on="true"] { padding-left: 18px; }
.bf-tab-q { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #7E99AB; margin-bottom: 8px; transition: color .3s; }
.bf-tab[data-on="true"] .bf-tab-q { color: #8DC63F; }
.bf-tab-n { display: block; font-size: 26px; font-weight: 800; text-transform: uppercase; letter-spacing: -0.005em; line-height: 1.1; color: rgba(255,255,255,0.4); transition: color .3s; }
.bf-tab[data-on="true"] .bf-tab-n, .bf-tab:hover .bf-tab-n { color: #FFFFFF; }
.bf-tab-s { display: block; font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.45); margin-top: 6px; letter-spacing: 0; transition: color .3s; }
.bf-tab[data-on="true"] .bf-tab-s, .bf-tab:hover .bf-tab-s { color: #A9C2D2; }
.bf-tab:focus-visible { outline: 2px solid #8DC63F; outline-offset: 4px; }
.bf-tab-links { display: flex; gap: 28px; padding-top: 22px; flex-wrap: wrap; }

@media (min-width: 768px) and (max-width: 1023px) {
	.bf-wwd-intro { margin-left: 0 !important; margin-top: 26px !important; }
	.fp-wwd { padding-bottom: 0 !important; }
	.bf-offer-grid { grid-template-columns: 1fr !important; gap: 0 !important; }
	.bf-offer-grid > div:last-child { order: -1; border-top: 0 !important; padding-top: 0 !important; display: grid !important; grid-template-columns: repeat(3, 1fr); column-gap: 20px; }
	.bf-offer-grid .bf-tab { padding: 14px 0 18px !important; border-bottom: 1px solid rgba(255,255,255,0.12); }
	.bf-offer-grid .bf-tab[data-on="true"] { padding-left: 0 !important; }
	.bf-tab-n { font-size: 22px !important; }
	.bf-tab-s { font-size: 13px !important; }
	.bf-tab-links { grid-column: 1 / -1; padding: 18px 0 26px !important; }
	.bf-detail { min-height: 340px !important; }
	.bf-detail-copy { max-width: 60% !important; padding: 36px 32px !important; }
}

@media (max-width: 767px) {
	#services.fp-wwd { padding: 0 18px 0 !important; }
	.bf-tab[data-on="true"] { padding-left: 12px; }
	.bf-wwd-intro { margin: 22px 0 0 !important; }
	.fp-wwd > div { margin-top: 0 !important; }
	.bf-offer-grid { grid-template-columns: 1fr !important; gap: 0 !important; margin-top: 36px !important; }
	.bf-offer-grid > div:last-child { order: -1; display: flex !important; flex-direction: column !important; border-top: 1px solid rgba(255,255,255,0.12) !important; padding-top: 0 !important; }
	.bf-offer-grid .bf-tab { padding: 16px 0 !important; }
	.bf-offer-grid .bf-tab[data-on="true"] { padding-left: 12px !important; }
	.bf-tab-q { font-size: 11.5px !important; margin-bottom: 5px !important; }
	.bf-tab-n { font-size: 20px !important; }
	.bf-tab-s { font-size: 13px !important; margin-top: 4px !important; }
	.bf-tab-links { padding: 18px 0 24px !important; gap: 14px 24px !important; }
	.bf-detail { min-height: 0 !important; }
	.bf-detail > img.bf-ht { height: 100% !important; right: -30% !important; bottom: 0 !important; opacity: 0.28 !important; }
	.bf-detail-copy { max-width: none !important; padding: 28px 22px !important; }
	.bf-detail-copy h3 { font-size: 21px !important; }
	.bf-detail-copy .bf-btn { margin-top: 24px !important; }
}
