/* Heritage layout: information bar, wide header, deep footer, and the quieter
   "established firm" treatment of the shared blocks. Loaded only for templates
   whose layout is "heritage"; every rule is scoped to .layout-heritage so no other
   theme is affected. Colours come from the resolved theme tokens set in the page
   head (--bg navy, --accent gold, --canvas-alt, --ink ...). */

body.layout-heritage {
    --paper: #FBF8F1;
    --canvas: var(--paper);
    --rule: color-mix(in srgb, var(--accent) 38%, var(--paper));
    --heritage-deep: color-mix(in srgb, var(--bg) 62%, #000);
    background: var(--paper);
}
.layout-heritage h1, .layout-heritage h2, .layout-heritage h3, .layout-heritage h4 { font-weight: 600; }
.layout-heritage .eyebrow { color: var(--accent-ink); letter-spacing: .22em; }

/* ── Information bar ─────────────────────────────────── */
.layout-heritage .hbar { background: var(--heritage-deep); color: var(--band-muted); font-size: 13px; }
.layout-heritage .hbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; min-height: 38px; padding-block: 4px; }
.layout-heritage .hbar__note { color: var(--band-text); font-weight: 600; }
.layout-heritage .hbar__contact { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.layout-heritage .hbar__contact a { color: var(--band-muted); }
.layout-heritage .hbar__contact a:hover { color: var(--band-text); }
.layout-heritage .hbar__switches { display: flex; gap: 10px; }
.layout-heritage .hbar__lang, .layout-heritage .hbar__cur { display: inline-flex; border: 1px solid rgba(255, 255, 255, .28); }
.layout-heritage .hbar__lang a, .layout-heritage .hbar__cur a { padding: 4px 12px; color: var(--band-muted); line-height: 1.5; }
.layout-heritage .hbar__lang a:hover, .layout-heritage .hbar__cur a:hover { color: var(--band-text); }
.layout-heritage .hbar__lang a[aria-current], .layout-heritage .hbar__cur a[aria-current] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.layout-heritage .hbar a:focus-visible { outline: 2px solid var(--band-accent); outline-offset: 2px; }

/* ── Header ──────────────────────────────────────────── */
.layout-heritage .nav { border-bottom: 1px solid var(--rule); }
.layout-heritage .nav::before { background: color-mix(in srgb, var(--paper) 96%, transparent); }
.layout-heritage .nav__inner { min-height: 84px; padding-block: 10px; }
.layout-heritage .nav__logo { height: 58px; width: auto; }
.layout-heritage .nav.is-scrolled .nav__logo { height: 46px; }
.layout-heritage .nav__brand { color: var(--bg); font-size: 24px; }
.layout-heritage .nav__links { gap: 22px; }
.layout-heritage .nav__link { color: var(--bg); font-size: 14.5px; font-weight: 600; opacity: 1; white-space: nowrap; }
.layout-heritage .nav__link::after { background: var(--accent); }
.layout-heritage .nav__toggle span { background: var(--bg); }
.layout-heritage .nav .btn-primary { white-space: nowrap; }

/* ── Buttons: square, solid, no glow ─────────────────── */
.layout-heritage .btn-primary { box-shadow: none; letter-spacing: .02em; }
.layout-heritage .btn-primary:hover { transform: none; box-shadow: none; filter: brightness(.94); }
.layout-heritage .hero:not(.hero--theme) .hero__cta .btn-primary { background: #fff; color: var(--bg); border-color: #fff; }
.layout-heritage .hero:not(.hero--theme) .hero__cta .btn-primary:hover { filter: none; background: var(--band-accent); border-color: var(--band-accent); }
.layout-heritage .cta-band .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ── Shared blocks, Heritage treatment ───────────────── */
.layout-heritage .hero__scrim--image { background: linear-gradient(100deg, rgba(8, 24, 48, .9) 0%, rgba(10, 30, 60, .68) 52%, rgba(8, 24, 48, .3) 100%); }
.layout-heritage .hero__scrim--image::after { background: none; }
.layout-heritage .hero__title { text-shadow: none; font-size: clamp(38px, 5.4vw, 66px); }
.layout-heritage .hero__desc { text-shadow: none; }
.layout-heritage .hero__eyebrow { color: var(--band-accent); text-shadow: none; }
.layout-heritage .card, .layout-heritage .link-card { box-shadow: none; border-color: var(--rule); }
.layout-heritage .card:hover, .layout-heritage .link-card:hover { box-shadow: 0 14px 34px rgba(16, 41, 74, .1); transform: translateY(-3px); }
.layout-heritage .link-card--plain .link-card__body { border-top-color: var(--accent); }
.layout-heritage .split__media img { box-shadow: none; }
.layout-heritage .split__media::before { border-color: var(--rule); }
.layout-heritage .faq-item summary, .layout-heritage .faq-item summary span { color: var(--bg); }
.layout-heritage .cta-band { background: var(--bg); }

/* ── Footer ──────────────────────────────────────────── */
.layout-heritage .footer--heritage { background: var(--heritage-deep); color: var(--footer-text); padding-top: 64px; }
.layout-heritage .footer__grid--heritage { grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; }
.layout-heritage .footer--heritage .footer__logo { height: 54px; width: auto; margin-bottom: 20px; filter: brightness(0) invert(1); opacity: .92; }
.layout-heritage .footer--heritage h3 { font-size: 24px; margin-bottom: 14px; }
.layout-heritage .footer--heritage h4 { color: var(--band-accent); letter-spacing: .16em; }
.layout-heritage .footer--heritage .footer__link { opacity: .86; }
.layout-heritage .footer--heritage .footer__link:hover { color: var(--band-accent); }
.layout-heritage .footer--heritage .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.layout-heritage .footer--heritage .footer__bar { border-top-color: rgba(255, 255, 255, .16); }

/* ── Phones ──────────────────────────────────────────── */
@media (max-width: 820px) {
    .layout-heritage .hbar__inner { justify-content: space-between; min-height: 34px; }
    .layout-heritage .hbar__note { display: none; }
    .layout-heritage .hbar__contact a:nth-child(2) { display: none; }
    .layout-heritage .nav__inner { min-height: 72px; }
    .layout-heritage .nav__logo { height: 48px; }
    .layout-heritage .nav__link { color: #fff; }
    .layout-heritage .footer__grid--heritage { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 420px) {
    .layout-heritage .hbar__lang a, .layout-heritage .hbar__cur a { padding: 4px 9px; }
}

@media (prefers-reduced-motion: reduce) {
    .layout-heritage .card, .layout-heritage .link-card { transition: none; }
    .layout-heritage .card:hover, .layout-heritage .link-card:hover { transform: none; }
}
