/* Shared controls: paper, ink and clear interaction states. */
:root {
  --polish-ink: #0b3a95;
  --polish-line: #b6cbe0;
  --polish-paper: #f5fafc;
}

::selection { color: #fff; background: #164c9c; }

.site-header .header-action,
.contact-actions .contact-button,
.contact-actions .phone-action,
.contact-message [data-copy-message] {
  transition: background-color .18s ease, border-color .18s ease,
    color .18s ease, box-shadow .18s ease;
}

.contact-actions .contact-button,
.contact-actions .phone-action {
  color: #0b3a95;
  border-color: var(--polish-line);
  background-color: rgba(248, 252, 253, .8);
  box-shadow: 0 6px 20px rgba(13, 38, 76, .055);
}

.contact-actions :is(.contact-button, .phone-action) :is(.contact-name, .phone-name) {
  color: #0b3a95;
}

.contact-actions :is(.contact-button, .phone-action) :is(.contact-hint, .phone-hint) {
  color: #38577d;
}

.contact-message {
  padding: clamp(18px, 2vw, 24px);
  border: 1px solid var(--polish-line);
  background: linear-gradient(rgba(249, 252, 253, .86), rgba(241, 248, 251, .91)),
    url('/images/brand/paper-fibre.webp') center / 680px auto;
  box-shadow: 0 8px 24px rgba(13, 38, 76, .06);
}

.contact-actions.contact-actions .contact-message label {
  color: var(--polish-ink);
  font-weight: 700;
}

.contact-actions.contact-actions .contact-message :is(button[data-copy-message], .contact-paste-note) {
  color: #38577d;
}

/* The home contact section uses the light paper surface. */
.home-page main > .contacts .contacts-intro h2 { color: #0b3a95; }
.home-page main > .contacts .contacts-intro p { color: #38577d; }

.contact-message textarea {
  color: #0d162f;
  background: rgba(255, 255, 255, .84);
  border: 1px solid #a6bfda;
  line-height: 1.5;
  caret-color: var(--polish-ink);
}

.contact-message [data-copy-message] {
  min-height: 44px;
  border-color: #8ba8ca;
}

:is(.site-header, .site-footer, .contact-actions) :is(a, button, textarea):focus-visible {
  outline: 2px solid var(--polish-ink);
  outline-offset: 4px;
}

.site-footer nav a { text-underline-offset: .2em; }

@media (hover: hover) and (pointer: fine) {
  .contact-actions .contact-button:hover,
  .contact-actions .phone-action:hover {
    background-color: #fff;
    border-color: #6d91bf;
    box-shadow: 0 10px 26px rgba(13, 38, 76, .11);
  }
  .contact-message [data-copy-message]:hover {
    background-color: #dceaf5;
    border-color: var(--polish-ink);
  }
  .site-footer nav a:hover { text-decoration-thickness: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .header-action,
  .contact-actions .contact-button,
  .contact-actions .phone-action,
  .contact-message [data-copy-message] { transition: none; }
}
