:root {
  --brand: #00a7ba;
  --text: #222;
  --bg: #ffffff;
  --bg-soft: #e9ecef;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


/* =========================
   Header
   ========================= */

.site-header {
  border-bottom: 3px solid var(--brand);
  background: #fff;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  display: block;
  max-height: 120px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--brand);
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  border-bottom-color: var(--brand);
}

.main-nav a.active {
  border-bottom-color: var(--brand);
}

/* =========================
   Hero
   ========================= */

.hero {
  /*background: linear-gradient(to bottom, var(--brand), #0FADBE);*/
  color: #fff;
  background-color: var(--brand);
  padding: 3rem 1rem;
  text-align: center;
  
  background-image: url('../img/leiska2.webp'), linear-gradient(to bottom, var(--brand), #0FADBE);
  background-repeat: no-repeat; 
  background-position: top center, center; /*center center;*/
  background-size: contain, cover; /*100%;*/ 
  
  min-height: 250px;
  
  display: block; /* flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;*/

}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  margin-top: 130px;
}


/* =========================
   Yleinen sisältö
   ========================= */

main {
  flex: 1;
}

.page, .news {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.page, .news {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1rem;
}


/* =========================
   Ajankohtaista / uutiset
   ========================= */

.news-list {
  margin-top: 2rem;
}

.news-item {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.news-item time {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.25rem;
}


/* =========================
   Palvelut
   ========================= */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.6rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.service-card h3 {
  margin-bottom: 0.5rem;
  color: var(--brand);
}


/* =========================
   Hinnasto
   ========================= */

.price-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.price-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand);
}


/* =========================
   Yhteystiedot
   ========================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-map iframe {
  width: 100%;
  height: 300px;
  border: 0;
}


/* =========================
   Footer
   ========================= */

.site-footer {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #ffffff;
  text-align: center;
  padding: 1rem 1rem;
  background: var(--brand);
}


/* =========================
   Mobiili
   ========================= */

@media (max-width: 768px) {

  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

   .hero h1 {
    font-size: 1.4rem;
    margin-top: 100px; 
    text-shadow: 1px 1px 4px rgba(0,0,0,0,3);
    
  }
  
   .hero h2 {
    font-size: 1.1rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0,3);
    
  }    
  
  .hero {
    min-height: 100px;
    background-position: center 20px; 
    padding: 0.4rem 1rem;
    background-size: contain;
  }

  .contact-info {
    text-align: center;
    /*justify-content: center;*/
  }
  
  .page h1 {
      text-align: center;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.btn-primary {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: #008fa0;
}
