* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  color: #1a1a1a;
}

/* Certification expandable items */
.certification-item .chevron-icon {
  transition: transform 0.3s ease;
}

.certification-item.active .chevron-icon {
  transform: rotate(180deg);
}

.certification-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.certification-item.active .certification-content {
  max-height: 500px;
}

/* Service flip cards */
.service-flip-card {
  perspective: 1000px;
  height: 400px;
}

.service-flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.service-flip-card:hover .service-flip-card-inner {
  transform: rotateY(180deg);
}

.service-flip-card-front,
.service-flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-flip-card-back {
  transform: rotateY(180deg);
}

/* Commitment card hover effect */
.commitment-card {
  transition: transform 0.3s ease;
}

.commitment-card:hover {
  transform: translateY(-10px);
}

/* Cookie popup styling */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: #2A1A24;
  color: white;
  padding: 24px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: bottom 0.5s ease-in-out;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.cookie-content p {
  flex: 1;
  margin: 0;
}

.cookie-content button {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cookie-content {
      flex-direction: column;
      text-align: center;
  }
  
  .cookie-content button {
      width: 100%;
  }
  
  .service-flip-card {
      height: auto;
  }
  
  .service-flip-card:hover .service-flip-card-inner {
      transform: none;
  }
  
  .service-flip-card-inner {
      position: relative;
  }
  
  .service-flip-card-front,
  .service-flip-card-back {
      position: relative;
      backface-visibility: visible;
  }
  
  .service-flip-card-back {
      transform: none;
      margin-top: 20px;
  }
}

html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

.container {
  max-width: 1200px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
}

.error-message {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(-10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

header {
  transition: all 0.3s ease;
}

section {
  scroll-margin-top: 80px;
}

@media (max-width: 1024px) {
  section {
      scroll-margin-top: 70px;
  }
}

@media (max-width: 768px) {
  section {
      scroll-margin-top: 60px;
  }
}

/* Smooth transitions for all interactive elements */
button, a, input, textarea {
  transition: all 0.3s ease;
}
