:root {
  --primary: #78B833;
  --dark: #333333;
  --light: #ffffff;
  --gray: #f5f5f5;
  --max-width: 1200px;
  --radius: 12px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background: var(--light);
  color: var(--dark);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Header */
.nav-header {
  background: var(--light);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo img {
  height: 60px;
  width: auto;
  max-width: 250px;
}

@media (max-width: 768px) {
  .logo img {
    height: 40px;
    max-width: 180px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  margin-left: 1.5rem;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Hover shake animation */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
  75% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

@media (hover: hover) {
  .nav-links a:hover {
    animation: shake 0.3s;
  }
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border: 2px solid white;
}

.btn-primary:hover {
  background: #5d9e2b;
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* Badge */
.badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* Hero */
.hero-section {
  background: #f0f9ec;
  padding: 4rem 0;
  border-bottom-left-radius: 60px;
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  max-height: 320px;
  display: inline-block;
}

/* Parallax background */
.parallax-bg {
  position: relative;
  background: url('your-background.jpg') no-repeat center center;
  background-size: cover;
  overflow: hidden;
}

.parallax-bg::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.3);
}

/* Services */
.services-section {
  padding: 4rem 0;
  background: var(--gray);
  text-align: center;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  width: 280px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.card i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.card h3 {
  margin-bottom: 0.5rem;
}

/* About */
.about-section {
  padding: 4rem 0;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  max-height: 320px;
  display: inline-block;
}

@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* References */
.references-section {
  padding: 4rem 0;
  background: var(--gray);
  text-align: left;
}

.references-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.references-section p {
  margin-bottom: 1rem;
  max-width: 900px;
}

.references-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.reference-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 140px;
}

.reference-card img {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.reference-card img:hover {
  transform: scale(1.05);
}

/* CTA divider */
.section-divider {
  width: 100%;
  height: 60px;
  background: var(--primary);
}

/* Contact */
.contact-section {
  padding: 3rem 0;
  background: var(--gray);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.contact-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-card h3 {
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-size: 1rem;
}

.contact-card h3 i {
  font-size: 1.4rem;
  color: var(--primary);
}

.contact-card p,
.contact-card a {
  font-size: 0.95rem;
  margin: 0.2rem 0;
  word-break: break-word;
}

/* Footer */
.footer {
  background: #222;
  color: #ccc;
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-content h3,
.footer-content h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Footer – cookie settings link */
#cookie-footer-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

#cookie-footer-link:hover {
  color: var(--primary);
}

/* Language switch */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
}

.lang-switch img {
  width: 24px;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
  border-radius: 4px;
}

.lang-switch img:hover {
  transform: scale(1.15);
  filter: brightness(1.2);
}

.lang-switch img.active-lang {
  border: 2px solid var(--primary);
  border-radius: 4px;
  padding: 2px;
  background: #fff;
}

/* Scroll animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsiveness */
@media (max-width: 992px) {
  .hero-content,
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background: white;
    position: absolute;
    top: 70px;
    right: 20px;
    padding: 1rem 2rem;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav-links.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }
}

@media (min-width: 1200px) {
  .card-grid {
    justify-content: center;
    gap: 2.5rem;
  }

  .card-grid .card {
    flex: 1;
    width: auto;
    max-width: 360px;
  }
}

/* FINAL OVERRIDE: force logos always colored */
.references-logos img,
.reference-card img {
  filter: none !important;
  -webkit-filter: none !important;
  -moz-filter: none !important;
  -o-filter: none !important;
  -ms-filter: none !important;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 1em;
  display: none;
  z-index: 10000;
  font-size: 0.9rem;
  max-width: 900px;
  width: 90%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.cookie-buttons {
  margin-top: 0.5em;
  display: flex;
  justify-content: center;
  gap: 0.5em;
  flex-wrap: wrap;
}

.cookie-banner button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.5em 1em;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
}

.cookie-banner button:hover {
  background: #5d9e2b;
}

.cookie-banner a {
  color: var(--primary);
  text-decoration: underline;
  font-size: 0.85rem;
}

/* Cookie settings modal */
.cookie-settings {
  display: none;
  position: fixed;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #000;
  padding: 1.5em;
  border: 1px solid #ccc;
  z-index: 10001;
  max-width: 320px;
  width: 90%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cookie-settings h3 {
  margin-bottom: 1em;
  font-size: 1.1rem;
}

.cookie-settings label {
  display: block;
  margin-bottom: 0.5em;
  font-size: 0.9rem;
}

.cookie-settings button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.6em 1.2em;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.cookie-settings button:hover {
  background: #5d9e2b;
}
