/* Bridgeport Blocks — design system
 * Tokens reverse-engineered from /toroidal-transformers/ (page 614).
 * Change a value here and every page using these widgets updates. */

:root {
	--bmg-heading:   #1F2A32;
	--bmg-body:      #5A7280;
	--bmg-teal:      #83CACC;
	--bmg-teal-2:    #A8D9DB;
	--bmg-slate:     #3B4E59;
	--bmg-border:    #E6ECEE;
	--bmg-band:      #F1F8F8;  /* pale teal section band */
	--bmg-card:      #FAFAFA;  /* off-white card */
	--bmg-white:     #FFFFFF;
	--bmg-r-lg:      32px;
	--bmg-r-md:      20px;
	--bmg-r-sm:      16px;
	--bmg-pill:      999px;
	--bmg-font:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--bmg-maxw:      1140px;
}

/* ---- shared primitives ---- */
.bmg { font-family: var(--bmg-font); box-sizing: border-box; }
.bmg *, .bmg *::before, .bmg *::after { box-sizing: border-box; }
.bmg-inner { max-width: var(--bmg-maxw); margin: 0 auto; padding: 0 24px; }

.bmg-eyebrow {
	font-family: var(--bmg-font);
	font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
	text-transform: uppercase; color: var(--bmg-teal);
	margin: 0 0 12px;
}
.bmg-h2 {
	font-family: var(--bmg-font);
	font-size: clamp(28px, 4vw, 40px); font-weight: 700; line-height: 1.15;
	color: var(--bmg-heading); margin: 0 0 16px;
}
.bmg-h3 { font-size: clamp(20px, 2.5vw, 24px); font-weight: 700; color: var(--bmg-heading); margin: 0 0 10px; line-height: 1.25; }
.bmg-sub {
	font-family: var(--bmg-font);
	font-size: 17px; line-height: 1.7; color: var(--bmg-body); margin: 0;
	max-width: 840px;
}
/* section max-width cap so panels aren't absurdly wide on big monitors */
.bmg-sec { max-width: 1200px; margin-left: auto !important; margin-right: auto !important; }
.bmg-center { text-align: center; }
.bmg-center .bmg-sub { margin-left: auto; margin-right: auto; }

/* ---- pill button ---- */
.bmg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--bmg-font); font-size: 16px; font-weight: 600;
	padding: 14px 30px; border-radius: var(--bmg-pill);
	background: var(--bmg-teal); color: var(--bmg-heading);
	text-decoration: none; border: 0; cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}
.bmg-btn:hover { background: var(--bmg-teal-2); transform: translateY(-1px); color: var(--bmg-heading); }
.bmg-btn--ghost { background: transparent; color: var(--bmg-heading); box-shadow: inset 0 0 0 2px var(--bmg-border); }
.bmg-btn--ghost:hover { background: var(--bmg-band); }
/* on dark backgrounds the ghost button needs light text + light outline */
.bmg-hero--dark .bmg-btn--ghost, .bmg-cta--dark .bmg-btn--ghost {
	color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.45);
}
.bmg-hero--dark .bmg-btn--ghost:hover, .bmg-cta--dark .bmg-btn--ghost:hover {
	background: rgba(255,255,255,.10); color: #fff;
}

/* ---- section panels (inset, rounded, padded — never full-bleed) ---- */
.bmg-panel { width: 90%; max-width: 1500px; margin: 20px auto; border-radius: var(--bmg-r-lg); padding: 56px; }
.bmg-panel--teal  { background: var(--bmg-band); }
.bmg-panel--white { background: var(--bmg-white); border: 1px solid var(--bmg-border); }
.bmg-panel--bare  { background: none; padding: 0; }
.bmg-section__head { margin-bottom: 40px; }

/* ---- HERO ---- */
.bmg-hero { border-radius: var(--bmg-r-lg); overflow: hidden; padding: 64px 56px; position: relative; }
.bmg-hero--light { background: var(--bmg-band); }
.bmg-hero--dark  { background: var(--bmg-heading); }
.bmg-hero--dark .bmg-h2, .bmg-hero--dark .bmg-hero__title { color: var(--bmg-white); }
.bmg-hero--dark .bmg-sub { color: #C7D2D6; }
.bmg-hero__grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.bmg-hero__grid--split { grid-template-columns: 1.2fr 1fr; }
.bmg-hero__title { font-size: clamp(32px, 5vw, 52px); font-weight: 800; line-height: 1.08; color: var(--bmg-heading); margin: 0 0 18px; }
.bmg-hero__media img { width: 100%; height: auto; border-radius: var(--bmg-r-md) !important; display: block; }
.bmg-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.bmg-hero--bgimg { background-size: cover; background-position: center; }
.bmg-hero--bgimg::before { content: ""; position: absolute; inset: 0; background: rgba(15,42,50,.55); }
.bmg-hero--bgimg .bmg-hero__grid { position: relative; z-index: 1; }
.bmg-hero--bgimg .bmg-hero__title { color: #fff; }
.bmg-hero--bgimg .bmg-sub { color: #E6ECEE; }

/* ---- FEATURE CARDS ---- */
.bmg-cards { display: grid; gap: 24px; }
.bmg-cards--2 { grid-template-columns: repeat(2, 1fr); }
.bmg-cards--3 { grid-template-columns: repeat(3, 1fr); }
.bmg-cards--4 { grid-template-columns: repeat(4, 1fr); }
.bmg-card {
	background: var(--bmg-white); border: 1px solid var(--bmg-border);
	border-radius: var(--bmg-r-md); padding: 32px 28px; box-shadow: 0 6px 24px rgba(31,42,50,.05);
	transition: box-shadow .2s ease, transform .2s ease;
}
.bmg-card:hover { box-shadow: 0 14px 40px rgba(31,42,50,.10); transform: translateY(-2px); }
.bmg-card__icon { width: 52px; height: 52px; border-radius: 14px; background: #E4F3F3;
	display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.bmg-card__icon svg { width: 24px; height: 24px; fill: var(--bmg-slate); }
.bmg-card__icon i { font-size: 22px; color: var(--bmg-slate); }
.bmg-card__icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.bmg-card__title { font-size: 19px; font-weight: 700; color: var(--bmg-heading); margin: 0 0 8px; }
.bmg-card__text { font-size: 15.5px; line-height: 1.65; color: var(--bmg-body); margin: 0; }
.bmg-card__link { display: inline-block; margin-top: 14px; color: var(--bmg-slate); font-weight: 600; text-decoration: none; font-size: 15px; }
.bmg-card__link:hover { color: var(--bmg-teal); }

/* ---- INFO BOX (image + text split) ---- */
.bmg-infobox { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.bmg-infobox--rev { direction: rtl; }
.bmg-infobox--rev > * { direction: ltr; }
.bmg-infobox__media img { width: 100%; height: auto; border-radius: var(--bmg-r-md) !important; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.bmg-infobox__list { list-style: none; margin: 20px 0 0; padding: 0; }
.bmg-infobox__list li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--bmg-body); font-size: 16px; line-height: 1.6; }
.bmg-infobox__list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px;
	border-radius: 50%; background: var(--bmg-teal); box-shadow: inset 0 0 0 3px var(--bmg-band); }
.bmg-infobox .bmg-btn { margin-top: 26px; }

/* ---- COMPARISON TABLE (uniform dark header, white/pale striped rows) ---- */
.bmg-compare { border: 1px solid var(--bmg-border); border-radius: 14px; overflow: hidden; }
.bmg-compare__row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; }
.bmg-compare__row--head { background: var(--bmg-slate); }
.bmg-compare__row--head .bmg-compare__cell { color: #fff !important; font-weight: 700; font-size: 15px; background: var(--bmg-slate) !important; }
.bmg-compare__cell { padding: 17px 24px; font-size: 15.5px; color: var(--bmg-body); line-height: 1.5; background: #fff; }
.bmg-compare__cell--label { color: var(--bmg-heading); font-weight: 700; }
.bmg-compare__row:nth-child(odd) .bmg-compare__cell { background: var(--bmg-band); }  /* head(1) overridden below; body stripes */
.bmg-compare__row + .bmg-compare__row .bmg-compare__cell { border-top: 1px solid var(--bmg-border); }

/* ---- FAQ ACCORDION (matches /toroidal-transformers/ nested-accordion) ---- */
.bmg-faq { display: flex; flex-direction: column; gap: 14px; }
.bmg-faq__item { background: var(--bmg-white); border: 1px solid var(--bmg-border); border-radius: var(--bmg-r-sm); overflow: hidden; }
.bmg-faq__item.is-open { border-color: var(--bmg-teal); }
/* full reset so the Astra/Elementor <button> theme style (solid teal bar, uppercase) can't bleed in */
.bmg-faq__q {
	width: 100%; margin: 0; text-align: left; cursor: pointer;
	background: transparent !important; border: 0 !important; box-shadow: none !important;
	text-transform: none !important; letter-spacing: normal !important; border-radius: 0 !important;
	font-family: var(--bmg-font) !important; font-size: 18px; font-weight: 700;
	color: var(--bmg-heading) !important; line-height: 1.4;
	padding: 20px 26px; display: flex; align-items: center; gap: 14px;
}
.bmg-faq__q:hover, .bmg-faq__q:focus { background: transparent !important; color: var(--bmg-slate) !important; }
.bmg-faq__q-text { flex: 1; }
.bmg-faq__icon { flex: 0 0 auto; width: 16px; height: 16px; position: relative; }
.bmg-faq__icon::before, .bmg-faq__icon::after { content: ""; position: absolute; background: var(--bmg-teal); border-radius: 2px; }
.bmg-faq__icon::before { top: 7px; left: 0; right: 0; height: 2px; }
.bmg-faq__icon::after { left: 7px; top: 0; bottom: 0; width: 2px; transition: opacity .25s ease; }
.bmg-faq__item.is-open .bmg-faq__icon::after { opacity: 0; }
.bmg-faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.bmg-faq__a-inner { padding: 0 26px 22px 56px; color: var(--bmg-body); font-size: 16px; line-height: 1.7; }
.bmg-faq__a-inner p:first-child { margin-top: 0; }

/* ---- CTA BAND ---- */
.bmg-cta { background: var(--bmg-band); border-radius: var(--bmg-r-lg); padding: 56px 48px; text-align: center; }
.bmg-cta--dark { background: var(--bmg-heading); }
.bmg-cta--dark .bmg-h2 { color: #fff; }
.bmg-cta--dark .bmg-sub { color: #C7D2D6; }
.bmg-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 26px; }

/* ---- responsive ---- */
@media (max-width: 1024px) {
	.bmg-cards--4 { grid-template-columns: repeat(2, 1fr); }
	.bmg-cards--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
	.bmg-section { padding: 48px 0; }
	.bmg-hero { padding: 40px 24px; }
	.bmg-hero__grid--split { grid-template-columns: 1fr; }
	.bmg-cards--2, .bmg-cards--3, .bmg-cards--4 { grid-template-columns: 1fr; }
	.bmg-infobox { grid-template-columns: 1fr; gap: 28px; }
	.bmg-infobox--rev { direction: ltr; }
	.bmg-compare__row { grid-template-columns: 1fr; }
	.bmg-compare__cell { border-top: 1px solid var(--bmg-border); }
	.bmg-cta { padding: 40px 24px; }
}
