/* ============================================================
   OS - Obras & Serviços | About OS / Quem Somos (3 Cards)
   ============================================================ */

.about-cards-section {
  background-color: transparent;
  padding-block: 80px;
}

.about-cards__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
}

@media (min-width: 768px) {
  .about-cards__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.about-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 40px 32px;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.about-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border-color: var(--color-accent);
}

.about-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 16px;
}

.about-card__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

.about-card__text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  flex-grow: 1;
}


/* ============================================================
   OS - Obras & Serviços | About OS / Banner CTA Section
   ============================================================ */

.about-os-section {
  background-color: #FFF; 
  padding-block: 60px 0; /* No bottom padding so the image can sit on the edge if needed, or maybe add some */
  overflow: hidden;
}

.about-os__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .about-os__container {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

/* IMAGE WRAPPER */
.about-os__image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.about-os__image {
  max-width: 100%;
  height: auto;
  display: block;
  /* Assuming the image is cut off at the bottom */
}

/* RATING CARD (Floating) */
.about-os__rating-card {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  max-width: 200px;
  z-index: 2;
}

@media (max-width: 768px) {
  .about-os__rating-card {
    left: 20px;
    top: 60%;
  }
}

.about-os__rating-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-heading, #1a1a2e);
  margin-bottom: 8px;
  line-height: 1.3;
}

.about-os__rating-score-wrapper {
  background: var(--color-primary, #C9930A);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
}

.about-os__rating-score-wrapper .stars {
  color: #fff;
}

.about-os__rating-score-wrapper .reviews {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.9;
  margin-left: 4px;
}

/* CONTENT */
.about-os__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 60px;
}

@media (min-width: 992px) {
  .about-os__content {
    align-items: flex-start;
    text-align: left;
    padding-bottom: 0;
  }
}

.about-os__logo {
  height: 60px;
  margin-bottom: 24px;
  width: auto;
  filter: grayscale(100%) brightness(0) invert(60%) sepia(80%) saturate(300%) hue-rotate(5deg) brightness(95%) contrast(90%); 
  /* Tries to colorize the logo to match primary color if it's black. 
     Or we just leave it natural. Let's leave it natural if it's already colored. */
}
/* Remove filter to keep logo original colors */
.about-os__logo {
  filter: none;
}

.about-os__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--color-text-heading, #1a1a2e);
  line-height: 1.2;
  margin-bottom: 32px;
}

.about-os__title span {
  color: var(--color-primary, #C9930A);
}

.about-os__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

@media (min-width: 992px) {
  .about-os__actions {
    justify-content: flex-start;
  }
}

.about-os__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.about-os__btn--primary {
  background-color: var(--color-primary, #C9930A);
  color: #fff;
  border: 2px solid var(--color-primary, #C9930A);
}

.about-os__btn--primary:hover {
  background-color: #a87b08;
  border-color: #a87b08;
}

.about-os__btn--outline {
  background-color: transparent;
  color: var(--color-text-heading, #1a1a2e);
  border: 2px solid #cbd5e1;
}

.about-os__btn--outline:hover {
  border-color: var(--color-text-heading, #1a1a2e);
  background-color: rgba(0,0,0,0.03);
}

@media (max-width: 991px) {
  .about-os__image-wrapper {
    justify-content: center;
    width: 100%;
  }
  
  .about-os__image {
    margin: 0 auto;
    display: block;
  }
}
