/* ==========================================================================
   artic-siivous — theme: fresh-fix (trades-industrial, skeleton S1 centered
   stage — first use of this theme)
   Palette: white #FFFFFF · bright blue #1E88E5 (decorative/large accents) ·
            blue-deep #1258A6 (AA-safe darkened blue for real text/CTAs,
            7.07:1 white-on-it, 7.07:1 on white) · sunny accent #FFC93C
            (decorative/non-text only, ~1.5:1 on white — never used as text
            color) · soft sky panels #EAF4FD · slate text #2B3A45
            (11.71:1 on white, 10.51:1 on sky)
   Type:    Baloo 2 variable (display, rounded, warm) / Inter variable (body)
   ========================================================================== */

@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/baloo2-variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --white: #FFFFFF;
  --sky: #EAF4FD;
  --blue: #1E88E5;        /* decorative bright blue — icons, large numerals, borders */
  --blue-deep: #1258A6;   /* AA-safe darkened blue for real text + CTA backgrounds */
  --sunny: #FFC93C;       /* decorative accent only — never as text color */
  --slate: #2B3A45;       /* body text — 11.71:1 on white, 10.51:1 on sky */
  --slate-soft: #55636D;  /* secondary text — 6.19:1 on white, 5.56:1 on sky, still AA */
  --line: #D7E6F5;
  --display: "Baloo 2", "Trebuchet MS", sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --radius: 1.25rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--sunny); color: var(--slate); }

a { color: var(--blue-deep); text-underline-offset: 3px; }
a:hover { color: #0D3A80; }

:focus-visible {
  outline: 3px solid var(--blue-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--blue-deep);
  color: var(--white);
  padding: 0.6rem 1rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 0 0 6px 0;
}
.skip-link:focus-visible { left: 0.5rem; top: 0; }

/* ------------------------------------------------------------------ draft */

.draft-banner {
  display: block;
  background: var(--slate);
  color: var(--white);
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  padding: 0.55rem var(--pad);
}
.draft-banner strong { color: var(--sunny); font-weight: 700; }
.draft-banner:hover { background: #1D2831; }

/* --------------------------------------------------------------------- nav */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 3.8rem;
}
.nav-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--slate);
  text-decoration: none;
  white-space: nowrap;
}
.nav-mark svg { flex: none; }
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  overflow-x: auto;
}
.nav-tabs a {
  display: block;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--slate-soft);
  white-space: nowrap;
}
.nav-tabs a:hover { color: var(--blue-deep); }

/* signature move: sticky "ota yhteyttä" contact pill (adapted from the
   theme's default "phone visible in header" move — no real phone exists) */
.nav-contact {
  display: flex;
  align-items: center;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  background: var(--blue-deep);
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  white-space: nowrap;
}
.nav-contact:hover { background: #0D3A80; }

/* --------------------------------------------------------------- hero (S1) */

.hero {
  position: relative;
  background: var(--sky);
  overflow: hidden;
}
.hero-inner {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 10vw, 6.5rem) var(--pad) clamp(2.5rem, 7vw, 4rem);
  text-align: center;
  position: relative;
  z-index: 2;
}

.kicker {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue-deep);
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1.1;
  color: var(--slate);
  margin-bottom: 1.2rem;
}
.hero h1 .blue { color: var(--blue-deep); }

.lede {
  max-width: 38rem;
  margin: 0 auto 2rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--slate-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.4rem;
}
.cta {
  display: inline-block;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.9rem 1.8rem;
  border: 2px solid var(--blue-deep);
  background: var(--blue-deep);
  color: var(--white);
  border-radius: 999px;
}
.cta:hover { background: #0D3A80; border-color: #0D3A80; }
.cta.ghost { background: transparent; color: var(--blue-deep); }
.cta.ghost:hover { background: rgba(18, 88, 166, 0.08); }

/* signature move: trust row as friendly pills */
.trust-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}
.pill {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

.hero-figure {
  max-width: 30rem;
  margin: 0 auto;
  padding: 0 var(--pad) clamp(2rem, 6vw, 3.5rem);
  position: relative;
  z-index: 1;
}
.hero-figure svg { width: 100%; height: auto; display: block; }

/* ------------------------------------------------------------------ bands */

.band { background: var(--white); }
.band.alt { background: var(--sky); }

section { scroll-margin-top: 5rem; }
.section-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--pad);
}
.section-inner > .kicker,
.section-inner > h2 { text-align: center; }
.section-note {
  max-width: 40rem;
  margin: 0 auto 2.4rem;
  color: var(--slate-soft);
  text-align: center;
}

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  color: var(--slate);
  margin: 0.4rem 0 1.2rem;
}

/* ------------------------------------------------ signature move: service cards */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}
.service-card {
  background: var(--sky);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  text-align: left;
}
.service-icon {
  display: inline-flex;
  margin-bottom: 1rem;
}
.service-icon svg { width: 48px; height: 48px; display: block; }
.service-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--slate);
  margin-bottom: 0.5rem;
}
.service-card p { color: var(--slate-soft); font-size: 0.95rem; }
.section-foot {
  margin-top: 1.6rem;
  font-size: 0.88rem;
  color: var(--slate-soft);
  text-align: center;
}

/* ------------------------------------------------ signature move: 3-step strip */

.step-strip {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
  counter-reset: step;
}
.step { text-align: center; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--blue-deep);
  color: var(--white);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.step h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--slate);
  margin-bottom: 0.5rem;
}
.step p {
  color: var(--slate-soft);
  font-size: 0.95rem;
  max-width: 20rem;
  margin: 0 auto;
}

/* ------------------------------------------------------------------- split */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  text-align: left;
}
.split .kicker, .split h2 { text-align: left; }
.split p { color: var(--slate-soft); max-width: 42rem; margin-bottom: 1rem; }
.split p:last-of-type { margin-bottom: 0; }
.split strong { color: var(--slate); }

.meista-figure { display: flex; justify-content: center; }
.meista-figure svg { width: 100%; max-width: 300px; height: auto; }

/* -------------------------------------------------------------- photo note */

.photo-note {
  margin-top: 1.8rem;
  max-width: 46rem;
  border-left: 3px solid var(--blue);
  background: var(--sky);
  padding: 0.9rem 1.2rem;
  border-radius: 0 0.6rem 0.6rem 0;
  font-size: 0.95rem;
  color: var(--slate-soft);
}
.photo-note strong { color: var(--slate); }

/* -------------------------------------- signature move: rounded CTA band */

.cta-band {
  background: var(--blue-deep);
  color: var(--white);
  margin: 0 var(--pad);
  border-radius: 2rem;
  max-width: 72rem;
  margin-inline: auto;
}
.cta-inner {
  text-align: center;
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  max-width: 72rem;
}
.cta-kicker {
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  color: var(--white);
}
.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin-bottom: 1.8rem;
}
.cta-big {
  background: var(--white);
  color: var(--blue-deep);
  border-color: var(--white);
  font-size: 1.1rem;
  padding: 1rem 2.2rem;
}
.cta-big:hover { background: var(--sky); border-color: var(--sky); color: var(--blue-deep); }

/* ----------------------------------------------------------- yhteystiedot */

.visit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 1rem;
}
.visit-block {
  background: var(--sky);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem 1.5rem;
  text-align: left;
}
.visit-block h3 {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 0.6rem;
}
.visit-block p { font-size: 0.98rem; color: var(--slate); }
.visit-block .small { font-size: 0.88rem; color: var(--slate-soft); margin-top: 0.4rem; }

/* --------------------------------------------------------------- footer */

.footer { border-top: 1px solid var(--line); background: var(--white); }
.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem 1.6rem;
  margin: 2.4rem 0;
}
.footer-cell { min-width: 0; }
.footer-label {
  display: block;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-soft);
  margin-bottom: 0.2rem;
}
.footer-value { font-size: 0.95rem; color: var(--slate); overflow-wrap: break-word; }
.footer-meta {
  padding-bottom: 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--slate-soft);
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}

/* ------------------------------------------------------------ animation */

@media (prefers-reduced-motion: no-preference) {
  .cta, .nav-tabs a, .nav-contact, a { transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 60rem) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split .meista-figure { order: -1; }
  .visit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-strip { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}

@media (max-width: 44rem) {
  .nav-mark span { display: none; }
  .nav-tabs { gap: 1rem; }
  .visit-grid { grid-template-columns: minmax(0, 1fr); }
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { margin: 0 1rem; border-radius: 1.5rem; }
}

@media (max-width: 26rem) {
  .hero-actions .cta { width: 100%; text-align: center; }
}
