/* style/about.css */

/* Global styles for page-about scope */
.page-about {
  background-color: var(--background); /* #08160F */
  color: var(--text-main); /* #F2FFF6 */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* General Section Styling */
.page-about__section {
  padding: 60px 0;
  text-align: center;
}

.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: var(--text-main);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-about__section-description {
  font-size: 1.1em;
  color: var(--text-secondary);
  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;
  justify-content: center;
  overflow: hidden;
  padding: 10px 0 60px 0; /* body already handles header offset, small padding-top for visual */
  background-color: var(--deep-green-color); /* Darker background for hero */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 30px;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
}

.page-about__main-title {
  color: var(--text-main);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  /* No fixed font-size for H1, relying on responsive scaling */
}

.page-about__intro-text {
  color: var(--text-secondary);
  font-size: 1.2em;
  margin-bottom: 30px;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent; /* Default transparent border */
  box-sizing: border-box;
}

.page-about__btn-primary {
  background: var(--button-gradient);
  color: #ffffff; /* White text for dark button */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
  margin-left: 15px;
}

.page-about__btn-secondary:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-3px);
}

/* Mission & Vision Section */
.page-about__mission-vision {
  background-color: var(--background);
  padding-bottom: 30px;
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: left;
}

.page-about__sub-title {
  color: var(--text-main);
  font-size: 1.8em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__text-block p {
  color: var(--text-secondary);
  margin-bottom: 15px;
}

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

/* Why Choose Us Section */
.page-about__why-choose-us {
  background-color: var(--card-bg); /* Darker background for contrast */
  padding-top: 30px;
  padding-bottom: 60px;
}

.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-about__feature-card {
  background-color: var(--background); /* Even darker background for cards */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-about__feature-title {
  color: var(--text-main);
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__feature-card p {
  color: var(--text-secondary);
}

/* Products Showcase Section */
.page-about__products-showcase {
  background-color: var(--background);
  padding-top: 60px;
}

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

.page-about__product-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-about__product-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  filter: brightness(0.8); /* Slightly darken image */
}

.page-about__product-card .page-about__product-title {
  font-size: 1.4em;
  margin: 20px 20px 10px 20px;
  color: var(--text-main);
  font-weight: bold;
}

.page-about__product-card .page-about__product-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-about__product-description {
  color: var(--text-secondary);
  margin: 0 20px 20px 20px;
  font-size: 0.95em;
}

.page-about__product-card .page-about__btn-secondary {
  margin: 0 20px 20px 20px;
  width: calc(100% - 40px);
  text-align: center;
  display: block; /* Make button full width of card content area */
}

/* Security and Transparency Section */
.page-about__security-transparency {
  background-color: var(--card-bg);
  padding-top: 30px;
}

.page-about__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-about__info-block {
  background-color: var(--background);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__info-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-about__info-image {
  width: 100%;
  height: 200px; /* Consistent image height */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  filter: brightness(0.8);
}

.page-about__info-title {
  color: var(--text-main);
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__info-block p {
  color: var(--text-secondary);
}

/* FAQ Section */
.page-about__faq-section {
  background-color: var(--background);
}

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

.page-about__faq-item {
  background-color: var(--card-bg);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--card-bg);
  transition: background-color 0.3s ease;
  list-style: none; /* For <summary> */
}

.page-about__faq-question::-webkit-details-marker { /* For <summary> */
  display: none;
}

.page-about__faq-question:hover {
  background-color: var(--deep-green-color);
}

.page-about__faq-item[open] > .page-about__faq-question {
  background-color: var(--deep-green-color);
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-about__faq-answer {
  padding: 0 25px 20px 25px;
  color: var(--text-secondary);
  font-size: 1em;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-about__faq-item[open] .page-about__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding-top: 10px;
}

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

.page-about__faq-answer a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-about__faq-answer a:hover {
  text-decoration: underline;
}

/* CTA Download Section */
.page-about__cta-download {
  background-color: var(--card-bg);
  padding: 80px 0;
  overflow: hidden; /* Ensure image doesn't overflow on small screens */
}

.page-about__cta-download .page-about__container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-about__cta-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-about__cta-title {
  color: var(--text-main);
  font-size: 2.2em;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-about__cta-description {
  color: var(--text-secondary);
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-about__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap */
}

.page-about__cta-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__cta-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  filter: brightness(0.8);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__hero-content {
    max-width: 700px;
  }
  .page-about__main-title {
    font-size: 2.5em;
  }
  .page-about__intro-text {
    font-size: 1.1em;
  }
  .page-about__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-about__product-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-about__info-grid {
    grid-template-columns: 1fr;
  }
  .page-about__cta-download .page-about__container {
    flex-direction: column;
    text-align: center;
  }
  .page-about__cta-content {
    text-align: center;
    margin-bottom: 40px;
  }
  .page-about__cta-buttons {
    justify-content: center;
  }
  .page-about__btn-secondary {
    margin-left: 0;
    margin-top: 15px;
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__section-description {
    font-size: 1em;
  }

  /* Hero Section Mobile */
  .page-about__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-about__main-title {
    font-size: 1.8em; /* Adjusted for mobile to prevent overflow */
  }
  .page-about__intro-text {
    font-size: 1em;
  }

  /* Images Mobile Responsive */
  .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__cta-image-wrapper,
  .page-about__product-card,
  .page-about__feature-card,
  .page-about__info-block,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure containers hide overflow */
  }
  .page-about__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Buttons Mobile 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;
    margin-left: 0 !important; /* Remove margin for stacking */
    margin-top: 10px !important; /* Add top margin for stacking */
  }

  .page-about__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 15px !important; /* Ensure padding for button group */
    box-sizing: border-box !important;
  }

  .page-about__cta-buttons .page-about__btn-secondary {
    margin-top: 10px !important;
  }

  .page-about__product-card .page-about__btn-secondary {
    width: calc(100% - 30px) !important; /* Adjusted for card padding */
    margin: 0 15px 15px 15px !important;
  }

  /* FAQ Mobile */
  .page-about__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-about__faq-answer {
    padding: 0 20px 15px 20px;
  }
}

/* Color Contrast Enforcement - Based on body background #08160F (dark) */
/* All text should be light, backgrounds should be dark variations */
.page-about {
  color: var(--text-main); /* #F2FFF6 */
}

.page-about__card,
.page-about__feature-card,
.page-about__product-card,
.page-about__info-block,
.page-about__faq-item {
  background-color: var(--card-bg); /* #11271B */
  color: var(--text-main); /* #F2FFF6 */
}

.page-about__section-title,
.page-about__sub-title,
.page-about__feature-title,
.page-about__product-title,
.page-about__info-title,
.page-about__cta-title,
.page-about__faq-question {
  color: var(--text-main); /* #F2FFF6 */
}

.page-about__section-description,
.page-about__text-block p,
.page-about__feature-card p,
.page-about__product-description,
.page-about__info-block p,
.page-about__cta-description,
.page-about__faq-answer p {
  color: var(--text-secondary); /* #A7D9B8 */
}

.page-about__faq-answer a {
  color: var(--primary-color); /* #11A84E */
}

.page-about__btn-primary {
  color: #ffffff; /* White text for dark gradient button */
}

.page-about__btn-secondary {
  color: var(--primary-color); /* #11A84E text for transparent button */
  border-color: var(--primary-color);
}
.page-about__btn-secondary:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}