/* ============================================================
   Jon Dillemuth — Global Styles
   Aesthetic: Vaalea, ammattimainen, luottamusta herättävä
   Fontti: Plus Jakarta Sans — luettava ja selkeä
   Aksentti: Sininen #2563eb
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg:        #f9fafb;
  --bg-2:      #ffffff;
  --surface:   #ffffff;
  --surface-2: #f3f4f6;
  --border:    #e5e7eb;
  --border-hi: #d1d5db;
  --text:      #111827;
  --muted:     #6b7280;
  --subtle:    #9ca3af;
  --accent:        #2563eb;
  --accent-light:  #eff6ff;
  --accent-dark:   #1d4ed8;
  --accent-muted:  #93c5fd;
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --max: 68ch;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  font-weight: 800;
}
h1 { font-size: clamp(28px, 4vw, 48px); }
h2 { font-size: clamp(20px, 2.5vw, 30px); font-weight: 700; margin-bottom: 12px; }
h3 { font-size: clamp(17px, 1.8vw, 21px); font-weight: 600; margin-bottom: 8px; }

p  { color: var(--muted); margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
}

ul, ol { color: var(--muted); padding-left: 22px; }
li { margin: 8px 0; }
strong { color: var(--text); font-weight: 600; }

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }

hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

.container { width: min(1100px, 100% - 40px); margin-inline: auto; }
.prose { max-width: var(--max); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(249,250,251,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 16px; padding: 16px 0;
}
.brand {
  font-weight: 800; font-size: 17px;
  color: var(--text); text-decoration: none;
  letter-spacing: -0.03em;
}
.brand:hover { color: var(--text); text-decoration: none; }

.navlinks { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.navlinks a {
  color: var(--muted); font-size: 14px; font-weight: 500;
  padding: 7px 12px; border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s; text-decoration: none;
}
.navlinks a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }

.btn-nav {
  background: var(--accent) !important; color: #fff !important;
  font-weight: 600 !important; border-radius: var(--radius-sm) !important;
}
.btn-nav:hover { background: var(--accent-dark) !important; color: #fff !important; text-decoration: none !important; }

.main { padding: 48px 0 80px; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 22px; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff;
  font-family: var(--font); font-weight: 600; font-size: 15px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 1px 3px rgba(37,99,235,0.3);
}
.btn:hover {
  background: var(--accent-dark); transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.35);
  text-decoration: none; color: #fff;
}
.btn:active { transform: translateY(0); }

.hero {
  margin-bottom: 64px; padding: 56px 48px;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 60%);
  border: 1px solid #bfdbfe; border-radius: var(--radius-lg);
}
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 32px; max-width: 52ch; }
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-actions a:not(.btn) { color: var(--muted); font-weight: 500; font-size: 15px; }
.hero-actions a:not(.btn):hover { color: var(--text); text-decoration: none; }

.results { margin-bottom: 64px; }
.results h2 { margin-bottom: 24px; }
.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.result-card { padding: 24px 28px; }
.result-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}

.services { margin-bottom: 64px; }
.services > p { margin-bottom: 24px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.services-grid .service-card {
  display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.services-grid .service-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.services-grid .service-card h3 a { color: var(--text); }
.services-grid .service-card h3 a:hover { color: var(--accent); text-decoration: none; }
.services-grid .service-card > a:last-child { margin-top: auto; font-size: 14px; font-weight: 600; }

.why { margin-bottom: 64px; }
.why p { margin-bottom: 20px; }
.why-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.why-list li {
  padding: 14px 18px; background: var(--surface-2);
  border-radius: var(--radius-sm); border-left: 3px solid var(--accent);
  color: var(--muted); margin: 0;
}
.why-list li strong { display: block; margin-bottom: 2px; color: var(--text); }

.cta {
  margin-bottom: 64px; text-align: center; padding: 56px 48px;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  border-color: #bfdbfe;
}
.cta h2 { margin-bottom: 12px; }
.cta p  { margin-bottom: 28px; max-width: 48ch; margin-inline: auto; }

.blog-posts { margin-bottom: 32px; }
.blog-posts h2 { margin-bottom: 24px; }
.blog-posts > p { margin-top: 20px; }
.post-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.post-card { display: flex; flex-direction: column; gap: 10px; transition: box-shadow 0.2s, transform 0.2s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card h3 { font-size: 17px; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--accent); text-decoration: none; }
.post-card > a:last-child { margin-top: auto; font-size: 14px; font-weight: 600; }

.service-page { display: flex; flex-direction: column; gap: 36px; }
.service-page header.card {
  padding: 48px;
  background: linear-gradient(135deg, #eff6ff 0%, #fff 70%);
  border-color: #bfdbfe;
}
.service-page header h1 { margin-bottom: 16px; }
.price { font-weight: 700; color: var(--accent); font-size: 15px; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin-top: 20px; }
.badges li {
  background: var(--accent-light); border: 1px solid #bfdbfe;
  color: var(--accent); border-radius: 999px;
  padding: 5px 14px; font-size: 13px; font-weight: 500;
}

.service-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 40px; }
.service-list .service-card { display: flex; flex-direction: column; gap: 12px; transition: box-shadow 0.2s, transform 0.2s; }
.service-list .service-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.service-list .service-card h2 a { color: var(--text); font-size: clamp(17px, 1.8vw, 21px); }
.service-list .service-card h2 a:hover { color: var(--accent); text-decoration: none; }
.service-list .service-card .btn { align-self: flex-start; margin-top: auto; }

.cta-card { text-align: center; padding: 48px; }
.cta-card h2 { margin-bottom: 12px; }
.cta-card p  { margin-bottom: 24px; }

.about-page { display: flex; flex-direction: column; gap: 36px; }
.about-page header h1 { margin-bottom: 12px; }

.contact-page { display: flex; flex-direction: column; gap: 32px; }
.contact-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.contact-card h2 { margin-bottom: 8px; font-size: 20px; }
.contact-card p  { margin-bottom: 20px; }
.contact-what h2 { margin-bottom: 16px; font-size: 20px; }

details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 18px;
  margin: 8px 0; transition: border-color 0.15s, box-shadow 0.15s;
}
details[open] { border-color: var(--accent-muted); box-shadow: 0 0 0 3px var(--accent-light); }
summary {
  cursor: pointer; font-weight: 600; color: var(--text);
  list-style: none; display: flex; justify-content: space-between;
  align-items: center; font-size: 15px; gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 20px; color: var(--accent); transition: transform 0.2s; flex-shrink: 0; font-weight: 400; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 12px; color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--border); background: var(--surface);
  padding: 56px 0 32px; margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand strong { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; display: block; margin-bottom: 12px; color: var(--text); }
.footer-brand p { font-size: 14px; margin-bottom: 10px; }
.footer-brand a { font-size: 14px; }
.site-footer nav strong { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--subtle); display: block; margin-bottom: 14px; }
.site-footer nav ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer nav a { color: var(--muted); font-size: 14px; }
.site-footer nav a:hover { color: var(--text); text-decoration: none; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--border); gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 13px; color: var(--subtle); margin: 0; }
.footer-bottom a { font-size: 13px; color: var(--muted); }

.blogi-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.blogi-list li.card { display: flex; flex-direction: column; gap: 8px; }
.blogi-list a { color: var(--text); font-weight: 700; font-size: 18px; }
.blogi-list a:hover { color: var(--accent); text-decoration: none; }
.blogi-list div { color: var(--muted); font-size: 15px; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero  { padding: 32px 24px; }
  .cta   { padding: 36px 24px; }
  .service-page header.card { padding: 32px 24px; }
  .cta-card { padding: 32px 24px; }
}
@media (max-width: 480px) {
  .results-grid, .services-grid, .post-list,
  .service-list, .contact-options { grid-template-columns: 1fr; }
}