/* style/about.css */

/* Base styles for page-about, assuming dark body background from shared.css */
.page-about {
  color: #FFF3E6; /* Text Main */
  background-color: transparent; /* Body background handled by shared.css var(--site-bg) */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* General container for content width */
.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

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

/* Paragraph styles */
.page-about p {
  margin-bottom: 1em;
}

/* Link styles */
.page-about a {
  color: #FFA53A; /* Auxiliary color for links */
  text-decoration: none;
}

.page-about a:hover {
  text-decoration: underline;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  box-sizing: border-box;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
  color: #FFF3E6; /* Text Main */
  border: none;
}

.page-about__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background: transparent;
  color: #FFA53A; /* Auxiliary color */
  border: 2px solid #FFA53A; /* Auxiliary color border */
}

.page-about__btn-secondary:hover {
  background: #FFA53A;
  color: #17191F; /* Card BG for contrast */
  transform: translateY(-2px);
}

.page-about__btn-text {
  color: #FFA53A; /* Auxiliary color */
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 10px;
}

.page-about__btn-text:hover {
  text-decoration: underline;
}

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

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

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.page-about__hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 1;
}

.page-about__main-title {
  font-weight: bold;
  line-height: 1.2;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 20px;
  /* clamp for responsive font size, avoiding fixed large values */
  font-size: clamp(2.2em, 4vw, 3.5em);
}

.page-about__description {
  font-size: 1.15em;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 30px;
}

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

/* Intro Section */
.page-about__intro-section {
  padding: 80px 0;
  background-color: #0D0E12; /* Background color */
}

.page-about__intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__intro-image-wrapper {
  text-align: center;
}

.page-about__intro-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 10px;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  padding: 80px 0;
  background-color: #17191F; /* Card BG */
  color: #FFF3E6; /* Text Main */
}

.page-about__why-choose-us-section .page-about__section-title {
  color: #FFB04D; /* Glow color */
}

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

.page-about__feature-card {
  background-color: #0D0E12; /* Background color for card inside dark section */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%; /* Ensure cards have equal height */
}

.page-about__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-about__feature-title {
  font-size: 1.5em;
  color: #FFA53A; /* Auxiliary color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__feature-card p {
  font-size: 0.95em;
  color: #FFF3E6; /* Text Main */
}

.page-about__cta-center {
  text-align: center;
}

/* Services Section */
.page-about__services-section {
  padding: 80px 0;
  background-color: #0D0E12; /* Background color */
}

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

.page-about__service-card {
  background-color: #17191F; /* Card BG */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure cards have equal height */
}

.page-about__service-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-about__service-title {
  font-size: 1.4em;
  color: #FFA53A; /* Auxiliary color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__service-card p {
  font-size: 0.95em;
  color: #FFF3E6; /* Text Main */
  flex-grow: 1;
}

/* Commitment Section */
.page-about__commitment-section {
  padding: 80px 0;
  background-color: #17191F; /* Card BG */
  color: #FFF3E6; /* Text Main */
  text-align: center;
}

.page-about__commitment-content {
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-about__commitment-cta {
  margin-top: 30px;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: #0D0E12; /* Background color */
}

.page-about__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-about__faq-item {
  background-color: #17191F; /* Card BG */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFF3E6; /* Text Main */
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #FFA53A; /* Auxiliary color */
  background-color: #17191F;
  list-style: none; /* Hide default marker */
}

.page-about__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-about__faq-item[open] > .page-about__faq-question {
  background-color: #0D0E12; /* Darker background when open */
}

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #FFB04D; /* Glow color */
}

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

.page-about__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 0.95em;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background color */
}

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

/* Contact Section */
.page-about__contact-section {
  padding: 80px 0;
  background-color: #17191F; /* Card BG */
  color: #FFF3E6; /* Text Main */
  text-align: center;
}

.page-about__contact-info {
  margin-top: 30px;
  font-size: 1.1em;
}

.page-about__contact-info a {
  color: #FFA53A; /* Auxiliary color */
  text-decoration: underline;
}

.page-about__contact-cta {
  margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__intro-grid {
    grid-template-columns: 1fr;
  }
  .page-about__intro-image-wrapper {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }
}

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

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

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

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

  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .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__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* All images responsive */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All image containers responsive */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-image-container,
  .page-about__intro-image-wrapper,
  .page-about__feature-icon,
  .page-about__service-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-about__intro-section,
  .page-about__why-choose-us-section,
  .page-about__services-section,
  .page-about__commitment-section,
  .page-about__faq-section,
  .page-about__contact-section {
    padding: 40px 0;
  }

  .page-about__feature-card,
  .page-about__service-card {
    padding: 20px;
  }

  .page-about__feature-icon {
    max-width: 200px; /* Adjust max-width for smaller screens */
  }

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

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