/* Main Styles for Haitariovi.fi */

/* Global Styles */
:root {
  --primary-color: #0066cc;
  --secondary-color: #004d99;
  --accent-color: #ff9900;
  --light-gray: #f5f5f5;
  --dark-gray: #333333;
  --text-color: #212529;
  --white: #ffffff;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 15px auto 0;
}

/* Language Selector */
.language-selector {
  position: fixed;
  top: 10px;
  right: 20px;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 5px 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.lang-btn {
  background: none;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.lang-btn.active {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Loading Animation */
.loading-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.folding-door {
  width: 50%;
  height: 100%;
  position: absolute;
  background-color: var(--primary-color);
  transition: transform 1.5s ease-in-out;
}

.folding-door.left {
  left: 0;
  transform-origin: left center;
}

.folding-door.right {
  right: 0;
  transform-origin: right center;
}

.loading-animation.loaded .folding-door.left {
  transform: perspective(1200px) rotateY(90deg);
}

.loading-animation.loaded .folding-door.right {
  transform: perspective(1200px) rotateY(-90deg);
}

/* Header */
.site-header {
  padding: 20px 0;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo h1 {
  margin: 0;
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
}

.main-nav {
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  margin-left: 20px;
}

.nav-list a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background-color: var(--light-gray);
  padding: 80px 0;
}

.hero h2 {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 10px 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Products Section */
.products {
  background-color: var(--white);
}

.product-category {
  margin-bottom: 30px;
}

.card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.card-body ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Calculator Section */
.calculator {
  background-color: var(--light-gray);
}

.calculator-placeholder {
  text-align: center;
  padding: 50px;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Energy Efficiency Section */
.energy {
  background-color: var(--white);
}

.energy-calculator-placeholder {
  text-align: center;
  padding: 50px;
  background-color: var(--light-gray);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact {
  background-color: var(--light-gray);
}

.contact-info {
  margin-bottom: 30px;
}

.contact-info h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.special-discount {
  margin-bottom: 30px;
}

.trust-badges {
  background-color: var(--white);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.trust-badges h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.badge-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: 40px 0;
}

.site-footer h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--white);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer ul li {
  margin-bottom: 10px;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--accent-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .nav-list {
    flex-direction: column;
    align-items: flex-end;
  }
  
  .nav-list li {
    margin-left: 0;
    margin-bottom: 10px;
  }
  
  .hero {
    padding: 40px 0;
    text-align: center;
  }
  
  .hero h2 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 18px;
  }
  
  .section-title {
    font-size: 28px;
  }
}

@media (max-width: 576px) {
  .hero h2 {
    font-size: 28px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .card-img-top {
    height: 150px;
  }
}
