/* Paikalliset tilitoimistosivut (pohja: Joensuu) */

/* Yhtenäinen tausta kuten etusivulla (mesh-bg läpi koko sivun) */
.city-page--unified-bg {
  background-color: #f7f9fb;
}

.city-page--unified-bg main > section {
  background-color: transparent;
  border-top-width: 0;
  border-bottom-width: 0;
}

/* Hero-kuvio läpinäkyvänä kuten etusivulla (ei city-page hero-pattern -täyttöä) */
.city-page--unified-bg .hero-pattern {
  background-color: transparent;
  background-image:
    radial-gradient(rgba(0, 104, 95, 0.05) 0.5px, transparent 0.5px),
    radial-gradient(rgba(0, 104, 95, 0.05) 0.5px, transparent 0.5px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  opacity: 1;
}

/* Älä leikkaa maskottia / lomakehehkua (kuten etusivulla) */
.city-page--unified-bg #vertaile {
  overflow: visible;
}

.city-page--unified-bg #vertaile .hero-layout,
.city-page--unified-bg #hero-lead-form {
  overflow: visible;
}
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 0.5px solid rgba(255, 255, 255, 0.8);
}

.hero-pattern {
  opacity: 1;
  background-color: #f7f9fb;
  background-image: radial-gradient(#bcc9c6 1px, transparent 1px);
  background-size: 24px 24px;
}

.card-shadow-resting {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02), 0 12px 24px rgba(0, 0, 0, 0.02);
}

.form-input-focus {
  transition: all 0.2s ease;
}

.form-input-focus:focus {
  background-color: white;
  border-color: #00685f;
  box-shadow: 0 0 0 2px rgba(0, 104, 95, 0.1);
}

.gradient-text {
  background: linear-gradient(135deg, #00685f 0%, #287ab3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Paikallinen konteksti: teksti + pystysuuntainen kuvitus */
.city-local-context__layout {
  align-items: center;
  display: grid;
  gap: 2rem;
}

.city-local-context__figure {
  display: flex;
  justify-content: center;
  margin: 0;
}

.city-local-context__img {
  aspect-ratio: 3 / 4;
  border-radius: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02), 0 12px 24px rgba(0, 0, 0, 0.06);
  display: block;
  max-height: min(75vh, 580px);
  max-width: 100%;
  object-fit: cover;
  object-position: center center;
  width: min(100%, 340px);
}

@media (min-width: 768px) {
  .city-local-context__layout {
    gap: 3rem;
    grid-template-columns: 1fr minmax(240px, 360px);
  }

  .city-local-context__figure {
    justify-content: flex-end;
  }
}

/* Toiminimi-kortti: hanging-maskotti vasemmalla */
.city-business-types {
  overflow: visible;
}

.city-business-types__grid {
  overflow: visible;
}

.city-business-card--with-mascot {
  overflow: visible;
  position: relative;
}

.city-business-card__mascot-wrap {
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 14%;
  transform: translate(-58%, -50%);
  user-select: none;
  z-index: 10;
}

.city-business-card__mascot {
  display: block;
  height: auto;
  object-fit: contain;
  transform: scaleX(-1);
  width: clamp(6.5rem, 11vw, 9.5rem);
}

.city-business-card__mascot-wrap--dropping {
  position: fixed !important;
  z-index: 40;
  margin: 0;
  will-change: transform;
}

.city-business-card__mascot-wrap--hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .city-business-card__mascot-wrap--dropping {
    transition: none;
  }
}

/* Hurt mascot — same X as Toiminimi hanging mascot, feet on footer top */
.city-footer-hurt-mascot-wrap {
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: translate(-50%, calc(-100% + 3.5rem));
  user-select: none;
  visibility: hidden;
  z-index: 15;
}

.city-footer-hurt-mascot-wrap--visible {
  opacity: 1;
  visibility: visible;
}

.city-footer-hurt-mascot {
  display: block;
  height: auto;
  object-fit: contain;
  transform: scaleX(-1);
  width: clamp(6.5rem, 11vw, 9.5rem);
}
