/* --- Global Styles & Variables --- */
:root {
  --primary-color: #FFC107; /* Yellow */
  --secondary-color: #212529; /* Dark Grey/Black */
  --text-color: #495057; /* Medium Grey */
  --light-grey: #f8f9fa; /* Very Light Grey */
  --white: #ffffff;
  --heading-font: 'Poppins', sans-serif;
  --body-font: 'Poppins', sans-serif;
  --container-width: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

a:hover {
  color: #e0a800; /* Darker Yellow */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; margin-bottom: 2rem; text-align: center;}
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block; /* Prevents bottom margin */
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

/* --- Buttons --- */
.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 10px 25px;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: 2px solid var(--primary-color);
  cursor: pointer;
}

.cta-button:hover {
  background-color: #e0a800; /* Darker Yellow */
  border-color: #e0a800;
  color: var(--secondary-color);
  transform: translateY(-2px);
}

.secondary-button {
  display: inline-block;
  background-color: transparent;
  color: var(--secondary-color);
  padding: 10px 25px;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #ced4da; /* Light Grey Border */
  margin-left: 10px;
}

.secondary-button:hover {
    background-color: var(--light-grey);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.learn-more {
    font-weight: 600;
    color: var(--primary-color);
}

.learn-more:hover {
     color: #e0a800;
}

/* --- Header --- */
header {
  background-color: var(--white);
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000; /* Ensure header stays on top */
  width: 100%;
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color);
}
.logo:hover {
    color: var(--secondary-color); /* Logo color shouldn't change drastically on hover */
}

nav ul {
  display: flex;
  align-items: center;
  gap: 2rem; /* Space between menu items */
}

nav a {
  color: var(--text-color);
  font-weight: 600;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
}

nav a:hover,
nav a.active { /* Add 'active' class with JS if needed for current page */
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.nav-cta {
    margin-left: 1rem; /* Space between nav items and CTA */
}

/* --- Hero Section --- */
.hero {
  background-color: var(--light-grey);
  padding: 5rem 0;
  text-align: center;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem; /* Space between text and image */
    text-align: left;
}

.hero-text {
    flex: 1; /* Take up available space */
}

.hero-image {
    flex: 1; /* Take up available space */
    max-width: 50%; /* Limit image size */
    text-align: center; /* Center image if flex basis is smaller */
}

.hero-image img {
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-color); /* Slightly softer than heading */
  max-width: 600px; /* Limit text width if needed */
}

.hero-cta {
  padding: 12px 30px;
  font-size: 1.1rem;
}

/* --- Benefits Section --- */
.benefits {
  padding: 5rem 0;
  background-color: var(--white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
  gap: 2rem;
  margin-top: 3rem;
}

.benefit-item {
  background-color: #fff;
  padding: 2rem;
  text-align: center;
  border-radius: 8px;
  border: 1px solid #eee;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.benefit-icon {
    margin: 0 auto 1.5rem auto;
    width: 60px; /* Explicit size for placeholder consistency */
    height: 60px;
    border-radius: 50%; /* Make placeholder round */
}

.benefit-item h3 {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

/* --- Features Section --- */
.features {
  padding: 5rem 0;
  background-color: var(--light-grey);
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 4rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

/* Reverse layout for alternating rows */
.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
}

.feature-image {
  flex: 1;
  text-align: center;
}

.feature-image img {
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  max-width: 500px; /* Control image size */
  margin: 0 auto; /* Center if container is wider */
}

.feature-text h2 {
    text-align: left;
    margin-bottom: 1rem;
}

/* --- Client Logos Section --- */
.client-logos {
  padding: 4rem 0;
  background-color: var(--white);
}

.client-logos h2 {
    font-size: 1.4rem; /* Slightly smaller heading */
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 3rem;
}

.logos-container {
  display: flex;
  justify-content: space-around; /* Distribute logos evenly */
  align-items: center;
  flex-wrap: wrap; /* Allow logos to wrap on smaller screens */
  gap: 2rem; /* Space between logos */
}

.logos-container img {
  max-height: 100px; /* Control logo height */
  width: auto; /* Maintain aspect ratio */
  opacity: 0.7;
  filter: grayscale(100%); /* Make logos grayscale */
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.logos-container img:hover {
  opacity: 1;
  filter: grayscale(0%); /* Show color on hover */
}


/* --- Final Call to Action Section --- */
.final-cta {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.final-cta h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.final-cta p {
    color: var(--light-grey);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.large-cta {
    padding: 15px 40px;
    font-size: 1.2rem;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}
.large-cta:hover {
    background-color: #e0a800;
    border-color: #e0a800;
}

/* --- Footer --- */
footer {
  background-color: var(--secondary-color);
  color: var(--light-grey);
  text-align: center;
  padding: 2rem 0;
  margin-top: 0; /* Remove potential top margin */
  font-size: 0.9rem;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping */
    gap: 1rem;
}

footer p {
    margin-bottom: 0; /* Reset paragraph margin */
}

.footer-links a {
  color: var(--light-grey);
  margin: 0 10px;
}

.footer-links a:hover {
  color: var(--primary-color);
}

/* --- Responsive Design --- */

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 2rem; }

  .hero-content {
      flex-direction: column; /* Stack text and image */
      text-align: center;
      gap: 2rem;
  }
   .hero-text {
        max-width: 100%;
    }
   .hero-image {
        max-width: 70%; /* Adjust image size */
        margin-top: 2rem;
    }
  .hero p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }


  .feature-row,
  .feature-row.reverse {
    flex-direction: column; /* Stack feature elements */
    text-align: center;
  }

  .feature-text,
  .feature-image {
      max-width: 80%; /* Constrain width */
      margin: 0 auto; /* Center */
  }
  .feature-text h2 {
      text-align: center;
  }

  .feature-row .feature-image {
      margin-top: 2rem;
  }
  .feature-row.reverse .feature-image {
      margin-bottom: 2rem; /* Add space when image is first */
  }

  header .container {
      flex-direction: column;
      gap: 1rem;
  }
   nav ul {
       flex-wrap: wrap; /* Allow nav items to wrap */
       justify-content: center;
       gap: 1rem 1.5rem; /* Adjust gap for wrapping */
       padding-top: 0.5rem;
   }
    .nav-cta {
        margin-left: 0; /* Remove margin when stacked */
        margin-top: 1rem;
    }

    footer .container {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.8rem; }
  body { font-size: 15px; }

  .hero { padding: 3rem 0; }
  .benefits, .features, .client-logos, .final-cta { padding: 3rem 0; }

  .cta-button { padding: 8px 20px; font-size: 0.9rem;}
  .secondary-button { padding: 8px 20px; font-size: 0.9rem;}
  .hero-cta { padding: 10px 25px; font-size: 1rem;}
  .large-cta { padding: 12px 30px; font-size: 1.1rem; }

  .benefits-grid {
      grid-template-columns: 1fr; /* Stack benefits on smallest screens */
  }
   .logos-container img {
       max-height: 40px;
   }

   .hero-image {
        max-width: 90%; /* Allow larger image */
   }
   .feature-text,
   .feature-image {
        max-width: 95%; /* Allow more width */
   }
}