/* =========================================================
   STL Capital Group — main stylesheet
   All brand tokens are CSS custom properties injected by
   inc/customizer.php, so an admin can restyle the whole site
   from wp-admin > Customize without touching this file.
   ========================================================= */

:root {
	--stlcg-primary: #16243D;
	--stlcg-secondary: #01426A;
	--stlcg-accent: #1FD7F3;
	--stlcg-gold: #FFE500;
	--stlcg-ink: #5B6472;
	--stlcg-bg: #FFFFFF;
	--stlcg-bg-alt: #EDF0F4;
	--stlcg-font-head: 'Fraunces', Georgia, serif;
	--stlcg-font-body: 'Inter', -apple-system, sans-serif;
	--radius: 6px;
	--container: 1200px;
}

/* ---- Reset-lite ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }
body {
	margin: 0;
	font-family: var(--stlcg-font-body);
	color: var(--stlcg-ink);
	background: var(--stlcg-bg);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--stlcg-secondary); text-decoration: none; }
a:hover { color: var(--stlcg-accent); }
ul { padding-left: 1.2em; }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link { position: absolute; top: -100px; left: 0; background: var(--stlcg-primary); color: #fff; padding: 10px 16px; z-index: 10000; }
.skip-link:focus { top: 0; }

h1, h2, h3, h4, h5 {
	font-family: var(--stlcg-font-head);
	color: var(--stlcg-primary);
	line-height: 1.15;
	margin: 0 0 0.5em;
	font-weight: 500;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--stlcg-accent);
	margin-bottom: 10px;
}
.eyebrow--center { text-align: center; }
.section-heading { text-align: center; max-width: 760px; margin: 0 auto 40px; }

/* ---- Buttons ---- */
.btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: var(--radius);
	font-weight: 600;
	font-size: 0.95rem;
	border: 1px solid transparent;
	cursor: pointer;
	transition: all .18s ease;
}
.btn--accent { background: var(--stlcg-secondary); color: #fff; }
.btn--accent:hover { background: var(--stlcg-primary); color: #fff; }
.btn--outline { border-color: var(--stlcg-secondary); color: var(--stlcg-secondary); background: transparent; }
.btn--outline:hover { background: var(--stlcg-secondary); color: #fff; }
.btn--large { padding: 16px 32px; font-size: 1.05rem; }
.btn--small { padding: 8px 16px; font-size: 0.85rem; }

/* Signature 3-stop gradient bar (navy -> cyan -> gold), echoes the brand's
   card-underline detail. Use sparingly as a decorative accent. */
.accent-bar { display: block; width: 112px; height: 8px; border-radius: 4px; margin-bottom: 16px; background: linear-gradient(90deg, var(--stlcg-secondary), var(--stlcg-accent), var(--stlcg-gold)); }

/* ---- Top utility bar ---- */
.topbar { background: var(--stlcg-primary); color: rgba(255,255,255,.85); font-size: 0.82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 24px; }
.topbar a { color: rgba(255,255,255,.85); margin-right: 16px; }
.topbar a:hover { color: var(--stlcg-accent); }
.topbar__social a { margin-right: 0; margin-left: 16px; }

/* ---- Header / nav ---- */
.site-header { background: var(--stlcg-bg); border-bottom: 1px solid #e9e9ee; position: sticky; top: 0; z-index: 999; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.site-branding .site-title { font-family: var(--stlcg-font-head); font-size: 1.5rem; color: var(--stlcg-primary); font-weight: 600; }
.site-branding img { max-height: 52px; width: auto; }
.default-logo { display: inline-flex; }
.default-logo img { max-height: 72px; width: auto; }
.default-logo--footer img { max-height: 88px; }

.main-navigation { display: flex; align-items: center; gap: 28px; }
.primary-menu { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.primary-menu a { color: var(--stlcg-ink); font-weight: 500; font-size: 0.95rem; }
.primary-menu a:hover { color: var(--stlcg-secondary); }
.primary-menu ul { position: absolute; background: #fff; box-shadow: 0 12px 24px rgba(0,0,0,.08); list-style: none; padding: 10px 0; margin-top: 12px; border-radius: var(--radius); min-width: 200px; }
.primary-menu li { position: relative; }
.primary-menu ul li { padding: 0 18px; }
.primary-menu ul { display: none; }
.primary-menu li:hover > ul { display: block; }
.has-menu.is-open > .menu { display: block; }
.menu { position: absolute; background: #fff; box-shadow: 0 12px 24px rgba(0,0,0,.08); list-style: none; padding: 10px 0; margin-top: 12px; border-radius: var(--radius); min-width: 220px; display: none; z-index: 10; }
.has-menu:hover > .menu { display: block; }
.menu li { padding: 0; }
.menu a { display: block; padding: 8px 18px; }
.nav-cta { white-space: nowrap; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--stlcg-primary); margin: 5px 0; }

/* ---- Hero slider (scrolling banner) ---- */
.hero-slider { position: relative; overflow: hidden; }
.hero-slider__track { position: relative; height: 620px; }
.hero-slider__slide {
	position: absolute; inset: 0; display: flex; align-items: center;
	background:
		linear-gradient(120deg, rgba(11,26,48,.88), rgba(18,59,107,.7)),
		var(--slide-image) center/cover no-repeat;
	opacity: 0; visibility: hidden; transition: opacity .7s ease;
}
.hero-slider__slide.is-active { opacity: 1; visibility: visible; }
.hero-slider__inner { max-width: 760px; color: #fff; }
.hero-slider__inner h1 { color: #fff; margin-bottom: 20px; }
.hero-slider__inner .eyebrow { color: var(--stlcg-accent); }
.hero-slider .hero__sub { font-size: 1.15rem; color: rgba(255,255,255,.85); margin-bottom: 32px; max-width: 620px; }

.hero-slider__arrow {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
	width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
	background: rgba(11,26,48,.35); color: #fff; display: flex; align-items: center; justify-content: center;
	cursor: pointer; transition: background .15s ease;
}
.hero-slider__arrow:hover { background: rgba(255,255,255,.15); }
.hero-slider__arrow--prev { left: 24px; }
.hero-slider__arrow--next { right: 24px; }
.hero-slider__arrow .icon { width: 20px; height: 20px; }

.hero-slider__dots { position: absolute; bottom: 28px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 5; }
.hero-slider__dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.hero-slider__dot.is-active { background: var(--stlcg-accent); }

@media (max-width: 700px) {
	.hero-slider__track { height: 560px; }
	.hero-slider__arrow { width: 36px; height: 36px; }
	.hero-slider__arrow--prev { left: 10px; }
	.hero-slider__arrow--next { right: 10px; }
}

/* ---- Sections ---- */
.section { padding: 88px 0; }
.section--spacing-none { padding: 0 !important; }
.section--spacing-compact { padding: 28px 0 !important; }
.section--spacing-loose { padding: 140px 0 !important; }
.cta-band.section--spacing-none { padding: 0 !important; }
.cta-band.section--spacing-compact { padding: 28px 0 !important; }
.cta-band.section--spacing-loose { padding: 140px 0 !important; }
.section--alt { background: var(--stlcg-bg-alt); }
.empty-state { text-align: center; color: #777; grid-column: 1/-1; }

/* ---- Entities grid ---- */
.entity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.entity-card { background: #fff; border: 1px solid #e9e9ee; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.entity-card:hover { box-shadow: 0 20px 34px rgba(11,37,69,.1); transform: translateY(-3px); }
.entity-card__media img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.entity-card__body { padding: 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.entity-card__body::before, .post-card__body::before, .team-card__body::before, .feature-card__body::before {
	content: ''; display: block; width: 96px; height: 8px; border-radius: 4px; margin-bottom: 14px;
	background: linear-gradient(90deg, var(--stlcg-secondary), var(--stlcg-accent), var(--stlcg-gold));
}
.team-card__body::before { margin-left: auto; margin-right: auto; }
.entity-card__tagline { color: var(--stlcg-secondary); font-weight: 600; margin: 0; }
.entity-card__excerpt { color: #555; flex: 1; }
.entity-card__license { font-size: 0.8rem; color: #888; margin: 0; }

/* ---- Split content section ---- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.split--reverse { grid-template-columns: 1fr 1.1fr; }
.split--reverse .split__copy { order: 2; }
.split--reverse .split__media { order: 1; }
.split__media img { border-radius: var(--radius); }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* ---- Documents ---- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-pill { border: 1px solid #d8dae0; border-radius: 999px; padding: 7px 16px; font-size: 0.85rem; color: var(--stlcg-ink); }
.filter-pill.is-active, .filter-pill:hover { background: var(--stlcg-secondary); border-color: var(--stlcg-secondary); color: #fff; }

.document-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.document-card { display: flex; gap: 16px; background: #fff; border: 1px solid #e9e9ee; border-radius: var(--radius); padding: 22px; }
.document-card__icon { font-size: 1.8rem; }
.document-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.document-card__cat { color: var(--stlcg-accent); font-size: 0.78rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 6px; }
.document-card__meta { display: flex; gap: 12px; font-size: 0.8rem; color: #888; margin-bottom: 12px; flex-wrap: wrap; }
.document-card__lock { color: var(--stlcg-secondary); }
.document-download-panel { margin-top: 40px; padding: 28px; background: var(--stlcg-bg-alt); border-radius: var(--radius); text-align: center; }
.document-download-panel__note { color: #777; font-size: 0.85rem; margin: 14px 0 0; }
.document-meta-list { list-style: none; padding: 0; display: flex; gap: 24px; flex-wrap: wrap; font-size: 0.9rem; color: #666; }

/* ---- Posts / blog ---- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.post-card { background: #fff; border: 1px solid #e9e9ee; border-radius: var(--radius); overflow: hidden; }
.post-card__media img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card__media--placeholder { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--stlcg-primary), var(--stlcg-secondary)); }
.post-card__body { padding: 22px; }
.post-card__excerpt { color: #555; font-size: 0.92rem; }
.post-card__date { color: #999; font-size: 0.8rem; margin: 0; }

.has-sidebar { display: grid; grid-template-columns: 2.2fr 1fr; gap: 56px; }
@media (max-width: 860px) { .has-sidebar { grid-template-columns: 1fr; } }
.sidebar-col .widget { margin-bottom: 32px; }
.widget-title { font-size: 1rem; }
.search-form { display: flex; }
.search-form input { flex: 1; padding: 10px 12px; border: 1px solid #ddd; border-radius: var(--radius) 0 0 var(--radius); }
.search-form button { border: 1px solid var(--stlcg-secondary); background: var(--stlcg-secondary); color: #fff; padding: 0 16px; border-radius: 0 var(--radius) var(--radius) 0; }

/* ---- Generic page content ---- */
.page-container { padding: 56px 0 88px; }
.page-intro-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.page-intro-split__media img { width: 100%; border-radius: var(--radius); display: block; }
.page-header--tight { margin-bottom: 20px; }
@media (max-width: 860px) {
	.page-intro-split { grid-template-columns: 1fr; }
	.page-intro-split__media { order: -1; }
}
.page-container--wide { max-width: 900px; }
.page-header { margin-bottom: 32px; }
.page-header__lede { color: #555; max-width: 700px; }
.page-header__image { border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; aspect-ratio: 21/9; }
.page-header__image img, .page-header__image--full img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); margin-bottom: 0; }
@media (max-width: 700px) { .page-header__image { aspect-ratio: 16/10; } }
.entry-content { max-width: 760px; }
.entry-content--wide { max-width: none; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content img { border-radius: var(--radius); }

/* ---- Contact page ---- */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid__details { background: var(--stlcg-bg-alt); padding: 28px; border-radius: var(--radius); align-self: start; }

/* ---- CTA band ---- */
.cta-band { background: var(--stlcg-primary); color: #fff; padding: 72px 0; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 24px; }
.center-cta { text-align: center; margin-top: 36px; }

/* ---- Stat row pattern ---- */
.stat-row h3 { font-size: 2.4rem; color: var(--stlcg-accent); }

/* ---- Vision & Mission ---- */
.vision-mission__banner { border-radius: var(--radius); overflow: hidden; margin-bottom: 48px; }
.vision-mission__banner img { width: 100%; display: block; }
.vision-mission__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.vision-mission__col h2 { margin-bottom: 14px; }
.vision-mission__note { text-align: center; margin-top: 32px; }
@media (max-width: 800px) { .vision-mission__grid { grid-template-columns: 1fr; } }
/* When a page's intro text is directly followed by this section, the two
   default paddings (page-container's bottom + section's top) stack up to
   176px of pure whitespace. Trim just this specific pairing rather than
   changing .page-container or .section globally, since both are reused
   in contexts (blog posts, documents, etc.) where the current spacing is
   correct as-is. */
.page-container + .vision-mission { padding-top: 32px; }
.vision-mission + .section { padding-top: 32px; }

/* ---- Team (Board of Directors / Leadership) ---- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.team-grid--cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.team-grid--cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.team-card { background: #fff; border: 1px solid #e9e9ee; border-radius: var(--radius); overflow: hidden; text-align: center; transition: box-shadow .2s ease, transform .2s ease; }
.team-card:hover { box-shadow: 0 20px 34px rgba(11,37,69,.1); transform: translateY(-3px); }
.team-card__media { aspect-ratio: 1/1; background: var(--stlcg-bg-alt); }
.team-card__media img { width: 100%; height: 100%; object-fit: cover; }
.team-card__body { padding: 22px; }
.team-card__role { color: var(--stlcg-accent); font-size: 0.82rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; margin-bottom: 10px; }
.team-card__bio { color: #666; font-size: 0.88rem; }
.team-card__linkedin { display: inline-block; margin-top: 8px; font-size: 0.85rem; font-weight: 600; }

/* ---- Breadcrumbs ---- */
.stlcg-breadcrumbs ol { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 20px; font-size: 0.82rem; color: #888; }
.stlcg-breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 8px; }

/* ---- Footer ---- */
.site-footer { background: linear-gradient(180deg, var(--stlcg-primary) 0%, #0e1c30 100%); color: rgba(255,255,255,.75); margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding: 72px 24px 48px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__about p { font-size: 0.88rem; line-height: 1.65; color: rgba(255,255,255,.68); }
.footer__about__tagline { font-family: var(--stlcg-font-head); font-size: 1.15rem; font-weight: 600; color: #fff; margin-bottom: 12px; line-height: 1.35; }
.site-footer .widget-title, .site-footer h4 {
	color: #fff; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
	margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--stlcg-accent); display: inline-block;
}
.footer-menu, .site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-menu li, .site-footer .widget ul li { margin-bottom: 12px; }
.footer-menu a, .site-footer a { color: rgba(255,255,255,.72); font-size: 0.9rem; transition: color .15s ease, padding-left .15s ease; }
.footer-menu a:hover, .site-footer a:hover { color: var(--stlcg-accent); padding-left: 3px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.15); }
.footer__bottom-inner { display: flex; justify-content: space-between; padding: 20px 24px; font-size: 0.8rem; flex-wrap: wrap; gap: 10px; color: rgba(255,255,255,.55); }
.legal-menu { display: flex; gap: 18px; list-style: none; padding: 0; margin: 0; }

/* ---- 404 ---- */
.error-404 { text-align: center; padding: 100px 0; }
.error-404 .search-form { justify-content: center; max-width: 420px; margin: 24px auto; }

/* ---- Responsive nav ---- */
@media (max-width: 900px) {
	.menu-toggle { display: block; }
	.main-navigation { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 20px 24px; box-shadow: 0 12px 24px rgba(0,0,0,.08); display: none; }
	.main-navigation.is-open { display: flex; }
	.primary-menu { flex-direction: column; gap: 4px; }
	.primary-menu ul { position: static; box-shadow: none; margin: 0; padding-left: 14px; display: block; }
	.primary-menu li:hover > ul { display: block; }
	.entity-grid, .post-grid, .document-grid, .team-grid, .gallery-grid { grid-template-columns: 1fr; }
}

/* ---- Gallery ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.gallery-card { display: block; background: #fff; border: 1px solid #e9e9ee; border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.gallery-card:hover { box-shadow: 0 20px 34px rgba(11,37,69,.1); transform: translateY(-3px); }
.gallery-card__media { aspect-ratio: 4/3; background: var(--stlcg-bg-alt); overflow: hidden; }
.gallery-card__media img { width: 100%; height: 100%; object-fit: cover; }
.gallery-card__media--placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--stlcg-primary), var(--stlcg-secondary)); }
.gallery-card__body { padding: 18px 20px; }
.gallery-card__body h3 { font-size: 1.05rem; margin-bottom: 4px; }
.gallery-card__date, .gallery-card__count { font-size: 0.82rem; color: #888; margin: 0; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-top: 32px; }
.photo-grid__item { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--stlcg-bg-alt); }
.photo-grid__item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.photo-grid__item figcaption { padding: 10px 12px; font-size: 0.82rem; color: #666; }

/* ---- Page-section extras: table, gallery block, text alignment ---- */
.page-section--table table { width: 100%; border-collapse: collapse; }
.page-section--table th, .page-section--table td { border: 1px solid #e2e4ea; padding: 10px 14px; text-align: left; font-size: 0.92rem; }
.page-section--table th { background: var(--stlcg-bg-alt); font-weight: 600; color: var(--stlcg-primary); }
.page-section--table { overflow-x: auto; }
.entry-content--align-center { text-align: center; }
.entry-content--align-right { text-align: right; }

/* ---- Video gallery with playlist ---- */
.video-gallery { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.video-gallery__now-playing { margin: 12px 0 0; font-weight: 600; color: var(--stlcg-primary); }
.video-gallery__playlist { background: #fff; border: 1px solid #e9e9ee; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; max-height: 520px; }
.video-gallery__playlist-head { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; margin: 0; font-weight: 700; border-bottom: 1px solid #eee; font-size: 0.95rem; }
.video-gallery__playlist-head span { font-weight: 400; color: #888; font-size: 0.8rem; }
.video-gallery__list { overflow-y: auto; }
.video-gallery__item {
	display: flex; gap: 10px; width: 100%; padding: 10px 14px; border: 0; background: none; text-align: left; cursor: pointer;
	border-bottom: 1px solid #f2f2f2; transition: background .15s ease;
}
.video-gallery__item:last-child { border-bottom: 0; }
.video-gallery__item:hover { background: var(--stlcg-bg-alt); }
.video-gallery__item.is-active { background: #eaf9fc; }
.video-gallery__thumb { position: relative; flex-shrink: 0; width: 96px; aspect-ratio: 16/9; border-radius: 4px; overflow: hidden; background: #ddd; }
.video-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-gallery__thumb .icon { position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; color: rgba(255,255,255,.92); filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.video-gallery__meta { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.video-gallery__item-title { font-size: 0.85rem; font-weight: 600; color: var(--stlcg-ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-gallery__item.is-active .video-gallery__item-title { color: var(--stlcg-secondary); }
.video-gallery__duration { font-size: 0.75rem; color: #999; }
@media (max-width: 900px) {
	.video-gallery { grid-template-columns: 1fr; }
	.video-gallery__playlist { max-height: 360px; }
}

/* ---- Embeds (YouTube / Instagram / OneDrive / generic) ---- */
.embed-frame { position: relative; width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--stlcg-bg-alt); }
.embed-frame--16x9 { aspect-ratio: 16/9; }
.embed-frame--16x9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-frame--file { height: 480px; }
.embed-frame--file iframe { width: 100%; height: 100%; border: 0; }
.embed-frame__caption { text-align: center; color: #777; font-size: 0.85rem; margin-top: 12px; }
.page-section--embed .instagram-media { max-width: 540px !important; }

/* ---- Testimonials ---- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonial-card { background: #fff; border: 1px solid #e9e9ee; border-radius: var(--radius); padding: 28px; margin: 0; }
.testimonial-card blockquote { margin: 0 0 18px; font-family: var(--stlcg-font-head); font-size: 1.15rem; line-height: 1.5; color: var(--stlcg-primary); font-style: italic; }
.testimonial-card figcaption { display: flex; flex-direction: column; gap: 2px; }
.testimonial-card figcaption strong { color: var(--stlcg-secondary); font-size: 0.92rem; }
.testimonial-card figcaption span { color: #888; font-size: 0.82rem; }

/* ---- Stats / numbers band ---- */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; text-align: center; }
.stats-row__number { font-family: var(--stlcg-font-head); font-size: 2.6rem; font-weight: 600; color: var(--stlcg-accent); line-height: 1; margin-bottom: 8px; }
.stats-row__label { color: #666; font-size: 0.92rem; }
.stats-band--dark { background: var(--stlcg-primary); }
.stats-band--dark .stats-row__label { color: rgba(255,255,255,.75); }
.stats-band--dark .section-heading { color: #fff; }
.stats-band--dark .eyebrow { color: var(--stlcg-accent); }

/* ---- Site search ---- */
.nav-search { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: var(--stlcg-ink); flex-shrink: 0; }
.nav-search:hover { background: var(--stlcg-bg-alt); color: var(--stlcg-secondary); }
.nav-search .icon { width: 18px; height: 18px; }
.search-form--page { display: flex; gap: 10px; max-width: 480px; margin-top: 20px; }
.search-form--page input { flex: 1; padding: 12px 16px; border: 1px solid #d8dae0; border-radius: var(--radius); font-size: 1rem; }
.search-form--page button { background: var(--stlcg-secondary); border: 0; color: #fff; border-radius: var(--radius); padding: 0 18px; cursor: pointer; display: flex; align-items: center; }
.search-form--page .icon { width: 18px; height: 18px; }
.search-results { display: flex; flex-direction: column; gap: 24px; }
.search-result { border-bottom: 1px solid #eee; padding-bottom: 20px; }
.search-result__type { color: var(--stlcg-accent); font-size: 0.78rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; margin: 0 0 4px; }
.search-result h3 { font-size: 1.1rem; margin-bottom: 6px; }
.search-result__excerpt { color: #666; margin: 0; }

/* ---- Scrolling ticker / ribbon ---- */
.ticker-bar { overflow: hidden; white-space: nowrap; padding: 10px 0; }
.ticker-bar--accent { background: var(--stlcg-accent); color: var(--stlcg-primary); }
.ticker-bar--primary { background: var(--stlcg-primary); color: #fff; }
.ticker-bar--gold { background: var(--stlcg-gold); color: var(--stlcg-primary); }
.ticker-bar__track { display: inline-flex; animation: ticker-scroll 28s linear infinite; }
.ticker-bar:hover .ticker-bar__track { animation-play-state: paused; }
.ticker-bar--slow .ticker-bar__track { animation-duration: 44s; }
.ticker-bar--fast .ticker-bar__track { animation-duration: 16s; }
.ticker-bar__item { padding: 0 3em; font-weight: 600; font-size: 0.92rem; letter-spacing: .01em; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.ticker-bar__track { animation: none; }
	.ticker-bar { overflow-x: auto; }
}

/* ---- Cards grid (Services / Features) ---- */
.feature-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-cards--cols-2 { grid-template-columns: repeat(2, 1fr); }
.feature-cards--cols-3 { grid-template-columns: repeat(3, 1fr); }
.feature-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 3px rgba(11,37,69,.08); transition: box-shadow .2s ease, transform .2s ease; }
.feature-card:hover { box-shadow: 0 20px 34px rgba(11,37,69,.12); transform: translateY(-3px); }
.feature-card__media { aspect-ratio: 4/3; background: var(--stlcg-bg-alt); overflow: hidden; }
.feature-card__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-card__body { padding: 22px; }
.feature-card__body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card__desc { color: #666; font-size: 0.92rem; margin: 0 0 14px; }
.feature-card__link { color: var(--stlcg-secondary); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 4px; }
.feature-card__link .icon { width: 14px; height: 14px; }
.feature-card__link:hover { color: var(--stlcg-accent); }
@media (max-width: 900px) { .feature-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-cards { grid-template-columns: 1fr; } }

/* ---- Announcement bar ---- */
.announcement-bar { background: var(--stlcg-accent); color: #0b1620; overflow: hidden; }
.announcement-bar__inner { display: flex; align-items: center; gap: 16px; padding: 10px 0; position: relative; }
.announcement-bar__scroll { flex: 1; overflow: hidden; white-space: nowrap; }
.announcement-bar__track { display: inline-flex; animation: announcement-scroll 22s linear infinite; }
.announcement-bar:hover .announcement-bar__track { animation-play-state: paused; }
.announcement-bar__item { padding: 0 3em; font-weight: 600; font-size: 0.88rem; }
.announcement-bar__item a { color: #0b1620; text-decoration: underline; margin-left: 8px; font-weight: 700; }
.announcement-bar__close { flex-shrink: 0; background: none; border: 0; cursor: pointer; color: #0b1620; opacity: .7; padding: 4px; margin-right: 20px; }
.announcement-bar__close:hover { opacity: 1; }
.announcement-bar__close .icon { width: 16px; height: 16px; }
@keyframes announcement-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.announcement-bar__track { animation: none; }
	.announcement-bar__scroll { overflow-x: auto; }
}
@media (max-width: 600px) {
	.announcement-bar__close { margin-right: 10px; }
}

/* ---- FAQ accordion ---- */
.faq-list { border-top: 1px solid #e9e9ee; }
.faq-item { border-bottom: 1px solid #e9e9ee; }
.faq-item summary {
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding: 20px 4px; cursor: pointer; font-weight: 600; color: var(--stlcg-primary);
	list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__icon { flex-shrink: 0; transition: transform .2s ease; color: var(--stlcg-secondary); }
.faq-item__icon .icon { width: 18px; height: 18px; }
.faq-item[open] .faq-item__icon { transform: rotate(90deg); }
.faq-item__answer { padding: 0 4px 20px; color: #555; }

/* ---- Careers ---- */
.careers-list { display: grid; gap: 20px; max-width: 820px; margin: 0 auto; }
.career-card { background: #fff; border: 1px solid #e9e9ee; border-radius: var(--radius); padding: 26px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.career-card__meta { display: flex; gap: 14px; font-size: 0.82rem; color: var(--stlcg-secondary); font-weight: 600; margin: 6px 0 10px; text-transform: uppercase; letter-spacing: .03em; }
.career-card__desc { color: #666; margin: 0; max-width: 560px; }
@media (max-width: 700px) { .career-card { flex-direction: column; align-items: flex-start; } }
.comments-area { margin-top: 56px; max-width: 760px; }
.comment-list { list-style: none; padding: 0; }
.comment-form input, .comment-form textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: var(--radius); margin-bottom: 14px; }

/* =========================================================
   Additions for the PHP flat-file CMS build
   ========================================================= */

/* ---- Notices / flash messages ---- */
.notice { background: var(--stlcg-bg-alt); border-left: 4px solid var(--stlcg-secondary); padding: 14px 18px; border-radius: var(--radius); margin-bottom: 24px; }
.notice--error { border-left-color: #C0392B; background: #FBEAE8; color: #7A241C; }

/* ---- Rich text (CMS body copy) ---- */
.prose-list { padding-left: 1.4em; margin: 0 0 1em; }
.figure-img { margin: 24px 0; }
.figure-img img { border-radius: var(--radius); width: 100%; }
.figure-img figcaption { font-size: 0.85rem; color: #777; margin-top: 8px; }
.figure-img--left { float: left; width: 46%; margin: 4px 24px 16px 0; }
.figure-img--right { float: right; width: 46%; margin: 4px 0 16px 24px; }
.figure-img--wide { width: 100vw; max-width: 1400px; margin-left: 50%; transform: translateX(-50%); }
.inline-img { max-height: 1.4em; vertical-align: middle; }
@media (max-width: 700px) {
	.figure-img--left, .figure-img--right { float: none; width: 100%; margin: 16px 0; }
}

/* ---- Forms (contact, subscribe, admin) ---- */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--stlcg-primary); }
.form-field input, .form-field textarea, .form-field select {
	width: 100%; padding: 11px 14px; border: 1px solid #d8dae0; border-radius: var(--radius);
	font-family: var(--stlcg-font-body); font-size: 0.95rem; background: #fff;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 2px solid var(--stlcg-accent); outline-offset: 1px; }
.form-error { color: #C0392B; font-size: 0.82rem; margin-top: 4px; }
.honeypot { position: absolute; left: -9999px; }
.subscribe { display: flex; gap: 8px; margin-top: 12px; }
.subscribe input { flex: 1; padding: 10px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); background: rgba(255,255,255,.08); color: #fff; }
.subscribe input::placeholder { color: rgba(255,255,255,.5); }
.subscribe button { background: var(--stlcg-accent); color: #0b1620; border: 0; padding: 0 18px; border-radius: var(--radius); font-weight: 600; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.subscribe button:hover { background: var(--stlcg-gold); transform: translateY(-1px); }

/* ---- Inline SVG icon set (icon() helper) ---- */
.icon { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }
.entity-card__cta .icon, .team-card__linkedin .icon, .btn .icon { width: 0.95em; height: 0.95em; margin-left: 2px; }
.document-card__icon .icon { width: 28px; height: 28px; color: var(--stlcg-secondary); }
.document-card__lock .icon { width: 14px; height: 14px; }
.document-download-panel .icon { width: 1.1em; height: 1.1em; margin-right: 4px; }

/* ---- Utility bar (top of every page) ---- */
.utility { background: var(--stlcg-primary); color: rgba(255,255,255,.85); font-size: 0.82rem; }
.utility__inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 24px; gap: 16px; flex-wrap: wrap; row-gap: 4px; }
.utility a { color: rgba(255,255,255,.85); display: inline-flex; align-items: center; gap: 6px; margin-right: 16px; }
.utility a:hover { color: var(--stlcg-accent); }
.utility .icon { width: 14px; height: 14px; }
@media (max-width: 700px) { .utility__set--hide { display: none; } }
@media (max-width: 480px) { .utility__email { display: none; } }

.social-icons { display: flex; align-items: center; gap: 10px; }
.social-icons a {
	margin-right: 0; display: inline-flex; align-items: center; justify-content: center;
	width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.1);
	transition: background .15s ease, color .15s ease;
}
.social-icons a:hover { background: var(--stlcg-accent); color: var(--stlcg-primary); }
.social-icons .icon { width: 15px; height: 15px; }

.footer__social { display: flex; gap: 10px; margin-top: 16px; }
.footer__social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08);
	color: rgba(255,255,255,.85); transition: background .15s ease, color .15s ease;
}
.footer__social a:hover { background: var(--stlcg-accent); color: var(--stlcg-primary); }
.footer__social .icon { width: 17px; height: 17px; }

/* ---- Admin shell ---- */
.admin-body { background: var(--stlcg-bg-alt); min-height: 100vh; }
.admin-header { background: var(--stlcg-primary); color: #fff; padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; }
.admin-header a { color: #fff; }
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 56px); }
.admin-nav { background: #fff; border-right: 1px solid #e2e4ea; padding: 20px 0; }
.admin-nav a { display: block; padding: 10px 22px; color: var(--stlcg-ink); font-size: 0.92rem; }
.admin-nav a:hover, .admin-nav a.is-active { background: var(--stlcg-bg-alt); color: var(--stlcg-secondary); font-weight: 600; }
.admin-nav .admin-nav__label { padding: 16px 22px 6px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: .06em; color: #999; }
.admin-main { padding: 32px; max-width: 900px; }
.admin-main--wide { max-width: 1100px; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid #eee; font-size: 0.9rem; }
.admin-table th { background: var(--stlcg-bg-alt); font-weight: 600; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-card { background: #fff; border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.admin-login { max-width: 380px; margin: 80px auto; background: #fff; padding: 36px; border-radius: var(--radius); box-shadow: 0 20px 40px rgba(11,37,69,.1); }
.admin-actions { display: flex; gap: 10px; margin-top: 24px; }
.field-hint { font-size: 0.8rem; color: #888; margin-top: 4px; }

/* ---- Rich text editor toolbar (admin) ---- */
.rich-editor { border: 1px solid #d8dae0; border-radius: var(--radius); overflow: hidden; }
.rich-editor__toolbar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; background: var(--stlcg-bg-alt); border-bottom: 1px solid #d8dae0; }
.rich-editor__btn {
	min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid transparent; border-radius: 4px;
	background: none; cursor: pointer; font-size: 0.85rem; color: var(--stlcg-ink); font-family: var(--stlcg-font-body);
	display: inline-flex; align-items: center; justify-content: center;
}
.rich-editor__btn:hover { background: #fff; border-color: #d8dae0; }
.rich-editor__btn--wide { width: auto; padding: 0 12px; }
.rich-editor__sep { width: 1px; background: #d8dae0; margin: 4px 4px; }
.rich-editor__body {
	min-height: 220px; max-height: 520px; overflow-y: auto; padding: 14px 16px; font-family: var(--stlcg-font-body);
	font-size: 0.95rem; line-height: 1.6; color: var(--stlcg-ink); background: #fff;
}
.rich-editor__body:focus { outline: 2px solid var(--stlcg-accent); outline-offset: -2px; }
.rich-editor__body p { margin: 0 0 1em; }
.rich-editor__body ul, .rich-editor__body ol { margin: 0 0 1em; padding-left: 1.4em; }
.rich-editor__body blockquote { margin: 0 0 1em; padding-left: 14px; border-left: 3px solid var(--stlcg-accent); color: #666; }
.rich-editor__body h2, .rich-editor__body h3 { margin: 0.6em 0 0.4em; }
.rich-editor__body a { color: var(--stlcg-secondary); text-decoration: underline; }

/* ---- WhatsApp chat widget ---- */
.wa-widget { position: fixed; right: 20px; bottom: 20px; z-index: 999; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.wa-widget__button {
	width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
	display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.25);
	border: 0; cursor: pointer; transition: transform .15s ease;
}
.wa-widget__button:hover { transform: scale(1.06); }
.wa-widget__button .icon { width: 30px; height: 30px; }

.wa-widget__bubble {
	width: 300px; max-width: calc(100vw - 40px); background: #fff; border-radius: 12px;
	box-shadow: 0 16px 40px rgba(11,26,48,.25); overflow: hidden;
	opacity: 0; transform: translateY(12px) scale(.97); pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.wa-widget__bubble.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.wa-widget__head { background: #075E54; color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.wa-widget__avatar { width: 36px; height: 36px; border-radius: 50%; background: #128C7E; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 700; font-family: var(--stlcg-font-head); }
.wa-widget__head-text { line-height: 1.25; }
.wa-widget__head-text strong { display: block; font-size: 0.92rem; }
.wa-widget__head-text span { font-size: 0.75rem; opacity: .8; }
.wa-widget__close { margin-left: auto; background: none; border: 0; color: #fff; opacity: .8; cursor: pointer; padding: 4px; }
.wa-widget__close .icon { width: 16px; height: 16px; }
.wa-widget__body { background: #E5DDD5; padding: 14px 16px; }
.wa-widget__msg { background: #fff; border-radius: 8px; padding: 10px 12px; font-size: 0.88rem; line-height: 1.5; color: #222; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.wa-widget__footer { padding: 12px 16px; background: #fff; }
.wa-widget__cta {
	display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
	background: #25D366; color: #fff; border: 0; border-radius: 8px; padding: 11px; font-weight: 600; font-size: 0.9rem;
	cursor: pointer; text-decoration: none;
}
.wa-widget__cta:hover { background: #1ebe59; color: #fff; }
.wa-widget__cta .icon { width: 18px; height: 18px; }
@media (max-width: 480px) {
	.wa-widget { right: 12px; bottom: 12px; }
	.wa-widget__button { width: 52px; height: 52px; }
}
