/* ==========================================================================
   Autokoulu Pasila – Tyylitiedosto
   Paletti: #0C2B4B (navy), #F3BD00 (yellow), #0EA5A5 (teal)
   ========================================================================== */

:root {
  /* Brändivärit */
  --ap-navy: #0C2B4B;
  --ap-navy-800: #0a2340;
  --ap-navy-700: #143a64;
  --ap-navy-600: #1f4d80;
  --ap-navy-50: #eef3f9;

  --ap-yellow: #F3BD00;
  --ap-yellow-600: #d9a800;
  --ap-yellow-300: #fde08a;
  --ap-yellow-50: #fff8df;

  --ap-teal: #0EA5A5;
  --ap-teal-700: #0b8585;
  --ap-teal-300: #66d1d1;
  --ap-teal-50: #e6f7f7;

  /* Neutraalit */
  --ap-white: #ffffff;
  --ap-ink: #0b1a2d;
  --ap-muted: #5a6b80;
  --ap-line: #e5ebf2;
  --ap-bg: #f7f9fc;

  /* Typografia */
  --ap-font-display: "Plus Jakarta Sans", "Helvetica Neue", system-ui, sans-serif;
  --ap-font-body: "Manrope", "Helvetica Neue", system-ui, sans-serif;

  /* Muotoilu */
  --ap-radius: 14px;
  --ap-radius-lg: 22px;
  --ap-shadow-sm: 0 2px 8px rgba(12, 43, 75, 0.06);
  --ap-shadow: 0 12px 40px rgba(12, 43, 75, 0.10);
  --ap-shadow-lg: 0 30px 60px rgba(12, 43, 75, 0.18);

  /* Bootstrap override */
  --bs-primary: var(--ap-navy);
  --bs-primary-rgb: 12, 43, 75;
  --bs-body-font-family: var(--ap-font-body);
  --bs-body-color: var(--ap-ink);
  --bs-body-bg: var(--ap-white);
  --bs-link-color: var(--ap-teal-700);
  --bs-link-hover-color: var(--ap-navy);
  --bs-border-radius: var(--ap-radius);
}

/* ---------- Perusteet ---------- */
* { -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--ap-font-body);
  color: var(--ap-ink);
  background: var(--ap-white);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4 {
  font-family: var(--ap-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ap-navy);
  line-height: 1.1;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ap-teal-700);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--ap-yellow);
  border-radius: 2px;
}

.lead-muted {
  color: var(--ap-muted);
  font-size: 1.05rem;
  max-width: 58ch;
}
.text-center .lead-muted,
.lead-muted.text-center {
  margin-inline: auto;
}

/* Saavutettava fokus */
:focus-visible {
  outline: 3px solid var(--ap-yellow);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  background: var(--ap-navy);
  color: var(--ap-white);
  padding: 0.6rem 1rem;
  border-radius: 0 0 10px 10px;
  z-index: 2000;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Painikkeet ---------- */
.btn {
  font-weight: 600;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline-offset: 4px; }

.btn-primary {
  background: var(--ap-navy);
  border-color: var(--ap-navy);
  color: #fff;
  box-shadow: 0 10px 24px rgba(12, 43, 75, 0.25);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--ap-navy-800);
  border-color: var(--ap-navy-800);
  color: #fff;
}

.btn-accent {
  background: var(--ap-yellow);
  border: 2px solid var(--ap-yellow);
  color: var(--ap-navy);
  box-shadow: 0 10px 24px rgba(243, 189, 0, 0.35);
}
.btn-accent:hover, .btn-accent:focus {
  background: var(--ap-yellow-600);
  border-color: var(--ap-yellow-600);
  color: var(--ap-navy);
}

.btn-outline-navy {
  border: 2px solid var(--ap-navy);
  color: var(--ap-navy);
  background: transparent;
}
.btn-outline-navy:hover, .btn-outline-navy:focus {
  background: var(--ap-navy);
  color: #fff;
}

.btn-ghost {
  color: var(--ap-navy);
  background: transparent;
  border: none;
  padding-left: 0;
}
.btn-ghost:hover { color: var(--ap-teal-700); }
.btn-ghost .arrow { transition: transform 0.2s; display: inline-block; }
.btn-ghost:hover .arrow { transform: translateX(4px); }

/* ---------- Yläpalkki ---------- */
.topbar {
  background: var(--ap-navy);
  color: #cfe0f0;
  font-size: 0.88rem;
  padding: 0.5rem 0;
}
.topbar a {
  color: #cfe0f0;
  text-decoration: none;
  margin-right: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.topbar a:hover { color: var(--ap-yellow); }
.topbar .socials a { margin-left: 0.75rem; margin-right: 0; }

/* ---------- Navigaatio ---------- */
.navbar-brand {
  font-family: var(--ap-font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--ap-navy);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.navbar-brand .brand-mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ap-navy), var(--ap-navy-800));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 6px 18px rgba(12, 43, 75, 0.35);
}
.navbar-brand .brand-mark i { line-height: 1; }

/* Dropdown-valikko */
.site-nav .dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.35em;
  vertical-align: 0.15em;
  content: "";
  border-top: 0.35em solid;
  border-right: 0.32em solid transparent;
  border-bottom: 0;
  border-left: 0.32em solid transparent;
  transition: transform 0.2s;
}
.site-nav .dropdown.show .dropdown-toggle::after { transform: rotate(-180deg); }

.site-nav .dropdown-menu {
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius);
  box-shadow: var(--ap-shadow);
  padding: 0.5rem;
  margin-top: 0.5rem;
  min-width: 260px;
}
.site-nav .dropdown-item {
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-weight: 600;
  color: var(--ap-navy);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.site-nav .dropdown-item i {
  color: var(--ap-teal-700);
  font-size: 1.05rem;
  width: 22px;
  text-align: center;
}
.site-nav .dropdown-item:hover,
.site-nav .dropdown-item:focus {
  background: var(--ap-yellow-50);
  color: var(--ap-navy);
}
.site-nav .dropdown-item:hover i { color: var(--ap-navy); }

/* Mobiilissa dropdown ei luo popoveria — näytetään tasaisena listana */
@media (max-width: 991.98px) {
  .site-nav .dropdown-menu {
    border: none;
    box-shadow: none;
    padding: 0 0 0 1rem;
    margin-top: 0;
  }
}

.site-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--ap-line);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: box-shadow 0.25s, padding 0.25s;
}
.site-nav.scrolled {
  box-shadow: 0 6px 24px rgba(12, 43, 75, 0.08);
  padding: 0.6rem 0;
}

.site-nav .nav-link {
  color: var(--ap-navy);
  font-weight: 600;
  padding: 0.5rem 0.9rem !important;
  position: relative;
}
.site-nav .nav-link:not(.dropdown-toggle)::after {
  content: "";
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 0.25rem;
  height: 2px;
  background: var(--ap-yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.site-nav .nav-link:not(.dropdown-toggle):hover::after,
.site-nav .nav-link:not(.dropdown-toggle):focus::after,
.site-nav .nav-link:not(.dropdown-toggle).active::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ap-navy);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  padding: 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 500px at -10% 20%, rgba(14, 165, 165, 0.22), transparent 60%),
    radial-gradient(800px 400px at 50% 100%, rgba(243, 189, 0, 0.10), transparent 60%);
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  min-height: 78vh;
}
.hero-content {
  padding: 6rem 1.5rem 6rem 0;
  max-width: 640px;
  justify-self: end;
  align-self: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ap-yellow);
  box-shadow: 0 0 0 4px rgba(243, 189, 0, 0.25);
}
.hero-logo {
  display: block;
  height: 90px;
  width: auto;
  margin-bottom: 1.5rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero h1 .accent {
  color: var(--ap-yellow);
  position: relative;
  white-space: nowrap;
}
.hero p.lead {
  font-size: 1.15rem;
  color: #cfdbea;
  margin: 1.25rem 0 2rem;
  max-width: 52ch;
}
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.hero-meta {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.hero-meta .item strong {
  display: block;
  font-family: var(--ap-font-display);
  font-size: 1.9rem;
  color: var(--ap-yellow);
  line-height: 1;
}
.hero-meta .item span {
  font-size: 0.85rem;
  color: #9fb3c8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Hero-kuva oikealla reunasta reunaan */
.hero-visual {
  position: relative;
  min-height: 420px;
  background: linear-gradient(135deg, var(--ap-navy-700), var(--ap-teal-700));
  overflow: hidden;
}
.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12,43,75,0.55) 0%, rgba(12,43,75,0) 30%);
  pointer-events: none;
}
.hero-badge {
  position: absolute;
  bottom: 1.75rem;
  right: 1.75rem;
  background: #fff;
  color: var(--ap-navy);
  border-radius: var(--ap-radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--ap-shadow-lg);
  max-width: 280px;
}
.hero-badge .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--ap-yellow);
  display: grid; place-items: center;
  color: var(--ap-navy);
  flex-shrink: 0;
}
.hero-badge strong { display: block; font-size: 1rem; }
.hero-badge span { font-size: 0.82rem; color: var(--ap-muted); }

@media (max-width: 991.98px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 4rem 1rem 2rem; max-width: 100%; justify-self: stretch; }
  .hero-visual { min-height: 340px; }
}

/* ---------- Trust-rivi ---------- */
.trust-strip {
  background: var(--ap-yellow);
  color: var(--ap-navy);
  padding: 1rem 0;
}
.trust-strip .track {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--ap-font-display);
  font-size: 1.05rem;
}
.trust-strip .track span { display: inline-flex; align-items: center; gap: 0.6rem; }
.trust-strip .track .sep {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ap-navy);
}

/* ---------- Osiot ---------- */
section { padding: 5.5rem 0; }
.section-alt { background: var(--ap-bg); }
.section-dark {
  background: var(--ap-navy);
  color: #cfdbea;
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--ap-yellow); }
.section-dark .eyebrow::before { background: var(--ap-teal); }

/* ---------- Kurssikortit ---------- */
a.course-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.course-card:focus-visible {
  outline: 3px solid var(--ap-yellow);
  outline-offset: 4px;
}
.course-card {
  background: #fff;
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius-lg);
  padding: 2rem;
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.course-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--ap-yellow), var(--ap-teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ap-shadow);
  border-color: transparent;
}
.course-card:hover::before { transform: scaleX(1); }
.course-card .icon-wrap {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--ap-navy-50);
  color: var(--ap-navy);
  display: grid; place-items: center;
  margin-bottom: 1.25rem;
  transition: background 0.3s, color 0.3s;
}
.course-card:hover .icon-wrap {
  background: var(--ap-navy);
  color: var(--ap-yellow);
}
.course-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}
.course-card p { color: var(--ap-muted); margin-bottom: 1.25rem; }
.course-card .price {
  font-family: var(--ap-font-display);
  font-weight: 800;
  color: var(--ap-navy);
  font-size: 1.3rem;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.course-card .price small {
  font-size: 0.75rem;
  color: var(--ap-muted);
  font-weight: 500;
}

/* ---------- Ominaisuudet (Miksi me) ---------- */
.feature-row { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.25rem 0; }
.feature-row + .feature-row { border-top: 1px dashed var(--ap-line); }
.feature-row .num {
  font-family: var(--ap-font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ap-teal);
  min-width: 48px;
}
.feature-row h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.feature-row p { color: var(--ap-muted); margin: 0; }

.image-panel {
  position: relative;
  border-radius: var(--ap-radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--ap-navy-700), var(--ap-teal));
  aspect-ratio: 4 / 5;
  box-shadow: var(--ap-shadow);
}
.image-panel img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.image-panel .sticker {
  position: absolute;
  top: 1.25rem; left: 1.25rem;
  background: var(--ap-yellow);
  color: var(--ap-navy);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ---------- Prosessi ---------- */
.step {
  background: #fff;
  border-radius: var(--ap-radius-lg);
  padding: 2rem 1.5rem;
  height: 100%;
  border: 1px solid var(--ap-line);
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--ap-shadow); }
.step .step-num {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--ap-teal-50);
  color: var(--ap-teal-700);
  font-family: var(--ap-font-display);
  font-weight: 800;
  font-size: 1.2rem;
  display: grid; place-items: center;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--ap-muted); margin: 0; font-size: 0.95rem; }

/* ---------- Suositukset ---------- */
.testimonial {
  background: #fff;
  border-radius: var(--ap-radius-lg);
  padding: 2rem;
  border: 1px solid var(--ap-line);
  height: 100%;
  position: relative;
}
.testimonial .stars { color: var(--ap-yellow); margin-bottom: 1rem; font-size: 1.05rem; letter-spacing: 2px; }
.testimonial blockquote { font-size: 1.05rem; color: var(--ap-ink); margin: 0 0 1.25rem; line-height: 1.55; }
.testimonial .author { display: flex; align-items: center; gap: 0.9rem; }
.testimonial .avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ap-navy-50);
  display: grid; place-items: center;
  color: var(--ap-navy);
  font-weight: 700;
  overflow: hidden;
}
.testimonial .avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial .author strong { display: block; color: var(--ap-navy); }
.testimonial .author span { color: var(--ap-muted); font-size: 0.85rem; }

/* ---------- Ajankohtaista ---------- */
.news-card {
  background: #fff;
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ap-shadow);
}
.news-card .news-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--ap-navy-700), var(--ap-teal));
  position: relative;
  overflow: hidden;
}
.news-card .news-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.news-card .news-body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-card .news-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--ap-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 0.85rem;
}
.news-card .news-tag {
  background: var(--ap-teal-50);
  color: var(--ap-teal-700);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.news-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.65rem;
  line-height: 1.3;
}
.news-card p {
  color: #000;
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.5;
}
.news-card .read-more {
  margin-top: auto;
  font-weight: 700;
  color: var(--ap-navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.news-card .read-more:hover { color: var(--ap-teal-700); }
.news-card .read-more:hover .arrow { transform: translateX(4px); }
.news-card .read-more .arrow { transition: transform 0.2s; display: inline-block; }
.news-card .news-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.news-card .news-actions .btn {
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
}

/* ---------- UKK ---------- */
.faq-item {
  background: #fff;
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius);
  margin-bottom: 0.85rem;
  overflow: hidden;
}
.faq-item .accordion-button {
  font-family: var(--ap-font-display);
  font-weight: 700;
  color: var(--ap-navy);
  background: #fff;
  padding: 1.1rem 1.25rem;
  font-size: 1.05rem;
  box-shadow: none !important;
}
.faq-item .accordion-button:not(.collapsed) {
  color: var(--ap-navy);
  background: var(--ap-yellow-50);
}
.faq-item .accordion-button:focus { border-color: transparent; box-shadow: 0 0 0 3px var(--ap-yellow) !important; }
.faq-item .accordion-body { color: var(--ap-muted); padding: 0 1.25rem 1.25rem; }

/* ---------- CTA-palkki ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--ap-navy) 0%, var(--ap-navy-700) 60%, var(--ap-teal-700) 100%);
  color: #fff;
  border-radius: var(--ap-radius-lg);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 280px; height: 280px;
  background: var(--ap-yellow);
  border-radius: 50%;
  opacity: 0.18;
  filter: blur(10px);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfdbea; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ap-navy-800);
  color: #9fb3c8;
  padding: 4rem 0 1.5rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}
.site-footer a {
  color: #9fb3c8;
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
  transition: color 0.2s, transform 0.2s;
}
.site-footer a:hover { color: var(--ap-yellow); transform: translateX(3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: #6b7f95;
}

/* ---------- Kuvapaikanvaraajat ---------- */
.img-placeholder {
  background:
    linear-gradient(135deg, rgba(12,43,75,0.85), rgba(14,165,165,0.75)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 12px, transparent 12px 24px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ap-font-display);
  font-weight: 700;
  text-align: center;
  padding: 1rem;
  min-height: 100%;
  width: 100%;
}
.img-placeholder small { display: block; opacity: 0.8; font-weight: 400; font-size: 0.8rem; margin-top: 0.35rem; }

/* ---------- Animaatiot ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.in { opacity: 1; transform: translateY(0); }
}

/* ---------- Henkilöstökortit ---------- */
.staff-card {
  background: #fff;
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.staff-card:hover {
  box-shadow: 0 8px 32px rgba(12, 43, 75, 0.12);
  transform: translateY(-3px);
}
.staff-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  background: var(--ap-navy-50);
  border: 3px solid var(--ap-navy);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ap-font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--ap-navy);
  letter-spacing: -0.02em;
}
.staff-avatar img { width: 100%; height: 100%; object-fit: cover; }
.staff-card .staff-name {
  font-family: var(--ap-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ap-navy);
  margin-bottom: 0.2rem;
}
.staff-card .staff-role {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ap-teal);
  margin-bottom: 1rem;
}
.staff-card .staff-phone {
  font-family: var(--ap-font-display);
  font-weight: 600;
  color: var(--ap-navy);
  font-size: 0.95rem;
}
.staff-card .staff-phone a {
  color: inherit;
  text-decoration: none;
}
.staff-card .staff-phone a:hover { color: var(--ap-teal); }
.staff-card .staff-phone .phone-line { display: block; }

/* ---------- Cookie-banneri ---------- */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 640px);
  background: #fff;
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius-lg);
  box-shadow: 0 8px 32px rgba(12,43,75,0.15);
  padding: 1.25rem 1.5rem;
  z-index: 1090;
  animation: slideUp 0.3s ease;
}
.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.cookie-banner__text {
  flex: 1;
  font-size: 0.9rem;
  color: var(--ap-ink);
  margin: 0;
  line-height: 1.55;
}
.cookie-banner__text a {
  color: var(--ap-teal);
  text-decoration: underline;
  white-space: nowrap;
}
.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@media (max-width: 480px) {
  .cookie-banner__inner { flex-direction: column; align-items: stretch; }
  .cookie-banner__actions { justify-content: flex-end; }
}

/* ---------- Apuluokat ---------- */
.text-navy { color: var(--ap-navy) !important; }
.text-teal { color: var(--ap-teal-700) !important; }
.text-yellow { color: var(--ap-yellow) !important; }
.bg-navy { background-color: var(--ap-navy) !important; }
.bg-yellow { background-color: var(--ap-yellow) !important; }
.bg-teal { background-color: var(--ap-teal) !important; }

@media (max-width: 575.98px) {
  section { padding: 3.5rem 0; }
  .cta-band { padding: 2rem 1.5rem; }
}

/* ==========================================================================
   Alasivut – yhteiset
   ========================================================================== */

/* Alasivun hero */
.page-hero {
  position: relative;
  background: var(--ap-navy);
  color: #fff;
  padding: 6rem 0 5rem;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 450px at 85% 20%, rgba(14, 165, 165, 0.28), transparent 60%),
    radial-gradient(700px 400px at 10% 100%, rgba(243, 189, 0, 0.14), transparent 60%);
  z-index: 0;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.page-hero h1 .accent { color: var(--ap-yellow); }
.page-hero .lead {
  color: #cfdbea;
  font-size: 1.15rem;
  max-width: 60ch;
  margin-bottom: 0;
}
.breadcrumb-bar {
  font-size: 0.85rem;
  color: #9fb3c8;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.breadcrumb-bar a { color: var(--ap-yellow); text-decoration: none; }
.breadcrumb-bar a:hover { text-decoration: underline; }
.breadcrumb-bar .sep { opacity: 0.5; }

/* Hintakortit */
.price-card {
  background: #fff;
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius-lg);
  padding: 2.25rem 2rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ap-shadow);
}
.price-card.is-featured {
  border: 2px solid var(--ap-navy);
  background: linear-gradient(180deg, #fff 0%, var(--ap-navy-50) 100%);
  box-shadow: 0 20px 50px rgba(12, 43, 75, 0.14);
}
.price-card .ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ap-yellow);
  color: var(--ap-navy);
  font-family: var(--ap-font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(243, 189, 0, 0.4);
  white-space: nowrap;
}
.price-card h3 {
  font-size: 1.55rem;
  margin-bottom: 0.4rem;
  color: var(--ap-navy);
}
.price-card .tagline {
  color: var(--ap-muted);
  font-size: 0.92rem;
  min-height: 3em;
  margin-bottom: 1.5rem;
}
.price-card .amount {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--ap-font-display);
  margin-bottom: 0.25rem;
}
.price-card .amount .currency {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ap-navy);
}
.price-card .amount .value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--ap-navy);
  line-height: 1;
}
.price-card .fine {
  font-size: 0.82rem;
  color: var(--ap-muted);
  margin-bottom: 1.5rem;
}
.price-card ul.features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.price-card ul.features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.93rem;
  color: var(--ap-ink);
  line-height: 1.45;
}
.price-card ul.features li::before {
  content: "\F26B"; /* bootstrap-icons check-lg */
  font-family: "bootstrap-icons";
  color: var(--ap-teal);
  font-size: 1rem;
  line-height: 1.3;
  flex-shrink: 0;
}
.price-card ul.features li strong { color: var(--ap-navy); }
.price-card .btn { width: 100%; }

/* Info-laatikot (viranomaiskulut, ylimääräiset palvelut) */
.info-box {
  background: #fff;
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius-lg);
  padding: 2rem;
  height: 100%;
}
.info-box h3 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ap-navy);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.info-box h3 i { color: var(--ap-teal); }
.info-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.info-box ul li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--ap-line);
  font-size: 0.94rem;
}
.info-box ul li:last-child { border-bottom: none; }
.info-box ul li .label { color: var(--ap-ink); flex: 1; }
.info-box ul li .value {
  color: var(--ap-navy);
  font-family: var(--ap-font-display);
  font-weight: 700;
  white-space: nowrap;
}
.info-box ul li.muted .label,
.info-box ul li.muted .value { color: var(--ap-muted); font-style: italic; }

/* Info-accordion (yleisinfoa) */
.info-accordion .accordion-item {
  background: #fff;
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius) !important;
  margin-bottom: 0.85rem;
  overflow: hidden;
}
.info-accordion .accordion-button {
  font-family: var(--ap-font-display);
  font-weight: 700;
  color: var(--ap-navy);
  background: #fff;
  padding: 1.1rem 1.25rem;
  font-size: 1.1rem;
  box-shadow: none !important;
  border-radius: var(--ap-radius) !important;
}
.info-accordion .accordion-button:not(.collapsed) {
  color: var(--ap-navy);
  background: var(--ap-yellow-50);
}
.info-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230C2B4B'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}
.info-accordion .accordion-button:focus { box-shadow: 0 0 0 3px var(--ap-yellow) !important; }
.info-accordion .accordion-body {
  padding: 0.5rem 1.25rem 1.5rem;
  color: var(--ap-ink);
  line-height: 1.65;
}
.info-accordion .accordion-body a { color: var(--ap-teal-700); font-weight: 600; }

/* ==========================================================================
   Lomake – Ilmoittautuminen
   ========================================================================== */

.form-wrap {
  background: #fff;
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--ap-shadow-sm);
}

.form-wrap .form-section-title {
  font-family: var(--ap-font-display);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ap-teal-700);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ap-line);
}

.form-wrap .form-label {
  font-weight: 600;
  color: var(--ap-navy);
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}
.form-wrap .form-label .req { color: #c42828; margin-left: 2px; }

.form-wrap .form-control,
.form-wrap .form-select {
  border: 1.5px solid var(--ap-line);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 0.98rem;
  background: #fff;
  color: var(--ap-ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-wrap .form-control:focus,
.form-wrap .form-select:focus {
  border-color: var(--ap-teal);
  box-shadow: 0 0 0 3px rgba(14, 165, 165, 0.18);
  outline: none;
}
.form-wrap .form-control::placeholder { color: #9aa7b8; }

.form-wrap .form-text {
  font-size: 0.82rem;
  color: var(--ap-muted);
  margin-top: 0.35rem;
}

.form-wrap .form-check-input {
  width: 1.15em;
  height: 1.15em;
  margin-top: 0.2em;
  border: 1.5px solid #b5c0cf;
}
.form-wrap .form-check-input:checked {
  background-color: var(--ap-teal);
  border-color: var(--ap-teal);
}
.form-wrap .form-check-input:focus {
  border-color: var(--ap-teal);
  box-shadow: 0 0 0 3px rgba(14, 165, 165, 0.2);
}
.form-wrap .form-check-label {
  font-size: 0.92rem;
  color: var(--ap-ink);
  line-height: 1.5;
}
.form-wrap .form-check-label a { color: var(--ap-teal-700); font-weight: 600; }

/* Honeypot – piilotettu botteja varten, saavutettavasti piilossa */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* Virheellinen kenttä */
.form-wrap .form-control.is-invalid,
.form-wrap .form-select.is-invalid {
  border-color: #c42828;
  box-shadow: 0 0 0 3px rgba(196, 40, 40, 0.12);
}
.form-wrap .invalid-feedback {
  color: #c42828;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  font-weight: 600;
}

/* Sivupalkki */
.form-sidebar {
  background: var(--ap-navy);
  color: #cfdbea;
  border-radius: var(--ap-radius-lg);
  padding: 2rem;
  position: sticky;
  top: 100px;
}
.form-sidebar h3 {
  color: #fff;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}
.form-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.form-sidebar ul li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.7rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
  font-size: 0.92rem;
}
.form-sidebar ul li:last-child { border-bottom: none; }
.form-sidebar ul li i { color: var(--ap-yellow); font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.form-sidebar .call-row {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
}
.form-sidebar .call-row strong { color: #fff; display: block; font-size: 1.1rem; }
.form-sidebar .call-row a { color: var(--ap-yellow); font-weight: 700; text-decoration: none; }

/* Lähetä-nappi */
.submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ap-line);
}
.submit-row .small-note {
  font-size: 0.82rem;
  color: var(--ap-muted);
  flex: 1;
  min-width: 240px;
}

/* Ilmoitusbanneri */
.form-alert {
  border-radius: var(--ap-radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
}
.form-alert i { font-size: 1.3rem; flex-shrink: 0; }
.form-alert.error { background: #fde8e8; color: #8a1e1e; border: 1px solid #f5c0c0; }
.form-alert.info  { background: var(--ap-teal-50); color: var(--ap-navy); border: 1px solid var(--ap-teal-300); }
.form-alert.success { background: #e6f7ee; color: #1e6b3a; border: 1px solid #b7e4c7; }

@media (max-width: 767.98px) {
  .form-wrap { padding: 1.5rem; }
  .form-sidebar { position: static; }
}

/* Auto list */
.vehicle-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}
.vehicle-list li {
  background: var(--ap-navy-50);
  border-radius: var(--ap-radius);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--ap-navy);
  font-weight: 600;
}
.vehicle-list li i { color: var(--ap-teal); font-size: 1.2rem; }

/* Tietosuojaseloste */
.privacy-content h3 {
  font-family: var(--ap-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ap-navy);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.privacy-content h3:first-child { margin-top: 0; }
.privacy-content p,
.privacy-content li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ap-ink);
}
.privacy-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.privacy-content ul li { margin-bottom: 0.35rem; }
.privacy-meta {
  font-size: 0.88rem;
  color: var(--ap-muted);
  margin-bottom: 2rem;
}
