/* Semantic tokens keep all five palettes readable on light and dark surfaces. */
:root {
    --muted: #526268;
    --surface: #fff;
    --accent-text: #77551f;
    --on-accent: #17252d;
    --on-dark: #dce5e5;
    --field-border: #79877f;
    --error: #a12c25;
    --focus: #125cb3;
}
html[data-theme=forest] { --accent-text: #72501b; --muted: #4d655c; }
html[data-theme=burgundy] { --accent-text: #77511d; --muted: #705a60; }
html[data-theme=slate] { --accent-text: #74501c; --muted: #526175; }
body, .practice-card, .quote-grid blockquote { background: var(--surface); }
.button-gold, .hero-badge { color: var(--on-accent); }
em, .eyebrow, .lawyer-card > span, .contact-detail span, .stars, .card-icon { color: var(--accent-text); }
.site-header, .site-footer, .process-section, .cta-section { --accent-text: var(--gold); }
.footer-bottom, .disclaimer { color: var(--on-dark); font-size: .8rem; }
.hero-lead, .trust-note small, .process-grid p, .cta-inner p:not(.eyebrow) { color: var(--on-dark); }
:where(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.site-header, .site-footer, .process-section, .cta-section { --focus: #fff; }
.form-row input, .form-row select, .form-row textarea { border-color: var(--field-border); background: var(--surface); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--focus); box-shadow: none; outline: 2px solid var(--focus); outline-offset: 2px; }
.field-validation-error, .validation-summary-errors, .form-row span { color: var(--error); }
.validation-summary-valid, .field-validation-valid { display: none; }
.validation-summary-errors { border-inline-start: 4px solid var(--error); padding: 12px; }
.button:disabled { cursor: not-allowed; opacity: .75; transform: none; }
.skip-link { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 100; padding: 12px 20px; background: var(--surface); color: var(--ink); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
[id] { scroll-margin-top: 100px; }
main:focus { outline: none; }
.preview-notice, .service-notice { padding: 12px 20px; background: var(--cream); color: var(--ink); font-size: .85rem; }
.preview-notice { text-align: center; }
.success-message { padding: 20px; border: 2px solid var(--navy); }
.form-note { font-size: .85rem; }
.language-form { margin: 0; }
.language-select, .theme-toggle { min-height: 44px; font-size: .85rem; }
.theme-toggle { min-width: 44px; }
.radio { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-inline-end: 18px; }
.radio input { width: 20px; height: 20px; }
.button { min-height: 44px; }
.container > *, .hero-grid > *, .contact-grid > *, .footer-grid > *, .split > * { min-width: 0; }
.brand { flex-shrink: 0; letter-spacing: -.025em; }
.primary-nav { gap: 18px; font-size: .85rem; }
.hero-actions, .cta-actions { flex-wrap: wrap; }
.hero-copy, .section-intro, .feature, .practice-card { overflow-wrap: anywhere; }
.site-footer a, .contact-detail a { overflow-wrap: anywhere; }
.check-list li { padding-inline-start: 27px; padding-inline-end: 0; }
.check-list li::before { content: '✓'; inset-inline-start: 0; color: var(--accent-text); }
.prose { max-width: 800px; }
.prose h1 { font: 600 clamp(2rem, 6vw, 3.5rem)/1.2 'Playfair Display', Georgia, serif; margin-top: 0; }
.prose h2 { font-size: 1.6rem; margin-top: 2rem; }
.prose a:not(.button) { text-decoration: underline; }
.reveal:focus-within { opacity: 1; transform: none; }
html[dir=rtl] .eyebrow, html[dir=rtl] .button, html[dir=rtl] .text-link { letter-spacing: normal; }
html[lang=ur] body, html[lang=pa] body { line-height: 1.9; }
html[lang=ur] h1, html[lang=ur] h2, html[lang=pa] h1, html[lang=pa] h2 { line-height: 1.5; letter-spacing: normal; }
html[dir=rtl] .avatar-stack i { margin-left: 0; margin-right: -8px; }
html[dir=rtl] .hero-badge { left: auto; right: -20px; }
html[dir=rtl] .footer-bottom a { margin-left: 0; margin-right: 20px; }
html[dir=rtl] .stats-grid > div { border-right: 0; border-left: 1px solid var(--line); }

@media (max-width: 1200px) {
    html:not(.js) .menu-toggle { display: none; }
    html:not(.js) .nav-wrap { height: auto; flex-direction: column; align-items: stretch; }
    html:not(.js) .primary-nav { display: flex; position: static; max-height: none; }
    .nav-wrap { height: 68px; }
    .menu-toggle { display: block; min-width: 44px; min-height: 44px; }
    .primary-nav { display: none; position: absolute; inset: 68px 0 auto; background: var(--navy); padding: 14px 20px 25px; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100dvh - 68px); overflow-y: auto; overscroll-behavior: contain; }
    .primary-nav.is-open { display: flex; }
    .primary-nav a:not(.button) { padding: 14px 5px; border-bottom: 1px solid #ffffff33; }
    .site-controls { margin-top: 15px; padding-top: 15px; border-top: 1px solid #ffffff33; }
    .language-form { flex: 1; }
    .language-select { width: 100%; }
    .site-controls .theme-toggle { width: 44px; height: 44px; }
    .site-controls .language-select { height: 44px; }
    .hero-grid { gap: 4%; }
    .hero h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); }
}
@media (min-width: 701px) and (max-width: 1000px) {
    .hero-actions { flex-direction: column; align-items: start; }
    .cta-inner { flex-direction: column; align-items: start; }
    .contact-grid { grid-template-columns: 1fr; }
    .lawyer-grid, .quote-grid { gap: 16px; }
    .quote-grid blockquote { padding: 20px; }
}
@media (max-width: 700px) {
    .hero h1 { font-size: clamp(2.2rem, 9vw, 3.8rem); }
    h2 { font-size: clamp(2rem, 8vw, 3rem); }
    .hero-badge { max-width: 75%; }
    html[dir=rtl] .hero-badge { right: -8px; }
    .footer-bottom a { display: inline-block; padding-block: 6px; }
}
@media (max-width: 380px) {
    .feature-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero-image, .about-image img { height: 300px; }
    .form-card { padding: 20px 14px; }
}
[data-enquiry-form] { position: relative; }
.enquiry-progress:not([hidden]) {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    background: rgb(255 255 255 / 85%);
    border-radius: 8px;
}
.enquiry-progress-card {
    width: min(85%, 320px);
    padding: 24px;
    text-align: center;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 8px 28px rgb(0 0 0 / 10%);
    border-radius: 8px;
}
.enquiry-progress-card p { margin: 0 0 16px; }
.enquiry-progress-card progress { width: 100%; accent-color: var(--navy); }
.success-message.enquiry-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    color: #153d64;
    background: #edf6ff;
    border: 1px solid #a9ccec;
    border-inline-start: 4px solid #28669f;
    border-radius: 8px;
}
.enquiry-info-icon {
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    height: 28px;
    border: 2px solid currentColor;
    border-radius: 50%;
    font: bold 18px Georgia, serif;
}
.enquiry-info p { margin: 8px 0 0; color: inherit; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    .button:hover, .practice-card:hover { transform: none; }
}
