/* Scoped refinements: the original stylesheet remains unchanged. */
:root { --muted: #526276; }
/* Explicit foregrounds keep text legible in embedded previews and dark host themes. */
h1, h2, h3, .quote p, .service-article p, .service-article li,
.service-article nav, .service-article summary { color: var(--ink); }
.section, .contact-section, .service-header, .service-article { color: var(--ink); }
.hero h1, .business-band h2, .business-band h3,
.service-card.featured h3 { color: var(--white); }
.success-card h1 { color: var(--ink); }
.business-panel li { color: #edf4fa; }
.hero .eyebrow, .business-band .section-kicker { color: #ff9398; }
.contact-copy .section-kicker, .service-article .section-kicker { color: var(--red); }
.lead-form { background: var(--white); }
.category-option strong, .request-categories legend { color: var(--ink); }
.contact-form-column { min-width: 0; }
.location-map { margin-top: 32px; }
.location-map-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.location-map h3 { margin: 0; font-size: 20px; line-height: 1.35; }
.location-map-link { color: var(--blue-dark); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.location-map iframe { display: block; width: 100%; height: 320px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-strong); }
.site-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; color: #edf4fa; }
.site-footer > * { min-width: 0; overflow-wrap: anywhere; }
.footer-brand { color: var(--white); font-weight: 700; }
.footer-copyright { text-align: center; }
.footer-copyright span { display: block; max-width: 29ch; font-size: 12px; }
.footer-address { justify-self: end; text-align: right; color: #edf4fa; text-decoration: underline; text-underline-offset: 4px; }
.success-body { display: flex; flex-direction: column; }
.success-body .success-screen { flex: 1; }
html { scroll-padding-top: 110px; }
.service-guides .service-card { min-height: 0; padding: 0; }
.service-guides .service-card h3 { margin: 0; font-size: 21px; line-height: 1.35; }
.service-guides .service-card a {
  display: flex;
  align-items: center;
  min-height: 132px;
  padding: 24px;
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.service-guides .service-card a:hover { background: var(--ice); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
.lead-form, .category-option > span { min-width: 0; }
.lead-form input, .lead-form select, .lead-form textarea { min-width: 0; max-width: 100%; }
@media (max-width: 760px) {
  .service-guides .service-card a { min-height: 90px; }
  .site-footer { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 14px; text-align: center; }
  .footer-address { justify-self: center; text-align: center; }
  .location-map iframe { height: 300px; }
}
/* Preserve room for the brand and all four languages on narrow phones. */
@media (max-width: 480px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding-inline: 12px; }
  .site-header .brand { width: auto; min-width: 0; gap: 6px; }
  .site-header .brand-logo { width: 42px; height: 32px; flex-shrink: 0; }
  .site-header .brand strong { font-size: 12px; line-height: 1.2; }
  .site-header .language-switcher { gap: 2px; padding: 3px; }
  .site-header .language-switcher button { min-width: 28px; padding-inline: 5px; }
  .hero h1 { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
