/* Law Offices of Steven Ibarra — site styles */
:root {
  --navy: #1f3c5a;        /* matches the logo */
  --navy-deep: #13253a;
  --ink: #1b2430;
  --muted: #3f4a59;
  --line: #dfe3e8;
  --wash: #f3f5f7;
  --accent: #2a6f75;
  --accent-dark: #1f5a60;
  --accent-wash: #dcebec;
  --serif: 'Manrope', 'Inter', ui-sans-serif, system-ui, sans-serif;  /* headings, matches CourtReady */
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 10px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: #ffffff; color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-underline-offset: 2px; }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 3px solid #b7791f; outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--navy-deep); line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-weight: 800; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding-top: 56px; padding-bottom: 72px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 10px 16px; background: #ffffff; }
.skip:focus { left: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 8px; font-weight: 600; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.btn--primary { background: var(--accent); color: #ffffff; }
.btn--primary:hover { background: var(--accent-dark); color: #ffffff; }
.btn--outline { border-color: var(--navy); color: var(--navy); background: #ffffff; }
.btn--outline:hover { background: var(--wash); color: var(--navy-deep); }
.btn--light { background: #ffffff; color: var(--navy-deep); font-weight: 700; }
.btn--light:hover { background: var(--accent-wash); color: var(--navy-deep); }
.btn--ghost-light { border-color: #ffffff; color: #ffffff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); color: #ffffff; }
.btn--block { display: flex; width: 100%; }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 17px; }

/* Utility bar + header */
.utility { background: var(--navy-deep); color: #e6ebf2; font-size: 14px; }
.utility__row { display: flex; flex-wrap: wrap; gap: 4px 24px; padding-top: 8px; padding-bottom: 8px; }
.utility__row span:first-child { font-weight: 700; color: #ffffff; }
.site-header { position: sticky; top: 0; z-index: 20; background: #ffffff; border-bottom: 1px solid var(--line); }
.site-header__row { display: flex; align-items: center; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { flex-shrink: 0; display: block; }
.brand img { display: block; height: 58px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-left: auto; font-weight: 500; font-size: 16px; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--accent-dark); }
.nav a[aria-current] { color: var(--navy-deep); font-weight: 700; border-bottom-color: var(--navy-deep); }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; width: 48px; height: 48px; border: 1px solid #c5ccd5; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--navy-deep); }
.menu summary::-webkit-details-marker { display: none; }
.menu__panel { position: absolute; right: 0; top: 56px; width: min(320px, calc(100vw - 32px)); background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(19,37,58,.16); padding: 8px; display: flex; flex-direction: column; }
.menu__panel a:not(.btn) { padding: 12px 14px; color: var(--ink); text-decoration: none; font-weight: 500; border-radius: 6px; }
.menu__panel a:not(.btn):hover, .menu__panel a[aria-current] { background: var(--wash); }
.menu__panel .btn { margin: 8px 6px 6px; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu { display: block; }
  .header-call { margin-left: auto; }
  .header-call + .menu { margin-left: 0; }
}
@media (max-width: 640px) {
  .brand img { height: 44px; }
  .header-call { display: none; }
  .menu { margin-left: auto !important; }
  .utility__row span:nth-child(2) { display: none; }
}

/* Page hero */
.page-hero { background: var(--wash); padding: 40px 0 48px; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); max-width: 880px; margin-top: 10px; }
.crumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #8a94a3; }
.eyebrow, .kicker { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-dark); margin-top: 18px; }
.kicker { display: block; margin: 0 0 4px; }
.pill { display: inline-block; margin-top: 18px; padding: 4px 12px; border-radius: 999px; background: var(--accent-wash); color: var(--accent-dark); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.lede { margin-top: 14px; max-width: 760px; font-size: 20px; color: var(--muted); }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 22px; font-size: 15px; color: var(--muted); line-height: 1.4; }
.byline img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.byline a { color: var(--navy-deep); text-decoration: none; }

/* Article + sidebar */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; padding-top: 48px; padding-bottom: 72px; }
@media (max-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.prose { max-width: 740px; font-size: 18px; line-height: 1.72; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: 30px; margin-top: 40px; }
.prose h3 { font-size: 22px; margin-top: 28px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose .callout { background: var(--wash); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 26px 30px; }
.prose .callout > * + * { margin-top: 12px; }
.prose .callout h2 { font-size: 25px; margin-top: 0; }
.prose blockquote { margin: 28px 0; padding-left: 24px; border-left: 4px solid var(--accent); font-family: var(--serif); font-size: 25px; line-height: 1.35; color: var(--navy-deep); }
.prose .sources { font-size: 14px; color: var(--muted); padding-top: 18px; border-top: 1px solid var(--line); }
.prose .sources li + li { margin-top: 4px; }
.fineprint { font-size: 14px; color: var(--muted); padding-top: 16px; border-top: 1px solid var(--line); margin-top: 32px !important; }

details.faq { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; background: #ffffff; }
.prose details.faq + details.faq { margin-top: 10px; }
details.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--navy-deep); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--accent-dark); }
details.faq[open] summary::after { content: "−"; }
details.faq > :not(summary) { padding-bottom: 16px; }
details.faq > * + :not(summary) { margin-top: 10px; }

.sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 110px; }
@media (max-width: 960px) { .sidebar { position: static; } }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: #ffffff; }
.consult { display: flex; flex-direction: column; gap: 12px; }
.consult__title, .related__title { font-size: 22px; }
.consult p { font-size: 15px; color: var(--muted); }
.related__title { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #4a5565; margin-bottom: 8px; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 16px; }
.related li:last-child a { border-bottom: 0; }
.related li a:hover { color: var(--accent-dark); }
.related li a[aria-current] { font-weight: 700; color: var(--navy-deep); }
.related--posts a { font-family: var(--serif); font-size: 18px !important; line-height: 1.3; }

/* CTA band */
.cta-band { background: var(--navy-deep); color: #e6ebf2; padding: 48px 0; }
.cta-band__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #ffffff; font-size: 30px; }
.cta-band p { margin-top: 8px; color: #c9d2de; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.site-footer { background: #0e1b2b; color: #c9d2de; font-size: 15px; padding: 56px 0 120px; }
.site-footer__grid { display: grid; grid-template-columns: 160px repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
.site-footer__logo { width: 140px; border-radius: 6px; background: #ffffff; }
.site-footer h2 { font-family: var(--sans); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #ffffff; margin-bottom: 12px; }
.site-footer p + p { margin-top: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 6px; }
.site-footer a { color: #e6ebf2; }
.site-footer__legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid #253548; font-size: 13px; color: #9aa6b6; }
@media (min-width: 761px) { .site-footer { padding-bottom: 56px; } }

/* Phone call bar */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #ffffff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(19,37,58,.08); }
  .callbar .btn { padding: 0 12px; }
  .cta-band { padding-bottom: 56px; }
}

/* Home */
.home-hero { background: var(--wash); padding: 56px 0 64px; }
.home-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
@media (max-width: 900px) { .home-hero__grid { grid-template-columns: 1fr; gap: 32px; } }
.home-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.08; margin-top: 12px; }
.home-hero .lede { font-size: 20px; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.home-hero__photo { position: relative; }
.home-hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: 14px; display: block; }
.home-hero__badge { position: absolute; left: -16px; bottom: 24px; background: #ffffff; border-radius: 10px; padding: 14px 18px; box-shadow: 0 10px 28px rgba(19,37,58,.16); font-size: 15px; line-height: 1.35; }
.home-hero__badge strong { display: block; color: var(--navy-deep); font-size: 16px; }
@media (max-width: 900px) { .home-hero__photo { max-width: 420px; } .home-hero__badge { left: 12px; } }
.checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5a60' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }

.band { padding: 72px 0; }
.band--wash { background: var(--wash); }
.band--navy { background: var(--navy-deep); color: #e6ebf2; }
.band--navy h2, .band--navy h3 { color: #ffffff; }
.band__head { max-width: 760px; margin-bottom: 36px; }
.band__head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.band__head p { margin-top: 12px; font-size: 18px; color: var(--muted); }
.band--navy .band__head p { color: #c9d2de; }

.area-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.area-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: #ffffff; }
.area-card h3 { font-size: 26px; }
.area-card h3 a { color: inherit; text-decoration: none; }
.area-card h3 a::after { content: " →"; color: var(--accent); }
.area-card p { color: var(--muted); }
.area-card ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.area-card li a { display: inline-block; padding: 5px 12px; border: 1px solid #c5ccd5; border-radius: 999px; font-size: 14px; color: var(--ink); text-decoration: none; }
.area-card li a:hover { border-color: var(--accent); color: var(--accent-dark); }
.area-card__fee { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--navy-deep) !important; }

.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.why-grid h3 { font-size: 22px; }
.why-grid p { margin-top: 8px; color: #c9d2de; }

.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.result { padding: 26px; border-radius: 14px; background: #ffffff; border: 1px solid var(--line); }
.result__amount { font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--navy-deep); line-height: 1; }
.result p { margin-top: 10px; color: var(--muted); }

.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.review { margin: 0; padding: 26px; border-radius: 14px; background: #ffffff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.review blockquote { margin: 0; font-size: 17px; }
.review figcaption { margin-top: auto; font-size: 15px; color: var(--muted); }
.review figcaption strong { color: var(--navy-deep); }
.stars { color: #b7791f; letter-spacing: 2px; font-size: 18px; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; max-width: 960px; }
.team-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 4px; }
.team-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: 12px; margin-bottom: 10px; background: var(--line); }
.team-card strong { font-family: var(--serif); font-size: 22px; color: var(--navy-deep); }
.team-card span { color: var(--muted); font-size: 15px; }
.team-card:hover strong { color: var(--accent-dark); }

.bio { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .bio { grid-template-columns: 1fr; } .bio__photo { max-width: 360px; } }
.bio__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: 14px; }
.facts { list-style: none; padding: 0; margin: 18px 0 0; font-size: 15px; }
.facts li { padding: 10px 0; border-top: 1px solid var(--line); }
.facts strong { display: block; color: var(--navy-deep); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid .card > * + * { margin-top: 12px; }
.contact-grid h2 { font-size: 26px; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 12px; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.post-card { padding: 28px; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 10px; }
.post-card h2 { font-size: 24px; line-height: 1.25; }
.post-card h2 a { color: inherit; text-decoration: none; }
.post-card h2 a:hover { color: var(--accent-dark); }
.post-card p { color: var(--muted); }
.post-card__meta { margin-top: auto; font-size: 14px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.steps li { counter-increment: step; padding-top: 16px; border-top: 3px solid var(--accent); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--accent-dark); }
.steps h3 { font-size: 20px; margin-top: 6px; }
.steps p { margin-top: 6px; color: var(--muted); }

/* Lead form (contact page) */
.lead-form { display: grid; gap: 14px; margin-top: 16px; }
.lead-form__row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; }
@media (max-width: 560px) { .lead-form__row { grid-template-columns: 1fr; } }
.lead-form label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; color: var(--navy-deep); }
.lead-form input, .lead-form select, .lead-form textarea { font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); padding: 11px 12px; border: 1px solid #c5ccd5; border-radius: 8px; background: #fff; width: 100%; }
.lead-form textarea { resize: vertical; }
.lead-form__hint { font-weight: 400; color: var(--muted); font-size: 14px; }
.lead-form__consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 13px !important; color: var(--muted) !important; line-height: 1.45; }
.lead-form__consent input { width: auto; margin-top: 3px; }
.lead-form__hp { position: absolute !important; left: -9999px; }
.lead-form__status { font-size: 15px; }
.lead-form__status.is-ok { color: #1f6b3a; }
.lead-form__status.is-error { color: #a32d2d; }

.consult__office { font-size: 15px; color: var(--muted); padding-top: 4px; border-top: 1px solid var(--line); }
.consult__office strong { color: var(--navy-deep); }

.site-footer__badge { display: block; width: 140px; margin-top: 16px; border-radius: 6px; background: #ffffff; padding: 8px; }
.site-footer__follow { margin-top: 24px; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 12px; display: block; }
.about-photo figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); line-height: 1.35; }
.about-photo figcaption strong { display: block; color: var(--navy-deep); font-family: var(--serif); font-size: 18px; }
.member-badge { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.member-badge img { width: 160px; height: auto; }
.member-badge p { font-size: 14px; color: var(--muted); }
