/* ============================================================
   about-us.css  —  XcuTor About Us page styles
   ============================================================ */

/* ---- 1. Mission Section ---- */
.xcutor-mission {
  padding: 100px 0;
  background: var(--bg-color);
}

/* Image collage wrapper reuses home.css classes:
   .about-img-wrap / .about-img-main / .about-img-secondary / .about-badge
   No overrides needed — they're already defined in home.css              */

/* Section label shared helper */
.section-label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--primary-color);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

/* ---- 2. Values Section ---- */
.xcutor-values {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.values-header {
  text-align: center;
  margin-bottom: 64px;
}

.values-header .section-label {
  display: block;
  margin-bottom: 0.75rem;
}

.values-header h2 {
  font-family: "Libre Baskerville", serif;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--heading-color);
  margin: 0;
}

/* Grid */
.val-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Card */
.val-card {
  background: var(--bg-color);
  padding: 2.2rem 2rem;
  border-bottom: 3px solid transparent;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.val-card:hover {
  border-bottom-color: var(--primary-color);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

/* Icon box */
.val-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(117, 205, 217, 0.1);
  border-radius: 10px;
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 1.4rem;
  transition: background 0.35s, transform 0.3s;
}

.val-card:hover .val-icon {
  background: rgba(117, 205, 217, 0.2);
  transform: scale(1.1);
}

.val-title {
  font-family: "Gotham", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0.65rem;
  letter-spacing: 0.5px;
}

.val-desc {
  font-size: 14px;
  line-height: 1.78;
  color: var(--body-text-color);
  margin: 0;
}

/* ---- 3. Story / Timeline Section ---- */
.xcutor-story {
  padding: 100px 0;
  background: var(--bg-color);
}

.story-left .section-label {
  display: block;
  margin-bottom: 0.75rem;
}

.story-heading {
  font-family: "Libre Baskerville", serif;
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1.15;
  margin-bottom: 0;
}

.story-heading em {
  font-style: italic;
  color: var(--primary-color);
}

/* Vertical timeline */
.story-timeline {
  position: relative;
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* The continuous vertical line */
.story-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(117, 205, 217, 0.2);
}

.story-item {
  position: relative;
  padding: 0 0 2.8rem 1.8rem;
}

.story-item:last-child {
  padding-bottom: 0;
}

/* Dot on the line */
.story-item::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(117, 205, 217, 0.2);
  transition: box-shadow 0.3s;
}

.story-item:hover::before {
  box-shadow: 0 0 0 6px rgba(117, 205, 217, 0.15);
}

.story-year {
  font-family: "Libre Baskerville", serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 2px;
  margin-bottom: 0.4rem;
  display: block;
}

.story-text {
  font-size: 15px;
  color: var(--body-text-color);
  line-height: 1.7;
  margin: 0;
}

/* ---- Responsive ---- */

/* Tablet: 2-col values grid */
@media (max-width: 991px) {
  .val-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .xcutor-mission,
  .xcutor-values,
  .xcutor-story {
    padding: 72px 0;
  }

  /* Stack mission columns */
  .xcutor-mission .about-img-wrap {
    height: 380px;
    margin-bottom: 3rem;
  }

  /* Story columns stack */
  .story-left {
    margin-bottom: 3rem;
  }
}

/* Mobile: 1-col values grid */
@media (max-width: 576px) {
  .val-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .xcutor-mission,
  .xcutor-values,
  .xcutor-story {
    padding: 56px 0;
  }

  .val-card {
    padding: 1.8rem 1.4rem;
  }

  .xcutor-mission .about-img-wrap {
    height: 300px;
  }

  /* Badge goes inside on small screens */
  .about-badge {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    justify-content: center;
  }

  .values-header {
    margin-bottom: 40px;
  }

  .story-timeline {
    padding-left: 24px;
  }
}
