/* Shared accessibility and consistency fixes. Original layout rules stay in styles.css. */
/* Intrinsic HTML dimensions reserve space; responsive widths must recalculate height. */
img { height: auto; }
.test-img { height: auto; align-self: flex-start; }
.project-one-container > img { height: auto; align-self: flex-start; }
.related-img { display: block; height: auto; }
.service-padding { padding-bottom: 25px; }
.service-button { display: inline-block; box-sizing: border-box; text-decoration: none; line-height: 1.4; margin-bottom: 0; }
.service-button:hover, .service-button:focus, .service-button:visited { text-decoration: none; color: white; }
[hidden] { display: none !important; }
.hidden { opacity: 1; }
.nav__link.active::after { opacity: 1; }
.mobile-nav { left: 0; overflow-y: auto; height: 100dvh; box-sizing: border-box; padding-bottom: 24px; }
body.menu-open { overflow: hidden; }
:focus-visible { outline: 3px solid #c47800; outline-offset: 4px; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 200; padding: 12px 20px; background: white; color: #2d5992; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.learn-more-button, .project-button { display: inline-block; text-decoration: none; box-sizing: border-box; }
.copyright { text-align: center; width: 100%; box-sizing: border-box; }
.cookie-settings { border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; padding: 12px; }
.cookie-container { width: 100%; box-sizing: border-box; background: #fff; opacity: 1; color: #273544; z-index: 110; max-height: 60dvh; overflow-y: auto; box-shadow: 0 -2px 12px #0002; }
.cookie-subcontainer { display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px; box-sizing: border-box; }
.cookie-subcontainer p { flex: 1 1 400px; margin: 0; }
.cookie-subcontainer button { flex: 0 0 auto; margin: 0; padding: 12px 20px; min-height: 44px; }
.cookie-subcontainer a, .form-note a { color: #234c81; text-decoration: underline; }
.form-note { font-family: 'Open Sans', sans-serif; font-size: 14px; line-height: 1.5; color: #424242; }
.form-wrapper { height: auto; padding-bottom: 24px; box-sizing: border-box; }
.form-wrapper input, .form-wrapper textarea { box-sizing: border-box; max-width: 100%; }
.form-wrapper input:focus-visible, .form-wrapper textarea:focus-visible { outline: 3px solid #2d5992; outline-offset: 2px; }
.carousel__slide { list-style: none; }
.carousel__button { min-width: 44px; min-height: 44px; }
.carousel__button:disabled { opacity: 0.35; cursor: default; }
.carousel__indicator { width: 24px; height: 24px; }
.project-two-container > img { width: 100%; max-width: 595px; height: auto !important; align-self: center; object-fit: cover; }
.policy-page .policy-wrapper { font-family: 'Open Sans', sans-serif; line-height: 1.7; padding: 130px 20px 50px; box-sizing: border-box; }
.policy-wrapper h1, .policy-wrapper h2, .policy-wrapper h3 { color: #2d5992; padding-top: 24px; }
.policy-wrapper a { overflow-wrap: anywhere; }
.policy-wrapper ul { padding-left: 0; }
@media (max-width: 999px) {
  .foot-nav { display: block !important; }
  .footer-ul { flex-wrap: wrap; justify-content: center; padding: 0 16px; gap: 16px; }
  .cookie-subcontainer button { flex: 1 1 120px; }
  .related-section { flex-wrap: wrap; }
}
@media (max-width: 1000px) {
  .project-three-container > div:not([data-gallery]) { order: 2; }
  .project-three-container > [data-gallery] { order: 1; }
}
@media (hover: none) {
  .caption-card { transform: translateY(0); opacity: 1; }
}
@media (min-width: 1000px) {
  .main-nav { display: block !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Quiet touch feedback; keyboard focus outlines remain unchanged. */
a, button, [role="button"] { -webkit-tap-highlight-color: transparent; }
@media (hover: none) and (pointer: coarse) {
 a:active, button:not(:disabled):active, [role="button"]:active { opacity: .82; }
}
