body {
  font-family: Arial, sans-serif;
  color: #212427;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.5rem 2rem 0.75rem;
  background: #f7f6f3;
  border-bottom: 1px solid #e1dbd1;
  gap: 2rem;
}

.logo a {
  display: inline-flex;
  align-items: center;
}

.logo img {
  height: 150px;
  width: auto;
  display: block;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav {
  margin-top: 1.75rem;
}
nav a {
  text-decoration: none;
  color: #212427;
  display: inline-flex;
  align-items: center;
}

.nav-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  background: #212427;
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.nav-cta a:hover {
  background: #101113;
}
.hero {
  text-align: center;
  padding: 100px 20px;
  background: url('taustakuva.jpg') no-repeat center/cover;
  color: white;
}

.hero--personal {
  background: linear-gradient(135deg, #f7f7f7 0%, #ffffff 45%, #eef3f8 100%);
  color: #212427;
  text-align: left;
  padding: 120px 20px;
  box-sizing: border-box;
}

.hero--personal .hero-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.hero-personal-content {
  max-width: 520px;
  justify-self: center;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: #6c7278;
}

.hero--personal h1 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.hero-subtext {
  font-size: 1rem;
  color: #4c5054;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-actions .btn {
  margin-top: 0;
}

.hero-portrait {
  justify-self: center;
  width: min(600px, 90vw);
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 21, 31, 0.12);
  border-radius: 24px;
  overflow: hidden;
}

.hero-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-compact {
  padding: 60px 20px;
}
.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: #212427;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: #101113;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #212427;
  border: 1px solid #212427;
}

.btn-secondary:hover {
  background: #212427;
  color: #fff;
}
footer {
  text-align: center;
  padding: 20px;
  background: #f4f4f4;
  margin-top: 40px;
}

.contact-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 60px 20px 100px;
}

.contact-intro {
  text-align: center;
  margin-bottom: 48px;
}

.contact-intro h1 {
  margin-bottom: 16px;
  font-size: 2.75rem;
}

.contact-intro p {
  margin: 0 auto;
  max-width: 620px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #4c5054;
}

.contact-layout {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  align-items: start;
}

.contact-details h2,
.contact-form-section h2 {
  margin-top: 0;
  font-size: 1.8rem;
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-info li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-info span {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c7278;
}

.contact-info a {
  color: #212427;
  text-decoration: none;
  font-weight: 600;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-info p {
  margin: 0;
  font-weight: 600;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 12px 14px;
  border: 1px solid #d4d7dc;
  border-radius: 8px;
  font: inherit;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: #212427;
  box-shadow: 0 0 0 3px rgba(33, 36, 39, 0.12);
  outline: none;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form button {
  justify-self: start;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  background: #212427;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-form button:hover {
  background: #101113;
  transform: translateY(-2px);
}

footer a {
  color: #212427;
  text-decoration: none;
}

.footer-links {
  margin-top: 8px;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.footer-links span {
  color: #9a9ea2;
}

.portfolio-gallery {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 20px;
}

.portfolio-intro {
  text-align: center;
  margin-bottom: 40px;
}

.portfolio-intro h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.portfolio-intro p {
  margin: 0 auto;
  max-width: 640px;
  color: #555;
}

.portfolio-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portfolio-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.portfolio-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.portfolio-item figcaption {
  padding: 16px;
  font-weight: bold;
  text-align: center;
  letter-spacing: 0.5px;
}

.pricing {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 20px;
}

.pricing-intro {
  text-align: center;
  margin-bottom: 40px;
}

.pricing-intro h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.pricing-intro p {
  margin: 0 auto;
  max-width: 520px;
  color: #555;
}

.pricing-list {
  list-style: none;
  display: grid;
  gap: 24px;
  padding: 0;
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.pricing-list li {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-list li:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.pricing-list h3 {
  margin: 0;
  font-size: 1.3rem;
}

.pricing-description {
  margin: 0;
  color: #555;
  flex: 1;
}

.pricing-value {
  margin: 0;
  font-size: 1.6rem;
  font-weight: bold;
  color: #212427;
}

.legal {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 20px 100px;
  line-height: 1.7;
  color: #212427;
}

.legal h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.legal h2 {
  margin-top: 2.5rem;
  font-size: 1.6rem;
}

.legal ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.legal li {
  margin-bottom: 0.5rem;
}

.legal a {
  color: #212427;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  header {
    flex-wrap: wrap;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 1rem;
  }

  .logo {
    flex: 0 0 auto;
  }

  .logo img {
    height: 120px;
  }

  nav {
    margin-top: 0;
    flex: 1 1 auto;
  }

  nav ul {
    justify-content: flex-end;
    gap: 1rem;
  }

  .nav-cta a {
    padding: 0.5rem 1.1rem;
  }

  .hero--personal {
    text-align: center;
    padding: 100px 20px;
  }

  .hero--personal .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-personal-content {
    justify-self: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-details {
    order: 2;
  }
}

@media (max-width: 600px) {
  .portfolio-intro h2 {
    font-size: 2rem;
  }

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

  .pricing-intro h2 {
    font-size: 2rem;
  }

  .pricing-list {
    grid-template-columns: 1fr;
  }

  .hero--personal h1 {
    font-size: 2.4rem;
  }

  .contact-intro h1 {
    font-size: 2.2rem;
  }

  header {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 0.75rem 1rem;
    gap: 0.5rem;
  }

  .logo img {
    height: 95px;
  }

  nav {
    flex: 1 1 auto;
    margin-top: 0;
    display: flex;
    justify-content: center;
  }

  nav ul {
    gap: 0.5rem;
    flex-wrap: nowrap;
    justify-content: center;
  }

  nav a {
    font-size: 0.95rem;
  }

  .nav-cta a {
    padding: 0.45rem 0.85rem;
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .hero--personal {
    padding: 80px 16px 90px;
  }

  .hero--personal .hero-inner {
    row-gap: 40px;
  }

  .hero-portrait {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  .hero-actions {
    flex-direction: column;
  }
}
