/* Homepage-only compositions. Loads after design-system.css and style.css. */

/* Photo hero: full-bleed photography with a navy wash and a proof card. */
.cb-hero--photo { background: var(--brand-primary-dark); min-height: min(760px, 88vh); display: flex; align-items: stretch; }
.cb-hero--photo::before { display: none; }
.cb-hero--photo > .cb-shell { display: grid; align-items: center; }
.cb-hero__bg { position: absolute; inset: 0; z-index: -2; }
.cb-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.cb-hero--photo .cb-hero__bg::after { content: ""; position: absolute; inset: 0; background:
	linear-gradient(90deg, rgba(43, 49, 81,.96) 0%, rgba(43, 49, 81,.86) 38%, rgba(43, 49, 81,.45) 68%, rgba(43, 49, 81,.2) 100%),
	linear-gradient(0deg, rgba(43, 49, 81,.55), transparent 40%); }
.cb-hero--photo .cb-hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); align-items: end; padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(80px, 9vw, 120px); }
.cb-hero--photo .cb-hero__title { font-size: clamp(2.3rem, 1.3rem + 3.5vw, 4.3rem); max-width: 14.5em; }
.cb-hero__card { background: rgba(255,255,255,.97); border-radius: var(--radius-media); padding: 24px; box-shadow: var(--shadow-lift); color: var(--body-text); }
.cb-hero__facts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.cb-hero__facts li { display: flex; gap: 10px; align-items: flex-start; font-weight: 650; color: var(--ink); line-height: 1.35; }
.cb-hero__facts .cb-icon { color: #fff; background: var(--brand-accent); border-radius: 50%; padding: 3px; width: 20px; height: 20px; margin-top: 1px; }
.cb-hero__license { display: flex; align-items: center; gap: 8px; margin: 18px 0 0 !important; padding-top: 16px; border-top: 1px solid var(--border); font-size: .86rem; color: var(--muted-text); font-weight: 650; }
.cb-hero__license .cb-icon { color: var(--sea); }

/* Stats rail overlaps the hero edge. */
.cbgd-site .cb-route-home .cb-sec--stats, .cb-route-home .cb-sec--stats { padding-top: 0; margin-top: -48px; position: relative; z-index: 2; background: transparent; }
.cb-route-home .cb-sec--stats + .cb-sec { padding-top: calc(var(--section-space) * .75); }

/* Services cards get a bolder treatment on the homepage. */
.cb-route-home #services .cb-card__media img { aspect-ratio: 4 / 3; }

@media (max-width: 920px) {
	.cb-hero--photo { min-height: 0; }
	.cb-hero--photo .cb-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.cb-hero--photo .cb-hero__bg::after { background: linear-gradient(180deg, rgba(43, 49, 81,.82) 0%, rgba(43, 49, 81,.9) 60%, rgba(43, 49, 81,.96) 100%); }
	.cb-hero__card { max-width: 520px; }
}
@media (max-width: 620px) {
	.cb-route-home .cb-sec--stats { margin-top: -36px; }
	.cb-hero__card { padding: 18px; }
}
