/**
 * About Us Page Stylesheet
 * 
 * Performance Optimized Styles for PocRepublic About Us Page Template
 * @package pocrepublic-theme
 */

.tr-about-page-wrapper {
  background-color: #ffffff;
  color: #333333;
  font-family: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.875;
}

/* Sections & Padding matching TR */
.tr-section {
  width: 100%;
  padding-block: 2rem;
}
@media (min-width: 768px) {
  .tr-section {
    padding-block: 2rem;
  }
  .tr-section.tr-highlighted {
    padding-block: 4rem; /* padding-block: calc(var(--spacing,.25rem) * 16) = 4rem */
  }
}
.tr-section.tr-highlighted {
  background-color: color-mix(in srgb, var(--theme-color-primary) 10%, transparent); /* bg-primary/10 */
  padding-block: 4rem;
}
.tr-section-container {
  max-width: 1200px; /* standard wrapper max-width */
  margin: 0 auto;
  padding-inline: 1rem;
}
@media (min-width: 768px) {
  .tr-section-container {
    padding-inline: 2rem;
  }
}

/* Grid layout with correct alternating order */
.tr-grid-2 {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

/* Mobile reverse stack behavior (text on top, media at bottom) */
.tr-grid-2.tr-mobile-reverse {
  flex-direction: column-reverse;
}

@media (min-width: 768px) {
  .tr-grid-2 {
    flex-direction: row;
    align-items: stretch;
    gap: 3rem;
  }
  .tr-grid-2.tr-mobile-reverse {
    flex-direction: row; /* Normal row for desktop: first child on left, second on right */
  }
  .tr-text-col, .tr-media-col {
    width: 50% !important;
  }
}

/* Content column flex alignments */
.tr-text-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}
.tr-justify-center {
  justify-content: center;
}
.tr-media-col {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Headings & Texts */
.tr-h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--theme-color-navy);
  margin: 0;
  line-height: 1.2;
}
.tr-h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--theme-color-navy);
  margin: 0;
  line-height: 1.25;
}
.tr-h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--theme-color-navy);
  margin: 0;
  text-transform: capitalize;
  text-align: center;
}
.tr-full-width-title {
  margin-bottom: 2rem;
}
.tr-intro-paragraph {
  font-size: 1.05rem;
  color: #4a5568;
  margin-top: 1rem;
}

/* Button alignments */
.tr-button-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}
@media (min-width: 48rem) {
  .tr-button-group {
    flex-direction: row;
    width: auto;
  }
}
.tr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: var(--theme-color-primary); /* bg-primary */
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  width: 100%;
}
.tr-btn:hover {
  background-color: var(--theme-color-primary-hover); /* hover:bg-tertiary */
}
.tr-btn-icon {
  width: 1rem;
  height: 1rem;
}
.tr-w-auto {
  width: auto !important;
}
.tr-margin-top-link {
  margin-top: 0.5rem;
  display: inline-block;
  width: 100%;
}
@media (min-width: 768px) {
  .tr-margin-top-link {
    width: auto;
  }
}

/* Media assets */
.tr-aspect-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: none;
  background-color: #000000;
}
.tr-image-cover {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  border-radius: 8px;
}

/* Arrowed list */
.tr-arrow-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tr-arrow-list li {
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.875;
}
.tr-arrow-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--theme-color-primary);
  font-size: 1.1rem;
  line-height: 1.2;
}

/* Services 3-column Grid */
.tr-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .tr-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .tr-services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.tr-service-card {
  background-color: color-mix(in srgb, var(--theme-color-primary) 10%, transparent);
  border-radius: 8px;
  padding: 2rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.tr-card-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border-radius: 50%;
  width: 100px;
  height: 100px;
}
.tr-card-svg {
  color: var(--theme-color-primary);
}

/* Social Icon List */
.tr-social-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.tr-social-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--theme-color-primary) !important;
  transition: opacity 0.15s ease-in-out;
  aspect-ratio: 1 / 1;
}
.tr-social-circle:hover {
  opacity: 0.8;
}
.tr-social-svg {
  fill: currentColor;
}

/* Final section spacing */
.tr-mb-final {
  margin-bottom: 0 !important;
}
@media (min-width: 768px) {
  .tr-mb-final {
    margin-bottom: 3rem !important;
  }
}
