/*
Theme Name: Kuokkala Parturi & Kampaamo
Description: Premium editorial salon - Kuokkalan Parturi & Kampaamo. Very dark warm background, champagne-beige accents, high-contrast serif.
Version: 1.2.0
Author: Nettisivut24h
Text Domain: kuokkala
*/

/* =========================================================
   TOKENS — centralized design system
   ========================================================= */
:root {
  /* surfaces — very dark warm brown-black */
  --bg:          #0B0907;
  --bg-secondary: #100C09;
  --surface:     #15100D;
  --surface-elevated: #1C1511;
  --surface-hover:#221A15;

  /* text — warm ivory */
  --text-primary:#F1ECE3;
  --text-strong: #FFFFFF;
  --text-secondary:#C9C0B0;
  --text-muted: #8F8574;
  --text-faint: #6E6557;

  /* accent — champagne / muted gold */
  --accent:      #C9A66B;
  --accent-2:    #D8BD8C;
  --accent-bg:   rgba(201,166,107,0.10);
  --accent-bg-strong: rgba(201,166,107,0.18);

  /* hero gold / black / silver brand tonal set */
  --hero-gold:   #CBAA73;   /* brushed champagne gold — warm, muted, no yellow */
  --hero-silver: #A7A6A1;   /* refined warm silver — not chrome, clearly distinct */
  --hero-black:  #16110C;   /* espresso-black ampersand */

  /* borders — subtle warm */
  --border:      rgba(201,166,107,0.16);
  --border-strong: rgba(201,166,107,0.34);
  --border-soft: rgba(201,166,107,0.09);

  /* semantic */
  --danger:     #C97B6B;
  --danger-bg:  rgba(201,123,107,0.12);
  --ok:         #A8BF9A;
  --warm:       #C9A66B;

  /* typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-hero:   'Gloock', Georgia, serif;
  --font-body:   'Hanken Grotesk', system-ui, sans-serif;
  --font-ui:     'Space Grotesk', system-ui, sans-serif;

  /* geometry — sharp, architectural (0–4px) */
  --radius:      2px;
  --radius-sm:   2px;
  --radius-lg:   4px;

  /* shadow — almost none */
  --shadow-panel: 0 1px 0 rgba(0,0,0,0.4), 0 18px 50px -20px rgba(0,0,0,0.6);

  /* spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 28px;
  --space-xl: 48px;
  --space-xxl: 84px;

  /* layout */
  --container-width: 1180px;
  --container-narrow: 860px;
  --header-h: 76px;

  --track: 0.22em;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: #fff; }

.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.container.narrow { max-width: var(--container-narrow); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* =========================================================
   TYPE UTILITIES
   ========================================================= */
.eyebrow, .tracked {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--accent);
}
.tracked-muted { font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.scrolled,
body.menu-open .site-header {
  background: rgba(11,9,7,0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  max-width: var(--container-width); margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--text-primary); }
.brand-logo { height: 64px; width: auto; object-fit: contain; display: block; }
.brand-name { font-family: var(--font-display); font-weight: 500; font-size: 19px; letter-spacing: 0.01em; line-height: 1.05; }
.brand-name small { display: block; font-family: var(--font-ui); font-size: 8.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-muted); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-family: var(--font-ui); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--text-secondary);
  position: relative; padding: 6px 0;
}
.nav a:hover { color: var(--text-primary); }
.nav a[aria-current="page"] { color: var(--accent-2); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--accent);
}

.header-actions { display: flex; align-items: center; gap: 14px; }

/* burger — warm beige strokes */
.burger {
  display: none;
  width: 44px; height: 44px; padding: 0;
  background: none; border: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.burger span { display: block; width: 22px; height: 1.6px; background: var(--accent); transition: transform 0.25s ease, opacity 0.2s ease; }
body.menu-open .burger span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }

.m-nav { display: none; }

/* =========================================================
   BUTTONS — rectangular, restrained
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 0 24px; height: 48px;
  font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.1s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; cursor: default; }

.btn-primary { background: var(--accent); color: #120C06; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: #120C06; }

.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }

.btn-ghost-light { background: transparent; color: var(--text-secondary); border-color: var(--border); }
.btn-ghost-light:hover { color: var(--text-primary); border-color: var(--border-strong); }

.btn-dark { background: var(--surface); color: var(--text-primary); border-color: var(--border); }
.btn-dark:hover { background: var(--surface-hover); border-color: var(--border-strong); }

.btn-block { width: 100%; }
.btn-lg { height: 54px; padding: 0 32px; font-size: 13px; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 11px; }

/* =========================================================
   HERO — full-bleed editorial campaign (image under everything)
   ========================================================= */
.hero {
  position: relative;
  min-height: clamp(700px, 100svh, 1150px);
  display: flex;
  align-items: stretch;
  margin-top: calc(-1 * var(--header-h));   /* image slides up under the transparent header */
  padding-top: var(--header-h);
  overflow: hidden;
}

/* --- the photograph is the whole first view (mobile full-bleed,
       editorial right pane on desktop) --- */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg picture, .hero-bg-img { position: absolute; width: 100%; height: 100%; }
.hero-bg-img {
  object-fit: cover;
  object-position: 50% 18%;
}
@media (min-width: 1025px) {
  /* portrait source in a near-portrait right pane → minimal crop, no upscale */
  .hero-bg { inset: 0 0 0 auto; width: 58%; }
  .hero-bg-img { object-position: 52% 30%; }
  .hero-shade { background:
    linear-gradient(90deg, rgba(11,9,7,0.0) 0%, rgba(11,9,7,0.30) 26%, rgba(11,9,7,0) 100%);
  }
  .hero-fade { display: none; }
  .hero-content {
    max-width: min(600px, 42vw);
    margin-left: calc(max(20px, 5vw));
    padding-right: 0;
  }
}

/* localized warm-black gradient behind the typography (left-weighted, covers text column) */
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,6,5,0.55) 0%, rgba(8,6,5,0.22) var(--header-h), rgba(8,6,5,0) calc(var(--header-h) + 40px)),
    linear-gradient(90deg, rgba(8,6,5,0.94) 0%, rgba(8,6,5,0.80) 24%, rgba(8,6,5,0.55) 44%, rgba(8,6,5,0.18) 62%, rgba(8,6,5,0) 76%);
}
/* near-invisible bottom fade into the following dark section */
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34vh; pointer-events: none;
  background: linear-gradient(to bottom, rgba(11,9,7,0), rgba(11,9,7,0.60) 100%);
}

/* --- layered text content --- */
.hero-content {
  position: relative; z-index: 1;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px) clamp(24px, 4vh, 48px);
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 1fr);
}
.hero-content > * { grid-column: 1; max-width: 34rem; }
@media (min-width: 1281px) {
  .hero-content { padding-left: clamp(40px, 6vw, 96px); }
  .hero-content > * { max-width: 30rem; }
}

.hero-eyebrow {
  margin: 0 0 26px;
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--font-ui); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--accent-2);
  text-shadow: 0 1px 3px rgba(0,0,0,0.55);
}
.hero-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--accent); }

.hero h1 {
  font-family: var(--font-hero);
  font-weight: 400;
  font-size: clamp(56px, 7.2vw, 112px);
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0 0 30px;
  color: var(--text-strong);
  text-wrap: balance;
  max-width: 700px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.4);
}
/* dominant line — PARTURI, refined muted gold */
.hero h1 .hero-lead {
  display: block;
  color: var(--hero-gold);
}
/* second line — KAMPAAMO, refined warm gold (matches PARTURI) */
.hero h1 .hero-lead2 {
  display: block;
  color: var(--hero-gold);
}
/* warm ivory italic ampersand — compact connector; reads cleanly over the photo */
.hero h1 .hero-amp {
  font-style: italic;
  font-size: 0.78em;
  font-weight: 400;
  color: var(--text-strong);
  margin: 0 0.02em;
  letter-spacing: 0;
  position: relative;
  z-index: 0;
  text-shadow: 0 0 1px rgba(216,189,140,0.35), 0 1px 6px rgba(0,0,0,0.55);
}

/* editorial hairline between the wordmark and the supporting line */
.hero h1::after {
  content: ""; display: block; width: 54px; height: 1px;
  background: var(--accent); margin-top: 30px; opacity: 0.85;
}

.hero-lede { color: var(--text-secondary); font-size: 18px; font-weight: 400; line-height: 1.68; max-width: 30rem; margin: 30px 0 36px; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 34px; }
.hero-actions .btn { min-height: 50px; padding: 0 30px; }
.hero-actions .btn-primary { box-shadow: inset 0 1px 0 rgba(255,255,255,0.25); }

.hero-meta {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text-secondary);
  font-family: var(--font-ui); font-size: 12px; letter-spacing: 0.06em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.hero-meta .hm-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: 0 0 5px; }

/* scroll cue */
.hero-scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 2; width: 1px; height: 34px;
  background: linear-gradient(to bottom, rgba(216,189,140,0.6), transparent);
}
.hero-scroll span { position: absolute; left: -2px; top: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: heroScroll 2.2s ease-in-out infinite; }
@keyframes heroScroll {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(28px); opacity: 0; }
  100% { transform: translateY(28px); opacity: 0; }
}

/* heritage: generic image-frame utility used by the Meistä/about previews */
.hero-photo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/5; border: 1px solid var(--border); box-shadow: var(--shadow-panel);
}
.hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  display: block;
}

/* ---- Yritys: editorial 4-image composition (Meistä) ---- */
.about-sec .container { max-width: 1240px; }
.about-head { max-width: 720px; }
.about-head .tracked { margin-bottom: 16px; }
.about-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px,3.8vw,44px); line-height: 1.08; margin: 0 0 20px; }
.about-head p { color: var(--text-secondary); margin: 0 0 16px; max-width: 640px; }

.yritys-grid {
  display: grid;
  gap: 16px;
  margin-top: 44px;
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}
.yg-cell {
  position: relative; overflow: hidden; min-width: 0;
  border: 1px solid var(--border);
  border-radius: 2px; /* brand: low radius */
}
.yg-cell picture, .yg-cell img { display: block; width: 100%; height: 100%; max-width: 100%; }
.yg-cell picture { min-width: 0; }
.yg-img { object-fit: cover; transition: transform 0.25s ease, filter 0.25s ease; }
.yg-cell:hover .yg-img { transform: scale(1.012); filter: brightness(0.98); }

/* Desktop editorial (≥821px): A = large left anchor (spans full height),
   B + C = stacked right, D = full-width band beneath. */
@media (min-width: 821px) {
  .yritys-grid { grid-template-columns: repeat(12, 1fr); grid-template-rows: 1fr 1fr auto; }
  .yg-a { grid-column: 1 / 8; grid-row: 1 / 3; }
  .yg-b { grid-column: 8 / 13; grid-row: 1 / 2; }
  .yg-c { grid-column: 8 / 13; grid-row: 2 / 3; }
  .yg-d { grid-column: 1 / 13; grid-row: 3 / 4; height: clamp(220px, 30vw, 380px); }
  .yg-d .yg-img { object-position: center 30%; }
}
/* Mobile/tablet (≤820px): intentional stacked sequence (set in the narrow media
   blocks below). */
.yg-cell .yg-img { object-position: center; }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: var(--space-xxl) 0; }
.bg-secondary { background: var(--bg-secondary); }
.bg-surface { background: var(--surface); }

.section-head { max-width: 620px; margin-bottom: var(--space-xl); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .tracked { margin-bottom: 14px; }
.section-head.center .title-line { width: 30px; height: 1px; background: var(--accent); margin: 14px auto 18px; }

.section-head h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.06; margin: 0;
  letter-spacing: -0.01em;
}
.section-head p.sub { color: var(--text-muted); font-size: 16.5px; margin: 12px 0 0; }

.section-rule { height: 1px; background: var(--border-soft); }

/* =========================================================
   SERVICES / PRICING (editorial list preview cards)
   ========================================================= */
.services-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 52px; row-gap: 0;
}
.service-card {
  background: transparent;
  border: none; border-radius: 0;
  border-top: 1px solid var(--border-soft);
  padding: 26px 4px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 24px; row-gap: 8px;
  transition: border-color 0.2s ease;
  position: relative;
}
.service-card:last-child,
.service-card:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--border-soft); }
.service-card:hover { border-top-color: var(--border-strong); }

/* index numeral — quiet editorial detail */
.service-card::before {
  display: none;
}

.service-cat {
  grid-column: 1 / -1;
  font-family: var(--font-ui); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); margin: 0;
}
.service-name { grid-column: 1 / -1; font-family: var(--font-display); font-size: 24px; font-weight: 400; margin: 0; color: var(--text-primary); line-height: 1.15; }
.service-desc { grid-column: 1 / -1; color: var(--text-muted); font-size: 14px; margin: 0; }
.service-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.service-price { font-family: var(--font-ui); font-weight: 500; font-size: 18px; color: var(--accent-2); }
.service-foot .btn { min-height: 42px; padding: 0 22px; text-transform: uppercase; font-size: 12px; letter-spacing: 0.1em; }
.service-price small { display: block; font-size: 11px; color: var(--text-muted); font-weight: 400; letter-spacing: 0.06em; margin-bottom: 4px; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-split { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 64px; align-items: center; }
.about-imgs { position: relative; }
.about-imgs .main-img { border-radius: var(--radius); width: 82%; aspect-ratio: 4/5; object-fit: cover; border: 1px solid var(--border); box-shadow: var(--shadow-panel); }
.about-imgs .sec-img { position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); border: 2px solid var(--bg); box-shadow: var(--shadow-panel); }
.about-body .tracked { margin-bottom: 16px; }
.about-body h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px,3.8vw,44px); line-height: 1.08; margin: 0 0 20px; }
.about-body p { color: var(--text-secondary); margin: 0 0 16px; }
.sig { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border-soft); }
  .sig-top { margin-top: 0; padding-top: 0; border-top: 0; margin-bottom: 8px; }
  .sig-top .sig-role { margin-top: 4px; }
  .sig-name { font-family: var(--font-display); font-size: 22px; font-weight: 400; }
  .sig-role { color: var(--text-muted); font-size: 13px; letter-spacing: 0.02em; }

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band { position: relative; padding: var(--space-xxl) 0; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 480px at 50% 0%, rgba(201,166,107,0.10), transparent 60%); }
.cta-inner { position: relative; max-width: 700px; margin: 0 auto; text-align: center; }
.cta-inner .tracked { margin-bottom: 14px; }
.cta-inner h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px,4vw,46px); line-height: 1.06; margin: 0 0 14px; }
.cta-inner p { color: var(--text-muted); font-size: 17px; margin: 0 0 32px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   CONTACT / LOCATION
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--border-soft); }
.info-list li:last-child { border-bottom: none; }
.info-ic { width: 40px; height: 40px; flex: 0 0 40px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; color: var(--accent); }
.info-label { font-family: var(--font-ui); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-muted); }
.info-value { font-family: var(--font-ui); font-weight: 500; margin-top: 6px; font-size: 16px; letter-spacing: 0.01em; }
.info-value a { color: var(--text-primary); }
.info-value a:hover { color: var(--accent-2); }

.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); min-height: 420px; background: var(--surface); }
.map-wrap > [data-map] { position: absolute; inset: 0; width: 100%; height: 100%; background: #0B0907; }
.map-caption { position: absolute; left: 14px; bottom: 14px; z-index: 2; background: rgba(16,12,9,0.92); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 14px 18px; font-size: 12.5px; color: var(--text-secondary); letter-spacing: 0.02em; }
.map-caption strong { color: var(--text-primary); display: block; font-weight: 500; }
/* overlay link: whole map press → Google Maps directions (Leaflet pan/zoom stays) */
.kpb-map-link {
  position: absolute; right: 14px; top: 14px; z-index: 10;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 10px 15px;
  font-family: var(--font-ui); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-secondary); text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.kpb-map-link:hover { border-color: var(--accent); color: var(--accent-2); background: var(--surface-elevated); }
.kpb-map-overlay { display: inline-flex; align-items: center; gap: 6px; }

/* --- homepage location: premium editorial canvas --- */
.loc-section { padding: clamp(64px, 9vh, 110px) 0; }
.loc-canvas {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 0; align-items: stretch;
  border: 1px solid var(--border-soft);
  background: var(--bg);
  overflow: hidden;
  border-radius: var(--radius-lg);
}
/* the dark map takes the left, dominant side */
.loc-map { position: relative; min-height: 460px; }
.loc-map > [data-map] { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 460px; background: #0B0907; }
/* integrated flat caption on the map — not a glassy floating card */
.loc-caption {
  position: absolute; left: 18px; bottom: 18px; z-index: 1;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 11px 16px;
  font-family: var(--font-ui); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-secondary);
}
.loc-caption-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(201,166,107,0.16); }
/* right espresso panel — calm editorial information */
.loc-panel {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(30px, 5vh, 54px) clamp(26px, 3.2vw, 46px);
  background: var(--bg);
  border-left: 1px solid var(--border-soft);
}
.loc-kicker { font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent-2); margin: 0 0 14px; }
.loc-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.08; margin: 0 0 10px; color: var(--text-primary); }
.loc-address { color: var(--text-secondary); font-size: 16px; line-height: 1.5; margin: 0; }
.loc-contact { padding: 20px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); margin: 26px 0 24px; }
.loc-line { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.loc-label { font-family: var(--font-ui); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); }
.loc-value { font-family: var(--font-ui); font-weight: 500; font-size: 18px; color: var(--text-primary); }
.loc-value:hover { color: var(--accent-2); }
.loc-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.loc-note { margin-top: 22px; color: var(--text-muted); font-size: 13.5px; max-width: 26em; line-height: 1.6; }

/* =========================================================
   VARAA AIKA — full wide photograph hero band
   ========================================================= */
.booking-hero { background: var(--bg); border-bottom: 1px solid var(--border-soft); overflow: hidden; }
.booking-hero-media { position: relative; width: 100%; }
.booking-hero-media picture { display: block; width: 100%; }
.booking-hero-media img { display: block; width: 100%; height: auto; } /* natural ~1.79:1 — whole photo always visible */
.booking-hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  /* localized contrast where the copy sits (bottom-left), photo stays rich elsewhere;
     a faint global veil keeps the scene just slightly behind the typography */
  background:
    linear-gradient(105deg, rgba(8,6,5,0.90) 0%, rgba(8,6,5,0.68) 28%, rgba(8,6,5,0.30) 50%, rgba(8,6,5,0.06) 72%, rgba(8,6,5,0) 86%),
    linear-gradient(0deg, rgba(8,6,5,0.66) 0%, rgba(8,6,5,0.20) 34%, rgba(8,6,5,0) 60%),
    linear-gradient(0deg, rgba(8,6,5,0.10) 0%, rgba(8,6,5,0) 40%);
}
.booking-hero-copy {
  position: absolute; left: 0; bottom: 0; z-index: 1;
  max-width: var(--container-width); width: 100%; margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px) clamp(28px, 6vh, 64px);
  pointer-events: none;
}
.booking-hero-copy > * { pointer-events: auto; }
.booking-hero-copy .tracked { color: var(--accent); margin-bottom: 16px; }
.booking-hero-copy h1 { font-family: var(--font-hero); font-weight: 400; font-size: clamp(38px, 4.8vw, 62px); line-height: 1.0; margin: 0 0 18px; color: var(--hero-gold); }
.booking-hero-copy .bh-lede { color: var(--text-secondary); font-size: 17px; line-height: 1.6; max-width: 30em; margin: 0 0 26px; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.bh-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.booking-section { padding-top: clamp(56px, 8vh, 96px); }

.loc-map { position: relative; min-height: 380px; }
.loc-map [data-map],
[data-map] { width: 100%; height: 100%; min-height: 380px; background: var(--bg); z-index: 0; }
.kpb-map-pin { position: relative; width: 22px; height: 22px; }
.kpb-map-pin-dot {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--accent);
  border: 2px solid rgba(255,255,255,0.85);
  box-shadow: 0 0 0 5px rgba(201,166,107,0.18), 0 4px 14px rgba(0,0,0,0.6);
}
.kpb-map-attr {
  background: rgba(16,12,9,0.85); border: 1px solid var(--border-soft);
  padding: 3px 8px; font-size: 10px; border-radius: 2px;
}
.kpb-map-attr a { color: var(--text-faint); text-decoration: none; }
.kpb-map-attr a:hover { color: var(--accent-2); }
.leaflet-container { font-family: var(--font-body); }
.leaflet-control-zoom a { background: rgba(21,16,13,0.9); color: var(--text-secondary); border: 1px solid var(--border-soft); }
.leaflet-control-zoom a:hover { background: var(--surface-elevated); color: var(--text-primary); }
.leaflet-tooltip { background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-primary); border-radius: 2px; padding: 6px 10px; font-size: 12.5px; }

/* --- homepage location: integrated editorial split --- */
.loc-pin {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  background: rgba(16,12,9,0.92);
  border: 1px solid var(--border-strong);
  padding: 13px 18px;
  font-size: 13px; line-height: 1.4; color: var(--text-secondary);
}
.loc-pin-dot { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(201,166,107,0.15); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { border-top: 1px solid var(--border-soft); padding: var(--space-xl) 0 30px; background: var(--bg-secondary); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; margin-bottom: var(--space-xl); }
.footer-brand p { color: var(--text-muted); font-size: 14.5px; max-width: 34em; margin: 16px 0 0; line-height: 1.6; }
.footer-h { font-family: var(--font-ui); font-weight: 500; font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a, .footer-col span { color: var(--text-secondary); font-size: 14.5px; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom { border-top: 1px solid var(--border-soft); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-faint); font-size: 12.5px; }
.footer-bottom a { color: var(--text-faint); text-decoration: underline; }

/* =========================================================
   PAGE HERO (subpages)
   ========================================================= */
.page-hero { padding: 64px 0 44px; border-bottom: 1px solid var(--border-soft); }
.page-hero .tracked { margin-bottom: 18px; }
.page-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px,5vw,56px); line-height: 1.02; margin: 0; }
.page-hero .lede { color: var(--text-muted); font-size: 17px; max-width: 40em; margin-top: 18px; }

/* =========================================================
   PHOTO-EDGE — refined thin warm-black edge for display type
   over photography. Outward 0.5px halo preserves serifs;
   never fills thin stems. Add only where readability needs it.
   ========================================================= */
.photo-edge {
  text-shadow:
    0.5px 0 0 rgba(12,9,7,0.88), -0.5px 0 0 rgba(12,9,7,0.88),
    0 0.5px 0 rgba(12,9,7,0.88), 0 -0.5px 0 rgba(12,9,7,0.88),
    0.5px 0.5px 0 rgba(12,9,7,0.72), -0.5px 0.5px 0 rgba(12,9,7,0.72),
    0.5px -0.5px 0 rgba(12,9,7,0.72), -0.5px -0.5px 0 rgba(12,9,7,0.72),
    0 2px 10px rgba(0,0,0,0.42);
}
/* soft shadow for small labels where a literal stroke would look harsh */
.photo-soft {
  text-shadow:
    0 1px 2px rgba(0,0,0,0.65),
    0 2px 8px rgba(0,0,0,0.45);
}

/* =========================================================
   HINNASTO INTRO — full promo image, editorial art direction
   ========================================================= */
.price-hero { background: var(--bg); }
.price-hero-media { position: relative; width: 100%; }
.price-hero-media picture { display: block; width: 100%; }
.price-hero-media img { display: block; width: 100%; height: auto; } /* natural 1.91:1 — whole photo always visible, no crop */
.price-hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  /* gentle bottom-weighted contrast to anchor the title near the lower centre;
     the photo stays rich across its upper area */
  background:
    linear-gradient(180deg, rgba(8,6,5,0.12) 0%, rgba(8,6,5,0.05) 55%, rgba(8,6,5,0.55) 82%, rgba(8,6,5,0.78) 100%);
}
.price-hero-content {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: flex-end; justify-content: center;
  width: 100%;
  padding: 0 clamp(20px, 5vw, 40px) clamp(26px, 5vh, 52px);
  pointer-events: none;
}
.price-hero-content h1 {
  font-family: var(--font-hero); font-weight: 400;
  font-size: clamp(48px, 6.8vw, 92px); line-height: 1.02; margin: 0;
  color: var(--hero-gold);
  letter-spacing: 0.012em;
}
/* Meistä uses an interior photo a little brighter in its upper third — only a
   gentle localized dim under the lower-centred title, never a heavy panel. */
.meista-hero .price-hero-shade {
  background:
    linear-gradient(180deg, rgba(8,6,5,0) 0%, rgba(8,6,5,0.16) 62%, rgba(8,6,5,0.52) 85%, rgba(8,6,5,0.72) 100%),
    linear-gradient(90deg, rgba(8,6,5,0) 70%, rgba(8,6,5,0.18) 100%);
}

/* =========================================================
   PRICE LIST
   ========================================================= */
.price-group { margin-bottom: var(--space-xl); }
.price-group-title { display: flex; align-items: center; gap: 18px; font-family: var(--font-ui); font-weight: 500; font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.price-group-title::after { content: ""; height: 1px; flex: 1; background: var(--border-soft); }
.price-row {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: baseline;
  padding: 22px 4px; border-bottom: 1px solid var(--border-soft);
}
.price-row .row-name { font-family: var(--font-display); font-size: 23px; font-weight: 400; }
.price-row .row-desc { display: block; font-family: var(--font-body); font-size: 14px; color: var(--text-muted); font-weight: 400; margin-top: 5px; }
.price-row .row-price { font-family: var(--font-ui); font-weight: 500; font-size: 20px; white-space: nowrap; }

/* ILMAN AJANVARAUSTA — prominent, exact wording */
.no-appt {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin: var(--space-xl) 0 var(--space-xl);
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}
.no-appt-line { height: 1px; flex: 0 1 90px; background: var(--accent); }
.no-appt-text {
  font-family: var(--font-ui); font-weight: 500;
  font-size: clamp(14px, 2.4vw, 18px);
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent-2); white-space: nowrap; text-align: center;
}

/* =========================================================
   STAFF GRID (public)
   ========================================================= */
.staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.staff-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.staff-card:hover { border-color: var(--border); }
.staff-photo { background: var(--surface-elevated); height: 0; padding-top: 125%; position: relative; }
.staff-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.staff-photo .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-muted); font-family: var(--font-ui); font-size: 12px; letter-spacing: var(--track); text-transform: uppercase; }
.staff-body { padding: 22px; }
.staff-body h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; margin: 0 0 4px; }
.staff-body .role { color: var(--accent); font-size: 11px; font-family: var(--font-ui); letter-spacing: 0.24em; text-transform: uppercase; }
.staff-body p { color: var(--text-muted); font-size: 14px; margin: 14px 0 0; line-height: 1.6; }

/* =========================================================
   GALLERY — full photograph + Työnjälki portfolio
   ========================================================= */
/* intro: complete image shown at its natural aspect, text integrated */
.gal-intro {
  position: relative;
  background: var(--bg-secondary);
  margin-top: calc(-1 * var(--header-h));
  display: flex;
}
.gal-intro-pic { display: block; width: 100%; }
.gal-intro-img { display: block; width: 100%; height: auto; object-fit: contain; }

/* localized gradient + text anchored bottom-center, overlay kept light */
.gal-intro-textwrap {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,6,5,0) 60%, rgba(8,6,5,0.16) 82%, rgba(8,6,5,0.5) 100%);
}
.gal-intro-content { pointer-events: auto; position: relative; z-index: 1; width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 clamp(20px,5vw,40px) clamp(30px,6vh,56px); }
.gal-intro-content h1 {
  font-family: var(--font-hero); font-weight: 400;
  font-size: clamp(46px, 6.4vw, 84px); line-height: 1.0; letter-spacing: 0.01em;
  margin: 0; color: var(--hero-gold);
}

/* Työnjälki section */
.gal-section { padding-top: var(--space-xxl); }
.gal-head { margin-bottom: 28px; }
.gal-head .tracked { color: var(--accent); }
.gal-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; margin: 10px 0 0; }

/* category filters hidden — models shown as a simple full gallery */
.gal-cats { display: none; }
.gal-cat {
  position: relative; padding: 6px 0 10px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-ui); font-size: 13px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.18s ease;
}
.gal-cat:hover { color: var(--text-secondary); }
.gal-cat.on { color: var(--accent-2); }
.gal-cat.on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--accent);
}

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-grid.single { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
.gallery-grid.two { grid-template-columns: repeat(2, 1fr); }
.gallery-item {
  position: relative; overflow: hidden;
  background: var(--surface-elevated);
  cursor: zoom-in;
}
.gallery-item::after { content: ""; display: block; padding-bottom: 100%; } /* 1:1 rhythm */
.gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform 0.6s cubic-bezier(0.2,0.6,0.2,1); }
.gallery-item:hover img { transform: scale(1.015); }
.gallery-item:focus-visible { outline: 1px solid var(--accent); outline-offset: -1px; }

/* lightbox */
.gallery-viewer { position: fixed; inset: 0; z-index: 90; display: none; }
.gallery-viewer.open { display: block; }
.gv-backdrop { position: absolute; inset: 0; background: rgba(8,6,5,0.94); }
.gv-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 64px; }
.gv-img { max-width: 86vw; max-height: 82vh; object-fit: contain; border: 1px solid var(--border-strong); }
.gv-close, .gv-prev, .gv-next {
  position: absolute; z-index: 2; width: 48px; height: 48px;
  background: transparent; border: 1px solid var(--border-strong);
  color: var(--text-primary); font-size: 22px; line-height: 1; cursor: pointer;
  transition: border-color 0.15s, color 0.15s; display: grid; place-items: center;
}
.gv-close:hover, .gv-prev:hover, .gv-next:hover { border-color: var(--accent); color: var(--accent-2); }
.gv-close { top: 24px; right: 24px; }
.gv-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.gv-next { right: 18px; top: 50%; transform: translateY(-50%); }
body.lightbox-open { overflow: hidden; }
/* Tablet-narrow (≤820px incl. 768/820): use the mobile 2-col image sequence. */
@media (max-width: 820px) {
  .yritys-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    gap: 12px;
    margin-top: 32px;
  }
  .yg-a { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 3 / 4; }
  .yg-b { grid-row: auto; aspect-ratio: 3 / 4; }
  .yg-c { grid-row: auto; aspect-ratio: 3 / 4; }
  .yg-d { grid-column: 1 / -1; grid-row: auto; height: clamp(190px, 52vw, 290px); margin-top: 4px; }
}
@media (max-width: 640px) {
  .gv-stage { padding: 0; }
  .gv-img { max-width: 94vw; max-height: 78vh; }
  .gv-close { top: 12px; right: 12px; }
}

/* Meistä editorial images */
.meista-media { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 12px; }
.meista-media .mi-1 { aspect-ratio: 3/4; }
.meista-media .mi-2 { aspect-ratio: 3/4; margin-top: 60px; }

/* =========================================================
   BOOKING (wizard)
   ========================================================= */
#booking-app { max-width: 820px; margin: 0 auto; }

.kb-steps { display: flex; margin: 0 0 34px; padding: 0; list-style: none; border-bottom: 1px solid var(--border-soft); }
.kb-step { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px 6px; position: relative; }
.kb-step + .kb-step { border-left: 1px solid var(--border-soft); }
.kb-step .kb-num { width: 32px; height: 32px; border-radius: 0; display: grid; place-items: center; background: transparent; color: var(--text-faint); font-family: var(--font-ui); font-weight: 500; font-size: 13px; border: 1px solid var(--border); }
.kb-step .kb-lbl { font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.kb-step.on .kb-num { background: var(--accent); color: #120C06; border-color: var(--accent); }
.kb-step.on .kb-lbl { color: var(--accent-2); }
.kb-step.done .kb-num { color: var(--accent); border-color: var(--accent); }
.kb-step.done .kb-lbl { color: var(--text-secondary); }

.kb-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; }
.kb-panel > h3 { font-family: var(--font-display); font-weight: 400; font-size: 30px; margin: 0 0 26px; }
.kb-panel > .sub { color: var(--text-muted); margin: -14px 0 24px; }

.kb-option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kb-option {
  background: var(--bg); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 24px 22px; text-align: left; color: var(--text-primary); cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.kb-option:hover { border-color: var(--border); background: var(--surface-elevated); }
.kb-option.sel { border-color: var(--accent); background: var(--accent-bg); }
.kb-option .opt-name { font-family: var(--font-display); font-size: 22px; font-weight: 400; }
.kb-option .opt-head { display: flex; align-items: baseline; gap: 10px; }
.kb-option .opt-check { color: var(--accent-2); font-weight: 700; flex: 0 0 auto; }
.kb-option.sel .opt-name { color: var(--text-primary); }
.kb-option .opt-sub { color: var(--text-muted); font-size: 13.5px; margin-top: 8px; display: flex; justify-content: space-between; gap: 10px; }
.kb-option .opt-sub span:last-child { color: var(--text-faint); }

/* staff picker — refined two-barber cards with working-hours hint */
.kb-staff-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
.kb-staff-grid .kb-option { padding: 26px 24px; }
.kb-staff-grid .opt-name { font-size: clamp(20px, 2.6vw, 26px); letter-spacing: 0.01em; }
.kb-option .opt-hours {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-soft);
  font-family: var(--font-ui); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-2);
}
.kb-option.sel .opt-hours { color: var(--accent); }
/* mobile stacks the two staff cards cleanly */
@media (max-width: 560px) {
  .kb-staff-grid { grid-template-columns: 1fr; }
}

/* selected-services summary */
.kb-sum-box {
  margin-top: 22px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
}
.ks-lbl { font-family: var(--font-ui); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.ks-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; color: var(--text-secondary); padding: 4px 0; }
.ks-total { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--border-strong); font-family: var(--font-ui); font-weight: 600; font-size: 15px; color: var(--accent-2); }
.kb-review-seg { border-bottom: 1px solid var(--border-soft); margin-bottom: 4px; padding-bottom: 6px; }

.kb-calendar { display: grid; }
.kb-cal-head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; }
.kb-cal-head span { text-align: center; font-family: var(--font-ui); font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.16em; padding: 8px 0; }
.kb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.kb-day {
  aspect-ratio: 1/1; border-radius: var(--radius-sm);
  border: 1px solid transparent;
  display: grid; place-items: center;
  font-family: var(--font-ui); font-weight: 500; font-size: 15px;
  cursor: pointer; color: var(--text-secondary); background: var(--bg);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.kb-day:hover:not(:disabled):not(.off) { border-color: var(--border); background: var(--surface-elevated); }
.kb-day.empty { visibility: hidden; }
.kb-day.off { color: var(--text-faint); opacity: 0.45; cursor: default; background: transparent; }
.kb-day.available { color: var(--text-primary); background: var(--bg); }
.kb-day.sel { background: var(--accent); color: #120C06; border-color: var(--accent); }
.kb-day.today { outline: 1px solid var(--border-strong); outline-offset: -1px; }

.kb-cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.kb-cal-nav .mon { font-family: var(--font-ui); font-weight: 500; font-size: 15px; letter-spacing: 0.05em; text-transform: capitalize; }

.kb-or { text-align: center; color: var(--text-muted); padding: 10px 0; font-family: var(--font-ui); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; margin: 14px 0; }

.kb-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.kb-slot {
  padding: 15px 10px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text-primary); font-family: var(--font-ui); font-weight: 500;
  cursor: pointer; text-align: center; font-size: 15px; letter-spacing: 0.02em;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.kb-slot:hover:not(:disabled) { border-color: var(--border-strong); background: var(--surface-elevated); }
.kb-slot.sel { background: var(--accent); color: #120C06; border-color: var(--accent); }
.kb-slot:disabled { opacity: 0.35; cursor: default; }
.kb-empty { color: var(--text-muted); text-align: center; padding: 30px 0; }
.kb-loading { color: var(--text-muted); text-align: center; padding: 30px 0; }

.kb-chips { display: flex; flex-wrap: wrap; gap: 0; margin-top: 14px; border: 1px solid var(--border-soft); width: fit-content; }
.kb-chip { padding: 10px 20px; border: none; background: none; font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-secondary); cursor: pointer; transition: background 0.15s, color 0.15s; border-right: 1px solid var(--border-soft); }
.kb-chip:last-child { border-right: none; }
.kb-chip.on { background: var(--accent); color: #120C06; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-ui); font-weight: 500; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-secondary); }
.field input, .field textarea, .field select {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  padding: 16px; font-family: var(--font-body); font-size: 16px;
  transition: border-color 0.15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field .req { color: var(--warm); }

.kb-review { background: var(--bg); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 6px 22px; margin-bottom: 24px; }
.kb-review-row { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--border-soft); font-size: 15px; }
.kb-review-row:last-child { border-bottom: none; }
.kb-review-row .rv-l { font-family: var(--font-ui); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); padding-top: 3px; }
.kb-review-row .rv-v { font-weight: 500; }

.kb-error { color: var(--danger); background: var(--danger-bg); border: 1px solid rgba(201,123,107,0.3); border-radius: var(--radius-sm); padding: 15px 18px; margin-bottom: 20px; font-size: 15px; }
.kb-nav-btns { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }

/* success */
.kb-success { text-align: center; padding: 30px 0; }
.kb-check { width: 64px; height: 64px; margin: 0 auto 26px; border-radius: 50%; background: var(--accent); color: #120C06; display: grid; place-items: center; }
.kb-success > h3 { font-family: var(--font-display); font-weight: 400; font-size: 38px; margin: 0 0 10px; }
.kb-success .sub { color: var(--text-muted); margin: 0 0 30px; }
.kb-summary { max-width: 420px; margin: 0 auto 32px; background: var(--bg); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 8px 24px; }
.kb-summary .srow { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--border-soft); }
.kb-summary .srow:last-child { border-bottom: none; }
.kb-summary .sl { font-family: var(--font-ui); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); padding-top: 4px; }
.kb-summary .sv { font-weight: 500; }

/* =========================================================
   MOBILE PHONE BAR
   ========================================================= */
.mobile-phone { display: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
  .header-actions .btn-ghost { display: none; }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: flex; }

  /* Yritys: desktop layout comes from the ≥821px block; ≤820 uses the
     mobile stacked sequence. Nothing to override for the grid at 821–980. */

  .m-nav {
    display: none;
    flex-direction: column;
  }
  body.menu-open .m-nav {
    display: flex; flex-direction: column; gap: 4px;
    padding: 8px clamp(20px,5vw,40px) 24px;
    border-bottom: 1px solid var(--border-soft);
    background: var(--bg);
  }
  .m-nav a { padding: 15px 0; font-family: var(--font-ui); font-size: 13px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-secondary); border-bottom: 1px solid var(--border-soft); }
  .m-nav a[aria-current="page"] { color: var(--accent-2); }
  .m-nav .m-phone { padding-top: 18px; }
  .m-nav .m-phone .btn { margin-top: 4px; }

  .hero { min-height: 0; }
  .hero-content { padding-bottom: clamp(36px, 7vh, 70px); }
  .hero-scroll { display: none; }
  .services-grid, .staff-grid { grid-template-columns: 1fr 1fr; }
  .about-split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .loc-canvas { grid-template-columns: 1fr; }
  .loc-panel { border-left: none; border-top: 1px solid var(--border-soft); }
  .loc-map { min-height: 360px; }
  .loc-map > [data-map] { min-height: 360px; }
  .loc-caption { left: 12px; bottom: 12px; }
  .map-wrap { min-height: 320px; }
  .kpb-map-link { top: 10px; right: 10px; padding: 9px 12px; font-size: 11px; }
  .about-imgs .main-img { width: 72%; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-inner { height: 68px; gap: 10px; }
  .brand-logo { height: 52px; }
  .header-actions .btn { display: none; }
  .header-actions .burger { display: flex; }
  .section { padding: 60px 0; }
  .hero { padding-top: var(--header-h); min-height: max(92svh, 620px); align-items: stretch; }
  /* mobile: hero fills the viewport column; eyebrow sits high under the header,
     headline/lede/buttons are pushed to the bottom via margin-top:auto. */
  .hero-content { display: flex; flex-direction: column; padding-bottom: calc(clamp(28px, 6vh, 52px) + 10px); }
  .hero-content > * { max-width: 100%; }
  .hero h1 { font-size: clamp(40px, 11vw, 56px); margin: auto 0 0; }
  .hero-eyebrow {
    position: static; order: -1; margin: calc(var(--header-h) + clamp(14px, 3vh, 26px)) 0 0;
    padding: 0 clamp(20px,5vw,40px); width: 100%;
    font-size: 10.5px; letter-spacing: 0.24em; color: var(--accent-2);
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  }
  .hero-eyebrow::before { width: 22px; }
  .hero-lede { font-size: 16.5px; margin-bottom: 26px; max-width: 24em; text-shadow: 0 1px 3px rgba(0,0,0,0.55); }
  .hero-actions { width: 100%; margin-bottom: 22px; }
  .hero-actions .btn { flex: 1 1 44%; min-height: 54px; }
  .hero-meta { font-size: 11.5px; text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
  /* hinnasto title over the short mobile promo strip — anchor lower to sit
     closer to the photo's bottom edge on small screens */
  .price-hero-content { padding-bottom: clamp(10px, 2.5vh, 18px); }
  .price-hero-content h1 { font-size: clamp(36px, 11vw, 48px); }
  /* mobile crop: keep face (upper ~30%) visible, let text anchor low over a bottom gradient */
  .hero-bg-img { object-position: 50% 18%; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(8,6,5,0.55) 0%, rgba(8,6,5,0.20) var(--header-h), rgba(8,6,5,0) calc(var(--header-h) + 40px)),
      linear-gradient(0deg, rgba(8,6,5,0.92) 0%, rgba(8,6,5,0.72) 28%, rgba(8,6,5,0.35) 52%, rgba(8,6,5,0.08) 74%, rgba(8,6,5,0) 92%);
  }
  .hero-fade { height: 22vh; }
  /* gallery intro mobile: full image stays visible, title bottom-center */
  .gal-intro { display: block; }
  .gal-intro-content { padding-bottom: calc(clamp(24px,5vh,40px) + 8px); }
  .gal-intro-content h1 { font-size: clamp(34px, 9.5vw, 46px); }
  /* category nav scrolls horizontally on mobile */
  .gal-cats { gap: 24px; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 12px; }
  .gal-cat { white-space: nowrap; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 22px 0 24px; }
  .service-name { font-size: 22px; }

  /* Yritys mobile: your own sequence — large A, B+C pair, then wide D. */
  .yritys-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    gap: 12px;
    margin-top: 32px;
  }
  .yg-a { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 3 / 4; }
  .yg-b { grid-row: auto; aspect-ratio: 3 / 4; }
  .yg-c { grid-row: auto; aspect-ratio: 3 / 4; }
  .yg-d { grid-column: 1 / -1; grid-row: auto; height: clamp(190px, 52vw, 290px); margin-top: 4px; }
  .about-head h2 { font-size: clamp(28px, 8vw, 34px); }
  .about-head p { max-width: 100%; }
  .about-head { max-width: 100%; }
  .service-foot .btn { flex: 0 0 auto; }
  .booking-hero-copy h1 { font-size: clamp(30px, 8vw, 40px); }
  .booking-hero-copy { padding-bottom: clamp(22px, 5vh, 36px); }
  .booking-hero-copy .bh-lede { font-size: 15.5px; }
  /* narrow screens: copy is bottom-centre over a short promo strip — dim the
     whole lower band evenly instead of the desktop left-weighted angle */
  .booking-hero-shade {
    background:
      linear-gradient(180deg, rgba(8,6,5,0) 30%, rgba(8,6,5,0.18) 52%, rgba(8,6,5,0.72) 82%, rgba(8,6,5,0.88) 100%),
      linear-gradient(0deg, rgba(8,6,5,0.10) 0%, rgba(8,6,5,0) 38%);
  }
  .booking-hero-copy .bh-lede { text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
  /* legibility over the photo on small screens — a soft, restrained shadow so
     the heading, eyebrow and lede read clearly on bright areas */
  .booking-hero-copy .tracked { text-shadow: 0 1px 4px rgba(0,0,0,0.72); }
  .booking-hero-copy h1 { text-shadow:
    0 1px 3px rgba(0,0,0,0.55),
    0 2px 10px rgba(0,0,0,0.45); }
  /* booking hero on mobile: keep the heading below the sticky header and the
     photo rich — copy anchored to the bottom, image gets a min height so the
     heading never tucks under the header on short alt crops */
  .booking-hero-media { min-height: 340px; }
  .booking-hero-media img { height: 100%; object-fit: cover; }
  .booking-hero-copy { bottom: 0; }
  .booking-hero-copy h1 { line-height: 1.04; }
  /* month nav on narrow screens: keep usable tap targets but let the label and
     arrow buttons wrap so 'Seuraava' never overruns the panel */
  .kb-cal-nav { flex-wrap: wrap; gap: 10px; }
  .kb-cal-nav .btn { padding: 10px 12px; white-space: nowrap; }
  .kb-cal-nav .mon { flex: 1 1 auto; text-align: center; order: -1; width: 100%; }
  /* wizard nav on narrow screens: buttons wrap so Jatka never overruns the
     panel edge, back label can shrink, and the pair stays inside the box */
  .kb-nav-btns { flex-wrap: wrap; gap: 10px; }
  .kb-nav-btns .btn { flex: 1 1 auto; min-width: 0; }
  .kb-nav-btns .btn:last-child { justify-content: center; }
  .kb-nav-btns .btn[class*="ghost"] { flex: 0 1 auto; }
  .kb-option-grid, .form-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; gap: 10px; }
  .gallery-item { display: block; }
  .gallery-item::after { display: none; } /* natural aspect — whole image visible */
  .gallery-item img { position: static; width: 100%; height: auto; object-fit: cover; transform: none; }
  .gallery-item:hover img { transform: none; }
  .price-row { grid-template-columns: 1fr auto; gap: 16px; }
  .kb-panel { padding: 22px 20px; }
  .meista-media { grid-template-columns: 1fr; }
  .meista-media .mi-2 { margin-top: 0; }

  .mobile-phone {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: var(--bg); border-top: 1px solid var(--border-strong);
    padding: 10px clamp(16px,5vw,24px) calc(10px + env(safe-area-inset-bottom));
  }
  .mobile-phone .btn { flex: 1; height: 46px; }
  body.has-mobile-cta { padding-bottom: 78px; }
}

/* booking progress numbers-only on narrow phones */
@media (max-width: 560px) {
  .kb-steps { gap: 0; overflow: hidden; }
  .kb-step { padding: 12px 4px; flex: 0 1 auto; min-width: 40px; }
  .kb-step + .kb-step { border-left: 1px solid var(--border-soft); padding-left: 4px; }
  .kb-step .kb-lbl { display: none; }
  .kb-steps { justify-content: space-between; }
}