:root {
  --primary-color: #ffc700; /* Vibrant Yellow */
  --secondary-color: #4a4a4a; /* Industrial Gray */
  --light-bg: #f5f5f5;
  --secondary-bg: #ffffff;
  --dark-text: #2f2f2f;
  --muted-text: #6e6e6e;
  --border-color: #e0e0e0;
  --font-primary: "Poppins", sans-serif;
  --font-secondary: "Merriweather", serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  background-color: var(--secondary-bg);
  color: var(--muted-text);
  line-height: 1.7;
  font-size: 17px;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-text);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
}
h2 {
  font-size: 2.75rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.2rem;
}

p {
  margin-bottom: 1.5rem;
  max-width: 65ch;
}
p.subtitle {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  color: var(--muted-text);
  max-width: 600px;
  font-weight: 500;
}

/* --- Animations --- */
.animate-on-load {
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}
.animate-on-load.subtitle {
  animation-delay: 0.2s;
}
.hero-buttons.animate-on-load {
  animation-delay: 0.4s;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Header --- */
.main-header {
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}
.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-text);
  text-decoration: none;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}
.main-nav a {
  color: var(--muted-text);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 5px;
  font-family: var(--font-primary);
}
.main-nav a.active,
.main-nav a:hover {
  color: var(--primary-color);
}
.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-family: var(--font-primary);
}
.btn-primary {
  background-color: var(--primary-color);
  color: var(--dark-text);
}
.btn-primary:hover {
  background-color: #ffdb4d;
  transform: translateY(-3px);
}
.btn-secondary {
  background-color: transparent;
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}
.btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--secondary-bg);
}
.hero-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

/* --- Sections --- */
section {
  padding: 6rem 0;
}
.page-header {
  padding: 5rem 0;
  text-align: center;
  background-color: var(--light-bg);
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero-section {
  background-color: var(--light-bg);
  padding: 8rem 0;
}
.hero-content {
  max-width: 700px;
}

/* --- Features & Stats --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.feature-card {
  background-color: var(--light-bg);
  padding: 2.5rem;
  border-radius: 8px;
  text-align: center;
}
.feature-icon {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}
.feature-icon svg {
  width: 36px;
  height: 36px;
}
.stats-section {
  background-color: var(--secondary-color);
  padding: 4rem 0;
  color: var(--secondary-bg);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-number {
  font-family: var(--font-primary);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary-color);
}
.stat-label {
  font-family: var(--font-primary);
  font-weight: 500;
  color: var(--light-bg);
  margin: 0;
}

/* --- Services Overview --- */
.service-overview-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* --- Page Specific --- */
.service-detailed-item,
.experience-item,
.eco-item,
.industry-item,
.commercial-promise {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-color);
}
.service-detailed-item:last-child,
.experience-item:last-child,
.eco-item:last-child {
  border-bottom: none;
}
.commercial-intro,
.our-commercial-promise {
  max-width: 800px;
  margin: 0 auto 4rem auto;
  text-align: center;
}
.industries-we-serve {
  margin-bottom: 4rem;
}
.industries-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.industry-item {
  background-color: var(--light-bg);
  padding: 2rem;
  border-radius: 8px;
}
.our-commercial-promise ul {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  text-align: left;
}
.our-commercial-promise li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 1rem;
}
.our-commercial-promise li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* --- FAQ Accordion --- */
.faq-accordion {
  max-width: 800px;
  margin: 2rem auto 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border-color);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.5rem 0;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  color: var(--dark-text);
  font-family: var(--font-primary);
}
.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  font-size: 1.5rem;
  transition: transform 0.3s;
  color: var(--primary-color);
}
.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.faq-answer p {
  padding: 0 0 1.5rem 0;
}

/* --- CTA & Footer --- */
.cta-section {
  background-color: var(--primary-color);
  text-align: center;
  padding: 5rem 0;
}
.cta-section h2,
.cta-section p {
  color: var(--dark-text);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section .btn-primary {
  background-color: var(--dark-text);
  color: white;
}

.main-footer {
  padding: 4rem 0 2rem;
  background-color: var(--dark-text);
  color: #ecf0f1;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 {
  color: var(--primary-color);
}
.footer-col p,
.footer-col a {
  color: #bdc3c7;
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--primary-color);
}
.footer-col ul {
  list-style: none;
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--muted-text);
  color: #95a5a6;
  font-size: 0.9rem;
}

/* --- Cookie Banner & Back to Top --- */
#cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--dark-text);
  color: var(--light-bg);
  padding: 1.5rem 0;
  z-index: 2000;
  transform: translateY(0);
  transition: transform 0.5s ease-in-out;
  border-top: 1px solid var(--secondary-color);
}
#cookie-consent-banner.hidden {
  transform: translateY(100%);
}
#cookie-consent-banner .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
#cookie-consent-banner p {
  margin: 0;
  color: var(--light-bg);
  font-size: 0.9rem;
  font-family: var(--font-primary);
}
#cookie-consent-banner a {
  color: var(--primary-color);
  text-decoration: underline;
}
.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}
#cookie-consent-banner .btn-primary {
  background-color: var(--primary-color);
  color: var(--dark-text);
}
#cookie-consent-banner .btn {
  border-color: var(--muted-text);
  color: var(--light-bg);
}

#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 1000;
}
#back-to-top.show {
  opacity: 1;
  visibility: visible;
}
#back-to-top:hover {
  background-color: var(--dark-text);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  section {
    padding: 4rem 0;
  }
  .main-header .container,
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  .industries-grid {
    grid-template-columns: 1fr;
  }
  #cookie-consent-banner .container {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
}
