/* Polish layer over the original compiled stylesheet. Same blue world, sharper hierarchy. */
:root {
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --ink: #111827;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.015em; }
h1 { letter-spacing: -0.025em; }
p { text-wrap: pretty; }

/* Buttons: one system. Primary is solid, secondary is outlined. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.75rem; padding: .625rem 1.375rem;
  font-size: .9375rem; font-weight: 600; line-height: 1.2;
  border-radius: .5rem; border: 1.5px solid var(--blue-600);
  text-align: center; white-space: nowrap;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out),
              border-color .2s var(--ease-out), box-shadow .2s var(--ease-out), transform .2s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 3.25rem; padding: .75rem 1.75rem; font-size: 1.0625rem; }
.btn-sm { min-height: 2.5rem; padding: .5rem 1.125rem; font-size: .875rem; }

.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 1px 2px rgba(17, 24, 39, .12), 0 4px 12px -4px rgba(37, 99, 235, .45); }
.btn-primary:hover { background: var(--blue-700); border-color: var(--blue-700); }
.btn-secondary { background: #fff; color: var(--blue-700); }
.btn-secondary:hover { background: #eff6ff; }

.btn.on-blue.btn-primary { background: #fff; border-color: #fff; color: var(--blue-700); box-shadow: 0 6px 18px -6px rgba(15, 23, 42, .45); }
.btn.on-blue.btn-primary:hover { background: #eff6ff; border-color: #eff6ff; }
.btn.on-blue.btn-secondary { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn.on-blue.btn-secondary:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, iframe:focus-visible {
  outline: 2px solid var(--blue-600); outline-offset: 3px; border-radius: .375rem;
}
.on-blue:focus-visible, .bg-blue-600 a:focus-visible, footer a:focus-visible { outline-color: #fff; }

/* Header: the active page reads as active, not just blue text */
header nav .lg\:flex > a:not(.btn) { position: relative; padding-block: .25rem; }
header nav .lg\:flex > a.text-blue-600:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.375rem; height: 2px;
  background: var(--blue-600); border-radius: 2px;
}

/* Cards: shadow with offset and soft blur instead of the flat xl halo */
.hover\:shadow-xl:hover { box-shadow: 0 2px 4px rgba(17, 24, 39, .04), 0 12px 28px -12px rgba(30, 64, 175, .28); }
.hover\:shadow-xl { transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out); }
.hover\:shadow-xl:hover { transform: translateY(-2px); }

/* Photos keep their ratio while loading */
main img { height: auto; background: #e5e7eb; }

/* Footer: comfortable tap targets */
footer ul a, footer li a { display: inline-block; padding-block: .125rem; }
footer .text-gray-400 { color: #9ca3af; }

/* Contact: details and map side by side on wide screens */
.contact-wrap { max-width: 72rem; margin-inline: auto; }
@media (min-width: 1024px) {
  .contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: 3rem; row-gap: 2rem; align-items: start; }
  .contact-grid > * { margin-top: 0 !important; }
  .contact-grid > .contact-map { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; }
  .contact-grid > .contact-map iframe { height: 100%; min-height: 28rem; }
}

/* Motion: quieter entrance, exponential ease-out */
.js [data-m] { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js [data-m="up"]:not(.in) { transform: translateY(12px); }
