/* 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; }
}

/* Shared navigation and portfolio additions; original palette and components retained. */
.site-footer { grid-template-columns: minmax(0,1fr); justify-items: center; text-align: center; }
.footer-links, .page-nav { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:12px 20px; }
.footer-links a { color:#edf4fa; text-decoration:underline; text-underline-offset:4px; }
.page-nav a { color:var(--blue-dark); font-weight:600; }
.page-nav a[aria-current="page"] { text-decoration:underline; text-underline-offset:4px; }
.project-card { min-height:0; }
.project-card h3 { font-size:clamp(1.3rem,3vw,1.8rem); line-height:1.4; }
.project-card .section-kicker { color:var(--red); }
.privacy-note a { text-decoration:underline; text-underline-offset:4px; }
.nav { flex-wrap:wrap; }
@media(max-width:760px) { .page-nav { justify-content:flex-start; } }

@media (max-width:1100px) {
 .site-header { grid-template-columns:minmax(0,1fr) auto; }
 .site-header .nav { display:flex; grid-column:1 / -1; grid-row:2; justify-content:center; gap:8px 18px; font-size:13px; }
 .site-header .header-actions { grid-column:2; grid-row:1; }
 .hero { padding-top:170px; }
 html { scroll-padding-top:150px; }
}
@media(max-width:480px) { .site-header .header-actions { grid-column:2; } .site-header .nav { font-size:12px; gap:6px 12px; } }

.partners > p { max-width: 76ch; }
.partners .button { margin-top: 12px; }

.lead-form .consent-option { display:flex; align-items:flex-start; gap:12px; cursor:pointer; font-size:14px; line-height:1.6; }
.lead-form .consent-option input[type="checkbox"] { appearance:auto; width:20px; height:20px; min-width:20px; flex:0 0 20px; padding:0; margin:3px 0 0; accent-color:var(--blue-dark); }
.lead-form .consent-option a { color:var(--blue-dark); text-decoration:underline; text-underline-offset:3px; }

/* Electricity-themed photographic hero, with a navy overlay for readable text. */
.hero {
  background-color:#07182b;
  background-image:
    linear-gradient(90deg,rgba(4,15,29,.91) 0%,rgba(5,20,37,.78) 38%,rgba(5,20,37,.30) 72%,rgba(5,20,37,.12) 100%),
    linear-gradient(180deg,rgba(4,15,29,.30),transparent 32%,rgba(4,15,29,.38)),
    url("assets/electricity-grid-hero.jpg");
  background-size:cover;
  background-position:center,center,center 58%;
  background-repeat:no-repeat;
}
.hero .energy-field, .hero .hero-logo-panel { display:none; }
.hero-content { text-shadow:0 2px 18px rgba(0,0,0,.18); }
@media(max-width:760px) {
 .hero {
   background-image:linear-gradient(90deg,rgba(4,15,29,.84),rgba(5,20,37,.65)),url("assets/electricity-grid-hero.jpg");
   background-position:center,72% center;
 }
}
