/* style/about.css */

/* --- General Page Styles --- */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Text Main from custom colors */
  background-color: #F5F7FA; /* Background from custom colors */
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: #E53935; /* Main color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -1px;
  color: #ffffff; /* For dark hero section */
  max-width: 800px;
  margin: 0 auto 20px;
  text-align: center;
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
}

.page-about__description-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px;
  color: #f0f0f0; /* For dark hero section */
}

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

/* --- Hero Section --- */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  min-height: 500px;
  overflow: hidden;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Brand gradient */
  color: #ffffff;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px; /* Image above text */
  text-align: center;
}

.page-about__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* --- Buttons --- */
.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal; /* Allow button text to wrap */
  word-wrap: break-word; /* Ensure long words break */
  box-sizing: border-box;
}

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

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary {
  background: #ffffff; /* Card BG from custom colors */
  color: #E53935; /* Main color */
  border: 2px solid #E53935; /* Main color */
}

.page-about__btn-secondary:hover {
  background: #f0f0f0;
  color: #FF5A4F; /* Auxiliary color */
  border-color: #FF5A4F; /* Auxiliary color */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-about__btn-link {
  color: #E53935; /* Main color */
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  font-size: 1em;
}

.page-about__btn-link:hover {
  color: #FF5A4F; /* Auxiliary color */
}

/* --- Mission, Vision, Values Section --- */
.page-about__mission-vision-section {
  padding: 80px 0;
  background-color: #ffffff; /* Card BG from custom colors */
}

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

.page-about__card {
  background: #FFFFFF; /* Card BG from custom colors */
  border: 1px solid #E0E0E0; /* Border from custom colors */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  color: #333333; /* Text Main from custom colors */
}

.page-about__card:hover {
  transform: translateY(-5px);
}

.page-about__card-title {
  color: #E53935; /* Main color */
  font-size: 1.8em;
  margin-bottom: 15px;
}

.page-about__card ul {
  list-style: none;
  padding-left: 0;
}

.page-about__card li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-about__card li::before {
  content: '✔';
  color: #FF5A4F; /* Auxiliary color */
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* --- History Section --- */
.page-about__history-section {
  padding: 80px 0;
  background: #F5F7FA; /* Background from custom colors */
  color: #333333; /* Text Main from custom colors */
  text-align: center;
}

.page-about__history-section p {
  max-width: 900px;
  margin: 0 auto 20px;
  font-size: 1.1em;
}

/* --- Products & Services Section --- */
.page-about__products-services-section {
  padding: 80px 0;
  background-color: #ffffff; /* Card BG from custom colors */
}

.page-about__product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-about__product-list li {
  background: #FFFFFF; /* Card BG from custom colors */
  border: 1px solid #E0E0E0; /* Border from custom colors */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  color: #333333; /* Text Main from custom colors */
}

.page-about__product-list li:hover {
  transform: translateY(-5px);
}

.page-about__product-list h3 {
  color: #E53935; /* Main color */
  font-size: 1.5em;
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-about__product-icon {
  width: 100%; /* Ensure images are responsive within card */
  height: auto;
  max-width: 200px; /* Example max width for icons */
  display: block;
  margin: 0 auto 15px;
  border-radius: 8px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  object-fit: cover;
}

/* --- Commitment Section --- */
.page-about__commitment-section {
  padding: 80px 0;
  background: #F5F7FA; /* Background from custom colors */
  color: #333333; /* Text Main from custom colors */
  text-align: center;
}

.page-about__grid--commitment {
  margin-bottom: 40px;
}

.page-about__commitment-item {
  background: #FFFFFF; /* Card BG from custom colors */
  border: 1px solid #E0E0E0; /* Border from custom colors */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  color: #333333; /* Text Main from custom colors */
}

.page-about__commitment-item:hover {
  transform: translateY(-5px);
}

.page-about__commitment-item h3 {
  color: #E53935; /* Main color */
  font-size: 1.8em;
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-about__commitment-image {
  width: 100%;
  height: auto;
  max-width: 400px;
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  object-fit: cover;
}

/* --- CTA Section --- */
.page-about__team-cta-section {
  padding: 80px 0;
  background-color: #E53935; /* Main color */
  color: #ffffff;
  text-align: center;
}

.page-about__team-cta-section .page-about__section-title {
  color: #ffffff;
  margin-bottom: 20px;
}

.page-about__team-cta-section p {
  max-width: 900px;
  margin: 0 auto 30px;
  font-size: 1.1em;
}

/* --- Color Contrast & Dark Backgrounds --- */
.page-about__dark-section {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff; /* For dark sections */
}

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

.page-about__dark-section .page-about__description-text {
  color: #f0f0f0;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-about__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }

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

  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header offset */
    min-height: 400px;
  }
  
  .page-about__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-link {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__container {
    padding: 0 15px;
  }

  .page-about__card,
  .page-about__commitment-item,
  .page-about__product-list li {
    padding: 20px;
  }
  
  /* Images responsive styles */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers that might contain images or other content */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-image-wrapper,
  .page-about__commitment-item,
  .page-about__product-list li {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-about__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-about__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-about__mission-vision-section,
  .page-about__history-section,
  .page-about__products-services-section,
  .page-about__commitment-section,
  .page-about__team-cta-section {
    padding: 40px 0;
  }
}