/* ==========================================================================
   siivoustimangi — theme: clinic-air (professional-health group, skeleton
   S2 split panel) — adapted from its usual fysioterapia/klinikka fit to a
   siivouspalvelu: same "calm, competent, hygienic — you're in good hands"
   mood reads directly onto a cleaning company.
   Palette: white #FFFFFF · teal #0E7C7B (5.0:1 on white) · sky panel
            #EAF3F6 · warm gray text #37474F (9.6:1) / #55636B (6.2:1) ·
            soft coral accent #E58F7F — decorative only (2.5:1, below AA),
            AA-safe coral text variant --coral-text #B8503D (4.9:1)
   Type:    Sora (display) / Inter (body), both self-hosted variable woff2
   ========================================================================== */

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("assets/fonts/sora-var-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-var-latin.woff2") format("woff2");
}

:root {
  --white: #FFFFFF;
  --teal: #0E7C7B;         /* 5.0:1 on white — AA for normal text */
  --teal-deep: #0A5F5E;
  --sky: #EAF3F6;
  --sky-line: #D3E5E9;
  --ink: #37474F;          /* 9.6:1 on white — AAA */
  --ink-soft: #55636B;     /* 6.2:1 on white — AA */
  --coral: #E58F7F;        /* decorative only, non-text (2.5:1) */
  --coral-text: #B8503D;   /* AA-safe coral for text/labels (4.9:1) */
  --rule: rgba(55, 71, 79, 0.14);
  --display: "Sora", "Arial", sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --measure: 62ch;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --radius: 24px;
}

* { 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(--ink);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--teal); color: var(--white); }

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }

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

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

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

.draft-banner {
  display: block;
  background: var(--ink);
  color: var(--white);
  font-family: var(--body);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  padding: 0.55rem var(--pad);
}
.draft-banner strong { color: #FFD8CC; font-weight: 600; }
.draft-banner:hover { color: var(--white); background: #2A363C; }

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--sky-line);
}
.nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
}
.nav-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  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 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink-soft);
  white-space: nowrap;
}
.nav-tabs a:hover { color: var(--teal); }
.nav-cta {
  display: flex;
  align-items: center;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--white);
  background: var(--teal);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--teal-deep); color: var(--white); }

/* ------------------------------------------------------------ hero (S2) */

.hero { background: var(--sky); border-bottom: 1px solid var(--sky-line); }
.hero-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) var(--pad) clamp(2.5rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.kicker {
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.2rem;
}
.hero h1 .teal { color: var(--teal); }

.lede {
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 1.6rem;
}

.hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}
.hero-facts a { color: inherit; }
.hero-facts a:hover { color: var(--teal); }
.hero-facts li::before { content: "● "; color: var(--teal); font-size: 0.6em; vertical-align: middle; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.cta {
  display: inline-block;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border: 1.5px solid var(--teal);
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}
.cta:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); }
.cta.ghost { background: transparent; color: var(--teal); }
.cta.ghost:hover { background: var(--teal); color: var(--white); }

/* hero art: rounded 24px image mask */
.hero-art { position: relative; }
.hero-art svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -18px rgba(14, 124, 123, 0.35);
}
.art-caption {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: right;
}

/* --------------------------------- signature move: credential strip */

.cred-strip { background: var(--white); border-bottom: 1px solid var(--rule); }
.cred-strip-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.6rem var(--pad);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2.5rem;
}
.cred { text-align: center; }
.cred-value {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--teal);
  line-height: 1.2;
}
.cred-label {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}

/* ------------------------------------------------------ generic section */

section { scroll-margin-top: 5rem; }
.section-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--pad);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split-head { position: sticky; top: 5.5rem; }

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0.4rem 0 1rem;
}
.section-note { color: var(--ink-soft); max-width: 32rem; }

/* -------------------------------- signature move: services chooser grid */

.chooser-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2.4rem;
}
.chooser-card {
  background: var(--sky);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.chooser-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(14, 124, 123, 0.4); }
.chooser-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}
.chooser-icon svg { width: 100%; height: 100%; }
.chooser-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.chooser-card p { font-size: 0.94rem; color: var(--ink-soft); }

.note-box {
  margin-top: 2rem;
  max-width: 50rem;
  border-left: 3px solid var(--coral);
  background: var(--sky);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.3rem;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.note-box strong { color: var(--ink); }

/* ------------------------------------------------------------- meista */

.meista { background: var(--sky); }
.meista-copy p { max-width: var(--measure); margin-bottom: 1rem; }
.meista-copy p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------- gallery grid */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 2.2rem;
}
.gcard {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sky);
}
.gph svg { display: block; width: 100%; height: auto; }
.gcard figcaption {
  padding: 0.8rem 1.1rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

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

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

/* --------------------------------- footer: quiet fact block */

.footer { border-top: 1px solid var(--rule); background: var(--white); }
.title-block {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.tb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 2.2rem 0;
}
.tb-cell {
  background: var(--white);
  padding: 0.9rem 1rem 1.05rem;
  min-width: 0;
}
.tb-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.2rem;
}
.tb-value { font-size: 0.92rem; overflow-wrap: break-word; }
.tb-value a { color: var(--teal); }
.footer-meta {
  padding-bottom: 2rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .chooser-card:hover { transform: none; }
}

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

@media (max-width: 60rem) {
  .chooser-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split.flip { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .split-head { position: static; }
}

@media (max-width: 44rem) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .cred-strip-inner { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; padding: 1.4rem var(--pad); }
  .nav-mark span { display: none; }
  .nav-tabs { gap: 1rem; }
  .visit-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .tb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 26rem) {
  .chooser-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .cta { width: 100%; text-align: center; }
  .nav-tabs { display: none; }
}
