/* ===========================================================
   SIMPPELI SIJOITTAMINEN – YHTEINEN ULKOASU
   =========================================================== */

:root {
  --bg: #ffffff;
  --text: #000000;
  --gold: #f5c542;
  --nav-bg: #111;
  --nav-border: #333;
  --teksti-vaalea: #fff;
  --card-shadow: 0 2px 6px rgba(0,0,0,.1);
}

/* ===== YLEISET ASETUKSET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-top: 70px; /* tila navbarille */
}

/* ===========================================================
   NAVBAR
   =========================================================== */
nav.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  color: var(--teksti-vaalea);
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: .6rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.6rem;
  text-decoration: none;
  letter-spacing: 1px;
  font-family: "Playfair Display", serif;
  transition: color .3s ease;
}
.brand:hover { color: #fff; }
.menu {
  display: flex;
  list-style: none;
  gap: .8rem;
}
.menu a {
  color: var(--teksti-vaalea);
  text-decoration: none;
  font-weight: 600;
  padding: .6rem .9rem;
  border-radius: .4rem;
  transition: all .3s ease;
}
.menu a:hover {
  background: rgba(245, 197, 66, 0.15);
  color: var(--gold);
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #000;
  border: 1px solid #333;
  border-radius: .4rem;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all .25s ease;
  padding: .3rem 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
.menu li:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  background: url('header.png') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
}
.hero h1, .hero p {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: .5rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .5);
  font-family: "Playfair Display", serif;
}
.hero p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
  background: rgba(0, 0, 0, .5);
  padding: .8rem 1rem;
  border-radius: .4rem;
}

/* ===========================================================
   SISÄLTÖ
   =========================================================== */
main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}
h2.section-title {
  background: #000;
  color: #fff;
  font-weight: 700;
  padding: .6rem 1rem;
  border-radius: 6px;
  margin-top: 2rem;
  text-transform: uppercase;
  border-left: 6px solid var(--gold);
}
.section {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  margin-bottom: 1.5rem;
  padding: 1rem;
}
.section img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: .5rem;
}

/* ===========================================================
   KORTIT
   =========================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  text-decoration: none;
  color: #000;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.card h3 {
  margin: .5rem 1rem;
  color: #0d3b1e;
}
.card p {
  margin: 0 1rem 1rem 1rem;
  font-size: .9rem;
}

/* ===========================================================
   FOOTER
   =========================================================== */
footer {
  background: #111;
  color: #ddd;
  font-size: 0.95rem;
  padding: 2rem 1rem 1rem 1rem;
  margin-top: 3rem;
}
.footer-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-col h3 { color: var(--gold); margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: #ddd; text-decoration: none; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 2rem;
  padding-top: 1rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  color: #aaa;
  font-size: .9rem;
}
.footer-bottom a { color: #aaa; text-decoration: none; margin-right: .6rem; }
.footer-bottom a:hover { color: var(--gold); }
.bottom-left { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.bottom-right { text-align: right; }

/* 🔹 Uutiskirjeen laatikko ja hover-efekti */
.newsletter-iframe-wrapper {
  background: #1a1a1a;
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 0 20px rgba(245,197,66,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.newsletter-iframe-wrapper:hover {
  transform: scale(1.01);
  box-shadow: 0 0 25px rgba(245,197,66,0.25);
}
.newsletter-iframe-header {
  text-align: center;
  margin-bottom: 0.8rem;
}
.newsletter-iframe-header h4 {
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.newsletter-iframe-header p {
  font-size: 0.9rem;
  color: #ccc;
  margin: 0;
}
.newsletter-iframe iframe {
  border-radius: 8px;
  background: #fff;
}

/* 🔹 Peittää Google Forms -yläosan */
.newsletter-iframe {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}
.newsletter-iframe .iframe-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 210px; /* 🔹 Peittää kaiken ylimääräisen, näkyy vain sähköpostikenttä */
  background: linear-gradient(to bottom, #1a1a1a 75%, transparent);
  z-index: 2;
  pointer-events: none;
}



/* ===========================================================
   MOBIILI
   =========================================================== */
@media (max-width: 700px) {
  .hero { padding: 3.5rem 1rem; }
  .hero h1 { font-size: 2.2rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: .5rem; }
  .bottom-right { text-align: center; }
}
