/* Serrato Law APC — site styles */
:root {
  --ink: #16213a;
  --ink-2: #22304f;
  --paper: #f4f5f2;
  --paper-2: #e9ebe6;
  --text: #28303d;
  --muted: #5e6675;
  --line: #cfd3cc;
  --red: #8e1b2b;
  --red-2: #a4303f;
  --white: #ffffff;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --max: 1160px;
  --gutter: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  font-feature-settings: "liga", "kern";
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1.1em; max-width: 68ch; }
ul, ol { padding-left: 1.3em; max-width: 68ch; }
li { margin-bottom: 0.4em; }
strong { font-weight: 600; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}
.brand { text-decoration: none; color: var(--ink); display: flex; align-items: baseline; gap: 10px; }
.brand .name { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; letter-spacing: -0.01em; }
.brand .apc { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); letter-spacing: 0.02em; }
.nav { display: flex; align-items: center; gap: 26px; font-family: var(--sans); font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--text); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }
.nav .call { color: var(--white); background: var(--ink); padding: 10px 16px; border-radius: 3px; border: 0; font-weight: 600; }
.nav .call:hover { background: var(--red); color: var(--white); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 3px; padding: 8px 10px; font-family: var(--sans); font-size: 0.9rem; color: var(--ink); cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--red); }
  .nav .call { margin-top: 12px; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: 14px 22px; border-radius: 3px; text-decoration: none; border: 1px solid transparent;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-2); color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-light { border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--ink); }

/* Hero */
.hero { background: var(--ink); color: var(--white); }
.hero .grid { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 580px; }
.hero .copy { padding: 72px 48px 72px 0; align-self: center; }
.hero h1 { color: var(--white); margin-bottom: 0.6em; }
.hero .lede { font-size: 1.2rem; color: #d9dce6; max-width: 46ch; margin-bottom: 1.6em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .phone { font-family: var(--sans); font-size: 1.05rem; color: #d9dce6; text-decoration: none; }
.hero .phone strong { color: var(--white); }
.hero .photo { position: relative; min-height: 420px; }
.hero .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.hero .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, rgba(22,33,58,0) 22%); }
@media (max-width: 860px) {
  .hero .grid { grid-template-columns: 1fr; }
  .hero .copy { padding: 44px 0 36px; order: 2; }
  .hero .photo { min-height: 320px; order: 1; }
  .hero .photo::after { background: linear-gradient(0deg, var(--ink) 0%, rgba(22,33,58,0) 30%); }
}

/* Page banner (interior pages) */
.banner { background: var(--ink); color: var(--white); padding: 56px 0 48px; }
.banner h1 { color: var(--white); max-width: 18ch; }
.banner p { color: #d9dce6; font-size: 1.15rem; }
.banner .crumbs { font-family: var(--sans); font-size: 0.85rem; color: #a9b0c4; margin-bottom: 18px; }
.banner .crumbs a { color: #d9dce6; text-decoration: none; }
.banner.with-photo .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.banner.with-photo img { border-radius: 3px; width: 100%; max-height: 360px; object-fit: cover; object-position: 50% 0%; }
@media (max-width: 860px) { .banner.with-photo .wrap { grid-template-columns: 1fr; } .banner.with-photo img { max-height: 280px; } }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--paper-2); }
.section .intro { max-width: 60ch; margin-bottom: 40px; }
.section .intro p { font-size: 1.15rem; color: var(--muted); }
@media (max-width: 860px) { .section { padding: 52px 0; } }

/* Practice areas: ruled columns, not cards */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.area { border-top: 3px solid var(--ink); padding-top: 18px; }
.area h3 { margin-bottom: 0.4em; }
.area h3 a { text-decoration: none; }
.area p { color: var(--muted); font-size: 1rem; }
.area ul { font-family: var(--sans); font-size: 0.95rem; padding-left: 1.1em; color: var(--text); }
.area .more { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; text-decoration: none; }
@media (max-width: 860px) { .areas { grid-template-columns: 1fr; gap: 28px; } }

/* Two-column with photo */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.split img { border-radius: 3px; width: 100%; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split.reverse { grid-template-columns: 1fr; gap: 28px; } .split.reverse > :first-child { order: 0; } }

/* Process (true sequence) */
.steps { counter-reset: step; list-style: none; padding: 0; max-width: 72ch; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); margin: 0; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--red); }
.steps h4 { margin: 2px 0 6px; }
.steps p { margin-bottom: 0; color: var(--text); }

/* Definition-style lists for practice sub-areas */
.topics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 48px; }
.topics div { border-top: 1px solid var(--line); padding-top: 14px; }
.topics h4 { margin-bottom: 6px; }
.topics p { margin: 0; font-size: 1rem; color: var(--muted); }
@media (max-width: 700px) { .topics { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 14px 0; max-width: 72ch; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--sans); font-weight: 600; font-size: 1.02rem; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; }

/* Contact band */
.band { background: var(--red); color: var(--white); padding: 56px 0; }
.band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.band h2 { color: var(--white); margin: 0; }
.band p { color: #f6dde0; margin: 6px 0 0; font-size: 1.05rem; }
.band .btn { background: var(--white); color: var(--red); border-color: var(--white); }
.band .btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-grid .details { font-family: var(--sans); font-size: 1.02rem; }
.contact-grid .details h3 { font-family: var(--serif); }
.contact-grid .details .big { font-family: var(--serif); font-size: 2rem; text-decoration: none; display: inline-block; margin: 4px 0 18px; }
.contact-grid address { font-style: normal; line-height: 1.5; margin-bottom: 18px; }
.map { border: 0; width: 100%; height: 100%; min-height: 380px; border-radius: 3px; filter: grayscale(0.2); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .map { min-height: 300px; } }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.post { border-top: 3px solid var(--line); padding-top: 16px; }
.post .meta { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.post h3 { font-size: 1.3rem; }
.post h3 a { text-decoration: none; }
.post p { font-size: 1rem; color: var(--muted); }
@media (max-width: 860px) { .posts { grid-template-columns: 1fr; } }

.article { max-width: 70ch; }
.article .meta { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); margin-bottom: 28px; }
.article h2 { font-size: 1.7rem; margin-top: 1.6em; }
.article h3 { margin-top: 1.4em; }
.article .note { border-left: 3px solid var(--red); padding: 10px 18px; background: var(--paper-2); font-size: 1rem; margin: 1.5em 0; }
.article .note p { margin: 0; }
.article-cta { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 28px; }

/* About */
.bio-grid { display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: start; }
.bio-grid img { border-radius: 3px; width: 100%; }
.bio-grid .card-meta { font-family: var(--sans); font-size: 0.95rem; color: var(--muted); margin-top: 12px; }
@media (max-width: 860px) { .bio-grid { grid-template-columns: 1fr; gap: 28px; } .bio-grid img { max-width: 360px; } }

/* Footer */
.site-footer { background: var(--ink); color: #c9cedb; padding: 56px 0 28px; font-family: var(--sans); font-size: 0.95rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: var(--white); margin-bottom: 10px; }
.site-footer a { color: #e4e7ef; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer address { font-style: normal; line-height: 1.6; }
.site-footer .firm { font-family: var(--serif); font-size: 1.5rem; color: var(--white); margin-bottom: 8px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 40px; padding-top: 20px; font-size: 0.82rem; color: #9ca4b8; line-height: 1.55; }
.site-footer .legal p { max-width: none; margin-bottom: 8px; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr; gap: 28px; } }

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

/* Podcast section (home) */
.show { background: var(--ink); color: var(--white); padding: 64px 0; }
.show .grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.show .photo img { border-radius: 3px; width: 100%; }
.show .kicker { font-family: var(--sans); font-size: 0.95rem; color: #e4a7ae; margin-bottom: 10px; }
.show h2 { color: var(--white); max-width: 22ch; }
.show p { color: #d9dce6; font-size: 1.1rem; }
.show .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 860px) { .show .grid { grid-template-columns: 1fr; gap: 28px; } }
