/* SJ-Detailing – "Grafiitti & kiilto". Värit ja typografia tulevat theme.json:sta. */

html { scroll-behavior: smooth; }
/* Header-osan kääre ei saa rajata sticky-headeria */
.wp-site-blocks > .wp-block-template-part:first-child { display: contents; }
:where(.wp-block-post-content) > .alignfull { margin-block-start: 0 !important; margin-block-end: 0 !important; }
img { height: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 2px; }
::selection { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent); }
p, li, td, th, dd { color: inherit; }

/* Napit */
.wp-element-button, .wp-block-button__link { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.wp-block-button.is-style-outline-light .wp-block-button__link { background: transparent; color: var(--wp--preset--color--text); border: 1px solid #3a4553; }
.wp-block-button.is-style-outline-light .wp-block-button__link:hover { border-color: var(--wp--preset--color--accent); color: #fff; }
.wp-block-button.is-style-glow .wp-block-button__link { box-shadow: 0 0 0 0 rgba(58,160,255,.5), 0 10px 30px rgba(58,160,255,.25); }

/* Yläotsake */
p.is-style-eyebrow { color: var(--wp--preset--color--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin: 0; }

/* Väkäslista (chipit) */
ul.is-style-checks { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; font-size: .88rem; }
ul.is-style-checks li { background: rgba(255,255,255,.07); border: 1px solid #2b3540; border-radius: 999px; padding: 6px 14px; color: #cfd8e2; }
.sj-van ul.is-style-checks { display: block; }
.sj-van ul.is-style-checks li { background: none; border: 0; padding: 0; margin: 6px 0; font-size: 1rem; }
.sj-van ul.is-style-checks li::before { content: "✓"; color: var(--wp--preset--color--accent); font-weight: 800; margin-right: 8px; }

/* Kortit */
.wp-block-group.is-style-card, .wp-block-group.is-style-dark-card { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 16px; overflow: hidden; }
.is-style-card h3, .is-style-dark-card h3 { color: #fff; }

/* Yläpalkki ja header */
.sj-topbar { font-size: .85rem; border-bottom: 1px solid var(--wp--preset--color--line); }
.sj-topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.sj-header { position: sticky; top: 0; z-index: 20; background: rgba(13,16,21,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--wp--preset--color--line); }
.admin-bar .sj-header { top: 32px; }
.sj-header .wp-block-site-title a { color: #fff; text-decoration: none; font-weight: 800; }
.sj-header .wp-block-navigation { color: var(--wp--preset--color--muted); font-weight: 600; font-size: .95rem; }
.sj-header .wp-block-navigation a { color: inherit; }
.sj-header .wp-block-navigation a:hover { color: #fff; }
.sj-header .wp-block-navigation__submenu-container { background: var(--wp--preset--color--surface) !important; color: var(--wp--preset--color--text) !important; border-radius: 12px; border: 1px solid var(--wp--preset--color--line) !important; box-shadow: 0 16px 40px rgba(0,0,0,.45); padding: 8px 0; min-width: 270px !important; }
.sj-header .wp-block-navigation__submenu-container a { padding: 8px 16px !important; }
.sj-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--bg) !important; color: var(--wp--preset--color--text) !important; }
.sj-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { background: transparent !important; border: 0 !important; box-shadow: none; }

/* Mobiilivalikko (overlay): vasen reuna, alavalikko sisennettynä, soittopainike */
.sj-header .wp-block-navigation .sj-nav-call { display: none; }
.sj-header .is-menu-open .wp-block-navigation__responsive-container-content,
.sj-header .is-menu-open .wp-block-navigation__container,
.sj-header .is-menu-open .wp-block-navigation-item,
.sj-header .is-menu-open .wp-block-navigation__submenu-container { align-items: flex-start !important; justify-content: flex-start !important; text-align: left; }
.sj-header .is-menu-open .wp-block-navigation__responsive-container-content { width: 100%; padding-top: 48px !important; }
.sj-header .is-menu-open .wp-block-navigation__container { gap: 0 !important; width: 100%; }
.sj-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--wp--preset--color--line); }
.sj-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { font-size: 1.3rem; font-weight: 700; color: #fff; padding: 16px 0 !important; }
.sj-header .is-menu-open .wp-block-navigation__submenu-container { width: 100%; gap: 0 !important; padding: 0 0 14px 16px !important; margin: -4px 0 0 2px !important; border-left: 2px solid var(--wp--preset--color--accent) !important; }
.sj-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 1.02rem; font-weight: 600; color: #c9d3de; padding: 9px 0 !important; }
.sj-header .is-menu-open .wp-block-navigation__submenu-icon, .sj-header .is-menu-open .wp-block-navigation-submenu__toggle { display: none !important; }
.sj-header .is-menu-open .wp-block-navigation__container > .sj-nav-call { display: flex; flex-direction: column; align-items: stretch !important; align-self: stretch; width: auto !important; max-width: 100%; border-bottom: 0; margin-top: 24px; box-sizing: border-box; }
.sj-header .is-menu-open .wp-block-navigation__container > .sj-nav-call > .wp-block-navigation-item__content { display: block !important; width: auto !important; max-width: 100%; box-sizing: border-box; text-align: center; background: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent) !important; border-radius: 999px; padding: 15px 20px !important; font-size: 1.05rem !important; font-weight: 800; white-space: nowrap; }
.sj-header .wp-block-navigation__responsive-container.is-menu-open { overflow-x: hidden; box-sizing: border-box; }
.sj-header .is-menu-open .wp-block-navigation__responsive-container-content, .sj-header .is-menu-open .wp-block-navigation__container { max-width: 100%; box-sizing: border-box; }

/* Hero: täysleveä kuva <img>-elementtinä, teksti päällä */
.sj-hero { position: relative; min-height: 560px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.sj-hero > .wp-block-image.sj-hero-img { position: absolute; inset: 0; margin: 0 !important; max-width: none !important; z-index: 0; }
.sj-hero > .wp-block-image.sj-hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.sj-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(13,16,21,.96) 0%, rgba(13,16,21,.78) 45%, rgba(13,16,21,.15) 100%); pointer-events: none; }
.sj-hero > :not(.sj-hero-img) { position: relative; z-index: 2; }
.sj-hero .sj-lead { color: #c9d3de; }

/* Sivun otsikkoalue (page.html): sisältö alkaa suoraan otsikkoalueen alta, yksi viiva */
.sj-pagehead + .wp-block-post-content { margin-block-start: 0 !important; }
.sj-pagehead + .wp-block-post-content > :first-child { margin-block-start: 0 !important; border-top: 0 !important; }
.sj-pagehead { border-bottom: 1px solid var(--wp--preset--color--line); background: radial-gradient(700px 300px at 85% 0%, rgba(58,160,255,.14), transparent 60%), var(--wp--preset--color--bg); }

.sj-lead { color: var(--wp--preset--color--muted); }

/* Luottamusrivi */
.sj-trust { border-bottom: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--surface); }
.sj-trust .sj-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(58,160,255,.12); display: grid; place-items: center; font-size: 1.25rem; margin: 0; }
.sj-trust p { margin: 0; }
.sj-trust strong { display: block; color: #fff; }
.sj-trust .sj-small { color: var(--wp--preset--color--muted); font-size: .9rem; }

/* Palvelukortit */
.sj-svc { display: flex !important; flex-direction: column; gap: 0 !important; height: 100%; }
.sj-svc > .wp-block-image { margin: 0; }
.sj-svc > .wp-block-image img { width: 100%; height: 170px; object-fit: cover; display: block; }
.sj-svc .sj-svc-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.sj-svc .sj-svc-body p { color: var(--wp--preset--color--muted); font-size: .93rem; }
.sj-svc .sj-svc-foot { margin-top: auto; }
.sj-price { font-weight: 800; color: var(--wp--preset--color--accent); font-size: 1.1rem; margin: 0; }
.sj-more a { font-weight: 700; text-decoration: none; font-size: .92rem; }

/* Pinnoitusosio */
.sj-dark { position: relative; overflow: hidden; background: var(--wp--preset--color--surface-2); }
.sj-dark::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 85% 20%, rgba(58,160,255,.16), transparent 60%); pointer-events: none; }
.sj-dark > * { position: relative; }
.sj-dark .is-style-dark-card { background: var(--wp--preset--color--bg); }
.sj-dark .is-style-dark-card p { color: var(--wp--preset--color--muted); font-size: .93rem; margin: 6px 0 0; }
.sj-tier-price { color: var(--wp--preset--color--accent); white-space: nowrap; font-weight: 800; margin: 0; }
.sj-dark .wp-block-image img { border-radius: 22px; aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: 0 30px 60px rgba(0,0,0,.5); }

/* Isot autot */
.sj-van { border-radius: 20px; overflow: hidden; background: var(--wp--preset--color--surface-2); border: 1px solid var(--wp--preset--color--line); }
.sj-van > .wp-block-column:first-child .wp-block-image, .sj-van > .wp-block-column:first-child .wp-block-image img { height: 100%; margin: 0; }
.sj-van .wp-block-image img { width: 100%; object-fit: cover; min-height: 340px; }
.sj-van p { color: var(--wp--preset--color--muted); }

/* Näin se toimii */
.sj-steps { counter-reset: sjstep; }
.sj-step { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 18px; }
.sj-step::before { counter-increment: sjstep; content: counter(sjstep); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent); font-weight: 800; margin-bottom: 14px; }
.sj-step p { color: var(--wp--preset--color--muted); font-size: .95rem; }

/* Hinnasto */
.sj-prices table { border-collapse: collapse; width: 100%; }
.sj-prices th, .sj-prices td { text-align: left; padding: 13px 4px; border: 0 !important; border-bottom: 1px solid var(--wp--preset--color--line) !important; }
.sj-prices td:last-child, .sj-prices th:last-child { text-align: right; font-weight: 800; color: var(--wp--preset--color--accent); white-space: nowrap; }
.sj-prices thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--wp--preset--color--muted) !important; font-weight: 700; }
.sj-prices .wp-block-table thead { border-bottom: 0; }
.sj-prices figcaption { color: var(--wp--preset--color--muted); font-size: .9rem; }
.sj-extras { background: none; border: 0; border-left: 2px solid var(--wp--preset--color--accent); border-radius: 0; padding-top: 4px !important; padding-bottom: 4px !important; padding-right: 0 !important; }
.sj-extras ul { list-style: none; padding-left: 0; }
.sj-extras li { padding: 7px 0 7px 26px; position: relative; border-bottom: 1px solid var(--wp--preset--color--line); }
.sj-extras li::before { content: "✓"; position: absolute; left: 0; color: var(--wp--preset--color--accent); font-weight: 800; }
.sj-extras ul { color: #cfd8e2; }

/* Arvostelut */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sj-reviews .wp-block-columns { align-items: stretch !important; }
.sj-review-card { height: 100%; box-sizing: border-box; margin: 0; padding: 28px !important; border: 1px solid var(--wp--preset--color--line) !important; border-left: 1px solid var(--wp--preset--color--line) !important; border-radius: 18px; background: var(--wp--preset--color--surface); display: flex; flex-direction: column; position: relative; }
.sj-review-card::before { content: "\201D"; position: absolute; top: 6px; right: 22px; font-size: 5rem; line-height: 1; font-weight: 800; color: rgba(58,160,255,.18); }
.sj-review-card p { color: #d6e0ea; font-size: 1rem; line-height: 1.65; font-style: normal; }
.sj-review-card .sj-stars { color: #f5b301; letter-spacing: 3px; font-size: 1.1rem; margin: 0 0 12px; }
.sj-review-card .sj-stars + p { margin-top: 0 !important; }
.sj-review-card cite { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--wp--preset--color--line); font-style: normal; font-size: .88rem; color: var(--wp--preset--color--muted); }
.sj-review-card cite strong { color: #fff; font-size: 1rem; }

/* UKK: viivoin erotetut kysymykset, ei laatikoita */
.wp-block-details { background: none !important; border: 0 !important; border-bottom: 1px solid var(--wp--preset--color--line) !important; border-radius: 0 !important; padding: 0 !important; margin-block-start: 0 !important; }
.wp-block-details:first-of-type, .sj-prose > h2 + .wp-block-details { border-top: 1px solid var(--wp--preset--color--line) !important; }
.wp-block-details summary { cursor: pointer; font-weight: 700; color: #fff; padding: 20px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 1.05rem; }
.wp-block-details summary:hover { color: var(--wp--preset--color--accent); }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid #2b3540; color: var(--wp--preset--color--accent); font-size: 1.2rem; line-height: 1; transition: transform .2s; }
.wp-block-details[open] summary::after { content: "–"; background: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent); border-color: var(--wp--preset--color--accent); }
.wp-block-details > :last-child { margin-bottom: 22px; }
.wp-block-details p { color: #c3cdd8; max-width: 680px; }
.sj-faq-list > .wp-block-details:first-child { border-top: 1px solid var(--wp--preset--color--line) !important; }

/* Yhteystiedot */
.sj-cbox { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 20px; }
.sj-cbox .sj-nap strong { color: #fff; display: inline-block; min-width: 7.5rem; }
.sj-map { border-radius: 20px; border: 1px solid var(--wp--preset--color--line); background: repeating-linear-gradient(45deg, #121821 0 14px, #151b24 14px 28px); color: var(--wp--preset--color--muted); min-height: 320px; }

/* Yhteystiedot-sivu */
.sj-contact-big { margin: 6px 0 10px; font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.sj-contact-big a { color: #fff; text-decoration: none; }
.sj-contact-big a:hover { color: var(--wp--preset--color--accent); }
.sj-contact-list { margin-top: 28px !important; border-top: 1px solid var(--wp--preset--color--line); }
.sj-contact-list .sj-nap-item { padding: 16px 0; border-bottom: 1px solid var(--wp--preset--color--line); margin: 0 !important; }
.sj-form-card { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.4); background-image: radial-gradient(500px 240px at 100% 0%, rgba(58,160,255,.12), transparent 70%); }
.sj-form-card h2 { font-size: 1.6rem; margin-top: 8px; }
.sj-form-card .sj-small { color: var(--wp--preset--color--muted); }
.grecaptcha-badge { visibility: hidden; }
.sj-recaptcha-note { font-size: .78rem; color: var(--wp--preset--color--muted); margin-top: 16px !important; }
.sj-recaptcha-note a { color: var(--wp--preset--color--muted); }

/* CTA-kaista */
.sj-cta { border-radius: 24px; background: linear-gradient(120deg, #11345c 0%, #0f2440 60%, #151a21 100%); border: 1px solid #1f3b5f; }
.sj-cta p { color: #c9d3de; }

/* Lomake (CF7) */
.wpcf7-form { display: grid; gap: 12px; }
.wpcf7-form p { margin: 0; }
.wpcf7-form label { font-weight: 600; color: #fff; display: block; }
.wpcf7-form input:not([type=submit]):not([type=checkbox]), .wpcf7-form textarea, .wpcf7-form select { font: inherit; width: 100%; padding: 12px 14px; border: 1px solid #3a4553; border-radius: 10px; background: var(--wp--preset--color--bg); color: var(--wp--preset--color--text); min-height: 48px; margin-top: 4px; box-sizing: border-box; }
.wpcf7-form input:focus, .wpcf7-form textarea:focus, .wpcf7-form select:focus { border-color: var(--wp--preset--color--accent); outline: none; }
.wpcf7-form input[type=submit] { font: inherit; font-weight: 800; background: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent); border: 0; border-radius: 999px; padding: 12px 24px; min-height: 48px; cursor: pointer; justify-self: start; }
.wpcf7-form input[type=submit]:hover { background: var(--wp--preset--color--accent-hover); }
.wpcf7 form .wpcf7-response-output { border-radius: 10px; margin: 8px 0 0; }

/* Footer */
.sj-footer { font-size: .95rem; border-top: 1px solid var(--wp--preset--color--line); }
.sj-footer a { color: #d6e0ea; text-decoration: none; }
.sj-footer a:hover { color: #fff; text-decoration: underline; }
.sj-footer h2 { color: #fff; font-size: 1rem; }
.sj-footer ul { list-style: none; padding: 0; }
.sj-footer li { margin: 5px 0; }

/* Mobiilin soittopalkki */
.sj-callbar { display: none !important; }

@media (max-width: 960px) {
	.sj-topbar .sj-topbar-address { display: none; }
	.sj-hero { min-height: 0; padding-top: 0 !important; padding-bottom: var(--wp--preset--spacing--50) !important; }
	.sj-hero::after { display: none; }
	.sj-hero > .wp-block-image.sj-hero-img { position: relative; inset: auto; height: 230px; margin: 0 calc(-1 * var(--wp--style--root--padding-left, 24px)) 24px !important; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
}
@media (max-width: 599px) {
	/* backdrop-filter rajaisi kiinteän valikko-overlayn headerin sisään */
	.sj-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--wp--preset--color--bg); }
	.sj-header .wp-block-navigation__responsive-container.is-menu-open { padding: 24px; font-size: 1.15rem; }
	.sj-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { padding: 6px 0; }
}
@media (max-width: 781px) {
	.wp-block-group.sj-contact-band::after { background: rgba(13,16,21,.88); }
	.sj-svc-main table { font-size: .92rem; }
	.sj-related .sj-svc { display: grid !important; grid-template-columns: 116px 1fr; align-items: stretch; }
	.sj-related .sj-svc > .wp-block-image, .sj-related .sj-svc > .wp-block-image a { height: 100%; }
	.sj-related .sj-svc > .wp-block-image img { height: 100% !important; min-height: 96px; }
	.sj-related .sj-svc .sj-svc-body { padding: 14px 16px; justify-content: center; }
	.sj-related .sj-svc h3 { font-size: 1.02rem; }
	.sj-cta { padding: 28px 22px !important; }
	.sj-cta .wp-block-buttons { width: 100%; flex-direction: column; align-items: stretch; }
	.sj-cta .wp-block-button, .sj-cta .wp-block-button__link { width: 100%; }
	.sj-svc-aside .sj-aside-card { position: static; }
	.sj-split .sj-split-media { min-height: 260px; }
	.sj-split .is-style-checks { grid-template-columns: 1fr; }
	.sj-tl-num { font-size: 2.4rem; }
	.sj-van .wp-block-image img { min-height: 220px; }
}
@media (max-width: 620px) {
	.sj-header-cta { display: none !important; }
	body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
	.sj-callbar { display: flex !important; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0 !important; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important; background: var(--wp--preset--color--surface); border-top: 1px solid var(--wp--preset--color--line); box-shadow: 0 -6px 20px rgba(0,0,0,.4); }
	.sj-callbar { transition: transform .25s ease; }
	html.sj-js .sj-callbar:not(.is-visible) { transform: translateY(110%); }
	.sj-callbar .wp-block-button { flex: 1; }
	.sj-callbar .wp-block-button__link { width: 100%; }
}

/* Vaaleampi taustakaista (hinnasto) */
.sj-band { position: relative; border-top: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); background-image: radial-gradient(700px 320px at 0% 0%, rgba(58,160,255,.10), transparent 60%); }
.sj-band .sj-prices td, .sj-band .sj-prices th { border-bottom-color: #2a333e !important; }

/* Isot autot: sivun levyinen jaettu osio */
.sj-split, .wp-block-columns.sj-split.has-background { align-items: stretch !important; padding: 0 !important; border-top: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); }
.sj-split .sj-split-media { min-height: 520px; position: relative; overflow: hidden; }
.sj-split .sj-split-media .wp-block-image { position: absolute; inset: 0; margin: 0; }
.sj-split .sj-split-media img { width: 100%; height: 100%; object-fit: cover; }
.sj-split .sj-split-body { padding: clamp(40px, 6vw, 88px) clamp(24px, 6vw, 88px); max-width: 680px; }
.sj-bignum { font-size: clamp(3.5rem, 8vw, 6rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; margin: 0 0 18px; background: linear-gradient(180deg, #fff 0%, var(--wp--preset--color--accent) 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sj-bignum span { display: block; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin-top: 10px; -webkit-text-fill-color: var(--wp--preset--color--muted); color: var(--wp--preset--color--muted); }
.sj-split .is-style-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.sj-split .is-style-checks li { background: none; border: 0; padding: 0 0 0 26px; position: relative; font-size: .98rem; color: #d6e0ea; }
.sj-split .is-style-checks li::before { content: "✓"; position: absolute; left: 0; color: var(--wp--preset--color--accent); font-weight: 800; }

/* Näin se toimii: aikajana */
.sj-timeline { position: relative; }
.sj-tl-step { position: relative; padding-top: 28px; border-top: 1px solid #2b3540; }
.sj-tl-step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--wp--preset--color--accent); box-shadow: 0 0 0 6px rgba(58,160,255,.15); }
.sj-tl-num { font-size: 3rem; font-weight: 800; line-height: 1; margin: 0 0 14px; color: transparent; -webkit-text-stroke: 1.5px var(--wp--preset--color--accent); letter-spacing: -.02em; }
.sj-tl-step p:not(.sj-tl-num) { color: var(--wp--preset--color--muted); }

/* Yhteystiedot: kuvataustainen loppuosio */
.sj-contact-band { position: relative; overflow: hidden; }
.sj-contact-band > .sj-band-img { position: absolute; inset: 0; margin: 0 !important; max-width: none !important; z-index: 0; }
.sj-contact-band > .sj-band-img img { width: 100%; height: 100%; object-fit: cover; }
.sj-contact-band::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(13,16,21,.95) 0%, rgba(13,16,21,.82) 50%, rgba(13,16,21,.45) 100%); }
.sj-contact-band > .sj-contact-inner { position: relative; z-index: 2; }
.sj-contact-inner > .sj-lead { max-width: 640px; }
.sj-nap-row { border-top: 1px solid #2b3540; border-bottom: 1px solid #2b3540; padding: 22px 0; }
.sj-nap-item { margin: 0; color: #fff; font-weight: 600; }
.sj-nap-item span { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--accent); margin-bottom: 6px; }
.sj-nap-item a { color: #fff; text-decoration: none; }
.sj-nap-item a:hover { color: var(--wp--preset--color--accent); }

/* Palvelusivu: teksti + sticky hintakortti */
.sj-svc-main > * { max-width: 720px; }
.sj-svc-main > h2:not(:first-child) { margin-top: 2.75rem; }
.sj-svc-main > h2 + * { margin-top: .75rem; }
.sj-svc-main > p, .sj-svc-main li { color: #c9d3de; }
.sj-svc-main > h2:first-child { margin-top: 0; }
.sj-svc-main > .wp-block-details:first-of-type { border-top: 1px solid var(--wp--preset--color--line) !important; margin-top: 1.25rem !important; }
.sj-svc-main .wp-block-table { margin: 1.5rem 0; }
.sj-svc-aside .sj-aside-card { position: sticky; top: 110px; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.35); background-image: radial-gradient(400px 200px at 100% 0%, rgba(58,160,255,.14), transparent 70%); }
.admin-bar .sj-svc-aside .sj-aside-card { top: 142px; }
.sj-aside-price { font-size: 1.9rem; font-weight: 800; color: #fff; line-height: 1.15; margin: 8px 0 6px; letter-spacing: -.02em; }
.sj-aside-card .sj-small { color: var(--wp--preset--color--muted); font-size: .9rem; }
.sj-aside-buttons { margin-top: 18px; gap: 10px !important; }
.sj-aside-buttons .wp-block-button, .sj-aside-buttons .wp-block-button__link { width: 100%; }
.sj-aside-nap { margin-top: 20px !important; padding-top: 18px; border-top: 1px solid var(--wp--preset--color--line); font-size: .9rem; color: var(--wp--preset--color--muted); }
.sj-aside-nap strong { color: #fff; }

/* Taulukot palvelusivuilla: kesto ja hinta yhdellä rivillä */
.sj-svc-main table td:nth-child(n+2), .sj-svc-main table th:nth-child(n+2) { white-space: nowrap; }

/* 404 */
.sj-404-links { list-style: none; padding: 0; border-top: 1px solid var(--wp--preset--color--line); }
.sj-404-links li { border-bottom: 1px solid var(--wp--preset--color--line); }
.sj-404-links a { display: block; padding: 14px 0; color: #fff; text-decoration: none; font-weight: 600; }
.sj-404-links a::after { content: " →"; color: var(--wp--preset--color--accent); }
.sj-404-links a:hover { color: var(--wp--preset--color--accent); }

/* Muut palvelut -kortit */
.sj-related { border-top: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--surface); }
.sj-related .sj-svc { height: auto; background: var(--wp--preset--color--bg); transition: transform .2s, border-color .2s; }
.sj-related .sj-svc:hover { transform: translateY(-3px); border-color: #2f4560; }
.sj-related .sj-svc h3 a { color: #fff; text-decoration: none; }
.sj-related .sj-svc h3 a:hover { color: var(--wp--preset--color--accent); }
.sj-svc > .wp-block-image a { display: block; }
.sj-related .sj-svc > .wp-block-image img { height: 150px; width: 100%; }

/* Kapea teksti leveissä osioissa, tasattuna sisältöalueen vasempaan reunaan */
.sj-section > .sj-lead, .sj-section > .sj-narrow, .sj-contact-inner > .sj-lead { max-width: 720px !important; margin-left: max(0px, calc((100% - 1180px) / 2)) !important; }
.sj-hero-wrap > .sj-hero-inner > * { max-width: 600px; }
/* Leipätekstiosiot: lukuleveys 760 px, vasen reuna samassa linjassa kuin muu sisältö */
.sj-section.sj-prose > * { max-width: 760px !important; margin-left: max(0px, calc((100% - 1180px) / 2)) !important; margin-right: auto !important; }

/* Piilossa, kun mobiilivalikko on auki, ettei se peitä valikkoa */
html.has-modal-open .sj-callbar { display: none !important; }

/* Hero kapeilla puhelimilla: napit allekkain samanlevyisinä, tietolaput tiiviinä */
@media (max-width: 600px) {
	.sj-hero .wp-block-buttons, .sj-pagehead .wp-block-buttons { flex-direction: column; align-items: stretch; gap: 10px; }
	.sj-hero .wp-block-buttons .wp-block-button, .sj-hero .wp-block-buttons .wp-block-button__link, .sj-pagehead .wp-block-buttons .wp-block-button, .sj-pagehead .wp-block-buttons .wp-block-button__link { width: 100%; }
	.sj-hero ul.is-style-checks { gap: 6px; margin-top: 18px !important; }
	.sj-hero ul.is-style-checks li { font-size: .74rem; padding: 4px 10px; }
}

/* Tabletti (600–1023 px): neljän/viiden palstan rivit kahdeksi palstaksi */
@media (min-width: 600px) and (max-width: 1023px) {
	.sj-trust .wp-block-columns,
	#palvelut .wp-block-columns,
	.sj-nap-row,
	.sj-related .wp-block-columns { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px !important; }
	.sj-trust .wp-block-columns > .wp-block-column,
	#palvelut .wp-block-columns > .wp-block-column,
	.sj-nap-row > .wp-block-column,
	.sj-related .wp-block-columns > .wp-block-column { flex-basis: auto !important; width: auto !important; margin: 0 !important; }
	.sj-nap-row { gap: 20px 32px !important; }
}

/* Palvelukortit (muut palvelut / palvelut tarkemmin): saman rivin kortit yhtä korkeiksi */
@media (min-width: 782px) {
	.sj-related .wp-block-columns { align-items: stretch !important; }
	.sj-related .wp-block-columns > .wp-block-column { display: flex; }
	.sj-related .sj-svc { height: auto; flex: 1; display: flex !important; flex-direction: column; }
	.sj-related .sj-svc .sj-svc-body { flex: 1; display: flex; flex-direction: column; }
	.sj-related .sj-svc .sj-svc-body .sj-price { margin-top: auto; }
}

/* Jaettu osio pinottuna (alle 782 px): kuvan korkeus leveyden mukaan, ei 520 px torneja puhelimella */
@media (max-width: 781px) {
	.sj-split .sj-split-media { min-height: 0; height: clamp(240px, 50vw, 380px); flex-basis: auto !important; }
}

/* Palvelusivun yläosan kuva täyttää aina palstansa (myös pienemmät alkuperäiskuvat) */
.sj-pagehead .wp-block-image img { width: 100%; }
.sj-aside-price { font-size: 1.6rem; overflow-wrap: normal; word-break: normal; }

/* Tabletti (alle 1024 px): hintakortti tekstin alle täysleveänä */
@media (max-width: 1023px) {
	.sj-svc-layout { flex-wrap: wrap !important; }
	.sj-svc-layout > .wp-block-column { flex-basis: 100% !important; }
	.sj-svc-aside .sj-aside-card { position: static; }
}

/* Kosketusalueet vähintään 44 px: yläpalkin linkit ja mobiilivalikon avaus/sulku */
.sj-topbar a { display: inline-block; padding: 12px 2px; margin: -12px 0; }
/* Vain puhelimilla (alle 600 px), jossa core näyttää valikkopainikkeen; display jätetään coren hallintaan */
@media (max-width: 599px) {
	.sj-header .wp-block-navigation__responsive-container-open,
	.sj-header .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
}
