/* =========================================================
   Pirkanmaan kierrätys ja logistiikka – pkkuljetus.fi
   ========================================================= */

:root {
  --green-900: #0a3d27;
  --green-800: #0f4d31;
  --green-700: #0f5c33;
  --green-600: #16794a;
  --green-500: #2a9d54;
  --green-400: #4cb56c;
  --green-100: #e9f4ec;
  --green-50:  #f3f9f4;
  --accent:    #e8954f;
  --accent-dark: #d97f37;
  --cream:     #fbfbe9;
  --ink:       #1d2a22;
  --muted:     #5b6b61;
  --line:      #e2e8e3;
  --white:     #ffffff;
  --shadow-sm: 0 1px 3px rgba(16,60,42,.08), 0 1px 2px rgba(16,60,42,.06);
  --shadow-md: 0 6px 24px rgba(16,60,42,.10);
  --shadow-lg: 0 18px 50px rgba(16,60,42,.16);
  --radius:    14px;
  --radius-sm: 10px;
  --maxw:      1160px;
  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.18; color: var(--ink); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.015em; }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.container-narrow { max-width: 820px; }

.section { padding: clamp(48px, 7vw, 96px) 0; }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 .6rem;
}
.eyebrow-dark { color: var(--green-600); }

.section-head { max-width: 760px; margin: 0 auto clamp(32px, 4vw, 56px); text-align: center; }
.section-lead { color: var(--muted); font-size: 1.06rem; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--green-700); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .72em 1.4em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  text-decoration: none; line-height: 1; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: .95em 1.8em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn svg { flex: none; }

.btn-primary { background: var(--green-500); color: #fff; box-shadow: 0 6px 16px rgba(42,157,84,.32); }
.btn-primary:hover { background: var(--green-600); color: #fff; }

.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }

.btn-ghost { background: transparent; color: var(--green-700); border-color: var(--line); }
.btn-ghost:hover { background: var(--green-50); color: var(--green-700); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 74px; }
.brand img { height: 38px; width: auto; }
.brand:hover { text-decoration: none; }

.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav > a:not(.btn) {
  font-family: var(--font-head); font-weight: 500; color: var(--ink);
  padding: 8px 12px; border-radius: 8px; font-size: .96rem;
}
.site-nav > a:not(.btn):hover { background: var(--green-50); color: var(--green-700); text-decoration: none; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  padding: 10px; cursor: pointer;
}
.nav-toggle span { width: 26px; height: 2.5px; background: var(--green-700); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-media {
  position: absolute; inset: 0;
  background: url("/assets/img/hero-van.avif") center 35% / cover no-repeat;
  transform: scale(1.03);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(110deg, rgba(10,61,39,.92) 0%, rgba(15,92,51,.78) 45%, rgba(15,92,51,.30) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: clamp(70px, 12vw, 150px) 22px clamp(64px, 10vw, 120px);
  max-width: 780px;
}
.hero .eyebrow { color: var(--accent); }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero-lead { font-size: 1.18rem; color: rgba(255,255,255,.92); max-width: 620px; margin-bottom: 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 1.1rem; }
.hero-contact { color: rgba(255,255,255,.85); font-size: .98rem; margin: 0; }
.hero-contact a { color: #fff; text-decoration: underline; }

/* ---------------- Trust strip ---------------- */
.trust { background: var(--green-700); color: #fff; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 28px;
  padding: 26px 22px;
}
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-item svg { width: 30px; height: 30px; flex: none; color: var(--green-400); }
.trust-item strong { display: block; font-family: var(--font-head); font-size: 1rem; }
.trust-item span { font-size: .86rem; color: rgba(255,255,255,.8); }

/* ---------------- Intro / cards ---------------- */
.intro { background: var(--green-50); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 16px;
  display: grid; place-items: center; background: var(--green-100); color: var(--green-600);
}
.card-icon svg { width: 30px; height: 30px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }

.cta-banner {
  margin-top: clamp(36px, 5vw, 56px);
  background: var(--green-700);
  background-image: linear-gradient(120deg, var(--green-800), var(--green-600));
  color: #fff; border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}
.cta-banner h3 { color: #fff; font-size: 1.5rem; margin-bottom: .2em; }
.cta-banner p { margin: 0; color: rgba(255,255,255,.9); }
.cta-banner a:not(.btn) { color: #fff; text-decoration: underline; }

/* ---------------- Process ---------------- */
.process { background: #fff; }
.process-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.process-media { position: sticky; top: 100px; }
.process-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; object-fit: cover; }

.steps { list-style: none; margin: 18px 0 0; padding: 0; }
.steps li { display: flex; gap: 20px; padding-bottom: 28px; position: relative; }
.steps li:not(:last-child)::before {
  content: ""; position: absolute; left: 21px; top: 48px; bottom: 0; width: 2px;
  background: linear-gradient(var(--green-400), var(--green-100));
}
.step-num {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-500); color: #fff; font-family: var(--font-head); font-weight: 700;
  display: grid; place-items: center; font-size: 1.15rem; z-index: 1;
  box-shadow: 0 4px 10px rgba(42,157,84,.3);
}
.steps h3 { margin-bottom: .25em; }
.steps p { color: var(--muted); margin: 0; }

/* ---------------- FAQ ---------------- */
.faq { background: var(--green-50); }
.faq-inner { max-width: 860px; margin-inline: auto; }
.accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.accordion-trigger {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--ink);
}
.accordion-trigger:hover { color: var(--green-700); }
.accordion-trigger svg { flex: none; color: var(--green-500); transition: transform .25s ease; }
.accordion-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.accordion-panel {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
}
.accordion-panel p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* ---------------- Contact ---------------- */
.contact { background: var(--green-700); color: #fff; position: relative; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact .eyebrow { color: var(--accent); }
.contact-intro h2 { color: #fff; }
.contact-intro p { color: rgba(255,255,255,.88); font-size: 1.05rem; }
.contact-list { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list svg { width: 24px; height: 24px; flex: none; color: var(--green-400); }
.contact-list a { color: #fff; text-decoration: none; font-weight: 500; }
.contact-list a:hover { text-decoration: underline; }
.contact-list span { color: rgba(255,255,255,.9); }

.form-wrap { background: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow-lg); }
.contact-form .field { margin-bottom: 16px; }
.contact-form label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.contact-form .req { color: var(--accent-dark); }
.contact-form input,
.contact-form textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1.5px solid #e6e6c8; border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(42,157,84,.18); background: #fff;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { display: none; border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 18px; font-weight: 500; }
.form-status.is-ok { display: block; background: var(--green-100); color: var(--green-800); border: 1px solid var(--green-400); }
.form-status.is-error { display: block; background: #fdecea; color: #9a2b1f; border: 1px solid #f2b8b0; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.78); }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px;
  padding: clamp(44px, 6vw, 72px) 22px clamp(32px, 4vw, 48px);
}
.footer-brand img { height: 40px; width: auto; background: #fff; padding: 8px 12px; border-radius: 10px; margin-bottom: 16px; }
.footer-brand p { font-size: .95rem; max-width: 320px; }
.footer-col h3 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.footer-col p { margin: 0 0 .4rem; font-size: .94rem; }
.footer-col a { color: rgba(255,255,255,.8); }
.footer-col a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { font-size: .94rem; }

.back-to-top {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  background: var(--green-500); color: #fff !important; font-family: var(--font-head); font-weight: 600;
  padding: 9px 16px; border-radius: 999px; font-size: .9rem;
}
.back-to-top:hover { background: var(--green-600); text-decoration: none; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 18px; flex-wrap: wrap; }
.footer-bottom span, .footer-bottom a { font-size: .88rem; color: rgba(255,255,255,.65); }

/* ---------------- Legal page ---------------- */
.subpage .legal { padding-top: clamp(40px, 6vw, 72px); }
.legal h1 { margin-bottom: .8em; }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; color: var(--green-700); }
.legal p { color: #34433a; }
.legal-back { margin-top: 2.5em; font-family: var(--font-head); font-weight: 600; }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-media { position: static; max-width: 460px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 14px 22px 22px;
    gap: 6px; box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .22s ease;
  }
  .site-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .site-nav > a:not(.btn) { padding: 12px; border-radius: 10px; }
  .site-nav .btn { width: 100%; }
}

@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-cta .btn { width: 100%; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  .cta-banner .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
