/* style/about.css */

:root {
  --ph365-primary: #F2C14E;
  --ph365-secondary: #FFD36B;
  --ph365-background: #0A0A0A;
  --ph365-card-bg: #111111;
  --ph365-text-main: #FFF6D6;
  --ph365-border: #3A2A12;
  --ph365-glow: #FFD36B;
  --ph365-btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--ph365-text-main);
  background-color: var(--ph365-background);
  line-height: 1.6;
}

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

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

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

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text contrast */
}

.page-about__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-about__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 700;
  color: var(--ph365-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-about__hero-description {
  font-size: clamp(1em, 2vw, 1.2em);
  color: var(--ph365-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-text-link {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  box-sizing: border-box;
  max-width: 100%;
}

.page-about__btn-primary {
  background: var(--ph365-btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-about__btn-secondary {
  background-color: transparent;
  color: var(--ph365-primary);
  border: 2px solid var(--ph365-primary);
}

.page-about__btn-secondary:hover {
  background-color: var(--ph365-primary);
  color: #ffffff;
  transform: translateY(-3px);
}

.page-about__section-title {
  font-size: clamp(2em, 4vw, 2.8em);
  font-weight: 700;
  color: var(--ph365-primary);
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-about__paragraph {
  font-size: 1.1em;
  color: var(--ph365-text-main);
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__story-section,
.page-about__commitment-section,
.page-about__cta-bottom-section {
  padding: 80px 0;
  background-color: var(--ph365-background);
}

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

.page-about__features-section {
  padding: 80px 0;
  background-color: var(--ph365-background);
}

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

.page-about__feature-card {
  background-color: var(--ph365-card-bg);
  border: 1px solid var(--ph365-border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--ph365-text-main);
}

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

.page-about__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-about__card-title {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--ph365-primary);
  margin-bottom: 15px;
}

.page-about__card-description {
  font-size: 1em;
  color: var(--ph365-text-main);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-about__btn-text-link {
  color: var(--ph365-secondary);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 15px;
  border: 1px solid var(--ph365-secondary);
  border-radius: 5px;
}

.page-about__btn-text-link:hover {
  background-color: var(--ph365-secondary);
  color: var(--ph365-background);
}

.page-about__team-section {
  padding: 80px 0;
  background-color: var(--ph365-background);
  text-align: center;
}

.page-about__team-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.page-about__faq-section {
  padding: 80px 0;
  background-color: var(--ph365-card-bg);
}

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

.page-about__faq-item {
  background-color: var(--ph365-background);
  border: 1px solid var(--ph365-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--ph365-primary);
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1);
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--ph365-primary);
}

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

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--ph365-text-main);
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 20px 25px;
}

.page-about__faq-answer p {
  margin: 0;
  font-size: 1em;
  text-align: left;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__hero-content {
    padding: 15px;
  }

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

  .page-about__hero-description {
    font-size: clamp(0.9em, 1.8vw, 1.1em);
  }

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

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

  .page-about__hero-section {
    padding-bottom: 40px;
  }

  .page-about__hero-image {
    filter: brightness(0.5); /* Darker for mobile text contrast */
  }

  .page-about__hero-content {
    width: calc(100% - 40px); /* Adjust width for padding */
    left: 20px;
    transform: translate(0, -50%);
    padding: 20px;
    box-sizing: border-box;
  }

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

  .page-about__hero-description {
    font-size: clamp(0.9em, 3.5vw, 1em);
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-text-link {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-about__story-section,
  .page-about__features-section,
  .page-about__commitment-section,
  .page-about__team-section,
  .page-about__cta-bottom-section,
  .page-about__faq-section {
    padding: 40px 0;
  }

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

  .page-about__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-bottom: 30px;
  }

  .page-about__paragraph {
    font-size: 1em;
    text-align: left;
  }

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

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

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

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

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

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

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

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

@media (max-width: 480px) {
  .page-about__hero-content {
    width: calc(100% - 30px);
    left: 15px;
    padding: 15px;
  }

  .page-about__main-title {
    font-size: clamp(1.6em, 8vw, 2.2em);
  }

  .page-about__hero-description {
    font-size: clamp(0.85em, 4vw, 0.95em);
  }

  .page-about__cta-buttons {
    gap: 10px;
  }

  .page-about__faq-question {
    font-size: 1em;
  }
}