/* =====================
   RESET & PERUSASETUKSET
===================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

body {
  color: #1f2933;
  background: #f5f7fa;
  line-height: 1.5;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}


/* =====================
   HERO
===================== */

.hero {
  position: relative;
  height: 90vh;
  background-size: cover;
  background-position: center;
}

.overlay {
  position: relative;
  height: 100%;
  background: rgba(10, 20, 30, 0.65);
  display: flex;
  align-items: center;
}

/* LOGO OIKEAAN YLÄKULMAAN */
.header-logo {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 20;
}

.header-logo img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.hero-avainlippu {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 20;
  pointer-events: none;
}

.hero-avainlippu img {
  display: block;
  width: 110px;
  height: auto;
  max-width: none;
  object-fit: contain;
}



/* HERO TEKSTIT */

.hero h1 {
  color: #ffffff;
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.hero h2 {
  color: #ffffff;
  font-size: 2.6rem;
  max-width: 800px;
  margin-bottom: 20px;
}

.hero p {
  color: #e5e7eb;
  max-width: 600px;
  margin-bottom: 30px;
}

.buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}


/* =====================
   BUTTONIT
===================== */

.btn {
  padding: 14px 26px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn.primary {
  background: #f97316;
  color: #ffffff;
}

.btn.primary:hover {
  background: #ea580c;
}

.btn.secondary {
  border: 2px solid #ffffff;
  color: #ffffff;
}

.btn.secondary:hover {
  background: rgba(255,255,255,0.15);
}

.btn.small {
  margin: 20px;
  padding: 10px 18px;
  font-size: 0.9rem;
  background: #f97316;
  color: #ffffff;
}

.btn.small:hover {
  background: #ea580c;
}


/* =====================
   SERVICES / KORTIT
===================== */

.services {
  padding: 80px 0;
}

.services h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* LOGOT KORTEISSA */
.card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  padding: 20px;
  background: #ffffff;
  display: block;
}

.card h3 {
  margin: 20px;
  font-size: 1.2rem;
}

.card p {
  margin: 0 20px 10px;
  color: #4b5563;
  flex-grow: 1;
}


/* =====================
   STORY
===================== */

.story {
  background: #0f172a;
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.story h2 {
  font-size: 2rem;
}

.story p {
  max-width: 700px;
  margin: 20px auto 0;
  color: #cbd5e1;
  font-size: 1.05rem;
}


/* =====================
   FOOTER
===================== */

footer {
  background: #020617;
  color: #9ca3af;
  padding: 30px 0;
  text-align: center;
  font-size: 0.9rem;
}


/* =====================
   RESPONSIVE
===================== */

@media (max-width: 768px) {

  .hero h2 {
    font-size: 2rem;
  }

  .header-logo {
    top: 20px;
    right: 20px;
  }

  .header-logo img {
    height: 32px;
  }

  .services {
    padding: 60px 0;
  }
}
