/* Air Mavericks: Community Involvement page (local build, Nov 7 2026). C2b v5 look: navy leads, logo cyan for
   glow and motion only, red stays on call buttons. Loaded on that page only. Section order is the SOP 6.5 one;
   this file only styles it. */
.cb-type-community-involvement { --nv:#242B3B; --dk:#141A2B; --lc:#49E6FB; --lct:#087E99; --mut:#C9D2E0; }

/* ---------- 1. Foundation: navy band, partnership lockup left, their words right ---------- */
.cb-type-community-involvement > .cb-section:nth-child(2) { background: radial-gradient(900px 420px at 15% 30%, rgba(73,230,251,.16), transparent 60%), var(--dk) !important; color:#fff; position:relative; overflow:hidden; }
.cb-type-community-involvement > .cb-section:nth-child(2)::before, .cb-type-community-involvement > .cb-section:nth-child(2)::after { display:none !important; }
.cb-type-community-involvement > .cb-section:nth-child(2) .cb-container { max-width: 1200px !important; display:grid; grid-template-columns: minmax(0,5fr) minmax(0,6fr); gap: clamp(28px,5vw,72px); align-items:center; }
.cb-type-community-involvement > .cb-section:nth-child(2) h2 { color:#fff !important; margin:0; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height:1.02; letter-spacing:-.02em; }
.cb-type-community-involvement .am-lock { display:flex; flex-direction:column; align-items:flex-start; gap: 10px; }
.cb-type-community-involvement .am-lock-x { position:relative; display:grid; place-items:center; width: 1.25em; height:1.25em; font-size: .9em; color: var(--dk); background: var(--lc); border-radius:50%; box-shadow: 0 0 0 8px rgba(73,230,251,.15), 0 0 40px rgba(73,230,251,.65); font-weight:800; }
.cb-type-community-involvement .am-lock-x::after { content:""; position:absolute; inset:-14px; border-radius:50%; border:2px solid rgba(73,230,251,.7); opacity:0; }
.cb-type-community-involvement .am-lock-b { color: var(--lc); text-shadow: 0 0 26px rgba(73,230,251,.45); }
.cb-type-community-involvement > .cb-section:nth-child(2) .cb-prose { position:relative; padding: clamp(22px,3vw,36px); border-radius: 26px; background: rgba(255,255,255,.04); border: 1px solid rgba(73,230,251,.22); }
.cb-type-community-involvement > .cb-section:nth-child(2) .cb-prose p { color: var(--mut) !important; font-size: 1.06rem; }
.cb-type-community-involvement > .cb-section:nth-child(2) .cb-prose p:first-child { color:#fff !important; font-size: clamp(1.2rem,1.8vw,1.45rem); font-weight:700; line-height:1.35; }

/* ---------- 2. The $300 story: install -> donation -> kids and teens ---------- */
.cb-type-community-involvement > .cb-block-cards { background: #F2F4F7 !important; text-align:center; }
.cb-type-community-involvement > .cb-block-cards h2 { color: var(--nv) !important; }
.cb-type-community-involvement > .cb-block-cards .cb-section-intro { max-width: 760px; margin-inline:auto; color:#3d4a62 !important; font-size:1.08rem; }
.cb-type-community-involvement > .cb-block-cards .cb-cards { position:relative; display:grid !important; grid-template-columns: repeat(3, minmax(0,1fr)) !important; gap: clamp(18px,3vw,40px) !important; margin-top: 44px; align-items:center; }
/* the track behind the cards, filling cyan as the story plays */
.cb-type-community-involvement .am-track { position:absolute; left: 12%; right: 12%; top: 50%; height: 4px; margin-top:-2px; border-radius:4px; background: #d5dbe5; z-index:0; overflow:hidden; }
.cb-type-community-involvement .am-track i { position:absolute; inset:0; background: linear-gradient(90deg, var(--lc), #b5f6ff, var(--lc)); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 18px var(--lc); }
.cb-type-community-involvement > .cb-block-cards .cb-card { position:relative; z-index:1; text-align:center; padding: 76px 26px 30px !important; border-radius: 26px !important; background: linear-gradient(160deg, #2b3446, var(--nv)) !important; border: 1px solid rgba(73,230,251,.18) !important; box-shadow: 0 18px 40px rgba(20,26,43,.18) !important; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, opacity .35s ease; }
.cb-type-community-involvement > .cb-block-cards .cb-card h3 { color:#fff !important; font-size: 1.3rem; margin-bottom: 8px; }
.cb-type-community-involvement > .cb-block-cards .cb-card p { color: var(--mut) !important; margin:0; }
/* icon discs: AC unit, heart, people */
.cb-type-community-involvement > .cb-block-cards .cb-card::before { content:""; position:absolute; top:22px; left:50%; width:44px; height:44px; margin-left:-22px; border-radius:50%; background: rgba(73,230,251,.14) center/24px no-repeat; box-shadow: inset 0 0 0 2px rgba(73,230,251,.55); }
.cb-type-community-involvement > .cb-block-cards .cb-card:nth-child(1)::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2349E6FB' stroke-width='2' stroke-linecap='round'><path d='M12 2v20M3.3 7l17.4 10M3.3 17l17.4-10M9 3.5l3 2.5 3-2.5M9 20.5l3-2.5 3 2.5'/></svg>"); }
.cb-type-community-involvement > .cb-block-cards .cb-card:nth-child(2)::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2349E6FB'><path d='M12 21s-7.5-4.6-9.5-9.2C1.2 8.7 3.2 5 6.7 5c2.1 0 3.4 1.2 4.3 2.4h2C13.9 6.2 15.2 5 17.3 5c3.5 0 5.5 3.7 4.2 6.8C19.5 16.4 12 21 12 21z'/></svg>"); }
.cb-type-community-involvement > .cb-block-cards .cb-card:nth-child(3)::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2349E6FB' stroke-width='2' stroke-linecap='round'><circle cx='8' cy='8' r='3'/><circle cx='17' cy='9' r='2.4'/><path d='M2.5 20c.6-3.4 2.8-5.2 5.5-5.2s4.9 1.8 5.5 5.2M14.5 15.2c.8-.5 1.6-.7 2.5-.7 2.2 0 3.9 1.5 4.4 4.5'/></svg>"); }
/* the middle card is the hero of the story: bigger, raised, glowing $300 */
.cb-type-community-involvement > .cb-block-cards .cb-card:nth-child(2) { padding-top: 84px !important; padding-bottom: 38px !important; transform: scale(1.06); box-shadow: 0 0 0 1px var(--lc), 0 24px 60px rgba(20,26,43,.3), 0 0 50px rgba(73,230,251,.25) !important; }
.cb-type-community-involvement .am-amt { display:block; font-size: clamp(3.4rem, 6vw, 4.8rem); line-height:1; font-weight:800; letter-spacing:-.03em; color: var(--lc); text-shadow: 0 0 30px rgba(73,230,251,.55); font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.cb-type-community-involvement .am-amt-word { display:block; font-size: 1.05rem; text-transform: uppercase; letter-spacing:.18em; color:#fff; }

/* story motion (JS adds .am-ready, then .am-go when the section is in view); reduced motion sees the end state */
@media (prefers-reduced-motion: no-preference) {
	.cb-type-community-involvement .am-ready .cb-card { opacity:.35; transform: translateY(18px) scale(.97); }
	.cb-type-community-involvement .am-ready.am-go .cb-card { opacity:1; transform:none; }
	.cb-type-community-involvement .am-ready.am-go .cb-card:nth-child(2) { transform: scale(1.06); transition-delay: .35s; }
	.cb-type-community-involvement .am-ready.am-go .cb-card:nth-child(3) { transition-delay: .7s; }
	.cb-type-community-involvement .am-ready.am-go .am-track i { transform: scaleX(1); transition: transform 1.05s cubic-bezier(.6,0,.3,1); }
	.cb-type-community-involvement .am-ready.am-go .cb-card:nth-child(2) { animation: am-pop .5s .75s cubic-bezier(.2,1.6,.4,1) both; }
	.cb-type-community-involvement .am-lock-x::after { animation: am-ring2 2.2s ease-out infinite; }
	.cb-type-community-involvement > .cb-block-cards .cb-card:hover { transform: translateY(-6px); }
	.cb-type-community-involvement > .cb-block-cards .cb-card:nth-child(2):hover { transform: scale(1.06) translateY(-6px); }
}
.cb-type-community-involvement .am-go .am-track i, .cb-type-community-involvement .cb-container:not(.am-ready) .am-track i { transform: scaleX(1); }
@keyframes am-pop { 0% { transform: scale(1.06); } 45% { transform: scale(1.12); } 100% { transform: scale(1.06); } }
@keyframes am-ring2 { from { transform: scale(.8); opacity:.9; } to { transform: scale(1.5); opacity:0; } }

/* ---------- 3. Property management: heading left, words right in a soft card ---------- */
.cb-type-community-involvement > .cb-section:nth-child(4) { background:#fff !important; }
.cb-type-community-involvement > .cb-section:nth-child(4)::before, .cb-type-community-involvement > .cb-section:nth-child(4)::after { display:none !important; }
.cb-type-community-involvement > .cb-section:nth-child(4) .cb-container { max-width: 1200px !important; display:grid; grid-template-columns: minmax(0,5fr) minmax(0,6fr); gap: clamp(28px,5vw,72px); align-items:center; }
.cb-type-community-involvement > .cb-section:nth-child(4) h2 { color: var(--nv) !important; margin:0; font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height:1.05; }
.cb-type-community-involvement > .cb-section:nth-child(4) h2::after { content:""; display:block; width:120px; height:6px; margin-top:18px; border-radius:6px; background: linear-gradient(90deg, var(--nv) 0 50%, var(--lc) 50% 100%); }
.cb-type-community-involvement > .cb-section:nth-child(4) .cb-prose { padding: clamp(22px,3vw,36px); border-radius: 26px; background: #F2F4F7; border-left: 6px solid var(--lc); }
.cb-type-community-involvement > .cb-section:nth-child(4) .cb-prose p { color:#33405a !important; }

/* ---------- phone ---------- */
@media (max-width: 899.98px) {
	.cb-type-community-involvement > .cb-section:nth-child(2) .cb-container,
	.cb-type-community-involvement > .cb-section:nth-child(4) .cb-container { grid-template-columns: 1fr; gap: 22px; }
	.cb-type-community-involvement .am-lock { flex-direction: row; flex-wrap: wrap; align-items:center; gap: 8px 12px; }
	.cb-type-community-involvement .am-lock-b { flex-basis:100%; }
	.cb-type-community-involvement > .cb-block-cards .cb-cards { grid-template-columns: 1fr !important; gap: 26px !important; max-width: 420px; margin-inline:auto; }
	.cb-type-community-involvement .am-track { left:50%; right:auto; top: 8%; bottom: 8%; width:4px; height:auto; margin:0 0 0 -2px; }
	.cb-type-community-involvement .am-track i { transform-origin: 50% 0; transform: scaleY(0); background: linear-gradient(180deg, var(--lc), #b5f6ff, var(--lc)); }
	.cb-type-community-involvement .am-ready.am-go .am-track i, .cb-type-community-involvement .am-go .am-track i, .cb-type-community-involvement .cb-container:not(.am-ready) .am-track i { transform: scaleY(1); }
	.cb-type-community-involvement > .cb-block-cards .cb-card:nth-child(2), .cb-type-community-involvement .am-ready.am-go .cb-card:nth-child(2) { transform: none; }
	@keyframes am-pop { 0%,100% { transform: none; } 45% { transform: scale(1.05); } }
}

/* ---------- photos from their old site's backup (Nov 7 2026) ---------- */
/* foundation: logo under the lockup, on a white partner card (their dark-blue logo can't sit on navy) */
.cb-type-community-involvement > .cb-section:nth-child(2) .cb-container { grid-template-areas: "h p" "l p"; }
.cb-type-community-involvement > .cb-section:nth-child(2) h2 { grid-area: h; align-self: end; }
.cb-type-community-involvement > .cb-section:nth-child(2) .cb-prose { grid-area: p; }
.cb-type-community-involvement > .cb-section:nth-child(2) .cb-logo-row { grid-area: l; align-self: start; display:flex; margin: 8px 0 0; padding: 0; list-style:none; }
.cb-type-community-involvement > .cb-section:nth-child(2) .cb-logo-row li { background:#fff; border-radius: 18px; padding: 14px 22px; box-shadow: 0 0 0 1px rgba(73,230,251,.4), 0 0 30px rgba(73,230,251,.18); }
.cb-type-community-involvement > .cb-section:nth-child(2) .cb-logo-row img { display:block; width: 240px; height:auto; filter:none !important; opacity:1 !important; }
/* property management: association logos in their own colours under the heading */
.cb-type-community-involvement > .cb-section:nth-child(4) .cb-container { grid-template-areas: "h p" "l p"; }
.cb-type-community-involvement > .cb-section:nth-child(4) h2 { grid-area: h; align-self: end; }
.cb-type-community-involvement > .cb-section:nth-child(4) .cb-prose { grid-area: p; }
.cb-type-community-involvement > .cb-section:nth-child(4) .cb-logo-row { grid-area: l; align-self: start; display:flex; align-items:center; gap: 22px; margin: 6px 0 0; padding:0; list-style:none; }
.cb-type-community-involvement > .cb-section:nth-child(4) .cb-logo-row img { display:block; height: 56px; width:auto; filter:none !important; opacity:1 !important; }

/* photo mosaic */
.cb-type-community-involvement .cb-projects { background: var(--dk) !important; }
.cb-type-community-involvement .cb-projects h2 { color:#fff !important; text-align:center; }
.cb-type-community-involvement .cb-projects h2::after { content:""; display:block; width:120px; height:6px; margin: 14px auto 0; border-radius:6px; background: linear-gradient(90deg, #FC3843 0 50%, var(--lc) 50% 100%); }
.cb-type-community-involvement .cb-projects .cb-gallery { display:grid !important; grid-template-columns: repeat(4, minmax(0,1fr)); grid-auto-rows: 200px; gap: 14px; margin-top: 34px; padding:0; list-style:none; }
.cb-type-community-involvement .cb-projects .cb-gallery li { margin:0; overflow:hidden; border-radius: 22px; box-shadow: 0 0 0 1px rgba(73,230,251,.2); }
.cb-type-community-involvement .cb-projects .cb-gallery li:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.cb-type-community-involvement .cb-projects .cb-gallery li:nth-child(4) { grid-row: span 2; }
.cb-type-community-involvement .cb-projects .cb-gallery li:nth-child(6) { grid-column: span 2; }
.cb-type-community-involvement .cb-projects .cb-gallery figure { margin:0; height:100%; }
.cb-type-community-involvement .cb-projects .cb-gallery img { width:100%; height:100%; object-fit:cover; display:block; transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .4s ease; }
.cb-type-community-involvement .cb-projects .cb-gallery li:hover img { transform: scale(1.06); }
.cb-type-community-involvement .cb-projects .cb-gallery li:hover { box-shadow: 0 0 0 2px var(--lc), 0 0 30px rgba(73,230,251,.35); }
@media (prefers-reduced-motion: no-preference) {
	.cb-type-community-involvement .cb-projects .cb-gallery li { opacity:0; transform: translateY(24px) scale(.97); transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease; transition-delay: calc(var(--k, 0) * 70ms); }
	.cb-type-community-involvement .cb-projects.am-in .cb-gallery li { opacity:1; transform:none; }
}
@media (max-width: 899.98px) {
	.cb-type-community-involvement > .cb-section:nth-child(2) .cb-container, .cb-type-community-involvement > .cb-section:nth-child(4) .cb-container { grid-template-areas: "h" "l" "p"; }
	.cb-type-community-involvement > .cb-section:nth-child(2) .cb-logo-row img { width: 200px; }
	.cb-type-community-involvement .cb-projects .cb-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
	.cb-type-community-involvement .cb-projects .cb-gallery li:nth-child(6) { grid-column: span 2; }
	.cb-type-community-involvement .cb-projects .cb-gallery li:nth-child(4) { grid-row: span 1; }
}
.cb-type-community-involvement .cb-projects .cb-gallery img { object-position: 50% 22%; }
@media (max-width: 899.98px) { .cb-type-community-involvement .cb-projects .cb-gallery li:last-child:nth-child(odd) { grid-column: span 2; } }

/* Foundation heading: the logo tile in place of the cyan name (Sharbel, Nov 9 2026; am-community.js). */
.cb-type-community-involvement > .cb-section.am-logo-head .cb-container { grid-template-areas: "h p"; }
.cb-type-community-involvement > .cb-section.am-logo-head h2 { align-self: center !important; }
.cb-type-community-involvement .am-lock-logo { display:block; margin-top: 6px; background:#fff; border-radius: 20px; padding: 14px 24px; box-shadow: 0 0 0 1px rgba(73,230,251,.4), 0 0 30px rgba(73,230,251,.18); line-height:0; }
.cb-type-community-involvement .am-lock-logo img { display:block; width: 280px; max-width: 100%; height:auto; filter:none !important; opacity:1 !important; }
@media (max-width: 899px) { .cb-type-community-involvement .am-lock-logo img { width: 220px; } }

@media (max-width: 899px) { .cb-type-community-involvement > .cb-section.am-logo-head .cb-container { grid-template-areas: "h" "p"; } }

/* White card on the navy band, same as the About community card (Sharbel, Nov 9 2026) */
.cb-type-community-involvement > .cb-section:nth-child(2) .cb-prose { background: #fff !important; border: 0 !important; box-shadow: 0 24px 60px rgba(0,0,0,.35) !important; }
.cb-type-community-involvement > .cb-section:nth-child(2) .cb-prose p { color: #4A5468 !important; }
.cb-type-community-involvement > .cb-section:nth-child(2) .cb-prose p:first-child { color: #242B3B !important; }
.cb-type-community-involvement > .cb-section:nth-child(2) .cb-prose a { color: #0E7490 !important; }

/* Community section: white section, navy text card (Sharbel, Nov 9 2026). Same on the Community page and About (same-section rule). */
.cb-type-community-involvement > .cb-section:nth-child(2),
body.am-v3 .am-com { background: radial-gradient(800px 380px at 12% 40%, rgba(73,230,251,.10), transparent 62%), #fff !important; color: #242B3B; border-bottom: 1px solid #E6ECF2; }
.cb-type-community-involvement > .cb-section:nth-child(2) h2,
.cb-type-community-involvement > .cb-section:nth-child(2) h2 span:not(.am-lock-x),
body.am-v3 .am-com h2,
body.am-v3 .am-com h2 span:not(.am-lock-x) { color: #242B3B !important; }
body.am-v3 .am-com .am-com-eyebrow { color: #0E7490 !important; }
.cb-type-community-involvement .am-lock-x,
body.am-v3 .am-com .am-lock-x { color: #141A2B; background: #49E6FB; box-shadow: 0 0 0 8px rgba(73,230,251,.18), 0 10px 26px rgba(8,145,178,.30); }
.cb-type-community-involvement .am-lock-x::after,
body.am-v3 .am-com .am-lock-x::after { border-color: rgba(8,145,178,.55); }
.cb-type-community-involvement .am-lock-logo,
body.am-v3 .am-com .am-lock-logo { box-shadow: 0 0 0 1px #D8EEF3, 0 16px 34px rgba(20,26,43,.12); }
.cb-type-community-involvement > .cb-section:nth-child(2) .cb-prose,
body.am-v3 .am-com .cb-prose { background: #242B3B !important; border: 0 !important; box-shadow: 0 24px 60px rgba(20,26,43,.28) !important; }
.cb-type-community-involvement > .cb-section:nth-child(2) .cb-prose::before,
body.am-v3 .am-com .cb-prose::before { content: ""; position: absolute; left: 26px; right: 26px; bottom: 0; height: 4px; border-radius: 4px 4px 0 0; background: linear-gradient(90deg, #E20936 50%, #49E6FB 50%); }
.cb-type-community-involvement > .cb-section:nth-child(2) .cb-prose p,
body.am-v3 .am-com .cb-prose p { color: #D5DCE7 !important; }
.cb-type-community-involvement > .cb-section:nth-child(2) .cb-prose p:first-child,
body.am-v3 .am-com .cb-prose p:first-child { color: #fff !important; }
.cb-type-community-involvement > .cb-section:nth-child(2) .cb-prose a,
body.am-v3 .am-com .cb-prose a:not(.am-com-btn) { color: #49E6FB !important; }
body.am-v3 .am-com .cb-prose a.am-com-btn { color: #fff !important; box-shadow: inset 0 0 0 2px #49E6FB; }
body.am-v3 .am-com .cb-prose a.am-com-btn:hover, body.am-v3 .am-com .cb-prose a.am-com-btn:focus-visible { background: #49E6FB; color: #141A2B !important; }

/* Property management card: dark navy like the Ryan Nece card (Sharbel, Nov 9 2026) */
.cb-type-community-involvement > .cb-section:nth-child(4) .cb-prose { position: relative; background: #242B3B !important; border-left: 0 !important; box-shadow: 0 24px 60px rgba(20,26,43,.28) !important; }
.cb-type-community-involvement > .cb-section:nth-child(4) .cb-prose::before { content: ""; position: absolute; left: 26px; right: 26px; bottom: 0; height: 4px; border-radius: 4px 4px 0 0; background: linear-gradient(90deg, #E20936 50%, #49E6FB 50%); }
.cb-type-community-involvement > .cb-section:nth-child(4) .cb-prose p { color: #D5DCE7 !important; }
.cb-type-community-involvement > .cb-section:nth-child(4) .cb-prose p:first-child { color: #fff !important; }
.cb-type-community-involvement > .cb-section:nth-child(4) .cb-prose a { color: #49E6FB !important; }
