@import "./partners.css";
@import "./contact.css";

.servicesViewAll {
  text-align: center;
  margin-top: 40px;
}

.viewAllButton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid #0D47A1;
  color: #0D47A1;
  border-radius: 12px;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  transition: 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.viewAllButton svg {
  transition: 0.3s;
}

.viewAllButton:hover svg {
  transform: translateX(4px);
}


header {
  background: none;
  z-index: 99;
}

.heroContainer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  overflow: hidden;
}

.heroContent {
  display: flex;
  flex-direction: column;
  gap: 35px;
  padding-left: 80px;
  padding-bottom: 130px;
}

.heroContent-title {
    font-family: "Exo 2";
    font-size: 45px;
    line-height: 55px;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    text-align: left;
    word-break: break-word;
    max-width: 900px; 
    /* display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;  
    overflow: hidden;
    text-overflow: ellipsis; 
    max-width: 1278px;
    width: 100%; */
}

.heroContent-btn{
    font-family: "Exo 2";
    font-size: 18px;
    line-height: 18px;
    font-weight: 400;
    color: var(--white);
    text-align: center;
    padding: 14px 22px;
    border: 1px solid white;
    border-radius: 18px;
    width: 150px;
}

.heroCard {
  width: 100%;
  backdrop-filter: blur(10px);
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0)),
    linear-gradient(90deg, rgba(29, 83, 156, 0.1), rgba(29, 83, 156, 0.2));
  background-origin: padding-box, border-box;
  background-repeat: no-repeat;
  border: 1px solid rgba(29, 83, 156, 0.3);
  position: relative;
  z-index: 0;
}

.heroCard__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 32px;
}

.heroCard__texts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.heroCard__title {
  font-family: "Exo 2";
  font-size: 24px;
  line-height: 40px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
}

.heroCard__subtitle > p {
  font-family: "Inter";
  font-size: 16px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.56);
  max-width: 310px;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.heroCardArrow {
  max-width: 24px;
  width: 100%;
  height: 24px;
  transition: 0.3s;
}

.heroCardBtn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  max-width: 150px;
  width: 100%;
  justify-content: space-between;
}

.heroCardBtn span {
  font-weight: 500;
  font-family: "Exo 2";
  font-size: 24px;
  line-height: 24px;
  width: 100%;
}

.heroCard > img {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  height: 90%;
  object-fit: fill;
  z-index: -1;
}

/* === ABOUT === */
#about {
  position: relative;
  z-index: 1;
}

#about .section__inner {
  padding-inline: 20px;
}

/* === CATALOGUE === */
#catalogue {
  padding-bottom: 105px;
  z-index: 0;
}

.tabButtonDiv {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 60px;
  padding-inline: 20px;
}

.tab__btn {
  border: 1px solid var(--blue);
  background-color: var(--white);
  color: var(--blue);
  padding: 18px 64px;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s;
  font-family: "Exo 2";
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
  transition: 0.3s;
}

.tab__btn.active {
  background-color: var(--blue);
  color: var(--white);
  transition: 0.3s;
}
.tab__btn.active:hover {
  background-color: #21457a;
  transition: 0.3s;
}

.tab__btn:active {
  transform: scale(0.85);
  transition: 0.3s;
}

.tab__btn:hover {
  background-color: var(--blue);
  color: var(--white);
  transition: 0.3s;
}

.videoModal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.videoModal__content {
  max-width: 70%;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  aspect-ratio: 16/9;
}

.video {
  width: 100%;
  height: 100%;
}

/* === DEVELOPMENTS === */
#developments {
  position: relative;
  z-index: 0;
}
#developments .section__inner {
  padding-inline: 20px;
}

#developments .sectionSubtitle {
  max-width: 950px;
}

.developmentsSwiper {
  margin-top: 32px;
  padding-inline: 20px;
}

.developmentsSlide {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 470px;
}

.developmentsLink img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: -1;
}

.swiperContent {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.developmentsSwiper__content {
  padding: 16px 24px;
  background-image: linear-gradient(rgba(29, 83, 156, 0), rgba(29, 83, 156, 1));
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeDiv {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
}

.time {
  font-family: "Inter";
  font-size: 15px;
  line-height: 24px;
  font-weight: 500;
}

.calendar {
  width: 20px;
  height: 20px;
  color: var(--white);
}

.development__title {
  font-family: "Exo 2";
  font-size: 20px;
  line-height: 32px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
}

.development__subtitle {
  font-family: "Inter";
  font-size: 16px;
  line-height: 24px;
  color: #e3e6ff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 486px;
  width: 100%;
}

/* === ISOTHERMIC === */
#isothermic {
  background-color: #f8f8f8;
}

#isothermic .section__inner {
  padding: 70px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}

.isothermic__content {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: flex-start;
}

.isothermic__texts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.isothermic__title {
  font-family: "Exo 2";
  font-size: 56px;
  line-height: 64px;
  font-weight: 600;
  color: var(--black);
}

.isothermic__subtitle {
  font-family: "Inter";
  font-size: 18px;
  line-height: 28px;
  color: var(--text-black);
  max-width: 586px;
  width: 100%;
}

.isothermicBtn {
  max-height: 64px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.isothermic__btn {
  border: 1px solid var(--blue);
  background-color: var(--blue);
  color: var(--white);
  font-family: "Exo 2";
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 18px 64px;
  transition: 0.3s;
}

.isothermic__btn:hover {
  background-color: var(--white);
  color: var(--blue);
  transition: 0.3s;
}

.isothermic__image {
  position: relative;
  max-width: 700px;
  width: 100%;
  height: 400px;
}

.isothermic__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* === SERVICES === */
#services {
  /*background-color: var(--black);*/
  z-index: 0;
}

#services.section {
  padding: 90px 0;
}

#services .section__inner,
#news .section__inner {
  padding-inline: 20px;
}

.servicesSection {
  padding: 70px 0;
}

.servicesMainTitle {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 40px;
}

.servicesGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  padding: 90px 0;
}

.serviceCard {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0,0,0,0.08);
  transition: 0.35s ease;
  display: flex;
  flex-direction: column;
}

.serviceCard:hover {
  transform: translateY(-7px);
  box-shadow: 0 14px 38px rgba(0,0,0,0.15);
}

.serviceCard:hover .serviceCard__button {
  gap: 12px;
}

.serviceCard__image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.serviceCard__content {
  height: 100%;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.serviceCard__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--black);;
}

.serviceCard__desc {
  font-size: 16px;
  color: #5a5a5a;
  min-height: 48px;
  margin-bottom: 15px;
}

.serviceCard__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0D47A1;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}



@media (min-width: 1024px) {
  .servicesGrid > :nth-child(4),
  .servicesGrid > :nth-child(5) {
      grid-column: span 1;
  }
}



@media (max-width: 1800px) {
  .heroContent {
    padding-bottom: 100px;
  }
  .heroCardBtn span {
    font-size: 18px;
    line-height: 24px;
  }
  .heroCard {
    overflow: hidden;
  }
  .heroCard > img {
    width: 45%;
    height: 80%;
    top: 20%;
  }
  .heroCard__content {
    padding: 24px;
  }
  .isothermic__btn,
  .tab__btn {
    padding: 16px 48px;
  }
  .isothermic__image {
    height: 380px;
  }
  .developmentsSlide {
    height: 360px;
  }
  .servicesList {
    gap: 48px;
  }
  .service__name {
    font-size: 28px;
    line-height: 36px;
  }
  .service__text {
    font-size: 16px;
    line-height: 24px;
  }
  .tabButtonDiv {
    margin-top: 48px;
  }
}

@media (max-width: 1200px) {
  .heroCard > img {
    width: 40%;
    height: 70%;
    top: auto;
    bottom: 0;
  }
  .isothermic__title {
    font-size: 48px;
    line-height: 52px;
  }
  .isothermic__btn,
  .tab__btn {
    font-size: 16px;
    line-height: 24px;
  }
  .isothermic__image {
    height: 360px;
    max-width: 600px;
  }
  .developmentsSlide {
    height: 260px;
  }
  .developmentsSwiper__content {
    padding: 12px;
  }
  .development__title {
    font-size: 18px;
    line-height: 26px;
  }
  .development__subtitle,
  .time {
    font-size: 14px;
    line-height: 20px;
  }
  .servicesGridContainer {
    gap: 32px;
  }
  .servicesList {
    gap: 32px;
  }
  .service__name {
    font-size: 24px;
    line-height: 30px;
    font-weight: 600;
  }
  .service__text {
    font-size: 14px;
    line-height: 22px;
  }
}

@media (max-width: 1024px) {
  .heroCard__subtitle {
    font-size: 14px;
    line-height: 20px;
    max-width: 240px;
  }
  .heroCard > img {
    width: 45%;
    height: 80%;
  }
  .isothermic__image {
    max-width: 550px;
    height: 320px;
  }
  .isothermic__subtitle {
    font-size: 16px;
    line-height: 24px;
  }
  .tabButtonDiv {
    margin-top: 36px;
  }
}

@media (max-width: 960px) {
  .heroCard__content {
    padding: 14px 16px;
  }
  .heroCard__title {
    font-size: 20px;
    line-height: 26px;
  }
  .isothermic__image {
    max-width: 480px;
    height: 280px;
  }
  .developmentsSlide {
    height: 220px;
  }
  .servicesGrid {
  grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 768px) {
  .heroContent {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-bottom: 70px;
    padding-left: 20px;
  }
  .heroCardBtn span {
    font-size: 16px;
    line-height: 24px;
  }
  .heroCardArrow {
    width: 20px;
    height: 20px;
  }
  #isothermic .section__inner {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 16px;
    padding: 48px 20px;
  }
  .isothermic__image {
    max-width: 100%;
    height: 320px;
  }
  .isothermic__content {
    gap: 24px;
  }
  .isothermic__texts {
    gap: 8px;
  }
  .isothermic__title {
    font-size: 32px;
    line-height: 40px;
  }
  .isothermic__subtitle {
    font-size: 14px;
    line-height: 22px;
    max-width: 100%;
  }
  .isothermicBtn {
    width: 100%;
  }
  .isothermic__btn {
    text-align: center;
    width: 100%;
    padding: 12px 20px;
    background-color: #dbe3ef;
    color: var(--blue);
    font-weight: 600;
    border: 1px solid #dbe3ef;
  }
  .tab__btn {
    padding: 12px 20px;
  }
  .developmentsSlide {
    height: 200px;
  }
  .developmentsSwiper__content {
    gap: 0;
  }
  .development__title {
    font-size: 16px;
    line-height: 32px;
  }
  #catalogue {
    padding-bottom: 48px;
  }
  .servicesGridContainer {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .serviceImageDiv {
    min-height: 340px;
  }
  #services.section {
    padding: 85px 0;
  }
  #services .backTextDiv {
    top: 75px;
  }
  .tabButtonDiv {
    margin-top: 24px;
  }
  .videoModal__content {
    padding-inline: 20px;
  }
}

@media (max-width: 640px) {
  .video {
    width: 480px;
    height: 300px;
  }
}

@media (max-width: 600px) {
  .servicesGrid {
  grid-template-columns: repeat(1, 1fr);
}
  .heroCard {
    background-image: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.2),
      rgba(255, 255, 255, 0.24)
    );
  }
  .heroCard__content {
    gap: 4px;
  }
  .heroCard__texts {
    gap: 4px;
  }
  .heroCard__subtitle {
    -webkit-line-clamp: 4;
    max-width: 200px;
  }
  .serviceImageDiv img {
    object-fit: contain;
  }
  .heroCard > img {
    width: 45%;
    height: 80%;
  }
  .isothermic__image {
    height: 250px;
  }
  #developments .sectionSubtitle {
    text-align: center;
  }
  .developmentsSwiper__content {
    padding: 16px;
  }
  .calendar {
    width: 16px;
    height: 16px;
  }
  .time {
    font-size: 12px;
    line-height: 16px;
  }
  .development__subtitle {
    -webkit-line-clamp: 3;
    font-size: 12px;
    line-height: 16px;
  }
  .tabButtonDiv {
    width: 100%;
    gap: 8px;
  }
  .tab__btn {
    width: 100%;
    text-align: center;
    padding: 8px 10px;
  }
  #catalogue {
    padding-bottom: 24px;
  }
  .serviceNameDiv {
    justify-content: space-between;
  }
  .service__name {
    font-size: 18px;
    line-height: 24px;
  }
  .serviceArrow {
    width: 24px;
    height: 24px;
    margin: 0;
  }
  .serviceImageDiv {
    height: 440px;
  }
  #services .backTextDiv {
    top: 65px;
  }
}

@media (max-width: 500px) {
  .video {
    width: 380px;
    height: 200px;
  }
}

@media (max-width: 400px) {
  
  .heroContent{
    padding-left: 10px;
  }
  .heroContent-title {
    font-size: 28px;
    line-height: 40px;
  }
  .heroCard > img {
    width: 40%;
    height: 60%;
  }
  .isothermic__image {
    height: 200px;
  }
  .serviceImageDiv {
    height: 320px;
  }
  .video {
    aspect-ratio: 16/9;
  }
}
