/* Shurtleff Law Firm components.
   Load after tokens.css. Build every page from these. Extend in site.css. Do not restyle them. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3, blockquote { text-wrap: balance; }
a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.on-dark :focus-visible, .on-red :focus-visible { outline-color: var(--white); }
.on-dark a:not(.btn), .on-red a:not(.btn) { color: var(--white); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999rem; top: 0; background: var(--white); color: var(--navy); padding: var(--s-3) var(--s-4); z-index: 100; }
.skip-link:focus { left: var(--s-2); top: var(--s-2); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: var(--white); }
.section__head { max-width: 46rem; margin-bottom: var(--s-12); }
.section__head p { margin-top: var(--s-4); }
.stack > * + * { margin-top: var(--s-4); }
.measure { max-width: 42rem; }

/* ---------- Type ---------- */
.display { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; line-height: 0.92; letter-spacing: 0; }
h1 .display, h1 .h1-long { display: block; }
.display--hero { font-size: var(--fs-display-hero); line-height: 0.86; white-space: nowrap; }
.display--1 { font-size: var(--fs-display-1); }
.display--2 { font-size: var(--fs-display-2); line-height: 0.96; }
.h1-long { font-weight: 800; font-size: var(--fs-h1-long); line-height: 1.08; letter-spacing: -0.02em; }
h2, .h2 { font-weight: 800; font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.02em; }
h3, .h3 { font-weight: 700; font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.01em; }
.lead { font-size: var(--fs-lead); font-weight: 500; line-height: 1.45; }
.fine { font-size: var(--fs-small); color: var(--slate); }
.on-dark .fine { color: var(--sky); }
.on-red .fine { color: var(--white); }
.accent { color: var(--red); } /* one use on the whole site: the word "elected." in the home hero */

/* The H1 kicker: carries the search phrase. Sentence case. It sits inside the h1. */
.kicker { display: block; margin-bottom: var(--s-4); font: 600 1rem/1.3 var(--font-text); letter-spacing: 0; text-transform: none; color: var(--red-action); }
.on-dark .kicker { color: var(--sky); }

/* The stripe: the only ornament. One short stripe marks list items. */
.stripe-mark { display: inline-block; width: 1.5rem; height: 0.625rem; background: var(--red); clip-path: polygon(37.5% 0, 100% 0, 62.5% 100%, 0 100%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0.875rem 1.75rem;
  font: 700 1rem/1 var(--font-text); letter-spacing: 0.01em; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--primary { background: var(--red-action); color: var(--white); }
.btn--primary:hover { background: var(--red-hover); color: var(--white); }
.btn--secondary { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--secondary:hover { background: var(--navy); color: var(--white); }
.on-dark .btn--secondary { border-color: var(--white); color: var(--white); }
.on-dark .btn--secondary:hover { background: var(--white); color: var(--navy); }
.on-red .btn--primary { background: var(--white); color: var(--navy); }
.on-red .btn--primary:hover { background: var(--navy); color: var(--white); }
.on-red .btn--secondary { border-color: var(--white); color: var(--white); }
.on-red .btn--secondary:hover { background: var(--white); color: var(--red-action); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.btn-note { margin-top: var(--s-3); font-size: var(--fs-small); font-weight: 600; }

/* ---------- Utility bar and header ---------- */
.utility { background: var(--navy); color: var(--white); font-size: var(--fs-fine); }
.utility .container { display: flex; justify-content: flex-end; gap: var(--s-6); padding-block: var(--s-2); }
.utility__place { display: none; margin-right: auto; color: var(--sky); }
.utility a { color: var(--white); font-weight: 700; text-decoration: none; }
.utility a:hover { text-decoration: underline; }
@media (min-width: 48rem) { .utility__place { display: block; } }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: var(--s-6); min-height: 4rem; }
.site-header__logo { margin-right: auto; }
.site-header__logo img { height: 2.25rem; width: auto; }
.nav { display: none; }
.nav a { padding-block: var(--s-2); font: 600 0.9375rem/1 var(--font-text); color: var(--navy); text-decoration: none; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--red); }
.site-header .btn { display: none; min-height: 2.75rem; padding: 0.625rem 1.25rem; }
.menu-btn { padding: 0.625rem 0.875rem; font: 700 0.9375rem/1 var(--font-text); color: var(--navy); background: none; border: 2px solid var(--navy); cursor: pointer; }
@media (min-width: 64rem) {
  .site-header .container { min-height: 4.75rem; }
  .site-header__logo img { height: 2.75rem; }
  .nav { display: flex; gap: var(--s-8); }
  .site-header .btn { display: inline-flex; }
  .menu-btn { display: none; }
}

/* Phones: Call and Talk to Mark, fixed to the bottom. */
.sticky-cta { position: fixed; inset: auto 0 0 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; padding-bottom: env(safe-area-inset-bottom); background: var(--navy); }
.sticky-cta a { display: flex; align-items: center; justify-content: center; min-height: 3.5rem; font: 700 1rem/1 var(--font-text); color: var(--white); text-decoration: none; }
.sticky-cta a:last-child { background: var(--red-action); }
body.has-sticky-cta { padding-bottom: 3.5rem; }
@media (min-width: 64rem) { .sticky-cta { display: none; } body.has-sticky-cta { padding-bottom: 0; } }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.hero__inner { position: relative; z-index: 3; padding-block: clamp(2.5rem, 4.5vw, 4rem) 9.5rem; }
@media (min-width: 64rem) { .hero__inner { padding-bottom: 4.5rem; } }
.hero__copy { max-width: 43rem; }
.hero__sub { display: block; margin-top: var(--s-3); font: 800 clamp(1.75rem, 3.6vw, 3.25rem)/1.05 var(--font-text); letter-spacing: -0.02em; text-transform: none; }
.hero__lead { margin-top: var(--s-6); }
.hero__body { margin-top: var(--s-3); max-width: 38rem; color: var(--sky); }
.hero .btn-row { margin-top: var(--s-8); }
.hero__cred { margin-top: var(--s-8); font-size: var(--fs-small); font-weight: 600; color: var(--sky); }

/* Photo slot. Optional. Its left edge is cut on the logo's diagonal. */
.hero__media { display: none; }
@media (min-width: 64rem) {
  .hero__media { display: block; position: absolute; inset: 0 0 0 auto; width: 44%; z-index: 1; background: var(--navy-2); }
  .hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
  .hero__media::before { content: ""; position: absolute; top: 0; bottom: 0; right: 100%; width: 50vw; background: var(--navy); transform-origin: 100% 100%; transform: skewX(calc(var(--diag) * -1)); z-index: 2; }
}

/* The three stripes, big, running off the right edge. The site's one entrance animation. */
.hero__stripes { position: absolute; z-index: 2; right: 0; bottom: clamp(1.5rem, 4vw, 3.5rem); width: clamp(13rem, 36vw, 34rem); overflow: visible; pointer-events: none; }
.hero__stripes polygon { fill: var(--red); }
.hero--photo .hero__stripes { width: clamp(11rem, 22vw, 20rem); } /* with a photo, the stripes shrink into its corner */
@media (prefers-reduced-motion: no-preference) {
  .hero__stripes polygon { transform: translateX(110%); animation: stripe-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
  .hero__stripes polygon:nth-child(1) { animation-delay: 0.1s; }
  .hero__stripes polygon:nth-child(2) { animation-delay: 0.22s; }
  .hero__stripes polygon:nth-child(3) { animation-delay: 0.34s; }
}
@keyframes stripe-in { to { transform: translateX(0); } }

/* ---------- Interior page hero ---------- */
.page-hero { background: var(--navy); color: var(--white); }
.page-hero .container { padding-block: clamp(3rem, 6vw, 5.5rem); }
.page-hero .h1-long { max-width: 26ch; }
.page-hero__body { margin-top: var(--s-6); max-width: 40rem; }
.page-hero .btn-row { margin-top: var(--s-8); }
.page-hero__byline { margin-top: var(--s-6); font-size: var(--fs-small); color: var(--sky); }
.breadcrumb { padding-block: var(--s-3); font-size: var(--fs-small); background: var(--mist); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--s-2); color: var(--slate); }

/* ---------- Credential band ---------- */
.cred { background: var(--navy-2); color: var(--white); }
.cred ul { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); margin: 0; padding: var(--s-8) 0; list-style: none; }
.cred li { max-width: 17ch; text-wrap: balance; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.25rem, 2.1vw, 1.75rem); line-height: 1.02; }
.cred li::before { content: ""; display: block; width: 1.5rem; height: 0.625rem; margin-bottom: var(--s-3); background: var(--red); clip-path: polygon(37.5% 0, 100% 0, 62.5% 100%, 0 100%); }
@media (min-width: 56rem) { .cred ul { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--s-12); } }

/* ---------- The three fights (home, practice index) ---------- */
.fights { border-top: var(--rule) solid var(--navy); }
.fight { display: grid; gap: var(--s-4) var(--s-12); padding-block: var(--s-8); border-bottom: var(--rule) solid var(--navy); }
.fight__links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); margin: var(--s-4) 0 0; padding: 0; list-style: none; font-weight: 600; }
@media (min-width: 56rem) { .fight { grid-template-columns: 1fr 1fr; padding-block: var(--s-12); } }

/* ---------- Three reasons, pull line ---------- */
.reasons { display: grid; gap: var(--s-8) var(--s-12); }
.reasons h3 { margin-bottom: var(--s-2); }
@media (min-width: 56rem) { .reasons { grid-template-columns: repeat(3, 1fr); } }
.pull { margin-top: var(--s-12); padding-left: var(--s-6); border-left: 0.5rem solid var(--red); font: 800 clamp(1.375rem, 2.4vw, 2rem)/1.2 var(--font-text); letter-spacing: -0.015em; max-width: 46rem; }

/* ---------- Record highlights ---------- */
.highlights { display: grid; gap: var(--s-8) var(--s-12); margin-top: var(--s-12); }
.highlights dt { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2rem, 3.2vw, 2.75rem); line-height: 1; white-space: nowrap; color: var(--red); }
.highlights dd { margin: var(--s-2) 0 0; color: var(--sky); }
@media (min-width: 56rem) { .highlights { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Ordered steps: only for real sequences ---------- */
.steps { display: grid; gap: var(--s-8); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding-top: var(--s-4); border-top: var(--rule) solid var(--navy); }
.steps li::before { content: counter(step); display: block; margin-bottom: var(--s-2); font-family: var(--font-display); font-weight: 900; font-size: 3.5rem; line-height: 1; color: var(--red-action); }
.steps strong { display: block; font-size: var(--fs-h3); line-height: 1.25; margin-bottom: var(--s-1); }
@media (min-width: 40rem) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 72rem) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- What I handle ---------- */
.handles { display: grid; gap: var(--s-3) var(--s-12); margin: 0; padding: 0; list-style: none; }
.handles li { position: relative; padding-left: 2.5rem; }
.handles li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 1.5rem; height: 0.625rem; background: var(--red); clip-path: polygon(37.5% 0, 100% 0, 62.5% 100%, 0 100%); }
@media (min-width: 48rem) { .handles { grid-template-columns: 1fr 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: var(--rule) solid var(--navy); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-6); padding: var(--s-6) 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); }
.faq summary::after { content: "+"; flex: none; font: 800 1.75rem/0.8 var(--font-text); color: var(--red-action); transition: transform 0.15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a { max-width: 44rem; padding-bottom: var(--s-6); }

/* ---------- Quote band ---------- */
.quote { display: grid; gap: var(--s-6); }
.quote img { width: 5rem; }
.quote blockquote { max-width: 26ch; font: 800 clamp(1.75rem, 3.6vw, 3.25rem)/1.1 var(--font-text); letter-spacing: -0.025em; }
.quote figcaption { font-weight: 600; }

/* ---------- Closing call to action: the one red block on a page ---------- */
.cta { background: var(--red-action); color: var(--white); }
.cta .container { padding-block: var(--section-y); }
.cta h2 { max-width: 22ch; }
.cta p { margin-top: var(--s-4); max-width: 36rem; }
.cta .btn-row { margin-top: var(--s-8); }

/* ---------- Forms ---------- */
.field { display: grid; gap: var(--s-2); }
.field + .field { margin-top: var(--s-6); }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 3.25rem; padding: var(--s-3) var(--s-4); font: inherit; color: var(--navy); background: var(--white); border: 1.5px solid var(--slate); border-radius: var(--radius); }
.field textarea { min-height: 9rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--navy); }
.field__help { font-size: var(--fs-small); color: var(--slate); }
.field__error { font-size: var(--fs-small); font-weight: 600; color: var(--red-action); }

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; inset: auto 0 0 0; z-index: 70; background: var(--white); border-top: var(--rule) solid var(--navy); }
.cookie .container { display: grid; gap: var(--s-4); padding-block: var(--s-6); }
.cookie h2 { font-size: var(--fs-h3); }
.cookie .btn { min-width: 9rem; }
@media (min-width: 56rem) { .cookie .container { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--white); }
.site-footer .container { padding-block: var(--s-16) var(--s-8); }
.site-footer__top { display: grid; gap: var(--s-8) var(--s-12); }
.site-footer__brand img { width: 15rem; }
.site-footer__brand p { margin-top: var(--s-6); color: var(--sky); }
.site-footer h2 { margin-bottom: var(--s-3); font-size: 1rem; letter-spacing: 0; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: var(--s-2); }
.site-footer__legal { margin-top: var(--s-12); padding-top: var(--s-6); border-top: 1px solid var(--navy-2); font-size: var(--fs-fine); color: var(--sky); }
.site-footer__legal p + p { margin-top: var(--s-2); }
@media (min-width: 56rem) { .site-footer__top { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* ---------- Review mode (see build/requirements.md) ---------- */
.review-flag { display: none; }
html.review .review-flag { display: inline-block; margin-left: var(--s-1); padding: 0.1875rem 0.375rem; font: 700 0.6875rem/1 var(--font-text); color: var(--navy); background: var(--review); vertical-align: middle; cursor: help; }
.fill { padding: 0 var(--s-1); font-weight: 700; color: var(--navy); background: var(--review); }
html.review [data-placeholder]::after { content: "Placeholder: rights not cleared"; position: absolute; left: 0; top: 0; padding: var(--s-1) var(--s-2); font: 700 0.6875rem/1 var(--font-text); color: var(--navy); background: var(--review); }
