/* ------------------------------------------------------------------
   Law Office of Thomas Jacob — site styles
   Palette and type come from docs/DESIGN-BRIEF.md
   ------------------------------------------------------------------ */

:root {
  --navy: #2e3a5f;
  --navy-deep: #222c4a;
  --red: #be2a3c;
  --paper: #f7f5f0;
  --paper-2: #efece5;
  --white: #ffffff;
  --line: #e3e0d8;
  --line-strong: #cfcbc0;
  --ink: #1f2430;
  --muted: #6b7080;
  --muted-2: #9a9eab;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  --max: 1120px;
  --gutter: clamp(24px, 5vw, 72px);
  --radius: 6px;
  --radius-lg: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-feature-settings: "cv11", "ss01", "calt";
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.05;
  text-wrap: balance;
  font-feature-settings: "kern", "liga", "onum";
}
h1 { font-size: clamp(40px, 6vw, 68px); }
h2 { font-size: clamp(32px, 4.2vw, 48px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; }
h4 { font-family: var(--sans); font-weight: 600; font-size: 18px; color: var(--ink); line-height: 1.3; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 56ch; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Layout ---------------------------------------------------------- */

.wrap { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }

.section { padding-block: clamp(64px, 9vw, 120px); }
.section + .section { padding-top: 0; }
.section--tight { padding-block: clamp(28px, 4vw, 48px); }


.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head .lede { margin-top: 16px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
  display: flex; align-items: center; gap: 12px;
}

.arrow-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; color: var(--navy);
}
.arrow-link::after { content: "→"; transition: transform .25s var(--ease); }
.arrow-link { position: relative; padding-bottom: 2px; }
.arrow-link::before { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.arrow-link:hover { text-decoration: none; }
.arrow-link:hover::before { transform: scaleX(1); }
.arrow-link:hover::after { transform: translateX(4px); }

/* Buttons --------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px;
  font-family: var(--sans); font-size: 15px; font-weight: 500; line-height: 1;
  border-radius: var(--radius);
  border: 1px solid var(--navy);
  background: var(--navy); color: var(--white);
  cursor: pointer; text-decoration: none;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: rgba(46,58,95,.06); }
.btn--light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--light:hover { background: var(--paper); border-color: var(--paper); }
.btn--sm { padding: 14px 30px; font-size: 14px; }
.btn--arrow::after { content: "→"; display: inline-block; width: 0; opacity: 0; transform: translateX(-6px); transition: width .3s var(--ease), opacity .3s var(--ease), transform .3s var(--ease); }
.btn--arrow:hover::after { width: 1em; opacity: 1; transform: none; }

/* Header ---------------------------------------------------------- */

.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 92px; gap: 24px; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink); }
.nav a { position: relative; padding: 4px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--navy); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"]::after { background: var(--red); }
.nav a:hover { color: var(--navy); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--navy); }
.nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy);
}
.nav-toggle svg { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 92px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin: 16px 0 0; border-bottom: 0; }
}

/* Hero ------------------------------------------------------------ */

.hero { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 48px); position: relative; overflow: hidden; }
.bg-grid, .bg-drift { position: absolute; inset: 0; pointer-events: none; }
.bg-grid {
  background-image: radial-gradient(circle, rgba(46,58,95,.22) 1px, transparent 1.2px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 85% 30%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 80% at 85% 30%, #000 0%, transparent 70%);
  opacity: .9;
}
.bg-drift {
  background:
    radial-gradient(40% 45% at var(--dx, 78%) var(--dy, 35%), rgba(46,58,95,.10), transparent 70%),
    radial-gradient(28% 32% at calc(var(--dx, 78%) - 18%) calc(var(--dy, 35%) + 30%), rgba(190,42,60,.07), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate;
  filter: blur(10px);
}
@keyframes drift {
  0%   { --dx: 78%; --dy: 35%; transform: translate3d(0,0,0); }
  50%  { transform: translate3d(-3%, 4%, 0) scale(1.04); }
  100% { transform: translate3d(2%, -3%, 0) scale(.98); }
}
.hero .wrap { position: relative; }
.hero-meta { margin-top: 36px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted-2); }
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 96px); align-items: center;
}
.hero h1 { margin-bottom: 24px; }
.hero .lede { margin-bottom: 36px; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-figure { position: relative; margin: 0; }
.hero-figure::before {
  content: ""; position: absolute; inset: 0; transform: translate(16px, 16px);
  border: 1px solid rgba(46,58,95,.28); border-radius: var(--radius-lg); pointer-events: none;
  transition: transform .6s var(--ease);
}
.hero-figure:hover::before { transform: translate(10px, 10px); }
.hero-figure img { will-change: transform; }
.duotone { background: var(--navy); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 4; position: relative; }
.duotone img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; mix-blend-mode: luminosity; opacity: .92; filter: contrast(1.08); border-radius: 0; }
.duotone::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(46,58,95,0) 40%, rgba(46,58,95,.45)); }
.hero-figure figcaption {
  position: absolute; left: 16px; bottom: 16px;
  background: color-mix(in srgb, var(--white) 92%, transparent);
  backdrop-filter: blur(6px);
  padding: 10px 14px; border-radius: var(--radius);
  font-size: 13px; line-height: 1.3;
}
.hero-figure figcaption strong { display: block; font-weight: 600; color: var(--navy); }
.hero-figure figcaption span { color: var(--muted); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure { order: 1; }
  .duotone { aspect-ratio: 16 / 10; }
}

/* Trust strip ----------------------------------------------------- */

.trust {
  margin-bottom: clamp(24px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
}
.trust > div { padding: 28px 28px 28px 0; margin-right: 28px; border-right: 1px solid var(--line); }
.trust > div:last-child { border-right: 0; margin-right: 0; }
.trust .label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.trust .value { font-family: var(--serif); font-size: 24px; color: var(--navy); line-height: 1.15; }
.trust .value small { display: block; font-family: var(--sans); font-size: 14px; color: var(--muted); margin-top: 6px; }
.trust .badge { display: flex; align-items: center; gap: 14px; }
.trust .badge img { width: 56px; height: 56px; flex: none; }

@media (max-width: 760px) {
  .trust { grid-template-columns: 1fr; }
  .trust > div { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding: 20px 0; }
  .trust > div:last-child { border-bottom: 0; }
}

/* Service groups and cards --------------------------------------- */

.service-group { margin-bottom: clamp(40px, 5vw, 64px); }
.service-group:last-child { margin-bottom: 0; }
.service-group-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 14px; margin-bottom: 20px;
}
.service-group-head h3 { font-size: 22px; }
.service-group-head .count { font-family: var(--mono); font-size: 12px; color: var(--muted-2); letter-spacing: .08em; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
a.card { color: inherit; }
a.card:hover { text-decoration: none; border-color: var(--line-strong); transform: translateY(-2px); box-shadow: 0 10px 30px -18px rgba(46,58,95,.35); }
.card h4 { color: var(--navy); }
.card p { font-size: 15px; color: var(--muted); }
.card .arrow-link { margin-top: auto; font-size: 14px; }

@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* Numbered steps -------------------------------------------------- */

.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.steps li {
  display: grid; grid-template-columns: 80px 1fr 1.4fr; gap: 24px; align-items: start;
  padding: 28px 0; border-bottom: 1px solid var(--line); position: relative;
  transition: padding-left .35s var(--ease);
}
.steps li::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--navy); transition: width .5s var(--ease); }
.steps li:hover::before { width: 100%; }
.steps li:hover { padding-left: 8px; }
.steps .num { font-family: var(--mono); font-size: 13px; color: var(--red); letter-spacing: .08em; padding-top: 6px; }
.steps h4 { font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--navy); }
.steps p { color: var(--muted); font-size: 16px; }
@media (max-width: 760px) {
  .steps li { grid-template-columns: 56px 1fr; }
  .steps p { grid-column: 2; }
}

/* Split (attorney) ------------------------------------------------ */

.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split .section-head { margin-bottom: 24px; }
.split-figure img { border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.credential { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.credential img { width: 64px; height: 64px; }
.credential strong { display: block; font-weight: 600; color: var(--navy); }
.credential span { font-size: 14px; color: var(--muted); }
.prose p { max-width: 62ch; }
.prose p + p { margin-top: 1em; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-figure { max-width: 380px; } }

/* Reviews --------------------------------------------------------- */

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.review {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 20px;
}
.review { position: relative; overflow: hidden; }
.review::before {
  content: ""; position: absolute; right: 20px; top: 18px; width: 22px; height: 22px; pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 100'><g fill='%232e3a5f' fill-opacity='.09'><path d='M4 30a26 26 0 1 1 52 0v6c0 28-15 47-43 56l-7-12c18-7 28-19 29-34A26 26 0 0 1 4 30z'/><path d='M64 30a26 26 0 1 1 52 0v6c0 28-15 47-43 56l-7-12c18-7 28-19 29-34A26 26 0 0 1 64 30z'/></g></svg>") center / contain no-repeat;
}
.review blockquote { margin: 0; font-family: var(--serif); font-size: 20px; line-height: 1.4; color: var(--navy); position: relative; }
.review blockquote::before { content: "\201C"; }
.review blockquote::after { content: "\201D"; }
.review footer { margin-top: auto; font-size: 14px; }
.review footer strong { display: block; font-weight: 600; color: var(--ink); }
.review footer span { color: var(--muted); }
@media (max-width: 960px) { .reviews { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .reviews { grid-template-columns: 1fr; } }

/* Navy panel ------------------------------------------------------ */

.panel {
  background: var(--navy); color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 96px) clamp(28px, 5vw, 80px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.panel::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(520px circle at var(--mx, 75%) var(--my, 40%), rgba(255,255,255,.10), transparent 60%);
  pointer-events: none; transition: opacity .4s;
}
.panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle, rgba(255,255,255,.14) 1px, transparent 1.2px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 100% 50%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 90% at 100% 50%, #000, transparent 70%);
}
.panel > * { position: relative; z-index: 1; }
.panel h2 { color: var(--white); margin-bottom: 16px; }
.panel p { color: rgba(255,255,255,.72); max-width: 48ch; font-size: 17px; }
.panel .eyebrow { color: rgba(255,255,255,.6); }
.panel-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; justify-self: end; }
.panel-actions .note { font-size: 13px; color: rgba(255,255,255,.55); }
@media (max-width: 860px) { .panel { grid-template-columns: 1fr; } .panel-actions { justify-self: start; } }

/* Contact --------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 96px 1fr; gap: 16px; }
.contact-list .k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.contact-list .v { font-size: 17px; }
.contact-list .v a { font-weight: 500; }
.contact-list .v small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 16px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--white); width: 100%;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(46,58,95,.12); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); line-height: 1.5; }
.form-note a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* Page hero (inner pages) ---------------------------------------- */

.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 5vw, 56px); position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; }
.page-hero h1 { margin-bottom: 20px; max-width: 18ch; }
.page-hero .lede { max-width: 60ch; }

/* Services page --------------------------------------------------- */

.services-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.toc { position: sticky; top: 100px; }
.toc h4 { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ul { list-style: none; margin: 0 0 24px; padding: 0; }
.toc li a { display: block; padding: 6px 0 6px 12px; font-size: 14px; color: var(--muted); border-left: 1px solid var(--line); }
.toc li a:hover, .toc li a.is-active { color: var(--navy); border-left-color: var(--red); text-decoration: none; }
@media (max-width: 900px) { .services-layout { grid-template-columns: 1fr; } .toc { position: static; } .toc ul { display: flex; flex-wrap: wrap; gap: 6px 14px; } .toc li a { border-left: 0; padding: 4px 0; } }

.service { padding: 32px 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; }
.service:last-child { border-bottom: 1px solid var(--line); }
.service h3 { font-size: 26px; }
.service .meta { font-family: var(--mono); font-size: 12px; color: var(--muted-2); letter-spacing: .08em; margin-top: 8px; }
.service > div > .meta:first-child { margin: 0 0 10px; color: var(--red); }
.service p { color: var(--ink); max-width: 62ch; }
.service .arrow-link { font-size: 15px; margin-top: 6px; display: inline-flex; }
.service-family { margin-top: clamp(40px, 5vw, 64px); scroll-margin-top: 96px; }
.service-family:first-child { margin-top: 0; }
.service-family > h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 8px; }
.service-family > .lede { font-size: 17px; margin-bottom: 20px; }
@media (max-width: 700px) { .service { grid-template-columns: 1fr; gap: 12px; } }

/* Booking --------------------------------------------------------- */

.book-layout { display: grid; grid-template-columns: 360px 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.book-facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.book-facts li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.book-facts .k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.book-facts .v { font-family: var(--serif); font-size: 22px; color: var(--navy); }
.book-facts .v small { display: block; font-family: var(--sans); font-size: 14px; color: var(--muted); margin-top: 4px; }
.book-embed {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  min-height: 640px; overflow: hidden;
}
.book-embed .placeholder {
  min-height: 640px; display: grid; place-items: center; text-align: center; padding: 40px; color: var(--muted);
}
.book-embed .placeholder strong { display: block; font-family: var(--serif); font-size: 24px; color: var(--navy); margin-bottom: 8px; font-weight: 400; }
@media (max-width: 900px) { .book-layout { grid-template-columns: 1fr; } }

/* Legal pages ----------------------------------------------------- */

.legal { max-width: 720px; }
.legal h2 { font-size: 26px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink); }
.legal .updated { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .08em; }

/* Footer ---------------------------------------------------------- */

.footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: clamp(48px, 6vw, 80px) 0 32px; margin-top: clamp(64px, 9vw, 120px); }
.footer a { color: rgba(255,255,255,.85); }
.footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand .name { font-family: var(--serif); font-size: 24px; color: var(--white); line-height: 1.1; }
.footer-brand .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-top: 8px; }
.footer-brand address { font-style: normal; margin-top: 20px; font-size: 14px; line-height: 1.6; }
.footer h4 { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; font-size: 15px; }
.footer-legal { padding-top: 24px; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.5); display: grid; gap: 10px; }
.footer-legal p { max-width: 90ch; }
.footer { position: relative; overflow: hidden; }
.footer .wrap { position: relative; z-index: 1; }
.footer-mark {
  position: absolute; left: 0; right: 0; bottom: -0.28em; text-align: center;
  font-family: var(--serif); font-size: clamp(96px, 17vw, 260px); line-height: 1; white-space: nowrap;
  color: rgba(255,255,255,.045); letter-spacing: -0.03em; pointer-events: none; user-select: none;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal on scroll ------------------------------------------------ */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc((var(--i, 1) - 1) * 90ms); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Family cards (home) --------------------------------------------- */

.families { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.family-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 16px; color: inherit;
  transition: border-color .2s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.family-card:hover { border-color: rgba(46,58,95,.35); }
.family-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.family-head h3 { font-size: 24px; }
.family-head .count { font-family: var(--mono); font-size: 12px; color: var(--red); letter-spacing: .08em; }
.family-card > p { font-size: 15px; color: var(--muted); }
.family-list { border-top: 1px solid var(--line); }
.svc { border-bottom: 1px solid var(--line); }
.svc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 14px; padding: 10px 0; color: var(--ink); transition: color .2s;
}
.svc summary::-webkit-details-marker { display: none; }
.svc summary:hover { color: var(--navy); }
.svc .chev { flex: none; color: var(--muted-2); transition: transform .3s var(--ease), color .2s; }
.svc summary:hover .chev { color: var(--navy); }
.svc[open] .chev { transform: rotate(180deg); color: var(--red); }
.svc[open] summary { color: var(--navy); }
.svc-body { padding: 0 0 14px; font-size: 14px; color: var(--muted); animation: svc-in .3s var(--ease); }
.svc-body p { margin-bottom: 6px; }
.svc-body .arrow-link { font-size: 13px; }
@keyframes svc-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.family-card .arrow-link { margin-top: auto; font-size: 14px; padding-top: 4px; }
@media (max-width: 960px) { .families { grid-template-columns: 1fr; } }

/* Small refinements */
h1 { font-size: clamp(40px, 5.6vw, 62px); }
.trust .badge img, .credential img { filter: none; opacity: 0; }
.trust .badge, .credential { --badge: url("../img/aila.png"); }
.trust .badge img, .credential img { opacity: 1; -webkit-mask: var(--badge) center / contain no-repeat; mask: var(--badge) center / contain no-repeat; background: var(--navy); object-fit: contain; }
.trust .badge img { background: var(--navy); }
.wrap.legal { width: min(720px, 100% - var(--gutter) * 2); margin-inline: max(var(--gutter), calc((100% - var(--max)) / 2)) auto; }
@property --dx { syntax: "<percentage>"; inherits: false; initial-value: 78%; }
@property --dy { syntax: "<percentage>"; inherits: false; initial-value: 35%; }

/* Fixes after review */
.nav .btn, .nav .btn:hover { color: var(--white); padding: 14px 28px; font-size: 14px; }
.footer { margin-top: 0; padding-bottom: clamp(72px, 10vw, 160px); }
.footer-mark { font-size: clamp(72px, 12vw, 190px); bottom: -0.22em; color: rgba(255,255,255,.035); }


/* Travelling orb on booking buttons --------------------------------- */
.btn--glow { position: relative; }
@supports (offset-path: inset(0 round 6px)) {
  .btn--glow::before {
    content: ""; position: absolute; top: 0; left: 0; width: 5px; height: 5px; border-radius: 50%;
    background: #fff; box-shadow: 0 0 6px 1.5px rgba(255,255,255,.85), 0 0 14px 3px rgba(255,255,255,.35);
    offset-path: inset(0 round var(--radius)); offset-distance: 0%; offset-rotate: 0deg;
    animation: orb 5.5s linear infinite; pointer-events: none;
  }
}
@keyframes orb { to { offset-distance: 100%; } }
@media (prefers-reduced-motion: reduce) { .btn--glow::before { display: none; } }

/* Ratings and stars -------------------------------------------------- */
.ratings { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: -30px 0 28px; padding-left: 6px; }
.rating { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.stars { display: flex; gap: 5px; }
.star { fill: var(--navy); }
.rating-caption { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); padding-left: 3px; }
.review-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white);
  font-size: 13px; font-weight: 500; color: var(--navy);
  transition: border-color .2s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pill svg { color: var(--muted-2); transition: color .2s, transform .25s var(--ease); }
.pill:hover { text-decoration: none; border-color: var(--navy); transform: translateY(-1px); box-shadow: 0 8px 20px -14px rgba(46,58,95,.5); }
.pill:hover svg { color: var(--red); transform: translate(1px, -1px); }

/* Red accents ------------------------------------------------------ */
.footer-brand .tag { color: rgba(190,42,60,.85); }

.trust .badge img, .credential img { object-position: 300% 0; }

/* Review highlights ------------------------------------------------- */
.review mark {
  color: inherit; background: none;
  background-image: linear-gradient(rgba(190,42,60,.14), rgba(190,42,60,.14));
  background-repeat: no-repeat; background-size: 0% 100%; background-position: 0 0;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  padding: 0 .08em; margin: 0 -.08em; border-radius: 2px;
  transition: background-size .9s var(--ease);
  transition-delay: calc((var(--i, 1) - 1) * 90ms + .35s);
}
.review.is-visible mark { background-size: 100% 100%; }
@media (prefers-reduced-motion: reduce) { .review mark { background-size: 100% 100%; transition: none; } }

/* Attorney card ----------------------------------------------------- */
.attorney-card {
  display: grid; grid-template-columns: .9fr 1.3fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px); position: relative; overflow: hidden;
}
.attorney-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image: radial-gradient(circle, rgba(46,58,95,.16) 1px, transparent 1.2px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 45% 70% at 0% 100%, #000, transparent 70%); mask-image: radial-gradient(ellipse 45% 70% at 0% 100%, #000, transparent 70%);
}
.attorney-photo { margin: 0; position: relative; aspect-ratio: 4 / 5; }
.attorney-card { perspective: none; overflow: visible; }
.attorney-photo { margin: 0 auto; width: min(100%, 360px); }
.attorney-card { grid-template-columns: 1fr 1.3fr; }
/* A rounded slab. The photo is the front; the same photo, blurred, wraps the sides so the depth is the image continuing.
   Lighting does the rest: a soft highlight at the top-left, a deeper shade toward the bottom-right, a wide soft shadow beneath. */
.attorney-photo { --d: 30px; --r: 18px; transform-style: preserve-3d; animation: rock 9s ease-in-out infinite alternate; }
.attorney-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: var(--r); transform: translateZ(calc(var(--d) / 2)); backface-visibility: hidden; }
.attorney-photo::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--r); pointer-events: none;
  transform: translateZ(calc(var(--d) / 2 + 1px));
  background: linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.06) 30%, rgba(255,255,255,0) 55%, rgba(18,22,36,.34));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.55), inset 2px 0 0 rgba(255,255,255,.3), inset -22px -26px 48px rgba(18,22,36,.34), inset 0 -2px 0 rgba(18,22,36,.25);
}
/* The depth: thin rounded slices of the blurred photo stacked behind the face, so the extrusion keeps the corner radius. */
.slice { position: absolute; inset: 0; border-radius: var(--r); overflow: hidden; transform: translateZ(calc(var(--d) / 2 - var(--z) * 2px)); backface-visibility: hidden; filter: brightness(calc(1 - var(--z) * 0.022)); }
.slice::before { content: ""; position: absolute; inset: -40px; background: url("../img/thomas-jacob-2026.jpg") center 30% / cover no-repeat; filter: blur(22px) brightness(.9); }
.slice-last { box-shadow: 0 56px 80px -30px rgba(18,22,36,.45), 0 20px 32px -18px rgba(18,22,36,.25); }
@keyframes rock { from { transform: perspective(1500px) rotateX(-3deg) rotateY(5deg); } to { transform: perspective(1500px) rotateX(-3deg) rotateY(17deg); } }
@media (prefers-reduced-motion: reduce) { .attorney-photo { animation: none; transform: perspective(1500px) rotateX(-3deg) rotateY(11deg); } }
.attorney-body { position: relative; }
.attorney-body .section-head { margin-bottom: 20px; }
.attorney-body .rule { display: block; width: 0; height: 2px; background: var(--red); margin-top: 16px; transition: width 1s var(--ease) .3s; }
.is-visible .attorney-body .rule { width: 48px; }
.attorney-body .prose p { font-size: 16px; }
.facts { list-style: none; margin: 24px 0; padding: 0; border-top: 1px solid var(--line); }
.facts li {
  display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink);
  opacity: 0; transform: translateX(-8px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 120ms + .3s);
}
.is-visible .facts li { opacity: 1; transform: none; }
.facts .fact-k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); width: 56px; flex: none; }
.badge-mask { width: 40px; height: 40px; flex: none; -webkit-mask: url("../img/aila.png") center / contain no-repeat; mask: url("../img/aila.png") center / contain no-repeat; background: var(--navy); object-position: 300% 0; }
.attorney-body .hero-actions { gap: 28px; }
@media (max-width: 860px) { .attorney-card { grid-template-columns: 1fr; } .attorney-photo { max-width: 360px; } }


/* Hero tag ---------------------------------------------------------- */
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px;
  padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white);
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--navy);
}


.dots { position: fixed; inset: 0; z-index: 0; pointer-events: none; display: block; }

/* Booking panel: dot grid fading on a diagonal ------------------------- */
.panel-cal {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.18) 1.2px, transparent 1.6px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(225deg, #000 0%, rgba(0,0,0,.5) 28%, transparent 62%);
  mask-image: linear-gradient(225deg, #000 0%, rgba(0,0,0,.5) 28%, transparent 62%);
}
.panel::before { display: none; }
.panel-actions { position: relative; z-index: 1; }

/* Second tone: steel blue for text-and-arrow links --------------------- */
:root { --steel: #5d73a3; }
.arrow-link { color: var(--steel); }
.arrow-link:hover { color: var(--navy); }
.svc-body .arrow-link, .family-card .arrow-link, .service .arrow-link, .attorney-body .arrow-link, .hero-actions .arrow-link { color: var(--steel); }
.pill { color: var(--steel); }
.pill:hover { color: var(--navy); }
.contact-list .v a, .book-facts .v a { color: var(--steel); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { height: 40px; width: 40px; }

/* Calendly booking embed */
.book-embed .calendly { display: block; width: 100%; height: 760px; border: 0; border-radius: var(--radius-lg); background: var(--white); }
.book-fallback { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.book-fallback a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .book-embed .calendly { height: 980px; } }
