/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Default text color from palette */
  background-color: var(--background-color); /* From palette */
}

.page-about__section {
  padding: 60px 20px;
  text-align: center;
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Added for mobile safety */
  box-sizing: border-box; /* Added for mobile safety */
}

.page-about__dark-section {
  background-color: var(--card-bg-color); /* Darker background for contrast */
  color: var(--text-main-color);
}

.page-about__heading {
  font-size: 2.8em;
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__sub-heading {
  font-size: 2.2em;
  color: var(--text-main-color);
  margin-top: 40px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__small-heading {
  font-size: 1.8em;
  color: var(--text-main-color);
  margin-top: 30px;
  margin-bottom: 10px;
}

.page-about__description {
  font-size: 1.1em;
  color: var(--text-secondary-color);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about p {
  color: var(--text-secondary-color);
  margin-bottom: 1em;
}

.page-about a {
  color: var(--main-color);
  text-decoration: none;
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* body handles top padding, use small top padding here */
  min-height: 600px;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  color: var(--text-main-color);
}

.page-about__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__hero-content .page-about__description {
  color: var(--text-main-color);
  font-size: 1.2em;
  margin-bottom: 30px;
}

/* CTA Buttons */
.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%; /* For mobile safety */
  max-width: 100%; /* For mobile safety */
  box-sizing: border-box; /* For mobile safety */
}

.page-about__cta-buttons--centered {
  margin-top: 60px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-sizing: border-box; /* For mobile safety */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-about__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
}

.page-about__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
  background-color: var(--gold-color);
  color: var(--card-bg-color);
  transform: translateY(-2px);
}

/* Content Grids */
.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
  margin-top: 40px;
}

.page-about__content-grid:nth-of-type(odd) .page-about__image-block {
  order: 2;
}

.page-about__content-grid:nth-of-type(even) .page-about__image-block {
  order: 1;
}

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

.page-about__image-block {
  padding: 20px;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-about__list {
  list-style: none;
  padding-left: 0;
  text-align: left;
  margin-top: 20px;
}

.page-about__list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--text-secondary-color);
}

.page-about__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--main-color);
  font-weight: bold;
}

/* Products & Services Section */
.page-about__products-services {
  background-color: var(--card-bg-color);
  padding-bottom: 80px;
}

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

.page-about__card {
  background-color: var(--deep-green-color); /* Slightly lighter dark for cards */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
}

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

.page-about__card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--divider-color);
}

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

.page-about__card-title a {
  color: var(--text-main-color);
  text-decoration: none;
}

.page-about__card-title a:hover {
  color: var(--gold-color);
  text-decoration: underline;
}

.page-about__card-text {
  color: var(--text-secondary-color);
  font-size: 0.95em;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-about__btn-link {
  display: inline-block;
  background-color: var(--main-color);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

.page-about__btn-link:hover {
  background-color: var(--auxiliary-color);
}

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

.page-about__benefit-card {
  background-color: var(--background-color); /* Lightest dark for cards */
  border: 1px solid var(--border-color);
  padding: 30px;
  text-align: left;
}

.page-about__benefit-card .page-about__card-title {
  color: var(--main-color);
  font-size: 1.6em;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-about__benefit-card .page-about__card-text {
  color: var(--text-secondary-color);
  padding: 0;
}

/* FAQ Section */
.page-about__faq {
  padding-bottom: 80px;
}

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

.page-about__faq-item {
  background-color: var(--deep-green-color); /* Card BG for FAQ item */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main-color);
  cursor: pointer;
  background-color: var(--card-bg-color); /* Slightly darker for question header */
  border-bottom: 1px solid var(--divider-color);
  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: var(--deep-green-color);
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--gold-color);
  transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--text-secondary-color);
  background-color: var(--deep-green-color);
  border-top: 1px solid var(--divider-color);
}

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

/* Contact CTA Section */
.page-about__contact-cta {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: var(--card-bg-color);
}

.page-about__contact-wrapper {
  max-width: 800px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__heading {
    font-size: 2.2em;
  }
  .page-about__sub-heading {
    font-size: 1.8em;
  }
  .page-about__main-title {
    font-size: clamp(2em, 4vw, 3em);
  }
  .page-about__hero-content .page-about__description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 15px;
  }
  .page-about__heading {
    font-size: 2em;
  }
  .page-about__sub-heading {
    font-size: 1.6em;
  }
  .page-about__small-heading {
    font-size: 1.4em;
  }
  .page-about__description {
    font-size: 1em;
  }
  .page-about__hero-section {
    padding-bottom: 40px;
    min-height: 500px;
  }
  .page-about__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-about__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-about__content-grid:nth-of-type(odd) .page-about__image-block,
  .page-about__content-grid:nth-of-type(even) .page-about__image-block {
    order: unset; /* Reset order for mobile */
  }
  .page-about__text-block, .page-about__image-block {
    padding: 0;
  }
  .page-about__product-grid,
  .page-about__benefits-grid {
    grid-template-columns: 1fr;
  }
  .page-about__card-image {
    height: 180px;
  }

  /* Image and Video Responsiveness */
  .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__product-grid,
  .page-about__benefits-grid,
  .page-about__faq-list,
  .page-about__contact-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }
  .page-about__hero-section {
    padding-top: 10px !important;
  }
}

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

/* Ensure contrast for specific elements */
.page-about__hero-content .page-about__description,
.page-about__list li,
.page-about__card-text,
.page-about p {
  color: var(--text-secondary-color);
}

.page-about__heading, .page-about__main-title {
  color: var(--gold-color);
}

.page-about__sub-heading, .page-about__small-heading, .page-about__card-title {
  color: var(--text-main-color);
}

.page-about__btn-primary {
  color: #ffffff;
}

.page-about__btn-secondary {
  color: var(--gold-color);
  border-color: var(--gold-color);
}

.page-about__btn-secondary:hover {
  color: var(--card-bg-color);
}

.page-about__faq-answer p {
  color: var(--text-secondary-color);
}

.page-about__faq-question {
  color: var(--text-main-color);
}