/* style/about.css */

/* Base styles for page-about */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Text Main color for light backgrounds */
  background-color: #F5F7FA; /* Background color */
}

/* Section general styling */
.page-about__section {
  padding: 60px 20px;
  text-align: center;
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Add padding for content within container */
  box-sizing: border-box;
}

/* Headings */
.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp as per instruction for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff; /* For dark hero section */
}

.page-about__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #333333; /* Text Main */
}

.page-about__section-title--light {
  color: #ffffff; /* For dark sections */
}

.page-about__sub-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #E53935; /* Primary color */
}

.page-about__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 15px;
  margin-bottom: 10px;
  color: #E53935; /* Primary color */
}

.page-about__card-title a {
  color: #E53935;
  text-decoration: none;
}

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

/* Intro text */
.page-about__intro-text {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #ffffff; /* For dark hero section */
}

.page-about__section-description {
  font-size: 1.1rem;
  max-width: 900px;
  margin: -20px auto 40px auto;
  color: #333333;
}

/* Links within content */
.page-about p a {
  color: #E53935; /* Primary color for links */
  text-decoration: underline;
}

.page-about p a:hover {
  color: #FF5A4F; /* Auxiliary color on hover */
}

/* Hero section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 10px 20px 60px 20px; /* Small top padding, larger bottom padding */
  text-align: center;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
}

/* CTA Buttons */
.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%; /* Ensure container takes full width for flex-wrap */
  max-width: 100%;
  box-sizing: border-box;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Custom button color */
  color: #ffffff;
  border: none;
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background: #ffffff;
  color: #E53935; /* Primary color */
  border: 2px solid #E53935; /* Border color */
}

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

.page-about__btn-small {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* Content Grids */
.page-about__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
  text-align: left;
}

.page-about__content-grid:last-of-type {
  margin-bottom: 0;
}

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

.page-about__text-block {
  flex: 1;
  min-width: 300px;
}

.page-about__image-block {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* Core Values Section */
.page-about__core-values {
  background-color: #E53935; /* Primary color as background */
  color: #ffffff; /* White text for dark background */
}

.page-about__core-values .page-about__sub-title {
  color: #ffffff; /* White text */
}

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

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card background */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-about__value-card .page-about__card-title {
  color: #ffffff; /* White text for titles in dark cards */
}

.page-about__card-icon {
  width: 200px; /* Enforcing min 200px */
  height: 200px; /* Enforcing min 200px */
  object-fit: contain;
  margin-bottom: 15px;
  filter: brightness(1.2); /* Slightly brighten icons on dark background */
}

/* Products and Services Section */
.page-about__products-services {
  background-color: #F5F7FA; /* Background color */
}

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

.page-about__product-card {
  background-color: #ffffff; /* Card BG color */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure cards are same height */
  border: 1px solid #E0E0E0; /* Border color */
}

.page-about__product-card .page-about__product-image {
  width: 100%;
  height: 250px; /* Fixed height for product images, > 200px */
  object-fit: cover;
  display: block;
}

.page-about__product-card .page-about__card-title {
  padding: 15px 20px 0 20px;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-about__product-card p {
  padding: 0 20px 20px 20px;
  flex-grow: 1; /* Allow paragraph to grow */
  color: #333333;
}

/* Commitments Section */
.page-about__commitments {
  background-color: #FF5A4F; /* Auxiliary color as background */
  color: #ffffff; /* White text for dark background */
}

.page-about__commitments .page-about__sub-title {
  color: #ffffff; /* White text */
}

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

.page-about__commitment-card {
  background-color: rgba(255, 255, 255, 0.15); /* Slightly darker semi-transparent white */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-about__commitment-card .page-about__card-title {
  color: #ffffff; /* White text for titles in dark cards */
}

/* Why Choose Us Section */
.page-about__why-choose-us {
  background-color: #F5F7FA; /* Background color */
}

.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: #ffffff; /* Card BG color */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: left;
  border: 1px solid #E0E0E0; /* Border color */
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #333333;
}

.page-about__benefit-card .page-about__card-title {
  color: #E53935; /* Primary color */
}

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

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

.page-about__faq-item {
  background-color: #ffffff; /* Card BG color */
  border: 1px solid #E0E0E0; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  color: #333333;
}

.page-about__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  color: #E53935; /* Primary color for questions */
}

.page-about__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  font-weight: normal;
  line-height: 1;
  margin-left: 15px;
  color: #333333;
}

.page-about__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: #333333;
}

/* Dark background sections */
.page-about__dark-section {
  background-color: #E53935; /* Example: Primary color as dark background */
  color: #ffffff;
}

.page-about__dark-section .page-about__section-title {
  color: #ffffff;
}

.page-about__dark-section .page-about__sub-title {
  color: #ffffff;
}

/* Responsive design */
@media (max-width: 992px) {
  .page-about__content-grid {
    flex-direction: column;
  }
  .page-about__content-grid--reverse {
    flex-direction: column; /* Keep column for reverse on smaller screens */
  }
}

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

  .page-about__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-about__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

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

  .page-about__card-title {
    font-size: 1.3rem;
  }

  .page-about__intro-text,
  .page-about__section-description,
  .page-about p,
  .page-about li {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__container,
  .page-about__section,
  .page-about__card,
  .page-about__content-grid,
  .page-about__values-grid,
  .page-about__product-grid,
  .page-about__commitments-grid,
  .page-about__benefits-grid,
  .page-about__faq-list,
  .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: hidden !important; /* Ensure no overflow */
  }

  /* Video responsiveness (if any, though not explicitly in HTML for this page) */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__video-section {
    padding-top: 10px !important; /* Small top padding, body handles --header-offset */
  }
  .page-about__video-container,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Button responsiveness */
  .page-about__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important; /* Full width buttons */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__faq-item summary {
    font-size: 1rem;
    padding: 15px;
  }
  .page-about__faq-answer {
    padding: 0 15px 15px 15px;
  }
}

/* Ensure content area images are not too small */
.page-about__text-block img,
.page-about__image-block img,
.page-about__value-card img,
.page-about__product-card img,
.page-about__commitment-card img,
.page-about__benefit-card img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* Ensure images fill their space nicely */
}

/* No CSS filter for images */
.page-about img {
  filter: none; /* Explicitly remove any default filter */
}
/* Exception for hero image to darken it for text readability */
.page-about__hero-image {
  filter: brightness(0.5); /* This is for background, not content image */
}