/* style/about.css */

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

/* Base styles for the page content, assuming body has --bg-color as background */
.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Text Main on dark page background */
  background-color: var(--page-bg); /* Page background */
  line-height: 1.6;
  font-size: 16px;
}

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

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

.page-about__dark-bg {
  background-color: var(--page-bg);
  color: var(--text-main);
}

.page-about__medium-bg {
  background-color: var(--deep-green);
  color: var(--text-main);
}

.page-about__light-bg {
  background-color: #f5f5f5; /* A light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-about__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.page-about__subsection-title {
  font-size: clamp(22px, 3vw, 30px);
  color: var(--secondary-color);
  margin-top: 40px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__text-block {
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__highlight {
  color: var(--text-main);
  font-weight: bold;
}

.page-about__list {
  list-style: none;
  padding: 0;
  margin: 20px auto;
  max-width: 800px;
  text-align: left;
}

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

.page-about__list-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

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

.page-about__hero-image-wrapper {
  width: 100%;
  position: relative;
  z-index: 1;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px;
  opacity: 0.8;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  max-width: 900px;
  margin-top: -150px; /* Overlap slightly for visual effect */
  background: rgba(17, 39, 27, 0.8); /* Card BG with transparency */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-about__main-title {
  font-size: clamp(32px, 5vw, 56px);
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.page-about__hero-description {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-button {
  display: inline-block;
  background: var(--button-gradient);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-about__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__cta-button.page-about__button-small {
  padding: 10px 20px;
  font-size: 16px;
}

/* History Section */
.page-about__history {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-about__image-container {
  margin: 40px auto;
  max-width: 800px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

.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: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-about__product-title {
  font-size: 24px;
  color: var(--text-main);
  margin: 0 20px 10px 20px;
  font-weight: 700;
}

.page-about__product-description {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-about__product-card .page-about__cta-button {
  margin: 0 20px;
  align-self: flex-start;
}

/* Commitment Section */
.page-about__commitment {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-about__commitment-item {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--text-secondary);
}

.page-about__commitment-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px var(--primary-color));
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-about__commitment-title {
  font-size: 22px;
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-about__commitment-description {
  font-size: 15px;
  margin-bottom: 20px;
}

.page-about__text-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-about__text-link:hover {
  color: var(--gold-color);
  text-decoration: underline;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-about__feature-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333; /* Dark text for light background */
}

.page-about__feature-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-about__feature-description {
  font-size: 15px;
  line-height: 1.7;
}

.page-about__cta-bottom {
  margin-top: 60px;
  padding: 30px;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  color: var(--text-main);
}

.page-about__cta-text {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

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

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

.page-about__faq-item {
  background-color: var(--card-bg);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  background-color: var(--deep-green);
  border-bottom: 1px solid var(--divider-color);
  transition: background-color 0.3s ease;
}

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

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

.page-about__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--divider-color);
  background-color: var(--card-bg);
}

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

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

/* For details tag, hide default marker */
.page-about__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-about__faq-item summary {
  list-style: none;
}

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

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

.page-about__contact-item {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--text-secondary);
}

.page-about__contact-title {
  font-size: 22px;
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-about__contact-description {
  font-size: 15px;
  margin-bottom: 20px;
}

/* Image sizing enforcement */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-about__commitment-icon {
  width: 200px; /* Enforce 200x200 for these specific icons */
  height: 200px;
  object-fit: contain; /* Icons should contain */
  margin: 0 auto 20px auto; /* Center the icon */
  filter: none; /* No filter for color change */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__hero-content {
    margin-top: -100px;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 15px;
  }

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

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

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

  .page-about__main-title {
    font-size: clamp(28px, 6vw, 40px);
  }

  .page-about__hero-description {
    font-size: clamp(14px, 3vw, 18px);
  }

  .page-about__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__cta-bottom .page-about__cta-button {
    width: auto !important; /* Allow button to shrink if text wraps */
    max-width: 90% !important;
    margin: 0 auto;
  }

  .page-about__section-title {
    font-size: clamp(24px, 5vw, 36px);
  }

  .page-about__subsection-title {
    font-size: clamp(20px, 4vw, 26px);
  }

  .page-about__product-grid,
  .page-about__commitment-grid,
  .page-about__feature-grid,
  .page-about__contact-methods {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__product-card,
  .page-about__commitment-item,
  .page-about__feature-item,
  .page-about__contact-item {
    padding: 20px;
  }

  .page-about__product-image {
    height: 180px;
  }

  .page-about__commitment-icon {
    width: 150px;
    height: 150px;
    min-width: 150px !important;
    min-height: 150px !important;
  }

  /* Ensure all images are responsive and do not overflow */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-about__product-card .page-about__cta-button {
    width: auto !important; /* allow product button to be smaller than 100% */
    max-width: 90% !important;
    margin: 0 auto;
  }

  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }

  .page-about__faq-answer {
    padding: 15px 20px;
    font-size: 14px;
  }

  .page-about__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-about__hero-image {
    max-height: 400px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-content {
    margin-top: -60px;
  }

  .page-about__main-title {
    font-size: clamp(24px, 7vw, 32px);
  }

  .page-about__hero-description {
    font-size: clamp(13px, 3.5vw, 16px);
  }

  .page-about__cta-button {
    font-size: 15px;
  }

  .page-about__section-title {
    font-size: clamp(22px, 6vw, 30px);
  }

  .page-about__subsection-title {
    font-size: clamp(18px, 5vw, 24px);
  }

  .page-about__product-image {
    height: 150px;
  }

  .page-about__commitment-icon {
    width: 120px;
    height: 120px;
    min-width: 120px !important;
    min-height: 120px !important;
  }

  .page-about__cta-text {
    font-size: 16px;
  }
}