/* ============================================================
   ALL AMERICAN CHC — Mission Page
   Section styles for template-mission.php.
   Global styles (breadcrumb, CTA banner, footer) live in global.css.
   Testimonials styles are duplicated here so the section renders
   correctly outside the homepage.
   ============================================================ */


/* === MISSION HERO === */
.mission-hero-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 100px;
}

.mission-hero {
  width: 100%;
  height: 580px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 60px 170px;
}

.mission-hero-bg {
  position: absolute;
  inset: 0;
}

.mission-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mission-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8));
}

.mission-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 862px;
  max-width: 100%;
}

.mission-hero-sub {
  font-size: 18px;
  line-height: 24px;
  color: var(--color-grey-0);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  margin-bottom: 12px;
}

.mission-hero-title {
  font-size: 72px;
  line-height: 80px;
  font-weight: var(--fw-semibold);
  color: var(--color-grey-0);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}


/* === INFO INTRO === */
.info-intro {
  max-width: 1440px;
  margin: 160px auto 0;
  padding: 0 100px;
}

.intro-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding-top: 20px;
  max-width: 958px;
  margin: 0 auto;
}

.intro-line {
  width: 3px;
  height: 80px;
  background: var(--color-primary-green);
  border-radius: 2px;
}

.intro-paragraph {
  font-size: 20px;
  line-height: 26px;
  color: var(--color-grey-9);
  text-align: center;
}

.intro-photos {
  position: relative;
  height: 444px;
  margin-top: 80px;
}

.intro-photo-card {
  position: absolute;
  width: 397px;
  height: 380px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.intro-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-photo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 36.6%, rgba(0, 0, 0, 1));
}

.intro-photo-card:nth-child(1) { left: 0; top: 0; }
.intro-photo-card:nth-child(2) { left: 421px; top: 64px; }
.intro-photo-card:nth-child(3) { left: 843px; top: 0; }

.intro-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 1;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.92));
}

.intro-photo-caption p {
  font-size: 18px;
  line-height: 24px;
  color: var(--color-grey-0);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}


/* === PARAGRAPH SECTION === */
.mission-paragraph {
  max-width: 1440px;
  margin: 160px auto 0;
  padding: 0 100px;
}

.mission-para-header {
  text-align: center;
  margin-bottom: 36px;
}

.mission-para-title {
  font-size: 32px;
  line-height: 40px;
  font-weight: var(--fw-semibold);
  color: var(--color-blue-4);
}

.mission-para-sub {
  font-size: 18px;
  line-height: 24px;
  color: var(--color-grey-9);
  margin-top: 16px;
}

.mission-para-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.mission-para-text {
  width: 608px;
  font-size: 18px;
  line-height: 24px;
  color: var(--color-grey-9);
  flex-shrink: 0;
}

.mission-para-images {
  display: flex;
  gap: 24px;
  flex: 1;
}

.mission-para-img {
  width: 292px;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
}

.mission-para-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mission-para-row2 {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

.mission-para-text2 {
  width: 608px;
  font-size: 18px;
  line-height: 24px;
  color: var(--color-grey-9);
}


/* === OUR STORY === */
.our-story {
  max-width: 1440px;
  margin: 160px auto 0;
  padding: 0 100px;
}

.our-story-header {
  margin-bottom: 48px;
}

.our-story-title {
  font-size: 32px;
  line-height: 40px;
  font-weight: var(--fw-semibold);
  color: var(--color-blue-4);
}

.our-story-sub {
  font-size: 18px;
  line-height: 24px;
  color: var(--color-grey-9);
  margin-top: 16px;
  max-width: 600px;
}

.our-story-layout {
  display: flex;
  gap: 60px;
  align-items: stretch;
}

.our-story-tabs {
  width: 540px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.story-tab {
  padding: 16px 24px;
  cursor: pointer;
  border-radius: var(--radius-xl);
  border: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.story-tab:hover:not(.is-active) {
  background: rgba(231, 241, 251, 0.4);
}

.story-tab-title {
  font-size: 20px;
  line-height: 26px;
  font-weight: var(--fw-medium);
  color: var(--color-grey-9);
  transition: color 0.3s ease;
}

.story-tab-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, margin 0.35s ease;
  opacity: 0;
  margin-top: 0;
}

.story-tab-text {
  font-size: 18px;
  line-height: 24px;
  color: var(--color-grey-8);
}

.story-tab.is-active {
  background: var(--color-blue-n11);
  border-color: var(--color-blue-n9);
  padding: 24px;
}

.story-tab.is-active .story-tab-title {
  color: var(--color-blue-4);
}

.story-tab.is-active .story-tab-content {
  max-height: 300px;
  opacity: 1;
  margin-top: 12px;
}

.story-tab-divider {
  height: 1px;
  background: var(--color-grey-3);
  margin: 0 24px;
}

.story-tab.is-active + .story-tab-divider,
.story-tab-divider:has(+ .story-tab.is-active) {
  display: none;
}

.our-story-image {
  flex: 1;
  min-width: 0;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 480px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.story-img-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.story-img-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-img-layer.is-visible {
  opacity: 1;
}

.our-story-mobile-img {
  display: none;
}


/* === WHAT WE STAND FOR === */
.stand-for {
  max-width: 1440px;
  margin: 160px auto 0;
  padding: 0 100px;
}

.stand-for-grid {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.stand-for-col {
  width: 608px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stand-for-col:first-child {
  gap: 72px;
}

.stand-for-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stand-for-title {
  font-size: 32px;
  line-height: 40px;
  font-weight: var(--fw-semibold);
  color: var(--color-blue-4);
}

.stand-for-sub {
  font-size: 18px;
  line-height: 24px;
  color: var(--color-grey-9);
  max-width: 600px;
}

.stand-for-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stand-card {
  width: 100%;
  height: 390px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.stand-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stand-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 36.6%, rgba(0, 0, 0, 1));
}

.stand-card-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 1;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.82));
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stand-card-title {
  font-size: 24px;
  line-height: 30px;
  font-weight: var(--fw-medium);
  color: var(--color-grey-0);
}

.stand-card-text {
  font-size: 18px;
  line-height: 24px;
  color: var(--color-grey-1);
}

.stand-for-mobile-slider {
  display: none;
}


/* === TESTIMONIALS (duplicated from home.css for cross-page reuse) === */
.testimonials-section {
  padding: 0 100px;
  max-width: 1440px;
  margin: 160px auto 0;
}

.testimonials-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.testimonials-header-text { max-width: 600px; }

.testimonials-title {
  font-size: 32px;
  line-height: 40px;
  font-weight: var(--fw-semibold);
  color: var(--color-blue-4);
}

.testimonials-subtitle {
  font-size: 18px;
  line-height: 24px;
  color: var(--color-grey-9);
  margin-top: 16px;
}

.testimonials-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 16px 24px;
  border-radius: var(--radius-xl);
  background: var(--color-primary-blue);
  color: var(--color-grey-0);
  font-size: 17px;
  line-height: 1;
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.testimonials-header-cta:hover { background: var(--color-blue-n3); }
.testimonials-header-cta svg { width: 20px; height: 20px; }

.testimonials-track-wrapper {
  overflow: hidden;
  max-width: 1240px;
  margin: 0 auto;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  min-width: 397px;
  width: 397px;
  background: var(--color-grey-0);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  flex-shrink: 0;
}

.testimonial-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.testimonial-stars { display: flex; gap: 4px; }
.testimonial-star { width: 24px; height: 24px; }

.testimonial-date {
  font-size: 14px;
  line-height: 18px;
  font-weight: var(--fw-medium);
  color: var(--color-grey-6);
}

.testimonial-quote {
  font-size: 18px;
  line-height: 24px;
  color: var(--color-grey-9);
}

.testimonial-author {
  font-size: 16px;
  line-height: 22px;
  font-weight: var(--fw-medium);
  color: var(--color-grey-9);
  margin-top: 16px;
}

.testimonials-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
}

.test-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition-fast);
}

.test-btn--prev { background: var(--color-grey-5); }
.test-btn--prev:hover { background: var(--color-grey-6); }
.test-btn--next { background: var(--color-primary-blue); }
.test-btn--next:hover { background: var(--color-blue-n3); }
.test-btn svg { width: 20px; height: 20px; }

.test-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.test-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-grey-5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition-fast);
}

.test-dot.active { background: var(--color-primary-blue); }

.testimonials-mobile-cta { display: none; }


/* === CERTIFICATIONS === */
.certifications {
  max-width: 1440px;
  margin: 160px auto 0;
  padding: 0 100px;
}

.cert-header {
  text-align: center;
  margin-bottom: 36px;
}

.cert-title {
  font-size: 32px;
  line-height: 40px;
  font-weight: var(--fw-semibold);
  color: var(--color-blue-4);
}

.cert-sub {
  font-size: 18px;
  line-height: 24px;
  color: var(--color-grey-9);
  margin-top: 16px;
}

.cert-grid {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.cert-card {
  width: 298px;
  background: var(--color-grey-0);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.cert-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-grey-5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-icon svg { width: 20px; height: 20px; }

.cert-card-title {
  font-size: 18px;
  line-height: 24px;
  font-weight: var(--fw-semibold);
  color: var(--color-grey-9);
}

.cert-card-date {
  font-size: 16px;
  line-height: 22px;
  color: var(--color-grey-7);
  margin-top: 8px;
}


/* === RESPONSIVE === */
@media (max-width: 1279px) {
  .mission-hero-wrapper { padding: 0 32px; }
  .mission-hero { padding: 60px 80px; }
  .info-intro { padding: 0 32px; }
  .intro-photo-card { width: calc((100% - 48px) / 3); }
  .intro-photo-card:nth-child(2) { left: calc(33.33% + 8px); }
  .intro-photo-card:nth-child(3) { left: calc(66.66% + 16px); }
  .mission-paragraph { padding: 0 32px; }
  .our-story { padding: 0 32px; }
  .our-story-tabs { width: 440px; }
  .stand-for { padding: 0 32px; }
  .stand-for-col { width: calc(50% - 12px); }
  .testimonials-section { padding: 0 32px; }
  .certifications { padding: 0 32px; }
}

@media (max-width: 991px) {
  .mission-hero-wrapper { padding: 0 16px; }
  .mission-hero {
    height: 580px;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    align-items: flex-start;
    justify-content: flex-end;
  }
  .mission-hero-content { width: 100%; text-align: center; }
  .mission-hero-sub { font-size: 16px; line-height: 22px; }
  .mission-hero-title { font-size: 40px; line-height: 46px; }

  .info-intro { padding: 0 16px; margin-top: 116px; }
  .intro-paragraph { font-size: 18px; line-height: 24px; }
  .intro-photos {
    height: auto;
    margin-top: 72px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .intro-photo-card {
    position: relative;
    width: 100%;
    height: 310px;
    border-radius: var(--radius-lg);
    left: auto !important;
    top: auto !important;
  }
  .intro-photo-card::after { border-radius: var(--radius-lg); }
  .intro-photo-caption { padding: 20px; }
  .intro-photo-caption p { font-size: 16px; line-height: 22px; }

  .mission-paragraph { padding: 0 16px; margin-top: 116px; }
  .mission-para-header { margin-bottom: 32px; }
  .mission-para-title { font-size: 24px; line-height: 30px; }
  .mission-para-sub { font-size: 16px; line-height: 22px; margin-top: 12px; }
  .mission-para-row { flex-direction: column; gap: 24px; }
  .mission-para-text { width: 100%; font-size: 16px; line-height: 22px; }
  .mission-para-images { flex-direction: column; gap: 16px; width: 100%; }
  .mission-para-img { width: 100%; height: 180px; }
  .mission-para-row2 { justify-content: flex-start; margin-top: 24px; }
  .mission-para-text2 { width: 100%; font-size: 16px; line-height: 22px; }

  .our-story { padding: 0 16px; margin-top: 116px; }
  .our-story-header { margin-bottom: 32px; }
  .our-story-title { font-size: 24px; line-height: 30px; }
  .our-story-sub { font-size: 16px; line-height: 22px; margin-top: 12px; }
  .our-story-layout { flex-direction: column; gap: 32px; }
  .our-story-tabs { width: 100%; order: 2; gap: 4px; }
  .our-story-image { display: none; }
  .our-story-mobile-img {
    display: block;
    width: 100%;
    height: 340px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    order: 1;
    position: relative;
  }
  .our-story-mobile-img .story-img-layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
  }
  .our-story-mobile-img .story-img-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .our-story-mobile-img .story-img-layer.is-visible { opacity: 1; }
  .story-tab { padding: 12px 16px; }
  .story-tab.is-active { padding: 20px; border-radius: var(--radius-xl); }
  .story-tab-text { font-size: 16px; line-height: 22px; }
  .story-tab-divider { margin: 0 16px; }

  .stand-for { padding: 0 16px; margin-top: 116px; }
  .stand-for-grid { display: none; }
  .stand-for-mobile-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .stand-for-mobile-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .stand-for-mobile-header .stand-for-title { font-size: 24px; line-height: 30px; }
  .stand-for-mobile-header .stand-for-sub { font-size: 16px; line-height: 22px; }
  .stand-for-track-wrap { width: 100%; overflow: hidden; }
  .stand-for-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .stand-for-track .stand-card {
    min-width: 100%;
    height: 380px;
    border-radius: var(--radius-lg);
  }
  .stand-for-track .stand-card-caption { padding: 20px; }
  .stand-for-track .stand-card-title { font-size: 20px; line-height: 26px; }
  .stand-for-track .stand-card-text { font-size: 16px; line-height: 22px; }
  .stand-for-dots {
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .stand-for-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-grey-5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background var(--transition-fast);
  }
  .stand-for-dot.active { background: var(--color-primary-blue); }
  .stand-for-nav {
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .sf-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
  }
  .sf-btn--prev { background: var(--color-grey-5); }
  .sf-btn--next { background: var(--color-primary-blue); }
  .sf-btn svg { width: 18px; height: 18px; }

  .testimonials-section { padding: 0 16px; margin-top: 116px; }
  .testimonials-header {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }
  .testimonials-title { font-size: 24px; line-height: 30px; }
  .testimonials-subtitle { font-size: 16px; line-height: 22px; margin-top: 12px; }
  .testimonials-header-cta { display: none; }
  .testimonial-card { min-width: 100%; width: 100%; }
  .testimonial-quote { font-size: 16px; line-height: 22px; }
  .testimonials-nav {
    gap: 32px;
    flex-wrap: wrap;
  }
  .test-btn { width: 48px; height: 48px; }
  .test-btn svg { width: 18px; height: 18px; }
  .testimonials-mobile-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 24px auto 0;
    font-size: 16px;
    font-weight: var(--fw-semibold);
    color: var(--color-primary-blue);
  }

  .certifications { padding: 0 16px; margin-top: 116px; }
  .cert-header { margin-bottom: 28px; }
  .cert-title { font-size: 24px; line-height: 30px; }
  .cert-sub { font-size: 16px; line-height: 22px; margin-top: 12px; }
  .cert-grid {
    flex-wrap: wrap;
    gap: 12px;
  }
  .cert-card {
    width: calc(50% - 6px);
    padding: 20px;
  }
}
