/* Improve contrast on the aerial hero image. */
.hero-overlay { background: linear-gradient(90deg, rgba(8, 16, 38, .92), rgba(8, 16, 38, .67), rgba(8, 16, 38, .28)); }
.hero h1, .hero-copy, .hero .eyebrow { text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.hero h1 { color: #fff; }
.hero .primary { background: #8ca800; }

/* Keep service cards compact and calm against the indigo foundation. */
#services { padding: 82px 0; }
#services .service-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
#services .service-grid article { min-height: 205px; padding: 24px; background: #f8faef; border-color: #dce4c6; }
#services .service-grid h3 { margin: 26px 0 8px; color: #182047; font-size: 23px; }
#services .service-grid p { color: #59646f; }
#services .service-grid span { color: #607300; }

/* The lime contact section needs dark text for accessible contrast. */
.contact-section .section-label, .contact-section h2, .contact-section p { color: #182047; }
.contact-section .section-label { opacity: .85; }
.contact-section .contact-grid { grid-template-columns: 1fr; gap: 38px; }
.contact-section .contact-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.contact-section .contact-actions article { min-height: 145px; display: flex; flex-direction: column; justify-content: center; }
.contact-section .copy-button { width: max-content; min-width: 104px; height: 35px; }

/* Dragging a photo rail should stop exactly where the user releases it. */
.inline-image-rail, .preview-image-rail { scroll-snap-type: none; }

.email-actions { display: flex; flex-wrap: nowrap; gap: 6px; }
.email-actions .email-button { margin-left: 0; }
.contact-section .email-actions > .copy-button,
.contact-section .email-actions > .email-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  height: 35px;
  margin: 0;
  padding: 0 12px;
}

@media (max-width: 700px) {
  .contact-section .contact-actions { grid-template-columns: 1fr; }
}

footer .footer-info { flex: 1; }
footer .footer-info p { margin: 0; font-size: 12px; }

.logo-brand { display: inline-flex; align-items: center; }
.brand-logo { display: block; width: 112px; height: auto; }
.hero-logo { width: 154px; margin-bottom: 9px; line-height: 0; }
.hero-logo img { display: block; width: 100%; height: auto; }
@media (max-width: 700px) { .brand-logo { width: 96px; } }
footer .footer-info p + p { margin-top: 3px; }

.modal-close {
  background: #182047;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 4px 16px rgba(2, 6, 23, .45);
}

.inline-image-rail { padding-bottom: 28px; }

@media (max-width: 700px) {
  .inline-image-rail { padding-bottom: 22px; }
}
