/* style/about.css */

/* Base styles for page-about, assuming a dark body background from shared.css */
.page-about {
  color: #F2FFF6; /* Main text color for dark background */
  background-color: #08160F; /* Ensure background color consistency */
  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-title {
  font-size: 2.5em;
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__sub-title {
  font-size: 1.8em;
  color: #F2FFF6;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__description {
  font-size: 1.1em;
  color: #A7D9B8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-about__text-block p {
  color: #F2FFF6;
  margin-bottom: 15px;
  font-size: 1em;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px; /* Adjust padding, body handles top offset */
  padding-top: 10px; /* Small top padding for visual separation */
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 675px; /* Ensure image doesn't get too tall */
  margin-bottom: 30px;
}

.page-about__hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 1; /* Ensure content is above any potential background elements */
}

.page-about__main-title {
  font-weight: bold;
  line-height: 1.2;
  color: #F2FFF6;
  margin-bottom: 20px;
  /* Using clamp for responsive font-size, avoiding fixed large values */
  font-size: clamp(2em, 5vw, 3.5em);
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: none;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background: transparent;
  color: #F2FFF6;
  border: 2px solid #2E7A4E;
}

.page-about__btn-secondary:hover {
  background-color: #2E7A4E;
  color: #F2FFF6;
  transform: translateY(-2px);
}

.page-about__btn-link {
  display: inline-block;
  color: #57E38D;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  transition: color 0.3s ease;
}

.page-about__btn-link:hover {
  color: #2AD16F;
}

.page-about__btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
}

/* Sections */
.page-about__intro-section,
.page-about__values-section,
.page-about__products-section,
.page-about__commitment-section,
.page-about__why-choose-us,
.page-about__future-section,
.page-about__faq-section {
  padding: 80px 0;
}

.page-about__dark-section {
  background-color: #0A4B2C;
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.page-about__content-grid--reverse {
  grid-template-areas: "image text";
}

.page-about__content-grid--reverse .page-about__text-block {
  grid-area: text;
}

.page-about__content-grid--reverse .page-about__image-block {
  grid-area: image;
}

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

.page-about__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

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

.page-about__card,
.page-about__product-card,
.page-about__feature-card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__card:hover,
.page-about__product-card:hover,
.page-about__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-about__card-title,
.page-about__product-title {
  font-size: 1.5em;
  color: #F2FFF6;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__card p,
.page-about__product-card p {
  color: #A7D9B8;
  font-size: 0.95em;
  flex-grow: 1;
}

.page-about__product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-about__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

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

.page-about__faq-item {
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-about__faq-item:hover {
  background-color: #1E3A2A;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  color: #F2FFF6;
  font-size: 1.1em;
  list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for WebKit browsers */
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #57E38D;
  margin-left: 15px;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  content: '−';
}

.page-about__faq-answer {
  padding: 0 25px 20px;
  color: #A7D9B8;
  font-size: 0.95em;
  line-height: 1.6;
}

.page-about__faq-answer p {
  margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .page-about__content-grid--reverse {
    grid-template-areas: none; /* Reset grid area for single column */
  }

  .page-about__content-grid--reverse .page-about__text-block,
  .page-about__content-grid--reverse .page-about__image-block {
    grid-area: unset;
  }

  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px;
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 7vw, 2.8em);
  }

  .page-about__section-title {
    font-size: 2em;
  }

  .page-about__sub-title {
    font-size: 1.5em;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100%;
    max-width: 300px; /* Constrain button width on smaller screens */
    margin: 0 auto;
  }

  .page-about__card-grid,
  .page-about__product-grid,
  .page-about__feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-about__container {
    padding: 0 15px;
  }

  .page-about__hero-image {
    max-height: 400px;
  }

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

  .page-about__sub-title {
    font-size: 1.3em;
  }

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

  .page-about__text-block p {
    font-size: 0.95em;
  }

  .page-about__card-title,
  .page-about__product-title {
    font-size: 1.3em;
  }

  .page-about__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-about__faq-answer {
    padding: 0 20px 15px;
  }

  /* Mobile image, video, button responsiveness (MUST be !important) */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__text-block,
  .page-about__image-block,
  .page-about__hero-section,
  .page-about__intro-section,
  .page-about__values-section,
  .page-about__products-section,
  .page-about__commitment-section,
  .page-about__why-choose-us,
  .page-about__future-section,
  .page-about__faq-section,
  .page-about__hero-content,
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  .page-about__hero-section,
  .page-about__video-section { /* Added video-section for completeness, though not present */
    padding-top: 10px !important; /* body handles --header-offset, this is for visual top spacing */
  }

  .page-about__cta-button,
  .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;
  }

  .page-about__cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: clamp(1.5em, 8vw, 2.5em);
  }
  .page-about__section-title {
    font-size: 1.6em;
  }
  .page-about__sub-title {
    font-size: 1.2em;
  }
}