/* Approved October refinements: shared measurements, contact access and homepage closing. */
html { scroll-padding-top: 104px; }
body { font-size: 18px; line-height: 1.6; }
.wrap { max-width: 1360px; padding-inline: 40px; }
.section { padding-block: 72px; }
h2 { font-size: 36px; line-height: 1.2; }
h3 { font-size: 20px; }
.page-hero h1, .page-intro h1, .contact-intro h1 { font-size: 52px; overflow-wrap: break-word; }
.page-hero-grid { padding-block: 56px; gap: 48px; }
.page-hero .lead, .page-intro .lead, .contact-intro .lead { font-size: 18px; line-height: 1.6; }
.intro p:not(.eyebrow), .section-heading > p, .split p:not(.eyebrow):not(.field-help):not(.note), .work-body > p:not(.work-clients), .work-body li, .opportunity-box p, .trade-card p, .faq-list details p, .three-grid > article p { font-size: 18px; line-height: 1.6; }
.button { min-height: 48px; }
.form-grid label { font-size: 16px; }
input, select, textarea { font-size: 16px; max-width: 100%; }
.field-help, .form-note { font-size: 14px; }
.section-heading { gap: 40px; }
.business-grid, .product-grid, .trade-products, .two-grid, .updates-grid { gap: 24px; }
.business-card h3, .opportunity-box h3 { font-size: 20px; }
.business-card p, .product-card p, .trade-product p { font-size: 16px; }
.page-visual figcaption, .sector-caption { font-size: 12px; }

/* The contact strip scrolls; only the main header remains sticky. */
header { position: sticky; top: 0; z-index: 40; }
.header-inner { min-height: 80px; padding-block: 0; gap: 24px; flex-wrap: nowrap; }
.brand { font-size: 40px; }
#navigation { gap: 18px; font-size: 15px; flex-direction: row; flex-wrap: nowrap; width: auto; }
#navigation > a, #navigation summary { min-height: 48px; display: flex; align-items: center; padding-block: 12px; }
#navigation > a:last-child { margin: 0; padding-inline: 22px; }
#navigation > a[aria-current="page"]:last-child { box-shadow: inset 0 -3px var(--gold); }
.js-ready .menu { display: none; }
.nav-chevron { width: 14px; height: 14px; }
.services-panel { width: 410px; max-height: calc(100dvh - 112px); overflow-y: auto; }
.services-panel a { min-height: 48px; }
.services-panel strong { font-size: 16px; }
.services-panel span { font-size: 14px; }
.utility .wrap { min-height: 32px; padding-block: 4px; gap: 20px; flex-wrap: nowrap; }
.utility .utility-position { display: inline; margin-right: auto; font-size: 12px; }
.utility-contacts { display: flex; align-items: center; gap: 20px; }
.utility-contacts a { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; min-height: 24px; }
.utility-contacts span { display: inline; margin: 0; }
.utility-contacts .contact-short { display: none; }
.utility-contacts .ui-icon { width: 16px; height: 16px; filter: brightness(0) invert(1); }
.mobile-contact { display: none; }

/* Three coordinated closing sections follow the existing Partnerships band. */
.home-portfolio > .intro { max-width: 960px; }
.portfolio-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.portfolio-grid > *, .experience-grid > *, .keep-contact-card { min-width: 0; }
.portfolio-grid figure { margin: 0; }
.portfolio-grid img { width: 100%; height: auto; border-radius: 12px; }
.portfolio-grid figcaption { font-size: 12px; color: var(--muted); margin-top: 10px; }
.portfolio-grid p { font-size: 18px; line-height: 1.7; max-width: 490px; }
.portfolio-grid .button { margin-top: 8px; }
.experience-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
.experience-grid .intro { margin-bottom: 24px; }
.experience-locations > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.experience-location { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; min-height: 144px; padding: 24px 16px; background: white; border: 1px solid var(--line); border-radius: 12px; font-size: 16px; font-weight: 650; box-shadow: 0 5px 18px #08273f05; transition: box-shadow .18s, transform .18s; }
.experience-location .ui-icon { width: 28px; height: 28px; }
.keep-contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.keep-contact-card { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 6px 24px #08273f08; transition: box-shadow .18s, transform .18s; }
.keep-contact-card > .ui-icon { width: 32px; height: 32px; margin-bottom: 20px; }
.keep-contact-card h3 { margin-bottom: 12px; }
.keep-contact-card p { font-size: 16px; line-height: 1.6; flex: 1; }
.keep-contact-card > .text-link, .keep-contact-actions { margin-top: 4px; min-height: 48px; }
.keep-contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.keep-contact-actions a { min-height: 48px; }
.keep-contact-card:hover, .experience-location:hover { box-shadow: 0 10px 28px #08273f12; transform: translateY(-2px); }

/* Balanced footer with supporting routes in a separate compact row. */
.footer-grid { grid-template-columns: 1.15fr .8fr 1.1fr .95fr; gap: 40px; padding-block: 56px 32px; }
.footer-grid h2 { font-size: 16px; margin-bottom: 18px; }
.footer-intro .brand { font-size: 40px; margin-bottom: 24px; }
.footer-grid p { font-size: 16px; }
.footer-grid > div > a:not(.brand) { font-size: 16px; padding-block: 7px; min-height: 36px; line-height: 1.5; }
.footer-grid .footer-profile { display: inline-flex !important; align-items: center; gap: 12px; margin-top: 8px; }
.footer-profile .ui-icon { filter: brightness(0) invert(1); }
.footer-locations ul { padding: 0; margin: 0 0 24px; list-style: none; }
.footer-locations li { font-size: 16px; color: #d3dfe8; margin-bottom: 8px; }
.footer-support { display: flex; gap: 12px 28px; flex-wrap: wrap; padding-block: 12px 24px; }
.footer-support a { font-size: 14px; min-height: 36px; display: inline-flex; align-items: center; }
.footer-support a[aria-current="page"] { color: var(--gold); }
.footer-bottom { padding-block: 22px; gap: 40px; }
.footer-bottom p { font-size: 12px; max-width: 540px; }

@media (max-width: 1200px) {
  .js-ready .menu { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 14px; background: white; color: var(--ink); border: 1px solid #a9bac7; border-radius: 6px; font-size: 16px; }
  .menu .ui-icon { width: 22px; height: 22px; }
  #navigation { width: 100%; flex-direction: column; align-items: stretch; gap: 0; font-size: 16px; }
  .js-ready #navigation { display: none; position: absolute; top: 100%; left: 0; padding: 16px 40px 24px; margin: 0; border-top: 1px solid var(--line); background: white; max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 16px 30px #051c2e18; }
  .js-ready #navigation.open { display: flex; }
  #navigation > a { white-space: normal; padding-block: 14px; }
  #navigation > a:last-child { margin-top: 12px; }
  #navigation summary { justify-content: space-between; padding-block: 14px; }
  .services-panel { position: static; transform: none; left: auto; width: 100%; max-width: none; max-height: none; box-shadow: none; margin: 0 0 12px; background: var(--tint); }
  html:not(.js-ready) header { position: relative; }
  html:not(.js-ready) .header-inner { flex-wrap: wrap; padding-block: 16px; }
  .experience-grid { gap: 32px; }
  .experience-locations > div { gap: 12px; }
  .experience-location { padding-inline: 12px; font-size: 15px; }
}
@media (max-width: 960px) {
  .utility .utility-position { display: none; }
  .utility .wrap { justify-content: center; }
  .utility-contacts .contact-long { display: none; }
  .utility-contacts .contact-short { display: inline; }
  .utility-contacts { gap: 32px; }
  .utility-contacts a { min-height: 36px; font-size: 13px; }
  .portfolio-grid, .experience-grid { grid-template-columns: 1fr; gap: 28px; }
  .portfolio-grid p { max-width: 760px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; }
  .keep-contact-card { padding: 24px; }
}
@media (max-width: 760px) {
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .mobile-contact, .js-ready .mobile-contact { display: grid; position: fixed; inset: auto 0 0; width: 100%; max-width: none; height: calc(60px + env(safe-area-inset-bottom, 0px)); padding: 0 0 env(safe-area-inset-bottom, 0px); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; background: white; border-top: 1px solid var(--line); box-shadow: 0 -4px 18px #051c2e0c; z-index: 60; }
  .mobile-contact > a, .mobile-contact > a:last-child { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 60px; margin: 0; padding: 6px; border: 0; border-radius: 0; background: white; color: var(--ink); font-size: 12px; }
  .mobile-contact > a + a { border-left: 1px solid var(--line); }
  .mobile-contact .ui-icon { width: 22px; height: 22px; }
  .keyboard-active .mobile-contact, .js-ready.keyboard-active .mobile-contact { display: none; }
  .js-ready #navigation { max-height: calc(100dvh - 80px - 60px - env(safe-area-inset-bottom, 0px)); }
  .keep-contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .keep-contact-card { padding: 24px; }
  .keep-contact-card > .ui-icon { margin-bottom: 14px; }
  .page-hero-grid { padding-block: 48px; gap: 28px; }
  .page-photo { max-height: none; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 88px; }
  body { font-size: 16px; }
  .wrap { padding-inline: 20px; }
  .header-inner { min-height: 64px; padding-block: 0; }
  .brand { font-size: 32px; }
  .brand span { font-size: 8px; margin-top: 7px; letter-spacing: 3px; }
  .js-ready #navigation { padding-inline: 20px; max-height: calc(100dvh - 64px - 60px - env(safe-area-inset-bottom, 0px)); }
  .section { padding-block: 48px; }
  h2, .businesses-surface h2 { font-size: 28px; }
  h3, .business-card h3, .opportunity-box h3 { font-size: 18px; }
  .page-hero h1, .page-intro h1, .contact-intro h1 { font-size: 34px; }
  .page-hero-grid { padding-block: 40px; }
  .page-hero .lead, .page-intro .lead, .contact-intro .lead, .intro p:not(.eyebrow), .section-heading > p, .split p:not(.eyebrow):not(.field-help):not(.note), .work-body > p:not(.work-clients), .work-body li, .opportunity-box p, .trade-card p, .faq-list details p, .three-grid > article p { font-size: 16px; }
  .business-grid, .product-grid, .trade-products, .two-grid, .updates-grid { gap: 20px; }
  .form-grid { gap: 20px; }
  .section-heading { gap: 20px; }
  .experience-locations > div { grid-template-columns: 1fr; gap: 12px; }
  .experience-location { min-height: 64px; flex-direction: row; align-items: center; gap: 16px; padding: 16px 20px; font-size: 16px; }
  .portfolio-grid p { font-size: 16px; }
  .portfolio-grid .button { width: 100%; }
  .experience-grid h2 { max-width: 340px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 40px 20px; }
  .footer-grid > div { grid-column: auto; }
  .footer-grid > div > a:not(.brand) { min-height: 48px; padding-block: 12px; }
  .footer-intro .brand { font-size: 36px; margin-bottom: 20px; }
  .footer-grid h2 { font-size: 16px; margin-bottom: 12px; }
  .footer-support { gap: 8px 24px; padding-bottom: 20px; }
  .footer-support a { min-height: 48px; }
  .footer-bottom { display: block; padding-block: 20px; }
  .footer-bottom p + p { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .keep-contact-card, .experience-location { transition: none; }
  .keep-contact-card:hover, .experience-location:hover { transform: none; }
}
