/* =====================================================================
   Nerot.fi — stylesheet
   Vanilla CSS, no build step. Design tokens up top, then components.
   Palette & type mirror the live site (Kadence): Figtree + brand blue.
   ===================================================================== */

/* Self-hosted Figtree (variable) — matches live, no external font CDN */
@font-face {
  font-family: 'Figtree'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/assets/fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/assets/fonts/figtree-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;
}

/* Self-hosted Roboto Condensed (variable) — live uses it for the hero title & the big "Nerot.fi" watermark */
@font-face {
  font-family: 'Roboto Condensed'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/assets/fonts/robotocondensed-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto Condensed'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/assets/fonts/robotocondensed-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 {
  /* Brand (from live palette) */
  --brand:        #1b75ae;   /* primary action / links */
  --brand-bright: #2ab2e5;   /* accent, the logo "N" */
  --brand-2:      #2a9ce5;   /* secondary blue */
  --brand-dark:   #145d8a;   /* hover / active */
  --brand-tint:   #eaf6fc;   /* pale blue wash */

  /* Ink & surfaces (grey ramp from live) */
  --ink:    #222222;
  --ink-2:  #3b3b3b;
  --muted:  #515151;
  --line:   #e1e1e1;
  --bg:     #ffffff;
  --bg-alt: #f7f7f7;

  /* Shape & depth */
  --radius:    12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(34, 34, 34, .05), 0 3px 10px rgba(34, 34, 34, .05);
  --shadow:    0 1px 2px rgba(34, 34, 34, .05), 0 10px 30px rgba(34, 34, 34, .08);

  --container: 1180px;
  --header-h:  124px;

  --font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 18px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
/* Live (Kadence) heading weights: h1 700, h2 normal(400), h3 600 */
h1 { line-height: 1.2; font-weight: 700; color: var(--ink); }
h2, h3, h4 { line-height: 1.3; font-weight: 600; color: var(--ink); }
ul, ol { list-style: none; padding: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

/* Grid/flex children may not shrink below content by default — allow shrink to prevent overflow */
.hero-inner > *, .about-why > *, .digipakki-row > *, .card-grid > *, .article-grid > *,
.quote-grid > *, .promo-grid > *, .benefit-grid > *, .steps > * { min-width: 0; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .8em 1.4em; border-radius: 8px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .95em 1.7em; font-size: 1.08rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; }
.btn-arrow { display: none; }

/* =====================================================================
   HEADER + NAV
   ===================================================================== */
.site-header {
  position: relative; z-index: 50;
  background: #2ab2e5;
}
.site-header .container { position: relative; }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); padding-top: 30px; }
.brand-logo { flex: none; }
.brand-logo img { width: 200px; height: auto; }

/* "oma.nerot.fi" tab, top-right */
.header-pill {
  position: absolute; top: 0; right: 20px; z-index: 3;
  background: #fff; color: var(--ink); font-weight: 600; font-size: .92rem;
  padding: 9px 20px; border-radius: 0 0 14px 14px; box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}
.header-pill:hover { color: var(--brand); }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px;
  background: #fff; border-radius: 2px;
}

.primary-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  color: #fff; font-weight: 400; font-size: 1.125rem;
  padding: 10px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer;
  font-family: inherit; text-decoration: none;
}
.nav-link:hover, .nav-item:hover .nav-link { color: #fff; background: rgba(255, 255, 255, .18); }
.nav-caret { width: 12px; height: 12px; opacity: .85; transition: transform .18s ease; }
.nav-item:hover .nav-caret { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 250px;
}
/* Oikean laidan valikot aukeavat oikealle tasattuina, etteivät piilotetutkaan
   dropdownit levennä sivua kapeilla desktop-leveyksillä (1024–1500px) */
.nav-item:nth-last-child(-n+2) .dropdown { left: auto; right: 0; }
.dropdown {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown,
.dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.dropdown a:hover { background: var(--brand-tint); color: var(--brand); }

.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: 10px; }
.nav-login {
  color: #fff; font-weight: 600; font-size: .97rem;
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .7);
}
.nav-login:hover { color: var(--brand); background: #fff; border-color: #fff; }

/* Burger (mobile only) */
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; margin-left: auto; }
.burger span { display: block; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  background: linear-gradient(180deg, #fbfeff 0%, var(--bg) 100%);
  padding: clamp(44px, 6vw, 76px) 0 clamp(44px, 6vw, 72px);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 410px) 1fr; gap: clamp(20px, 3vw, 40px); align-items: center; }
.hero-title { font-family: 'Roboto Condensed', 'Figtree', sans-serif; font-size: clamp(2.5rem, 1.456rem + 3.26vw, 4rem); font-weight: 800; letter-spacing: 0; line-height: 1; color: var(--ink-2); text-shadow: 1px 1px 1px rgba(255, 255, 255, .9); }
.hero-points { margin-top: 20px; display: grid; gap: 3px; }
.hero-points li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: clamp(1rem, 1.4vw, 1.12rem); }
.hero-points li::before {
  content: ""; position: absolute; left: 4px; top: .6em; width: 6px; height: 6px;
  background: var(--ink-2); border-radius: 50%;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-media img { width: 100%; height: auto; }

/* Etusivun hero: maaliruiskekuva rivin taustana (kuten live), yksi palsta */
.hero-home {
  background: #fefefe url('/assets/img/hero-background.jpg') 100% 50% / 60% auto no-repeat;
  padding: 8rem 0 6.5rem;
}
.hero-home .hero-text { padding-left: 16px; max-width: 560px; }
.hero-home .hero-title { margin-bottom: 1rem; }
.hero-home .hero-points { list-style: disc; padding-left: 1.5rem; display: block; margin-top: 0; }
.hero-home .hero-points li { padding-left: 0; font-size: 1.125rem; line-height: 1.5; color: var(--ink-2); }
.hero-home .hero-points li::before { display: none; }
.hero-home .hero-actions { margin-top: 30px; }
.hero-home .hero-actions .btn { font-size: 1.25rem; font-weight: 400; letter-spacing: .5px; padding: 13px 15px; border: 2px solid var(--brand); border-radius: 5px; }
.hero-mobile-note { display: none; }

/* Kategoriasivun hero: kompaktimpi, täysleveä nappi (live-parity) */
.page-hero { padding: 30px 0 34px; }
.page-hero .breadcrumb { margin-bottom: 52px; }
.page-hero .hero-actions .btn { width: 100%; justify-content: center; padding: 19px 24px; font-size: 1.125rem; }

/* =====================================================================
   SECTIONS (shared)
   ===================================================================== */
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section-tight { padding-top: clamp(8px, 1.5vw, 20px); }
.section-alt { background: var(--bg-alt); }
.section-header { margin: 0 0 clamp(28px, 4vw, 44px); }
.section-header--tight { margin-bottom: 20px; }
.section-eyebrow { font-weight: 700; font-size: .82rem; letter-spacing: .07em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.section-title { font-size: clamp(1.6rem, 2.8vw, 2rem); font-weight: 400; letter-spacing: 0; line-height: 1.3; color: var(--ink-2); }
.section-lead { color: var(--muted); font-size: 1.125rem; line-height: 1.6; margin-top: 14px; max-width: 900px; }
.section-lead a { text-decoration: underline; }

/* ----- Steps band (näin se toimii) ----- */
.steps-band { background: linear-gradient(rgba(42, 178, 229, .75), rgba(42, 178, 229, .75)), url('/assets/img/backgound-image.webp') center center / cover no-repeat fixed; color: #fff; padding: 26px 0 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 44px); text-align: center; }
.step h3 { color: #fff; font-size: 1.12rem; font-weight: 600; margin-bottom: 8px; }
.step p { color: rgba(255, 255, 255, .92); font-size: .98rem; max-width: 340px; margin: 0 auto; }
.steps-note { margin-top: clamp(24px, 3.5vw, 36px); background: rgba(255, 255, 255, .12); }
.steps-note .container { padding-top: 8px; padding-bottom: 8px; text-align: center; color: #fff; font-weight: 500; font-size: .98rem; }

/* ----- Service cards (suosituimmat palvelut / kategoriat) ----- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-bright); }
.service-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--brand-tint); }
.service-card h3 { font-size: 1.15rem; font-weight: 600; color: var(--ink); margin: 20px 22px 8px; }
.service-card p { color: var(--muted); font-size: .97rem; margin: 0 22px 22px; }

.section-cta { text-align: center; margin-top: 36px; }

/* ----- About + Why (2-col) ----- */
.about-why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.about-col h2, .why-col h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 400; letter-spacing: 0; line-height: 1.3; color: var(--ink-2); }
.about-col p { color: var(--muted); margin-top: 16px; font-size: 1.04rem; }
.why-col h2 { padding-bottom: 16px; border-bottom: 1px solid var(--line); }

/* ----- Benefits (miksi Nerot.fi) ----- */
.benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; margin-top: 24px; }
.benefit h3 { font-size: 1.08rem; margin-bottom: 8px; }
.benefit p { color: var(--muted); font-size: .95rem; }

/* ----- Stats band -----
   Live: sininen bändi (~276px) watermarkilla; valkoinen tilastokaista
   (ei rakoja, ohuet pystyviivat) alkaa bändin sisältä ja ylittää sen
   alareunan ~140px. */
.stats-band { position: relative; padding-top: 209px; }
.stats-veil { position: absolute; top: 0; left: 0; right: 0; height: 276px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(rgba(42, 178, 229, .75), rgba(42, 178, 229, .75)), url('/assets/img/backgound-image.webp') center center / cover no-repeat fixed; }
.stats-logo { width: 1024px; max-width: 92%; height: auto; flex: none; pointer-events: none; user-select: none; }
.stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: #fff; border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .05); text-align: center; }
.stat { padding: 24px 20px 38px; border-left: 1px solid #ececec; }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 700; color: #2a9ce5; letter-spacing: -.01em; }
.stat span { color: var(--muted); font-weight: 500; font-size: 1.05rem; margin-top: 4px; }

/* ----- Testimonials ----- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote-card { background: #fff; border-radius: 16px; padding: 34px 30px; box-shadow: var(--shadow); text-align: center; }
.stars { color: #f5b301; letter-spacing: 1px; margin-bottom: 16px; font-size: 1.3rem; }
.quote-card blockquote { color: var(--ink-2); font-size: 1.02rem; line-height: 1.55; }
.quote-card cite { position: relative; display: block; margin-top: 24px; padding-left: 48px; text-align: left; font-style: normal; font-weight: 700; color: var(--ink); font-size: 1rem; }
.quote-card cite::before { content: "\201C"; position: absolute; left: 4px; top: -2px; font-family: Georgia, "Times New Roman", serif; font-size: 3.2rem; line-height: 1; color: #c9d2d8; }
.quote-card cite span { display: block; font-weight: 500; color: var(--muted); font-size: .9rem; margin-top: 3px; }

/* Big pull quote (blue band) */
.pullquote-band { background: linear-gradient(rgba(42, 178, 229, .75), rgba(42, 178, 229, .75)), url('/assets/img/backgound-image.webp') center center / cover no-repeat fixed; color: #fff; text-align: center; padding: clamp(52px, 6.6vw, 84px) 0 clamp(48px, 6vw, 76px); }
/* Parallax janky on mobile — pin to scroll */
@media (max-width: 1024px) { .steps-band, .stats-veil, .pullquote-band { background-attachment: scroll; } }
.pullquote-band blockquote { max-width: 1160px; margin: 0 auto; font-size: clamp(1.1rem, 1.65vw, 1.32rem); font-style: italic; font-weight: 500; line-height: 1.5; }
.pullquote-band cite { display: block; margin-top: 20px; font-style: normal; font-weight: 700; }

/* ----- Link columns (kilpailuta eri alojen tekijät) ----- */
.link-columns { columns: 4; column-gap: 28px; }
.link-columns li { break-inside: avoid; }
.link-columns a { display: block; color: #3b3b3b; font-size: 1.125rem; line-height: 2; letter-spacing: -.02em; }
.link-columns a:hover { color: var(--brand); }

/* ----- Digipakki row (2 cards + hintalaskuri cta) ----- */
.digipakki-row { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(28px, 4vw, 48px); align-items: center; }
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.promo-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.promo-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--brand-tint); }
.promo-card h3 { font-size: 1.2rem; margin: 20px 22px 8px; }
.promo-card p { color: var(--muted); margin: 0 22px 22px; font-size: .96rem; }
.calc-cta h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 500; letter-spacing: 0; margin-bottom: 22px; }

/* ----- Article cards ----- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: none; transition: transform .16s ease, box-shadow .16s ease; }
.article-card:hover { transform: translateY(-3px); box-shadow: 0 20px 30px -30px rgba(0, 0, 0, .55); }
.article-thumb { aspect-ratio: 16 / 9; background: var(--brand-tint); object-fit: cover; width: 100%; }
.article-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.article-card h3 { font-size: 1.12rem; line-height: 1.35; font-weight: 500; }
.article-card h3 a { color: var(--ink); }
.article-card h3 a:hover { color: var(--brand); }
.article-excerpt { color: var(--muted); font-size: .95rem; margin-top: 10px; }
.article-more { margin-top: auto; padding-top: 16px; font-weight: 600; font-size: .92rem; color: var(--brand); }

/* Litteä artikkeliruudukko (palvelualasivut: ei kortin kehystä) */
.article-grid--flat { gap: 32px; }
.article-grid--flat .article-card { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.article-grid--flat .article-card:hover { transform: none; box-shadow: none; }
.article-grid--flat .article-thumb { border-radius: 0; }
.article-grid--flat .article-body { padding: 18px 0 0; }
.article-grid--flat .article-card h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
.article-grid--flat .article-excerpt { margin-top: 14px; font-size: 1rem; line-height: 1.75; }

/* =====================================================================
   CATEGORY PAGE (/kotisivut/ ym.)
   ===================================================================== */
.breadcrumb { font-size: .95rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); text-decoration: underline; }
.breadcrumb a:hover { color: var(--brand); }
.page-title { font-size: clamp(2.1rem, 4vw, 2.7rem); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); margin: 0; }
.hero-lead { margin-top: 18px; color: var(--ink-2); font-size: 1.06rem; line-height: 1.7; }

/* Alakategorioiden pillerit */
.pill-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: clamp(28px, 4vw, 40px); }
.pill-link { border: 1px solid var(--brand); color: var(--brand); border-radius: 8px; padding: 12px 20px; font-size: 1rem; font-weight: 500; transition: background .16s ease, color .16s ease; }
.pill-link:hover { background: var(--brand); color: #fff; }

/* Teksti + yksittäinen arvostelu (2 palstaa) */
.text-media { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 3vw, 44px); align-items: start; }
.text-media--wide { grid-template-columns: 2.66fr 1fr; gap: 80px; }
.text-media-body > * + * { margin-top: 18px; }
.text-media-body p { color: var(--ink-2); font-size: 1.125rem; line-height: 1.75; }
.text-media-body a { color: var(--brand); text-decoration: underline; }

/* Tarjouspyyntölista (template) */
.joblist { border-top: 1px solid var(--line); padding-top: 40px; }
.job-card { padding: 38px 0; border-bottom: 1px solid var(--line); }
.job-card:first-child { padding-top: 0; }
.job-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.job-title { font-size: clamp(1.2rem, 1.75vw, 1.35rem); font-weight: 500; color: var(--ink); line-height: 1.3; margin: 0; }
.job-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.job-tag { background: var(--brand); color: #fff; font-size: .8rem; font-weight: 500; padding: 4px 12px; border-radius: 6px; line-height: 1.5; }
.job-excerpt { color: var(--muted); font-size: 1rem; line-height: 1.7; margin-top: 14px; }

/* Sivutus (keskitetty, reunaton – aktiivinen sininen laatikko) */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 26px; margin-top: clamp(32px, 5vw, 56px); }
.pager-page, .pager-next { min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--ink-2); font-size: 1rem; }
.pager-page:hover, .pager-next:hover { color: var(--brand); }
.pager-page.is-active { background: var(--brand); color: #fff; }
.pager-gap { padding: 0 6px; color: var(--muted); }
.pager-next { margin-left: 8px; }

/* =====================================================================
   SERVICE SUBPAGE (/kotisivut/kotisivut-yritykselle/ ym. palvelusivut)
   ===================================================================== */
/* Täysleveä leipätekstipalsta */
.prose > * + * { margin-top: 18px; }
.prose p { color: var(--ink-2); font-size: 1.06rem; line-height: 1.75; }
.prose a { color: var(--brand); text-decoration: underline; }

/* Kevyt osioerotin sektioiden väliin (kt-divider) */
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Keskitetty nappirivi */
.btn-row { text-align: center; margin-top: clamp(48px, 6vw, 75px); }
.btn-xl { padding: 18px 38px; font-size: 1.25rem; }

/* Hintapaketit */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: clamp(28px, 4vw, 44px); }
.pkg-card { background: var(--bg-alt); color: #000; padding: 2.25rem 1.5rem; display: flex; flex-direction: column; }
.pkg-title { font-size: 18px; font-weight: 700; color: #000; line-height: 1.4; margin: 0 0 14px; }
.pkg-card p { font-size: 16px; line-height: 1.6; margin: 0 0 18px; }
.pkg-card hr { border: 0; border-top: 1px solid rgba(0, 0, 0, .35); margin: 4px 0 18px; }
.pkg-card ul { list-style: disc; font-size: 14px; line-height: 1.5; padding-left: 1.3em; margin: 0 0 26px; display: grid; row-gap: 7px; }
.pkg-price { display: block; margin-top: auto; text-align: center; background: var(--brand); color: #fff; font-size: 1rem; font-weight: 500; padding: 11px 16px; border-radius: 4px; }

/* UKK-haitari (natiivi <details>) */
.faq { display: grid; row-gap: 32px; }
.faq-item { border-top: 1px solid var(--ink); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 2rem 44px 0 0; font-size: 1.25rem; font-weight: 400; color: var(--ink); line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 6px; top: calc(2rem + .35em);
  width: 9px; height: 9px; border-right: 2px solid #4a5568; border-bottom: 2px solid #4a5568;
  transform: rotate(45deg); transition: transform .16s ease;
}
.faq-item[open] summary::after { transform: rotate(225deg); top: calc(2rem + .55em); }
.faq-answer { padding: 1.5rem 1.5rem 0 0; }
.faq-answer p { color: var(--ink-2); line-height: 1.7; }

/* =====================================================================
   CTA BAND (light)
   ===================================================================== */
.cta-band { background: var(--bg-alt); text-align: center; padding: clamp(48px, 7vw, 80px) 0; }
.cta-band h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 700; letter-spacing: -.01em; margin-bottom: 26px; color: var(--ink-2); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: #1b75ae; color: #fff; padding: clamp(48px, 6vw, 75px) 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-logo img { width: 175px; height: auto; }
.footer-brand .footer-copy { margin-top: 20px; color: #fff; font-size: 1.125rem; }
.footer-col h2 { font-size: 1.125rem; text-transform: uppercase; letter-spacing: 0; color: #fff; margin-bottom: 22px; font-weight: 600; }
.footer-col ul { display: grid; gap: 8px; }
.footer-col li { line-height: 1.5; }
.footer-col a { color: #fff; font-size: 1.125rem; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 44px; border-top: 1px solid rgba(255, 255, 255, .23); padding: 22px 0 26px; }
.footer-bottom p { color: #fff; font-size: 1.125rem; }
.footer-bottom a { color: #fff; text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* =====================================================================
   404
   ===================================================================== */
.error-section { text-align: center; }
.error-code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; color: var(--brand-tint); line-height: 1; letter-spacing: -.04em; }
.error-title { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-top: 8px; }
.error-lead { color: var(--muted); font-size: 1.1rem; max-width: 560px; margin: 16px auto 0; }
.error-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
/* Breakpointit peilaavat liveä (Kadence): tablet ≤1024px, mobiili ≤767px.
   Live pitää korttiruudukot 3-palstaisina tabletilla ja pinoaa vasta ≤767;
   tilastokaista pysyy 3 palstassa KAIKILLA leveyksillä; steps-bändistä näkyy
   mobiilissa vain note-rivi; WP-hintapaketit pinoutuvat 781px:ssä (WP core). */
@media (max-width: 1024px) {
  /* Mobiilinavi (live vaihtaa hampurilaiseen ≤1024) */
  .burger { display: block; }
  .header-pill { display: none; }
  .header-inner { height: 72px; padding-top: 0; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 20px 22px; margin: 0; max-height: calc(100vh - 72px); overflow-y: auto;
    box-shadow: 0 20px 30px rgba(34, 34, 34, .1);
    transform: translateY(-120%); transition: transform .24s ease; visibility: hidden;
  }
  .primary-nav.open { transform: translateY(0); visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 4px; border-radius: 0; font-size: 1.05rem; color: var(--ink-2); }
  .nav-link:hover, .nav-item:hover .nav-link { color: var(--brand); background: transparent; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; padding: 0 0 8px 12px; min-width: 0;
    display: none;
  }
  .dropdown.open { display: block; }
  .nav-item:hover .dropdown:not(.open) { opacity: 0; visibility: hidden; } /* no hover-open on touch */
  .nav-actions { flex-direction: column; align-items: stretch; gap: 10px; margin: 16px 0 0; }
  .nav-login { text-align: center; color: var(--brand); border-color: var(--line); }

  /* Kaksipalstaiset tekstirivit pinoon jo tabletilla (live: kt-tab-layout-row) */
  .about-why, .digipakki-row, .text-media { grid-template-columns: 1fr; }
  .link-columns { columns: 3; }
  .hero-home { padding: 3rem 0; }
}

/* WP core -palstat (hintapaketit) pinoutuvat livessä 781px:ssä */
@media (max-width: 781px) {
  .pkg-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  /* Steps-bändistä näkyy vain note-rivi (live: kb-v-sm-hidden) */
  .steps { display: none; }
  .steps-band { padding-top: 0; }

  /* Ruudukot yhteen palstaan */
  .card-grid, .article-grid, .quote-grid, .benefit-grid, .promo-grid { grid-template-columns: 1fr; }
  .link-columns { columns: 2; }

  /* Tilastokaista pysyy 3 palstassa – skaalataan pienemmäksi */
  .stats-band { padding-top: 120px; }
  .stats-veil { height: 170px; }
  .stats-logo { width: 94%; }
  .stat { padding: 18px 8px 22px; }
  .stat span { font-size: .9rem; }

  /* Kategoriasivun hero pinoon (live: kt-mobile-layout-row; teksti ensin) */
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { max-width: 460px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }

  /* Etusivun hero mobiilissa: maaliräiske ulomman rivin taustana (hero-bg.webp
     + 30 % valkoveili), otsikko ja teksti keskitettyinä, bulletit piiloon,
     napit vierekkäin keskitettyinä (live) */
  .hero-home {
    background:
      linear-gradient(rgba(255, 255, 255, .3), rgba(255, 255, 255, .3)),
      url('/assets/img/hero-bg.webp') 0 0 / auto 180% no-repeat,
      #fefefe;
    padding: 3rem 0 4.5rem;
  }
  .hero-home .hero-text { padding-left: 0; max-width: none; }
  .hero-home .hero-title { font-size: clamp(2.75rem, 0.489rem + 7.065vw, 6rem); text-align: center; text-shadow: 2px 2px 2px #fff; }
  .hero-home .hero-points { display: none; }
  .hero-mobile-note { display: block; text-align: center; font-size: 1.3rem; font-weight: 400; line-height: 1.5; margin-top: 18px; color: var(--ink-2); }
  .hero-mobile-note strong { font-weight: 700; }
  .hero-home .hero-actions { flex-direction: row; justify-content: center; align-items: center; margin-top: 34px; }
  .hero-home .hero-actions .btn { width: auto; }

  /* Footer yhteen palstaan */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding-top: 32px; }
  .footer-bottom { margin-top: 30px; }
}

