/* Shared layout and accessibility refinements for the existing Sähköisä pages. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 138px; }
body { min-width: 280px; }
img, video, iframe { max-width: 100%; }
svg { flex-shrink: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, summary { touch-action: manipulation; }
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #A47B00;
  outline-offset: 4px;
}
button:disabled { cursor: not-allowed; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
main, section, article, [style*="display:grid"] > div,
[style*="display: grid"] > div { min-width: 0; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
#main-content:focus { outline: none; }
.skip-to-content {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1100;
  padding: 14px 20px;
  border-radius: 8px;
  background: #FFD52E;
  color: #12120E;
  font-weight: 700;
  transform: translateY(-150%);
}
.skip-to-content:focus { transform: translateY(0); }
#mobile-navigation a { min-height: 44px; }
.site-nav-shell:has(#mobile-navigation) { transform: none !important; }
.site-nav-shell:focus-within { transform: none !important; }
.site-footer a { line-height: 1.6; }
.service-contact-section {
  background: #F3F3EC;
  border-block: 1px solid #E8E7DC;
}
.service-contact-content {
  max-width: 880px;
  margin: auto;
  padding: clamp(56px, 7vw, 96px) clamp(20px, 4vw, 48px);
  text-align: center;
}
.service-eyebrow {
  color: #8A6D00;
  font: 600 12px/1.5 'IBM Plex Mono', monospace;
  letter-spacing: .12em;
}
.service-contact-content h2 {
  margin: 18px 0;
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.08;
}
.service-contact-content p {
  max-width: 62ch;
  margin: 0 auto;
  color: #55544A;
  font-size: 16px;
  line-height: 1.7;
}
.service-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}
.service-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px 26px;
  border-radius: 14px;
  background: #FFD52E;
  color: #12120E;
  font-weight: 750;
  transition: background .2s, color .2s;
}
.service-action:hover { background: #12120E; color: #FFD52E; }
.service-text-action { padding: 12px 0; font-weight: 650; text-decoration: underline; text-underline-offset: 5px; }
/* Service introductions: real installation photos with a quiet, readable layout. */
.service-hero {
  border-bottom: 1px solid #E8E7DC;
}
.service-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(44px, 5vw, 72px) clamp(20px, 4vw, 48px) clamp(56px, 6vw, 88px);
}
.service-hero-copy { min-width: 0; }
.service-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #766100;
  font: 500 11px/1.6 'IBM Plex Mono', monospace;
  letter-spacing: .1em;
}
.service-hero-eyebrow::before {
  content: '';
  flex: 0 0 24px;
  height: 3px;
  background: #FFD52E;
}
.service-hero h1 {
  margin: 22px 0 0;
  max-width: 19ch;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 750;
  font-stretch: 100%;
  line-height: 1.08;
  letter-spacing: -.035em;
  overflow-wrap: normal;
  hyphens: manual;
  text-wrap: balance;
}
.service-hero-keep { white-space: nowrap; }
.service-hero-intro {
  max-width: 49ch;
  margin: 24px 0 0;
  color: #55544A;
  font-size: 17px;
  line-height: 1.7;
}
.service-hero-actions { margin-top: 30px; }
.service-hero .service-action { border-radius: 8px; padding: 17px 24px; }
.service-hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  color: #68675D;
  font: 500 10px/1.6 'IBM Plex Mono', monospace;
  letter-spacing: .04em;
}
.service-hero-notes li { display: flex; align-items: center; gap: 8px; }
.service-hero-notes li::before { content: ''; width: 4px; height: 4px; background: #A68A00; }
.service-hero-media { min-width: 0; width: 100%; margin: 0; }
.service-hero-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: #E8E7DC;
}
.service-hero-media figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 16px;
  color: #68675D;
  font-size: 12px;
  line-height: 1.6;
}
.service-hero-media figcaption strong { color: #45443C; font-weight: 600; }
@media (max-width: 999px) {
  .service-hero-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; max-width: 760px; }
  .service-hero h1 { max-width: 20ch; font-size: clamp(32px, 6.5vw, 50px); }
  .service-hero-intro { max-width: 58ch; }
  .service-hero-photo { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .service-hero h1 { font-size: clamp(30px, 8vw, 42px); }
  .service-hero-intro { font-size: 16px; }
  .service-hero-layout { padding-top: 38px; }
  .service-hero-photo { aspect-ratio: 1; }
}
@media (min-width: 1240px) and (max-width: 1350px) {
  .nav-main-row { gap: 12px !important; padding-inline: 20px !important; }
  .nav-main-row nav a { padding-inline: 9px !important; }
  .nav-main-row > div > a[href^="tel:"] { display: none !important; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 128px; }
  input, select, textarea { font-size: 16px !important; }
  .site-footer a { min-height: 36px; }
  [data-screen-label="Hero"]:where(:not(.service-hero)) h1 { overflow-wrap: anywhere; }
  [data-screen-label="hintalaskuri ja tilaus"] > div { padding-inline: 16px !important; }
  [data-screen-label="hintalaskuri ja tilaus"] h2 { overflow-wrap: anywhere; }
}
@media (max-width: 420px) {
  .nav-main-row { padding-inline: 14px !important; gap: 10px !important; }
  .nav-brand { gap: 8px !important; }
  .nav-brand img { width: 36px !important; height: 36px !important; }
  .nav-brand > span > span:first-child { font-size: 16px !important; }
  .nav-brand > span > span:last-child { font-size: 8px !important; letter-spacing: .15em !important; }
  .nav-mobile-actions { gap: 8px !important; }
  .nav-mobile-actions a, .nav-mobile-actions button { width: 44px !important; height: 44px !important; }
  .footer-phone-cta { flex-wrap: wrap; justify-content: flex-start !important; }
  #lomake a[href^="tel:"], #lomake a[href^="mailto:"] { flex-wrap: wrap; padding: 18px !important; }
  .service-action { width: 100%; padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* Decorative transforms must not extend the viewport scroll area. */
html { overflow-x: clip; }
