/* style/about.css */

:root {
  --primary-color: #C61F1F;
  --secondary-color: #E53030;
  --card-bg: #2A1212;
  --bg-dark: #140C0C; /* This should align with --bg-color in shared.css */
  --text-main: #FFF1E8;
  --border-color: #6A1E1E;
  --gold-color: #F3C54D;
  --deep-red: #7E0D0D;
  --button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
}

/* Base styles for the page content, ensuring contrast with shared body background */
.page-about {
  color: var(--text-main); /* Light text on dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Section styling */
.page-about__section {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--bg-dark); /* Ensure dark background for sections */
  color: var(--text-main); /* Light text for sections */
}

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

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

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

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image slightly for text readability, not changing color */
  display: block;
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
}

/* Headings */
.page-about__heading-primary {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gold-color);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.page-about__heading-secondary {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--gold-color);
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-about__heading-secondary::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gold-color);
  border-radius: 2px;
}

.page-about__heading-tertiary {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--gold-color);
  margin-bottom: 15px;
}

/* Text elements */
.page-about__description {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 30px;
}

.page-about__text-block {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 20px;
  text-align: left;
}

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

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

/* CTA Buttons */
.page-about__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-about__cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 176, 74, 0.6);
}

.page-about__btn-secondary {
  background: var(--card-bg);
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
}

.page-about__btn-secondary:hover {
  background: var(--gold-color);
  color: var(--card-bg);
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

/* Core Values Grid */
.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-about__card {
  background-color: var(--card-bg);
  color: var(--text-main);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-about__card p {
  color: var(--text-main);
}

/* Products & Services Section */
.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-about__content-grid--reverse {
  grid-template-columns: 1fr 1fr;
  direction: rtl; /* Reverse order for content and image */
}

.page-about__content-grid--reverse > div {
  direction: ltr; /* Reset direction for child elements */
}

.page-about__image-wrapper {
  width: 100%;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-about__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  text-align: left;
}

.page-about__list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23F3C54D"><path d="M9 21.035l-9-8.638 2.791-2.875 6.209 5.922 12.21-12.426 2.79 2.875z"/></svg>') no-repeat left center;
  background-size: 18px;
  padding-left: 30px;
  margin-bottom: 15px;
  color: var(--text-main);
  font-size: 1rem;
}

/* FAQ Section */
.page-about__faq-list {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-about__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  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.1rem;
  font-weight: 600;
  color: var(--gold-color);
  cursor: pointer;
  background-color: var(--deep-red);
  border-bottom: 1px solid var(--border-color);
  user-select: none;
}

.page-about__faq-item[open] .page-about__faq-question {
  border-bottom: 1px solid var(--border-color);
}

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

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  padding: 20px 25px;
  color: var(--text-main);
  font-size: 1rem;
  background-color: var(--card-bg);
  border-top: none; /* No top border, bottom border handled by question */
}

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

/* Final CTA Section */
.page-about__cta-final .page-about__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__content-grid {
    grid-template-columns: 1fr;
  }
  .page-about__content-grid--reverse {
    grid-template-columns: 1fr;
    direction: ltr; /* Reset direction on smaller screens */
  }
  .page-about__content-grid--reverse > div {
    direction: ltr;
  }
  .page-about__image-wrapper {
    order: -1; /* Image first on mobile for reverse grid */
    margin-bottom: 30px;
  }
}

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

  .page-about__hero-section {
    padding: 10px 15px 40px !important;
  }

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

  .page-about__heading-secondary {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }

  .page-about__heading-tertiary {
    font-size: clamp(1.3rem, 5vw, 1.7rem);
  }

  .page-about__description,
  .page-about__text-block,
  .page-about__list li,
  .page-about__faq-answer p {
    font-size: 1rem !important;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-about__container,
  .page-about__card,
  .page-about__hero-content,
  .page-about__image-wrapper,
  .page-about__faq-list,
  .page-about__faq-item,
  .page-about__faq-question,
  .page-about__faq-answer {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure video styles are also responsive */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__video-section,
  .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;
  }
  .page-about__video-section {
    padding-top: 10px !important; /* Small top padding for video section */
  }
}

@media (max-width: 480px) {
  .page-about__heading-primary {
    font-size: clamp(1.8rem, 9vw, 2.2rem);
  }

  .page-about__heading-secondary {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

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

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