/* ============================================================
   TAKSI JANI HEINONEN – style.css
   Logiviesti 2025
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
  --yellow: #F5C400;
  --yellow-dim: rgba(245,196,0,0.12);
  --yellow-glow: rgba(245,196,0,0.30);
  --bg: #080808;
  --bg2: #0f0f0f;
  --bg3: #141414;
  --surface: rgba(255,255,255,0.04);
  --surface2: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --border-yellow: rgba(245,196,0,0.28);
  --text: #f0f0f0;
  --text-muted: #aaa;
  --text-dim: #444;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --max-w: 1200px;
  --px: clamp(16px, 4vw, 40px);
}

body.high-contrast {
  --bg: #000;
  --bg2: #000;
  --bg3: #0a0a0a;
  --text: #fff;
  --yellow: #FFD700;
  --surface: rgba(255,255,255,0.1);
  --border: rgba(255,255,255,0.25);
}

/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  background: #080808;
  overscroll-behavior-x: none; /* Estää sivuttaisliikkeen, sallii pull-to-refresh */
}
/* Safari overscroll-pohja mustaksi – estää keltaisen näkymisen ylös/alas vedettäessä */
html::before,
html::after {
  content: '';
  position: fixed;
  left: 0; right: 0;
  height: 50vh;
  background: #080808;
  z-index: -1;
  pointer-events: none;
}
html::before { top: -50vh; }   /* Yläosa */
html::after  { bottom: -50vh; } /* Alaosa */

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-width: 0;
  overscroll-behavior-x: none;
}


img, video, svg, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Puhelinlinkit ja sähköpostilinkit – ei selaimen oletussininen */
a[href^="tel"],
a[href^="mailto"] {
  color: inherit;
  text-decoration: none;
}

/* Kaikki tekstielementit pysyvät konteinerissa fonttikokoa muutettaessa */
h1, h2, h3, h4, p, a, span, li, label {
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  background: var(--yellow);
  color: #000;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  z-index: 10000;
  transition: top 0.2s;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ===== CUSTOM CURSOR – vain desktop ===== */
.cursor-dot,
.cursor-ring {
  display: none;
}
@media (pointer: fine) {
  .cursor-dot {
    display: block;
    width: 8px; height: 8px;
    background: var(--yellow);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%,-50%);
    will-change: transform;
  }
  .cursor-ring {
    display: block;
    width: 36px; height: 36px;
    border: 1.5px solid var(--yellow-glow);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%,-50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
    will-change: transform;
  }
  .cursor-ring.hovered {
    width: 52px; height: 52px;
    border-color: var(--yellow);
  }
}

/* ===== NOISE OVERLAY ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
}

/* ===== PAGE LOADER ===== */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}
.page-loader.done { opacity: 0; visibility: hidden; }
.loader-inner {
  width: 44px; height: 44px;
  border: 2px solid var(--border);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== BACKGROUND GRID ===== */
.hero-bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,196,0,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,196,0,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 var(--px);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.4s, box-shadow 0.4s, height 0.3s;
}
nav.scrolled {
  background: rgba(8,8,8,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
  height: 58px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo span { color: var(--yellow); }

.nav-links {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  list-style: none;
  flex-wrap: nowrap;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--yellow);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--yellow) !important;
  color: #000 !important;
  font-weight: 700 !important;
  padding: 9px 18px !important;
  border-radius: 100px;
  font-size: 0.82rem !important;
  transition: transform var(--transition), box-shadow var(--transition) !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--yellow-glow);
}
.nav-cta::after { display: none !important; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,8,8,0.99);
  backdrop-filter: blur(20px);
  z-index: 1001; /* Yli navin (1000) */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 40px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 6vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}
.mobile-menu a:hover, .mobile-menu a:active { color: var(--yellow); }
.mobile-menu-call {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: var(--yellow) !important;
  color: #000 !important;
  font-family: var(--font-display);
  font-size: 1rem !important;
  font-weight: 700 !important;
  padding: 14px 28px;
  border-radius: 100px;
  margin-top: 8px;
  transition: transform var(--transition), box-shadow var(--transition) !important;
  white-space: nowrap;
}
.mobile-menu-call:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px var(--yellow-glow);
}
.mobile-menu-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--surface2);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 48px; height: 48px;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002; /* Aina menun päällä */
  flex-shrink: 0;
}
/* Hamburger piilotetaan kun menu on auki */
.mobile-menu.open ~ nav .nav-hamburger,
body.menu-open .nav-hamburger {
  opacity: 0;
  pointer-events: none;
}

/* ===== LAYOUT WRAPPER ===== */
.wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  width: 100%;
}

/* ===== SECTION BASE ===== */
section {
  position: relative;
  z-index: 2;
  padding: 88px 0;
  /* overflow: hidden poistettu – leikkasi aikajana-animaatiot */
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

.section-label {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.section-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  position: relative;
  z-index: 2;
}

/* ===== HERO ===== */
#etusivu {
  min-height: 100svh;
  padding-top: 88px;
  padding-bottom: 64px;
  display: flex;
  align-items: center;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  width: 100%;
}

.hero-glow {
  position: absolute;
  top: 10%; right: -5%;
  width: min(500px, 50vw);
  height: min(500px, 50vw);
  background: radial-gradient(circle, rgba(245,196,0,0.07) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow-dim);
  border: 1px solid var(--border-yellow);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--yellow);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--yellow);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.6); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  word-break: normal;        /* Ei katkaise sanoja */
  overflow-wrap: normal;     /* Ei katkaise sanoja */
  hyphens: none;             /* Ei tavutusta */
}
.gradient-text {
  background: linear-gradient(135deg, var(--yellow) 0%, #ffaa00 50%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-typewriter {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 600;
  color: var(--yellow);
  margin-bottom: 18px;
  min-height: 1.6em;
  display: flex;
  align-items: center;
  gap: 2px;
}
.typewriter-cursor {
  display: inline-block;
  width: 2px; height: 1.1em;
  background: var(--yellow);
  animation: blink 1s step-end infinite;
  flex-shrink: 0;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-desc {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
}
.hero-desc strong { color: var(--text); }

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-primary,
.btn-primary:visited,
.btn-primary:hover,
.btn-primary:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--yellow);
  color: #000 !important;
  font-weight: 700;
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  padding: 13px 24px;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--yellow-glow);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  padding: 13px 24px;
  border-radius: 100px;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color var(--transition), background var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn-secondary:hover {
  border-color: var(--yellow);
  background: var(--yellow-dim);
}

.hero-stats {
  display: flex;
  gap: clamp(20px, 4vw, 40px);
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
}
.stat-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 20px;
  /* overflow: hidden poistettu – leikkasi aikajana-animaatiot */
  border: 1px solid var(--border);
  background: var(--bg3);
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.hero-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.82rem;
  text-align: center;
  padding: 24px;
}
.hero-img-placeholder code {
  font-size: 0.75rem;
  background: var(--surface2);
  padding: 4px 8px;
  border-radius: 4px;
}
.hero-img-badge {
  position: absolute;
  bottom: 20px; left: 20px;
  background: rgba(8,8,8,0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-yellow);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.hero-img-badge p { font-size: 0.72rem; color: var(--text-muted); }
.hero-img-badge strong { color: var(--yellow); font-size: 1.05rem; display: block; }

.hero-img-ring {
  position: absolute;
  inset: -20px;
  border: 1px solid var(--border-yellow);
  border-radius: 28px;
  opacity: 0.25;
  pointer-events: none;
}
.hero-img-ring2 {
  position: absolute;
  inset: -40px;
  border: 1px solid rgba(245,196,0,0.08);
  border-radius: 36px;
  pointer-events: none;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--bg3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 44px 0;
  position: relative;
  z-index: 2;
}
.stats-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.counter {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
  display: block;
}
.counter-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* ===== PALVELUT – GLASSMORPHISM CARDS ===== */
#palvelut { background: transparent; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  /* overflow: hidden poistettu – leikkasi aikajana-animaatiot */
  /* Ei transform-style: preserve-3d mobiililla – aiheuttaa ongelmia */
}
.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.glass-card:hover {
  border-color: var(--border-yellow);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.glass-card:hover::before { opacity: 1; }

.card-icon {
  width: 44px; height: 44px;
  background: var(--yellow-dim);
  border: 1px solid var(--border-yellow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.card-title {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  font-weight: 700;
  margin-bottom: 10px;
}
.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.card-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
  border: 1px solid var(--border-yellow);
  border-radius: 100px;
  padding: 3px 10px;
}

/* ===== KELA-AJOT ===== */
.kela-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}
.kela-card-big {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 40px);
  position: relative;
  /* overflow: hidden poistettu – leikkasi aikajana-animaatiot */
}
.kela-card-big::after {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, var(--yellow-dim), transparent 70%);
  pointer-events: none;
}
.kela-number {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--yellow);
  margin-bottom: 8px;
}
.kela-headline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}
.kela-subtext {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
}
.kela-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,196,0,0.08);
  border: 1px solid var(--border-yellow);
  border-radius: 100px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--yellow);
  flex-wrap: wrap;
}

.kela-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.kela-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.kela-feature-icon {
  width: 36px; height: 36px;
  min-width: 36px;
  background: var(--yellow-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.kela-feature h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.kela-feature p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== MEISTÄ / AIKAJANA ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 2px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--yellow), var(--border), transparent);
}
.timeline-item {
  display: flex;
  gap: 20px;
  padding-bottom: 32px;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.5s, transform 0.5s;
}
.timeline-item.visible { opacity: 1; transform: translateX(0); }

.timeline-dot {
  width: 28px; height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--yellow);
  position: relative;
  z-index: 1;
}
.timeline-dot.active {
  background: var(--yellow);
  color: #000;
  box-shadow: 0 0 14px var(--yellow-glow);
}
.timeline-content { padding-top: 2px; }
.timeline-year {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--yellow);
  margin-bottom: 4px;
}
.timeline-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.timeline-text {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.about-quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: clamp(20px, 3vw, 32px);
  margin-bottom: 24px;
  font-style: italic;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--text-muted);
  line-height: 1.7;
  position: relative;
}
.about-quote::before {
  content: '"';
  font-size: 4rem;
  font-family: var(--font-display);
  color: var(--yellow-dim);
  position: absolute;
  top: -8px; left: 16px;
  line-height: 1;
}
.about-quote strong { color: var(--text); font-style: normal; }
.about-quote cite {
  display: block;
  margin-top: 14px;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 600;
  color: var(--yellow);
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.value-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  transition: border-color var(--transition);
}
.value-item:hover { border-color: var(--border-yellow); }
.value-item .icon { font-size: 1.4rem; margin-bottom: 8px; }
.value-item h4 {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.value-item p { font-size: 0.78rem; color: var(--text-muted); }

/* ===== TOIMINTA-ALUE ===== */
.area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.area-map-placeholder {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.82rem;
  text-align: center;
  position: relative;
  /* overflow: hidden poistettu – leikkasi aikajana-animaatiot */
  padding: 24px;
}
.area-map-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, var(--yellow-dim), transparent 70%);
  pointer-events: none;
}
.area-map-placeholder code {
  font-size: 0.75rem;
  background: var(--surface2);
  padding: 3px 8px;
  border-radius: 4px;
}

.area-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.area-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  transition: border-color var(--transition), transform var(--transition);
}
.area-item:hover {
  border-color: var(--border-yellow);
  transform: translateX(3px);
}
.area-dot {
  width: 8px; height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--yellow);
}
.area-dot.dim { background: var(--text-dim); }
.area-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
}
.area-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 1px; }

/* ===== FAQ ===== */
.faq-list { max-width: 720px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.5vw, 0.98rem);
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color var(--transition);
  line-height: 1.4;
}
.faq-question:hover { color: var(--yellow); }
.faq-chevron {
  width: 22px; height: 22px;
  min-width: 22px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
  font-size: 0.7rem;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  border-color: var(--yellow);
  background: var(--yellow-dim);
  color: var(--yellow);
}
.faq-answer {
  max-height: 0;
  overflow: hidden; /* Tarvitaan max-height-animaatioon – ei vaikuta aikajana-elementteihin */
  transition: max-height 0.4s ease, padding 0.3s;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: 22px;
}
.faq-answer p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== OTA YHTEYTTÄ ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.contact-card:hover {
  border-color: var(--border-yellow);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
.contact-card-icon {
  width: 48px; height: 48px;
  min-width: 48px;
  background: var(--yellow-dim);
  border: 1px solid var(--border-yellow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.contact-card-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 3px; }
.contact-card-value {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  font-weight: 700;
  word-break: break-word;
}

/* Contact form */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
}
.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.contact-form > p {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 7px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px var(--yellow-dim);
}
.form-group textarea { resize: vertical; min-height: 96px; }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23888'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-group select option { background: #141414; color: var(--text); }

.form-hidden { display: none !important; }

/* ===== AI SEO ===== */
.ai-seo-section {
  background: var(--bg3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
  position: relative;
  z-index: 2;
}
.ai-seo-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}
.ai-seo-inner h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.ai-seo-inner p {
  font-size: 0.86rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 860px;
  margin-bottom: 10px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg3);
  border-top: 1px solid var(--border);
  padding: 48px 0 64px;
  position: relative;
  z-index: 2;
}
@media (max-width: 768px) {
  footer {
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  }
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: 40px;
}
.footer-brand .logo {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}
.footer-brand .logo span { color: var(--yellow); }
.footer-brand p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; max-width: 260px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 0.83rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 9px;
  transition: color var(--transition);
  word-break: break-word;
}
.footer-col a:hover { color: var(--yellow); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px var(--px) 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom p,
.footer-maker { font-size: 0.76rem; color: var(--text-dim); }
.footer-legal { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-legal button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.76rem;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition);
}
.footer-legal button:hover { color: var(--yellow); }
.footer-maker a { color: var(--text-muted); text-decoration: none; transition: color var(--transition); }
.footer-maker a:hover { color: var(--yellow); }

/* ===== KELLUVA SOITA-NAPPI – vain mobiili, ilmestyy scrollatessa ===== */
.sticky-bar {
  display: none; /* Piilotetaan desktopilla */
}

@media (max-width: 768px) {
  .sticky-bar {
    display: block;
    position: fixed;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%) translateY(120px); /* Piilotettu aluksi */
    z-index: 900;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Näytetään scrollatessa (JS lisää .visible-luokan) */
  .sticky-bar.visible {
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
  }

  .sticky-bar-inner {
    display: flex;
    background: transparent;
    gap: 0;
  }

  .sticky-bar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 32px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 100px;
  }

  .sticky-bar-btn.call {
    background: var(--yellow);
    color: #000 !important;
    box-shadow: 0 6px 24px var(--yellow-glow), 0 2px 8px rgba(0,0,0,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .sticky-bar-btn.call:active {
    transform: scale(0.97);
    background: #e0b200;
  }

  /* WhatsApp piilossa – WA-float hoitaa */
  .sticky-bar-btn.whatsapp { display: none; }
}

/* ===== WHATSAPP FLOAT – vain mobiili ===== */
.wa-float {
  display: none;
}
@media (max-width: 768px) {
  .wa-float {
    display: flex;
    position: fixed;
    bottom: 72px;   /* sticky barin yläpuolelle */
    right: 16px;
    z-index: 880;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }
}
.wa-bubble {
  background: rgba(10,10,10,0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(37,211,102,0.25);
  border-radius: 14px 14px 0 14px;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0;
  transform: scale(0.85) translateY(6px);
  transition: all 0.3s ease;
  pointer-events: none;
}
.wa-bubble.show {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
.wa-btn {
  width: 52px; height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
  text-decoration: none;
  font-size: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: bounce-wa 3s ease-in-out 4s infinite;
}
.wa-btn:hover { transform: scale(1.08); }
@keyframes bounce-wa {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== ACCESSIBILITY ===== */
:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  /* overflow: hidden poistettu – leikkasi aikajana-animaatiot */
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===== A11Y CONTROLS ===== */
.a11y-controls {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
@media (max-width: 768px) {
  .a11y-controls {
    top: 50%;
    bottom: auto;
    right: auto;
    left: 0;
    transform: translateY(-50%);
  }
  .a11y-btn {
    border-right: 1px solid var(--border);
    border-left: none;
    border-radius: 0 8px 8px 0;
  }
}
.a11y-btn {
  width: 38px; height: 34px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.a11y-btn:hover { background: var(--surface2); color: var(--text); }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 76px;
  left: clamp(12px, 3vw, 20px);
  right: clamp(12px, 3vw, 20px);
  max-width: 440px;
  background: rgba(14,14,14,0.97);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(16px, 3vw, 24px);
  z-index: 1100;
  transform: translateY(200%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.cookie-banner p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; }
.cookie-btns { display: flex; gap: 8px; }
.cookie-accept {
  background: var(--yellow);
  color: #000;
  border: none;
  border-radius: 100px;
  padding: 9px 18px;
  font-weight: 700;
  font-size: 0.83rem;
  cursor: pointer;
}
.cookie-decline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 9px 18px;
  font-weight: 600;
  font-size: 0.83rem;
  cursor: pointer;
  transition: border-color var(--transition);
}
.cookie-decline:hover { border-color: var(--text-muted); }

/* ===== MODAALIT ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 40px);
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.3s;
  position: relative;
}
.modal-overlay.open .modal-box { transform: scale(1); }
.modal-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--yellow);
}
.modal-box p, .modal-box li {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 10px;
}
.modal-box h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 18px 0 6px;
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 34px; height: 34px;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--surface2); }

/* ===== RESPONSIVE – TABLET ===== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }
  .hero-img-ring, .hero-img-ring2 { display: none; }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .kela-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .about-values { grid-template-columns: repeat(2, 1fr); }
}

/* ===== RESPONSIVE – MOBILE ===== */
@media (max-width: 640px) {
  section { padding: 64px 0; }
  #etusivu { padding-top: 80px; padding-bottom: 48px; }

  .hero-title { font-size: clamp(1.75rem, 6.5vw, 2.2rem); hyphens: none; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary { width: 100%; justify-content: center; }
  .hero-stats { gap: 20px; }

  .services-grid { grid-template-columns: 1fr; }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand p { max-width: 100%; }

  .sticky-bar.compact .sticky-bar-inner { padding: 8px 10px; }
  .sticky-bar.compact .sticky-bar-btn { padding: 11px 16px; font-size: 0.82rem; }

  .area-map-placeholder { aspect-ratio: 4/3; }
}

/* ===== PRINT ===== */
@media print {
  nav, .sticky-bar, .wa-float, .a11y-controls,
  .cookie-banner, .cursor-dot, .cursor-ring,
  .hero-bg-grid, body::before { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .gradient-text { -webkit-text-fill-color: #000 !important; color: #000 !important; }
  a { color: #000 !important; }
  .glass-card, .contact-form, .kela-card-big { border: 1px solid #ccc !important; background: #fff !important; }
}
