/* ==========================================================================
   Clients & Families (Dec 2026): the page. Sections, the cover, Client
   Support, the Start block and the guide cards. The guided flow (cover
   buttons, dialog, conclusion) is css/clients-guide.css; its option cards,
   steps and office card are css/case-help.css. Site tokens only; the cover's
   veil is the shared .hero-bg::after in styles.css.
   ========================================================================== */

/* ---------- Sections: white and tint, the same rhythm as Home ---------- */
.cl-rec { padding: 4.5rem 1.5rem; background: var(--bg-white); scroll-margin-top: var(--nav-h); }
.cl-rec--tint { background: var(--bg-light); }
.cl-rec-head { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin-bottom: 2.25rem; }
.cl-rec-head .section-title { margin: 0; }
/* The section's link to the page it summarizes: uppercase, with an arrow. */
.cl-more {
    display: inline-flex; align-items: center; gap: 0.375rem; min-height: var(--tap); margin-left: auto;
    font: 700 0.75rem 'Manrope', sans-serif; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--primary-text); text-decoration: none;
}
.cl-more svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease-out); }
.cl-more:hover svg { transform: translateX(3px); }
.cl-rec a:focus-visible, .cl-cover a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.cl-sub { margin: 0 0 0.5rem; font-family: 'Ubuntu', sans-serif; font-size: var(--h-sub); font-weight: 500; line-height: 1.3; color: var(--text-dark); }

/* ---------- Cover: Home's cover, shorter, words held to its foot ----------
   Kept still (main.js parallax would slide the photo over the sections). */
.hero.cl-cover { min-height: 68vh; min-height: 68svh; padding-left: 0; padding-right: 0; flex-direction: column; justify-content: flex-end; align-items: stretch; }
.cl-cover .hero-bg { overflow: hidden; transform: none !important; }
.cl-cover .hero-content { width: 100%; max-width: calc(1140px + 3rem); padding: 8rem 1.5rem 6.5rem; }   /* on the sections' left edge */
.cl-cover .hero-title { margin-bottom: 0; }
.cl-cover .hero-content a:focus-visible { outline-color: currentColor; }

/* ---------- Client Support: Home's ledge, in this page's flow ----------
   The markup and its rules are Home's (.home-cover-support in css/styles.css:
   the white ledge at 641px and up, the phone card below). On Home the ledge
   is pinned to the cover's foot; here it follows the cover as a block, on
   the sections' left edge. */
.cl-ledge.home-cover-support { position: static; margin: 0; opacity: 1; animation: none; }
@media (min-width: 641px) {
    .cl-ledge.home-cover-support { padding-left: max(1.5rem, calc((100% - 1140px) / 2)); border-bottom: 1px solid var(--border-light); }
}
@media (min-width: 1024px) {
    .cl-ledge.home-cover-support { padding-right: max(1.5rem, calc((100% - 1140px) / 2)); }
}
@media (max-width: 640px) {
    .cl-ledge.home-cover-support { padding: 2rem 1rem 0.75rem; background: var(--bg-light); }
    /* The number is a 44px target here; the margins keep Home's spacing around it. */
    .cl-ledge .home-cover-num { display: inline-flex; align-items: center; min-height: var(--tap); margin: 0.125rem 0 -0.25rem; }
}

/* ---------- Start: the right to a lawyer and the finder ---------- */
.cl-start .section-title { max-width: 34rem; margin: 0 0 1.75rem; }
.cl-find { position: relative; z-index: 3; max-width: 40rem; }
.cl-hint { max-width: 36rem; margin: 0.875rem 0 0 1.25rem; font-size: var(--t-meta); line-height: 1.55; color: var(--text-light); }
.cl-find > .btn { box-shadow: var(--shadow-btn); }

/* ---------- Guides: one group per reading series ---------- */
.cl-series { scroll-margin-top: calc(var(--nav-h) + 1.5rem); }
.cl-series + .cl-series { margin-top: 3.5rem; }
.cl-series-intro { max-width: 44rem; margin: 0 0 1.5rem; font-size: var(--t-sm); line-height: 1.6; color: var(--text-medium); }
.cl-sub + .cl-cards { margin-top: 1.25rem; }

/* The cards (js/clients.js): white on the tint, the site's soft shadow,
   a deeper shadow on hover; nothing lifts. */
.cl-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.cl-card { display: flex; }
.cl-card > a, .cl-card > div {
    display: flex; flex-direction: column; width: 100%; min-width: 0; overflow: hidden;
    border-radius: 16px; background: var(--bg-white); box-shadow: var(--shadow-sm);
    color: inherit; text-decoration: none; transition: box-shadow 0.45s var(--ease-out);
}
.cl-card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--border-light); }
.cl-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.cl-card-b { display: grid; gap: 0.5rem; align-content: start; padding: 1rem 1.25rem 1.25rem; }
.cl-card-k { font-size: var(--t-meta); font-weight: 600; color: var(--primary-text); }
.cl-card-k time, .cl-card-k .cl-card-when { font-weight: 500; color: var(--text-light); }
.cl-card-h { font-family: 'Ubuntu', sans-serif; font-size: 1.0625rem; font-weight: 500; line-height: 1.3; color: var(--text-dark); transition: color 0.3s var(--ease-out); }
.cl-card-x { font-size: var(--t-fine); line-height: 1.55; color: var(--text-medium); }
/* A part not published yet: named, not linked, a shade back. */
.cl-card--pending .cl-card-img { background: var(--bg-light); }
.cl-card--pending .cl-card-h { color: var(--text-medium); }
.cl-card > a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 16px; }
@media (hover: hover) {
    .cl-card > a:hover { box-shadow: var(--shadow-lg); }
    .cl-card > a:hover .cl-card-img img { transform: scale(1.04); }
    .cl-card > a:hover .cl-card-h { color: var(--primary-text); }
}
@media (prefers-reduced-motion: reduce) { .cl-card > a, .cl-card-img img, .cl-card-h, .cl-more svg { transition: none; } }

/* The lists as written in clients.html, shown as they are when the script
   doesn't run (moved from the page's inline <style>). */
.sf-series__list { list-style: none; margin: 0; padding: 0; max-width: 60rem; border-top: 1px solid var(--border-light); }
.sf-item { display: grid; grid-template-columns: 3.5rem 1fr auto; gap: 0 1.25rem; align-items: baseline; padding: 1.5rem 0; border-bottom: 1px solid var(--border-light); }
.sf-item__num { font-family: 'Ubuntu', sans-serif; font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; color: var(--primary); font-variant-numeric: tabular-nums; }
.sf-item__title { display: block; font-family: 'Ubuntu', sans-serif; font-size: 1.25rem; font-weight: 500; line-height: 1.3; color: var(--text-dark); text-decoration: none; text-wrap: balance; }
a.sf-item__title:hover, a.sf-item__title:focus-visible { color: var(--primary-text); text-decoration: underline; text-underline-offset: 3px; }
.sf-item__title--pending { color: var(--text-medium); }
.sf-item__desc { max-width: 58ch; margin: 0.375rem 0 0; font-size: var(--t-sm); line-height: 1.6; color: var(--text-light); }
.sf-item__meta { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; color: var(--text-light); }
.sf-item__meta--live { color: var(--primary-text); }
.sf-dot { display: inline-block; width: 0.375rem; height: 0.375rem; margin-right: 0.375rem; border-radius: 50%; background: var(--primary); vertical-align: middle; }

/* ---------- Motion: each part fades up once as it enters ----------
   Opt-in from js/clients.js (html.cl-motion), off for reduced motion, and
   nothing is hidden without the script. */
.cl-motion .cl-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.cl-motion .cl-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .cl-motion .cl-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Narrower ---------- */
@media (max-width: 1100px) {
    .cl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .cl-rec { padding: 3.25rem 1rem; }
    .cl-rec-head { margin-bottom: 1.75rem; }
    .cl-more { margin-left: 0; width: 100%; }
    .hero.cl-cover { min-height: 0; }
    .cl-cover .hero-content { padding: 7rem 1rem 5.5rem; }
    /* Guides as rows: the words, a small photo beside them, no summary (it is the article's opening). */
    .cl-cards { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
    .cl-card > a, .cl-card > div { display: grid; grid-template-columns: minmax(0, 1fr) 6rem; align-items: start; border-radius: 12px; }
    .cl-card-img { grid-column: 2; grid-row: 1; aspect-ratio: 1 / 1; margin: 0.875rem 0.875rem 0.875rem 0; border-radius: 8px; }
    .cl-card--pending > div { grid-template-columns: minmax(0, 1fr); }
    .cl-card--pending .cl-card-img { display: none; }
    .cl-card-b { grid-column: 1; grid-row: 1; gap: 0.375rem; padding: 0.875rem 1rem; }
    .cl-card-x { display: none; }
    .cl-card > a:focus-visible { border-radius: 12px; }
    .cl-hint { margin-left: 0.5rem; }
    .sf-item { grid-template-columns: 2.5rem 1fr; gap: 0 1rem; }
    .sf-item__meta { grid-column: 2; margin-top: 0.625rem; }
}
