/* Synapsi - Static Site Styles */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Lato:wght@400;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  color: #333;
  background: #fff;
}

a {
  color: #333;
  text-decoration: none;
}

a:hover {
  color: #555;
}

/* ---- HEADER / NAV ---- */
header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Läpinäkyvä header etusivulla taustakuvan päällä */
header.header-transparent {
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  position: relative;
}

header.header-transparent nav ul li a {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

header.header-transparent nav ul li a:hover,
header.header-transparent nav ul li a.active {
  border-bottom-color: #fff;
}

.logo img {
  height: 45px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul li a {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #333;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
  border-bottom-color: #333;
}

/* ---- MAIN CONTENT ---- */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 40px 80px;
}

/* ---- FOOTER ---- */
footer {
  background: #f7f7f7;
  border-top: 1px solid #e5e5e5;
  text-align: center;
  padding: 30px 20px;
  font-size: 13px;
  color: #777;
  line-height: 1.8;
}

/* ---- HEADINGS ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Archivo Black', Arial, sans-serif;
  font-weight: 400;
}

/* ---- HOME PAGE ---- */
.hero-bg {
  background-image: url('images/PosterB.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
}

.hero {
  padding: 60px 40px 80px;
  max-width: 960px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 24px;
  line-height: 1.4;
  color: #333;
  text-shadow: none;
}

.hero p {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  max-width: 680px;
  text-shadow: none;
}

/* ---- PORTFOLIO LIST ---- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 10px;
}

.portfolio-card {
  display: block;
  text-decoration: none;
  color: #333;
}

.portfolio-card:hover .card-title {
  text-decoration: underline;
}

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

.card-title {
  font-size: 14px;
  font-weight: 500;
  margin-top: 10px;
  line-height: 1.4;
}

/* ---- PORTFOLIO DETAIL ---- */
.portfolio-detail h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 30px;
}

.portfolio-detail .images img {
  width: 100%;
  display: block;
  margin-bottom: 16px;
}

.portfolio-meta {
  margin-top: 30px;
  font-size: 15px;
  line-height: 2;
  color: #444;
}

.portfolio-meta strong {
  color: #222;
}

.portfolio-meta a {
  color: #333;
  text-decoration: underline;
}

.portfolio-detail .description {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}

.back-link {
  display: inline-block;
  margin-bottom: 30px;
  font-size: 14px;
  color: #666;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
  padding-bottom: 2px;
}

.back-link:hover {
  color: #333;
  border-bottom-color: #333;
}

/* ---- CONTACT PAGE ---- */
.contact-bg {
  background-image: url('images/tausta.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.contact-detail {
  margin-top: 10px;
  font-size: 16px;
  line-height: 2.2;
  color: #444;
}

.contact-detail strong {
  color: #222;
}

.contact-detail a {
  color: #333;
  text-decoration: underline;
}

/* ---- PAGE TITLE ---- */
h1.page-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 40px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  header {
    padding: 0 20px;
    flex-wrap: wrap;
    height: auto;
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 12px;
  }

  nav ul {
    gap: 16px;
  }

  main {
    padding: 40px 20px 60px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}
