/* Ibarra Thackeray — elder law, Tucson
   Built for readers in their seventies and for adult children on a phone in a hospital corridor:
   white page, near-black text, one deep green, large sans type, big targets. */

:root {
  --white: #fff;
  --ink: #101816;
  --ink-2: #47524e;
  --green: #17523d;
  --green-d: #0f3c2c;
  --tint: #edf3ef;
  --line: #d5dcd8;
  --warn: #fff4d6;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1240px;
  --gut: clamp(18px, 4vw, 44px);
  --r: 12px;
}
*, *::before, *::after { 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(--white); color: var(--ink); font: 400 1.125rem/1.6 var(--font); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.08; letter-spacing: -.022em; color: var(--ink); }
h1 em, h2 em { font-style: normal; color: var(--green); }
h3 { letter-spacing: -.005em; line-height: 1.3; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .45em; }
figure { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 60; }
.skip:focus { left: 0; }
.kicker { font-weight: 600; font-size: .95rem; color: var(--green); margin: 0 0 .9rem; }

/* ---------- Header ---------- */
.util { background: var(--ink); color: #cfd8d4; font-size: .92rem; }
.util-in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: .55rem; padding-bottom: .55rem; }
.util a { color: #fff; text-decoration: none; }
.util .u-right { display: flex; gap: 1.6rem; align-items: center; }
.util .u-tel { font-weight: 700; font-size: 1.05rem; }
.head { border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 1.5rem; padding-top: 1rem; padding-bottom: 1rem; }
.brand { text-decoration: none; margin-right: auto; flex-shrink: 0; }
.b-name { font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em; line-height: 1; display: block; color: var(--ink); }
.b-sub { font-size: .85rem; color: var(--ink-2); display: block; margin-top: .25rem; }
.nav { display: flex; align-items: center; gap: clamp(.9rem, 1.6vw, 1.6rem); font-size: 1rem; font-weight: 500; }
.nav a { text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--green); color: var(--ink); }
.pill, .nav a.pill { display: inline-block; background: var(--green); color: #fff; font: 600 1.02rem/1.2 var(--font); text-decoration: none; padding: .85rem 1.3rem; border-radius: var(--r); border: 2px solid var(--green); cursor: pointer; transition: background .15s; }
.pill:hover, .nav a.pill:hover { background: var(--green-d); border-color: var(--green-d); color: #fff; }
.pill.big { padding: 1.05rem 1.6rem; font-size: 1.1rem; }
.pill.ghost { background: #fff; color: var(--ink); border-color: var(--ink); }
.pill.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.menu-btn { display: none; }
.arrow { font-weight: 600; color: var(--green); text-decoration: underline; }
.arrow::after { content: " →"; }
button.arrow { background: none; border: 0; padding: 0; font: 600 1.05rem var(--font); cursor: pointer; }

/* ---------- Home hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-top: clamp(2.2rem, 5vw, 4.5rem); padding-bottom: clamp(2.2rem, 5vw, 4.5rem); }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.3rem); font-weight: 800; margin-bottom: 1.3rem; }
.lede { font-size: clamp(1.18rem, 1.5vw, 1.32rem); line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.hero-img img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r); }
.go { margin-top: 1.8rem; background: var(--tint); border-radius: var(--r); padding: 1.2rem; }
.go label { font-weight: 700; display: block; margin-bottom: .6rem; }
.go-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; }
.go select { width: 100%; font: 500 1.05rem/1.3 var(--font); color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: var(--r); padding: .85rem .9rem; }
.hero-call { margin: 1.1rem 0 0; font-size: 1.05rem; }
.hero-call a { font-weight: 700; }
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.strip li { margin: 0; padding: 1.2rem 1.5rem 1.2rem 0; font-weight: 600; }
.strip li + li { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.strip span { display: block; font-weight: 400; color: var(--ink-2); font-size: 1rem; }

/* ---------- Sections ---------- */
.sec { padding: clamp(3.2rem, 7vw, 6rem) 0; }
.sec.tint { background: var(--tint); }
.sec-head { max-width: 46rem; margin-bottom: clamp(1.6rem, 3vw, 2.5rem); }
.sec-head h2, .h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: .8rem; }
.sec-head p { color: var(--ink-2); margin: 0; }

/* Stages (accordion) */
.stages { border-top: 2px solid var(--ink); }
.stages details { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; background: none; }
.stages summary { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) 2rem; gap: 1rem; align-items: center; padding: 1.25rem 0; cursor: pointer; list-style: none; }
.stages summary::-webkit-details-marker { display: none; }
.stages summary::after { content: "+"; position: static; font-size: 1.9rem; font-weight: 400; line-height: 1; color: var(--green); text-align: right; }
.stages details[open] summary::after { content: "–"; }
.stages .num { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--tint); color: var(--green); font-weight: 700; display: grid; place-items: center; }
.stages details[open] .num { background: var(--green); color: #fff; }
.stages .st { font-weight: 700; font-size: clamp(1.2rem, 1.9vw, 1.5rem); letter-spacing: -.01em; line-height: 1.25; }
.stages .st small { display: block; font-weight: 400; font-size: 1.05rem; color: var(--ink-2); letter-spacing: 0; margin-top: .15rem; }
.stage { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(1.2rem, 4vw, 4rem); padding: .3rem 0 2rem 3.6rem; }
.stage ul { margin-bottom: 1.2rem; }
.stage dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem 1.2rem; align-content: start; background: var(--tint); border-radius: var(--r); padding: 1.2rem 1.3rem; font-size: 1.05rem; }
.stage dt { color: var(--ink-2); }
.stage dd { margin: 0; font-weight: 600; }

/* Split */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.split img { border-radius: var(--r); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.plain-list { list-style: none; padding: 0; margin: 1.6rem 0 0; }
.plain-list li { padding: 1rem 0; border-top: 1px solid var(--line); margin: 0; color: var(--ink-2); }
.plain-list strong { display: block; color: var(--ink); }

/* Prices */
.prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); margin-bottom: 2rem; }
.prices div { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.prices .amt { font-weight: 800; font-size: clamp(2.2rem, 3.6vw, 3.1rem); letter-spacing: -.03em; line-height: 1; display: block; }
.prices .for { font-weight: 700; display: block; margin: .8rem 0 .2rem; }
.prices p { color: var(--ink-2); margin: 0; font-size: 1.02rem; }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2rem); }
.team a { text-decoration: none; display: block; }
.team img { border-radius: var(--r); aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 20%; width: 100%; }
.team strong { font-size: 1.25rem; letter-spacing: -.01em; display: block; margin-top: .9rem; }
.team span { color: var(--ink-2); display: block; font-size: 1rem; line-height: 1.4; margin-top: .15rem; }

/* Place */
.place img { width: 100%; aspect-ratio: 20 / 7; object-fit: cover; }
.place-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 6vw, 5.5rem); padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.es { border-left: 3px solid var(--green); padding-left: 1.1rem; margin-top: 1.5rem; }
.es p { margin: 0; }

/* CTA + footer */
.cta { background: var(--green); color: #e4efe9; }
.cta-in { padding-top: clamp(2.8rem, 6vw, 4.5rem); padding-bottom: clamp(2.8rem, 6vw, 4.5rem); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.cta h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: .7rem; }
.cta h2 em { color: #fff; }
.cta p { margin: 0; max-width: 34em; }
.cta-act { display: flex; flex-direction: column; gap: .7rem; text-align: center; }
.cta .pill { background: #fff; color: var(--green-d); border-color: #fff; }
.cta .pill:hover { background: var(--tint); color: var(--green-d); }
.cta .pill.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.cta .pill.ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.foot { background: var(--ink); color: #b9c4c0; padding: clamp(3rem, 5vw, 4.5rem) 0 6rem; font-size: 1rem; line-height: 1.65; }
.foot .b-name { color: #fff; margin-bottom: 1rem; }
.foot a { color: #fff; text-decoration-color: rgba(255, 255, 255, .3); }
.foot ul { list-style: none; padding: 0; }
.f-h { font-weight: 700; color: #fff; margin-bottom: .7rem; }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1.2fr 1.1fr 1.3fr; gap: clamp(1.5rem, 4vw, 3.5rem); padding-bottom: 2.5rem; }
.legal { border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 1.5rem; font-size: .84rem; color: #92a09b; }
.legal strong { color: #d6dedb; }
.legal p { max-width: 80em; }
.dock { display: none; }

/* ---------- Inner pages ---------- */
.phead { border-bottom: 1px solid var(--line); }
.phead-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-top: clamp(2.2rem, 5vw, 4rem); padding-bottom: clamp(2.2rem, 5vw, 4rem); }
.phead.plain .phead-in { grid-template-columns: minmax(0, 1fr); }
.phead-text { max-width: 46rem; }
.phead h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); font-weight: 800; margin-bottom: 1.1rem; }
.phead .lede { margin-bottom: 0; }
.phead figure img { border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.phead .hero-act { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.facts { display: flex; flex-wrap: wrap; gap: .4rem 2rem; list-style: none; padding: 1.1rem 0 0; margin: 1.6rem 0 0; border-top: 1px solid var(--line); }
.facts li { margin: 0; color: var(--ink-2); }
.facts b { color: var(--ink); display: block; font-size: 1.15rem; }
.qa { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 5rem); padding: clamp(2.4rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.qa:last-of-type { border-bottom: 0; }
.qa > h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); position: sticky; top: 1.5rem; align-self: start; }
.qa > div > h3 { margin: 1.8rem 0 .5rem; }
.qa > div > h3:first-child { margin-top: 0; }
.qa > div > :last-child { margin-bottom: 0; }
.note { background: var(--tint); border-radius: var(--r); padding: 1.2rem 1.4rem; margin: 1.5rem 0; }
.note b { display: block; margin-bottom: .3rem; }
.note p:last-child { margin: 0; }
.note.warm { background: var(--warn); }
table { width: 100%; border-collapse: collapse; margin: 1.3rem 0; font-size: 1.05rem; }
caption { text-align: left; font-weight: 700; padding: 0 0 .7rem; }
th, td { text-align: left; vertical-align: top; padding: .95rem 1.2rem .95rem 0; border-bottom: 1px solid var(--line); }
thead th { font-size: .95rem; font-weight: 600; color: var(--ink-2); border-bottom: 2px solid var(--ink); }
tbody th { font-weight: 700; }
tbody th small { font-weight: 400; color: var(--ink-2); font-size: .98rem; }
td.fee, .fee { font-weight: 700; font-size: 1.2rem; white-space: nowrap; text-align: right; padding-right: 0; }
.walk { list-style: none; padding: 0; margin: 1.3rem 0; counter-reset: w; }
.walk li { counter-increment: w; position: relative; padding: 0 0 1.4rem 3.4rem; margin: 0; }
.walk li::before { content: counter(w); position: absolute; left: 0; top: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--tint); color: var(--green); font-weight: 700; display: grid; place-items: center; }
.walk strong { display: block; }
.walk small { display: block; font-size: .98rem; color: var(--ink-2); margin-top: .2rem; }
.checklist { list-style: none; padding: 0; margin: 1rem 0 1.5rem; border-top: 2px solid var(--ink); }
.checklist li { border-bottom: 1px solid var(--line); margin: 0; }
.checklist label { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr); gap: .8rem; padding: .9rem 0; cursor: pointer; }
.checklist input { width: 1.35rem; height: 1.35rem; margin: .15rem 0 0; accent-color: var(--green); }
.checklist small { display: block; color: var(--ink-2); font-size: .98rem; }
details { border-bottom: 1px solid var(--line); }
.qa details:first-of-type { border-top: 2px solid var(--ink); }
summary { cursor: pointer; padding: 1.1rem 2.6rem 1.1rem 0; font-weight: 600; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: .2rem; top: .7rem; font-size: 1.8rem; font-weight: 400; color: var(--green); }
details[open] summary::after { content: "–"; }
details > div { padding: 0 2.6rem 1.1rem 0; color: var(--ink-2); }
dl.gloss { margin: 0; border-top: 2px solid var(--ink); }
dl.gloss div { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 1.5rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
dl.gloss dt { font-weight: 700; }
dl.gloss dd { margin: 0; color: var(--ink-2); }
.linklist { list-style: none; padding: 0; border-top: 2px solid var(--ink); }
.linklist li { padding: .95rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.linklist a { font-weight: 600; }
.linklist small { display: block; color: var(--ink-2); font-size: 1rem; }
.fineprint { font-size: .98rem; color: var(--ink-2); }

/* Team page */
.person { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(1.5rem, 5vw, 5rem); padding: clamp(2.2rem, 4vw, 3.5rem) 0; border-bottom: 1px solid var(--line); align-items: start; scroll-margin-top: 1rem; }
.person:last-of-type { border-bottom: 0; }
.person img { border-radius: var(--r); aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 20%; width: 100%; }
.person h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.person .role { color: var(--green); font-weight: 600; margin: .35rem 0 1.1rem; }
.person dl { margin: 1.4rem 0 0; border-top: 1px solid var(--line); }
.person dl div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.person dt { color: var(--ink-2); }
.person dd { margin: 0; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 5.5rem); padding-top: clamp(2.4rem, 5vw, 4rem); padding-bottom: clamp(2.4rem, 5vw, 4rem); align-items: start; }
.field { margin-bottom: 1.3rem; }
.field label, .field legend { font-weight: 600; display: block; margin-bottom: .4rem; padding: 0; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field select, .field textarea { width: 100%; font: 400 1.1rem/1.4 var(--font); color: var(--ink); background: #fff; border: 2px solid #7d8a85; border-radius: var(--r); padding: .85rem .95rem; }
.field textarea { min-height: 7rem; resize: vertical; }
.field .hint { font-size: .98rem; color: var(--ink-2); margin: .4rem 0 0; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: #a12d1c; }
.field.check label { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr); gap: .7rem; font-weight: 400; font-size: 1rem; cursor: pointer; }
.field.check input { width: 1.35rem; height: 1.35rem; margin-top: .15rem; accent-color: var(--green); }
.field.check.bad label { color: #a12d1c; }
.hp { position: absolute; left: -9999px; }
.form-msg { color: #a12d1c; font-weight: 600; min-height: 1.5em; }
#form-done { background: var(--tint); border-radius: var(--r); padding: 2rem; }
#form-done h2 { font-size: 2.2rem; margin-bottom: .8rem; }
.info dl { margin: 0 0 1.8rem; border-top: 2px solid var(--ink); }
.info dl div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.info dt { color: var(--ink-2); }
.info dd { margin: 0; font-weight: 500; }
.info img { border-radius: var(--r); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .menu-btn { display: block; background: #fff; border: 2px solid var(--ink); border-radius: var(--r); padding: .65rem 1rem; font: 600 1rem var(--font); color: var(--ink); cursor: pointer; }
  .head-in { flex-wrap: wrap; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; font-size: 1.15rem; }
  .nav.open { display: flex; }
  .nav a { padding: .95rem 0; border-bottom: 1px solid var(--line); }
  .nav a.pill { margin-top: 1rem; text-align: center; }
}
@media (max-width: 900px) {
  .hero, .split, .place-in, .cta-in, .contact, .qa, .phead-in, .stage { grid-template-columns: minmax(0, 1fr); }
  .qa > h2 { position: static; }
  .team, .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .stage { padding-left: 0; }
  .place img { aspect-ratio: 16 / 9; }
}
@media (max-width: 760px) {
  body { font-size: 1.08rem; }
  .u-left { display: none; }
  .util-in { justify-content: flex-end; }
  .go-row { grid-template-columns: minmax(0, 1fr); }
  .strip ul { grid-template-columns: minmax(0, 1fr); }
  .strip li, .strip li + li { border-left: 0; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .strip li:last-child { border-bottom: 0; }
  .stages summary { grid-template-columns: 2.4rem minmax(0, 1fr) 1.5rem; gap: .8rem; }
  .person { grid-template-columns: minmax(0, 1fr); }
  .person figure { max-width: 11rem; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  dl.gloss div, .person dl div { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  table { font-size: .98rem; }
  th, td { padding: .8rem .7rem .8rem 0; }
  td.fee { white-space: normal; font-size: 1.08rem; }
  thead th { font-size: .82rem; }
  .phead .hero-act .pill { flex: 1 1 100%; text-align: center; }
  .dock { display: grid; grid-template-columns: 1fr 2fr; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding: .6rem var(--gut) calc(.6rem + env(safe-area-inset-bottom)); }
  .dock a { text-align: center; text-decoration: none; font-weight: 600; padding: .85rem .5rem; border-radius: var(--r); border: 2px solid var(--ink); color: var(--ink); font-size: 1.02rem; }
  .dock a.on { background: var(--green); border-color: var(--green); color: #fff; }
}
@media print {
  .util, .nav, .menu-btn, .cta, .foot, .dock, [data-print] { display: none !important; }
  body { font-size: 11pt; }
  .qa { display: block; }
}
