/* Alisca Law PLLC site styles (v5, Nov 2026). Clean, readable, one accent. */
:root {
    --ink: #0F1B2D;
    --body: #3C4859;
    --muted: #5A6575;
    --line: #E4E7EC;
    --tint: #F4F6F9;
    --blue: #2443A8;
    --blue-dark: #1A3285;
    --on-dark: #C7CEDA;
    --white: #ffffff;
    --wrap: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font-family: 'Barlow', system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--white); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
h1, h2, h3 { margin: 0; color: var(--ink); }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 56px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--blue); color: #fff; padding: 10px 14px; z-index: 2000; }
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

/* Type helpers */
.eyebrow { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; display: block; }
.h-cond { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.08; }
.h2 { font-weight: 600; font-size: 38px; line-height: 1.2; }
.lead { font-size: 19px; line-height: 1.65; color: var(--body); }
.body { color: var(--body); }
.muted { color: var(--muted); }
.stack > * + * { margin-top: 18px; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; text-decoration: none; border-radius: 999px; padding: 15px 28px; min-height: 48px; border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s; cursor: pointer; font-family: inherit; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--tint); color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; padding: 11px 24px; min-height: 44px; font-weight: 500; font-size: 15px; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.link-under { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; }

/* Bars */
.ad-bar { background: var(--ink); color: var(--on-dark); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; text-align: center; padding: 7px 16px; }
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 100; }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; height: 84px; gap: 24px; position: relative; }
.wordmark { text-decoration: none; font-size: 24px; font-weight: 300; letter-spacing: 0.38em; color: var(--ink); white-space: nowrap; }
.nav-links { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; }
.nav-links a:not(.btn) { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a.active { border-bottom-color: var(--blue); }
.nav-links .nav-mobile-cta { display: none; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Home hero */
.hero { padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.mono { font-weight: 800; font-size: 300px; line-height: 0.85; letter-spacing: -0.04em; text-align: center; background-image: url('../img/street-duotone-1200.webp'); background-size: cover; background-position: center 40%; -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.hero h1 { font-size: 44px; margin-bottom: 22px; }
.hero .lead { margin-bottom: 30px; max-width: 500px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }

/* Page header (inner pages) */
.page-head { padding: 88px 0 72px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 56px; margin-bottom: 18px; }
.page-head .lead { max-width: 640px; }

/* Photo band */
.band { background-image: linear-gradient(90deg, rgba(9,16,30,0.82) 0%, rgba(9,16,30,0.55) 50%, rgba(9,16,30,0.2) 100%), url('../img/nyc-bridge-1600.webp'); background-size: cover; background-position: center 45%; padding: 112px 0; }
.band h2 { font-weight: 300; font-size: 64px; line-height: 1.1; color: #fff; margin-bottom: 18px; max-width: 760px; }
.band p { font-size: 20px; line-height: 1.6; color: #D6DCE6; max-width: 560px; }

/* Sections */
.section { padding: 112px 0; }
.section.tint { background: var(--tint); }
.section.rule { border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.section-head p { max-width: 440px; color: var(--body); }

.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 72px; align-items: center; }
.bw { filter: grayscale(1); object-fit: cover; object-position: top; aspect-ratio: 4 / 5; width: 100%; }
.about-grid .bw { max-width: 440px; }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }

/* Service lists */
.svc-card { background: #fff; border-radius: 4px; padding: 40px; }
.svc-card h3 { font-size: 26px; margin-bottom: 6px; }
.svc-card .who { font-size: 15px; color: var(--muted); margin-bottom: 22px; }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; text-decoration: none; padding: 18px 0; border-top: 1px solid var(--line); font-size: 18px; font-weight: 500; }
.svc-list li:last-child a { border-bottom: 1px solid var(--line); }
.svc-list .arrow { color: var(--blue); transition: transform .2s; }
.svc-list a:hover .arrow { transform: translateX(4px); }

/* Team */
.person { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 28px; align-items: center; }
.person h3 { font-weight: 600; font-size: 26px; margin-bottom: 4px; }
.role { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; display: block; }
.person p { font-size: 16px; color: var(--body); margin-bottom: 14px; }

/* Steps */
.step-num { font-weight: 300; font-size: 64px; line-height: 1; color: var(--blue); margin-bottom: 16px; }
.step h3 { font-weight: 600; font-size: 22px; margin-bottom: 10px; }
.step p { color: var(--body); }

/* Services page detail */
.group { padding: 96px 0; border-top: 1px solid var(--line); }
.group:nth-of-type(even) { background: var(--tint); }
.group-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 72px; margin-bottom: 40px; }
.group-head h2 { font-size: 40px; }
.group-head .by { margin-top: 12px; font-size: 15px; color: var(--muted); }
.group-head .by a { color: var(--ink); }
.detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.detail-item { border-top: 1px solid var(--line); padding: 26px 0 30px; }
.detail-item h3 { font-weight: 600; font-size: 21px; margin-bottom: 8px; }
.detail-item p { color: var(--body); font-size: 16px; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.jump a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: 15px; font-weight: 500; }
.jump a:hover { border-color: var(--blue); }

/* Fees */
.fee { border-top: 2px solid var(--ink); padding-top: 24px; }
.fee h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 24px; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 6px; }
.fee .kind { color: var(--blue); font-weight: 600; margin-bottom: 14px; display: block; }
.fee ul { margin: 0; padding-left: 18px; color: var(--body); }
.fee li + li { margin-top: 6px; }

/* Bios */
.bio { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 72px; align-items: start; }
.bio + .bio { margin-top: 96px; padding-top: 96px; border-top: 1px solid var(--line); }
.bio h2 { font-size: 40px; margin-bottom: 6px; }
.facts { list-style: none; margin: 28px 0 0; padding: 0; }
.facts li { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts span:first-child { color: var(--muted); }
.facts span:last-child { text-align: right; }

/* FAQ */
.faq-list { max-width: 860px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; background: none; border: 0; text-align: left; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: inherit; font-weight: 600; font-size: 19px; color: var(--ink); min-height: 44px; }
.faq-question .icon { color: var(--blue); font-size: 24px; font-weight: 300; transition: transform .2s; }
.faq-item.open .icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer-inner { padding: 0 0 24px; color: var(--body); max-width: 760px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.info-row { padding: 18px 0; border-top: 1px solid var(--line); }
.info-row:last-child { border-bottom: 1px solid var(--line); }
.info-row .label { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.info-row .value { font-size: 19px; }
.info-row .value a { text-decoration: none; }
.form { background: var(--tint); border-radius: 4px; padding: 40px; }
.form h2 { font-size: 28px; font-weight: 600; margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #CDD3DC; border-radius: 4px; padding: 13px 14px; min-height: 48px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(36,67,168,0.15); }
.form-status { min-height: 1.4em; margin-top: 12px; color: var(--blue); font-weight: 500; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; line-height: 1.6; }

/* Contact band + footer */
.cta-band { background: var(--ink); color: #fff; padding: 104px 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 40px; }
.cta-band h2 { color: #fff; font-size: 52px; line-height: 1.05; margin-bottom: 16px; }
.cta-band p { font-size: 19px; color: var(--on-dark); max-width: 620px; }
.cta-band .reach { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.cta-band .reach a.tel { color: #fff; text-decoration: none; font-size: 22px; font-weight: 300; }
.cta-band .reach a.mail { color: var(--on-dark); text-decoration: none; }

.site-footer { padding: 56px 0 40px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer-top .foot-h { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.footer-top ul { list-style: none; margin: 0; padding: 0; }
.footer-top li { margin-bottom: 8px; }
.footer-top a { text-decoration: none; }
.footer-brand .wordmark { font-size: 20px; display: inline-block; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); max-width: 320px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 22px; font-size: 13px; color: var(--muted); }
.footer-bottom a { color: var(--muted); margin-left: 20px; }

/* Legal text */
.legal { max-width: 820px; }
.legal h2 { font-size: 26px; font-weight: 600; margin: 40px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--body); }
.legal a { color: var(--blue); }

.results-note { font-size: 13px; font-style: italic; color: var(--muted); margin-top: 16px; }

/* Reveal animation (main.js adds .in-view) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1024px) {
    .wrap { padding: 0 32px; }
    .nav-toggle { display: block; }
    .site-header .header-cta { display: none; }
    .nav-links { display: none; position: absolute; top: 84px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 4px; padding: 16px 32px 28px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(15,27,45,0.08); }
    .nav-links.open { display: flex; }
    .nav-links a:not(.btn) { display: block; padding: 12px 0; }
    .nav-links .nav-mobile-cta { display: block; margin-top: 12px; }
    .hero-grid, .about-grid, .two, .three, .group-head, .detail, .bio, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .detail { gap: 0; }
    .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mono { font-size: 210px; }
    .band h2 { font-size: 48px; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .wrap { padding: 0 20px; }
    .wordmark { font-size: 19px; letter-spacing: 0.3em; }
    .hero { padding: 48px 0 56px; }
    .hero h1 { font-size: 34px; }
    .mono { font-size: 150px; }
    .page-head { padding: 56px 0 48px; }
    .page-head h1 { font-size: 40px; }
    .section, .group { padding: 72px 0; }
    .band { padding: 80px 0; }
    .band h2 { font-size: 38px; }
    .h2, .group-head h2, .bio h2 { font-size: 30px; }
    .svc-card, .form { padding: 28px 22px; }
    .person { grid-template-columns: 110px minmax(0, 1fr); gap: 18px; align-items: start; }
    .cta-band h2 { font-size: 38px; }
    .footer-top { grid-template-columns: minmax(0, 1fr); }
    .footer-bottom a { margin-left: 0; margin-right: 20px; }
}

/* Landing-page helpers */
.area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.area-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 32px; text-decoration: none; transition: border-color .2s, transform .2s; }
.area-card:hover { border-color: var(--blue); transform: translateY(-2px); color: var(--ink); }
.area-card .eyebrow { margin-bottom: 10px; }
.area-card h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 26px; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 10px; }
.area-card p { color: var(--body); font-size: 16px; margin-bottom: 20px; flex: 1; }
.area-card .more { font-weight: 600; color: var(--blue); }
.attorney-strip { display: grid; grid-template-columns: minmax(0, 160px) minmax(0, 1fr) auto; gap: 28px; align-items: center; background: var(--tint); border-radius: 4px; padding: 28px; }
.attorney-strip h3 { font-weight: 600; font-size: 24px; margin-bottom: 4px; }
.related { display: flex; flex-wrap: wrap; gap: 10px; }
.related a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: 15px; font-weight: 500; }
.related a:hover { border-color: var(--blue); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
@media (max-width: 1024px) {
    .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .attorney-strip { grid-template-columns: 120px minmax(0, 1fr); }
    .attorney-strip .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 640px) {
    .area-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- v5.1 consistency pass ---- */
/* Text: never split words; justify only long-measure paragraphs */
main p, main li { hyphens: manual; -webkit-hyphens: manual; text-align: left; }
@media (min-width: 641px) {
    main .lead, main .detail-item p, main .legal p, main .bio-text p, main .case-panel p { text-align: justify; }
}
h1, h2, h3 { text-wrap: balance; }

/* Phone menu button keeps button styling */
.nav-links .nav-mobile-cta a.btn { font-family: 'Barlow', system-ui, sans-serif; text-transform: none; letter-spacing: normal; font-size: 16px; font-weight: 600; padding: 14px 24px; border: 0; color: #fff; }
.nav-links .nav-mobile-cta a.btn:hover { color: #fff; }

/* Header button */
.header-cta { padding: 11px 22px; min-height: 44px; font-size: 15px; }

/* Two-column service grids (no orphans) */
.area-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .area-grid.cols-2 { grid-template-columns: minmax(0, 1fr); } }

/* Home service lists: name plus one-line description */
.svc-list a { align-items: flex-start; }
.svc-list .svc-name { display: block; font-size: 18px; font-weight: 600; }
.svc-list .svc-desc { display: block; font-size: 15px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.svc-list .arrow { margin-top: 4px; }

/* Principles (non-sequential lists) */
.principle { border-top: 2px solid var(--ink); padding-top: 24px; }
.principle h3 { font-weight: 600; font-size: 22px; margin-bottom: 10px; }
.principle p { color: var(--body); }

/* Case study text panel */
.case-panel { background: var(--ink); color: #fff; border-radius: 4px; padding: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 56px; }
.case-panel .eyebrow { color: #9FB3E8; }
.case-panel h2 { color: #fff; font-size: 32px; line-height: 1.2; font-weight: 600; }
.case-panel p { color: var(--on-dark); font-size: 18px; line-height: 1.7; }
.case-panel .results-note { color: #9EA6B4; }
.case-facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; font-size: 15px; color: var(--on-dark); }
.case-facts strong { color: #fff; font-weight: 600; }
@media (max-width: 1024px) { .case-panel { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 36px 24px; } }

/* Attorney profiles (Attorneys page) */
.profile { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 56px; align-items: start; }
.profile + .profile { margin-top: 72px; padding-top: 72px; border-top: 1px solid var(--line); }
.profile h2 { font-size: 34px; margin-bottom: 4px; }
.profile .summary { color: var(--body); font-size: 18px; line-height: 1.7; margin: 14px 0 6px; }
.profile .related { margin-top: 18px; }
.profile .actions { margin-top: 26px; }
@media (max-width: 1024px) { .profile { grid-template-columns: minmax(0, 1fr); gap: 28px; } .profile .bw { max-width: 320px; } }

/* Bio pages */
.bio-text > * + * { margin-top: 18px; }
.tint .attorney-strip { background: #fff; }
.monogram-sm { font-weight: 800; font-size: 72px; line-height: 0.9; letter-spacing: -0.04em; text-align: center; background-image: url('../img/street-duotone-1200.webp'); background-size: cover; -webkit-background-clip: text; background-clip: text; color: transparent; }
.svc-list .svc-name { font-size: 18px; font-weight: 500; }
.svc-list a { align-items: center; }
.svc-list .arrow { margin-top: 0; }
.svc-pair { align-items: start; }
.related.static span { border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: 15px; font-weight: 500; }
.attorney-strip + .attorney-strip { margin-top: 20px; }
