/* Site-specific refinements kept separate from the inherited template CSS. */

/* Keep content inside consistent mobile gutters. */
@media (max-width: 991px) {
  .content-safe #goals > .container,
  .content-safe #projects > .container,
  .content-safe #team > .container,
  .content-safe #chat > .container,
  .content-safe .portfolio-details-section > .container,
  .content-safe .contact-section > .container,
  .content-safe .contact-info-section > .container {
    padding-left: clamp(18px, 4.8vw, 28px);
    padding-right: clamp(18px, 4.8vw, 28px);
  }
  .content-safe #mechanics .project-wrapper {
    padding-left: clamp(18px, 4.8vw, 28px);
    padding-right: clamp(18px, 4.8vw, 28px);
  }
}

@media (max-width: 767px) {
  .section-padding {
    padding: 70px 0;
  }
  .hero-1 {
    padding: 150px 0 0;
  }
  .breadcrumb-wrapper .page-heading {
    padding: 120px 0 70px;
  }
  .breadcrumb-wrapper .page-heading h1 {
    font-size: 36px;
    line-height: 1.22;
  }
  .project-details-wrapper .project-details-content h2 {
    font-size: 30px;
    line-height: 1.25;
    margin-bottom: 18px;
  }
  .project-details-wrapper .project-details-content p {
    font-size: 16px;
    line-height: 1.75;
    font-weight: 400;
  }
  .project-details-wrapper .project-details-content .details-list li {
    font-size: 16px;
    line-height: 1.7;
  }
  .project-details-wrapper .project-details-content .how-to-work-wrapper {
    margin-top: 20px;
    margin-bottom: 38px;
    gap: 22px;
  }
  .project-details-wrapper .project-details-content .how-to-work-wrapper .how-too-work-items .icon {
    width: 146px;
    height: 146px;
    line-height: 146px;
  }
  .contact-wrapper .contact-form-items-area h2 {
    font-size: 32px;
    margin-bottom: 22px;
  }
}

@media (max-width: 575px) {
  .breadcrumb-wrapper .page-heading h6 {
    font-size: 14px;
    margin-bottom: 14px;
  }
}

/* Keep the homepage banner proportional across screen sizes. */
.hero-1 .hero-image {
  margin-top: clamp(56px, 7vw, 120px);
  height: clamp(190px, 24vw, 420px);
  background-position: center center;
  border-radius: 22px 22px 0 0;
  overflow: hidden;
}
@media (max-width: 1199px) {
  .hero-1 .hero-image {
    height: clamp(170px, 30vw, 300px);
    margin-top: 48px;
  }
  .hero-1 {
    padding-bottom: 0;
  }
}
@media (max-width: 991px) {
  .hero-1 {
    padding-bottom: 0;
  }
}
@media (max-width: 767px) {
  .hero-1 .hero-image {
    height: clamp(150px, 38vw, 220px);
    border-radius: 16px 16px 0 0;
  }
}

/* Contact page heading scale. */
.contact-hero-title {
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 400;
  line-height: 1.12;
}
.contact-info-title {
  font-size: clamp(36px, 3.5vw, 52px);
  font-weight: 400;
  line-height: 1.14;
  text-align: center;
  margin-bottom: 26px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 575px) {
  .contact-hero-title {
    font-size: 36px;
  }
  .contact-info-title {
    font-size: 34px;
    margin-bottom: 20px;
  }
}

/* Header logo scale for tablet and mobile. */
@media (max-width: 1199px) {
  .header-1 .header-main {
    min-height: 72px;
  }
  .header-1 .header-main .logo,
  .header-1 .header-main .header-logo {
    display: flex;
    align-items: center;
  }
  .header-1 .header-main .header-logo img {
    width: 92px;
    height: auto;
    display: block;
  }
}

/* Shared Rwalto type scale. */
.hero-1 .hero-content h1 {
  font-size: clamp(42px, 5vw, 78px);
  font-weight: 400;
  line-height: 1.12;
}
.section-title h2 {
  font-size: clamp(30px, 3.4vw, 54px);
  font-weight: 400;
  line-height: 1.18;
}
.breadcrumb-wrapper .page-heading h1 {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 400;
}
.message-items h2 {
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.08;
}

/* Align the three "How it works" steps with a consistent image and title scale. */
.service-section.how-it-works-section .project-image {
  max-width: 520px;
}
.service-section.how-it-works-section .project-content {
  max-width: 430px;
}
.service-section.how-it-works-section .project-content h3 {
  font-size: clamp(34px, 3.2vw, 52px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.service-section.how-it-works-section .project-content p {
  max-width: 420px;
}
@media (max-width: 991px) {
  .service-section.how-it-works-section .project-content h3 {
    font-size: clamp(32px, 5vw, 44px);
  }
}
