/* Small visual details, layered over the site's original layout. */
:root {
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

::selection { background: #fce1d7; color: #10206c; }

.site-header { box-shadow: 0 2px 16px rgb(16 32 108 / 3%); }

.nav-links a, footer nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color 180ms ease;
}

.nav-links a:not(.nav-phone)::after, footer nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease-out);
}

.nav-links a:hover, footer nav a:hover { text-decoration: none; }
.nav-links a:focus-visible::after, footer nav a:focus-visible::after { transform: scaleX(1); }

.hero-content h1, h2 { text-wrap: balance; }
.hero-content p { text-wrap: pretty; }

.button {
  gap: 12px;
  border-radius: 7px;
  box-shadow: 0 4px 12px rgb(16 32 108 / 10%);
  transition: background-color 180ms ease, border-color 180ms ease,
    box-shadow 220ms ease, transform 220ms var(--ease-out);
}

.button-arrow {
  font-size: 1.25em;
  line-height: 1;
  transition: transform 220ms var(--ease-out);
}

.button:active:not(:disabled) { transform: translateY(0); box-shadow: 0 2px 6px rgb(16 32 108 / 12%); }
.button:disabled { transform: none; box-shadow: none; }

h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 18px;
  border-radius: 3px;
  background: var(--orange);
}

.section-heading h2::after { margin-inline: auto; }
.mission-photo { border-radius: 10px; box-shadow: 0 12px 32px rgb(23 37 65 / 9%); }

.service-card {
  border-color: #e4e8f0;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgb(23 37 65 / 3%);
  transition: transform 250ms var(--ease-out), box-shadow 250ms ease, border-color 250ms ease;
}
.service-card img { border-radius: 6px; }
.contact { background: linear-gradient(180deg, #fff 65%, #fafbfe); }
.contact-intro { margin-top: 18px; }

input, textarea {
  border-radius: 7px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
input:focus, textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgb(16 32 108 / 7%);
}

#form-status:not(:empty) {
  padding: 14px 16px;
  border: 1px solid #dce3f2;
  border-radius: 7px;
  background: #f2f5fb;
  line-height: 1.5;
}
#form-status[data-state="success"] { background: #f0f8f2; border-color: #cce6d2; }
#form-status[data-state="error"] { background: #fff4f3; border-color: #f3d1cc; }

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover::after, footer nav a:hover::after { transform: scaleX(1); }
  .button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 20px rgb(16 32 108 / 16%); }
  .button:hover .button-arrow { transform: translateX(3px); }
  .service-card:hover { transform: translateY(-3px); border-color: #cbd3e3; box-shadow: 0 12px 28px rgb(23 37 65 / 8%); }
}

@media (max-width: 650px) {
  .contact-content h2::after { margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .button, .button-arrow, .service-card, input, textarea,
  .nav-links a, footer nav a, .nav-links a::after, footer nav a::after {
    transition: none;
  }
  .button:hover:not(:disabled), .button:hover .button-arrow, .service-card:hover { transform: none; }
}

@media print {
  .button, .service-card, .mission-photo { box-shadow: none; }
}
