body {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(255, 255, 255, 0.3)), url(kuvat/tausta_ss.png);
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #000;
  color: #fff;
}

/* Prevent horizontal overflow on small screens and use border-box sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

h1, h2 {
  margin: 0;
}

.hero {
  position: relative;
  height: 60vh;
  overflow: hidden;
  max-height: 550px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 550px));
  height: 100%;
}

.image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
  padding-left: 80px;
}

h1 {
  font-size: 100px;
  color: #490f3e;
  -webkit-text-stroke: 1px white;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0px;
  right: 0px;
  display: flex;
  justify-content: right;
  width: 100%;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 15px 15px;
  backdrop-filter: blur(5px);
}

.nav-links {
  display: flex;
  gap: 15px;
  list-style: none;
  padding: 5px 10px;
}

.nav-links li a {
  text-decoration: none;
  background-color: rgba(73,15,62,0.5);
  padding: 3px 20px;
  border-radius: 20px;
  color: white;
  font-weight: 400;
  font-size: 17px;
}

.nav-links li a:hover {
  background-color: #ffd700;
  color: #000;
}

/* ===== MOBILE MENU ===== */
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 5px;
}

/* ===== INTRO SECTION ===== */
.intro {
  text-align: center;
  background-color: #000;
  padding: 50px 300px;
}

.intro h2 {
  color: #ffd700;
  margin-bottom: 20px;
  font-size: 35px;
}

.intro p {
  max-width: 1200px;
  font-size: 22px;
  margin: 30px auto 10px;
}

.cta {
  display: inline-block;
  background-color: #ffd700;
  color: #000;
  padding: 25px 65px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 20px;
  margin-top: 25px;
}

.cta:hover {
  background-color:goldenrod;
}

/* ===== PRICING SECTION ===== */
.pricing {
  background-color: #222;
  color: #000;
  text-align: center;
  padding: 50px 5px;
}

.pricing h2 {
  color: #ffd700;
  font-size: 35px;
  margin-top: 60px;
  margin-bottom: 80px;
}

.pricing-columns {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 40px;
}

.pricing-item {
  flex: 0 1 45%; 
  max-width: 550px;
  background: whitesmoke;
  color: #000;
  border-radius: 10px;
  padding: 25px;
  text-align: left;
}

.pricing h3 {
  color: #490f3e;
  font-size: 27px;
  margin-top: 25px;
}

.pricing-item p {
  font-size: 20px;
  margin-bottom: 20px;
}

.pricing-item ul {
  list-style: none;
  padding: 20px;
  margin: 15px 0 0;
}

.pricing-item li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 22px;
}

@media (max-width: 850px) {
  .pricing-item {
    flex: 0 1 100%;
    max-width: 100%;
  }
}

/* ===== ABOUT SECTION ===== */
.about {
  background-color: #490f3e;
  text-align: center;
  padding: 60px 20px;
}
.about h2 {
  color: white;
  font-size: 35px;
  margin-top: 60px;
  margin-bottom: 80px;
}

.about-columns {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
  margin-left: 60px;
  margin-right: 60px;
}

.about-item {
  background: #601b55;
  color: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  text-align: left;
  box-sizing: border-box;
}

.about-inner {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.about-inner img {
  width: 320px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 220px;
  margin-left: 40px;
}

.about-text h3 {
  color: #ffd700;
  font-size: 30px;
  margin-top: 25px;
  margin-bottom: 18px;
  margin-left: 50px;
}

.about-text p {
  margin: 40px;
  font-size: 22px;
}

@media (max-width: 850px) {
  .about-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .about-inner img {
    width: 90%;
    max-width: 300px;
    flex: 0 0 auto;
    margin-left: 0;
  }
  .about-columns {
    margin-left: 20px;
    margin-right: 20px;
  }
  .about-text h3 {
    margin-left: 0;
  }
  .about-text p {
    margin: 20px;
    font-size: 18px;
  }
}

/* ===== CONTACT SECTION ===== */
.contact {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.contact h2 {
  color: #ffd700;
  font-size: 35px;
  margin-bottom: 30px;
}

.contact p {
  font-size: 22px;
  max-width: 800px;
  margin: 30px auto;
}

.contact a {
  color: #ffd700;
  text-decoration: none;
  font-size: 22px;
  padding: 20px 20px;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.social-icons a {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.social-icons img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: brightness(1);
}

.social-icons a:hover img {
  transform: scale(1.15);
  filter: brightness(1.2);
}

@media (max-width: 768px) {
  .social-icons img {
    width: 40px;
    height: 40px;
  }
}

/* ===== FOOTER ===== */
footer {
  background-color: #000;
  text-align: center;
  padding: 35px;
  color: #aaa;
  font-size: 18px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 850px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.8);
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 30px;
    border-radius: 15px;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    width: 10%;
    padding: 10px;
  }

  h1 {
    font-size: 80px;
  }

  .intro {
    padding: 40px 15px;
  }

  .overlay {
    padding-left: 0;
    align-items: normal;
  }

}

@media (max-width: 850px) {
  .contact a[href^="tel:"],
  .contact a[href^="mailto:"] {
    display: block;
    margin-top: 0.25rem;
  }
}