/* ============================================================
   Banking Concepts AG — shared stylesheet
   Loaded by all 14 pages (DE + EN) — one cacheable file.

   Mobile-first breakpoints (min-width):
     0–749px   → base   (no query needed, this is the default)
     750px+    → sm     (small tablets, e.g. iPad Mini portrait)
     900px+    → md     (tablets landscape, iPad Air portrait)
     1200px+   → lg     (laptops, MacBooks)
     1500px+   → xl     (desktops, large monitors)

   Content width: every full-bleed section gets side padding of
   --content-pad, which resolves to exactly min(92vw, 1600px) of
   centered content — fluid up to 1600px, then capped and centered
   on wider screens. No wrapper <div> needed; it's just padding.
   ============================================================ */

/* Self-hosted fonts (no external request, no GDPR exposure to a
   third-party font CDN). Both files are variable fonts — one
   @font-face per file covers its whole weight range. */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-latin-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/fonts/playfair-display-latin-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/playfair-display-italic-400-latin.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #042C53;
  --blue: #0C447C;
  --blue-mid: #185FA5;
  --blue-light: #D9EAFA;
  --blue-pale: #93BDE0;
  --green-light: #DDF0CC;
  --green-dark: #1E4008;
  --ink: #0F1923;
  --ink-mid: #3B4A58;
  --ink-soft: #4C5F70;   /* darkened from #6B7A8A for WCAG AA text contrast (was 3.8–4.3:1, now ≥5.7:1) */
  --ink-ghost: #576B7B;  /* darkened from #95A5B5 for WCAG AA text contrast (was 2.3–2.5:1, now ≥4.8:1) */
  --border: #C8D8E8;
  --border-soft: #DDEAF5;
  --bg: #F2F6FA;
  --bg-tinted: #E8EFF7;
  --bg-card: #FAFCFF;
  --stripe: #EBF2F9;

  /* Side padding that yields a centered, min(92vw, 1600px)-wide
     content column on every full-bleed section. */
  --content-pad: calc((100vw - min(92vw, 1600px)) / 2);
}

html { font-size: 18px; scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; font-weight: 400; color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

a { color: inherit; }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute; left: -999px; top: auto;
  background: var(--navy); color: #fff; padding: 10px 18px;
  z-index: 1000; border-radius: 0 0 4px 0; font-size: 15px;
}
.skip-link:focus { left: 0; top: 0; }

:focus-visible { outline: 2px solid var(--blue-mid); outline-offset: 2px; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--content-pad); height: 56px;
  background: rgba(242,246,250,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--border);
}
.nav-logo { display: inline-flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 18px; width: auto; display: block; }
.lang-choice .nav-logo img { height: 28px; }

.nav-links { display: none; list-style: none; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-soft); text-decoration: none; letter-spacing: 0.2px; transition: color 0.15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a.dim { /* font-size: 13px;  font-weight: 400; color: var(--ink-ghost); */}
.nav-links a.dim:hover { /* color: var(--ink-soft); */}

.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-cta { display: none; font-size: 13px; font-weight: 500; padding: 8px 20px; border: 0.5px solid var(--ink); border-radius: 40px; background: transparent; color: var(--ink); cursor: pointer; letter-spacing: 0.2px; transition: background 0.15s, color 0.15s; text-decoration: none; }
.nav-cta:hover { background: var(--ink); color: var(--bg); }
.lang-switch { display: flex; border: 0.5px solid var(--border); border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.lang-btn { font-size: 12px; font-weight: 500; padding: 5px 10px; background: transparent; border: none; cursor: pointer; color: var(--ink-ghost); letter-spacing: 0.5px; transition: background 0.15s, color 0.15s; text-decoration: none; }
.lang-btn[aria-current="true"] { background: var(--blue); color: #fff; }
.lang-btn:not([aria-current="true"]):hover { background: var(--stripe); color: var(--ink); }

.nav-burger { display: block; flex-shrink: 0; width: 32px; height: 32px; border: none; background: none; cursor: pointer; padding: 5px; }
.nav-burger span { display: block; width: 100%; height: 1.5px; background: var(--ink); margin: 6px 0; transition: transform 0.2s, opacity 0.2s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

nav.open .nav-links {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0;
  position: absolute; top: 56px; left: 0; right: 0; background: #fff;
  border-bottom: 0.5px solid var(--border); padding: 8px var(--content-pad) 16px;
  box-shadow: 0 4px 12px rgba(15,25,35,0.08);
}
nav.open .nav-links li { width: 100%; }
nav.open .nav-links a { display: block; padding: 12px 0; width: 100%; border-bottom: 0.5px solid var(--border-soft); }

/* ── SHARED ── */
.btn-primary { font-size: 15px; font-weight: 500; padding: 13px 26px; background: var(--blue); color: var(--blue-light); border: none; border-radius: 4px; cursor: pointer; letter-spacing: 0.2px; transition: background 0.15s; text-decoration: none; display: inline-block; }
.btn-primary:hover { background: var(--navy); }
.btn-primary.outline { background: transparent; border: 0.5px solid var(--blue-pale); color: var(--blue-mid); }
.btn-ghost { font-size: 15px; font-weight: 400; color: var(--ink-soft); background: none; border: none; cursor: pointer; transition: color 0.15s; text-decoration: none; display: inline-block; }
.btn-ghost:hover { color: var(--ink); }
.back-btn { font-size: 13px; color: var(--blue-mid); background: none; border: none; cursor: pointer; margin-bottom: 24px; display: inline-flex; align-items: center; gap: 6px; font-weight: 400; text-decoration: none; }
.back-btn:hover { color: var(--blue); }
.section-label { font-size: 12px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-ghost); }

footer { padding: 24px var(--content-pad); display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; border-top: 0.5px solid var(--border); flex-wrap: wrap; gap: 12px; }
.footer-left { font-size: 13px; color: var(--ink-ghost); font-weight: 300; }
.footer-right { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-right a { font-size: 13px; color: var(--ink-ghost); text-decoration: none; transition: color 0.15s; }
.footer-right a:hover { color: var(--ink-soft); }

.contact-strip { padding: 32px var(--content-pad); display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; background: var(--bg-tinted); border-top: 0.5px solid var(--border); gap: 20px; flex-wrap: wrap; }
.contact-strip h3 { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 400; color: var(--ink); margin-bottom: 6px; }
.contact-strip p { font-size: 15px; font-weight: 300; color: var(--ink-soft); }
.contact-strip-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── HOME HERO ── */
.hero { padding: 48px var(--content-pad) 36px; border-bottom: 0.5px solid var(--border); }
.hero-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 1.8px; text-transform: uppercase; color: var(--blue-mid); margin-bottom: 20px; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 31px; font-weight: 400; line-height: 1.18; letter-spacing: -0.4px; color: var(--ink); max-width: 640px; margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--blue-mid); }
.hero-sub { font-size: 17px; font-weight: 300; color: var(--ink-mid); max-width: 520px; line-height: 1.7; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 28px; margin-top: 40px; padding-top: 28px; border-top: 0.5px solid var(--border); flex-wrap: wrap; }
.fact-num { font-family: 'Playfair Display', serif; font-size: 27px; font-weight: 400; color: var(--ink); }
.fact-label { font-size: 13px; color: var(--ink-soft); margin-top: 3px; font-weight: 300; }

/* ── HOME FOCUS CARDS ── */
.focus { display: grid; grid-template-columns: 1fr; border-bottom: 0.5px solid var(--border); padding: 0 var(--content-pad); background: var(--bg-card);}
.focus-card { padding: 28px 0; position: relative; background: var(--bg-card); transition: background 0.15s; text-decoration: none; display: block; color: inherit; }
.focus-card:first-child { border-bottom: 0.5px solid var(--border); }
.focus-card:first-child:hover { margin-left: -48px; padding-left: 48px; }
.focus-card:hover { background: var(--stripe); }
.focus-pill { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: 1.8px; text-transform: uppercase; padding: 4px 12px; border-radius: 40px; margin-bottom: 20px; }
.pill-blue { background: var(--blue-light); color: var(--blue); }
.pill-green { background: var(--green-light); color: var(--green-dark); }
.focus-card h2 { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 400; line-height: 1.25; margin-bottom: 14px; color: var(--ink); }
.focus-card > p { font-size: 16px; font-weight: 300; color: var(--ink-mid); line-height: 1.7; margin-bottom: 24px; }
.focus-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.focus-list li { font-size: 15px; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; }
.focus-list li::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; flex-shrink: 0; }
.focus-card:first-child .focus-list li::before { background: var(--blue-mid); }
.focus-card:last-child .focus-list li::before { background: #3B6D11; }
.focus-card-more { margin-top: 24px; font-size: 13px; color: var(--blue-mid); font-weight: 400; display: block; }

/* ── SENIOR STRIP ── */
.senior-strip { padding: 36px var(--content-pad); background: var(--navy); display: flex; flex-direction: column; gap: 28px; align-items: flex-start; border-bottom: 0.5px solid var(--border); }
.senior-strip-left { flex: 1; min-width: 260px; }
.senior-strip h3 { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 400; color: #E6F1FB; margin-bottom: 12px; line-height: 1.3; }
.senior-strip p { font-size: 16px; font-weight: 300; color: #85B7EB; line-height: 1.7; max-width: 460px; }
.senior-pillars { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.pillar { padding: 14px 18px; border: 0.5px solid rgba(133,183,235,0.25); border-radius: 4px; }
.pillar-title { font-size: 13px; font-weight: 500; color: #E6F1FB; margin-bottom: 4px; }
.pillar-sub { font-size: 12px; font-weight: 300; color: #6AA0CC; line-height: 1.5; }

/* ── REF PREVIEW (home) ── */
.ref-preview { padding: 36px var(--content-pad); background: var(--stripe); border-bottom: 0.5px solid var(--border); }
.ref-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; flex-wrap: wrap; gap: 10px; }
.ref-more { font-size: 13px; color: var(--blue-mid); background: none; border: none; cursor: pointer; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.ref-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.ref-card { padding: 16px 18px; background: var(--bg-card); border: 0.5px solid var(--border); border-radius: 4px; transition: border-color 0.15s, box-shadow 0.15s; text-decoration: none; display: block; color: inherit; }
.ref-card:hover { border-color: var(--blue-mid); box-shadow: 0 2px 12px rgba(24,95,165,0.08); }
.ref-tag { font-size: 11px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-ghost); margin-bottom: 8px; }
.ref-title { font-size: 15px; font-weight: 400; color: var(--ink); line-height: 1.4; margin-bottom: 6px; }
.ref-sub { font-size: 12px; font-weight: 300; color: var(--ink-soft); line-height: 1.5; }

/* ── SUBPAGE HERO ── */
.sub-hero, .ref-page-hero { padding: 36px var(--content-pad) 32px; border-bottom: 0.5px solid var(--border); background: var(--bg-card); }
.sub-hero h1, .ref-page-hero h1 { font-family: 'Playfair Display', serif; font-size: 27px; font-weight: 400; line-height: 1.2; letter-spacing: -0.2px; color: var(--ink); margin-bottom: 14px; }
.sub-hero h1 em { font-style: italic; color: var(--blue-mid); }
.sub-hero p, .ref-page-hero p { font-size: 16px; font-weight: 300; color: var(--ink-mid); max-width: 580px; line-height: 1.7; }
.sub-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--blue-mid); margin-bottom: 14px; }
.ref-note { margin-top: 10px; font-size: 13px; color: var(--ink-ghost); font-style: italic; }

/* ── CONTENT SECTIONS ── */
.content-section { padding: 32px var(--content-pad); border-bottom: 0.5px solid var(--border); }
.content-section.tinted { background: var(--stripe); }
.content-section.card { background: var(--bg-card); }

.two-col { display: grid; grid-template-columns: 1fr; gap: 28px; }
.three-col { display: grid; grid-template-columns: 1fr; gap: 20px; }
.four-col { display: grid; grid-template-columns: 1fr; gap: 16px; }

.content-section h2 { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 400; color: var(--ink); margin-bottom: 16px; line-height: 1.3; }
.content-section h3 { font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: 10px; }
.content-section p { font-size: 16px; font-weight: 300; color: var(--ink-mid); line-height: 1.7; }
.content-section ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.content-section ul li { font-size: 15px; color: var(--ink-soft); display: flex; gap: 10px; align-items: flex-start; }
.content-section ul li::before { content: '—'; color: var(--ink-ghost); flex-shrink: 0; margin-top: 1px; font-size: 13px; }

.service-card { padding: 22px; background: var(--bg-card); border: 0.5px solid var(--border); border-radius: 4px; }
.service-card.green { border-top: 2px solid #3B6D11; }
.service-card.blue { border-top: 2px solid var(--blue-mid); }
.service-card h3 { font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: 10px; }
.service-card p { font-size: 15px; font-weight: 300; color: var(--ink-soft); line-height: 1.65; }

.divider-label { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.divider-label .section-label { white-space: nowrap; }
.divider-label::after { content: ''; flex: 1; height: 0.5px; background: var(--border); }

/* ── ABOUT ── */
.profile-grid { display: grid; grid-template-columns: 1fr; gap: 2px; margin-top: 2px; }
.profile-card { padding: 28px var(--content-pad); background: var(--bg-card); border-bottom: 0.5px solid var(--border); }
.profile-name { font-family: 'Playfair Display', serif; font-size: 21px; font-weight: 400; color: var(--ink); margin-bottom: 4px; }
.profile-role { font-size: 12px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue-mid); margin-bottom: 14px; }
.profile-bio { font-size: 15px; font-weight: 300; color: var(--ink-mid); line-height: 1.7; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.profile-tag { font-size: 12px; font-weight: 400; padding: 3px 10px; border-radius: 40px; background: var(--stripe); color: var(--ink-soft); border: 0.5px solid var(--border); }

.values-grid { display: grid; grid-template-columns: 1fr; gap: 2px; margin-top: 2px; }
.value-card { padding: 24px var(--content-pad); background: var(--bg-card); border-bottom: 0.5px solid var(--border); }
.value-card:last-child { border-bottom: none; }
.value-num { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 400; color: var(--blue-mid); margin-bottom: 10px; }
.value-title { font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.value-text { font-size: 13px; font-weight: 300; color: var(--ink-soft); line-height: 1.65; }

/* ── REFERENCES ── */
.ref-filters { display: flex; border-bottom: 0.5px solid var(--border); padding: 0 var(--content-pad); background: var(--bg-card); overflow-x: auto; }
.filter-tab { font-size: 15px; font-weight: 400; padding: 14px 18px; border: none; background: none; color: var(--ink-soft); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -0.5px; transition: color 0.15s; white-space: nowrap; }
.filter-tab[aria-selected="true"] { color: var(--blue-mid); border-bottom-color: var(--blue-mid); font-weight: 500; }
.filter-tab:hover { color: var(--ink); }

.uc-section { padding: 0 var(--content-pad) 32px; background: var(--bg); }
.uc-section[hidden] { display: none; }
.uc-category { margin-top: 32px; }
.uc-category-title { font-size: 12px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-ghost); padding-bottom: 14px; border-bottom: 0.5px solid var(--border); }
.uc-item { border-bottom: 0.5px solid var(--border-soft); overflow: hidden; background: var(--bg-card); }
.uc-item-header { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: flex-start; padding: 18px 16px; cursor: pointer; transition: background 0.15s; gap: 16px; border: none; background: none; font: inherit; color: inherit; }
.uc-item-header:hover { background: var(--stripe); }
.uc-item-header:hover .uc-item-title { color: var(--blue-mid); }
.uc-item-left { flex: 1; }
.uc-item-title { font-size: 16px; font-weight: 400; color: var(--ink); line-height: 1.4; transition: color 0.15s; }
.uc-juris-text { font-size: 12px; font-weight: 300; color: var(--ink-ghost); margin-top: 3px; }
.uc-toggle { font-size: 20px; color: var(--ink-ghost); width: 24px; text-align: center; flex-shrink: 0; transition: transform 0.2s; margin-top: 2px; }
.uc-item.open .uc-toggle { transform: rotate(45deg); }
.uc-detail { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: var(--stripe); }
.uc-item.open .uc-detail { max-height: 900px; }
.uc-detail-inner { padding: 18px 16px 22px; display: grid; grid-template-columns: 1fr; gap: 18px; border-top: 0.5px solid var(--border-soft); }
.uc-detail-block h4 { font-size: 12px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-ghost); margin-bottom: 10px; }
.uc-detail-block p, .uc-detail-block ul { font-size: 15px; font-weight: 300; color: var(--ink-mid); line-height: 1.7; }
.uc-detail-block ul { list-style: none; }
.uc-detail-block ul li { padding: 3px 0 3px 14px; position: relative; }
.uc-detail-block ul li::before { content: '—'; position: absolute; left: 0; color: var(--ink-ghost); font-size: 12px; }
.uc-tag-row { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 16px 0; }
.uc-tag { font-size: 11px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; border-radius: 40px; }
.tag-reg { background: var(--blue-light); color: var(--blue); }
.tag-core { background: var(--green-light); color: var(--green-dark); }
.tag-scope { background: var(--bg-tinted); color: var(--ink-soft); border: 0.5px solid var(--border); }

/* No-JS fallback: with JS disabled, show every accordion item open and all filter sections visible */
.no-js .uc-detail { max-height: none; }
.no-js .uc-toggle { display: none; }
.no-js .uc-section[hidden] { display: block; }
.no-js .ref-filters { display: none; }

/* ── Language chooser (root fallback page) ── */
.lang-choice { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; padding: 40px; text-align: center; }
.lang-choice-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.lang-choice-links a { font-size: 17px; font-weight: 500; padding: 16px 36px; border: 0.5px solid var(--border); border-radius: 4px; text-decoration: none; color: var(--ink); background: var(--bg-card); transition: border-color .15s, color .15s; }
.lang-choice-links a:hover { border-color: var(--blue-mid); color: var(--blue-mid); }

/* ============================================================
   sm — 750px+ : small tablets
   ============================================================ */
@media (min-width: 750px) {
  .hero h1 { font-size: 38px; }
  .hero-sub { font-size: 18px; }
  .sub-hero h1, .ref-page-hero h1 { font-size: 34px; }
  .fact-num { font-size: 30px; }

  .two-col { grid-template-columns: 1fr 1fr; }
  .four-col { grid-template-columns: 1fr 1fr; }
  .ref-grid { grid-template-columns: 1fr 1fr; }
  .profile-grid { grid-template-columns: 1fr 1fr; }
  .profile-card:nth-child(odd) { border-right: 0.5px solid var(--border); }

  .contact-strip { flex-direction: row; align-items: center; }
  footer { flex-direction: row; align-items: center; }
}

/* ============================================================
   md — 900px+ : tablets landscape / iPad Air portrait
   ============================================================ */
@media (min-width: 900px) {
  .hero { padding-top: 64px; padding-bottom: 48px; }
  .hero h1 { font-size: 42px; }
  .hero-facts { gap: 40px; }

  .focus { grid-template-columns: 1fr 1fr; padding: 0; }
  .focus-card { padding: 44px var(--content-pad); }
  .focus-card:first-child { border-bottom: none; border-right: 0.5px solid var(--border); }
  .focus-card h2 { font-size: 23px; }

  .senior-strip { flex-direction: row; gap: 56px; padding-top: 44px; padding-bottom: 44px; align-items: flex-start; }
  .senior-pillars { flex: 0 0 500px; }

  .sub-hero, .ref-page-hero { padding-top: 52px; }
  .sub-hero h1, .ref-page-hero h1 { font-size: 34px; }

  .content-section { padding-top: 44px; padding-bottom: 44px; }
  .content-section h2 { font-size: 24px; }
  .three-col { grid-template-columns: repeat(3, 1fr); }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .value-card { border-right: 0.5px solid var(--border); border-bottom: none; }
  .value-card:last-child { border-right: none; }

  .ref-grid { grid-template-columns: repeat(3, 1fr); }
  .uc-detail-inner { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   lg — 1200px+ : laptops, MacBooks — full desktop nav kicks in
   ============================================================ */
@media (min-width: 1200px) {
  nav { height: 60px; }
  .nav-logo img { height: 21px; }
  .nav-links { display: flex; gap: 32px; align-items: center; }
  .nav-right { gap: 16px; }
  .nav-cta { display: inline-block; }
  .nav-burger { display: none; }

  .hero { padding: 88px var(--content-pad) 64px; }
  .hero-eyebrow { letter-spacing: 2.5px; margin-bottom: 24px; }
  .hero h1 { font-size: 52px; letter-spacing: -0.8px; margin-bottom: 28px; }
  .hero-sub { margin-bottom: 40px; }
  .hero-facts { gap: 48px; margin-top: 56px; padding-top: 36px; }
  .fact-num { font-size: 30px; }

  .focus-card { padding: 52px 48px; }
  .focus-card h2 { font-size: 24px; }
  .focus-card-more { margin-top: 28px; }

  .senior-strip { padding: 48px var(--content-pad); gap: 64px; }
  .senior-strip h3 { font-size: 26px; }

  .ref-preview { padding: 48px var(--content-pad); }
  .ref-header { margin-bottom: 28px; }

  .sub-hero, .ref-page-hero { padding: 64px var(--content-pad) 48px; }
  .sub-hero h1, .ref-page-hero h1 { font-size: 40px; letter-spacing: -0.4px; margin-bottom: 16px; }
  .sub-hero p, .ref-page-hero p { font-size: 15px; }
  .sub-eyebrow { margin-bottom: 16px; }

  .content-section { padding: 56px var(--content-pad); }
  .content-section h2 { font-size: 26px; margin-bottom: 20px; }
  .two-col { gap: 48px; }
  .four-col { gap: 20px; }
  .service-card { padding: 28px; }

  .profile-card { padding: 36px 40px; }
  .profile-card:nth-child(1), .profile-card:nth-child(2) { border-bottom: 0.5px solid var(--border); }
  .profile-name { font-size: 20px; }

  .value-card { padding: 32px 36px; }
  .value-num { font-size: 36px; }

  .ref-filters { padding: 0 var(--content-pad); }
  .filter-tab { padding: 16px 24px; }
  .uc-section { padding: 0 var(--content-pad) 48px; }
  .uc-category { margin-top: 48px; }
  .uc-item-header { padding: 20px 16px; }
  .uc-detail-inner { padding: 20px 16px 24px; gap: 24px; }

  footer { padding: 24px var(--content-pad); }
  .contact-strip { padding: 48px var(--content-pad); }
  .contact-strip h3 { font-size: 24px; }

  /* Safety net: if the menu was left open while resizing up past this
     breakpoint, drop the mobile dropdown positioning so it doesn't
     visually clash with the now-inline nav-links. */
  nav.open .nav-links { position: static; flex-direction: row; padding: 0; border-bottom: none; background: none; }
  nav.open .nav-links a { padding: 0; border-bottom: none; width: auto; }
}

/* ============================================================
   xl — 1500px+ : large desktops — a touch more breathing room
   ============================================================ */
@media (min-width: 1500px) {
  .hero h1 { font-size: 56px; }
  .focus {padding: 0 var(--content-pad) 0}
  .focus-card:first-child { padding-left: 0; }
  .focus-card h2 { font-size: 26px; }
  .senior-strip h3 { font-size: 28px; }
  .content-section h2 { font-size: 28px; }
}
