/* style/index-brand-story.css */

/* Base styles for the page content, ensuring contrast with assumed light body background */
.page-index-brand-story {
  color: #333333; /* Dark text for readability on light backgrounds */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Rely on shared.css for body background */
}

.page-index-brand-story__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #f5f5f5;
  overflow: hidden;
}

.page-index-brand-story__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-index-brand-story__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-index-brand-story__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index-brand-story__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  color: #26A9E0;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index-brand-story__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #555555;
}

.page-index-brand-story__section {
  padding: 60px 20px;
  background-color: #ffffff;
  border-bottom: 1px solid #eeeeee;
}

.page-index-brand-story__section:last-of-type {
  border-bottom: none;
}

.page-index-brand-story__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-index-brand-story__dark-section .page-index-brand-story__section-title,
.page-index-brand-story__dark-section .page-index-brand-story__sub-title,
.page-index-brand-story__dark-section .page-index-brand-story__text-block,
.page-index-brand-story__dark-section .page-index-brand-story__value-title,
.page-index-brand-story__dark-section .page-index-brand-story__commitment-title {
  color: #ffffff;
}

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

.page-index-brand-story__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-index-brand-story__sub-title {
  font-size: clamp(1.4em, 2.5vw, 1.8em);
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-index-brand-story__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  line-height: 1.7;
  color: #444444;
}

.page-index-brand-story__dark-section .page-index-brand-story__text-block {
  color: #f0f0f0;
}

.page-index-brand-story__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.page-index-brand-story__image--centered {
  margin-left: auto;
  margin-right: auto;
}

.page-index-brand-story__grid-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.page-index-brand-story__values-list,
.page-index-brand-story__commitment-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-index-brand-story__value-item,
.page-index-brand-story__commitment-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index-brand-story__dark-section .page-index-brand-story__value-item,
.page-index-brand-story__dark-section .page-index-brand-story__commitment-item {
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-index-brand-story__value-title,
.page-index-brand-story__commitment-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-index-brand-story__dark-section .page-index-brand-story__value-title,
.page-index-brand-story__dark-section .page-index-brand-story__commitment-title {
  color: #ffffff;
}

.page-index-brand-story__cta-section {
  text-align: center;
  background-color: #f5f5f5;
  padding: 80px 20px;
}

.page-index-brand-story__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-index-brand-story__btn-primary,
.page-index-brand-story__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-index-brand-story__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-index-brand-story__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

.page-index-brand-story__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-index-brand-story__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Responsive styles */
@media (max-width: 992px) {
  .page-index-brand-story__grid-two-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-index-brand-story__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-index-brand-story__main-title {
    font-size: 2.2em;
  }

  .page-index-brand-story__description {
    font-size: 1em;
  }

  .page-index-brand-story__section {
    padding: 40px 15px;
  }

  .page-index-brand-story__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index-brand-story__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-index-brand-story__sub-title {
    font-size: 1.3em;
  }

  .page-index-brand-story__text-block {
    font-size: 0.95em;
  }

  .page-index-brand-story__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-index-brand-story__values-list,
  .page-index-brand-story__commitment-list {
    grid-template-columns: 1fr;
  }

  .page-index-brand-story__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index-brand-story__btn-primary,
  .page-index-brand-story__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-index-brand-story__cta-section {
    padding: 60px 15px;
  }

  /* Ensure all image containers are responsive */
  .page-index-brand-story__hero-image-wrapper,
  .page-index-brand-story__history-section,
  .page-index-brand-story__vision-mission-section,
  .page-index-brand-story__core-values-section,
  .page-index-brand-story__commitment-section,
  .page-index-brand-story__cta-section,
  .page-index-brand-story__grid-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-index-brand-story__main-title {
    font-size: 1.8em;
  }

  .page-index-brand-story__section-title {
    font-size: 1.5em;
  }

  .page-index-brand-story__value-title,
  .page-index-brand-story__commitment-title {
    font-size: 1.2em;
  }
}