/* =========================================================
   Law Offices of Arthur J. Porto — styles
   ========================================================= */

:root {
  --ink: #0C1524;
  --ink-2: #15233A;
  --ink-line: #22324D;
  --paper: #F7F7F5;
  --tint: #EEF0F3;
  --white: #FFFFFF;
  --line: #E3E5E8;
  --line-2: #CDD3DB;
  --text: #0C1524;
  --muted: #4A5568;
  --muted-2: #5A6577;
  --on-ink: #C9D2E0;
  --on-ink-2: #9AA8BF;
  --amber: #F2B544;
  --amber-text: #8A5A00;
  --radius: 18px;
  --radius-lg: 24px;
  --max: 1240px;
  --display: "Inter Tight", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.03em; }
h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
address { font-style: normal; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--amber); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #1C2C47; }
.btn--amber { background: var(--amber); color: var(--ink); font-weight: 700; }
.btn--amber:hover { background: #F5C35F; }
.btn--ghost { border: 1px solid #3A4B69; color: var(--white); }
.btn--ghost:hover { background: var(--ink-2); }

/* ---------- Top strip ---------- */
.strip { background: var(--ink); color: var(--on-ink); font-size: 13px; }
.strip__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 10px; padding-bottom: 10px; }

/* ---------- Header / nav ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 44px; height: 44px; border-radius: 10px; background: var(--ink); color: var(--amber); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 18px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 18px; }
.brand__tag { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.nav__links { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; font-weight: 500; font-size: 15px; }
.nav__links a { text-decoration: none; padding: 10px 0; }
.nav__links a:hover { color: var(--amber-text); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--white); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; order: 3; }
  .nav__call { display: none; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--white);
    border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--white); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-weight: 800; font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.035em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--on-ink); max-width: 580px; }
.lead--dark { color: var(--muted); font-size: 17px; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid #2B3B57; border-radius: 999px; font-size: 13px; color: var(--on-ink); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.creds { list-style: none; margin: 8px 0 0; padding: 24px 0 0; border-top: 1px solid var(--ink-line); display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; font-size: 14px; color: var(--on-ink); }
.creds li { display: flex; flex-direction: column; }
.creds strong { color: var(--white); font-weight: 600; }

.hero__photo { position: relative; width: 100%; max-width: 480px; justify-self: center; }
.photo, .photo-slot { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); object-fit: cover; }
.photo-slot { border: 2px dashed #3A4B69; background: var(--ink-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--on-ink-2); text-align: center; padding: 24px; font-size: 14px; }
.photo-slot__title { font-family: var(--display); font-weight: 600; font-size: 18px; color: #DCE3EE; }
.badge { position: absolute; left: -16px; bottom: 28px; background: var(--white); color: var(--ink); border-radius: 16px; padding: 14px 18px; box-shadow: 0 18px 40px rgba(0,0,0,.28); display: flex; align-items: center; gap: 12px; line-height: 1.25; }
.badge span:last-child { display: flex; flex-direction: column; }
.badge small { color: var(--muted); font-size: 13px; }
.badge__icon { width: 40px; height: 40px; border-radius: 50%; background: #FDF1D8; color: var(--amber-text); display: grid; place-items: center; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .badge { left: 12px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: var(--white); }
.section--dark h2 { margin-bottom: 40px; max-width: 720px; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; margin-bottom: 40px; }
.section__head > div { max-width: 640px; }
.section__head .muted { max-width: 380px; }
.eyebrow { margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-text); }
.eyebrow--amber { color: var(--amber); }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack .eyebrow { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Practice cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s ease, transform .15s ease; }
.card:hover { border-color: var(--ink); transform: translateY(-2px); }
.card p { color: var(--muted); font-size: 15px; }
.card--dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.card--dark p { color: var(--on-ink); }

/* ---------- Features list ---------- */
.features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.features li { position: relative; padding-left: 46px; }
.features li::before { content: ""; position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 10px; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23F2B544' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center no-repeat; }

/* ---------- Chat ---------- */
.chat { background: var(--white); border-radius: var(--radius-lg); border: 1px solid #DDE1E7; box-shadow: 0 30px 60px rgba(12,21,36,.12); overflow: hidden; width: 100%; max-width: 520px; justify-self: center; }
.chat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: var(--ink); color: var(--white); }
.chat__title { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.chat__live { width: 10px; height: 10px; border-radius: 50%; background: #4ADE80; }
.chat__langs { display: flex; gap: 4px; background: var(--ink-2); border-radius: 999px; padding: 3px; }
.chat__langs button { min-width: 40px; min-height: 32px; border: 0; border-radius: 999px; background: transparent; color: var(--on-ink); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.chat__langs button[aria-pressed="true"] { background: var(--amber); color: var(--ink); }
.chat__body { padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; background: #FAFAF9; min-height: 340px; max-height: 460px; overflow-y: auto; }
.msg { max-width: 86%; padding: 12px 16px; font-size: 15px; }
.msg--bot { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; }
.msg--me { align-self: flex-end; background: var(--ink); color: var(--white); border-radius: 16px 16px 4px 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chat__cta { align-self: flex-start; }
.chat__form { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--line); }
.chat__form input { flex: 1; min-width: 0; min-height: 44px; border: 1px solid #D5DAE1; border-radius: 999px; padding: 0 16px; font: inherit; font-size: 15px; }
.chat__form button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: var(--white); display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; }
.chat__note { padding: 0 20px 14px; font-size: 12px; color: var(--muted-2); }

/* ---------- About ---------- */
.tags { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 28px 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.timeline__now::before { background: var(--amber) !important; box-shadow: 0 0 0 3px var(--ink); }
.timeline strong { display: block; font-family: var(--display); font-size: 18px; }
.timeline span { color: var(--muted); }

/* ---------- Results ---------- */
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.result { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.result__big { font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--amber); letter-spacing: -0.02em; }
.result strong { font-size: 17px; }
.result span:last-child { color: #B8C2D3; font-size: 15px; }
.fineprint { margin-top: 24px; font-size: 13px; color: var(--on-ink-2); }
.fineprint--dark { margin-top: 0; font-size: 12px; color: var(--muted-2); }

/* ---------- Steps / counties ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 32px; margin-top: 40px; }
.step { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--ink); padding-top: 20px; }
.step h3 { font-size: 22px; }
.step p { color: var(--muted); }
.step__num { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--amber-text); }
.counties { margin-top: 64px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.counties h3 { font-size: 22px; margin-bottom: 4px; }
.counties__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.counties__list li { padding: 10px 16px; border-radius: 12px; background: var(--tint); font-weight: 600; font-size: 15px; }

/* ---------- Contact ---------- */
.contact-row { display: flex; gap: 14px; align-items: center; text-decoration: none; }
.contact-row strong { display: block; font-size: 18px; }
.contact-row small { color: var(--muted); font-size: 14px; }
.contact-row__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--amber); display: grid; place-items: center; flex: 0 0 auto; }
.map { width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line-2); border-radius: var(--radius); }

.form { background: var(--white); border-radius: var(--radius-lg); border: 1px solid #DDE1E7; padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted-2); }
.field input, .field select, .field textarea { min-height: 48px; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 14px; font: inherit; background: var(--white); color: var(--text); }
.field textarea { padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(242,181,68,.45); }
.field [aria-invalid="true"] { border-color: #B42318; }
.form__status { font-size: 14px; font-weight: 600; }
.form__status:empty { display: none; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #B8C2D3; font-size: 14px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.footer__info { display: flex; flex-direction: column; gap: 8px; }
.footer__info strong { color: var(--white); font-family: var(--display); font-size: 18px; }
.footer__info a { text-decoration: none; }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; align-content: flex-start; }
.footer__links a { color: #DCE3EE; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 20px; border-top: 1px solid var(--ink-line); font-size: 12px; color: var(--on-ink-2); }

/* ---------- Mobile call bar ---------- */
.callbar { display: none; }
@media (max-width: 700px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.95); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
  .callbar .btn { min-height: 48px; }
  .footer { padding-bottom: 76px; }
}
