/* ============================================================
   DPF-Pesula Jyväskylä — jaettu teema (LPR-brändi, vaalea)
   Brändivihreä #8bb63c · Montserrat + Roboto
   ============================================================ */

:root {
  /* Brändivärit */
  --green:        #8bb63c;   /* pääaksentti, täytöt, napit */
  --green-dk:     #6f9430;   /* hover */
  --green-lt:     #a6cb5e;
  --green-text:   #557521;   /* TEKSTI/LINKKI valkoisella (AA-kontrasti) */
  --green-tint:   #f1f6e6;   /* vaalea vihreä tausta */

  --ink:          #2b2f24;   /* otsikot */
  --body:         #44483d;   /* leipäteksti */
  --muted:        #767c6c;   /* sekundääri */
  --line:         #e3e8d8;   /* reunaviivat */

  --bg:           #ffffff;
  --bg-soft:      #f6f8f1;   /* pehmeä osio-tausta */
  --dark:         #262a20;   /* footer / tummat aksentit */
  --dark-2:       #31362a;

  --shadow-sm:    0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 18px rgba(0,0,0,0.08);
  --shadow-lg:    0 10px 40px rgba(0,0,0,0.12);

  --radius:       8px;
  --maxw:         1280px;
  --header-h:     82px;
  --sidebar-w:    264px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
}

a { color: var(--green-text); }
img { max-width: 100%; display: block; }

/* ───────────────── HEADER ───────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo img { height: 66px; width: auto; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { color: var(--green-text); }
.header-phone .ico { color: var(--green); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .12s;
  line-height: 1;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dk); color:#fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--green-text); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-light { background:#fff; color: var(--ink); }
.btn-light:hover { background: var(--green-tint); }
.btn-lg { padding: 14px 30px; font-size: 1.02rem; }

.btn-ico { display:inline-flex; align-items:center; gap:0; }
.btn-ico .btn-label { padding-right: 14px; }
.btn-ico .btn-sep { width:1px; height:1.1em; background:rgba(255,255,255,0.4); flex-shrink:0; }
.btn-ico .btn-icon { display:flex; align-items:center; justify-content:center; padding-left:14px; }
.btn-ico .btn-icon svg { width:18px; height:18px; fill:currentColor; }
.btn-outline .btn-sep { background: var(--green); opacity:.4; }
.btn-light .btn-sep { background: var(--ink); opacity:.2; }

/* Hampurilainen (mobiili) */
.menu-toggle {
  display: none;
  align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.menu-toggle div { display: flex; flex-direction: column; gap: 5px; }
.menu-toggle div span { display:block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.menu-toggle-label { display:none; font-family:'Montserrat',sans-serif; font-size:0.72rem; font-weight:700; letter-spacing:1px; text-transform:uppercase; color: var(--ink); }
.menu-toggle.open div span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-toggle.open div span:nth-child(2){ opacity: 0; }
.menu-toggle.open div span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ───────────────── LAYOUT (sidebar + main) ───────────────── */
.layout {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  align-items: start;
}

/* Sidebar (alasivunavigaatio vasemmalla – kuten LPR) */
.sidebar {
  position: sticky;
  top: var(--header-h);
  align-self: start;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
  padding: 22px 0 40px;
}
.sidebar-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted);
  padding: 0 24px 10px;
}
.sidebar nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 24px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.sidebar nav a:hover { background: var(--green-tint); color: var(--ink); }
.sidebar nav a.active {
  background: var(--green-tint);
  color: var(--green-text);
  border-left-color: var(--green);
  font-weight: 700;
}
.sidebar nav a .ico { font-size: 1rem; opacity: .8; flex-shrink: 0; }
.sidebar-cta { padding: 18px 24px 0; }
.sidebar-cta .btn { width: 100%; }
.sidebar-sep { height: 1px; background: var(--line); margin: 14px 24px; }
.sidebar-contact { padding: 18px 24px; margin-top: 14px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); line-height: 1.6; }
.sidebar-contact strong { color: var(--ink); font-size: 0.82rem; }
.sidebar-contact a { color: var(--green-text); text-decoration: none; }
.sidebar-contact p { margin-bottom: 3px; }

/* Main */
.main { min-width: 0; }

/* ───────────────── HERO ───────────────── */
.hero {
  position: relative;
  min-height: 74vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--dark);
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s ease;
}
.hero-slide.active { opacity: 1; }
.hero::after {
  content:''; position:absolute; inset:0; z-index:1;
  background: linear-gradient(100deg, rgba(38,42,32,0.82) 0%, rgba(38,42,32,0.55) 55%, rgba(38,42,32,0.30) 100%);
}
.hero-inner {
  position: relative; z-index: 2; width: 100%;
  max-width: var(--maxw); margin: 0 auto; padding: 56px 48px;
  display: grid; grid-template-columns: 1.22fr 0.78fr; gap: 40px; align-items: center;
}
.hero-content { max-width: 640px; }
.hero-logo { display:block; max-width: 520px; width:100%; height:auto; margin-bottom: 26px; filter: drop-shadow(0 4px 18px rgba(0,0,0,0.35)); }

/* Hero-kuvakollaasi */
.hero-media { position: relative; }
.hero-media::before {
  content:""; position:absolute; inset:-10% -8%; z-index:0;
  background: radial-gradient(closest-side, rgba(139,182,60,0.40), transparent 72%);
  filter: blur(8px); pointer-events:none;
}
.hero-collage {
  position: relative; z-index:1;
  display:grid; grid-template-columns: 1fr 1fr; gap: 16px;
  animation: heroFloat 7s ease-in-out infinite;
}
.hero-collage figure {
  margin:0; border-radius: 14px; overflow:hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45); border:1px solid rgba(255,255,255,0.14);
  opacity:0; transform: translateY(18px); animation: heroPop .7s cubic-bezier(.2,.7,.3,1) forwards;
}
.hero-collage img { width:100%; height:100%; object-fit:cover; display:block; aspect-ratio: 4/3; transition: transform .5s ease; }
.hero-collage figure:hover img { transform: scale(1.06); }
.hero-collage figure:nth-child(2), .hero-collage figure:nth-child(4) { margin-top: 28px; }
.hero-collage figure:nth-child(1){ animation-delay:.05s; }
.hero-collage figure:nth-child(2){ animation-delay:.16s; }
.hero-collage figure:nth-child(3){ animation-delay:.27s; }
.hero-collage figure:nth-child(4){ animation-delay:.38s; }
.hero-media-badge {
  position:absolute; z-index:3; left:50%; bottom:-16px; transform: translateX(-50%);
  background: var(--green); color:#fff; font-family:'Montserrat',sans-serif; font-weight:700;
  font-size:0.8rem; padding:9px 18px; border-radius:100px; box-shadow:0 10px 24px rgba(0,0,0,0.4); white-space:nowrap;
}
@keyframes heroFloat { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-12px); } }
@keyframes heroPop { to { opacity:1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .hero-collage { animation:none; }
  .hero-collage figure { animation:none; opacity:1; transform:none; }
}
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero-media { max-width: 480px; margin: 6px auto 0; }
}
.hero-eyebrow {
  display:inline-block;
  font-family:'Montserrat',sans-serif; font-size:0.72rem; font-weight:700; letter-spacing:2px;
  text-transform:uppercase; color: var(--green-lt);
  margin-bottom: 16px;
}
.hero h1 {
  color:#fff; font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 800; line-height: 1.1;
  margin-bottom: 18px; hyphens: none;
}
.hero h1 span { color: var(--green-lt); }
.hero-slogan {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: clamp(1.2rem, 2.1vw, 1.6rem); line-height: 1.2;
  color: var(--green-lt); margin-bottom: 20px;
}
.hero-lead { color: rgba(255,255,255,0.88); font-size: clamp(1rem,1.6vw,1.18rem); max-width: 600px; margin-bottom: 26px; }
.hero-badges { display:flex; flex-wrap:wrap; gap: 10px 18px; margin-bottom: 30px; }
.hero-badge {
  display:inline-flex; align-items:center; gap:8px;
  background: rgba(139,182,60,0.18); border:1px solid rgba(139,182,60,0.45);
  color:#fff; font-size:0.85rem; font-weight:500;
  padding: 7px 15px; border-radius: 100px;
}
.hero-phone {
  display: none; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.85); font-size: 0.88rem; font-weight: 500;
  text-decoration: none; margin-bottom: 18px;
}
.hero-phone:hover { color: #fff; }
.hero-actions { display:flex; flex-wrap:wrap; gap: 14px; align-items:center; }

/* ───────────────── SOITTOPYYNTÖPALKKI ───────────────── */
.callback-bar {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #16331a 0%, #2f5e1f 52%, #4a7d28 100%);
}
.callback-bar::before {
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(circle at 18% 120%, rgba(166,203,94,0.30), transparent 45%),
    radial-gradient(circle at 88% -20%, rgba(166,203,94,0.22), transparent 42%);
  pointer-events:none;
}
.callback-inner {
  position: relative; z-index:1;
  max-width: var(--maxw); margin: 0 auto; padding: 30px 48px;
  display: flex; align-items: center; gap: 36px; flex-wrap: wrap; justify-content: space-between;
}
.callback-text { flex: 1 1 300px; }
.callback-eyebrow {
  display:inline-block; font-family:'Montserrat',sans-serif; font-size:0.72rem;
  font-weight:700; letter-spacing:2px; text-transform:uppercase; color: var(--green-lt); margin-bottom:8px;
}
.callback-title { color:#fff; font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight:800; line-height:1.18; margin-bottom:6px; }
.callback-sub { color: rgba(255,255,255,0.82); font-size:0.95rem; }
.callback-form { display:flex; gap:10px; flex-wrap:wrap; flex: 1 1 420px; }
.callback-form input {
  flex: 1 1 150px; min-width: 0; padding: 13px 16px; border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 8px; font-family:'Roboto',sans-serif; font-size:0.95rem; color: var(--ink);
  background: rgba(255,255,255,0.96);
}
.callback-form input::placeholder { color: #8a8f80; }
.callback-form input:focus { outline:none; border-color: var(--green-lt); box-shadow: 0 0 0 3px rgba(166,203,94,0.35); }
.callback-form button {
  flex: 0 0 auto; padding: 13px 26px; border:none; border-radius: 8px; cursor:pointer;
  font-family:'Montserrat',sans-serif; font-weight:800; font-size:0.95rem; color: var(--ink);
  background: #fff; transition: transform .12s, background .2s, color .2s;
}
.callback-form button:hover { background: var(--green-lt); color:#fff; transform: translateY(-1px); }
@media (max-width: 600px) {
  .callback-inner { padding: 26px 22px; }
  .callback-form button { flex: 1 1 100%; }
}

/* ───────────────── SECTIONS ───────────────── */
.section { padding: 72px 48px; }
.section-soft { background: var(--bg-soft); }
.section-green { background: var(--green); }
.section-dark { background: var(--dark-2); }
.section-label {
  display:block; font-family:'Montserrat',sans-serif;
  font-size:0.72rem; font-weight:700; letter-spacing:2px; text-transform:uppercase;
  color: var(--green-text); margin-bottom: 10px;
}
.section-dark .section-label, .section-green .section-label { color: rgba(255,255,255,0.7); }
.section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: 14px; }
.section-dark h2, .section-green h2 { color:#fff; }
.section-lead { font-size: 1.05rem; color: var(--body); max-width: 640px; margin-bottom: 40px; }
.section-dark .section-lead, .section-green .section-lead { color: rgba(255,255,255,0.82); }

/* Kortit: hyödyt */
.cards-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.card {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.card .card-ico {
  width:48px; height:48px; border-radius: var(--radius);
  background: var(--green-tint); color: var(--green-text);
  display:flex; align-items:center; justify-content:center; font-size:1.35rem;
  margin-bottom: 16px;
}
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { font-size: 0.92rem; color: var(--body); }

/* Hinnat */
.price-grid { display:grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 28px; }
.price-card {
  position: relative; background:#fff; border:1.5px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm); text-align:left;
}
.price-card.featured { border-color: var(--green); box-shadow: 0 6px 24px rgba(139,182,60,0.18); }
.price-card .tag {
  position:absolute; top:-11px; left:22px;
  background: var(--green); color:#fff; font-family:'Montserrat',sans-serif;
  font-size:0.65rem; font-weight:700; letter-spacing:1px; text-transform:uppercase;
  padding: 3px 10px; border-radius: 3px;
}
.price-class { font-family:'Montserrat',sans-serif; font-size:0.72rem; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color: var(--green-text); margin-bottom:6px; }
.price-label { font-size:0.86rem; color: var(--muted); margin-bottom: 14px; }
.price-amount { font-family:'Montserrat',sans-serif; font-size:2.3rem; font-weight:800; color: var(--ink); line-height:1; }
.price-amount sup { font-size:1rem; vertical-align: top; margin-right:2px; }
.price-vat { font-size:0.76rem; color: var(--muted); margin-top: 6px; }

.price-note {
  background: var(--green-tint); border-radius: var(--radius);
  padding: 16px 20px; font-size:0.9rem; color: var(--body); margin-bottom: 16px;
}
.price-note strong { color: var(--ink); }

.compare {
  background: var(--dark); border-radius: var(--radius);
  padding: 22px 26px; display:flex; gap: 28px; align-items:center; flex-wrap:wrap;
}
.compare-item { flex:1; min-width: 180px; }
.compare-item .lbl { font-family:'Montserrat',sans-serif; font-size:0.72rem; font-weight:600; letter-spacing:1px; text-transform:uppercase; color: rgba(255,255,255,0.55); margin-bottom: 5px; }
.compare-item .val { font-family:'Montserrat',sans-serif; font-size:1.35rem; font-weight:800; color:#fff; }
.compare-item.hl .val { color: var(--green-lt); }
.compare-divider { width:1px; align-self:stretch; background: rgba(255,255,255,0.14); }

.post-box {
  margin-top: 18px; border:1.5px dashed rgba(139,182,60,0.5); border-radius: var(--radius);
  padding: 18px 22px; display:flex; gap:14px; align-items:flex-start;
}
.post-box .ico { font-size:1.4rem; flex-shrink:0; }
.post-box strong { display:block; color: var(--ink); margin-bottom: 3px; }
.post-box p { font-size:0.9rem; }

/* Vaiheet (prosessi) */
.steps { display:grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.step { }
.step-num {
  width:54px; height:54px; border-radius:50%;
  background: var(--green); color:#fff;
  font-family:'Montserrat',sans-serif; font-size:1.3rem; font-weight:800;
  display:flex; align-items:center; justify-content:center; margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(139,182,60,0.4);
}
.step h3 { font-size:1.05rem; margin-bottom: 8px; }
.step p { font-size:0.92rem; color: var(--body); }

/* Kuvarivi */
.photo-row { display:grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 36px; }
.photo-row figure { border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-sm); }
.photo-row img { width:100%; height: 210px; object-fit: cover; transition: transform .4s; }
.photo-row figure:hover img { transform: scale(1.05); }

/* Toimipistekortit */
.loc-grid { display:grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.loc-card { background:#fff; border:1.5px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); display:flex; flex-direction:column; }
.loc-card.featured { border-color: var(--green); box-shadow: 0 6px 24px rgba(139,182,60,0.16); }
.loc-badge { align-self:flex-start; background: var(--green); color:#fff; font-family:'Montserrat',sans-serif; font-size:0.62rem; font-weight:700; letter-spacing:1px; text-transform:uppercase; padding:3px 9px; border-radius:3px; margin-bottom: 12px; }
.loc-card h3 { font-size:1.05rem; margin-bottom: 2px; }
.loc-company { font-size:0.85rem; color: var(--muted); margin-bottom: 14px; }
.loc-row { display:flex; gap:9px; align-items:flex-start; margin-bottom: 9px; font-size:0.9rem; color: var(--ink); }
.loc-row a { color: var(--green-text); text-decoration:none; }
.loc-row a:hover { text-decoration:underline; }
.loc-foot { margin-top:auto; padding-top: 16px; border-top:1px solid var(--line); }
.loc-foot a { font-size:0.88rem; font-weight:600; color: var(--green-text); text-decoration:none; }
.loc-foot a:hover { text-decoration:underline; }

/* Yhteystiedot */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items:start; }
.contact-item { display:flex; gap:12px; align-items:flex-start; margin-bottom: 18px; }
.contact-item .ico { width:38px; height:38px; border-radius: var(--radius); background: var(--green-tint); color: var(--green-text); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.contact-item .lbl { font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:1px; color: var(--muted); margin-bottom:1px; }
.contact-item .val { font-weight:500; color: var(--ink); text-decoration:none; }
.contact-item a.val:hover { color: var(--green-text); }
/* Tummalla osiolla yhteystiedot vaaleiksi (muuten teksti katoaa taustaan) */
.section-dark .contact-item .ico { background: rgba(255,255,255,0.08); color: var(--green-lt); }
.section-dark .contact-item .lbl { color: rgba(255,255,255,0.55); }
.section-dark .contact-item .val { color: #fff; }
.section-dark .contact-item a.val:hover { color: var(--green-lt); }

/* Muut palvelut (logot) */
.partner-grid { display:grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.partner-card { background: var(--dark); border-radius: var(--radius); padding: 28px; display:flex; flex-direction:column; align-items:flex-start; gap: 14px; }
.partner-card img { height: 46px; width:auto; }
.partner-card a { color: var(--green-lt); font-weight:600; text-decoration:none; font-size:0.92rem; }
.partner-card a:hover { text-decoration:underline; }

/* ───────────────── BRÄNDIAKSENTTI (valkoiset osiot) ───────────────── */
.section-accent { position: relative; }
.section-accent > * { position: relative; z-index: 1; }
.section-accent::before {
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(700px 380px at 100% -8%, rgba(139,182,60,0.13), transparent 62%),
    radial-gradient(560px 320px at -6% 108%, rgba(139,182,60,0.09), transparent 60%);
}
/* Vihreä pystypalkki section-labelin eteen */
.section-accent .section-label { padding-left: 14px; }
.section-accent .section-label::before {
  content:""; position:absolute; left:0; top:1px; bottom:3px; width:4px; border-radius:2px; background: var(--green);
}
.section-accent .section-label { position: relative; }

/* ───────────────── SPLIT (teksti + kuva) ───────────────── */
.split { display:grid; grid-template-columns: 1.04fr 0.96fr; gap: 44px; align-items: center; }
.split .section-lead { margin-bottom: 24px; }
.split-media img { width:100%; height:100%; max-height: 380px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); }
@media (max-width: 860px){ .split { grid-template-columns: 1fr; gap: 26px; } }

/* ───────────────── GALLERIA-RUUDUKKO ───────────────── */
.gallery-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid figure { margin:0; border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-sm); aspect-ratio: 1/1; }
.gallery-grid img { width:100%; height:100%; object-fit:cover; display:block; transition: transform .5s ease; }
.gallery-grid figure:hover img { transform: scale(1.07); }
@media (max-width: 860px){ .gallery-grid { grid-template-columns: repeat(2,1fr); } }

/* ───────────────── ALASIVUN OTSIKKOBANNERI ───────────────── */
.subhero { position: relative; overflow: hidden; background: linear-gradient(120deg, #16331a 0%, #2f5e1f 52%, #4a7d28 100%); padding: 46px 48px; }
.subhero::before {
  content:""; position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(640px 320px at 100% -12%, rgba(166,203,94,0.22), transparent 60%),
    radial-gradient(520px 300px at -6% 112%, rgba(166,203,94,0.15), transparent 60%);
}
.subhero-inner { position: relative; z-index:1; max-width: var(--maxw); margin: 0 auto; }
.subhero .breadcrumb { color: rgba(255,255,255,0.72); font-size:0.82rem; margin-bottom: 10px; }
.subhero .breadcrumb a { color: rgba(255,255,255,0.72); text-decoration:none; }
.subhero .breadcrumb a:hover { color:#fff; }
.subhero .section-label { color: var(--green-lt); }
.subhero h1 { color:#fff; font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight:800; margin-bottom: 8px; }
.subhero p { color: rgba(255,255,255,0.85); font-size:1.02rem; max-width: 660px; }
@media (max-width:600px){ .subhero { padding: 36px 22px; } }

/* ───────────────── AUKIOLOTAULUKKO ───────────────── */
.hours-table { width:100%; border-collapse: collapse; max-width: 520px; }
.hours-table tr { border-bottom: 1px solid var(--line); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { padding: 12px 0; font-size: 0.95rem; color: var(--ink); }
.hours-table td:first-child { color: var(--body); font-weight: 500; width: 55%; }
.hours-table td:last-child { font-weight: 700; text-align: right; }
.hours-open { color: var(--green-text); }
.hours-closed { color: var(--muted); }

/* Sisältöteksti (alasivut) */
.prose { max-width: 760px; }
.prose p { margin-bottom: 16px; }
.prose h2 { margin: 36px 0 14px; }
.prose h3 { margin: 26px 0 10px; font-size:1.15rem; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; }
.prose .lead { font-size: 1.12rem; color: var(--ink); }
.page-head { padding: 40px 48px 8px; }
.breadcrumb { font-size:0.82rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); text-decoration:none; }
.breadcrumb a:hover { color: var(--green-text); }
.page-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }

/* Video-upotukset */
.video-grid { display:grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.video-embed { position:relative; padding-bottom: 56.25%; height:0; border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-md); }
.video-embed iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }

/* Galleria */
.gallery { display:grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.gallery img { width:100%; height: 180px; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow-sm); }

/* Lomake */
.form-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); max-width: 680px; }
.form-row { margin-bottom: 16px; }
.form-row label { display:block; font-family:'Montserrat',sans-serif; font-weight:600; font-size:0.85rem; color: var(--ink); margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width:100%; padding: 11px 14px; border:1.5px solid var(--line); border-radius: 6px;
  font-family:'Roboto',sans-serif; font-size:0.95rem; color: var(--ink); background:#fff;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline:none; border-color: var(--green); }
.form-row textarea { min-height: 110px; resize: vertical; }
.form-note { font-size:0.8rem; color: var(--muted); margin-top: 12px; }

/* ───────────────── FOOTER ───────────────── */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.6); padding: 44px 24px 28px; }
.footer-inner { max-width: var(--maxw); margin:0 auto; display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-inner h4 { color:#fff; font-size:0.82rem; letter-spacing:1px; text-transform:uppercase; margin-bottom: 14px; }
.footer-inner a { color: rgba(255,255,255,0.6); text-decoration:none; font-size:0.9rem; display:block; margin-bottom: 8px; }
.footer-inner a:hover { color:#fff; }
.footer-logo { height: 66px; margin-bottom: 14px; opacity: .9; }
.footer-slogan { font-family:'Montserrat',sans-serif; font-weight:700; color: var(--green-lt); font-size:0.95rem; margin-top:12px; }
.footer-bottom { max-width: var(--maxw); margin: 28px auto 0; padding-top: 18px; border-top:1px solid rgba(255,255,255,0.1); font-size:0.78rem; color: rgba(255,255,255,0.4); display:flex; justify-content:space-between; flex-wrap:wrap; gap: 10px; }
.footer-bottom a { color: rgba(255,255,255,0.45); }

/* ───────────────── CHAT WIDGET ───────────────── */
#chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 999; }
.chat-btn { width:56px; height:56px; border-radius:50%; background: var(--green); border:none; cursor:pointer; color:#fff; display:flex; align-items:center; justify-content:center; box-shadow: 0 6px 22px rgba(139,182,60,0.45); transition: background .2s, transform .15s; }
.chat-btn:hover { background: var(--green-dk); transform: scale(1.06); }
.chat-panel { position:absolute; bottom: 68px; right:0; width: 260px; max-width: calc(100vw - 48px); background:#fff; border-radius: 10px; box-shadow: var(--shadow-lg); overflow:hidden; display:none; }
.chat-panel.open { display:block; animation: chatIn .15s ease; }
@keyframes chatIn { from{opacity:0; transform: translateY(8px);} to{opacity:1; transform: translateY(0);} }
.chat-head { background: var(--dark); color:#fff; padding: 13px 16px; font-family:'Montserrat',sans-serif; font-weight:600; font-size:0.9rem; }
.chat-item { display:flex; align-items:center; gap:12px; padding: 12px 16px; text-decoration:none; color: var(--ink); font-size:0.9rem; font-weight:500; border-bottom:1px solid #f0f2ea; }
.chat-item:last-child { border-bottom:none; }
.chat-item:hover { background: var(--green-tint); }
.chat-item .ico { width:32px; height:32px; border-radius:50%; background: var(--green-tint); display:flex; align-items:center; justify-content:center; flex-shrink:0; }

/* ───────────────── UTIL ───────────────── */
.text-center { text-align:center; }
.mt-0 { margin-top:0; } .mb-0 { margin-bottom:0; }

/* ───────────────── RESPONSIIVISUUS ───────────────── */

/* --- Tabletti & pieni desktop (≤ 980px) --- */
@media (max-width: 980px) {
  :root { --sidebar-w: 0px; }
  .layout { grid-template-columns: 1fr; }
  .menu-toggle { display: flex; }
  .sidebar {
    position: fixed; top: var(--header-h); left: 0; bottom: 0; width: 280px; max-width: 86vw;
    z-index: 90; transform: translateX(-100%); transition: transform .28s ease;
    border-right: 1px solid var(--line); box-shadow: var(--shadow-lg); max-height: none;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; inset: var(--header-h) 0 0 0; background: rgba(0,0,0,0.4); z-index: 80; opacity:0; visibility:hidden; transition: opacity .25s; }
  .sidebar-backdrop.show { opacity:1; visibility:visible; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .loc-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .photo-row { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .header-phone span.num { display:none; }
}

/* --- Mobiili levi (≤ 600px) --- */
@media (max-width: 600px) {
  .section, .hero-inner { padding-left: 18px; padding-right: 18px; }
  .section { padding-top: 40px; padding-bottom: 40px; }
  .page-head { padding-left: 18px; padding-right: 18px; }

  /* Gridit yhteen sarakkeeseen */
  .cards-grid, .steps, .price-grid, .loc-grid, .contact-grid, .partner-grid, .video-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .photo-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }

  /* Header */
  .header-inner { padding: 0 14px; gap: 10px; }
  .header-phone { display: none; }
  .header-actions .btn-primary { display: none; }
  .brand-logo img { height: 44px; }
  .menu-toggle-label { display: inline; }

  /* Hero */
  .hero-phone { display: inline-flex; }
  .hero { min-height: auto; }
  .hero-inner { padding-top: 32px; padding-bottom: 28px; }
  .hero h1 { font-size: 1.55rem; }
  .hero-lead { font-size: 0.93rem; margin-bottom: 18px; }
  .hero-badges { gap: 8px; flex-direction: column; }
  .hero-badge { font-size: 0.78rem; padding: 6px 12px; }
  .hero-collage { gap: 8px; }
  .hero-collage figure:nth-child(2), .hero-collage figure:nth-child(4) { margin-top: 14px; }
  .hero-media { max-width: 340px; }
  .hero-media-badge { font-size: 0.72rem; padding: 7px 14px; bottom: -12px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Callback */
  .callback-inner { padding: 22px 18px; flex-direction: column; gap: 18px; }
  .callback-text { flex: 1 1 auto; }
  .callback-form { flex: 1 1 auto; flex-direction: column; }
  .callback-form input { flex: 0 0 auto; min-width: 0; width: 100%; }
  .callback-form button { flex: 0 0 auto; width: 100%; }
  .callback-title { font-size: 1.2rem; }

  /* Subalasivut */
  .subhero { padding: 32px 18px; }
  .subhero h1 { font-size: 1.4rem; }

  /* Hinnat */
  .compare { padding: 16px 18px; gap: 14px; flex-direction: column; }
  .compare-divider { width: 100%; height: 1px; align-self: auto; }
  .compare-item .val { font-size: 1.1rem; }
  .price-amount { font-size: 2rem; }

  /* Toimipisteet */
  .loc-card { padding: 18px; }

  /* Kortit */
  .card { padding: 20px 18px; }
  .card .card-ico { width: 42px; height: 42px; font-size: 1.15rem; margin-bottom: 12px; }

  /* Split */
  .split-media img { max-height: 260px; }

  /* Prosessivaiheet (alasivulla) */
  .step-num { width: 46px; height: 46px; font-size: 1.1rem; }

  /* Chat widget – pois tieltä mobiilissa */
  #chat-widget { bottom: 16px; right: 16px; }
  .chat-btn { width: 50px; height: 50px; }
  .chat-panel { width: 240px; bottom: 60px; }

  /* Lomake */
  .form-card { padding: 20px 16px; }

  /* Post-box */
  .post-box { flex-direction: column; padding: 16px; }

  /* Napit – isommat touch-alueet */
  .btn { padding: 13px 22px; min-height: 48px; }
  .btn-lg { padding: 15px 28px; }

  /* Galleria-grid */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* --- Pieni mobiili (≤ 380px) --- */
@media (max-width: 380px) {
  .hero h1 { font-size: 1.35rem; }
  .hero-lead { font-size: 0.88rem; }
  .section h2 { font-size: 1.3rem; }
  .brand-logo img { height: 38px; }
  .price-amount { font-size: 1.75rem; }
  .callback-title { font-size: 1.1rem; }
}
