/* =================
   Base Styles
   ================= */

:root {
  --primary-green: #29712a;
  --light-green: #82c341;
  --teal: #24bcb7;
  --orange: #f57f29;
  --dark-gray: #333333;
  --medium-gray: #666666;
  --light-gray: #f5f5f5;
  --very-light-gray: #f9f9f9;
  --white: #ffffff;
  --black: #000000;
}

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

body {
  font-family: "Urbanist", sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  overflow-x: hidden;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Urbanist", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
}

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

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

a:hover {
  color: var(--teal);
}

/* =================
   Buttons
   ================= */

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background-color: var(--orange);
  color: var(--white) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background-color: #e06a1b;
  color: var(--white) !important;
}

.btn-secondary {
    background-color: var(--orange);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  .btn-secondary:hover {
    background-color: #e06a1b;
    color: var(--white);
  }

.btn-tertiary {
  background-color: var(--light-green);
  color: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.btn-tertiary:hover {
  background-color: #70b22f;
  color: var(--white);
}

.btn-outline {
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary-green);
  text-shadow: none;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.btn-full {
  width: 100%;
  display: block;
}

/* =================
   Header & Navigation
   ================= */

header {
  background-color: var(--white);
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  z-index: 1000;
}

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

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

.logo img {
  height: 60px;
  width: auto;
  display: block;
}

#desktop-nav {
  display: flex;
  align-items: center;
  height: 100%;
}

#desktop-nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  margin: 0;
  height: 100%;
}

#desktop-nav ul li {
  margin-left: 30px;
  display: flex;
  align-items: center;
}

#desktop-nav ul li a {
  color: var(--dark-gray);
  font-weight: 500;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

#desktop-nav ul li a:hover {
  color: var(--primary-green);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary-green);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background-color: var(--white);
  padding: 20px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu ul li {
  margin-bottom: 15px;
}

.mobile-menu ul li a {
  display: block;
  color: var(--dark-gray);
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.mobile-menu ul li a:hover {
  color: var(--primary-green);
}

/* =================
   Hero Section
   ================= */

.hero {
  background: linear-gradient(135deg, var(--primary-green), var(--teal));
  color: var(--white);
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero h2 {
  font-size: 24px;
  margin-bottom: 30px;
  font-weight: 400;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}

.hero p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* =================
   Features Section
   ================= */

.features {
  padding: 80px 0;
  background-color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 36px;
  color: var(--primary-green);
  margin-bottom: 15px;
}

.section-header p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.feature-card {
  background-color: var(--light-gray);
  border-radius: 10px;
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 36px;
  color: var(--primary-green);
  margin-bottom: 20px;
}

.feature-card h3 {
  color: var(--primary-green);
  font-size: 22px;
  margin-bottom: 15px;
}

.feature-card p {
  font-size: 16px;
  margin-bottom: 0;
}

.mini-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.mini-feature {
  text-align: center;
  padding: 30px 20px;
  border-radius: 10px;
  background-color: var(--light-gray);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mini-feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mini-feature-icon {
  font-size: 32px;
  color: var(--primary-green);
  margin-bottom: 15px;
}

.mini-feature h3 {
  color: var(--primary-green);
  margin-bottom: 10px;
  font-size: 20px;
}

.mini-feature p {
  font-size: 15px;
  margin-bottom: 0;
}

/* =================
   Services Section
   ================= */

.services {
  padding: 80px 0;
  background-color: var(--light-gray);
}

.services-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.services-content h2 {
  font-size: 36px;
  color: var(--primary-green);
  margin-bottom: 20px;
}

.services-content h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

.services-content p {
  margin-bottom: 30px;
}

.service-list {
  margin-bottom: 30px;
}

.service-item {
  margin-bottom: 20px;
}

.service-item h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-green);
  margin-bottom: 10px;
  font-size: 18px;
}

.service-item h4 i {
  color: var(--primary-green);
}

.service-item p {
  margin-left: 30px;
  margin-bottom: 0;
}

.services-image {
  text-align: center;
}

.services-image img {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* =================
   About Section
   ================= */

.about {
  padding: 80px 0;
  background-color: var(--white);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-content h2 {
  font-size: 36px;
  color: var(--primary-green);
  margin-bottom: 20px;
}

.about-content p {
  margin-bottom: 20px;
}

.kea-qualities {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 30px 0;
}

.kea-quality {
  background-color: var(--light-gray);
  border-radius: 30px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.kea-quality i {
  color: var(--primary-green);
}

.about-image {
  text-align: center;
}

.about-image img {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* =================
   FAQ Section
   ================= */

.faq {
  padding: 80px 0;
  background-color: var(--white);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
  background-color: var(--light-gray);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question h3 {
  font-size: 18px;
  margin: 0;
  color: var(--primary-green);
}

.faq-toggle {
  color: var(--primary-green);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: var(--white);
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 1000px;
}

/* =================
   Contact Section
   ================= */

.contact {
  padding: 80px 0;
  background-color: var(--light-gray);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-top: 40px;
}

.contact-info {
  padding: 30px;
  background-color: var(--primary-green);
  color: var(--white);
  border-radius: 10px;
}

.contact-info h3 {
  margin-bottom: 20px;
  font-size: 24px;
}

.contact-details {
  margin: 30px 0;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-item i {
  width: 30px;
  font-size: 18px;
  margin-right: 10px;
  color: var(--white);
}

.contact-item p {
  margin-bottom: 0;
}

.social-media {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--white);
  color: var(--primary-green);
}

.contact-form {
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group.full-width {
  grid-column: span 2;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark-gray);
}

input,
textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: "Urbanist", sans-serif;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--teal);
}

textarea {
  resize: vertical;
}

button[type="submit"] {
  cursor: pointer;
  border: none;
}

/* =================
   Footer
   ================= */

footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: var(--orange);
  margin-bottom: 20px;
  font-size: 18px;
}

.footer-col p {
  margin-bottom: 20px;
  color: #ccc;
  font-size: 14px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 14px;
}

.footer-col ul li a:hover {
  color: var(--orange);
}

.copyright {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
  font-size: 14px;
}

/* =================
   Responsive
   ================= */

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 42px;
  }

  .hero h2 {
    font-size: 22px;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  #desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero h2 {
    font-size: 20px;
  }

  .logo img {
    height: 48px;
  }

  .services-container,
  .about-container,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .ms-integration-image,
  .services-image,
  .about-image {
    order: -1;
    margin-bottom: 30px;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 32px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  form {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: span 1;
  }
}

.appsource-hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 4rem 0;
  margin: 2rem 0;
}

.appsource-hero .container {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.appsource-content {
  flex: 1;
}

.appsource-image {
  flex: 0 0 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-green);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  margin-bottom: 2rem;
}

.badge i {
  color: #fff;
}

.appsource-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.appsource-buttons .btn i {
  margin-right: 0.5rem;
}

@media (max-width: 768px) {
  .appsource-hero .container {
      flex-direction: column;
      text-align: center;
  }

  .appsource-buttons {
      justify-content: center;
  }

  .appsource-image {
      flex: 0 0 200px;
  }
}