/* Law Offices of Michael A. Sheets — shared stylesheet
   Colors and fonts carried over from the 2017 site (01template.css).
   Photos are stored untinted; all tints are applied here. */

:root {
  /* brand (from old site) */
  --page: #232323;
  --surface: #333333;
  --surface-2: #2b2b2b;
  --line: #4d4d4d;
  --text: #f4f4f4;
  --muted: #cccccc;
  --gold: #cc9933;
  --gold-light: #ddb25c;

  /* the old nav's section colors */
  --c-home: #339933;
  --c-about: #336699;
  --c-practice: #990000;
  --c-links: #cc9933;
  --c-disclaimer: #6a1f9a; /* the old #32004b, lifted so it shows on charcoal */
  --section: var(--c-home);

  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Lato", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1080px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 2px;
}

body.s-about { --section: var(--c-about); }
body.s-practice { --section: var(--c-practice); }
body.s-links { --section: var(--c-links); }
body.s-disclaimer { --section: var(--c-disclaimer); }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold-light); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; } /* jump-link targets get focus for screen readers; no box */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 0.5em;
  color: #fff;
}
h1 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.35rem); }
h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

[id] { scroll-margin-top: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: #111; padding: 8px 14px; z-index: 50;
}
.skip:focus { left: 8px; top: 8px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.35em;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 28px; height: 1px; background: var(--gold); vertical-align: middle; margin: -2px 12px 0 0;
}

/* gold rule under section headings */
.rule::after {
  content: ""; display: block; width: 48px; height: 2px; margin-top: 14px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

/* ---------- Header ---------- */
.site-header { background: var(--page); border-top: 3px solid var(--gold); border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 18px; padding-bottom: 18px;
}
.brand { text-decoration: none; color: #fff; display: block; line-height: 1.1; }
.brand:hover { color: #fff; }
.brand-tag {
  display: block; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.brand-name { display: block; font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2rem); margin-top: 4px; }

.header-call { text-align: right; line-height: 1.2; margin: 0; }
.header-call .brand-tag { margin-bottom: 4px; }
.header-call a {
  font-family: var(--font-display); font-size: 1.35rem; color: #fff; text-decoration: none; white-space: nowrap;
}
.header-call a:hover { color: var(--gold-light); }

.menu-toggle { display: none; }

/* ---------- Nav ---------- */
.site-nav { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-nav ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--wrap); display: flex; }
.site-nav a {
  display: block; padding: 13px 18px 11px; color: var(--muted); text-decoration: none;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  border-bottom: 3px solid transparent;
}
.site-nav li:first-child a { padding-left: 0; }
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current] { color: #fff; border-bottom-color: var(--gold); }

/* ---------- Hero (all pages): photo backdrop, tinted in CSS ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--page);
  border-bottom: 1px solid var(--line);
}
.hero .wrap { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero-copy { max-width: 640px; }
.hero-copy p { color: #ececec; }
.hero-copy p:last-child { margin-bottom: 0; }
.hero-bg {
  position: absolute; z-index: -2; top: 0; right: 0; height: 100%; width: 62%;
  object-fit: cover; object-position: 50% 40%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%);
  mask-image: linear-gradient(90deg, transparent, #000 35%);
}
.hero-home .hero-bg { object-position: 40% 55%; }
.hero::before {
  /* the tint: brand charcoal plus a wash of the page's section color */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--page) 38%, rgba(35, 35, 35, 0.86) 58%, rgba(35, 35, 35, 0.55) 100%),
    linear-gradient(0deg, color-mix(in srgb, var(--section) 26%, transparent), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--gold);
}
.hero:not(.hero-home) .wrap { min-height: 230px; display: flex; align-items: center; }
.hero-home .wrap { padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(48px, 8vw, 104px); }
.hero-home h1 { font-size: clamp(2rem, 1.5rem + 1.8vw, 2.75rem); }
.hero-home .hero-copy p { max-width: 62ch; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: rise 0.7s ease-out both; }
  .hero-bg { animation: settle 1.4s ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  @keyframes settle { from { opacity: 0; } to { opacity: 1; } }
}

.btn {
  display: inline-block; padding: 12px 22px; border: 1px solid var(--gold); text-decoration: none;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; border-radius: var(--radius);
  background: var(--gold); color: #1d1d1d; transition: background-color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--gold-light); border-color: var(--gold-light); color: #1d1d1d; }

/* ---------- Practice sub-navigation ---------- */
.subnav { background: var(--surface); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; padding-top: 10px; padding-bottom: 10px; }
.subnav p { margin: 0; font-size: 0.85rem; color: var(--muted); }
.subnav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.subnav a {
  display: block; padding: 7px 14px; border: 1px solid transparent; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 700;
}
.subnav a:hover { color: #fff; border-color: var(--line); }
.subnav a[aria-current] { color: #1d1d1d; background: var(--gold); border-color: var(--gold); }

/* ---------- Awards band (homepage): NTL award + Avvo's own badges ---------- */
.stats { background: var(--surface); border-bottom: 1px solid var(--line); }
.stats .wrap { padding-top: 32px; padding-bottom: 36px; }
.stats h2.eyebrow { margin-bottom: 16px; font-weight: 400; }
.awards {
  display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr));
  background: var(--surface-2); border: 1px solid var(--line);
}
.awards > * {
  display: flex; align-items: center; justify-content: center; min-height: 172px; padding: 20px 12px;
}
.awards > * + * { border-left: 1px solid var(--line); }
.award {
  flex-direction: column; gap: 8px; text-align: center; box-shadow: inset 0 3px 0 var(--gold);
  background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 10%, transparent), transparent 70%);
}
.award p { margin: 0; }
.award-org { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.award-name { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.05; color: var(--gold-light); }
.award-name span { display: block; font-size: 1.05rem; color: #fff; margin-top: 4px; }
.award-years { display: flex; gap: 6px; }
.award-years span {
  border: 1px solid var(--gold); border-radius: 999px; padding: 1px 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; color: var(--gold-light);
}
.avvo-slot { transition: background-color 0.2s; }
.avvo-slot:hover { background: var(--surface); }
.avvo-slot svg, .avvo-slot img, .avvo-slot iframe { display: block; max-width: 100%; }
.avvo-slot .avvo_content { max-width: 160px; font-size: 0.8rem; line-height: 1.4; } /* shown only if Avvo's script doesn't load */

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 80px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: var(--surface-2); }
.section-head { margin-bottom: 32px; }

.prose { max-width: 70ch; text-wrap: pretty; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.3em; }
.prose li::marker { color: var(--gold); }
.lead-quote {
  font-style: italic; color: #fff; font-size: 1.1rem;
  border-left: 3px solid var(--gold); padding: 4px 0 4px 18px; margin: 1.5em 0;
}

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.aside-box {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); padding: 24px 26px;
}
.aside-box h2 { font-size: 1.2rem; color: var(--gold-light); }
.aside-box p:last-child { margin-bottom: 0; }

/* homepage practice cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; z-index: 2;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.card:hover { border-color: #5c5c5c; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35); transform: translateY(-3px); }
.card:hover::before { transform: scaleX(1); }
.card-photo { position: relative; margin: 0; overflow: hidden; border-bottom: 1px solid var(--line); }
.card-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35, 35, 35, 0) 40%, rgba(35, 35, 35, 0.55));
}
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 12px; }

/* homepage: practice info without its own page (plain text, not a link card) */
.also {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px clamp(24px, 4vw, 48px);
  margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line);
}
.also h3 { margin: 0; }
.also p { color: #e0e0e0; font-size: 1rem; max-width: 70ch; }
.also p:last-child { margin-bottom: 0; }
.card p { color: #e0e0e0; font-size: 1rem; }
.more { margin-top: auto; font-weight: 700; font-size: 0.95rem; text-decoration: none; }
.more span { display: inline-block; transition: transform 0.2s; }
.more:hover span { transform: translateX(4px); }

/* family law services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; }
.services > div {
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--section); padding: 20px 22px;
}
.services dt { font-family: var(--font-display); font-size: 1.15rem; color: #fff; margin-bottom: 6px; }
.services dd { margin: 0; color: #e0e0e0; font-size: 1rem; }

/* criminal charge lists */
.charges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.charge-group { background: var(--surface); border: 1px solid var(--line); padding: 24px 26px; }
.charge-group h3 { margin-bottom: 8px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.chips li {
  border: 1px solid var(--line); background: var(--surface-2); padding: 5px 12px; border-radius: 999px; font-size: 0.92rem;
}

/* FAQ */
.faq-index { list-style: none; margin: 0 0 8px; padding: 0; counter-reset: q; }
.faq-index li { counter-increment: q; border-top: 1px solid var(--line); }
.faq-index a { display: flex; gap: 14px; padding: 12px 0; text-decoration: none; color: #fff; }
.faq-index a::before { content: counter(q, decimal-leading-zero); font-family: var(--font-display); color: var(--gold); min-width: 2ch; }
.faq-index a:hover { color: var(--gold-light); }
.faq-item { padding: 28px 0; border-top: 1px solid var(--line); }
.faq-item h3 { color: #fff; }
.faq-item p:last-child { margin-bottom: 0; }
.to-top { font-size: 0.85rem; }

/* about: profiles */
.profile { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); }
.profile + .profile { margin-top: clamp(40px, 6vw, 64px); padding-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); }
.profile-card { align-self: start; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--section); padding: 20px; }
.profile-card h2 { font-size: 1.35rem; margin-bottom: 4px; }
.profile-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.profile-card a { display: inline-block; margin-top: 12px; font-size: 0.95rem; }

/* links page */
.link-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.link-group { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--section); padding: 22px 24px; }
.link-group h2 { font-size: 1.25rem; }
.link-group ul { list-style: none; margin: 0; padding: 0; }
.link-group li { border-top: 1px solid var(--line); }
.link-group li:first-child { border-top: 0; }
.link-group a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; text-decoration: none; }
.link-group a::after { content: "\2197"; color: var(--muted); }
.link-group a:hover::after { color: var(--gold-light); }

/* office band (homepage) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }

@media (prefers-reduced-motion: reduce) {
  .card, .card::before, .more span, .btn, .avvo-slot { transition: none; }
  .card:hover { transform: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: #1c1c1c; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { padding-top: 40px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.site-footer h2 { font-size: 1.15rem; margin-bottom: 0.6em; }
.site-footer address { font-style: normal; }
.site-footer p { margin: 0 0 0.4em; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; font-size: 0.85rem;
}
.footer-base a { color: var(--muted); }
.footer-base a:hover { color: #fff; }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .awards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .award { grid-column: 1 / -1; min-height: 0; border-bottom: 1px solid var(--line); }
  .awards > :nth-child(2) { border-left: 0; }
  .link-groups { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* ---------- Phone ---------- */
@media (max-width: 680px) {
  body { font-size: 1rem; }
  .site-header .wrap { padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
  .brand-name { font-size: 1.35rem; }
  .header-call { order: 3; flex: 1 1 100%; text-align: left; display: flex; align-items: baseline; gap: 10px; }
  .header-call .brand-tag { margin: 0; }
  .header-call a { font-size: 1.15rem; }

  /* menu: open without JS; the script collapses it */
  .js .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px; background: transparent; color: #fff;
    border: 1px solid #999; border-radius: var(--radius);
    font: 700 0.78rem/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase;
    padding: 10px 12px; min-height: 44px; cursor: pointer;
  }
  .menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
    display: block; width: 16px; height: 2px; background: currentColor; position: relative; content: "";
  }
  .menu-toggle .bars::before { position: absolute; top: -5px; }
  .menu-toggle .bars::after { position: absolute; top: 5px; }
  .site-nav ul { flex-direction: column; padding: 0; }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav a, .site-nav li:first-child a {
    padding: 14px var(--gutter); border-bottom: 0; border-left: 3px solid transparent; min-height: 48px;
  }
  .site-nav a[aria-current] { border-left-color: var(--gold); background: var(--surface-2); }
  .js .site-nav:not(.is-open) { display: none; }

  .hero-bg { width: 100%; opacity: 0.55; -webkit-mask-image: none; mask-image: none; }
  .hero::before { background: linear-gradient(180deg, rgba(35, 35, 35, 0.75), var(--page) 85%), linear-gradient(0deg, color-mix(in srgb, var(--section) 26%, transparent), transparent 70%); }
  .cards { grid-template-columns: 1fr; }
  .also { grid-template-columns: 1fr; }
  .split, .services, .charges { grid-template-columns: 1fr; }
  .awards { grid-template-columns: 1fr 1fr; }
  .awards > :nth-child(4) { border-left: 0; }
  .awards > :nth-child(n+4) { border-top: 1px solid var(--line); }
  .awards > * { min-height: 150px; padding: 16px 8px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media print {
  .site-nav, .menu-toggle, .subnav, .hero-bg { display: none !important; }
  body { background: #fff; color: #000; }
}
