:root {
  color-scheme: dark;
  --navy: #0c1d39;
  --paper: #122746;
  --navy-raised: #182f50;
  --gold: #cfbe9a;
  --ink: #f7f3eb;
  --muted: #c0cbdc;
  --line: #a997724f;
}

body { background: var(--navy); }
::selection { background: var(--gold); color: var(--navy); }
a:focus-visible, button:focus-visible,
input:focus, textarea:focus, select:focus {
  outline-color: var(--gold);
}
.header, .header nav, footer { background: var(--navy); }
.header { border-bottom: 1px solid var(--line); }
.header nav a:not(.nav-contact)::after { background: var(--gold); }
footer { border-top: 1px solid var(--line); }
.skip { background: var(--gold); color: var(--navy); }

.hero-background { background: var(--navy); }
.hero-background::before {
  background: linear-gradient(90deg, #071630ed, #0c1d39aa);
}
.hero .eyebrow, .hero-side, .scroll-link { color: var(--gold); }
.hero-action { border-color: var(--gold); }
.hero-action-primary { background: var(--gold); color: var(--navy); }

:is(.greeting-background, .commitment, .contact-section, .practice-hero, .practice-related) {
  background-color: var(--paper);
}
:is(.greeting-background, .commitment, .contact-section, .practice-hero, .practice-related)::before,
:is(.greeting-background, .commitment, .contact-section, .practice-hero, .practice-related)::after {
  width: min(48%, 380px);
  aspect-ratio: 4 / 1;
  background-image: url("gold-corner.svg");
  background-size: contain;
  mask-image: none;
}
:is(.greeting-background, .commitment, .contact-section, .practice-hero, .practice-related)::after {
  transform: rotate(180deg);
}
.layered-title > .heading-en { color: #cfbe9a42; }
.layered-title > .heading-jp,
.section-heading > span, .greeting-background .section-heading > span,
.service-label, .flow-icon, .focus-index,
.focus-link strong, .focus-arrow, .focus-head .section-kicker,
.flow-contact h3, .commitment-item > span, .lawyer-role { color: var(--gold); }

.service-body > p:not(.eyebrow), .commitment-item p,
.flow-card p, .practice-item p, .practice-note { color: var(--muted); }
.flow-card, .focus-link, .flow-contact {
  background: var(--navy-raised);
  border-color: var(--line);
}
.flow-card { box-shadow: 5px 5px 0 #070f21; }
.flow-number { background: var(--gold); color: var(--navy); }

.flow-contact-phone, .floating-actions .floating-contact, .submit {
  background: var(--gold);
  color: var(--navy);
}
.flow-contact-line, .floating-actions .floating-top {
  background: var(--navy-raised);
  color: var(--gold);
  border: 1px solid #a99772;
}
.pill-link, .text-link, .map-link { border-color: var(--gold); }

input:not([type=checkbox]), textarea, select {
  background: var(--navy);
  border-color: #758098;
  color: var(--ink);
}
#contact-form input::placeholder, textarea::placeholder { color: #adbcd1; }
#contact-form label em, #form-status, #confirm-status { color: #ffb7ad; }
#contact-form label em { border-color: #b47b78; }
.consent input { accent-color: var(--gold); }
dialog { background: var(--paper); border: 1px solid var(--line); }
.dialog-actions > button:first-child { background: var(--navy); color: var(--ink); }

@media (hover: hover) {
  .service:hover, .focus-link:hover { background: var(--navy-raised); }
  .pill-link:hover, .submit:hover, .floating-actions a:hover {
    background: #ebd8b1;
    color: var(--navy);
  }
}

.floating-actions .floating-free {
  align-self: center;
  padding: 7px 13px;
  border: 1px solid var(--gold);
  border-radius: 20px;
  background: var(--navy);
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.floating-actions .floating-direct {
  padding: 0 18px;
  border: 1px solid #a99772;
  border-radius: 8px;
  background: var(--navy-raised);
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}
.floating-actions .floating-phone { background: var(--gold); color: var(--navy); }
.floating-actions .floating-contact { font-weight: 700; }
.floating-actions .floating-compact { display: none; }

@media (max-width: 1020px) {
  html { scroll-padding-bottom: 126px; }
  footer { padding-bottom: 136px; }
  .floating-actions:not([hidden]) {
    right: 10px;
    left: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }
  .floating-actions:has(.floating-contact[hidden]) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .floating-actions .floating-free {
    grid-column: 1 / -1;
    justify-self: center;
    padding: 3px 12px;
    font-size: 12px;
  }
  .floating-actions a {
    width: auto;
    min-width: 0;
    min-height: 48px;
    padding: 4px 2px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
  }
  .floating-actions .floating-contact { gap: 0; }
  .floating-actions .floating-direct { padding: 4px 2px; font-size: 11px; }
  .floating-actions .floating-label,
  .floating-actions .floating-contact svg,
  .floating-actions .floating-arrow { display: none; }
  .floating-actions .floating-compact { display: inline; }
}
@media print {
  .floating-actions:not([hidden]) { display: none; }
}

@media (min-width: 360px) and (max-width: 1020px) {
  .floating-contact .floating-label { display: inline; }
  .floating-contact .floating-compact { display: none; }
}

.flow-contact-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 16px;
  margin-bottom: 20px;
}
.flow-contact-heading #flow-contact-title { margin: 0; }
.flow-contact-hours { color: var(--gold); font-size: 14px; }
.floating-actions .floating-free {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.floating-hours {
  border-inline-start: 1px solid var(--gold);
  padding-inline-start: 8px;
  font-weight: 500;
}
