/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-about__section {
  padding: 60px 0;
}

.page-about__section-title {
  font-size: 2.8em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__section-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden; /* Ensure content doesn't spill */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-about__hero-content {
  position: relative;
  z-index: 10;
  padding: 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content up slightly over the image */
  background-color: rgba(17, 39, 27, 0.8); /* Card BG with transparency */
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__main-title {
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
  /* No fixed font-size for H1, relying on relative sizing and weight */
}

.page-about__hero-description {
  font-size: 1.15em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

/* Buttons */
.page-about__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #ffffff; /* White text for contrast */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
}

.page-about__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(42, 209, 111, 0.4);
}

.page-about__btn-secondary {
  display: inline-block;
  background: transparent;
  color: #2AD16F; /* Button color */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid #2AD16F; /* Border color */
  cursor: pointer;
  font-size: 1.1em;
}

.page-about__btn-secondary:hover {
  background: #2AD16F;
  color: #ffffff;
}

/* Content Grid */
.page-about__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-about__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
  padding: 20px;
}

.page-about__text-block p {
  margin-bottom: 15px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 1.05em;
}

.page-about__image-block {
  flex: 1;
  text-align: center;
}

.page-about__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: block; /* Ensure no extra space below image */
}

.page-about__image--large-inset {
  margin-top: 40px;
}

/* Core Values Section */
.page-about__core-values {
  background-color: #11271B; /* Card BG */
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__section-description,
.page-about__dark-section .page-about__value-title,
.page-about__dark-section .page-about__value-card p {
  color: #F2FFF6; /* Text Main for dark sections */
}

.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__value-card {
  background-color: rgba(46, 122, 78, 0.2); /* Semi-transparent border color */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-about__value-card:hover {
  transform: translateY(-5px);
  background-color: rgba(42, 209, 111, 0.1);
}

.page-about__value-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #2AD16F; /* Green from button gradient */
  margin-bottom: 15px;
}

.page-about__value-card p {
  color: #A7D9B8; /* Text Secondary */
}

/* Why Choose Section */
.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__feature-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
}

.page-about__feature-title {
  font-size: 1.6em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-about__feature-card p {
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-about__feature-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-top: auto; /* Push image to bottom if content varies */
}

/* Team & Commitment Section */
.page-about__deep-green-bg {
  background-color: #0A4B2C; /* Deep Green */
}

.page-about__deep-green-bg .page-about__section-title,
.page-about__deep-green-bg .page-about__text-block p {
  color: #F2FFF6; /* Text Main */
}

/* FAQ Section */
.page-about__faq-section {
  padding: 60px 0;
}

.page-about__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-about__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: rgba(17, 39, 27, 0.7); /* Slightly darker card BG */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-about__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-about__faq-question:hover {
  background-color: rgba(42, 209, 111, 0.1);
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #2AD16F; /* Green */
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05em;
  color: #A7D9B8; /* Text Secondary */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-about__faq-item[open] .page-about__faq-answer {
  max-height: 500px; /* Sufficient height for most answers */
  padding-top: 10px;
}

/* Specific styles for details tag native behavior */
.page-about__faq-item details > summary {
  list-style: none;
}

.page-about__faq-item details > summary::marker, 
.page-about__faq-item details > summary::-webkit-details-marker {
  display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2.2em;
  }

  .page-about__hero-content {
    margin-top: -100px;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__section {
    padding: 40px 0;
  }

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-about__section-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-about__hero-content {
    margin-top: -80px;
    padding: 15px;
  }

  .page-about__main-title {
    font-size: 1.8em;
  }

  .page-about__hero-description {
    font-size: 1em;
  }

  .page-about__content-grid {
    flex-direction: column;
    gap: 20px;
  }

  .page-about__content-grid--reverse {
    flex-direction: column;
  }

  .page-about__text-block {
    padding: 10px;
  }

  .page-about__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__image-block {
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-about__values-grid,
  .page-about__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__value-card,
  .page-about__feature-card {
    padding: 20px;
  }

  .page-about__feature-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Responsive for all images */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All image containers */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__image-block,
  .page-about__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons responsive */
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px; /* Add space between stacked buttons */
  }

  .page-about__hero-content .page-about__btn-primary {
    margin-top: 20px; /* Space from description */
  }

  /* Ensure padding is consistent for sections on mobile */
  .page-about__section {
    padding-left: 0;
    padding-right: 0;
  }

  .page-about__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-about__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
}