/* Homepage only: reuse the site's palette and typography. */
.home-carousel { position: absolute; inset: 0; z-index: 0; background: #eef2f9 url('/img/hero-bg.jpg') center/cover; }
.home-carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.home-carousel-slide.is-active { opacity: 1; }
.home-carousel-slide img { width: 100%; height: 100%; object-fit: cover; object-position: 68% center; }
.home-carousel-controls { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.home-carousel-controls[hidden] { display: none; }
.home-carousel-controls button { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid #cbd3e4; border-radius: 50%; background: #ffffffb8; color: var(--accent-color); }
.home-carousel-controls button:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 4px; }
.home-carousel-dots { display: flex; gap: 8px; }
.home-carousel-dots button { width: 24px; height: 30px; border: 0; border-radius: 4px; background: transparent; }
.home-carousel-dots button::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #a4afce; }
.home-carousel-dots button[aria-pressed="true"]::after { width: 20px; border-radius: 4px; background: var(--accent-color); }
.home-carousel-count { font-size: .75rem; color: #566579; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .home-carousel-slide { transition: none; } }
.home-page { --home-border: #e2e7f1; --home-muted: #566579; }
.home-page .section { padding: 88px 0; }
.home-page h2 { font-size: clamp(1.75rem, 3vw, 2.45rem); font-weight: 700; line-height: 1.25; letter-spacing: -.035em; }
.home-page p { line-height: 1.8; }
.home-service-body, .home-team-copy { min-width: 0; overflow-wrap: anywhere; }
.home-page .home-eyebrow { display: block; margin-bottom: 16px; color: var(--accent-color); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.home-page .home-hero { min-height: 660px; padding: 100px 0 125px; background: #eef2f9; }
.home-hero::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, rgba(245,248,255,.98) 0%, rgba(245,248,255,.94) 28%, rgba(245,248,255,.7) 50%, rgba(245,248,255,.04) 80%); }
.home-hero > img, .home-hero > picture img { object-position: 65% center; }
.home-hero .welcome { max-width: 650px; }
.home-page #hero h1 { margin-bottom: 24px; font-size: clamp(2.4rem, 4.2vw, 3.75rem); line-height: 1.12; letter-spacing: -.045em; }
.home-page .home-hero .welcome p.h2 { max-width: 580px; margin-bottom: 14px; color: var(--accent-color); font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 600; line-height: 1.4; }
.home-page .home-hero .welcome p:not(.h2) { max-width: 540px; color: var(--home-muted); font-size: 1.1rem; line-height: 1.8; }
.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 30px; }
.home-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 52px; padding: 14px 22px; border: 1px solid transparent; border-radius: 8px; background: var(--accent-color); color: white; font-weight: 600; font-size: .93rem; transition: background .2s, transform .2s; }
.home-button:hover { background: #4757b3; color: white; transform: translateY(-2px); }
.home-button-secondary { border-color: #cbd3e4; background: rgba(255,255,255,.8); color: var(--heading-color); }
.home-button-secondary:hover { background: white; color: var(--accent-color); }
.home-hero-note { display: flex; align-items: center; gap: 10px; margin-top: 28px; color: var(--home-muted); font-size: .85rem; }
.home-hero-note i { color: var(--accent-color); font-size: 1.2rem; }
.home-highlights { position: relative; z-index: 4; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: -42px; padding: 0; border: 1px solid var(--home-border); border-radius: 12px; background: white; box-shadow: 0 14px 40px #2c49640d; }
.home-highlights > div, .home-highlights > a { display: flex; align-items: center; gap: 18px; padding: 28px; color: var(--home-muted); font-size: .85rem; }
.home-highlights > :not(:last-child) { border-right: 1px solid var(--home-border); }
.home-highlights > a:hover { background: #f5f6fc; border-radius: 0 12px 12px 0; }
.home-highlights > div > i, .home-highlights > a > i { color: var(--accent-color); font-size: 1.8rem; }
.home-highlights strong { display: block; margin-bottom: 5px; color: var(--heading-color); font-size: 1rem; }
.home-about-image { width: 100%; border-radius: 14px; }
.home-page .about .content > h2 { margin-bottom: 22px; }
.home-page .about .content > ul { margin-top: 24px; }
.home-page .about .content > ul > li { gap: 20px; margin-bottom: 20px; }
.home-page .about .content > ul > li > i { flex-shrink: 0; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: #f0f2fc; font-size: 1.2rem; }
.home-page .about .content > ul > li h3 { margin-bottom: 8px; font-size: 1.05rem; font-weight: 600; }
.home-rich-text, .home-page .about .content > ul > li > div > div { line-height: 1.8; }
.home-text-link { display: inline-flex; align-items: center; gap: 12px; font-size: .93rem; font-weight: 600; }
.home-text-link:hover { color: #394aab; }
.home-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.home-section-heading > div { max-width: 680px; }
.home-section-heading h2 { margin-bottom: 16px; }
.home-section-heading p { margin-bottom: 0; color: var(--home-muted); }
.home-section-heading > a { flex-shrink: 0; margin-bottom: 6px; }
.home-services.light-background, .home-team-section.light-background { --background-color: #f5f7fc; }
.home-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-service-card { display: flex; flex-direction: column; border: 1px solid var(--home-border); border-radius: 12px; overflow: hidden; background: white; transition: box-shadow .25s, transform .25s; }
.home-service-card:hover { transform: translateY(-4px); box-shadow: 0 15px 32px #2c496410; }
.home-service-image { display: block; overflow: hidden; }
.home-service-image img { display: block; width: 100%; height: 200px; object-fit: cover; transition: transform .3s; }
.home-service-card:hover .home-service-image img { transform: scale(1.035); }
.home-service-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 26px; }
.home-service-body h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.4; }
.home-service-body h3 a { color: var(--heading-color); }
.home-service-summary { margin: 8px 0 22px; font-size: .94rem; line-height: 1.8; color: var(--home-muted); }
.home-service-summary > :last-child { margin-bottom: 0; }
.home-service-body > .home-text-link { margin-top: auto; }
.home-page .stats { padding: 56px 0; border-top: 1px solid var(--home-border); border-bottom: 1px solid var(--home-border); }
.home-page .stats .stats-item { box-shadow: none; background: transparent; padding-bottom: 8px; }
.home-steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 40px; margin: 0; padding: 0; list-style: none; }
.home-steps li { border-top: 2px solid #dfe4f5; padding-top: 24px; }
.home-step-number { display: block; margin-bottom: 18px; color: var(--accent-color); font: 600 2rem var(--heading-font); }
.home-steps h3 { font-size: 1.16rem; font-weight: 600; }
.home-steps p { color: var(--home-muted); font-size: .96rem; margin: 14px 0 0; }
.home-team-panel { display: grid; grid-template-columns: 1fr 1fr; align-items: center; overflow: hidden; border: 1px solid var(--home-border); border-radius: 16px; background: white; }
.home-team-panel > picture { align-self: stretch; }
.home-team-image { display: block; width: 100%; height: 100%; min-height: 430px; object-fit: cover; }
.home-team-copy { padding: 44px; }
.home-team-copy h2 { margin-bottom: 24px; }
.home-team-copy p { color: var(--home-muted); }
.home-faq-list details { padding: 22px 0; border-bottom: 1px solid var(--home-border); }
.home-faq-list details:first-child { border-top: 1px solid var(--home-border); }
.home-faq-list summary { display: flex; justify-content: space-between; gap: 20px; cursor: pointer; color: var(--heading-color); font-weight: 600; list-style: none; }
.home-faq-list summary::-webkit-details-marker { display: none; }
.home-faq-list summary::after { content: "+"; color: var(--accent-color); font-size: 1.4rem; line-height: 1; }
.home-faq-list details[open] summary::after { content: "−"; }
.home-faq-list details p { margin: 16px 28px 0 0; color: var(--home-muted); font-size: .96rem; }
.home-page .home-final-section { padding-top: 0; }
.home-final-panel { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding: 50px; border-radius: 16px; background: linear-gradient(115deg, #354a94, #6575d4); color: white; }
.home-final-panel > div { max-width: 640px; }
.home-final-panel .home-eyebrow { color: #e0e6ff; }
.home-final-panel h2 { color: white; }
.home-final-panel p { margin: 16px 0 0; color: #edf0ff; }
.home-button-white { flex-shrink: 0; background: white; color: #354a94; }
.home-button-white:hover { background: #eef1ff; color: #354a94; }
.home-page a:focus-visible, .home-page summary:focus-visible { outline: 3px solid #354a94; outline-offset: 5px; }
@media (max-width: 1199px) {
    .home-highlights > div, .home-highlights > a { padding: 22px 18px; gap: 12px; }
    .home-team-copy { padding: 30px; }
    .home-final-panel { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 991px) {
    .home-page .section { padding: 64px 0; }
    .home-page .home-hero { min-height: 600px; padding: 80px 0 100px; }
    .home-hero::after { background: linear-gradient(90deg, rgba(245,248,255,.97), rgba(245,248,255,.82) 55%, rgba(245,248,255,.38)); }
    .home-highlights { grid-template-columns: 1fr; max-width: 720px; }
    .home-highlights > :not(:last-child) { border-right: 0; border-bottom: 1px solid var(--home-border); }
    .home-highlights > a:hover { border-radius: 0 0 12px 12px; }
    .home-service-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .home-team-panel { grid-template-columns: 1fr; }
    .home-team-image { min-height: 0; max-height: 420px; }
    .home-steps { gap: 24px; }
}
@media (max-width: 767px) {
    .home-page .section { padding: 48px 0; }
    .home-page .home-hero { min-height: auto; padding: 60px 0 85px; }
    .home-page .home-hero .welcome p:not(.h2) { font-size: 1rem; }
    .home-highlights { width: calc(100% - 24px); max-width: 516px; margin-top: -28px; }
    .home-section-heading { flex-direction: column; align-items: flex-start; gap: 18px; }
    .home-service-grid, .home-steps { grid-template-columns: 1fr; }
    .home-service-image img { height: 220px; }
    .home-team-copy { padding: 28px 22px; }
    .home-final-panel { padding: 32px 24px; gap: 24px; }
    .home-final-panel .home-button { width: 100%; }
    .home-page .stats .row > div { width: 100%; }
    .home-hero .home-actions { align-items: stretch; }
    .home-hero .home-button { flex: 1 1 220px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-page *, .home-page *::before, .home-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
