/*
Theme Name: Sahkokone 2026
Theme URI: https://sahkokone.com/
Description: Sähkökonekorjaamo Pasi Laine -teeman sähköinen, Cloud-henkinen ulkoasu. Twenty Seventeen -lapsiteema.
Author: Sähkökonekorjaamo Pasi Laine
Template: twentyseventeen
Version: 0.12.0
Text Domain: sahkokone-2026
*/

:root {
  --sk-orange: #f57c00;
  --sk-orange-2: #ff991f;
  --sk-electric: #11a8ff;
  --sk-electric-2: #78d4ff;
  --sk-navy: #031424;
  --sk-bg: #030b13;
  --sk-card: rgba(2, 15, 27, .91);
  --sk-card-light: rgba(246, 249, 252, .92);
  --sk-line: rgba(80, 188, 255, .48);
  --sk-text: #f8fbff;
  --sk-muted: #c1cbd5;
  --sk-shadow: 0 25px 80px rgba(0,0,0,.48);
  --sk-radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sk-bg);
  color: var(--sk-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sk-orange-2); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
button { font: inherit; }

.sk-site-shell {
  min-height: 100vh;
  background-color: var(--sk-bg);
  background-image:
    linear-gradient(180deg, rgba(1,8,15,.30), rgba(1,8,15,.64)),
    var(--sk-hero-image);
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
  /* Laskee taustakuvaa hieman: korjaajan pää jää kokonaan näkyviin. */
  background-position: center, center calc(50% + 58px);
}

/* ELECTRIC HEADER */
.sk-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 112px;
  background:
    radial-gradient(ellipse 330px 92px at 15% 52%, rgba(104,211,255,.92) 0%, rgba(34,139,204,.64) 38%, rgba(8,67,108,.24) 63%, transparent 78%),
    linear-gradient(90deg, #061927 0%, #04131f 24%, #03101a 43%, #020a12 68%, #01060b 100%);
  border-bottom: 1px solid rgba(70,187,255,.42);
  box-shadow: 0 8px 32px rgba(0,0,0,.36), inset 0 -1px rgba(255,255,255,.06);
  overflow: visible;
}
.sk-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--sk-electric-header);
  background-repeat: no-repeat;
  background-size: 520px 132px;
  background-position: 72px 50%;
  opacity: .58;
  pointer-events: none;
  mix-blend-mode: screen;
}
.sk-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 27% 45%, rgba(255,139,0,.30) 0 2px, transparent 3px),
    radial-gradient(circle at 30% 55%, rgba(255,139,0,.22) 0 1.5px, transparent 2.5px),
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 60%);
  pointer-events: none;
}
.admin-bar .sk-header { top: 32px; }
.sk-header-inner {
  position: relative;
  z-index: 2;
  max-width: 1600px;
  margin: 0 auto;
  min-height: 112px;
  padding: 11px 28px;
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}
.sk-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 290px;
  margin-left: 34px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 2px 2px rgba(255,255,255,.18));
}
.sk-brand-logo {
  display: block;
  width: 268px;
  max-width: 100%;
  height: auto;
}

.sk-nav { display: flex; align-items: center; justify-content: flex-end; gap: 2px; min-width: 0; }
.sk-nav-item { position: relative; }
.sk-nav-link, .sk-nav-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 12px 9px;
  border-radius: 9px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 780;
  text-shadow: 0 1px 5px rgba(0,0,0,.55);
  cursor: pointer;
  white-space: nowrap;
}
.sk-nav-link:hover, .sk-nav-button:hover, .sk-nav-item:focus-within > .sk-nav-button { background: rgba(255,255,255,.11); }
.sk-nav-button::after { content: "▾"; margin-left: 5px; font-size: 9px; color: #c9eaff; }
.sk-dropdown {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  min-width: 265px;
  padding: 9px;
  background: rgba(2,14,25,.98);
  border: 1px solid rgba(62,181,255,.42);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.50), 0 0 24px rgba(0,145,255,.10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: .18s ease;
}
.sk-nav-item:hover > .sk-dropdown,
.sk-nav-item:focus-within > .sk-dropdown,
.sk-nav-item.is-open > .sk-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.sk-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  color: #eaf6ff;
  font-size: 14px;
}
.sk-dropdown a:hover { background: linear-gradient(90deg, rgba(17,168,255,.18), rgba(245,124,0,.12)); color: #fff; }

.sk-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #ff8a00, #ec6500);
  color: #fff;
  border: 1px solid rgba(255,180,89,.42);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 880;
  box-shadow: 0 12px 34px rgba(245,124,0,.30), inset 0 1px rgba(255,255,255,.20);
  white-space: nowrap;
  transition: .18s ease;
}
.sk-cta:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 14px 38px rgba(245,124,0,.38); }
.sk-mobile-toggle { display: none; }

/* HOME HERO */
.sk-home-main { min-height: calc(100vh - 112px); }
.sk-hero {
  max-width: 1510px;
  min-height: 700px;
  margin: 0 auto;
  padding: 62px 28px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sk-hero-card {
  width: min(700px, 100%);
  margin: 0 auto;
  padding: 44px 54px 40px;
  text-align: center;
  color: #0d1a26;
  background: rgba(247,250,253,.91);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 21px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 28px 80px rgba(0,0,0,.45), inset 0 1px rgba(255,255,255,.55);
}
.sk-kicker {
  margin: 0 0 8px;
  color: #162737;
  font-size: 13px;
  font-weight: 920;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.sk-hero-card h1 {
  margin: 0;
  font-family: "Arial Narrow", "Liberation Sans Narrow", Arial, sans-serif;
  font-size: clamp(44px, 5vw, 66px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.02em;
}
.sk-hero-rule { display: block; width: 82px; height: 3px; margin: 22px auto 0; background: var(--sk-orange); border-radius: 999px; }
.sk-hero-card p { max-width: 590px; margin: 20px auto 0; color: #344657; font-size: 17px; }
.sk-hero-actions { margin-top: 28px; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.sk-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid rgba(16,35,52,.34);
  background: rgba(255,255,255,.54);
  color: #142332;
  font-weight: 820;
  transition: .18s ease;
}
.sk-button-primary { background: linear-gradient(135deg, #ff8a00, #ef6c00); color: #fff; border-color: #f57c00; }
.sk-button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.16); }

/* ELECTRIC QUICK CARDS */
.sk-service-grid {
  width: 100%;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
}
.sk-service-card {
  position: relative;
  appearance: none;
  width: 100%;
  min-height: 272px;
  padding: 25px 24px 22px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 50% 18%, rgba(0,151,255,.19), transparent 33%),
    linear-gradient(180deg, rgba(4,31,53,.96), rgba(2,13,24,.97));
  border: 1px solid rgba(46,173,255,.68);
  border-radius: 17px;
  box-shadow: 0 18px 46px rgba(0,0,0,.34), inset 0 0 34px rgba(0,145,255,.06);
  cursor: pointer;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.sk-service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 12%, rgba(17,168,255,.08) 31%, transparent 52%),
    radial-gradient(circle at 50% 18%, rgba(111,218,255,.13), transparent 32%);
  pointer-events: none;
}
.sk-service-card:hover { transform: translateY(-5px); border-color: #6bd1ff; box-shadow: 0 23px 55px rgba(0,0,0,.40), 0 0 28px rgba(0,145,255,.14); }
.sk-service-card-button { font: inherit; }
.sk-icon-orb {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  margin-bottom: 16px;
  color: #87dcff;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32,183,255,.28) 0, rgba(0,126,224,.13) 45%, transparent 72%);
  filter: drop-shadow(0 0 9px rgba(31,178,255,.85));
}
.sk-icon-orb::before, .sk-icon-orb::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(79,200,255,.35);
  border-radius: 50%;
  transform: rotate(17deg);
}
.sk-icon-orb::after { inset: 2px 16px 16px 4px; border-color: rgba(255,141,0,.30); transform: rotate(-27deg); }
.sk-service-icon { width: 52px; height: 52px; position: relative; z-index: 1; }
.sk-service-card h2 {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 280px;
  font-family: "Arial Narrow", "Liberation Sans Narrow", Arial, sans-serif;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}
.sk-service-card p { position: relative; z-index: 1; margin: 13px auto 0; max-width: 285px; color: #c9d4de; font-size: 14.5px; }
.sk-service-more { position: relative; z-index: 1; display: inline-block; margin-top: 16px; color: var(--sk-orange-2); font-size: 14px; font-weight: 850; }

/* Native toilet chooser: works even in WordPress Live Preview without JavaScript. */
.sk-service-details {
  position: relative;
  min-width: 0;
}
.sk-service-details > summary {
  list-style: none;
}
.sk-service-details > summary::-webkit-details-marker { display: none; }
.sk-service-details[open] > .sk-service-summary {
  border-color: #79d8ff;
  box-shadow: 0 23px 55px rgba(0,0,0,.42), 0 0 34px rgba(0,145,255,.22);
}
.sk-toilet-popover {
  position: absolute;
  z-index: 60;
  top: calc(100% + 12px);
  left: 50%;
  width: min(790px, 88vw);
  transform: translateX(-50%);
  padding: 18px;
  border-radius: 16px;
  background: rgba(2,15,27,.985);
  border: 1px solid rgba(68,190,255,.68);
  box-shadow: 0 26px 72px rgba(0,0,0,.60), 0 0 34px rgba(0,145,255,.14);
}
.sk-toilet-popover::before {
  content: "";
  position: absolute;
  top: -7px; left: 50%;
  width: 13px; height: 13px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(2,15,27,.985);
  border-left: 1px solid rgba(68,190,255,.68);
  border-top: 1px solid rgba(68,190,255,.68);
}
.sk-toilet-popover-title {
  margin: 0 0 12px;
  text-align: center;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sk-toilet-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
}
.sk-toilet-links a {
  padding: 15px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 11px;
  background: rgba(255,255,255,.04);
  transition: .18s ease;
}
.sk-toilet-links a:hover {
  border-color: rgba(245,124,0,.75);
  background: rgba(245,124,0,.09);
  transform: translateY(-2px);
}
.sk-toilet-links strong, .sk-toilet-links span { display: block; }
.sk-toilet-links strong { color: #fff; }
.sk-toilet-links span { margin-top: 4px; color: #b9c8d4; font-size: 12.5px; }

/* SERVICE STRIP */
.sk-benefit-strip {
  background: linear-gradient(180deg, rgba(2,15,27,.96), rgba(2,11,20,.99));
  border-top: 1px solid rgba(72,187,255,.28);
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 -12px 35px rgba(0,0,0,.24);
}
.sk-benefit-grid { max-width: 1510px; margin: 0 auto; padding: 20px 28px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.sk-benefit { display: flex; align-items: center; gap: 15px; min-width: 0; padding: 5px 24px; border-right: 1px solid rgba(255,255,255,.20); }
.sk-benefit:last-child { border-right: 0; }
a.sk-benefit:hover strong { color: var(--sk-orange-2); }
.sk-benefit-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; color: #31b8ff; border: 2px solid #159deb; border-radius: 50%; font-size: 23px; font-weight: 900; filter: drop-shadow(0 0 7px rgba(0,149,255,.45)); }
.sk-benefit strong { display: block; color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .02em; transition: .18s ease; }
.sk-benefit small { display: block; margin-top: 2px; color: #c1ccd5; font-size: 12.5px; }

/* PAGES / ARTICLES */
.sk-content-wrap { max-width: 1180px; margin: 0 auto; padding: 72px 28px 90px; }
.sk-home-content-wrap { padding-top: 58px; }
/* Sisältösivujen laatikko: selvästi sinertävä, mutta pitkä teksti säilyy helposti luettavana.
   Tarkoituksella vahvempi selektori ja !important taustalle, jotta vanhan teeman / Customizerin
   valkoinen artikkelitausta ei pääse peittämään tätä tyyliä. */
.sk-site-shell .sk-content-card {
  background-color: #c7e2f0 !important;
  background-image:
    url("assets/images/wiring-schematic-blue.png"),
    linear-gradient(145deg,
      #f9fcff 0%,
      #eaf5fb 24%,
      #d7ebf6 58%,
      #bfddec 100%
    ) !important;
  /* Aidon sähkökaavion viivasto skaalautuu laatikon leveyteen ja toistuu pystysuunnassa,
     jotta pitkä sisältösivu saa saman taustan koko pituudelle. */
  background-size: 100% auto, auto !important;
  background-position: center top, center top !important;
  background-repeat: repeat-y, no-repeat !important;
  color: #17212a;
  border-radius: 20px;
  padding: clamp(28px,5vw,60px);
  box-shadow: var(--sk-shadow), inset 0 1px 0 rgba(255,255,255,.72);
  border: 1px solid rgba(82,170,218,.60);
}
.sk-content-card h1 { margin-top: 0; font-size: clamp(34px,4vw,52px); line-height: 1.08; }
.sk-content-card h2, .sk-content-card h3 { color: #111a22; }
.sk-content-card a { color: #b95300; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.sk-content-card table { width: 100%; border-collapse: collapse; }
.sk-content-card th, .sk-content-card td { border-bottom: 1px solid #d9e0e5; padding: 10px; text-align: left; }
.sk-content-card input:not([type="checkbox"]):not([type="radio"]), .sk-content-card textarea, .sk-content-card select { max-width: 100%; }
.sk-content-card button, .sk-content-card input[type="submit"] { max-width: 100%; }

.sk-post-list { display: grid; gap: 22px; }
.sk-post-item { padding: 0 0 24px; border-bottom: 1px solid #d9e0e5; }
.sk-post-item:last-child { border-bottom: 0; padding-bottom: 0; }
.sk-post-item h2 { margin: 0 0 8px; font-size: clamp(24px,3vw,34px); }
.sk-post-item h2 a { color: #111a22; text-decoration: none; }
.sk-post-item h2 a:hover { color: #b95300; }
.sk-post-meta { margin: 0 0 12px; color: #66727c; font-size: 13px; }
.sk-post-excerpt p:last-child { margin-bottom: 0; }
.sk-content-card .nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.sk-content-card .page-numbers { padding: 8px 11px; border: 1px solid #d5dce1; border-radius: 8px; text-decoration: none; }
.sk-content-card .page-numbers.current { background: var(--sk-orange); color: #fff; border-color: var(--sk-orange); }

.sk-footer { background: rgba(2,7,12,.98); border-top: 1px solid rgba(255,255,255,.08); color: #cbd3da; }
.sk-footer-inner { max-width: 1510px; margin: 0 auto; padding: 25px 28px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; }
.sk-footer a { color: #fff; }

@media (max-width: 1300px) {
  .sk-header-inner { grid-template-columns: minmax(220px,260px) 1fr auto; gap: 10px; padding-left: 20px; padding-right: 20px; }
  .sk-brand { margin-left: 18px; }
  .sk-brand-logo { width: 240px; }
  .sk-nav-link, .sk-nav-button { font-size: 12.5px; padding-left: 7px; padding-right: 7px; }
  .sk-cta { font-size: 12.5px; padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 1140px) {
  .sk-header-inner { grid-template-columns: 1fr auto; }
  .sk-nav { display: none; grid-column: 1 / -1; flex-direction: column; align-items: stretch; padding: 10px 0 14px; }
  .sk-header.is-menu-open .sk-nav { display: flex; }
  .sk-mobile-toggle { display: inline-flex; justify-self: end; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 10px; border: 1px solid rgba(255,255,255,.24); background: rgba(0,28,48,.36); color: #fff; font-size: 21px; cursor: pointer; }
  .sk-header-inner > .sk-cta { display: none; }
  .sk-nav-item { width: 100%; }
  .sk-nav-link, .sk-nav-button { width: 100%; text-align: left; font-size: 14px; }
  .sk-dropdown { position: static; display: none; min-width: 0; margin: 4px 0 8px 12px; opacity: 1; visibility: visible; transform: none; box-shadow: none; }
  .sk-nav-item.is-open > .sk-dropdown { display: block; }
  .sk-nav-item:hover > .sk-dropdown { display: none; }
  .sk-nav-item.is-open:hover > .sk-dropdown { display: block; }
}
@media (max-width: 900px) {
  .sk-site-shell {
    background-attachment: scroll, scroll;
    background-position: center, 38% 112px;
  }
  .sk-header::before { background-size: 470px 125px; background-position: 18px 50%; opacity: .50; }
  .sk-hero { min-height: auto; padding-top: 48px; }
  .sk-hero-card { padding: 38px 28px; }
  .sk-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sk-toilet-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sk-toilet-popover { width: min(680px, 92vw); }
  .sk-benefit-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sk-benefit:nth-child(2) { border-right: 0; }
  .sk-benefit:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.16); padding-bottom: 16px; margin-bottom: 16px; }
}
@media (max-width: 600px) {
  .admin-bar .sk-header { top: 46px; }
  .sk-header {
    min-height: 88px;
    background:
      radial-gradient(ellipse 230px 72px at 28% 50%, rgba(99,207,255,.86), rgba(25,122,185,.45) 46%, transparent 78%),
      linear-gradient(90deg,#061927,#03101a 52%,#01070c);
  }
  .sk-header-inner { min-height: 88px; padding: 9px 16px; }
  .sk-brand { max-width: 220px; margin-left: 0; }
  .sk-brand-logo { width: 205px; }
  .sk-header::before { background-size: 360px 105px; background-position: -35px 50%; opacity: .42; }
  .sk-hero { padding: 34px 16px 22px; }
  .sk-hero-card { padding: 31px 19px; border-radius: 17px; }
  .sk-hero-card p { font-size: 16px; }
  .sk-hero-actions { flex-direction: column; gap: 10px; }
  .sk-button { width: 100%; }
  .sk-service-grid { grid-template-columns: 1fr; }
  .sk-service-card { min-height: 238px; }
  .sk-toilet-links { grid-template-columns: 1fr; }
  .sk-toilet-popover { position: static; width: 100%; transform: none; margin-top: 10px; }
  .sk-toilet-popover::before { display: none; }
  .sk-benefit-grid { grid-template-columns: 1fr; padding: 12px 16px; }
  .sk-benefit { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); padding: 14px 6px; margin: 0 !important; }
  .sk-benefit:last-child { border-bottom: 0; }
  .sk-content-wrap { padding: 36px 16px 60px; }
  .sk-content-card { border-radius: 16px; }
}
