/* Moderni väripaletti ja asetukset (POC + Hero) */
/* Väripaletti ja perusasetukset */
:root {
  --primary: #4a6741;
  --primary-dark: #385232;
  --accent: #d4e4bc;
  --text-dark: #2c3e2d;
  --light: #f9fbf7;
}

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

body,
html {
  height: 100%;
  font-family: "Open Sans", sans-serif;
  color: var(--text-dark);
  background-color: #f9f9f9;
  scroll-behavior: smooth;
}

h1,
h2,
h3 {
  font-family: "Montserrat", sans-serif;
}

/* Language Switcher */
.lang-switch {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 15px;
  border-radius: 20px;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.lang-switch a:hover,
.lang-switch a.active {
  color: white;
}

.lang-switch .divider {
  color: rgba(255, 255, 255, 0.4);
}

/* Hero-osio */
.hero {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)),
    url("https://resources.mypihlajavesi.fi/wp-content/uploads/2020/08/er%C3%A4maap%C3%A4iv%C3%A4t-2019-kuutamomelonta.jpeg");
  height: 100vh;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 20px;
}

.hero-content {
  background: rgba(0, 0, 0, 0.4);
  padding: 3rem 2rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 800px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

h1 {
  font-size: clamp(2rem, 8vw, 3.5rem);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 800;
}

.date-info {
  font-size: clamp(1.2rem, 5vw, 2rem);
  font-weight: 300;
  color: #d4e4bc; /* Kevyt sammalenvihreä */
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

p.hero-text {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* Laskuri */
#countdown {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.time-unit {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px 10px;
  border-radius: 12px;
  min-width: 100px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.number {
  font-size: 2.5rem;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
  color: white;
}

.label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 8px;
  color: #d4e4bc;
}

/* Painike */
.btn {
  display: inline-block;
  padding: 16px 32px;
  background-color: #556b2f; /* Oliivinvihreä */
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid #556b2f;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: white;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px;
}
.section-title {
  text-align: center;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
}
.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent);
  margin: 20px auto 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}
.card {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(74, 103, 65, 0.1);
  border-bottom: 5px solid var(--accent);
}
.card h3 {
  color: var(--primary-dark);
  margin-bottom: 15px;
}

/* Kartta ja Yhteystiedot */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}

.map-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid #ddd;
  background: #fff;
}
.map-preview-img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
  filter: brightness(0.95);
}

.map-btn-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.1);
  transition: background 0.3s;
}
.map-container:hover .map-preview-img {
  transform: scale(1.05);
}
.map-container:hover .map-btn-wrapper {
  background: rgba(0, 0, 0, 0.3);
}

.btn-map {
  background: var(--primary);
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid white;
  transition: 0.3s;
  cursor: pointer;
}
.btn-map:hover {
  background: white;
  color: var(--primary);
  transform: scale(1.1);
}

/* Lightbox (Modal) */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  animation: zoomIn 0.3s;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.close-btn:hover,
.close-btn:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
}

@media only screen and (max-width: 700px) {
  .lightbox-content {
    width: 100%;
  }
}

.info-list {
  list-style: none;
  margin-top: 20px;
}
.info-list li {
  margin-bottom: 20px;
  font-size: 1.1rem;
  border-left: 3px solid var(--accent);
  padding-left: 15px;
}
.info-list strong {
  color: var(--primary);
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Social Buttons */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  font-size: 1.2rem;
}

.social-btn.facebook {
  background-color: #1877f2;
}

.social-btn.instagram {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 60px 20px;
  margin-top: 0;
}
footer h4 {
  color: white;
  margin-bottom: 10px;
}
footer a.footer-link {
  color: var(--accent);
  text-decoration: none;
}

.copyright {
  margin-top: 40px;
  font-size: 0.75rem;
  opacity: 0.5;
}

.btn-footer {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 28px;
  background-color: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-footer:hover {
  background-color: var(--accent);
  color: var(--text-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

/* Etäisyydet */
.distances-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
}

.distance-item {
  background: rgba(255, 255, 255, 0.8);
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #ddd;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}

.distance-item:hover {
  transform: translateY(-5px);
  background: white;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.distance-value {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
}

.distance-label {
  font-size: 0.9rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
}

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

/* Mobiilimuokkaus */
@media (max-width: 480px) {
  .time-unit {
    min-width: 70px;
    padding: 10px 5px;
  }
  .number {
    font-size: 1.8rem;
  }
  .hero-content {
    padding: 2rem 1rem;
  }
  .container {
    padding: 1.5rem;
  }
}
