/* Phase 1 critical frontend remediation: readability, navigation isolation and forms. */
html { font-size: 100%; }
body { font-size: 16px; line-height: 1.6; }
button { font-size: 14px; line-height: 1.45; }
input, select, textarea { font-size: 16px; line-height: 1.5; }
small { font-size: 14px; line-height: 1.55; }

/* The mobile navigation must not participate in desktop layout or paint. */
.page-mobile,
.mobile-panel { display: none !important; }

.page-nav a,
.desktop-nav a,
.login-link,
.studio-link,
.portal-link,
.site-search-trigger { font-size: 14px !important; line-height: 1.45 !important; letter-spacing: .05em !important; }

.kicker,
.eyebrow,
.section-no,
.section-number,
.feature-card small,
.article-card small,
.listing-card p,
.detail-aside,
.detail-facts small,
.steps-list article::before,
.footer-columns span,
.footer-base,
.footer-links span,
.footer-bottom { font-size: 14px !important; line-height: 1.55 !important; }

.lead,
.feature-card p,
.detail-copy p,
.steps-list p,
.empty-note,
.footer-columns a,
.footer-links a,
.page-hero-foot p,
.hero-bottom > p,
.intro-copy p,
.section-note,
.step p,
.principle-foot > p,
.contact-bottom > p { font-size: 16px !important; line-height: 1.65 !important; }

.filterbar button,
.project-filters button,
.button,
.cta-band a,
.text-link,
.secondary-services a,
.round-link span { font-size: 14px !important; line-height: 1.45 !important; }

.page-hero-foot span,
.card-top,
.card-content p,
.card-content > span,
.secondary-services > span,
.project-info span,
.gallery-item span,
.modal-meta,
.assist-label { font-size: 14px !important; line-height: 1.55 !important; }

.service-action,
.property-back,
.portfolio-back,
.assist-option,
.assist-panel a { font-size: 14px !important; line-height: 1.45 !important; }

.contact-form { gap: 24px 22px !important; }
.contact-form label { display: grid; gap: 8px; font: 500 14px/1.5 var(--mono) !important; letter-spacing: .05em !important; }
.contact-form input,
.contact-form select,
.contact-form textarea { margin-top: 0 !important; padding: 13px 0 !important; font: 400 16px/1.5 var(--sans) !important; }
.contact-form textarea { min-height: 150px !important; resize: vertical; }
.contact-form .button { min-height: 50px; padding: 14px 28px !important; }
.form-status { min-height: 24px; margin: 14px 0 0; font-size: 15px; line-height: 1.5; }

.home-inquiry-cta { display: flex; align-items: center; justify-content: flex-start; }
.home-inquiry-cta a { display: inline-flex; align-items: center; min-height: 52px; padding: 14px 28px; background: var(--lime); color: var(--ink); font: 600 14px/1.45 var(--mono); letter-spacing: .05em; text-decoration: none; }

/* Homepage footer contact details and map remain readable at every width. */
.footer-contact {
  grid-template-columns: max-content minmax(0, 1fr) !important;
  gap: 10px 20px !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
}
.footer-contact span,
.footer-contact strong,
.footer-contact a { font-size: 16px !important; line-height: 1.5 !important; }
.footer-contact strong { min-width: 0; overflow-wrap: anywhere; }

.footer-map-link {
  position: absolute;
  left: 4.35vw;
  top: 306px;
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.45);
  color: #fff;
  font: 700 14px/1.45 var(--mono, monospace);
  letter-spacing: .08em;
  text-decoration: none;
}
.footer-map-link:hover,
.footer-map-link:focus-visible { color: var(--lime, #c8ed83); }

@media (max-width: 900px) {
  .page-mobile,
  .mobile-panel.open { display: flex !important; }
  .page-mobile:not(.open) { display: none !important; transform: none !important; }
  .page-mobile.open { transform: none !important; }
  .page-mobile a,
  .mobile-panel a { font-size: clamp(20px, 5vw, 30px) !important; line-height: 1.2 !important; }
  .mobile-group,
  .mobile-menu-label { font-size: 14px !important; line-height: 1.5 !important; letter-spacing: .08em !important; }
}

@media (min-width: 601px) {
  .footer { min-height: 540px; }
  .footer-map {
    top: 294px !important;
    width: min(38vw, 360px) !important;
    height: clamp(140px, 18vw, 190px) !important;
  }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .page-mobile { padding: 96px 6vw 28px !important; overflow-y: auto; }
  .contact-form { grid-template-columns: 1fr !important; }
  .contact-form .wide { grid-column: auto !important; }
  .home-inquiry-cta a { width: 100%; justify-content: center; }
  .footer-contact { width: 100%; }
  .footer-map { width: 100% !important; height: clamp(180px, 55vw, 260px) !important; margin: 24px 0 10px !important; }
  .footer-map-link { position: static; margin: 24px 0 10px; }
}
