/*
Theme Name: Puni – Kalevi Mannermaa
Theme URI: https://puni.fi
Author: Kalevi Mannermaa
Author URI: https://puni.fi
Description: Kampanjateema (Liike Nyt, eduskuntavaalit 2027). Yhden sivun kampanjasivu, jossa hero, teemat, yhteystiedot ja some-linkit. Muokattavat tiedot löytyvät functions.php:n alusta.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
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: puni
*/

/* ===================================================================
   VÄRIT JA PERUSMITAT
   Vaihtamalla näitä arvoja muutat koko sivun ilmeen yhdestä paikasta.
   --pink ja --hot = pääkorostusvärit (napit, korostukset)
   --plum / --night = tummat pohjavärit (laatikot)
   --cream / --white = vaaleat taustat
   --max = sisällön maksimileveys, --radius-* = kulmien pyöristykset
   =================================================================== */
:root {
  --night: #17051f;
  --plum: #3A1F44;
  --grape: #744668;
  --blue: #5D538C;
  --pink: #B3125D;
  --hot: #DE3478;
  --cream: #FFF9F2;
  --white: #ffffff;
  --ink: #210b2c;
  --muted: #6c5c73;
  --line: rgba(58, 31, 68, .16);
  --shadow: 0 28px 70px rgba(38, 11, 54, .18);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: #f0e6d7; /* sivun perustausta – pienennä/suurenna kirkkautta tästä */
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  background:
    radial-gradient(circle at 12% 8%, rgba(222,52,120,.26), transparent 28rem),
    radial-gradient(circle at 85% 12%, rgba(93,83,140,.30), transparent 30rem),
    linear-gradient(180deg, #f0e6d7 0%, #f7efe4 45%, #ede2d1 100%);
}

a { color: inherit; text-decoration: none; }

/* Tekstin sisäinen linkki (esim. "Liike Nyt"). Näkyy alleviivattuna ja
   korostuu hiiren alla. Toimii sekä vaalealla että tummalla taustalla. */
.tlink {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(179,18,93,.55);
  transition: color .2s ease, text-decoration-color .2s ease;
}

.tlink:hover { color: var(--pink); text-decoration-color: var(--pink); }
.panel .tlink:hover, .cta .tlink:hover { color: var(--white); text-decoration-color: var(--white); }

.page { overflow-x: clip; }

/* --- Yläpalkki (sticky = pysyy näkyvissä vieritettäessä) --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 249, 242, .52);
  border-bottom: 1px solid rgba(58, 31, 68, .10);
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.nav.is-scrolled {
  background: rgba(255, 249, 242, .10);
  backdrop-filter: blur(22px);
  box-shadow: 0 10px 30px rgba(38, 11, 54, .10);
  border-bottom-color: rgba(58, 31, 68, .06);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand { display: flex; align-items: center; gap: 14px; min-width: 240px; }

.brand-mark {
  font-family: "Special Gothic Expanded One", "Arial Black", Impact, sans-serif;
  font-size: 22px;
  letter-spacing: .04em;
  color: var(--plum);
  line-height: 1;
}

.brand-mark span { color: var(--pink); }

.brand small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  display: block;
  margin-top: 4px;
}

.links {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 14px;
  color: rgba(33, 11, 44, .78);
}

.links a:hover { color: var(--pink); }

.nav-right { display: flex; align-items: center; gap: 14px; }

.nav-socials { display: flex; gap: 8px; align-items: center; }

.nav-ico {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.62);
  color: var(--plum);
  transition: transform .2s ease, color .2s ease, border-color .2s ease;
}

.nav-ico:hover { transform: translateY(-2px); color: var(--pink); border-color: rgba(179,18,93,.40); }
.nav-ico svg { width: 17px; height: 17px; fill: currentColor; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 800;
  letter-spacing: .02em;
  border: 1px solid rgba(255,255,255,.36);
  box-shadow: 0 14px 34px rgba(179,18,93,.23);
  background: linear-gradient(135deg, var(--pink), var(--hot) 55%, var(--blue));
  color: var(--white);
  transition: transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}

.button:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(179,18,93,.30); }

.button.secondary {
  color: var(--plum);
  background: rgba(255,255,255,.74);
  box-shadow: none;
  border: 1px solid rgba(58, 31, 68, .16);
}

/* --- Hero eli yläosa (otsikko + kuva vierekkäin) --- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 62px 22px 34px;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 42px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(58, 31, 68, .14);
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  color: var(--plum);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hot), var(--blue));
  box-shadow: 0 0 0 6px rgba(222,52,120,.12);
}

h1, h2, h3 {
  font-family: "Special Gothic Expanded One", "Arial Black", Impact, sans-serif;
  letter-spacing: .02em;
  line-height: .96;
  margin: 0;
  color: var(--plum);
}

h1 {
  font-size: clamp(46px, 7vw, 88px);
  margin-top: 22px;
  max-width: 780px;
}

.lead {
  font-size: clamp(18px, 2vw, 22px);
  color: rgba(33, 11, 44, .80);
  margin: 24px 0 0;
  max-width: 690px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-card {
  position: relative;
  padding: 16px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255,255,255,.86), rgba(255,249,242,.62)),
    radial-gradient(circle at 80% 0%, rgba(222,52,120,.22), transparent 20rem);
  border: 1px solid rgba(58,31,68,.12);
  box-shadow: var(--shadow);
}

.photo-wrap {
  border-radius: 26px;
  overflow: hidden;
  background: var(--plum);
  line-height: 0;
}

.candidate-photo {
  width: 100%;
  height: auto;
  display: block;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.stat {
  padding: 16px 16px;
  border-radius: 22px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(58,31,68,.10);
}

.stat b {
  display: block;
  font-family: "Arial Black", Impact, sans-serif;
  color: var(--pink);
  font-size: 17px;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 7px;
  color: rgba(33, 11, 44, .70);
  font-size: 13px;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 66px 22px;
}

.section-head {
  display: grid;
  grid-template-columns: .78fr 1fr;
  gap: 30px;
  align-items: start;
  margin-bottom: 28px;
}

.section h2 { font-size: clamp(34px, 4.4vw, 60px); }

.section-head p {
  margin: 10px 0 0;
  color: rgba(33, 11, 44, .78);
  font-size: 18px;
  max-width: 520px;
}

/* --- Korttiruudukko ("Mitä teen toisin" -osio) --- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  position: relative;
  min-height: 230px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(58,31,68,.12);
  box-shadow: 0 18px 42px rgba(58,31,68,.08);
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(116,70,104,.34), transparent 70%);
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--plum), var(--pink) 60%, var(--blue));
  margin-bottom: 18px;
  font-size: 24px;
  font-weight: 900;
}

.card h3 { font-size: 21px; line-height: 1.1; margin-bottom: 12px; }
.card p { margin: 0; color: rgba(33, 11, 44, .74); }

.split {
  display: grid;
  grid-template-columns: .94fr 1.06fr;
  gap: 18px;
  align-items: stretch;
}

.panel {
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 44px);
  background: var(--plum);
  color: var(--cream);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  right: -170px;
  top: -160px;
  background: radial-gradient(circle, rgba(222,52,120,.42), transparent 68%);
}

.panel h2, .panel h3 { color: var(--cream); position: relative; }
.panel p, .panel li { color: rgba(255,249,242,.86); position: relative; }
/* Paneeliotsikko hieman pienempi + pitkät sanat tavuttuvat siististi */
.panel h2 { font-size: clamp(26px, 3vw, 44px); overflow-wrap: break-word; hyphens: auto; }

.panel.light {
  background: rgba(255,255,255,.80);
  color: var(--ink);
  border: 1px solid rgba(58,31,68,.12);
}

.panel.light h2, .panel.light h3 { color: var(--plum); }
.panel.light p, .panel.light li { color: rgba(33,11,44,.74); }

.check-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}

.check-list li::before {
  content: "✓";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  color: white;
  font-weight: 900;
  font-size: 14px;
  margin-top: 1px;
}

.quote {
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1.08;
  font-family: "Arial Black", Impact, sans-serif;
  letter-spacing: .02em;
  margin: 0;
}

.phrases { display: grid; gap: 14px; margin-top: 20px; }

.phrase {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(58,31,68,.11);
  align-items: center;
}

.phrase .num {
  font-family: "Arial Black", Impact, sans-serif;
  color: var(--pink);
  font-size: 18px;
  text-align: center;
}

.phrase p { margin: 0; font-size: 17px; }
.phrase b { color: var(--plum); }

.cta {
  max-width: var(--max);
  margin: 26px auto 74px;
  padding: 0 22px;
}

.cta-box {
  border-radius: 42px;
  padding: clamp(32px, 6vw, 66px);
  background:
    linear-gradient(135deg, rgba(58,31,68,.97), rgba(179,18,93,.90) 56%, rgba(93,83,140,.96)),
    var(--plum);
  color: var(--cream);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  box-shadow: 0 30px 80px rgba(58,31,68,.26);
}

.cta h2 { color: var(--cream); font-size: clamp(34px, 5vw, 60px); }
.cta p { margin: 14px 0 0; color: rgba(255,249,242,.88); max-width: 640px; font-size: 18px; }

.cta-actions { display: grid; gap: 12px; justify-items: stretch; }
.cta-actions .button { background: var(--white); color: var(--plum); box-shadow: 0 14px 34px rgba(0,0,0,.18); border: none; }
.cta-actions .button.ghost { background: rgba(255,255,255,.14); color: var(--white); border: 1px solid rgba(255,255,255,.40); box-shadow: none; }

.socials { display: flex; flex-wrap: wrap; gap: 10px; }

.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px 9px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.72);
  color: var(--plum);
  transition: transform .2s ease, color .2s ease, border-color .2s ease, background .2s ease;
}

.social:hover { transform: translateY(-2px); color: var(--pink); border-color: rgba(179,18,93,.40); }
.social svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

.cta .social { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.40); color: var(--white); }
.cta .social:hover { background: rgba(255,255,255,.26); color: var(--white); border-color: rgba(255,255,255,.65); }

/* Kelluva "Takaisin ylös" -nappi (oikea alakulma) */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  height: 52px;
  padding: 0 15px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink), var(--hot) 55%, var(--blue));
  border: 1px solid rgba(255,255,255,.36);
  box-shadow: 0 14px 34px rgba(179,18,93,.32);
  transition: transform .25s ease, box-shadow .25s ease, padding .25s ease;
}

.to-top svg { width: 22px; height: 22px; fill: currentColor; flex: none; }

.to-top .label {
  max-width: 0;
  opacity: 0;
  margin-left: 0;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .01em;
  transition: max-width .25s ease, opacity .25s ease, margin-left .25s ease;
}

.to-top:hover {
  transform: scale(1.06);
  box-shadow: 0 18px 42px rgba(179,18,93,.42);
}

.to-top:hover .label { max-width: 180px; opacity: 1; margin-left: 9px; }
.to-top:focus-visible .label { max-width: 180px; opacity: 1; margin-left: 9px; }

/* Kelluva "Yhteys"-nappi (vasen alakulma), vie yhteystieto-osioon */
.to-contact {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink), var(--hot) 55%, var(--blue));
  border: 1px solid rgba(255,255,255,.36);
  box-shadow: 0 14px 34px rgba(179,18,93,.32);
  transition: transform .2s ease, box-shadow .2s ease;
}

.to-contact svg { width: 20px; height: 20px; fill: currentColor; }
.to-contact:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(179,18,93,.42); }

footer {
  padding: 34px 22px 52px;
  color: rgba(33, 11, 44, .66);
  font-size: 13px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(58,31,68,.12);
  padding-top: 24px;
}

.footer-inner a:hover { color: var(--pink); }

/* ===================================================================
   RESPONSIIVISUUS – sivu mukautuu näytön leveyteen.
   920px = tabletti (sarakkeet yhdistyvät), 620px = puhelin.
   =================================================================== */
@media (max-width: 920px) {
  .links { display: none; }
  .hero, .section-head, .split, .cta-box { grid-template-columns: 1fr; }
  .hero { padding-top: 38px; }
  .hero-card { max-width: 460px; margin: 0 auto; }
  .cards { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cta-actions { justify-items: start; }
}

@media (max-width: 620px) {
  .nav-inner { padding: 12px 16px; }
  .nav-socials { display: none; }
  .hero, .section, .cta { padding-left: 16px; padding-right: 16px; }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .phrase { grid-template-columns: 1fr; }
  h1 { font-size: 42px; }
  .button { width: 100%; }
  .footer-inner { flex-direction: column; }
  .to-top { height: 46px; padding: 0 12px; right: 16px; bottom: 16px; }
  .to-contact { height: 46px; padding: 0 18px; left: 16px; bottom: 16px; font-size: 14px; }
}
