:root {
  --navy: #14213d; --navy-2: #24345c; --gold: #f2c14e; --accent: #c8553d; --accent-d: #a8432e;
  --bg: #faf8f4; --card: #fff; --ink: #1d2433; --muted: #5f6b7a; --line: #e5e0d6; --ok: #2f7d4f; --err: #b3261e; --info: #24588f;
  --radius: 12px; --shadow: 0 1px 2px rgba(20,33,61,.06), 0 4px 16px rgba(20,33,61,.06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; }
a { color: var(--navy-2); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h2 { font-size: 1.4rem; } .h3, h3 { font-size: 1.15rem; }
p { margin: 0 0 .9em; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.main { padding-block: 24px 48px; min-height: 60vh; }
.narrow { max-width: 720px; margin-inline: auto; }
.center { text-align: center; }
.pad-y { padding-block: 40px; }
.muted { color: var(--muted); } .small { font-size: .875rem; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.flex { display: flex; gap: 12px; align-items: center; }
.inline { display: inline; }

/* header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav-link { text-decoration: none; color: var(--ink); font-size: .95rem; }
.nav-pro { color: var(--muted); }
.menu-toggle { display: none; }
.link-btn { background: none; border: 0; color: var(--navy-2); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
@media (max-width: 860px) {
  .menu-toggle { display: block; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font: inherit; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
}

/* buttons */
.btn { display: inline-block; border: 1px solid transparent; border-radius: 8px; padding: 10px 18px; font: 600 .95rem var(--sans); text-decoration: none; cursor: pointer; text-align: center; line-height: 1.2; }
.btn-primary { background: var(--accent); color: #fff; } .btn-primary:hover { background: var(--accent-d); color: #fff; }
.btn-accent { background: var(--gold); color: var(--navy); } .btn-accent:hover { background: #e5b13a; color: var(--navy); }
.btn-outline { border-color: var(--navy-2); color: var(--navy-2); background: #fff; } .btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; } .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-danger { background: #fff; border-color: var(--err); color: var(--err); } .btn-danger:hover { background: var(--err); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn-block { display: block; width: 100%; }
button.btn { background-clip: padding-box; }

/* hero & sections */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 56px 0 48px; }
.hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); } .hero h1 span { color: var(--gold); }
.hero-sub { font-size: 1.1rem; opacity: .9; max-width: 640px; }
.hero .quick { margin-top: 14px; font-size: .95rem; } .hero .quick a { color: #fff; }
.hero-pro { padding: 64px 0; }
.section { padding-block: 32px; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; } @media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.pro-banner { background: var(--navy); color: #fff; padding: 36px 0; margin-top: 24px; }
.pro-banner .container { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pro-banner h2 { color: var(--gold); } .pro-banner p { max-width: 680px; opacity: .9; }

/* search */
.search { display: flex; gap: 8px; background: #fff; padding: 8px; border-radius: 12px; box-shadow: var(--shadow); max-width: 860px; flex-wrap: wrap; }
.search-field { flex: 2 1 260px; } .search-city { flex: 1 1 180px; }
.search input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font: inherit; color: var(--ink); }
.search .btn { flex: 0 0 auto; padding-inline: 28px; }
.search-compact { box-shadow: none; border: 1px solid var(--line); margin-bottom: 12px; max-width: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; color: var(--ink); font-size: .92rem; }
.chip:hover { border-color: var(--accent); color: var(--accent); } .chip-more { font-weight: 600; }
.grid-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 20px; margin-bottom: 16px; }
.grid-links-lg a { display: flex; flex-direction: column; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }

.steps { list-style: none; counter-reset: s; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; text-align: left; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 700; display: grid; place-items: center; margin-bottom: 6px; }
.stats { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.stats > * { flex: 1 1 160px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--ink); }
.stats b { display: block; font-size: 1.8rem; font-family: var(--serif); color: var(--navy); }
.stats span { color: var(--muted); font-size: .9rem; }
.stats-dash { margin: 0 0 16px; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card.empty { text-align: center; padding: 40px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.badge { display: inline-block; background: #eef1f7; color: var(--navy-2); border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 600; }
.badge-ok { background: #e6f3ea; color: var(--ok); } .badge-price { background: #fdf3dc; color: #7a5a0c; }
.stars { color: #e0a100; letter-spacing: 1px; } .stars-lg { font-size: 1.25rem; }

.avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; }
.avatar-ph { background: var(--navy); color: var(--gold); font-weight: 700; font-family: var(--serif); font-size: 1.4rem; }
.avatar-lg { width: 112px; height: 112px; font-size: 2rem; } .avatar-sm { width: 44px; height: 44px; font-size: 1rem; }

/* listing */
.listing-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.filters { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 4px 0 16px; font-size: .92rem; }
.filters select, .filters input:not([type=checkbox]) { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
.lawyer-card { display: grid; grid-template-columns: 1fr 380px; gap: 20px; }
@media (max-width: 900px) { .lawyer-card { grid-template-columns: 1fr; } }
.lc-main { display: flex; gap: 16px; }
.lc-info h3 { margin: 0 0 2px; font-size: 1.2rem; } .lc-info h3 a { text-decoration: none; color: var(--navy); }
.lc-areas { color: var(--muted); margin: 0 0 4px; font-size: .92rem; }
.lc-rating, .lc-addr { margin: 0 0 4px; font-size: .92rem; }
.mini-cal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.mini-day, .week-day { display: flex; flex-direction: column; gap: 4px; }
.mini-day-h { font-size: .78rem; font-weight: 700; text-align: center; color: var(--muted); text-transform: capitalize; }
.slot { display: block; text-align: center; background: #eef1f7; color: var(--navy); border-radius: 6px; padding: 5px 0; font-size: .85rem; font-weight: 600; text-decoration: none; position: relative; }
.slot:hover { background: var(--navy); color: #fff; }
.slot-none { background: none; color: #b8bec8; font-weight: 400; }
.slot-more { background: none; text-decoration: underline; }
.dot-online, .dot-online-legend { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); position: absolute; top: 4px; right: 4px; }
.dot-online-legend { position: static; }
.pagination { display: flex; gap: 8px; justify-content: center; margin: 20px 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-decoration: none; }
.pagination span[aria-current] { background: var(--navy); color: #fff; }
.seo-text { margin-top: 24px; color: var(--muted); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }

/* profile */
.profile { display: grid; grid-template-columns: 1fr 400px; gap: 20px; align-items: start; }
@media (max-width: 960px) { .profile { grid-template-columns: 1fr; } .profile-side { order: -1; } }
.profile-head { display: flex; gap: 20px; align-items: flex-start; }
.profile-head h1 { margin-bottom: 4px; }
.profile-side { position: sticky; top: 80px; }
.booking-box h2 { font-size: 1.2rem; }
.where { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.where select { padding: 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-height: 420px; overflow-y: auto; }
.week .slot { font-size: .78rem; padding: 4px 0; }
.week-nav { display: flex; justify-content: space-between; font-size: .85rem; margin: 10px 0; }
.office { padding: 10px 0; border-bottom: 1px dashed var(--line); } .office:last-child { border: 0; }
.rating-summary { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.rating-summary .big { font: 700 2.6rem var(--serif); color: var(--navy); }
.review { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.card.review { margin-top: 0; }
.review-h { margin-bottom: 6px; }
.reply { background: #f6f3ec; border-left: 3px solid var(--gold); padding: 10px 14px; margin-top: 8px; border-radius: 0 8px 8px 0; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table .num { text-align: right; white-space: nowrap; }
.card:has(> .table) { overflow-x: auto; }

/* forms */
.form .field { margin-bottom: 14px; display: flex; flex-direction: column; gap: 4px; }
.form label, .form .label { font-weight: 600; font-size: .92rem; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea { width: 100%; padding: 10px 12px; border: 1px solid #cfc8ba; border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
.form textarea { resize: vertical; }
.form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px 4px; margin: 0 0 16px; }
.form legend { font-weight: 700; color: var(--navy); padding: 0 6px; }
.check { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 400 !important; margin-bottom: 10px; }
.check input { margin-top: 4px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 16px; }
.hint { color: var(--muted); font-size: .82rem; font-weight: 400; }
.req { color: var(--accent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } @media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
.form-inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.form-inline .field { margin: 0; flex: 1 1 140px; }
.form-inline h2 { flex-basis: 100%; }
.auth-box { max-width: 460px; margin: 24px auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.auth-wide { max-width: 760px; }
.rating-input { border: 0 !important; padding: 0 !important; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; margin-bottom: 10px !important; }
.rating-input legend { float: left; width: 100%; font-weight: 600; font-size: .92rem; margin-bottom: 2px; padding: 0 !important; color: var(--ink) !important; }
.rating-input input { position: absolute; opacity: 0; }
.rating-input label { font-size: 1.8rem; color: #d3cfc6; cursor: pointer; line-height: 1; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #e0a100; }
.rating-input input:focus-visible + label { outline: 2px solid var(--gold); }

.flash { padding: 12px 16px; border-radius: 10px; margin: 12px 0; border: 1px solid; }
.flash ul { margin: 0; padding-left: 18px; }
.flash-ok { background: #e9f5ee; border-color: #b8dcc5; color: #1d5634; }
.flash-error { background: #fdecea; border-color: #f4c2bd; color: #8c1d16; }
.flash-info { background: #eaf1fa; border-color: #c1d5ee; color: #1d4470; }

/* dashboard */
.dash-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tabs a[aria-current] { color: var(--navy); border-color: var(--accent); font-weight: 600; }
.tabs-sub a[aria-current] { font-weight: 700; color: var(--navy); }
.appt-list { list-style: none; padding: 0; margin: 0; }
.appt { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.appt:last-child { border: 0; }
.appt-actions { display: flex; gap: 8px; }
.todo { list-style: none; padding: 0; } .todo li { padding: 4px 0; } .todo .done { color: var(--ok); }
.stat-link:hover { border-color: var(--accent); }
.booking-summary .when { font-size: 1.1rem; margin-top: 12px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.qa-list { padding-left: 18px; } .qa-list li { margin-bottom: 10px; }
.people { list-style: none; padding: 0; } .people li { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; } .faq p { margin-top: 10px; }
.prose h2 { margin-top: 1.4em; font-size: 1.2rem; }
details > summary { cursor: pointer; }

/* footer */
.site-footer { background: #101a31; color: #c9d0dc; padding: 40px 0 20px; font-size: .92rem; }
.site-footer a { color: #e6e9ef; text-decoration: none; } .site-footer a:hover { color: var(--gold); }
.site-footer h3 { color: #fff; font-family: var(--sans); font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; } .site-footer li { margin-bottom: 6px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 24px; } @media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.brand-footer { color: #fff; margin-bottom: 10px; } .site-footer .muted { color: #9aa5b8; }
.footer-legal { border-top: 1px solid #26314d; margin-top: 24px; padding-top: 16px; font-size: .82rem; color: #8b96a9; }
