* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

header {
  position: sticky;    
  top: 0;
  z-index: 1002;        
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar {
  position: relative;    
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10%;
  z-index: 1002;         
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5em;
  font-weight: bold;
  color: #333;
}

.logo-icon {
  height: 30px;
  width: auto;
  margin-right: 10px;
  color: #8bc34a;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #8bc34a
}

.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: #8bc34a;
}

.menu-toggle {
  display: none;
  font-size: 1.8em;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  background-image: url('img/mantymetsa_vaaka.webp');
  background-size: cover;
  background-position: bottom; 
  background-repeat: no-repeat;
  position: relative;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  line-height: 1.2;
}

.hero-content h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 400;
  line-height: 1.4;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.btn {
  background: #8bc34a;
  color: #fff;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1rem;
  transition: background 0.3s;
}

.btn:hover {
  opacity: .9;
}

/* Services index.html*/
.services {
  padding: 60px 10%;
  background: #ffffff;
}

.services-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.services-media img {
  width: 100%;
  max-height: 500px;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.services-content h3 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #333;
}

.services-content h4 {
  font-size: 1.1rem;
  margin: 20px 0 10px;
  font-weight: 600;
  color: #333;
}

.service-list {
  list-style: disc inside;
  margin-bottom: 20px;
}

.services-link {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  color: #8bc34a;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.services-link:hover {
  border-color: #8bc34a;
}

/* Services-osio: mobiiliystävällinen layout */
@media (max-width: 900px) {
  .services { 
    padding: 40px 6%;
  }

  .services-inner {
    grid-template-columns: 1fr;   /* yksi palsta */
    gap: 24px;                     /* tiiviimpi väli */
    align-items: start;
  }

  .services-media img {
    max-height: 380px;             /* hillitympi korkeus mobiilissa */
    border-radius: 12px;
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .services-content {
    text-align: center;            /* keskitetty ingressi + linkki */
  }

  .services-content h3 {
    font-size: clamp(1.6rem, 4vw, 2rem);
    margin-bottom: 10px;
  }

  .services-content h4 {
    font-size: 1rem;
    margin: 18px 0 8px;
  }

  .service-list {
    text-align: left;              /* luettelo silti vasemmalle */
    max-width: 60ch;
    margin: 0 auto 16px;
    padding-left: 1rem;            /* tilaa bulleteille */
  }

  .services-link {
    display: inline-block;
    margin-top: 12px;
  }
}

/* Pienet puhelimet */
@media (max-width: 480px) {
  .services { 
    padding: 32px 5%;
  }
  .services-media img {
    max-height: 300px;
    border-radius: 10px;
  }
}

.contact {
  position: relative;
  min-height: 100vh;                 
  display: grid;                      
  place-items: center;                
  padding: 40px 10%;                  
  color: #fff;

  background-image:
    linear-gradient(0deg, rgba(10,15,20,0.55), rgba(10,15,20,0.25)),
    url('img/moottorisaha.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  scroll-margin-top: 80px;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,15,20,0.15), rgba(10,15,20,0.35));
  pointer-events: none;
  z-index: 0;
}

.contact-inner {
  position: relative;                 
  z-index: 1;
  width: min(760px, 100%);           
  margin: 0;                          
  background: rgba(255,255,255,0.86);
  color: #1f2937;
  border-radius: 14px;
  padding: clamp(24px, 3.5vw, 36px);
  box-shadow: 0 10px 30px rgba(2,6,23,0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.65);
}

.contact h3 {
  font-size: clamp(1.8rem, 1.2vw + 1.2rem, 2.2rem);
  margin-bottom: 12px;
}

.contact p {
  margin-bottom: 14px;
  font-size: 1.05rem;
  line-height: 1.65;
}

.contact-people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin: 8px 0 6px;
}

.person h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  font-weight: 700;
  color: #111827;
}

.contact a {
  color: #1363df;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.contact a:hover {
  color: #0f4fb4;
  border-color: #0f4fb4;
}

/* Footer */
.site-footer {
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 18px 0;
  color: #6b7280;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.footer-inner {
  padding: 0 10%;
  max-width: 1200px;
  margin: 0 auto;

  display: flex;
  justify-content: space-between; 
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;                 
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;  
  text-align: center;    
}

.footer-left a,
.footer-right a {
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
  transition: color .2s ease;
}

.footer-left a:hover,
.footer-right a:hover {
  color: #8bc34a;                 
}

@media (max-width: 600px) {
  .footer-inner {
    justify-content: center;
    text-align: center;
    gap: 6px 12px;
  }
  .footer-right {
    width: 100%;
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .footer-inner {
    justify-content: center;
    text-align: center;
    gap: 6px 12px;
  }
}


@media (max-width: 680px) {
  .contact-people { grid-template-columns: 1fr; }
}

.nav-links a.active{ color: #8bc34a; }
.nav-links a.active:hover{ color: #8bc34a; }

.navbar .logo,
.navbar .logo:link,
.navbar .logo:visited,
.navbar .logo:hover,
.navbar .logo:active {
  text-decoration: none;
  color: inherit;
}


@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;           
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1003;       
  }

  .nav-links li {
    margin: 15px 0;
    text-align: center;
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
  }

  .nav-links.active {
    display: flex;
  }
}

@media (max-width: 900px) {
  .logo { font-size: 1.1rem; }
  .logo-icon { height: 24px; margin-right: 8px; }
}

@media (max-width: 400px) {
  .logo { font-size: 0.95rem; }
  .logo-icon { height: 20px; }
}


