/* style/about.css */

/* --- Base Styles & Layout --- */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

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

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

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

.page-about__section-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__sub-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about p {
  margin-bottom: 15px;
  color: #F2FFF6; /* Text Main */
}

.page-about a {
  color: #F2C14E; /* Gold */
  text-decoration: none;
}

.page-about a:hover {
  text-decoration: underline;
  color: #57E38D; /* Glow */
}

/* --- Buttons --- */
.page-about__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  gap: 20px;
  margin-top: 40px;
  justify-content: flex-start;
}

.page-about__cta-buttons--center {
  justify-content: center;
}

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  white-space: nowrap;
  word-wrap: normal;
  box-sizing: border-box;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #F2FFF6; /* Text Main */
  border: 2px solid #2E7A4E; /* Border */
}

.page-about__btn-secondary:hover {
  background-color: #2E7A4E; /* Border */
  color: #ffffff;
  transform: translateY(-2px);
}

.page-about__btn-link {
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
  border: 1px solid #1E3A2A; /* Divider */
  padding: 8px 15px;
  font-size: 0.9rem;
  margin-top: 15px;
}

.page-about__btn-link:hover {
  background-color: #2E7A4E; /* Border */
  color: #ffffff;
  transform: translateY(-1px);
}

/* --- Hero Section --- */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, body handles main offset */
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit hero image height */
  overflow: hidden;
  position: relative;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 400px; /* Ensure hero image is not too small */
}

.page-about__hero-content {
  position: relative; /* Ensure content is above image if needed, but not overlaying */
  z-index: 1;
  padding: 40px 20px 0;
  max-width: 900px;
  margin-top: -100px; /* Pull content up over the image's bottom edge a bit, but not on top of it */
  background: linear-gradient(0deg, #08160F 0%, rgba(8, 22, 15, 0.8) 50%, transparent 100%); /* bg-color */
  border-radius: 15px 15px 0 0;
  padding-bottom: 30px;
}

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__intro-text {
  font-size: 1.2rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Content Grid Layout --- */
.page-about__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

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

.page-about__text-block {
  flex: 1;
}

.page-about__image-block {
  flex: 1;
  min-width: 300px; /* Minimum width for image block */
}

.page-about__content-image,
.page-about__support-icon {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  min-width: 200px; /* Minimum image size */
  min-height: 200px;
}

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

.page-about__product-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
  text-align: center;
}

.page-about__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-about__card-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin: 0 15px 10px;
}

.page-about__card-title a {
  color: #F2FFF6; /* Text Main */
}

.page-about__card-title a:hover {
  color: #57E38D; /* Glow */
}

.page-about__card-text {
  font-size: 0.95rem;
  color: #A7D9B8; /* Text Secondary */
  margin: 0 15px 20px;
  flex-grow: 1;
}

/* --- Customer Support Section --- */
.page-about__support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-about__support-item {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-about__support-icon {
  width: 150px;
  height: auto;
  margin: 0 auto 20px;
  border-radius: 50%;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px;
}

.page-about__support-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-about__support-text {
  color: #A7D9B8; /* Text Secondary */
}

/* --- FAQ Section --- */
.page-about__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
}

.page-about__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #1E3A2A; /* Divider */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #0A4B2C; /* Deep Green */
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-about__faq-question:hover {
  background-color: #2E7A4E; /* Border */
}

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

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

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #F2C14E; /* Gold */
}

.page-about__faq-item[open] .page-about__faq-toggle {
  content: "−";
}

.page-about__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  background-color: #11271B; /* Card BG */
}

.page-about__faq-answer p {
  color: #A7D9B8; /* Text Secondary */
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .page-about__section-title {
    font-size: 2rem;
  }

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

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

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

  .page-about__content-grid {
    flex-direction: column;
  }

  .page-about__content-grid--reversed {
    flex-direction: column; /* Revert to column for smaller screens */
  }

  .page-about__image-block {
    order: -1; /* Image appears above text in reversed layout on mobile */
  }
}

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

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

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

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

  .page-about__intro-text {
    font-size: 1rem;
  }

  .page-about__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
    padding-bottom: 40px;
  }

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

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to buttons container */
  }
  
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-link,
  .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;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__product-grid {
    grid-template-columns: 1fr;
  }

  .page-about__support-grid {
    grid-template-columns: 1fr;
  }

  .page-about__content-image,
  .page-about__card-image,
  .page-about__support-icon,
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure minimum size is maintained */
    min-height: 200px !important;
  }

  .page-about__container,
  .page-about__product-card,
  .page-about__support-item,
  .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;
  }
  
  .page-about__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}