/* Main CSS file for EnviroNeo static website */

/* Base styles and CSS reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

svg {
  width: 12px;
  height: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #ffffff;
}

a {
  color: #2e7d32;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #1b5e20;
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #333333;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-align: center;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: #2e7d32;
  color: #ffffff;
  border: none;
}

.btn-primary:hover {
  background-color: #1b5e20;
  color: #ffffff;
}

.btn-secondary {
  background-color: transparent;
  color: #2e7d32;
  border: 2px solid #2e7d32;
}

.btn-secondary:hover {
  background-color: #2e7d32;
  color: #ffffff;
}

/* Header */
header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  font-weight: 500;
  position: relative;
}

nav ul li a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #2e7d32;
  transition: width 0.3s ease;
}

nav ul li a:hover:after,
nav ul li a.active:after {
  width: 100%;
}

.language-switcher {
  margin-left: 2rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: #333333;
}

/* Hero section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  margin-top: 70px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-title h2:after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: #2e7d32;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Split section */
.split-section {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.split-section-reverse {
  flex-direction: row-reverse;
}

.split-section-image,
.split-section-content {
  flex: 1;
}

.split-section-image img {
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-icon {
  width: 20px;
  height: 20px;
  background-color: rgba(46, 125, 50, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon svg {
  width: 5px;
  height: 5px;
  color: #2e7d32;
}

.service-card h3 {
  margin-bottom: 1rem;
}

/* Contact form */
.contact-form {
  background-color: #f5f5f5;
  border-radius: 0.5rem;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #dddddd;
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #2e7d32;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
}

.checkbox-group input {
  margin-right: 0.5rem;
  margin-top: 0.25rem;
}

/* Footer */
footer {
  background-color: #333333;
  color: #ffffff;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 1rem;
}

.footer-heading {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #bbbbbb;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-contact p {
  margin-bottom: 0.75rem;
  color: #bbbbbb;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #bbbbbb;
}

/* Responsive styles */
@media (max-width: 992px) {
  .split-section {
    flex-direction: column;
    gap: 2rem;
  }
  
  .split-section-reverse {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  nav ul {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .mobile-menu-active nav ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
  }
  
  .mobile-menu-active nav ul li {
    margin: 0;
    padding: 0.75rem 2rem;
  }
}

@media (max-width: 576px) {
  section {
    padding: 3rem 0;
  }
  
  .hero {
    height: 80vh;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
}

/* -------- Tooltip pre GDPR súhlas -------- */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 260px;
  background-color: rgba(0,0,0,0.8);
  color: #fff;
  text-align: left;
  border-radius: 4px;
  padding: 8px;
  position: absolute;
  z-index: 100;
  bottom: 125%; /* nad textom */
  left: 0;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  font-size: 0.9em;
  line-height: 1.3;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}
