/* ==========================================================
   Oliveira Advocacia
   ========================================================== */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/SourceSerif4-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/SourceSerif4-italic.woff2) format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/PublicSans-normal.woff2) format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f5f6f7;
  --paper-2: #eceef1;
  --card: #fbfbfc;
  --ink: #0f2340;
  --ink-2: #33415a;
  --ink-3: #56627a;
  --rule: #d3d8e0;
  --rule-strong: #a9b2c1;
  --gold: #b8914a;
  --gold-ink: #7a5c20;

  --field: #0f2340;
  --field-2: #152b4d;
  --on-field: #eef1f6;
  --on-field-2: #b7c2d3;
  --on-field-rule: #2c4266;
  --gold-on-field: #d6b77b;

  --btn-bg: var(--ink);
  --btn-fg: #f5f6f7;
  --btn-bg-hover: #1b3257;

  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --header-h: 72px;
  --section-y: clamp(72px, 10vw, 128px);
  --shadow-menu: 0 16px 24px -16px rgb(15 35 64 / 0.22);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1628;
    --paper-2: #0f1d33;
    --card: #11203a;
    --ink: #e8ecf2;
    --ink-2: #bcc6d4;
    --ink-3: #a9b8cf;
    --rule: #22334f;
    --rule-strong: #3a4e6e;
    --gold: #caa865;
    --gold-ink: #d6b77b;

    --field: #07101e;
    --field-2: #0c1a2f;
    --on-field-rule: #1f3150;

    --btn-bg: #e8ecf2;
    --btn-fg: #0b1628;
    --btn-bg-hover: #ffffff;

    --shadow-menu: 0 16px 24px -16px rgb(0 0 0 / 0.55);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-color: var(--rule-strong) var(--paper);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

::selection { background: var(--gold); color: #0f2340; }

h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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;
}
.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

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

.ic { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.nowrap { white-space: nowrap; }

/* ---------- Type ---------- */
.display, .h2, .h3, .h4 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  color: var(--ink);
  text-wrap: balance;
}
.display {
  font-size: clamp(2.6rem, 1.4rem + 4.6vw, 4.75rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.022em;
}
.h2 {
  font-size: clamp(2rem, 1.35rem + 2.3vw, 3.1rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.018em;
}
.h3 {
  font-size: clamp(1.55rem, 1.25rem + 1vw, 2.05rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.012em;
}
.h4 {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.006em;
}
.lead {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34em;
  text-wrap: pretty;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 2px;
  font: 600 1rem/1 var(--sans);
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-gold { background: var(--on-field); color: #0f2340; }
.btn-sm { min-height: 42px; padding: 0 1.05rem; font-size: 0.9375rem; }
.btn-block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--btn-bg-hover); }
  .btn-gold:hover { background: #ffffff; }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}
.link-arrow .ic { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover .ic { transform: translateX(3px); }
  .link-arrow:hover { text-decoration-thickness: 2px; }
}
.link-sm { font-size: 0.9375rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.site-header.is-stuck { border-bottom-color: var(--rule); }
@supports (backdrop-filter: blur(1px)) {
  .site-header { backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
}
.header-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
}
.brand { display: block; flex: none; padding: 6px 0; }
.brand-lockup {
  display: block;
  width: 168px;
  aspect-ratio: 1713 / 482;
  background: var(--ink);
  -webkit-mask: url(img/logo-lockup.png?v=3) center / contain no-repeat;
  mask: url(img/logo-lockup.png?v=3) center / contain no-repeat;
}
.nav { margin-left: auto; }
.nav-list { display: flex; gap: 2rem; }
.nav-list a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 1px no-repeat;
  transition: color 200ms ease, background-size 250ms var(--ease-out);
}
.nav-list a[aria-current="true"] { color: var(--ink); background-size: 100% 1px; }
@media (hover: hover) and (pointer: fine) {
  .nav-list a:hover { color: var(--ink); background-size: 100% 1px; }
}
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.menu-btn {
  display: none;
  place-items: center;
  width: 44px; height: 44px;
  margin-right: -10px;
  border: 0; background: none; color: var(--ink);
  cursor: pointer;
}
.menu-btn .ic { width: 24px; height: 24px; }
.menu-btn .ic-close { display: none; }
.menu-btn[aria-expanded="true"] .ic-open { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }

@media (max-width: 1023px) {
  .header-row { gap: 1rem; }
  .menu-btn { display: grid; }
  .nav { position: static; margin-left: auto; }
  .nav-list {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow-menu);
    opacity: 0;
    transform: translateY(-6px);
    visibility: hidden;
    transition: opacity 180ms ease, transform 220ms var(--ease-out), visibility 0s linear 220ms;
  }
  .nav-list.is-open {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: opacity 180ms ease, transform 220ms var(--ease-out), visibility 0s;
  }
  .nav-list li + li { border-top: 1px solid var(--rule); }
  .nav-list a { padding: 0.95rem 0; font-size: 1.0625rem; background: none; }
  .nav-list a[aria-current="true"] { color: var(--ink); }
}
@media (max-width: 559px) {
  .brand-lockup { width: 140px; }
  .header-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(64px, 8vw, 112px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.hero-copy .display { max-width: 18ch; }
.hero-copy .lead { margin-top: 1.5rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  margin-top: 2.25rem;
}

.office {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: clamp(24px, 3vw, 36px);
}
.office-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--gold);
}
.seal {
  flex: none;
  width: 56px;
  aspect-ratio: 512 / 456;
  background: var(--ink);
  -webkit-mask: url(img/logo-mark.png?v=3) center / contain no-repeat;
  mask: url(img/logo-mark.png?v=3) center / contain no-repeat;
}
.office-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.office-sub { margin-top: 0.2rem; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-3); }
.office-list { display: grid; }
.office-list > div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding-block: 0.9rem;
}
.office-list > div + div { border-top: 1px solid var(--rule); }
.office-list dt {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-3);
  padding-top: 0.15em;
}
.office-list dd { font-size: 0.9875rem; line-height: 1.5; color: var(--ink); }
.office-list a { font-weight: 600; text-decoration-color: var(--gold); }

@media (max-width: 899px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy .display { max-width: 12ch; }
}
@media (max-width: 559px) {
  .hero-actions .btn { width: 100%; }
  .office-list > div { grid-template-columns: 5.5rem 1fr; }
}

/* Hero entrance: one short, staggered moment on first load */
@media (prefers-reduced-motion: no-preference) {
  /* the headline block only slides, never fades, so it counts as the page's main paint (LCP) */
  .hero-copy > * { animation: slide 280ms var(--ease-out) both; }
  .office { animation: rise 280ms var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 30ms; }
  .hero-copy > :nth-child(3) { animation-delay: 60ms; }
  .office { animation-delay: 90ms; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
}
@keyframes slide {
  from { transform: translateY(8px); }
}

/* ---------- Section heads ---------- */
.section-head { max-width: 46rem; }
.section-intro {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--ink-2);
  max-width: 38em;
  text-wrap: pretty;
}

/* ---------- Areas ---------- */
.areas {
  padding-block: var(--section-y);
  background: var(--card);
  border-block: 1px solid var(--rule);
}
.areas-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(40px, 5vw, 64px);
}
.areas-index {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  align-self: start;
  border-left: 1px solid var(--rule);
}
.areas-index ol { display: grid; }
.areas-index a {
  display: block;
  padding: 0.7rem 0 0.7rem 1.25rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 200ms ease;
}
.areas-index a[aria-current="true"] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .areas-index a:hover { color: var(--ink); }
}
.areas-marker {
  position: absolute;
  left: -1px;
  top: 0;
  width: 2px;
  height: 100px;
  background: var(--gold);
  transform-origin: 0 0;
  transform: translateY(var(--marker-y, 0px)) scaleY(var(--marker-s, 0));
  opacity: 0;
  transition: transform 320ms var(--ease-in-out), opacity 200ms ease;
}
.areas-marker.is-ready { opacity: 1; }

.area { padding-block: clamp(28px, 3.5vw, 44px); }
.area:first-child { padding-top: 0; }
.area + .area { border-top: 1px solid var(--rule); }
.area > p {
  margin-top: 0.85rem;
  max-width: 38em;
  color: var(--ink-2);
  text-wrap: pretty;
}
.matters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 2rem;
  margin-top: 1.4rem;
  max-width: 40rem;
}
.matters li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9875rem;
  line-height: 1.5rem;
  color: var(--ink);
}
.matters li::before {
  content: "-";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
  color: var(--gold-ink);
}
.area-links { display: flex; flex-wrap: wrap; gap: 0 1.75rem; margin-top: 1.25rem; }

@media (max-width: 899px) {
  .areas-grid { grid-template-columns: 1fr; gap: 24px; }
  .areas-index {
    position: sticky;
    top: var(--header-h);
    z-index: 5;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    border-left: 0;
    border-bottom: 1px solid var(--rule);
    background: color-mix(in srgb, var(--card) 96%, transparent);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .areas-index::-webkit-scrollbar { display: none; }
  .areas-index ol { display: flex; gap: 1.5rem; width: max-content; }
  .areas-index a {
    padding: 0.9rem 0;
    font-family: var(--sans);
    font-size: 0.9375rem;
    font-weight: 500;
    white-space: nowrap;
  }
  .areas-marker {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 2px;
    transform: translateX(var(--marker-x, 0px)) scaleX(var(--marker-s, 0));
  }
  .area:first-child { padding-top: 16px; }
}
@media (max-width: 559px) {
  .matters { grid-template-columns: 1fr; }
}

/* ---------- Process ---------- */
.process { padding-block: var(--section-y); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(40px, 5vw, 64px);
  counter-reset: step;
}
.step {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-strong);
}
.step-n {
  display: block;
  font-family: var(--serif);
  font-size: 2.75rem;
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: oldstyle-nums;
  color: var(--ink);
}
.step .h4 { margin-top: 1.25rem; }
.step p { margin-top: 0.6rem; color: var(--ink-2); font-size: 1rem; text-wrap: pretty; }

@media (max-width: 1023px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
}
@media (max-width: 559px) {
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step {
    display: grid;
    grid-template-columns: 3rem 1fr;
    column-gap: 0.75rem;
    padding-block: 1.5rem;
    border-top: 1px solid var(--rule);
  }
  .step-n { grid-row: span 2; font-size: 2.25rem; }
  .step .h4 { margin-top: 0.2rem; }
}

/* ---------- About ---------- */
.about {
  padding-block: var(--section-y);
  background: var(--paper-2);
  border-block: 1px solid var(--rule);
}
.about-title { max-width: 26ch; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 7vw, 112px);
  margin-top: clamp(32px, 4vw, 56px);
  align-items: start;
}
.prose { max-width: 38em; }
.prose p { color: var(--ink-2); font-size: 1.125rem; line-height: 1.7; text-wrap: pretty; }
.prose p + p { margin-top: 1.1rem; }
.prose .signature {
  display: grid;
  gap: 0.1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gold);
  width: fit-content;
  min-width: 16rem;
}
.signature-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.signature-role { font-size: 0.9375rem; color: var(--ink-3); }

.facts { display: grid; }
.facts > div { padding-block: 1.25rem; }
.facts > div:first-child { padding-top: 0.35rem; }
.facts > div + div { border-top: 1px solid var(--rule-strong); }
.facts dt {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
}
.facts dd { margin-top: 0.3rem; color: var(--ink-2); font-size: 1rem; }

@media (max-width: 899px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq { padding-block: var(--section-y); }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq-list { border-top: 1px solid var(--rule-strong); }
.qa { border-bottom: 1px solid var(--rule-strong); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 64px;
  padding-block: 1.1rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ic {
  width: 20px; height: 20px;
  color: var(--ink-3);
  transition: transform 220ms var(--ease-out);
}
.qa[open] summary .ic { transform: rotate(45deg); }
.qa-body p {
  padding-bottom: 1.4rem;
  max-width: 40em;
  color: var(--ink-2);
  text-wrap: pretty;
}
@supports (interpolate-size: allow-keywords) {
  .qa { interpolate-size: allow-keywords; }
  .qa::details-content {
    height: 0;
    overflow: clip;
    opacity: 0;
    transition: height 260ms var(--ease-out), opacity 200ms ease, content-visibility 260ms allow-discrete;
  }
  .qa[open]::details-content { height: auto; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .qa::details-content { transition: none; }
}

@media (max-width: 899px) {
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .qa summary { font-size: 1.125rem; }
}

/* ---------- Contact (the one navy field) ---------- */
.contact {
  padding-block: var(--section-y);
  background: var(--field);
  color: var(--on-field);
}
.contact .h2, .contact .h3 { color: var(--on-field); }
.contact-head { max-width: 42rem; }
.contact-head p {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--on-field-2);
  text-wrap: pretty;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  margin-top: clamp(40px, 5vw, 64px);
  align-items: start;
}
.channels { display: grid; }
.channels li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 1rem;
  padding-block: 1.25rem;
}
.channels li:first-child { padding-top: 0.25rem; }
.channels li + li { border-top: 1px solid var(--on-field-rule); }
.channels > li > .ic { width: 22px; height: 22px; margin-top: 2px; color: var(--on-field-2); }
.channel-label { font-size: 0.8125rem; font-weight: 600; color: var(--on-field-2); }
.channel-value {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 1.0625rem;
  color: var(--on-field);
  overflow-wrap: anywhere;
}
a.channel-value { text-decoration-color: var(--gold-on-field); }
.channel-note { font-size: 0.875rem; color: var(--on-field-2); }
.channel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--on-field);
  text-decoration: underline;
  text-decoration-color: var(--gold-on-field);
  text-underline-offset: 0.3em;
}
.channel-link .ic { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) {
  .channel-link:hover { text-decoration-thickness: 2px; }
}

.consult {
  display: grid;
  gap: 1.35rem;
  padding: clamp(24px, 3.5vw, 44px);
  background: var(--field-2);
  border: 1px solid var(--on-field-rule);
}
.consult-title { margin-bottom: 0.25rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.9375rem; font-weight: 600; color: var(--on-field); }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.9rem;
  border: 1px solid #3d5680;
  border-radius: 2px;
  background: rgb(255 255 255 / 0.04);
  color: var(--on-field);
  font: 400 1rem/1.5 var(--sans);
  caret-color: var(--gold-on-field);
  transition: border-color 160ms ease, background-color 160ms ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--gold-on-field);
  outline-offset: 0;
  border-color: var(--gold-on-field);
  background: rgb(255 255 255 / 0.07);
}
.field [aria-invalid="true"] { border-color: #f0a39a; }
.field-error { font-size: 0.875rem; font-weight: 500; color: #f5b3aa; }
.select { position: relative; }
.select select { appearance: none; padding-right: 2.5rem; cursor: pointer; }
.select select option { color: #0f2340; background: #f5f6f7; }
.select::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--on-field-2);
  border-bottom: 1.5px solid var(--on-field-2);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.consult .btn { justify-self: start; margin-top: 0.25rem; }
.form-note { font-size: 0.875rem; color: var(--on-field-2); }

@media (max-width: 899px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 559px) {
  .consult .btn { justify-self: stretch; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--field);
  color: var(--on-field-2);
  font-size: 0.9375rem;
  line-height: 1.65;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 2fr) minmax(0, 3fr);
  gap: 40px;
  padding-block: 56px 48px;
  border-top: 1px solid var(--on-field-rule);
}
.brand-lockup-light { background: var(--on-field); width: 180px; }
.footer-brand p { margin-top: 1.25rem; }
.footer-label { margin-bottom: 0.75rem; font-weight: 600; color: var(--on-field); }
.site-footer ul { display: grid; gap: 0.15rem; }
.site-footer a { color: var(--on-field-2); text-decoration: none; }
.site-footer p + p { margin-top: 0.75rem; }
@media (hover: hover) and (pointer: fine) {
  .site-footer a:hover { color: var(--on-field); text-decoration: underline; text-decoration-color: var(--gold-on-field); }
}
.site-footer nav a { display: inline-block; padding-block: 0.2rem; }
.footer-base {
  padding-block: 20px 32px;
  border-top: 1px solid var(--on-field-rule);
  font-size: 0.8125rem;
}
@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer nav a { padding-block: 0.45rem; }
}

/* ---------- Inner pages (practice areas, 404) ---------- */
.page-hero { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.page-hero .lead { margin-top: 1.25rem; }
.display-page { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4rem); max-width: 18ch; }
.page-404 { min-height: 60vh; }

.breadcrumb { margin-bottom: clamp(20px, 3vw, 32px); font-size: 0.875rem; color: var(--ink-3); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.6rem; }
.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.6rem;
  color: var(--rule-strong);
}
.breadcrumb a { color: var(--ink-3); text-decoration-color: var(--rule-strong); }
@media (hover: hover) and (pointer: fine) {
  .breadcrumb a:hover { color: var(--ink); text-decoration-color: var(--gold); }
}
.breadcrumb [aria-current] { color: var(--ink); }

.services {
  padding-block: var(--section-y);
  background: var(--card);
  border-block: 1px solid var(--rule);
}
.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 80px);
  margin-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--rule-strong);
}
.service-list > div { padding-block: 1.4rem; border-bottom: 1px solid var(--rule); }
.service-list dt { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.25; }
.service-list dd { margin-top: 0.45rem; color: var(--ink-2); text-wrap: pretty; }
@media (max-width: 767px) {
  .service-list { grid-template-columns: 1fr; }
}

.faq-note { margin-top: 1.25rem; font-size: 0.875rem; color: var(--ink-3); }

.others { padding-block: var(--section-y); background: var(--paper-2); border-top: 1px solid var(--rule); }
.others-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 80px);
  margin-top: clamp(28px, 3.5vw, 40px);
  border-top: 1px solid var(--rule-strong);
}
.others-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.others-list .ic { color: var(--ink-3); transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .others-list a:hover .ic { transform: translateX(3px); color: var(--ink); }
}
@media (max-width: 767px) {
  .others-list { grid-template-columns: 1fr; }
}

.contact-short-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-short .contact-head .btn { margin-top: 2rem; }
@media (max-width: 899px) {
  .contact-short-grid { grid-template-columns: 1fr; }
}
@media (max-width: 559px) {
  .contact-short .contact-head .btn { width: 100%; }
}

/* ---------- Mobile WhatsApp dock ---------- */
.dock { display: none; }
@media (max-width: 767px) {
  .dock {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    border-top: 1px solid var(--rule);
    transform: translateY(110%);
    transition: transform 180ms ease-in;
  }
  .dock.is-visible { transform: none; transition: transform 260ms var(--ease-out); }
  @supports (backdrop-filter: blur(1px)) {
    .dock { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .dock, .dock.is-visible { transition: none; }
}
