/* style/about.css */

:root {
  --page-about-primary-color: #11A84E;
  --page-about-secondary-color: #22C768;
  --page-about-bg-color: #08160F;
  --page-about-card-bg: #11271B;
  --page-about-text-main: #F2FFF6;
  --page-about-text-secondary: #A7D9B8;
  --page-about-border-color: #2E7A4E;
  --page-about-glow-color: #57E38D;
  --page-about-gold-color: #F2C14E;
  --page-about-divider-color: #1E3A2A;
  --page-about-deep-green: #0A4B2C;
  --page-about-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--page-about-text-main); /* Default text color for the page content, suitable for dark background */
  background-color: var(--page-about-bg-color); /* Matches body background type */
}

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

.page-about__section-spacing {
  padding: 80px 0;
}

.page-about__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--page-about-text-main);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-about__section-title--light {
  color: var(--page-about-text-main);
}

.page-about__section-description {
  font-size: 18px;
  color: var(--page-about-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 80px;
  background-color: var(--page-about-deep-green);
  position: relative;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Adjust as needed */
  overflow: hidden;
  position: relative;
  z-index: 1;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
  margin-top: -120px; /* Pull content up over image slightly for better flow */
  background: rgba(17, 39, 27, 0.85); /* Card BG with transparency */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--page-about-border-color);
}

.page-about__hero-title {
  font-size: clamp(36px, 5vw, 56px);
  color: var(--page-about-text-main);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 18px;
  color: var(--page-about-text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

.page-about__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-about__btn-primary {
  background: var(--page-about-btn-gradient);
  color: #ffffff; /* White text for contrast on dark gradient */
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-about__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--page-about-primary-color);
  border: 2px solid var(--page-about-primary-color);
}

.page-about__btn-secondary:hover {
  background: var(--page-about-primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary--small {
  padding: 10px 20px;
  font-size: 16px;
}

/* Content Grid */
.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"; /* Default desktop order */
}

.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__text-block p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 15px;
  color: var(--page-about-text-secondary);
}

.page-about__text-block--light p {
  color: var(--page-about-text-main);
}

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

.page-about__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.page-about__image-content--center {
  margin: 40px auto 0 auto;
}

/* Core Values Section */
.page-about__dark-section {
  background-color: var(--page-about-card-bg);
  color: var(--page-about-text-main);
}

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

.page-about__value-card {
  background-color: var(--page-about-deep-green);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-about-border-color);
  text-align: center;
}

.page-about__card-title {
  font-size: 24px;
  color: var(--page-about-gold-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-about__value-card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--page-about-text-secondary);
}

/* Offerings Section */
.page-about__offerings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-about__offering-card {
  background-color: var(--page-about-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-about-border-color);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-about__offering-card .page-about__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  filter: brightness(0.8);
}

.page-about__offering-card .page-about__card-title {
  font-size: 22px;
  color: var(--page-about-text-main);
  margin: 20px 15px 10px 15px;
  font-weight: 700;
}

.page-about__offering-card .page-about__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-about__offering-card .page-about__card-title a:hover {
  color: var(--page-about-primary-color);
}

.page-about__offering-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--page-about-text-secondary);
  padding: 0 15px 20px 15px;
  flex-grow: 1;
}

.page-about__card-link {
  display: inline-block;
  padding: 10px 20px;
  margin-bottom: 20px;
  background: var(--page-about-btn-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.page-about__card-link:hover {
  filter: brightness(1.1);
}

/* Why Choose Us Section */
.page-about__benefit-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__benefit-item {
  background-color: var(--page-about-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-about-border-color);
}

.page-about__benefit-title {
  font-size: 22px;
  color: var(--page-about-primary-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-about__benefit-item p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--page-about-text-secondary);
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__faq-item {
  background-color: var(--page-about-deep-green);
  border: 1px solid var(--page-about-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  color: var(--page-about-text-main);
  cursor: pointer;
  background-color: var(--page-about-deep-green);
  user-select: none;
  list-style: none; /* For details/summary */
}

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

.page-about__faq-question:hover {
  background-color: rgba(34, 199, 104, 0.1); /* Lighter green hover */
}

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 20px;
  color: var(--page-about-gold-color);
}

.page-about__faq-answer {
  padding: 0 20px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--page-about-text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

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

/* CTA Section */
.page-about__cta-section {
  background-color: var(--page-about-deep-green);
  padding: 80px 0;
  text-align: center;
}

.page-about__cta-container {
  max-width: 800px;
}

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

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

  .page-about__content-grid--reverse {
    grid-template-areas: unset; /* Reset for mobile */
  }

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

  .page-about__image-block {
    order: -1; /* Image appears first on mobile */
  }

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

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

  .page-about__values-grid,
  .page-about__offerings-grid,
  .page-about__benefit-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-about__hero-title {
    font-size: clamp(30px, 8vw, 42px);
  }

  .page-about__hero-description {
    font-size: 16px;
  }

  .page-about__section-title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .page-about__section-description {
    font-size: 16px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-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__hero-cta-buttons,
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-image-wrapper,
  .page-about__image-block,
  .page-about__value-card,
  .page-about__offering-card,
  .page-about__benefit-item,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-about__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__hero-section {
    padding-top: 10px !important;
    padding-left: 0;
    padding-right: 0;
  }

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

  .page-about__faq-question {
    font-size: 16px;
  }

  .page-about__faq-answer {
    font-size: 14px;
  }
}