/* style/about.css */
/* 
  Page-specific styles for the About Us page.
  All class names adhere to BEM naming convention (page-about__element-name).
*/

/* Root variables for colors based on the provided scheme */
:root {
  --primary-color: #C91F17; /* Main color */
  --secondary-color: #E53935; /* Auxiliary color */
  --card-bg: #D32F2F; /* Card background */
  --background-color-page: #B71C1C; /* Page background for specific sections */
  --text-main: #FFF5E1; /* Main text color for dark backgrounds */
  --border-color: #F2B544; /* Border color */
  --glow-color: #FFCC66; /* Glow effect color */
  --gold-color: #F4D34D; /* Gold color */
  --deep-red-color: #7A0E0E; /* Deep red color */
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  
  /* Default text colors for light/dark backgrounds */
  --text-color-light-bg: #333333;
  --text-color-dark-bg: #ffffff;
}

/* Base styles for the page content */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-light-bg); /* Default text color for light backgrounds */
  background-color: #f8f8f8; /* A light background for the whole page, overridden by sections */
}

/* Ensure images are responsive by default */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: none !important; /* Ensure no filter is used on images */
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  /* body padding-top is handled by shared.css for header offset */
  padding-top: 10px; /* Small top padding for aesthetic spacing */
  background-color: var(--deep-red-color); /* Use a brand color for the section background */
  color: var(--text-color-dark-bg);
  overflow: hidden; /* Ensure no overflow */
}

.page-about__hero-container {
  position: relative;
  max-width: 1200px;
  width: 100%; /* Ensure it takes full width within max-width */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-about__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-about__hero-image img {
  width: 100%;
  height: auto; /* Ensure image scales proportionally */
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-about__hero-content h1 {
  color: var(--text-color-dark-bg);
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  /* No fixed font-size, rely on clamp or responsive scaling */
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.page-about__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-dark-bg);
  opacity: 0.9;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: #000000; /* Text color for gradient button */
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* General Section Styles */
.page-about__intro-section,
.page-about__products-section,
.page-about__responsibility-section,
.page-about__faq-section {
  padding: 80px 20px;
  background-color: #ffffff; /* Light background for these sections */
  color: var(--text-color-light-bg);
}

.page-about__values-section,
.page-about__security-support-section,
.page-about__call-to-action {
  padding: 80px 20px;
  background-color: var(--background-color-page); /* Dark background for these sections */
  color: var(--text-color-dark-bg);
}

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

.page-about__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: bold;
  text-align: center;
  margin-bottom: 50px;
  line-height: 1.3;
  color: inherit; /* Inherit color from parent section */
}

/* Intro Section */
.page-about__intro-section p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: justify;
}

.page-about__intro-section p a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-about__intro-section p a:hover {
  color: var(--secondary-color);
}

.page-about__image-block {
  margin: 40px 0;
  text-align: center;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-about__image-block img {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  max-width: 100%;
  height: auto;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

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

.page-about__value-card {
  background-color: var(--card-bg); /* Custom card background */
  color: var(--text-main); /* Custom text color for card */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-about__value-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--gold-color); /* Gold color for titles */
}

.page-about__value-card p a {
  color: var(--gold-color);
  text-decoration: underline;
}

.page-about__value-card p a:hover {
  color: var(--glow-color);
}

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

.page-about__product-card {
  background-color: #fefefe;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-color-light-bg);
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.page-about__product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-about__product-card img {
  width: 100%;
  height: 220px; /* Fixed height for product images */
  object-fit: cover;
  border-bottom: 1px solid #eee;
  min-width: 200px;
  min-height: 200px;
}

.page-about__product-card h3 {
  font-size: 1.3rem;
  font-weight: bold;
  padding: 20px 20px 10px;
  color: var(--primary-color);
}

.page-about__product-card p {
  font-size: 1rem;
  padding: 0 20px 20px;
  flex-grow: 1;
  text-align: justify;
}

.page-about__product-card p a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-about__product-card p a:hover {
  color: var(--secondary-color);
}

.page-about__product-link {
  display: inline-block;
  margin: 0 20px 20px;
  padding: 10px 20px;
  background-color: var(--secondary-color);
  color: var(--text-color-dark-bg);
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  align-self: flex-start;
  font-weight: bold;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__product-link:hover {
  background-color: var(--primary-color);
}

/* Security and Support Section */
.page-about__security-support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.page-about__security-block,
.page-about__support-block {
  background-color: var(--deep-red-color); /* Deeper red for these blocks */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
  text-align: center;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.page-about__security-block img,
.page-about__support-block img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  min-height: 200px;
}

.page-about__security-title,
.page-about__support-title {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--gold-color);
}

.page-about__security-block p,
.page-about__support-block p {
  font-size: 1.05rem;
  margin-bottom: 15px;
  text-align: justify;
}

.page-about__security-block p a,
.page-about__support-block p a {
  color: var(--gold-color);
  text-decoration: underline;
}

.page-about__security-block p a:hover,
.page-about__support-block p a:hover {
  color: var(--glow-color);
}

/* Responsibility Section */
.page-about__responsibility-section p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: justify;
}

.page-about__responsibility-section p a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-about__responsibility-section p a:hover {
  color: var(--secondary-color);
}

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

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  color: var(--text-color-light-bg);
}

details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-weight: bold;
  color: var(--primary-color);
}

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

details.page-about__faq-item summary.page-about__faq-question:hover {
  background: #f5f5f5;
}

.page-about__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-about__faq-item .page-about__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  font-size: 1rem;
  color: #555;
}

details.page-about__faq-item .page-about__faq-answer p {
  margin-bottom: 10px;
}

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

details.page-about__faq-item .page-about__faq-answer p a {
  color: var(--primary-color);
  text-decoration: underline;
}

details.page-about__faq-item .page-about__faq-answer p a:hover {
  color: var(--secondary-color);
}

/* Call to Action Section */
.page-about__call-to-action {
  text-align: center;
  padding-bottom: 40px; /* Adjust padding for copyright */
}

.page-about__call-to-action p {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-dark-bg);
  opacity: 0.9;
}

.page-about__call-to-action p a {
  color: var(--gold-color);
  text-decoration: underline;
}

.page-about__call-to-action p a:hover {
  color: var(--glow-color);
}

.page-about__copyright {
  font-size: 0.9rem;
  margin-top: 50px;
  color: var(--text-main);
  opacity: 0.7;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-about__hero-section,
  .page-about__intro-section,
  .page-about__values-section,
  .page-about__products-section,
  .page-about__security-support-section,
  .page-about__responsibility-section,
  .page-about__faq-section,
  .page-about__call-to-action {
    padding-left: 15px;
    padding-right: 15px;
  }
}

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

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

  /* Hero Section */
  .page-about__hero-section {
    padding-top: 10px !important; /* Fixed header offset handled by body, small aesthetic padding here */
    padding-bottom: 40px;
  }

  .page-about__hero-content h1 {
    font-size: 2rem;
  }

  .page-about__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-about__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  /* Image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__image-block img,
  .page-about__product-card img,
  .page-about__security-block img,
  .page-about__support-block img {
    min-width: unset; /* Remove min-width constraint for small screens */
    min-height: unset; /* Remove min-height constraint for small screens */
    height: auto; /* Allow height to adjust naturally */
  }
  
  .page-about__product-card img {
    height: auto !important; /* Override fixed height for responsiveness */
  }

  .page-about__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Values Section */
  .page-about__values-grid {
    grid-template-columns: 1fr;
  }

  .page-about__value-card {
    padding: 25px;
  }

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

  /* Products Section */
  .page-about__products-grid {
    grid-template-columns: 1fr;
  }

  .page-about__product-card h3 {
    font-size: 1.2rem;
  }

  .page-about__product-link {
    align-self: stretch;
    text-align: center;
    margin-left: 15px;
    margin-right: 15px;
  }
  
  /* Security & Support */
  .page-about__security-support-grid {
    grid-template-columns: 1fr;
  }

  .page-about__security-title,
  .page-about__support-title {
    font-size: 1.4rem;
  }
  
  /* FAQ Section */
  details.page-about__faq-item summary.page-about__faq-question { padding: 15px; }
  .page-about__faq-qtext { font-size: 15px; }
  .page-about__faq-answer {
    padding: 0 15px 15px;
  }
}