/* Home page, from the product owner's Bootstrap 5 template (consultants-homepage/style.css).
   Scoped under .home-tpl so its generic class names (.hero, .section, .quick-card, ...) cannot
   reach any other page. Changes from the template: colours read the site's tokens so the dark
   mode works; the smallest type follows the approved scale (subtext 13px, secondary 14px). */

.home-tpl {
    --tpl-primary: var(--bs-primary);
    --tpl-primary-dark: var(--brand-hover, #1254b8);
    --tpl-dark: #172033;
    --tpl-text: var(--bs-body-color);
    --tpl-muted: var(--bs-secondary-color);
    --tpl-bg: #f7f9fc;
    --tpl-border: var(--bs-border-color);
    --tpl-surface: #ffffff;
    --tpl-soft: #e8f2ff;
    --tpl-soft-border: #dbe8fb;
    --tpl-hero-bg: linear-gradient(100deg, #e6f1ff, #fff);
    --tpl-hero-copy-bg: linear-gradient(90deg, #ffffffb8, #f4f9ff 42%, #fff);
    --tpl-quick-bg: linear-gradient(135deg, #fff, #eef7ff);
    --tpl-teal: #079d9c;
    --tpl-warning: #f79009;
    --tpl-heading: #172033;
    background: var(--tpl-surface);
    color: var(--tpl-text);
}

[data-bs-theme="dark"] .home-tpl {
    --tpl-primary-dark: #a9c7ff;
    --tpl-bg: #1b2539;
    --tpl-surface: #172033;
    --tpl-soft: rgba(59, 130, 246, 0.16);
    --tpl-soft-border: #315dab;
    --tpl-hero-bg: linear-gradient(100deg, #1b2a4a, #172033);
    --tpl-hero-copy-bg: linear-gradient(90deg, #172033cc, #1b2a4a 42%, #172033);
    --tpl-quick-bg: linear-gradient(135deg, #1c263a, #1f2f4d);
    --tpl-teal: #2dd4bf;
    --tpl-warning: #fdb022;
    --tpl-heading: #f7f9fc;
}

.home-tpl h1, .home-tpl h2, .home-tpl h3, .home-tpl b, .home-tpl strong { color: var(--tpl-heading); }
.home-tpl a { text-decoration: none; }
.home-tpl .container-xxl { max-width: 1390px; }
.home-tpl .btn { border-radius: 9px; font-weight: 700; font-size: 13px; padding: .7rem 1.1rem; }

/* ---- Hero ---- */
.home-tpl .hero { background: var(--tpl-hero-bg); }
.home-tpl .hero-inner { min-height: 335px; }
.home-tpl .hero-photo { position: relative; overflow: hidden; min-height: 320px; }
.home-tpl .hero-photo > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center; }
.home-tpl .hero-photo-shade { position: absolute; inset: 0; background: linear-gradient(to left, transparent 65%, #1222384f); }
.home-tpl .hero-photo-words { position: absolute; top: 40px; left: 28px; color: #fff; font-size: 17px; font-weight: 700; line-height: 2.1; text-shadow: 0 2px 10px #1118; }
.home-tpl .hero-photo-art { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(30rem 20rem at 50% 40%, rgba(23, 105, 224, .16), transparent 70%), linear-gradient(160deg, #f7f9fc, #e4ebf7); }
.home-tpl .hero-photo-art img { width: 26%; height: auto; }
.home-tpl .hero-content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 36px 46px 46px; background: var(--tpl-hero-copy-bg); text-align: right; }
.home-tpl .hero-eyebrow { color: var(--tpl-primary); }
.home-tpl .hero-eyebrow strong { display: block; color: inherit; font-size: 17px; font-weight: 900; }
.home-tpl .hero-eyebrow small { display: block; margin-top: 4px; color: var(--tpl-muted); font-size: 11px; font-weight: 600; }
.home-tpl .hero h1 { font-weight: 900; font-size: clamp(25px, 2.5vw, 38px); line-height: 1.65; margin: 22px 0 8px; }
.home-tpl .hero h1 em { font-style: normal; color: var(--tpl-primary); }
[data-bs-theme="dark"] .home-tpl .hero h1 em { color: #78a9ff; }
.home-tpl .hero p { font-size: 14px; line-height: 2; color: var(--tpl-muted); max-width: 540px; margin-bottom: 18px; }

/* ---- Search ---- */
.home-tpl .search-overlap { position: relative; margin-top: -10px; z-index: 2; }
.home-tpl .search-panel { background: var(--tpl-surface); border: 1px solid var(--tpl-border); border-radius: 15px; padding: 15px 18px; box-shadow: 0 8px 28px #17203313; }
.home-tpl .search-panel label { font-size: 10px; font-weight: 800; color: var(--tpl-muted); display: block; margin: 0 0 4px; }
.home-tpl .search-panel .form-select, .home-tpl .search-panel .form-control { border-color: var(--tpl-border); border-radius: 7px; min-height: 43px; font-size: 12px; color: var(--tpl-text); box-shadow: none; background-color: var(--tpl-surface); }
.home-tpl .search-panel .form-select:focus, .home-tpl .search-panel .form-control:focus { border-color: var(--tpl-primary); box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color); }
.home-tpl .search-submit { height: 43px; min-width: 120px; }

/* ---- Sections ---- */
.home-tpl .section { padding: 32px 0; }
.home-tpl .quick-section { padding-top: 18px; }
.home-tpl .section-title h2, .home-tpl .section-heading h2 { font-size: 22px; font-weight: 900; margin: 0 0 9px; }
.home-tpl .section-title p, .home-tpl .section-heading p { color: var(--tpl-muted); font-size: 12px; line-height: 2; margin: 0 0 13px; }
.home-tpl .section-heading { margin-bottom: 16px; }
.home-tpl .more-link { font-weight: 700; font-size: 12px; border: 1px solid var(--tpl-soft-border); border-radius: 9px; color: var(--tpl-primary); padding: 8px 13px; white-space: nowrap; }
.home-tpl .more-link:hover { background: var(--tpl-soft); }
.home-tpl .more-link i { margin-right: 7px; }
.home-tpl .empty-state { padding: 20px; background: var(--tpl-bg); border-radius: 10px; color: var(--tpl-muted); }

/* ---- Quick access ---- */
.home-tpl .quick-card { min-height: 150px; height: 100%; display: flex; flex-direction: column; position: relative; background: var(--tpl-quick-bg); border: 1px solid var(--tpl-soft-border); border-radius: 12px; padding: 18px; color: var(--tpl-primary); transition: .2s ease; }
.home-tpl .quick-card:hover, .home-tpl .person-card:hover, .home-tpl .benefit:hover { transform: translateY(-3px); box-shadow: 0 12px 24px #17203314; }
.home-tpl .quick-icon { font-size: 30px; color: var(--tpl-primary); height: 44px; }
.home-tpl .quick-icon.teal { color: var(--tpl-teal); }
.home-tpl .quick-card strong { font-size: 16px; color: var(--tpl-primary); margin: 4px 0; }
[data-bs-theme="dark"] .home-tpl .quick-card strong, [data-bs-theme="dark"] .home-tpl .quick-icon:not(.teal) { color: #78a9ff; }
.home-tpl .quick-card small { font-size: 11px; color: var(--tpl-muted); line-height: 1.9; padding-left: 35px; }
.home-tpl .mini-arrow { position: absolute; left: 14px; bottom: 13px; width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: var(--tpl-primary); border-radius: 50%; }
.home-tpl .mini-arrow.teal-bg { background: #099b92; }

/* ---- Why ---- */
.home-tpl .about-section { padding: 30px 0; background: var(--tpl-bg); }
.home-tpl .benefit { min-height: 138px; height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--tpl-surface); border: 1px solid var(--tpl-border); border-radius: 10px; padding: 14px 8px; transition: .2s; }
.home-tpl .benefit i { font-size: 28px; color: var(--tpl-primary); margin-bottom: 8px; }
[data-bs-theme="dark"] .home-tpl .benefit i:not(.orange) { color: #78a9ff; }
.home-tpl .benefit .orange { color: var(--tpl-warning); }
.home-tpl .benefit b { font-size: 12px; white-space: nowrap; }
.home-tpl .benefit small { font-size: 10px; color: var(--tpl-muted); line-height: 1.9; margin-top: 6px; }
.home-tpl .building-img { height: 245px; overflow: hidden; border-radius: 12px; }
.home-tpl .building-img > img { width: 100%; height: 100%; object-fit: cover; }
/* Without the organisation's own photograph: the approved full logo on a calm, light panel. */
.home-tpl .building-art { height: 100%; display: grid; place-items: center; border: 1px solid var(--tpl-border); border-radius: 12px; background: radial-gradient(26rem 16rem at 80% 10%, rgba(23, 105, 224, .14), transparent 70%), linear-gradient(160deg, #fff, #eef3fb); }
.home-tpl .building-art img { width: 62%; height: auto; }

/* ---- Consultants ---- */
.home-tpl .person-card { position: relative; background: var(--tpl-surface); border: 1px solid var(--tpl-border); border-radius: 10px; overflow: hidden; transition: .2s; height: 100%; }
.home-tpl .person-card > img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; object-position: center top; background: linear-gradient(160deg, var(--tpl-soft), var(--tpl-bg)); }
.home-tpl .person-initials { display: grid; place-items: center; width: 100%; height: auto; aspect-ratio: 4 / 3; background: linear-gradient(160deg, var(--tpl-soft), var(--tpl-bg)); color: var(--tpl-primary); font-size: 34px; font-weight: 900; }
.home-tpl .person-body { padding: 10px 12px; }
.home-tpl .person-body h3 { font-size: 13px; font-weight: 900; margin: 0 0 6px; }
.home-tpl .person-body h3 a { color: inherit; }
.home-tpl .person-body p { color: var(--tpl-muted); font-size: 11px; margin-bottom: 10px; }
.home-tpl .tags { display: flex; gap: 4px; flex-wrap: wrap; min-height: 30px; }
.home-tpl .tags span { font-size: 9px; font-weight: 700; background: var(--tpl-soft); color: var(--tpl-primary-dark); padding: 5px 7px; border-radius: 5px; }
.home-tpl .person-body > small { display: block; color: var(--tpl-muted); font-size: 10px; margin-top: 10px; }

/* ---- Events and news ---- */
.home-tpl .newsroom { background: var(--tpl-bg); padding-top: 22px; }
.home-tpl .newsroom .section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.home-tpl .newsroom .section-heading h2 { font-size: 20px; margin: 0; }
.home-tpl .news-list { display: flex; flex-direction: column; gap: 11px; }
.home-tpl .news-item { position: relative; display: flex; align-items: center; gap: 14px; min-height: 115px; padding: 10px; background: var(--tpl-surface); border: 1px solid var(--tpl-border); border-radius: 10px; }
.home-tpl .news-item:hover { box-shadow: 0 12px 24px #17203314; }
.home-tpl .news-item > img, .home-tpl .news-thumb { height: 94px; width: 125px; object-fit: cover; border-radius: 7px; flex: 0 0 auto; }
.home-tpl .news-thumb { display: grid; place-items: center; background: var(--tpl-soft); color: var(--tpl-primary); font-size: 30px; }
.home-tpl .news-item > div { flex: 1; min-width: 0; }
.home-tpl .news-item h3 { font-size: 12px; line-height: 1.9; font-weight: 900; margin: 4px 0; }
.home-tpl .news-item h3 a { color: inherit; }
.home-tpl .news-item p { font-size: 10px; color: var(--tpl-muted); margin: 0; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-tpl .category { font-size: 10px; color: var(--tpl-primary); font-weight: 700; }
[data-bs-theme="dark"] .home-tpl .category { color: #78a9ff; }
.home-tpl .news-chevron { margin-left: 7px; color: var(--tpl-warning); font-size: 16px; }

/* ---- Specialty areas ---- */
.home-tpl .specialties { padding-top: 27px; }
.home-tpl .specialties .section-heading { display: block; }
.home-tpl .specialty { height: 95px; background: var(--tpl-bg); border: 1px solid var(--tpl-soft-border); border-radius: 9px; color: var(--tpl-primary); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; text-align: center; padding: 0 8px; }
.home-tpl .specialty:hover { background: var(--tpl-soft); }
.home-tpl .specialty i { font-size: 29px; }
[data-bs-theme="dark"] .home-tpl .specialty i { color: #78a9ff; }
.home-tpl .specialty b { font-size: 11px; }

/* ---- Join band ---- */
.home-tpl .join-band { padding: 27px 0; background: linear-gradient(120deg, #1769e0, #1254b8 64%, #172033); color: #fff; }
.home-tpl .join-band h2 { font-size: 21px; color: #fff; font-weight: 900; }
.home-tpl .join-band p { font-size: 12px; margin: 0; line-height: 2; color: rgba(255, 255, 255, .9); }
.home-tpl .join-symbol { display: grid; place-items: center; font-size: 35px; width: 70px; height: 70px; border-radius: 50%; background: #ffffff26; flex-shrink: 0; }
.home-tpl .join-button { color: #1769e0; font-weight: 700; }

/* The join band ends the home page and meets the footer directly. */
main:has(> .home-tpl) + .site-footer { margin-top: 0 !important; }

/* Keep the shared shell, but give the landing page the same crisp frame as the supplied template. */
.home-page .site-header { box-shadow: 0 3px 14px #1720330c; }
.home-page .site-header .navbar { min-height: 4.375rem; }
.home-page .site-topbar > .container-fluid { max-width: 1390px; margin-inline: auto; padding-inline: .75rem !important; }
.home-page .site-header .site-brand { margin-inline-start: -2rem; margin-inline-end: 0; padding: 0; background: transparent; }
.home-page .site-header .site-brand .brand-full { height: 3rem; }
.home-page .site-header #site-nav .offcanvas-body,
.home-page .site-header #site-nav .offcanvas-body > nav { width: 100%; }
.home-page .site-header .site-nav { justify-content: center; width: 100%; margin-inline: auto; gap: .5rem !important; }
.home-page .site-header .site-nav .nav-link { min-height: auto; padding: .9rem .55rem !important; border-radius: 0; font-size: 12px; font-weight: 800; }
.home-page .site-header .site-nav .nav-link[aria-current="page"] { position: relative; background: transparent; color: var(--bs-primary); }
.home-page .site-header .site-nav .nav-link[aria-current="page"]::after { position: absolute; right: .55rem; bottom: .25rem; left: .55rem; height: 2px; background: var(--bs-primary); content: ""; }
.home-page .site-header .home-header-actions { flex: 0 0 auto; margin-inline-end: -.75rem; }
.home-page .site-header .btn-icon:not(.navbar-toggler) { display: inline-grid; flex: 0 0 38px; place-items: center; width: 38px; min-width: 38px; height: 38px; min-height: 38px; aspect-ratio: 1; padding: 0 !important; border: 1px solid #e4e7ec; border-radius: 50% !important; line-height: 1; }
.home-page .site-header .home-search-link { background: #fff; color: #1769e0; }
.home-page .site-header .home-search-link:hover,
.home-page .site-header .home-search-link:focus-visible { border-color: #1769e0; background: #e8f2ff; color: #1254b8; }
.home-page .site-header .theme-toggle { background: #fff; color: #172033; }
.home-page .site-header .theme-toggle:hover,
.home-page .site-header .theme-toggle:focus-visible,
.home-page .site-header .theme-toggle[aria-expanded="true"] { border-color: #172033; background: #eef2f7; color: #172033; }
.home-page #search { scroll-margin-top: 7.5rem; }
.home-page .site-header .public-account .btn { min-height: 38px; padding: .5rem 1rem; border-radius: 999px; font-size: 13px; line-height: 1.25; }
.home-page .site-footer > .container-fluid,
.home-page .site-footer > .border-top > .container-fluid { max-width: 1390px; margin-inline: auto; padding-inline: .75rem; }
.home-page .site-footer > .container-fluid { padding-block: 2.1rem !important; }
.home-page .site-footer h2 { font-size: 13px; font-weight: 900; }
.home-page .site-footer .footer-link { min-height: 2rem; margin-bottom: .2rem; font-size: 11px; }
.home-page .site-footer .footer-link > .bi { display: none; }
.home-page .site-footer .footer-muted { font-size: 11px; line-height: 2; }
.home-page .site-footer .footer-brand { padding: .45rem .65rem; }
.home-page .site-footer .footer-brand .brand-full { height: 2.75rem; }
.home-page .site-footer .row { align-items: flex-start; }
.home-page .site-footer .home-footer-contact { padding-inline-start: 2rem; }
.home-page .site-footer .footer-contact-note { max-width: 30rem; color: rgba(255, 255, 255, .68); font-size: 11px; line-height: 2; }
.home-page .site-footer .home-footer-socials { margin-top: .5rem; }
.home-page .site-footer .home-footer-socials .footer-social {
    width: 2rem;
    height: 2rem;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .82);
    font-size: 17px;
    transition: color .18s ease, opacity .18s ease;
}
.home-page .site-footer .home-footer-socials .footer-social:hover,
.home-page .site-footer .home-footer-socials .footer-social:focus-visible {
    background: transparent;
    border-color: transparent;
    color: #fff;
    opacity: 1;
}

@media (max-width: 1199px) {
    .home-page .site-header .site-brand { margin-inline-start: -.75rem; margin-inline-end: 0; }
    .home-page .site-header .home-header-actions { margin-inline-end: -.75rem; }
    .home-page .site-header .site-nav { align-items: stretch; justify-content: flex-start; margin-inline: 0; }
    .home-page .site-header .site-nav .nav-link .bi { display: inline-block; color: var(--bs-link-color); font-size: 1.2rem; }
    .home-page .site-header .site-nav .nav-link[aria-current="page"]::after { display: none; }
    .home-tpl .hero-content { padding: 32px; }
    .home-tpl .hero-photo { min-height: 310px; }
}

@media (max-width: 991px) {
    .home-page .site-footer .home-footer-contact { padding-inline-start: calc(var(--bs-gutter-x) * .5); }
}

@media (max-width: 991px) {
    .home-tpl .hero-inner { min-height: auto; }
    .home-tpl .hero-content { min-height: 300px; }
    .home-tpl .hero-photo { min-height: 295px; }
    .home-tpl .hero-photo.is-plain { display: none; }
    .home-tpl .building-img { height: 260px; }
}

@media (max-width: 575px) {
    .home-tpl .hero-content { padding: 25px 16px; min-height: 0; }
    .home-tpl .hero-eyebrow strong { font-size: 15px; }
    .home-tpl .hero-eyebrow small { font-size: 10px; }
    .home-tpl .hero h1 { font-size: 25px; }
    .home-tpl .hero p { font-size: 12px; }
    .home-tpl .hero-photo { min-height: 230px; }
    .home-tpl .hero-photo-words { top: 24px; left: 18px; font-size: 15px; }
    .home-tpl .search-overlap { margin-top: 0; padding-top: 12px; }
    .home-tpl .search-panel { padding: 12px; }
    .home-tpl .section { padding: 25px 0; }
    .home-tpl .quick-card { min-height: 150px; padding: 13px; }
    .home-tpl .quick-card strong { font-size: 13px; }
    .home-tpl .quick-card small { font-size: 10px; padding-left: 0; padding-bottom: 30px; }
    .home-tpl .section-title h2, .home-tpl .section-heading h2 { font-size: 18px; }
    .home-tpl .benefit b { font-size: 10px; white-space: normal; }
    .home-tpl .person-card > img, .home-tpl .person-initials { height: auto; aspect-ratio: 4 / 3; }
    .home-tpl .person-body { padding: 9px; }
    .home-tpl .person-body h3 { font-size: 11px; }
    .home-tpl .news-item { gap: 8px; }
    .home-tpl .news-item > img, .home-tpl .news-thumb { width: 88px; height: 82px; }
    .home-tpl .news-item h3 { font-size: 11px; }
    .home-tpl .newsroom .section-heading h2 { font-size: 16px; }
    .home-tpl .more-link { font-size: 10px; padding: 7px; }
    .home-tpl .specialty b { font-size: 10px; }
    .home-tpl .join-band h2 { font-size: 17px; }
    .home-tpl .join-symbol { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .home-tpl .quick-card, .home-tpl .person-card, .home-tpl .benefit { transition: none; }
    .home-tpl .quick-card:hover, .home-tpl .person-card:hover, .home-tpl .benefit:hover { transform: none; }
}
