/* ============================================
   STYLES.CSS – Heinäveden Sannan Salonki ja Kotiapu
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sky: #4AACE8;
  --sky-dark: #2a8dc8;
  --sky-light: #d6eef9;
  --sky-xlight: #f0f8fd;
  --accent: #f5a623;
  --white: #ffffff;
  --text: #1a2b3c;
  --text-light: #4a6275;
  --gray-bg: #f4f8fb;
  --footer-bg: #1a3a52;
  --sky-gradient-dark: #1a6fa0;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(74,172,232,0.13);
  --transition: 0.25s ease;
  --font: 'Segoe UI', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h2 { font-size: 2rem; margin-bottom: 0.5rem; }
h3 { font-size: 1.25rem; }
p  { margin-bottom: 1rem; color: var(--text-light); font-size: 1.1rem; }

.section-title { text-align: center; color: var(--text); }

.section-sub { 
  text-align: center; 
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2.5rem; 
  font-size: 1.1rem;
}

.section-sub-kotiapu { 
  text-align: left; 
  color: var(--text-light); 
  max-width: 600px; 
  margin: 1rem auto 2.5rem;
  font-size: 1.1rem;
}

.section-sub-kotiapu p {
  margin-bottom: 0.25rem;
}

/* --- Layout --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
section    { padding: 5rem 0; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--sky);
  color: var(--white);
  border-color: var(--sky);
}
.btn-primary:hover {
  background: var(--sky-dark);
  border-color: var(--sky-dark);
}
.btn-outline {
  background: transparent;
  color: var(--sky);
  border-color: var(--sky);
}
.btn-outline:hover {
  background: var(--sky);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--sky-dark);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--sky-light);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  background: #2a8dc8; /* käytetään sky-dark navbarissa */
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Logo */
.brand { display: flex; align-items: center; gap: 0; }
.brand-main  { color: var(--white);  font-size: 1.15rem; font-weight: 700; letter-spacing: 0.01em; }
.brand-color { color: var(--accent); font-size: 1.15rem; font-weight: 700; }

/* Nav links */
.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.nav-links a {
  color: var(--white);
  padding: 0.45rem 0.85rem;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background var(--transition);
}
.nav-links a:hover,
.nav-links a.active { background: rgba(255,255,255,0.22); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--sky-dark);
  padding: 1rem 1.25rem 1.25rem;
}
.mobile-menu a {
  color: var(--white);
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 1rem;
  font-weight: 500;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu.open { display: flex; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: url('kuvat/salonki2.webp') center 30%/cover no-repeat;
  background-color: var(--sky-dark);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,58,82,0.87) 0%, rgba(74,172,232,0.65) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 680px;
}
.hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.hero-content p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-hero .hero-buttons {
  justify-content: center;
  margin-top: 1.5rem;
}

/* ============================================
   PALVELUT-OSIO
   ============================================ */
.services { background: var(--gray-bg); }
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--sky);
  transition: transform var(--transition);
  font-size: 1.1rem;
}
.service-card:hover { transform: translateY(-4px); }
.service-card .icon { font-size: 2.5rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.4rem; color: var(--sky-dark); margin-bottom: 0.75rem; }
.service-card ul { margin: 1rem 0 1.5rem; }
.service-card ul li {
  padding: 0.3rem 0;
  color: var(--text-light);
  display: flex; align-items: center; gap: 0.5rem;
}
.service-card ul li::before { content: "✓"; color: var(--sky); font-weight: 700; }

/* ============================================
   MIKSI MEIDÄT – ARVOT
   ============================================ */
.values { background: var(--white); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-right: 0.3rem;
}
.value-card {
  background: var(--sky-xlight);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.value-card:hover { transform: translateY(-4px); }
.value-card .v-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.value-card h4 { color: var(--sky-dark); font-size: 1.05rem; margin-bottom: 0.5rem; }
.value-card p  { font-size: 1.1rem; margin: 0; }

/* ============================================
   ASIAKASPALAUTTEET
   ============================================ */
.reviews { background: var(--sky-light); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.review-stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 0.75rem; }
.review-text { font-size: 1.1rem; color: var(--text-light); font-style: italic; margin-bottom: 1rem; }
.review-author { font-weight: 700; color: var(--text); font-size: 1.2rem; }
.review-service { font-size: 1.2rem; color: var(--sky); }

/* ============================================
   CTA-OSIO
   ============================================ */
.cta {
  background: linear-gradient(135deg, var(--sky-gradient-dark) 0%, var(--sky-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 4.5rem 0;
}

.cta h2 { 
  color: var(--white);
  margin-bottom: 0.75rem; 

}

.cta p  { 
  color: rgba(255,255,255,0.88);
  max-width: 520px;
  margin: 0 auto 2rem;
  font-size: 1.1rem
}
.cta-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand .brand-main,
.footer-brand .brand-color { font-size: 1.1rem; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-top: 0.75rem; }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 1rem; }
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--sky); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

/* ============================================
   SALONKI-SIVU
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--sky-gradient-dark) 0%, var(--sky-dark) 100%);
  color: var(--white);
  padding: 4rem 0 3.5rem;
  text-align: center;
}
.page-hero h1 { 
  color: var(--white); 
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.75rem; 
}
.page-hero p  {
  color: rgba(255,255,255,0.9);
  max-width: 560px;
  margin: 0 auto; 
  font-size: 1.2rem

}

.palvelut { background: var(--gray-bg); }
.palvelut-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.palvelu-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--sky);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
}
.palvelu-card:hover { transform: translateY(-4px); }
.palvelu-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.palvelu-card h3 { color: var(--sky-dark); font-size: 1.2rem; margin-bottom: 0.6rem; }
.palvelu-card p  { font-size: 1.1rem; flex: 1; }
.palvelu-hinta {
  margin-top: 1.25rem;
  background: var(--sky-xlight);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}
.palvelu-hinta table { width: 100%; border-collapse: collapse; }
.palvelu-hinta td {
  font-size: 0.9rem;
  padding: 0.25rem 0;
  color: var(--text-light);
}
.palvelu-hinta td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--sky-dark);
}
.palvelu-hinta tr + tr td { 
  border-top: 1px solid rgba(74,172,232,0.15); 
  font-size: 0.9rem
}

/* ============================================
   KOTIAPU-SIVU
   ============================================ */

/* Hero taustakuvalla */
.kotiapu-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background: url('kuvat/sannankotiapu.webp') center 90%/cover no-repeat;
  background-color: var(--sky-dark);
  padding: 0;
  text-align: center;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,58,82,0.82) 0%, rgba(74,172,232,0.65) 100%);
}

.kotiapu-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,58,82,0.90) 0%, rgba(74,172,232,0.65) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  color: var(--white);
  
}
.kotiapu-hero h1 { 
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.75rem; 

}
.kotiapu-hero p  { 
  color: rgba(255,255,255,0.90); 
  margin: 0 auto;
  font-size: 1.2rem
}

/* Palvelukortit */
.kotiapu-palvelut { background: var(--gray-bg); }
.kotiapu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
  align-items:start
}
.kotiapu-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--sky);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
}
.kotiapu-card:hover { transform: translateY(-4px); }
.kotiapu-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.kotiapu-icon { 
  font-size: 2rem; 
}

.kotiapu-card h3 { 
  color: var(--sky-dark);
  font-size: 1.2rem; 
  margin: 0; 
}

.kotiapu-intro {
  font-size: 1.1rem;
  margin-bottom: 0; 
  flex: 1; 
}

/* Laajennettava teksti */
.kotiapu-extra {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, margin 0.35s ease;
  margin-top: 0;
}
.kotiapu-extra.open {
  max-height: 600px;
  margin-top: 0.75rem;
}
.kotiapu-extra p { font-size: 1.1rem; margin: 0; }

.kotiapu-extra p + p {
  margin-top: 0.75rem;
}

.lue-lisaa-btn {
  margin-top: 1.1rem;
  background: none;
  border: 2px solid var(--sky);
  color: var(--sky);
  border-radius: 20px;
  padding: 0.4rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
  transition: all var(--transition);
}
.lue-lisaa-btn:hover {
  background: var(--sky);
  color: var(--white);
}

/* Prosessikuvaus */
.prosessi { background: var(--white); }
.prosessi-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 2.5rem;
  flex-wrap: nowrap;
}
.prosessi-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.step-number {
  width: 52px;
  height: 52px;
  background: var(--sky);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(74,172,232,0.3);
}

.step-content { 
  max-width: 200px; 
}

.step-content h4 { 
  color: var(--sky-dark);
  margin-bottom: 0.4rem;
  font-size: 1.2rem; 
}

.step-content p  {
  font-size: 1.1rem; 
  margin: 0; 
}

.prosessi-connector {
  flex: 0 0 40px;
  height: 3px;
  background: var(--sky-light);
  margin-top: 26px;
  border-radius: 2px;
}

/* Hinnasto-osio (kotiapu.html) */
.hinnasto-osio { background: var(--white); }

.hinnasto-kortti {
  max-width: 760px;
  margin: 2.5rem auto 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 5px solid var(--sky);
  overflow: hidden;
}

.hinnasto-rivi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--sky-xlight);
  gap: 1rem;
}
.hinnasto-paahinta {
  background: var(--sky-xlight);
}
.hinnasto-nimike {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hinnasto-ikoni { font-size: 1.6rem; flex-shrink: 0; }
.hinnasto-nimike strong { display: block; color: var(--text); font-size: 1.2rem; }
.hinnasto-kuvaus { font-size: 1.1rem; color: var(--text-light); }

.hinnasto-hinta {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sky-dark);
  white-space: nowrap;
  text-align: right;
  flex-shrink: 0;
}
.hinnasto-hinta span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
}

.hinnasto-huomiot {
  padding: 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--gray-bg);
}
.hinnasto-huomio {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.hinnasto-huomio span { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.hinnasto-huomio p   { font-size: 1.1rem; color: var(--text-light); margin: 0; }
.hinnasto-huomio strong { color: var(--text); }

@media (max-width: 560px) {
  .hinnasto-rivi    { flex-direction: column; align-items: flex-start; }
  .hinnasto-hinta   { font-size: 1.2rem; }
  .hinnasto-huomiot { padding: 1rem 1.25rem; }
  .hinnasto-kortti  { margin-top: 1.5rem; }
}

/* ============================================
   GALLERIA (kotiapu.html)
   ============================================ */
.galleria-osio { background: var(--gray-bg); }

.galleria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.galleria-kuva {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.galleria-kuva img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.galleria-kuva:hover img { transform: scale(1.05); }

.galleria-overlay {
  position: absolute; inset: 0;
  background: rgba(26,58,82,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}
.galleria-overlay span {
  font-size: 2rem;
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.3s ease;
}
.galleria-kuva:hover .galleria-overlay { background: rgba(26,58,82,0.45); }
.galleria-kuva:hover .galleria-overlay span { opacity: 1; transform: scale(1); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: pointer;
}
.lightbox.auki { display: flex; }

.lightbox-kuva {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  cursor: default;
}

.lightbox-sulje {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}
.lightbox-sulje:hover { color: var(--sky); }

/* Responsiivisuus */
@media (max-width: 640px) {
  .galleria-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   ESITTELY-SIVU
   ============================================ */
.esittely-osio { background: var(--gray-bg); }

/* Profiili: kuva + nimi */
.esittely-profiili {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
}
.esittely-kuva-kehys {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 5px solid var(--sky);
  box-shadow: 0 6px 24px rgba(74,172,232,0.25);
  overflow: hidden;
  margin: 0 auto 1.25rem;
}
.esittely-kuva-kehys img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.esittely-kuva-placeholder {
  width: 100%; height: 100%;
  background: var(--sky-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.esittely-kuva-placeholder span {
  font-size: 2.5rem; 
}

.esittely-kuva-placeholder p { 
  font-size: 0.78rem;
  color: var(--sky-dark);
  margin: 0; 
}
.esittely-nimi   {
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 0.25rem; 
}

.esittely-titteli {
  font-size: 1.1rem; 
  color: var(--sky-dark);
  font-weight: 600; 
}

/* Tarina-kortti */
.tarina-wrapper {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  background: var(--sky-xlight);
  border-left: 6px solid var(--sky);
  border-radius: var(--radius);
  box-shadow: 6px 6px 24px rgba(74,172,232,0.15);
  padding: 2.5rem 2.75rem;
}

/* Kulmakoristeet */
.kulma {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--sky);
  border-style: solid;
}
.kulma-tl { top: 10px;    left: 14px;   border-width: 3px 0 0 3px; border-radius: 4px 0 0 0; }
.kulma-tr { top: 10px;    right: 10px;  border-width: 3px 3px 0 0; border-radius: 0 4px 0 0; }
.kulma-bl { bottom: 10px; left: 14px;   border-width: 0 0 3px 3px; border-radius: 0 0 0 4px; }
.kulma-br { bottom: 10px; right: 10px;  border-width: 0 3px 3px 0; border-radius: 0 0 4px 0; }

/* Tarina-sisältö */
.tarina-sisalto h2 {
  font-size: 1.5rem;
  color: var(--sky-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--sky-light);
}
.tarina-sisalto h3 {
  font-size: 1.1rem;
  color: var(--sky-dark);
  margin: 1.5rem 0 0.5rem;
}
.tarina-sisalto p {
  font-size: 1.1rem; 
}

@media (max-width: 600px) {
  .tarina-wrapper { padding: 2rem 1.5rem; }
}

/* ============================================
   YHTEYSTIEDOT-SIVU
   ============================================ */

/* Hero */
.yht-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: url('kuvat/yhteystieto_tausta.webp') center 30%/cover no-repeat;
  background-color: var(--sky-dark);
  color: var(--white);
  text-align:center; 
  
}

.yht-hero .page-hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
}
.yht-hero .page-hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.75rem;
}
.yht-hero .page-hero-content p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  max-width: 560px;
  margin: 0 auto;
}

/* Kaksipalstainen layout */
.yht-osio { background: var(--gray-bg); }
.yht-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.yht-vasen { display: flex; flex-direction: column; gap: 1.75rem; }

/* Kortit */
.yht-kortti {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
}
.yht-kortti h2 {
  font-size: 1.2rem;
  color: var(--sky-dark);
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--sky-light);
}

/* Yhteystietorivit */
.yht-rivi {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--sky-xlight);  
}

.yht-alue {
  background: var(--sky-xlight);
  border-radius: 8px;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
}

.yht-rivi:last-child { 
  border-bottom: none; 
}

.yht-ikoni  { 
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px; 
}

.yht-label  { 
  font-size: 0.90rem;
  color: var(--sky);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem; 
}

.yht-arvo   { 
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 500; 
}

a.yht-arvo  { transition: color var(--transition); }
a.yht-arvo:hover { color: var(--sky-dark); }

/* Aukioloajat */
.yht-huomio {
  font-size: 1rem;
  color: var(--sky-dark);
  background: var(--sky-xlight);
  border-radius: 6px;
  padding: 0.5rem 0.85rem;
  margin-bottom: 1rem;
}
.aukiolo-taulukko { width: 100%; border-collapse: collapse; }
.aukiolo-taulukko td {
  padding: 0.55rem 0;
  font-size: 1rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--sky-xlight);
}
.aukiolo-taulukko td:last-child { text-align: right; font-weight: 600; color: var(--text); }
.aukiolo-taulukko tr:last-child td { border-bottom: none; }

/* Some-napit */
.some-rivit { display: flex; gap: 1rem; flex-wrap: wrap; }
.some-nappi {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 0.93rem;
  font-weight: 600;
  transition: all var(--transition);
  text-decoration: none;
}
.some-ikoni { font-size: 1.1rem; font-style: normal; }
.some-fb { background: #1877F2; color: #fff; }
.some-fb:hover { background: #145dbf; }
.some-wa { background: #25D366; color: #fff; }
.some-wa:hover { background: #1eba57; }

/* Kartta */
.yht-kartta-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 88px;
}
.kartta-otsikko {
  font-size: 1.2rem;
  color: var(--sky-dark);
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--sky-light);
}
.kartta-placeholder {
  width: 100%;
  height: 420px;
  background: var(--sky-xlight);
  border-radius: 8px;
  border: 2px dashed var(--sky);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--sky-dark);
  text-align: center;
  padding: 1rem;
}
.kartta-ikoni { font-size: 3rem; }
.kartta-placeholder p    { font-weight: 600; margin: 0; }
.kartta-placeholder small { font-size: 0.82rem; color: var(--text-light); }

/* Kun iframe on lisätty, se saa oikean koon */
.yht-kartta-wrapper iframe {
  width: 100%;
  height: 420px;
  border: none;
  border-radius: 8px;
}

.kartta-suostumus {
  width: 100%;
  height: 420px;
  background: var(--sky-xlight);
  border-radius: 8px;
  border: 2px dashed var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}
.kartta-suostumus-sisalto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 320px;
}
.kartta-suostumus-sisalto p     { margin: 0; font-weight: 600; color: var(--text); }
.kartta-suostumus-sisalto small { color: var(--text-light); font-size: 0.82rem; }
.kartta-suostumus-sisalto a     { color: var(--sky-dark); text-decoration: underline; }
.kartta-kehys {
  width: 100%;
  height: 420px;
  border-radius: 8px;
  overflow: hidden;
}
.kartta-kehys iframe { width: 100%; height: 100%; border: none; }

@media (max-width: 860px) {
  .yht-grid { grid-template-columns: 1fr; }
  .yht-kartta-wrapper { position: static; }
}

/* ============================================
   TIETOSUOJA-SIVU
   ============================================ */
.ts-osio { background: var(--gray-bg); }

.ts-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Sisällysluettelo */
.ts-sisallys { position: sticky; top: 88px; }
.ts-sisallys-kortti {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--sky);
}
.ts-sisallys-kortti h2 {
  font-size: 1rem;
  color: var(--sky-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--sky-light);
}
.ts-sisallys nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.ts-sisallys nav a {
  font-size: 0.88rem;
  color: var(--text-light);
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  border-left: 3px solid transparent;
  transition: all var(--transition);
  line-height: 1.4;
}
.ts-sisallys nav a:hover,
.ts-sisallys nav a.active {
  color: var(--sky-dark);
  background: var(--sky-xlight);
  border-left-color: var(--sky);
}

/* Tietosuojateksti */
.ts-teksti {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 3rem;
  box-shadow: var(--shadow);
}
.ts-paivitetty {
  font-size: 0.85rem;
  color: var(--sky);
  font-weight: 600;
  margin-bottom: 2rem;
}
.ts-luku { margin-bottom: 0.25rem; scroll-margin-top: 100px; padding: 1.5rem 0 0 0; }
.ts-luku:last-child { margin-bottom: 0; }
.ts-luku h2 {
  font-size: 1.15rem;
  color: var(--sky-dark);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--sky-light);
  margin-top: 0;
}
.ts-luku p  { font-size: 0.95rem; margin-bottom: 0.75rem; }
.ts-luku p:last-child { margin-bottom: 0; }
.ts-luku a  { color: var(--sky-dark); text-decoration: underline; }
.ts-luku a:hover { color: var(--sky); }

.ts-lista {
  list-style: none;
  margin: 0.5rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ts-lista + p { margin-top: 0.75rem; }

.ts-lista li {
  font-size: 0.95rem;
  color: var(--text-light);
  padding: 0.3rem 0 0.3rem 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--sky-xlight);
}
.ts-lista li:last-child { border-bottom: none; }
.ts-lista li::before {
  content: "✓";
  color: var(--sky);
  font-weight: 700;
  position: absolute;
  left: 0;
}

@media (max-width: 860px) {
  .ts-layout { grid-template-columns: 1fr; }
  .ts-sisallys { position: static; }
  .ts-teksti { padding: 2rem 1.5rem; }
}

/* ============================================
   UKK-SIVU
   ============================================ */
.ukk-osio { background: var(--gray-bg); }

.ukk-kategoria { margin-bottom: 3rem; }
.ukk-kategoria:last-child { margin-bottom: 0; }

.ukk-kategoria-otsikko {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--sky);
}
.ukk-kategoria-otsikko span { font-size: 1.8rem; }
.ukk-kategoria-otsikko h2  { color: var(--sky-dark); margin: 0; font-size: 1.5rem; }

.ukk-lista {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ukk-kortti {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 5px solid var(--sky);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.ukk-kortti:hover { box-shadow: 0 6px 24px rgba(74,172,232,0.2); }
.ukk-kortti.open  { border-left-color: var(--sky-dark); }

/* Kysymysnappi */
.ukk-kysymys {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  transition: background var(--transition);
}
.ukk-kysymys:hover { background: var(--sky-xlight); }
.ukk-kortti.open .ukk-kysymys { background: var(--sky-xlight); color: var(--sky-dark); }

.ukk-nuoli {
  font-size: 0.75rem;
  color: var(--sky);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.ukk-kortti.open .ukk-nuoli { transform: rotate(180deg); }

/* Lyhyt vastaus – aina näkyvissä */
.ukk-vastaus-lyhyt {
  padding: 0 1.5rem 0.25rem;
}
.ukk-vastaus-lyhyt p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin: 0;
}

/* Pitkä vastaus – avautuu */
.ukk-vastaus-pitka {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
}
.ukk-kortti.open .ukk-vastaus-pitka {
  max-height: 450px;
  padding: 0.5rem 1.5rem 0.25rem;
}
.ukk-vastaus-pitka p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--sky-light);
}

/* Lue lisää -nappi */
.ukk-lue-lisaa {
  display: block;
  margin: 0.75rem 1.5rem 1.1rem;
  background: none;
  border: 2px solid var(--sky);
  color: var(--sky);
  border-radius: 20px;
  padding: 0.4rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  width: fit-content;
}
.ukk-lue-lisaa:hover,
.ukk-kortti.open .ukk-lue-lisaa {
  background: var(--sky);
  color: var(--white);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .values-grid    { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid   { grid-template-columns: 1fr 1fr; }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .palvelut-grid  { grid-template-columns: repeat(2, 1fr); }
  .kotiapu-grid   { grid-template-columns: repeat(2, 1fr); }
  .prosessi-steps { flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
  .prosessi-connector { display: none; }
  
}

@media (max-width: 640px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  .services-grid  { grid-template-columns: 1fr; }
  .values-grid    { grid-template-columns: 1fr 1fr; }
  .reviews-grid   { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; }
  .hero-buttons   { flex-direction: column; }
  .palvelut-grid  { grid-template-columns: 1fr; }
  .kotiapu-grid   { grid-template-columns: 1fr; }
  section { padding: 3.5rem 0; }
  .brand-main, .brand-color { font-size: 0.85rem; }
}

