/* Talpa Projekti Website Styles */

/* CSS Custom Properties */
:root {
  --primary-green: #4a7c59;
  --accent-gold: #f4b942;
  --warm-brown: #8b5a3c;
  --light-cream: #f8f6f0;
  --text-dark: #2c3e35;
  --text-light: #6b7c73;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-cream);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* Image Styles */
.content-image {
  width: 100%;
  max-width: 500px;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow);
  margin: 2rem auto;
  display: block;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.image-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow);
  transition: transform 0.3s ease;
}

.image-grid img:hover {
  transform: scale(1.05);
}

/* Icon Styles */
.service-icon {
  text-align: center;
  margin-bottom: 1.5rem;
}

.service-icon i {
  font-size: 3rem;
  color: var(--primary-green);
  background: linear-gradient(135deg, var(--primary-green), var(--accent-gold));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon i {
  transform: scale(1.1);
}

/* Navigation Icons */
.nav-link i {
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

.logo i {
  margin-right: 0.5rem;
  color: var(--accent-gold);
}

.logo-image {
  height: 50px;
  margin-top: 10px;
  margin-right: 0.5rem;
}

/* Hero Icons */
.hero h1 i {
  margin-right: 0.75rem;
  color: var(--accent-gold);
}

/* Section Title Icons */
.section-title i {
  margin-right: 0.75rem;
  color: var(--accent-gold);
}

/* Content Section Icons */
.content-section h3 i {
  margin-right: 0.75rem;
  color: var(--accent-gold);
}

/* Button Icons */
.cta-button i,
.submit-button i {
  margin-right: 0.5rem;
}

/* Form Label Icons */
.form-group label i {
  margin-right: 0.5rem;
  color: var(--primary-green);
  width: 1rem;
  text-align: center;
}

/* Contact Info Icons */
.contact-info h3 i {
  margin-right: 0.5rem;
  color: var(--accent-gold);
}

.contact-info p i {
  margin-right: 0.5rem;
  color: var(--primary-green);
  width: 1rem;
  text-align: center;
}

.contact-info ul li i {
  margin-right: 0.5rem;
  color: var(--primary-green);
  width: 1rem;
  text-align: center;
}

/* Header Styles */
.header {
  background-color: var(--white);
  box-shadow: 0 2px 10px var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-green);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-green);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-green);
}

/* Main Content */
.main-content {
  margin-top: 70px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(74, 124, 89, 0.85), rgba(139, 90, 60, 0.85));
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(74, 124, 89, 0.5), rgba(139, 90, 60, 0.5));
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

/* Hero backgrounds for different pages */
.hero.hero-home {
  background-image: url('../img/1b.jpg');
}

.hero.hero-about {
  background-image: url('../img/2a.jpg');
}

.hero.hero-services {
  background-image: url('../img/3a.jpg');
}

.hero.hero-contact {
  background-image: url('../img/3b.jpg');
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2rem;
  color: var(--light-cream);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-gold);
  color: var(--text-dark);
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(244, 185, 66, 0.3);
}

/* Section Styles */
.section {
  padding: 4rem 0;
}

.section:nth-child(even) {
  background-color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-green);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow);
}

.service-card h3,
.service-card h4 {
  color: var(--primary-green);
  margin-bottom: 1rem;
}

/* Content Sections */
.content-section {
  margin-bottom: 3rem;
}

.content-section h3 {
  color: var(--primary-green);
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Contact Form */
.contact-form {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e1e1e1;
  border-radius: 5px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-green);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-button {
  background-color: var(--primary-green);
  color: var(--white);
  padding: 1rem 2rem;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.submit-button:hover {
  background-color: var(--warm-brown);
}

/* Contact Info */
.contact-info {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow);
  margin-bottom: 2rem;
}

.contact-info h3 {
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background-color: var(--text-dark);
  color: var(--light-cream);
  padding: 2rem 0;
  text-align: center;
}

.footer p {
  color: var(--light-cream);
  margin: 0;
}

.footer i {
  margin-right: 0.5rem;
  color: var(--accent-gold);
}

.footer a {
  color: var(--accent-gold);
  text-decoration: none;
}

.footer-image {
  height: 4rem;
  margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px var(--shadow);
  }

  .nav-menu.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero {
    padding: 3rem 0;
    background-attachment: scroll;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 2rem 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 1rem;
  }

  .service-icon i {
    font-size: 2.5rem;
  }

  .nav-link i {
    margin-right: 0.25rem;
  }

  .content-image {
    height: 250px;
  }

  .image-grid {
    grid-template-columns: 1fr;
  }

  .image-grid img {
    height: 180px;
  }

  /* Responsive grid layouts */
  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Responsive contact form grid */
  .container > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .service-icon i {
    font-size: 2rem;
  }

  .hero h1 i,
  .section-title i,
  .content-section h3 i {
    display: block;
    margin-bottom: 0.5rem;
    margin-right: 0;
  }

  .content-image {
    height: 200px;
  }

  .image-grid img {
    height: 150px;
  }
} 