/*
Theme Name: Vetyperoksidi
Theme URI: https://vetyperoksidi.com/
Author: Vetyperoksidi.com
Description: Twenty Twenty-Five -lapsiteema vetyperoksidin käyttökohteita esittelevälle sivustolle. Oma väripaletti, etusivun käyttökohdekortit, turvallisuuslaatikot ja pitoisuustaulukot.
Template: twentytwentyfive
Version: 1.1.0
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vetyperoksidi
*/


:root {
	--vp-navy: #0b2a4a;
	--vp-navy-2: #12406b;
	--vp-aqua: #1694b8;
	--vp-aqua-light: #5cc8e4;
	--vp-mist: #eef7fa;
	--vp-line: #d5e7ee;
	--vp-text: #1c2b36;
	--vp-muted: #56707f;
	--vp-white: #ffffff;
	--vp-warn-bg: #fff6e0;
	--vp-warn-line: #e0a526;
	--vp-warn-text: #5c4100;
	--vp-tip-bg: #e8f7ef;
	--vp-tip-line: #2e9e64;
	--vp-radius: 14px;
	--vp-max: 1140px;
	--vp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}


/* ---------- Hero ---------- */
.vp-hero {
	position: relative; overflow: hidden;
	background: linear-gradient(135deg, var(--vp-navy) 0%, var(--vp-navy-2) 55%, var(--vp-aqua) 100%);
	color: var(--vp-white);
	padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 9vw, 120px);
}
.vp-hero h1 { color: var(--vp-white); max-width: 720px; }
.vp-hero p { font-size: 1.15rem; max-width: 640px; opacity: .92; }
.vp-hero .vp-wrap { position: relative; z-index: 2; }
.vp-bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.vp-bubbles span {
	position: absolute; bottom: -60px; border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), rgba(255,255,255,.08) 60%, rgba(255,255,255,0) 70%);
	border: 1px solid rgba(255,255,255,.25);
	animation: vp-rise linear infinite;
}
.vp-bubbles span:nth-child(1) { left: 62%; width: 46px; height: 46px; animation-duration: 11s; }
.vp-bubbles span:nth-child(2) { left: 74%; width: 22px; height: 22px; animation-duration: 8s; animation-delay: 2s; }
.vp-bubbles span:nth-child(3) { left: 84%; width: 70px; height: 70px; animation-duration: 14s; animation-delay: 1s; }
.vp-bubbles span:nth-child(4) { left: 92%; width: 30px; height: 30px; animation-duration: 9s; animation-delay: 4s; }
.vp-bubbles span:nth-child(5) { left: 55%; width: 16px; height: 16px; animation-duration: 7s; animation-delay: 3s; }
.vp-bubbles span:nth-child(6) { left: 80%; width: 12px; height: 12px; animation-duration: 6s; animation-delay: 5s; }
@keyframes vp-rise {
	0% { transform: translateY(0) translateX(0); opacity: 0; }
	10% { opacity: 1; }
	100% { transform: translateY(-640px) translateX(-30px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .vp-bubbles span { animation: none; opacity: .5; bottom: 20%; } }

.vp-btn {
	display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600;
	text-decoration: none; background: var(--vp-white); color: var(--vp-navy); margin: 8px 10px 0 0;
}
.vp-btn:hover { background: var(--vp-mist); color: var(--vp-navy); }
.vp-btn--ghost { background: transparent; color: var(--vp-white); border: 1px solid rgba(255,255,255,.6); }
.vp-btn--ghost:hover { background: rgba(255,255,255,.12); color: var(--vp-white); }

/* ---------- Facts strip ---------- */
.vp-facts { background: var(--vp-mist); border-bottom: 1px solid var(--vp-line); }
.vp-facts .vp-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; padding-top: 26px; padding-bottom: 26px; }
.vp-fact strong { display: block; font-size: 1.5rem; color: var(--vp-navy); }
.vp-fact span { color: var(--vp-muted); font-size: .92rem; }

/* ---------- Cards ---------- */
.vp-section { padding: clamp(48px, 7vw, 80px) 0; }
.vp-section-head { max-width: 680px; margin-bottom: 32px; }
.vp-section-head h2 { margin-top: 0; }
.vp-section-head p { color: var(--vp-muted); margin: 0; }

.vp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.vp-card {
	display: flex; flex-direction: column; gap: 8px;
	border: 1px solid var(--vp-line); border-radius: var(--vp-radius);
	padding: 24px; text-decoration: none; color: var(--vp-text); background: var(--vp-white);
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.vp-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(11,42,74,.10); border-color: var(--vp-aqua-light); color: var(--vp-text); }
.vp-card-icon {
	width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
	background: var(--vp-mist); color: var(--vp-aqua);
}
.vp-card-icon svg { width: 26px; height: 26px; }
.vp-card h3 { margin: 6px 0 0; font-size: 1.1rem; }
.vp-card p { margin: 0; color: var(--vp-muted); font-size: .95rem; }
.vp-card .vp-more { margin-top: auto; padding-top: 8px; color: var(--vp-aqua); font-weight: 600; font-size: .92rem; }

/* ---------- Page ---------- */
.vp-page-head {
	background: linear-gradient(180deg, var(--vp-mist), var(--vp-white));
	border-bottom: 1px solid var(--vp-line);
	padding: clamp(36px, 6vw, 64px) 0 clamp(28px, 4vw, 40px);
}
.vp-page-head .vp-card-icon { margin-bottom: 14px; width: 56px; height: 56px; background: var(--vp-white); border: 1px solid var(--vp-line); }
.vp-page-head h1 { margin-bottom: .3em; }
.vp-lead { font-size: 1.15rem; color: var(--vp-muted); max-width: 720px; margin: 0; }
.vp-crumbs { font-size: .88rem; color: var(--vp-muted); margin-bottom: 14px; }
.vp-crumbs a { color: var(--vp-muted); }

.vp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding: 40px 0 72px; }
@media (max-width: 960px) { .vp-layout { grid-template-columns: 1fr; } }

.vp-content { max-width: 740px; }
.vp-content > *:first-child { margin-top: 0; }
.vp-content ul, .vp-content ol { padding-left: 1.3em; }
.vp-content li { margin: .3em 0; }

.vp-content table, .vp-table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
.vp-content th, .vp-content td { border: 1px solid var(--vp-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.vp-content th { background: var(--vp-mist); color: var(--vp-navy); }
.vp-table-scroll { overflow-x: auto; }

.vp-varoitus, .vp-vinkki, .vp-huom {
	border-left: 4px solid; border-radius: 0 10px 10px 0;
	padding: 14px 18px; margin: 1.5em 0;
}
.vp-varoitus { background: var(--vp-warn-bg); border-color: var(--vp-warn-line); color: var(--vp-warn-text); }
.vp-vinkki { background: var(--vp-tip-bg); border-color: var(--vp-tip-line); }
.vp-huom { background: var(--vp-mist); border-color: var(--vp-aqua); }
.vp-varoitus > :first-child, .vp-vinkki > :first-child, .vp-huom > :first-child { margin-top: 0; }
.vp-varoitus > :last-child, .vp-vinkki > :last-child, .vp-huom > :last-child { margin-bottom: 0; }
.vp-varoitus strong:first-child::before { content: "⚠ "; }

/* Sidebar */
.vp-aside { display: flex; flex-direction: column; gap: 20px; }
.vp-box { border: 1px solid var(--vp-line); border-radius: var(--vp-radius); padding: 20px; background: var(--vp-white); }
.vp-box h2, .vp-box h3 { font-size: 1rem; margin: 0 0 10px; }
.vp-box ul { list-style: none; margin: 0; padding: 0; }
.vp-box li a { display: block; padding: 6px 0; text-decoration: none; color: var(--vp-navy); border-bottom: 1px solid var(--vp-mist); font-size: .95rem; }
.vp-box li a:hover, .vp-box li.is-current a { color: var(--vp-aqua); }
.vp-box--safety { background: var(--vp-warn-bg); border-color: #f0d38a; }
.vp-box--safety p { font-size: .92rem; margin: 0 0 8px; }
@media (min-width: 961px) { .vp-aside-inner { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; } }


/* ---------- Block theme -sovitukset ---------- */
.vp-hero { padding-left: var(--wp--style--root--padding-left); padding-right: var(--wp--style--root--padding-right); }
.vp-hero > * { position: relative; z-index: 2; }
.vp-hero .vp-bubbles { z-index: 1; }
.vp-hero h1, .vp-hero p { color: var(--vp-white); }
.vp-hero .wp-block-button__link { border-radius: 999px; font-weight: 600; }
.vp-page-head .vp-card-icon { margin-bottom: 0; }
.vp-lead, .vp-page-head .wp-block-post-excerpt__excerpt { font-size: 1.15rem; color: var(--vp-muted); max-width: 720px; margin: 0; }
.vp-content th { background: var(--vp-mist); }
.vp-header { border-bottom: 1px solid var(--vp-line); }
.vp-footer a { color: var(--vp-white); }
.vp-footer ul { list-style: none; padding: 0; margin: 0; }
.vp-footer li { margin: 4px 0; }
@media (min-width: 782px) { .vp-aside-sticky { position: sticky; top: 24px; } }
.vp-card-icon--lg { width: 56px; height: 56px; background: var(--vp-white); border: 1px solid var(--vp-line); }
.vp-logo-link { display: block; line-height: 0; }
.vp-sivulista { list-style: none; margin: 0; padding: 0; }
.vp-sivulista li a { display: block; padding: 6px 0; text-decoration: none; color: var(--vp-navy); border-bottom: 1px solid var(--vp-mist); font-size: .95rem; }
.vp-sivulista li a:hover, .vp-sivulista li.is-current a { color: var(--vp-aqua); }
.wp-block-shortcode:empty { display: none; }
.vp-footer .vp-sivulista li a { color: #fff; border-bottom-color: rgba(255,255,255,.12); }

/* ---------- Tuotelinkit ---------- */
.vp-tuote {
	border: 1px solid var(--vp-aqua-light); border-radius: var(--vp-radius);
	background: linear-gradient(135deg, var(--vp-mist), #ffffff);
	padding: 22px 24px; margin: 2em 0 0;
}
.vp-tuote h2, .vp-tuote h3 { margin: 0 0 8px; font-size: 1.2rem; }
.vp-tuote p { margin: 0 0 12px; }
.vp-tuote-napit { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 !important; }
.vp-tuote-nappi {
	display: inline-block; padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: .95rem;
	text-decoration: none; background: var(--vp-aqua); color: #fff !important;
}
.vp-tuote-nappi:hover { background: var(--vp-navy-2); }
.vp-tuote-nappi--iso { background: var(--vp-navy); }
.vp-tuote--side { margin: 0; padding: 20px; }
.vp-tuote--side h2 { font-size: 1rem; }
.vp-tuote--side p { font-size: .92rem; }
.vp-tuote--side .vp-tuote-nappi { display: block; text-align: center; width: 100%; }
@media (min-width: 1100px) { .vp-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; } .vp-card { padding: 20px; } }

/* ---------- Sivun pääkuva ---------- */
.vp-sivukuva { margin: 0 0 32px; border: 1px solid var(--vp-line); border-radius: var(--vp-radius); overflow: hidden; background: var(--vp-mist); }
.vp-sivukuva img { display: block; width: 100%; height: auto; }

/* ---------- Korostus: desinfiointi ja puhdistus ---------- */
.vp-korostus {
	background: var(--vp-navy); color: #e3f1f7; border-radius: var(--vp-radius);
	padding: 22px 26px; margin: 0 0 32px; box-shadow: 0 10px 26px rgba(11,42,74,.14);
}
.vp-korostus-otsikko { display: flex; align-items: center; gap: 14px; }
.vp-korostus-otsikko p { margin: 0; font-size: 1.2rem; line-height: 1.35; color: #fff; }
.vp-korostus-merkki {
	flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
	background: var(--vp-aqua-light); color: var(--vp-navy); font-weight: 800; font-size: 1.2rem;
}
.vp-korostus-lista { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 22px; font-size: .95rem; }
.vp-korostus-lista li { margin: 0; padding-left: 0; }
.vp-korostus-lista strong { color: var(--vp-aqua-light); }
.vp-korostus--etusivu { margin: 0; }
.vp-content .vp-korostus-lista, .wp-block-column .vp-korostus-lista { padding-left: 0; grid-template-columns: 1fr; gap: 6px; }
