:root {
  --red: #a33539;
  --red-dark: #862a2d;
  --slate: #6c757d;
  --slate-dark: #565e64;
  --blue: #809ead;
  --text: #303030;
  --muted: #565656;
  --tint: #f2f3f4;
  --line: #e2e5e8;
  --white: #fff;
  --radius: 10px;
  --head: 'Montserrat', system-ui, sans-serif;
  --body: 'Nunito', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.75 var(--body); color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.25; margin: 0 0 .6em; color: #111; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 500; text-transform: uppercase; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; text-transform: uppercase; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; color: var(--muted); }
p { margin: 0 0 1.1em; }
.sr, .skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: #fff; padding: .5rem 1rem; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 880px; }
.center { text-align: center; }
main section { padding: 64px 0; }
.tint { background: var(--tint); }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.grid-2.top { align-items: start; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.rounded { border-radius: var(--radius); }
.lead { font-size: 1.15rem; font-weight: 600; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.kicker { display: block; color: var(--red); font-size: .85em; }

/* buttons */
.btn { display: inline-block; padding: 10px 26px; border-radius: 999px; font: 500 1rem/1.4 var(--body); text-transform: uppercase; text-decoration: none; color: #fff; transition: background .2s; }
.btn-primary { background: var(--red); }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-secondary { background: #69727d; }
.btn-secondary:hover { background: var(--slate-dark); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.actions.center { justify-content: center; }

/* header (matches live site: translucent red band over the page banner) */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 10; color: #fff; padding: 10px 10px 0; }
.site-header::before { content: ''; position: absolute; inset: 0; background: #a33538; opacity: .5; z-index: -1; }
.no-hero .site-header { position: relative; background: #a33538; }
.no-hero .site-header::before { display: none; }
.bar { display: flex; align-items: flex-start; gap: 20px; padding: 10px 10px 0; }
.brand img { width: 295px; max-width: 60vw; height: auto; }
.social { margin-left: auto; display: flex; gap: 5px; padding-top: 5px; }
.soc { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.soc svg { width: 16px; height: 16px; fill: #fff; }
.soc-facebook { background: #3b5998; } .soc-linkedin { background: #0077b5; } .soc-instagram { background: #262626; }
.soc:hover { opacity: .9; }
.gt_selector { width: 172px; height: 46px; background: #f2f3f4; color: #666; border: 1px solid #f2f3f4; font: 16px var(--body); padding: 0 16px; cursor: pointer; }
.lang-wrap { min-width: 172px; min-height: 46px; }
#primary-nav ul { list-style: none; margin: -12px 0 0; padding: 0 10px; display: flex; flex-wrap: wrap; }
#primary-nav a { display: block; color: #fff; text-decoration: none; padding: 6px 20px 8px; font-size: 14.4px; }
#primary-nav a:hover, #primary-nav a[aria-current] { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }
.menu-toggle span:not(.sr) { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }
@media (max-width: 900px) {
  .bar { flex-wrap: wrap; align-items: center; gap: 12px; }
  .social { margin-left: 0; padding-top: 0; }
  .gt_selector { width: 140px; height: 38px; }
  .lang-wrap { min-width: 140px; min-height: 38px; }
  .menu-toggle { display: block; }
  #primary-nav { display: none; }
  #primary-nav.open { display: block; }
  .site-header:has(#primary-nav.open)::before { opacity: .95; }
  #primary-nav ul { flex-direction: column; margin: 8px 0 0; }
}
@media (max-width: 560px) { .brand { flex: 1 0 100%; } .bar { gap: 10px; } }

/* hero (page banner) - reproduces the live site's Elementor settings.
   The banner is pulled up behind the header by an amount that depends on the screen width
   (Elementor uses vw-based margins), so the photo crops exactly as on the live site. */
.hero { position: relative; box-sizing: border-box; margin-top: calc(120.2px - 12vw); padding: 10px;
        display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
        background-size: cover; background-position: 50% 50%; background-repeat: no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; background: #5e5e5e; opacity: .5; }
.hero-inner { position: relative; width: 100%; }
.hero h1 { color: #fff; font-size: 28px; line-height: 1; font-weight: 500; margin: 0; }
.hero-about { min-height: 550px; }
.hero-services { min-height: 450px; }
.hero-community { min-height: 650px; }
.hero-fiq { min-height: 350px; }
@media (min-width: 1025px) { .hero-about, .hero-community { background-attachment: fixed; } }
/* home: photo at natural size, tiled, anchored to the bottom; content from the top */
.hero-home { min-height: 500px; padding: 0 10px 20px; justify-content: flex-start;
             background-size: auto; background-repeat: repeat; background-position: 50% 100%; }
.hero-home .hero-inner { padding-top: calc(15vw + 7px); }
.hero-fiq .hero-inner { padding-top: 4vw; }
.hero-about .hero-inner { padding-top: 6px; }
.hero-video { width: calc(50vw - 10px); max-width: 100%; height: 315px; margin: 20px auto 0; }
.hero-video iframe { width: 100%; height: 100%; border: 0; display: block; }
/* tablets and phones: keep the live site's photo crop, but always start the banner text
   at least 20px below the header (--hdr-h is set from the real header height in site.js);
   the banner grows when its text needs more room */
@media (max-width: 1024px) {
  .hero { --mt: calc(120.2px - 24vw); margin-top: var(--mt); justify-content: flex-start; }
  .hero .hero-inner { padding-top: max(var(--live-pt), calc(var(--hdr-h, 120px) - var(--mt) + 10px)); }
  .hero-home .hero-inner { padding-top: max(var(--live-pt), calc(var(--hdr-h, 120px) - var(--mt) + 20px)); }
  .hero-home { --live-pt: calc(15vw + 7px); }
  .hero-about { --live-pt: 220px; }
  .hero-services { --live-pt: 201px; }
  .hero-community { --live-pt: 301px; }
  .hero-fiq { --live-pt: calc(151px + 2vw); }
}
/* exactly 768px wide (iPad portrait): the live site adds an extra 56px here */
@media (min-width: 768px) and (max-width: 768.98px) {
  .hero { --mt: calc(176.2px - 24vw); }
}
/* phones */
@media (max-width: 767px) {
  .hero { --mt: calc(241px - 70vw); }
  .hero h1 { line-height: 1.2; }
  .hero-home { min-height: 566px; }
  .hero-home { --live-pt: calc(60vw - 2px); }
  .hero-about { --live-pt: calc(23.3vw + 178px); }
  .hero-services { --live-pt: calc(30vw + 169px); }
  .hero-community { --live-pt: 265px; }
  .hero-fiq { --live-pt: calc(30vw + 121px); }
  .hero-video { width: 100%; }
}
.title-band { background: var(--tint); text-align: center; padding: 56px 0 !important; }
.title-band h1 { margin-bottom: 20px; }

/* home (matches live layout) */
main section.home-edu, main section.home-company, main section.home-flyers { padding: 20px 10px; }
.home-wrap { max-width: 1120px; margin: 0 auto; }
.home-edu .home-wrap { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 900px) { .home-edu .home-wrap { grid-template-columns: 739px 1fr; } }
.home h2, .home-edu h2, .home-company h2 { font-size: 28px; font-weight: 500; font-weight: 700; color: #000; margin: 0 0 20px; }
.home-edu p, .home-company p { font-size: 16px; line-height: 1.8; }
.home-edu-img { width: 100%; max-width: 360px; height: auto; justify-self: end; }
@media (max-width: 899px) { .home-edu-img { justify-self: center; } }
.home-actions { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 16px; padding: 30px 0 20px; }
.home-actions .btn { font-size: 16px; padding: 10px 24px; border-radius: 20px; }
.home-company { background: #e8e8e8; }
main section.home-company { padding: 10px 10px 10px; }
.home-company-inner { max-width: 912px; margin: 0 auto; }
.cards-3 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.flyer { margin: 0; text-align: center; }
.flyer img { width: 100%; }
.flyer figcaption { margin-top: 20px; }

/* services */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.steps li { position: relative; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 28px 24px 16px; }
.steps .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; font: 700 1.1rem var(--head); margin-bottom: 12px; }
.statement { font: 500 1.2rem/1.6 var(--head); margin-bottom: 28px; }
.offer { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { color: var(--red); }

/* community */
.logos { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 20px; }
.logos figure { margin: 0; max-width: 220px; }
figure figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.spotify { width: 100%; border: 0; border-radius: 12px; margin-top: 8px; }
.gallery { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 32px 0; align-items: start; }
.gallery.two { grid-template-columns: repeat(2, 1fr); margin: 0; }
.gallery figure { margin: 0; text-align: center; }
.gallery img { width: 100%; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.1); margin: 0 auto; }
.fig-logo { max-width: 300px; margin-bottom: 24px; }
.fb-video { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; justify-content: center; }
.fb-video iframe { width: 269px; height: 476px; border: 0; border-radius: 8px; max-width: 100%; }
.rounded.small { width: 150px; }

/* financial iq */
.post-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); margin-top: 32px; }
@media (max-width: 400px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { background: #fff; border-radius: var(--radius); padding: 24px; display: flex; gap: 18px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.post-card .thumb { flex: 0 0 96px; }
.post-card .thumb img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; }
.post-card h3 { font-size: 1.1rem; }
.post-card h3 a { color: #111; text-decoration: none; }
.post-card h3 a:hover { color: var(--red); }
.post-card p { font-size: .95rem; color: var(--muted); margin-bottom: .6em; }
.more { font-weight: 700; font-size: .95rem; text-decoration: none; }

/* post */
.post { padding: 48px 0 32px; }
.post h1 { text-transform: none; font-weight: 700; }
.crumb { font-size: .95rem; margin-bottom: 8px; }
.crumb a { text-decoration: none; }
.post-body::after { content: ''; display: table; clear: both; }
.post-body img { border-radius: 8px; margin: 0 0 1rem; }
.post-body .alignleft { float: left; margin: 0 24px 16px 0; max-width: 45%; }
.post-body .alignright { float: right; margin: 0 0 16px 24px; max-width: 45%; }
.post-body .aligncenter { margin: 0 auto 1rem; }
.post-body h2, .post-body h3 { margin-top: 1.4em; }
@media (max-width: 560px) { .post-body .alignleft, .post-body .alignright { float: none; max-width: 100%; margin: 0 auto 16px; } }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; border-top: 1px solid var(--line); padding-top: 24px; }
.post-nav a { text-decoration: none; font-weight: 600; color: #111; font-size: .95rem; }
.post-nav a span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--red); }
.post-nav .next { text-align: right; }

/* connect block */
.connect { background: var(--tint); border-top: 4px solid var(--red); }
.connect-grid { display: grid; gap: 40px; margin-top: 24px; }
@media (min-width: 860px) { .connect-grid { grid-template-columns: 320px 1fr; } }
.contact-card { text-align: center; align-self: start; }
.headshot { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; margin: 0 auto 16px; }
address { font-style: normal; margin-bottom: 1em; }

/* privacy */
.prose h3 { margin-top: 1.6em; }

/* footer */
.site-footer { background: #a33538; color: #fff; text-align: center; padding: 20px 16px; font-size: 12.8px; line-height: 1.8; }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; }

/* pagination */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.pagination a, .pagination span { min-width: 40px; padding: 6px 12px; border-radius: 6px; text-align: center; text-decoration: none; background: #fff; color: var(--text); }
.pagination .current { background: var(--red); color: #fff; }
.pagination a:hover { background: var(--red); color: #fff; }

/* video fallback when a page is opened from disk */
.yt-fallback { position: relative; display: block; width: 100%; height: 100%; background: #000; overflow: hidden; }
.yt-fallback img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; background: #f00; border-radius: 12px; }
.yt-play::after { content: ''; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.yt-fallback:hover .yt-play { background: #c00; }

/* about (matches live layout) */
.hero-cta { margin-top: 20px; }
.hero-cta .btn, .about-btn .btn { font-size: 15px; padding: 12px 24px; border-radius: 20px; }
main section.about-cols { padding: 10px 10px 20px; }
.about-wrap { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 860px) { .about-wrap { grid-template-columns: 1fr 1fr; } }
.about-wrap article { padding: 10px; display: flex; flex-direction: column; }
.about-wrap h2 { font-size: 28px; line-height: 1; font-weight: 700; color: #000; text-align: center; margin: 10px 0 20px; }
.about-wrap p { font-size: 16px; line-height: 1.8; }
.about-btn { margin-top: auto; padding-top: 20px; text-align: center; }

/* videos inside posts */
.post-video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 1.4em; border-radius: 8px; overflow: hidden; background: #000; }
.post-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
