/* Lexmotion — Advocates & IPR Attorneys
   Visual system taken from the logo: the rounded-diamond frame, the gold star,
   the pillar, court green and brass, and inscriptional capitals.
   Layout: content on the left, the firm's services always on the right. */

:root {
  --green: #133f40;        /* logo field */
  --green-deep: #0c2b2c;
  --green-soft: #1d5455;
  --brass: #d0aa2f;        /* logo gold */
  --brass-deep: #94740f;   /* gold dark enough for text on white */
  --charcoal: #434242;     /* logo subtitle */
  --ink: #232b2a;
  --muted: #5b6563;
  --tint: #f1f4f3;
  --mist: #e5ebe9;
  --line: #d4dcda;
  --white: #ffffff;

  --display: "Marcellus", "Trajan Pro", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1200px;
  --gutter: 16px;
  --header-h: 84px;
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-color: rgba(208,170,47,.8); text-underline-offset: 3px; }
a:hover { color: var(--green-soft); text-decoration-color: var(--brass); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; color: var(--green); line-height: 1.18; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.38rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
@media (min-width: 700px) { :root { --gutter: 32px; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--green); color: #fff; padding: 10px 16px; z-index: 200; }
.skip-link:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon.solid { fill: currentColor; stroke: none; }

/* The firm's subtitle style: spaced inscriptional capitals, used only where the logo uses it */
.inscription { font-family: var(--display); text-transform: uppercase; letter-spacing: .2em; font-size: .86rem; color: var(--brass); }

/* Section mark: small gold star on a hairline, taken from the top of the emblem */
.mark { display: flex; align-items: center; gap: 10px; margin: -2px 0 22px; color: var(--brass); }
.mark::before, .mark::after { content: ""; height: 1px; width: 34px; background: var(--brass); }
.mark svg { width: 13px; height: 13px; fill: currentColor; }
.center .mark { justify-content: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; font: 600 .95rem/1 var(--sans); letter-spacing: .02em; padding: 14px 26px; border-radius: var(--radius); border: 1.5px solid var(--green); background: var(--green); color: #fff; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--green-deep); color: #fff; }
.btn.brass { background: var(--brass); border-color: var(--brass); color: var(--green-deep); }
.btn.brass:hover { background: #e0bc45; color: var(--green-deep); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn.ghost:hover { border-color: var(--brass); color: var(--brass); }
.btn.outline { background: transparent; color: var(--green); }
.btn.outline:hover { background: var(--green); color: #fff; }
.more { font-weight: 600; text-decoration: none; color: var(--green); border-bottom: 1.5px solid var(--brass); padding-bottom: 2px; }
.more:hover { color: var(--brass-deep); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--green-deep); color: #cfdad7; font-size: .88rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #e9efed; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--brass); }
.topbar .contact-line { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar .icon { color: var(--brass); width: 1em; height: 1em; }

.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 90; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(208,170,47,.35); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; display: flex; margin: 0; padding: 0; gap: 2px; }
.nav > ul > li { position: relative; }
.nav > ul > li > a, .nav > ul > li > button { display: flex; align-items: center; gap: 4px; height: var(--header-h); padding: 0 14px; font: 600 .97rem/1 var(--sans); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; border-bottom: 2px solid transparent; }
.nav > ul > li > a:hover, .nav > ul > li > button:hover, .nav > ul > li.open > button, .nav a[aria-current="page"], .nav .current > button { color: var(--green); border-bottom-color: var(--brass); }
.nav .chev { width: .8em; height: .8em; transition: transform .2s; }
.nav li.open .chev { transform: rotate(180deg); }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--brass); box-shadow: 0 18px 40px -18px rgba(12,43,44,.35); padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s ease; }
.dropdown a { display: block; padding: 9px 20px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.dropdown a:hover { background: var(--tint); color: var(--green); }
.nav li.open > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown.mega { display: grid; grid-template-columns: 1fr 1fr; width: 540px; padding: 18px 8px; left: -140px; }
.dropdown.mega .group-title { font-family: var(--display); color: var(--green); font-size: 1.08rem; padding: 4px 20px 8px; }
.dropdown.mega .group-title:hover { background: none; color: var(--brass-deep); }
.nav .cta { margin-left: 12px; padding: 12px 20px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; color: var(--green); cursor: pointer; }
.menu-toggle .icon { width: 24px; height: 24px; }

/* ---------- Emblem frame (rounded diamond from the logo) ---------- */
.emblem { position: relative; width: 100%; max-width: 100%; aspect-ratio: 100 / 112; }
.emblem svg { width: 100%; height: 100%; display: block; overflow: visible; }
.emblem .outline { fill: none; stroke: var(--brass); stroke-width: .6; }
.emblem .outline.inner { stroke-width: .35; opacity: .7; }
.emblem .star { fill: var(--brass); }

/* ---------- Masthead (home) ---------- */
.masthead { position: relative; background: var(--green); color: #d9e3e0; overflow: hidden; isolation: isolate; }
.masthead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 80% at 78% 50%, #1e5657 0%, transparent 70%), radial-gradient(ellipse 50% 60% at 0% 100%, #0c2b2c 0%, transparent 70%); }
.masthead .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 7vw, 92px); }
.masthead .inscription { margin-bottom: 22px; }
.masthead h1 { color: #fff; font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.04; margin-bottom: 24px; }
.masthead .sub { font-size: 1.15rem; max-width: 50ch; color: #d4dfdc; }
.masthead .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.masthead .pillars { display: flex; flex-wrap: wrap; margin-top: 44px; border-left: 1px solid rgba(208,170,47,.6); }
.masthead .pillars div { padding: 2px 22px; border-right: 1px solid rgba(208,170,47,.6); }
.masthead .pillars strong { display: block; font-family: var(--display); font-weight: 400; color: #fff; font-size: 1.1rem; }
.masthead .pillars span { font-size: .88rem; color: #b5c6c2; }
.masthead .emblem { max-width: 470px; margin-inline: auto; }
.masthead .emblem image { transform-origin: 50% 50%; animation: settle 2.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes settle { from { transform: scale(1.1); opacity: .4; } to { transform: scale(1); opacity: 1; } }

/* ---------- Home: content left, services on the right ---------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(36px, 5vw, 64px); padding-block: clamp(56px, 8vw, 96px); align-items: start; }
.home-main > section + section { margin-top: clamp(56px, 7vw, 84px); }
.lede { font-size: 1.16rem; color: var(--ink); }
.home-main p { color: #3a4442; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 28px 0 26px; border-block: 1px solid var(--line); }
.facts div { padding: 16px 18px 16px 0; margin-right: 18px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts strong { display: block; font-family: var(--display); font-weight: 400; color: var(--green); font-size: 1.15rem; }
.facts span { color: var(--muted); font-size: .9rem; }

.practice-split { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.practice-panel { padding: clamp(26px, 3.4vw, 40px); }
.practice-panel.dark { background: var(--green); color: #d6e0dd; }
.practice-panel.dark h3, .practice-panel.dark a { color: #fff; }
.home-main .practice-panel.dark p { color: #d6e0dd; }
.practice-panel .lead { margin-bottom: 22px; font-size: .98rem; }
.area-list { list-style: none; margin: 0 0 24px; padding: 0; }
.area-list a { display: flex; align-items: center; gap: 12px; padding: 10px 0; text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.14); }
.practice-panel:not(.dark) .area-list a { border-bottom-color: var(--line); }
.area-list .icon { width: 30px; height: 30px; padding: 6px; border: 1px solid var(--brass); border-radius: 50%; color: var(--brass); }
.practice-panel:not(.dark) .area-list .icon { color: var(--brass-deep); }
.area-list a:hover span { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 4px; }

/* Services rail — the firm's services, always on the right */
.rail-wrap { position: sticky; top: calc(var(--header-h) + 24px); }
.services-rail { position: relative; background: var(--green); color: #fff; }
.services-rail h2 { font-size: 1.22rem; color: #fff; padding: 18px 22px 14px; margin: 0; border-bottom: 1px solid rgba(208,170,47,.5); display: flex; align-items: center; gap: 10px; }
.services-rail h2 .icon { color: var(--brass); }
.services-rail .group { font-family: var(--display); color: var(--brass); font-size: .95rem; padding: 14px 22px 4px; }
.services-rail ul { list-style: none; margin: 0; padding: 0 0 8px; }
.services-rail li > a { display: flex; align-items: center; gap: 12px; padding: 8px 34px 8px 22px; color: #eef3f1; text-decoration: none; font-weight: 600; font-size: .96rem; position: relative; }
.services-rail li > a .icon { color: var(--brass); }
.services-rail li > a::after { content: ""; position: absolute; right: 20px; top: 50%; width: 6px; height: 6px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-50%) rotate(45deg); opacity: .55; }
.services-rail li.show > a, .services-rail li > a:hover { background: rgba(208,170,47,.18); color: #fff; }
.flyout { position: absolute; right: calc(100% + 1px); top: 0; width: 340px; max-height: 100%; background: #fff; color: var(--ink); border: 1px solid var(--line); border-top: 3px solid var(--brass); box-shadow: -24px 24px 50px -24px rgba(12,43,44,.45); padding: 20px 24px 22px; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .38s cubic-bezier(.2,.7,.2,1), visibility 0s .38s; overflow: auto; z-index: 5; }
.services-rail li.show > .flyout { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .38s cubic-bezier(.2,.7,.2,1), visibility 0s; }
.flyout h3 { font-size: 1.2rem; margin-bottom: 10px; }
.flyout ul { padding: 0 0 6px; }
.flyout li { padding: 5px 0 5px 18px; border-bottom: 1px solid var(--mist); font-size: .93rem; line-height: 1.4; position: relative; }
.flyout li::before { content: ""; position: absolute; left: 2px; top: .85em; width: 6px; height: 6px; background: var(--brass); transform: rotate(45deg); }
.flyout .more { display: inline-block; margin-top: 12px; font-size: .92rem; }
.rail-contact { margin-top: 18px; padding: 20px 22px; border: 1px solid var(--line); }
.rail-contact h3 { font-size: 1.1rem; margin-bottom: 6px; }
.rail-contact p { font-size: .94rem; color: var(--muted); margin-bottom: 14px; }
.rail-contact .btn { width: 100%; justify-content: center; }

/* Maxim band */
.maxim { background: var(--green-deep); color: #c9d6d3; text-align: center; }
.maxim .wrap { padding-block: clamp(56px, 8vw, 92px); }
.maxim blockquote { margin: 0 auto; max-width: 30ch; font-family: var(--display); color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.2; }
.maxim .latin { margin-top: 18px; font-style: italic; color: var(--brass); letter-spacing: .04em; }

/* Section with tinted ground */
.band { padding-block: clamp(60px, 8vw, 100px); }
.band.tint { background: var(--tint); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }

/* Info boxes: Why / FAQs / Links */
.boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.box { background: #fff; border: 1px solid var(--line); padding: 30px 30px 26px; display: flex; flex-direction: column; position: relative; }
.box::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: linear-gradient(90deg, var(--green) 0 70%, var(--brass) 70% 100%); }
.box h3 { display: flex; align-items: center; gap: 12px; font-size: 1.32rem; }
.box h3 .icon { color: var(--brass-deep); width: 26px; height: 26px; }
.box ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.box li { padding: 9px 0 9px 20px; border-bottom: 1px dashed var(--line); position: relative; font-size: .97rem; line-height: 1.45; }
.box li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 6px; height: 6px; background: var(--brass); transform: rotate(45deg); }
.box li a { text-decoration: none; color: var(--ink); }
.box li a:hover { color: var(--green); text-decoration: underline; }

/* Offices */
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.office { display: grid; grid-template-columns: 200px minmax(0, 1fr); background: #fff; border: 1px solid var(--line); }
.office img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.office-body { padding: 26px 28px; min-width: 0; }
.office-body h3 { margin-bottom: 2px; }
.office-body .tag { color: var(--brass-deep); font-weight: 600; font-size: .9rem; margin-bottom: 12px; display: block; }
.office address { font-style: normal; color: #3a4442; margin-bottom: 16px; }
.map-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.map-link .icon { color: var(--brass-deep); }

/* ---------- Inner page header ---------- */
.page-head { position: relative; background: var(--green); color: #d6e0dd; overflow: hidden; isolation: isolate; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 50% 90% at 85% 50%, #1e5657 0%, transparent 70%); }
.page-head .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 40px; align-items: center; padding-block: clamp(44px, 6vw, 64px); }
.page-head h1 { color: #fff; margin-bottom: 10px; }
.page-head p { color: #d1dcd9; max-width: 60ch; font-size: 1.1rem; margin: 0; }
.page-head .emblem { max-width: 230px; }
.crumbs { font-size: .9rem; color: #b5c6c2; margin-bottom: 18px; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { color: var(--brass); }
.crumbs span[aria-hidden] { margin: 0 8px; color: var(--brass); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(36px, 5vw, 64px); padding-block: clamp(48px, 7vw, 84px); }
.content { min-width: 0; }
.content > section + section { margin-top: 56px; }
.content p, .content li { color: #353f3d; }
.content ul.ticks { list-style: none; padding: 0; }
.content ul.ticks li { position: relative; padding: 7px 0 7px 30px; }
.content ul.ticks li::before { content: ""; position: absolute; left: 4px; top: .85em; width: 12px; height: 7px; border-left: 2px solid var(--brass-deep); border-bottom: 2px solid var(--brass-deep); transform: rotate(-45deg); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.panel { background: var(--tint); padding: 28px 30px; border-top: 3px solid var(--brass); }
.roles .panel { padding: 24px; }
.panel h3 { font-size: 1.28rem; }
.panel ul { margin: 0; }
.content .pull, .pull { margin: 34px 0; padding: 26px 30px; background: var(--green); color: #e4ecea; font-family: var(--display); font-size: 1.4rem; line-height: 1.35; }
.pull small { display: block; margin-top: 10px; font-family: var(--sans); font-size: .9rem; color: var(--brass); }

/* Sidebar — services always in view; FAQs and links fold away */
.sidebar { min-width: 0; }
.sidebar-inner { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.side-box { border: 1px solid var(--line); background: #fff; }
.side-box h2 { font-size: 1.1rem; margin: 0; padding: 14px 18px; background: var(--green); color: #fff; display: flex; align-items: center; gap: 10px; }
.side-box h2 .icon { color: var(--brass); }
.side-box ul { list-style: none; margin: 0; padding: 6px 0; }
.side-box .sub { font-family: var(--display); color: var(--brass-deep); font-size: .92rem; padding: 10px 18px 2px; }
.side-box a { display: block; padding: 6px 18px; color: var(--ink); text-decoration: none; font-size: .94rem; }
.side-box a:hover, .side-box a[aria-current="true"] { color: var(--green); background: var(--tint); box-shadow: inset 2px 0 0 var(--brass); }
details.side-more { border: 1px solid var(--line); background: #fff; }
details.side-more summary { list-style: none; cursor: pointer; padding: 13px 18px; font-family: var(--display); color: var(--green); font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
details.side-more summary::-webkit-details-marker { display: none; }
details.side-more summary .icon { color: var(--brass-deep); }
details.side-more summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 1.5px solid var(--brass-deep); border-bottom: 1.5px solid var(--brass-deep); transform: rotate(45deg); transition: transform .2s; }
details.side-more[open] summary::after { transform: rotate(-135deg); }
details.side-more ul { list-style: none; margin: 0; padding: 0 0 8px; border-top: 1px solid var(--mist); }
details.side-more a { display: block; padding: 6px 18px; color: var(--ink); text-decoration: none; font-size: .93rem; }
details.side-more a:hover { color: var(--green); background: var(--tint); }

/* Practice-area detail blocks */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 34px; padding: 0; list-style: none; }
.jump a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 40px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--green); }
.jump a:hover { border-color: var(--brass); background: var(--tint); }
.jump .icon { color: var(--brass-deep); width: 1.1em; height: 1.1em; }
.area { padding-top: 40px; border-top: 1px solid var(--line); }
.area-head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.badge { width: 60px; height: 60px; flex: none; display: grid; place-items: center; color: var(--brass); position: relative; }
.badge::before { content: ""; position: absolute; inset: 8px; background: var(--green); border-radius: 6px; transform: rotate(45deg); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--brass); }
.badge .icon { width: 24px; height: 24px; position: relative; }
.area-head h2 { margin: 0; font-size: 1.85rem; }
.service-list { list-style: none; padding: 0; margin: 18px 0 0; columns: 2; column-gap: 32px; }
.service-list li { break-inside: avoid; padding: 8px 0 8px 22px; border-bottom: 1px solid var(--mist); position: relative; line-height: 1.45; }
.service-list li::before { content: ""; position: absolute; left: 3px; top: 1.05em; width: 7px; height: 7px; background: var(--brass); transform: rotate(45deg); }
.note { font-size: .92rem; color: var(--muted); background: var(--tint); padding: 14px 18px; border-left: 3px solid var(--line); }

/* Process timeline — a real sequence, so the steps are numbered */
.process { margin: 30px 0 6px; padding: 24px 0 0; border-top: 1px dashed var(--line); }
.process h3 { font-size: 1.18rem; margin-bottom: 18px; }
.process ol { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; counter-reset: step; }
.process li { counter-increment: step; position: relative; padding: 48px 14px 0 0; }
.process li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--brass); color: var(--green); font: 600 .95rem/1 var(--sans); border-radius: 50%; z-index: 1; }
.process li::after { content: ""; position: absolute; left: 34px; right: 0; top: 17px; height: 1px; background: var(--brass); }
.process li:last-child::after { display: none; }
.process strong { display: block; font-weight: 600; color: var(--ink); line-height: 1.3; margin-bottom: 4px; }
.process span { display: block; font-size: .87rem; color: var(--muted); line-height: 1.4; }

/* FAQs */
.faq-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; }
.faq-search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); padding: 0 14px; background: #fff; }
.faq-search input { border: 0; padding: 13px 0; font: inherit; width: 100%; background: transparent; color: var(--ink); }
.faq-search input:focus { outline: none; }
.faq-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 2px rgba(208,170,47,.35); }
.faq-group { margin-bottom: 48px; }
.faq-group h2 { display: flex; align-items: center; gap: 14px; }
.faq-group h2 .icon { color: var(--brass-deep); width: 30px; height: 30px; }
details.faq { border-bottom: 1px solid var(--line); }
details.faq summary { list-style: none; cursor: pointer; padding: 16px 40px 16px 0; font-weight: 600; color: var(--ink); position: relative; font-size: 1.03rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: ""; position: absolute; right: 8px; top: 1.3em; width: 9px; height: 9px; border-right: 2px solid var(--brass-deep); border-bottom: 2px solid var(--brass-deep); transform: rotate(45deg); transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(-135deg); top: 1.55em; }
details.faq summary:hover { color: var(--green); }
details.faq .answer { padding: 0 0 18px; color: #353f3d; max-width: 70ch; }
details.faq .answer ol, details.faq .answer ul { margin: 6px 0 0; }
.faq-empty { display: none; padding: 20px; background: var(--tint); }

/* Forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.form .full { grid-column: 1 / -1; }
.field { min-width: 0; }
.field label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 6px; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #b9c6c3; border-radius: var(--radius); padding: 12px 14px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(208,170,47,.3); }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: #3a4442; }
.check input { margin-top: 5px; width: 17px; height: 17px; accent-color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.form-status { grid-column: 1 / -1; padding: 14px 18px; border-left: 3px solid; display: none; }
.form-status.ok { display: block; background: #eaf3ee; border-color: #2e7d55; color: #1d4d35; }
.form-status.err { display: block; background: #fbeeee; border-color: #b23b3b; color: #6e1f1f; }

/* Contact page */
.contact-cards { display: grid; grid-template-columns: 1fr 1.15fr 1.5fr; gap: 20px; margin-bottom: 8px; }
.contact-card { border: 1px solid var(--line); padding: 24px; display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
.contact-card .icon { width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: var(--green); color: var(--brass); }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.contact-card p { margin: 0; font-size: .97rem; }
.contact-card a { text-decoration: none; font-weight: 600; }
.content .offices { grid-template-columns: 1fr; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--green-deep); color: #c3d0cd; font-size: .95rem; overflow: hidden; isolation: isolate; }
.site-footer .watermark { position: absolute; right: -60px; bottom: -80px; width: 420px; opacity: .06; z-index: -1; pointer-events: none; }
.site-footer > .wrap { padding-block: 64px 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h2 { font-size: 1.1rem; color: #fff; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(208,170,47,.4); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 4px 0; }
.site-footer a { color: #e3ebe9; text-decoration: none; }
.site-footer a:hover { color: var(--brass); }
.footer-brand img { width: 250px; margin-bottom: 18px; }
.footer-brand p { color: #a9bab6; font-size: .92rem; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--brass); margin-top: 4px; width: 1em; height: 1em; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; color: #94a8a4; }

/* Floating contact buttons (right edge) */
.social-rail { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 80; display: flex; flex-direction: column; padding-right: env(safe-area-inset-right, 0px); }
.social-rail a { display: flex; align-items: center; gap: 12px; width: 46px; height: 46px; padding: 0 13px; overflow: hidden; white-space: nowrap; background: var(--green); color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; border-bottom: 1px solid rgba(255,255,255,.12); transition: width .25s ease, background .2s; margin-left: auto; }
.social-rail a .icon { width: 20px; height: 20px; color: var(--brass); }
.social-rail a span { opacity: 0; transition: opacity .2s; }
.social-rail a:hover, .social-rail a:focus-visible { width: 170px; background: var(--green-soft); }
.social-rail a:hover span, .social-rail a:focus-visible span { opacity: 1; }
.social-rail a[hidden] { display: none; }

/* ---------- Disclaimer gate ---------- */
.gate { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; padding: 20px; background: radial-gradient(ellipse at 50% 20%, #1b5051 0%, var(--green-deep) 70%); overflow: auto; }
html.gate-open .gate { display: grid; }
html.gate-open body { overflow: hidden; }
.gate-card { width: min(780px, 100%); text-align: center; color: #d5e0dd; padding: 18px 0; }
.gate-card img { width: 230px; margin: 0 auto 26px; }
.gate-card h2 { color: #fff; font-size: 1.6rem; }
.gate-text { text-align: left; font-size: .97rem; line-height: 1.7; max-height: 44vh; overflow: auto; padding: 22px 26px; border: 1px solid rgba(208,170,47,.45); background: rgba(0,0,0,.18); margin-bottom: 26px; }
.gate-text p:last-child { margin: 0; }
.gate-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .dropdown.mega { left: -220px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .office { grid-template-columns: 1fr; }
  .office img { height: 200px; min-height: 0; }
  .process ol { grid-auto-flow: row; grid-template-columns: 1fr; }
  .process li { padding: 2px 0 18px 50px; }
  .process li::after { left: 17px; top: 34px; bottom: 0; right: auto; width: 1px; height: auto; }
}
@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .brand img { height: 46px; }
  .menu-toggle { display: inline-flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); background: #fff; border-top: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px max(var(--gutter), env(safe-area-inset-right, 0px)) 40px max(var(--gutter), env(safe-area-inset-left, 0px)); overflow: auto; display: none; }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; }
  .nav > ul > li > a, .nav > ul > li > button { height: auto; padding: 16px 4px; width: 100%; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .dropdown, .dropdown.mega { position: static; width: auto; box-shadow: none; border: 0; transform: none; display: none; opacity: 1; visibility: visible; padding: 4px 0 10px 12px; }
  .nav li.open > .dropdown { display: block; }
  .dropdown.mega { grid-template-columns: 1fr; }
  .nav .cta { margin: 20px 0 0; justify-content: center; }
  .masthead .wrap { grid-template-columns: 1fr; }
  .masthead .emblem { max-width: 300px; order: -1; }
  .home-grid, .layout, .practice-split, .offices, .two-col, .roles, .boxes, .contact-cards { grid-template-columns: 1fr; }
  .rail-wrap { position: static; }
  .home-rail { display: none; }
  .flyout { display: none; }
  .services-rail li > a::after { transform: translateY(-50%) rotate(-135deg); }
  .page-head .wrap { grid-template-columns: 1fr; }
  .page-head .emblem { display: none; }
  .sidebar-inner { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar .hide-sm { display: none; }
  .service-list { columns: 1; }
  .facts { grid-template-columns: 1fr; }
  .facts div { border-right: 0; border-bottom: 1px solid var(--line); margin: 0; }
  .facts div:last-child { border-bottom: 0; }
  .form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .masthead .pillars div { padding: 4px 14px; }
  .social-rail { top: auto; bottom: 0; transform: none; flex-direction: row; right: 0; left: 0; padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); background: var(--green); }
  .social-rail a { flex: 1; width: auto; justify-content: center; margin: 0; border-bottom: 0; border-right: 1px solid rgba(255,255,255,.12); }
  .social-rail a span { display: none; }
  .social-rail a:hover, .social-rail a:focus-visible { width: auto; }
  .site-footer { padding-bottom: 46px; }
  .process ol { grid-template-columns: 1fr; }
  .process li { padding: 2px 0 18px 50px; }
  .process li::after { left: 17px; top: 34px; bottom: 0; right: auto; width: 1px; height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .site-header, .social-rail, .sidebar, .home-rail, .site-footer, .gate { display: none !important; }
}
