/* Content builder blocks (Milestone 14) - neutral core styles. Themes set the variables (and may add a "blocks"
   stylesheet or override the block views). No build step. */
.cb-block { --cb-accent: var(--cb-theme-accent, #2f6f4f); --cb-ink: var(--cb-theme-ink, #1d2430); --cb-muted: var(--cb-theme-muted, #5b6676);
    --cb-light: var(--cb-theme-light, #f5f7fa); --cb-line: var(--cb-theme-line, #e3e7ee); --cb-radius: var(--cb-theme-radius, 0.75rem); position: relative; }
.cb-inner { width: 100%; max-width: var(--cb-max, 1140px); margin-inline: auto; padding-inline: 1rem; }
.cb-width-narrow .cb-inner, .cb-inner--narrow { max-width: 780px; }
.cb-width-full .cb-inner { max-width: none; }
.cb-space-none { padding-block: 0; }
.cb-space-sm { padding-block: 1.5rem; }
.cb-space-md { padding-block: clamp(2rem, 5vw, 3.5rem); }
.cb-space-lg { padding-block: clamp(3rem, 8vw, 6rem); }
.cb-bg-light { background: var(--cb-light); }
.cb-bg-accent { background: var(--cb-accent); color: #fff; }
.cb-bg-dark { background: var(--cb-ink); color: #fff; }
.cb-bg-accent a:not(.btn), .cb-bg-dark a:not(.btn) { color: #fff; }
.cb-heading { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.75rem; }
.cb-intro { color: inherit; opacity: 0.85; max-width: 46rem; margin-bottom: 1.5rem; }
.cb-eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 700; margin-bottom: 0.5rem; }
.cb-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.cb-btn { border-radius: 999px; padding: 0.6rem 1.3rem; font-weight: 600; }
.cb-btn--primary { background: var(--cb-accent); border: 1px solid var(--cb-accent); color: #fff; }
.cb-btn--primary:hover, .cb-btn--primary:focus-visible { color: #fff; filter: brightness(0.92); }
.cb-btn--secondary { background: transparent; border: 1px solid currentColor; color: inherit; }
.cb-rounded { border-radius: var(--cb-radius); width: 100%; height: auto; }
.cb-prose img { max-width: 100%; height: auto; }
/* Hero */
.cb-hero { position: relative; }
.cb-hero--background.cb-hero--has-image { color: #fff; min-height: clamp(20rem, 55vh, 34rem); display: flex; align-items: center; isolation: isolate; }
.cb-hero__media { position: absolute; inset: 0; z-index: -1; }
.cb-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.cb-hero--background.cb-hero--has-image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.6)); }
.cb-hero__title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.1; margin-bottom: 0.75rem; }
.cb-hero__text { font-size: 1.1rem; max-width: 42rem; }
.text-center .cb-hero__text { margin-inline: auto; }
.cb-hero--background.cb-hero--has-image .cb-btn--secondary { color: #fff; }
/* Cards, quotes, gallery, table, FAQ, logos, CTA, video */
.cb-card { background: #fff; color: var(--cb-ink); border: 1px solid var(--cb-line); border-radius: var(--cb-radius); overflow: hidden; position: relative; }
.cb-card__img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.cb-card__body { padding: 1rem 1.1rem 1.2rem; }
.cb-card__title { font-size: 1.1rem; margin-bottom: 0.4rem; }
.cb-card__title a { color: inherit; text-decoration: none; }
.cb-card__title a::after { content: ""; position: absolute; inset: 0; }
.cb-card__text { color: var(--cb-muted); margin-bottom: 0; }
.cb-quote { background: #fff; color: var(--cb-ink); border: 1px solid var(--cb-line); border-radius: var(--cb-radius); padding: 1.25rem; margin: 0; }
.cb-quote__text { font-size: 1.02rem; }
.cb-quote__photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.cb-gallery__btn { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: 0.5rem; overflow: hidden; }
.cb-gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0.5rem; }
.cb-caption { font-size: 0.85rem; opacity: 0.8; margin-top: 0.35rem; }
.cb-table { background: #fff; color: var(--cb-ink); }
.cb-table th[scope="row"] { font-weight: 600; width: 35%; }
.cb-table--comparison td { text-align: center; }
.cb-faq__item { border-bottom: 1px solid var(--cb-line); padding: 0.85rem 0; }
.cb-faq__q { cursor: pointer; font-weight: 600; list-style-position: outside; }
.cb-faq__a { padding-top: 0.6rem; opacity: 0.9; }
.cb-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem 2.5rem; margin: 1rem 0 0; }
.cb-logos__img { max-height: 3.5rem; width: auto; filter: grayscale(1); opacity: 0.8; }
.cb-logos__item a:hover .cb-logos__img, .cb-logos__item a:focus-visible .cb-logos__img { filter: none; opacity: 1; }
.cb-cta { border-radius: var(--cb-radius); padding: clamp(1.5rem, 5vw, 3rem); }
.cb-cta--light { background: var(--cb-light); }
.cb-cta--accent { background: var(--cb-accent); color: #fff; }
.cb-cta--dark { background: var(--cb-ink); color: #fff; }
.cb-cta--accent .cb-btn--primary, .cb-cta--dark .cb-btn--primary { background: #fff; color: var(--cb-ink); border-color: #fff; }
.cb-video { border-radius: var(--cb-radius); overflow: hidden; background: #000; }
.cb-video iframe { border: 0; }
.cb-video__play { display: flex; align-items: center; justify-content: center; gap: 0.75rem; color: #fff; text-decoration: none; font-weight: 600; }
.cb-video__icon { display: inline-grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: rgba(255,255,255,0.18); font-size: 1.6rem; }
@media (prefers-reduced-motion: reduce) { .cb-btn { transition: none; } }

/* Map block: button first, frame on demand */
.cb-map { position: relative; border-radius: var(--cb-radius); overflow: hidden; background: #e9ecef; min-height: 18rem; }
.cb-map--lg { min-height: 28rem; }
.cb-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cb-map__load { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; text-decoration: none; color: inherit; text-align: center; padding: 1rem; }
.cb-map__label { font-weight: 600; }
.cb-map__hint { font-size: 0.8125rem; opacity: 0.75; }

/* Hero background video: the poster image is shown first, the video fades in once it plays */
.cb-hero__video, .cb-hero__embed { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .9s ease; }
.cb-hero__video { object-fit: cover; }
.cb-hero__video.is-playing, .cb-hero__embed.is-playing { opacity: 1; }
.cb-hero__embed { overflow: hidden; pointer-events: none; }
.cb-hero__embed iframe { position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh; transform: translate(-50%, -50%); border: 0; }
@media (prefers-reduced-motion: reduce) { .cb-hero__video, .cb-hero__embed { display: none; } }
