/* Modern One-Page CSS for Iltanen Consulting */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
  --primary-color: #0f172a;
  --secondary-color: #3b82f6;
  --accent-color: #2563eb;
  --text-color: #334155;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --border-radius: 12px;
  --transition: all 0.3s ease;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1,
h2,
h3,
h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

a {
  text-decoration: none;
  color: var(--accent-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  box-sizing: border-box;
}

.logo img {
  height: 50px;
  transition: var(--transition);
}

.logo img:hover {
  transform: scale(1.05);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1rem;
}

.nav-links li a:hover {
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('../../images/Kuvapankki/Tampere.jpg') center/cover no-repeat;
  padding: 0 20px;
  margin-top: 80px;
  /* Offset for header */
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 2rem;
  color: #e2e8f0;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent-color);
  color: white;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
  transition: var(--transition);
}

.btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  color: white;
}

/* Sections General */
section {
  padding: 5rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

section.bg-light {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

.service-block {
  margin-top: 5rem;
}

.service-block:first-child {
  margin-top: 0;
}

.service-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Cards */
.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  border: 1px solid #e2e8f0;
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: var(--secondary-color);
}

.card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  object-fit: cover;
  height: 200px;
}

.card h3 {
  font-size: 1.5rem;
}

/* Profile Image */
.profile-img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.value-item {
  background: #f1f5f9;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
}

/* Contact iframe container */
.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

/* Footer */
footer {
  background: var(--primary-color);
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

footer p {
  opacity: 0.8;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    padding: 1rem;
  }

  .nav-links {
    margin-top: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 3rem 5%;
  }

  .section-title {
    font-size: 2rem;
  }

  .service-block {
    margin-top: 3rem;
  }

  .service-title {
    font-size: 1.5rem;
  }
}