/* ===================================
   COMPONENTS
   Reusable UI elements used across
   multiple sections.
=================================== */

/* ===================================
   TYPOGRAPHY
   Shared text roles for semantic site classes.
=================================== */

body {
  font-family: var(--font-family-primary);
}

.btn,
.hero__lang,
.team-page__filter {
  font-size: var(--font-size-regular);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-15);
}

.navbar__links a,
.navbar__lang,
.navbar__lang-trigger,
.navbar__lang-menu a {
  font-size: var(--font-size-regular);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-15);
}

.mobile-nav__links a {
  font-size: var(--font-size-h6);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-14);
}

.mobile-nav__langs a {
  font-size: var(--font-size-h6);
  font-weight: var(--font-weight-regular);
}

.mobile-nav__langs a.active,
.testimonial-card__name {
  font-weight: var(--font-weight-semibold);
}

.hero__location-item {
  font-size: var(--font-size-medium);
  font-weight: var(--font-weight-light);
}

.about-hero__title,
.contact__title,
.team-contact__title {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-extralight);
  line-height: var(--line-height-12);
}

.stats-overview__heading,
.news-page__title {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-extralight);
  line-height: var(--line-height-13);
}

.hero__title,
.portfolio__heading,
.sectors__title,
.sustainability__title,
.quote__title,
.about-statement__title,
.about-sustainability__title,
.team-page__title,
.privacy-policy__title,
.news-page-featured__title,
.news-article__title {
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-13);
}

.news__title {
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-regular);
}

.card__title {
  font-size: var(--font-size-h5);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-14);
}

.location-col__title {
  font-size: var(--font-size-h5);
  font-weight: var(--font-weight-regular);
}

.team-contact__country {
  font-size: var(--font-size-h5);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-14);
}

.news-card__title,
.news-page-card__title {
  font-size: var(--font-size-h6);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-14);
}

.testimonial-card__quote {
  font-size: var(--font-size-h6);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-14);
}

.testimonial-card__role {
  font-weight: var(--font-weight-regular);
}

.stats-overview__desc,
.portfolio__desc,
.sectors__subtitle,
.partners__title,
.sustainability__desc,
.quote__body,
.news__desc,
.contact__desc,
.about-hero__desc p,
.about-statement__body p,
.about-sustainability__body p,
.team-contact__desc,
.news-page-featured__desc,
.news-article__text-content {
  font-size: var(--font-size-regular);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-15);
}

.card__info {
  font-size: var(--font-size-regular);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-15);
}

.sustainability__feature-item,
.team-card__role,
.team-card__contact a,
.team-contact__value,
.location-col__value {
  font-size: var(--font-size-regular);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-15);
}

.quote__author-role,
.team-contact__map {
  font-size: var(--font-size-regular);
  font-weight: var(--font-weight-light);
}

.news-article__intro {
  font-size: var(--font-size-regular);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-15);
}

.team-card__name {
  font-size: var(--font-size-regular);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-15);
}

.news-article__highlight-text {
  font-size: var(--font-size-regular);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-15);
}

.stats-overview__stat-value {
  font-size: 26px;
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-14);
}

.sectors__stat-value {
  font-variant-numeric: tabular-nums;
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-extralight);
  line-height: var(--line-height-12);
}

.stats-overview__stat-label,
.sectors__stat-label {
  font-size: var(--font-size-tiny);
  font-weight: var(--font-weight-regular);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sustainability__project-label {
  font-size: var(--font-size-tiny);
  font-weight: var(--font-weight-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.quote__author-name {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-regular);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.location-col__label,
.team-contact__label {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-15);
}

.contact__copyright,
.contact__privacy-link {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-regular);
}

.about-statement__body--large p {
  font-size: 20px;
  font-weight: var(--font-weight-regular);
}

.about-statement__name {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-15);
  text-transform: uppercase;
}

.about-statement__role,
.about-sustainability__badge-label {
  font-size: var(--font-size-regular);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-15);
}

.about-sustainability__badge-label {
  font-size: var(--font-size-tiny);
  text-transform: uppercase;
}

.news-article__date {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-light);
}

.subpage-hero__title {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-extralight);
  line-height: var(--line-height-13);
}

.subpage-hero__heading {
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-13);
}

.subpage-hero__desc {
  font-size: var(--font-size-regular);
  font-weight: var(--font-weight-light);
}

.subpage-hero__stat-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.subpage-hero__stat-value {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-extralight);
  line-height: 1;
}

.large-carousel__title {
  font-size: var(--font-size-h5);
  font-weight: var(--font-weight-regular);
}

.large-carousel__details-col {
  font-size: var(--font-size-regular);
  font-weight: var(--font-weight-light);
}

@media (max-width: 768px) {
  .hero__location-item,
  .testimonial-card__quote {
    font-size: var(--font-size-regular);
  }

  .hero__title,
  .contact__title {
    font-size: var(--font-size-h4);
  }

  .stats-overview__heading {
    font-size: 28px;
  }

  .portfolio__heading,
  .sectors__title,
  .sustainability__title,
  .quote__title,
  .news__title {
    font-size: var(--font-size-h5);
  }

  .sectors__stat-value {
    font-size: var(--font-size-h4);
  }

  .about-statement__body--large p {
    font-size: 18px;
  }
}

@media (min-width: 1024px) and (max-height: 750px) {
  .portfolio__item .card__title {
    font-size: var(--font-size-h6);
  }

  .portfolio__item .card__info {
    font-size: var(--font-size-tiny);
  }
}

/* --- Buttons --- */
.btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: transparent;
  border: none;
  color: var(--color-main);
  cursor: pointer;
  padding: 0;
  isolation: isolate;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: opacity var(--transition-base);
}

.btn:hover {
  opacity: 0.75;
}

.btn:hover .btn__icon,
.btn:focus-visible .btn__icon {
  transform: translateZ(0) rotate(0deg);
}

.btn__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transform: translateZ(0) rotate(-45deg);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
  transition: transform var(--transition-base);
}

/* Contact section variant — white text */
.btn--contact {
  color: var(--color-white);
}

.btn--contact .btn__icon {
  filter: brightness(0) invert(1);
}

/* Icon-only button (carousel arrows) */
.btn--icon {
  padding: 12px;
  border-radius: 8px;
  background-color: transparent;
  border: 1px solid var(--color-light);
  color: var(--color-main);
  line-height: 0;
}

.btn--icon:hover {
  background-color: rgba(89, 30, 85, 0.06);
  opacity: 1;
}

.btn--icon img {
  width: 20px;
  height: 20px;
}

/* --- Portfolio / Property Cards --- */
.card {
  background-color: var(--color-main);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transform: translateZ(0); /* Forcing WebKit to respect border-radius clipping */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.card__image-container {
  width: 100%;
  aspect-ratio: 405 / 340;
  overflow: hidden;
}

.card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__content {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--color-lightest);
  flex: 1;
}

.card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* --- News Cards --- */
.news-card {
  background-color: var(--color-lightest);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  flex: 1;
  transition: opacity var(--transition-base);
}

.news-card.reveal {
  transition: opacity var(--transition-base), transform 0.8s ease-out;
}

.news-card:hover,
.news-card:focus-visible,
.news-card.reveal.active:hover,
.news-card.reveal.active:focus-visible {
  opacity: 0.85;
}

.news-card:hover .btn__icon,
.news-card:focus-visible .btn__icon,
.news-card.reveal.active:hover .btn__icon,
.news-card.reveal.active:focus-visible .btn__icon {
  transform: rotate(0deg);
}

.news-card__title {
  color: var(--color-darkest);
}

.news-card .btn {
  align-self: flex-start;
}

/* --- Testimonial Card --- */
.testimonial-card {
  background-color: var(--color-lightest);
  border-radius: 12px;
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  max-width: 935px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.testimonial-card__quote {
  color: var(--color-darkest);
}

.testimonial-card__author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--color-darkest);
}

/* Reduce font size for longer English and Russian homepage stats headings */
html[lang="en"] #about .stats-overview__heading,
html[lang="ru"] #about .stats-overview__heading {
  font-size: 38px;
}

@media (max-width: 768px) {
  html[lang="en"] #about .stats-overview__heading,
  html[lang="ru"] #about .stats-overview__heading {
    font-size: 24px;
  }
}
