.portfolio-detail-page {
  --portfolio-blue: #0a4778;
  --portfolio-cyan: #08abc9;
  --portfolio-muted: #777b83;
  --portfolio-soft: #f4f4f4;
  color: #050505;
}

.portfolio-detail-page .btn-icon {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  color: #050505;
  display: inline-flex;
  height: 31px;
  justify-content: center;
  width: 31px;
}

.portfolio-detail-page .site-header {
  padding-top: 18px;
}

.portfolio-detail-page .nav-shell {
  min-height: 66px;
}

.portfolio-detail-page .navbar-brand img,
.portfolio-detail-page .footer-logo {
  height: 50px;
  width: 178px;
}

.project-hero {
  background-color: #fff;
  background-image:
    linear-gradient(90deg, rgba(230, 247, 250, .98) 0%, rgba(245, 252, 253, .8) 38%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(rgba(8, 171, 201, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 171, 201, .055) 1px, transparent 1px);
  background-size: auto, 76.8px 76.8px, 76.8px 76.8px;
  padding: 166px 0 72px;
}

.project-hero-copy {
  max-width: 1040px;
}

.project-hero h1 {
  color: var(--portfolio-blue);
  font-size: clamp(44px, 4.25vw, 64px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.14;
  margin: 16px 0 30px;
  text-shadow: 0 3px 0 rgba(10, 71, 120, .24);
}

.project-hero-copy p {
  color: #050505;
  font-size: clamp(26px, 2.65vw, 40px);
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 48px;
  max-width: 980px;
}

.project-showcase {
  margin-top: 46px;
  position: relative;
}

.project-meta {
  align-items: center;
  background: #fff;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .05);
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(4, 1fr);
  left: 16%;
  margin: 0;
  padding: 22px 46px 24px;
  position: absolute;
  right: 16%;
  top: 0;
  z-index: 2;
}

.project-meta dt {
  color: var(--portfolio-muted);
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 6px;
}

.project-meta dd {
  color: var(--portfolio-blue);
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.project-hero-img {
  border-radius: 28px;
  display: block;
  height: 520px;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.project-overview {
  padding: 108px 0 86px;
}

.project-overview h2,
.story-copy h2,
.testimonial-band h2,
.contact-form h2 {
  color: #050505;
  font-size: clamp(32px, 2.7vw, 43px);
  font-weight: 400;
  line-height: 1.34;
  margin: 0 0 28px;
}

.project-overview h2 strong,
.story-copy h2 strong,
.testimonial-band h2 strong,
.contact-form h2 strong {
  font-weight: 700;
}

.project-overview > .container > p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 22px;
}

.overview-points {
  margin-top: 34px;
}

.overview-card {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 8px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 62px;
  padding: 18px 24px;
}

.overview-card h3 {
  color: #050505;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

.overview-card span {
  align-items: center;
  background: #edf6fb;
  border-radius: 50%;
  color: var(--portfolio-blue);
  display: inline-flex;
  flex: 0 0 24px;
  font-size: 17px;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.mockup-gallery {
  align-items: stretch;
  display: grid;
  gap: 28px;
  grid-template-columns: 2fr .5fr .5fr;
  margin-top: 96px;
  transition: grid-template-columns .8s cubic-bezier(.22, .61, .36, 1);
}

.mockup-gallery.is-active-1 {
  grid-template-columns: .5fr 2fr .5fr;
}

.mockup-gallery.is-active-2 {
  grid-template-columns: .5fr .5fr 2fr;
}

.mockup-gallery img,
.wide-project-img {
  border-radius: 24px;
  display: block;
  width: 100%;
}

.mockup-item {
  background: #f4f7f8;
  border: 0;
  border-radius: 24px;
  cursor: pointer;
  height: 575px;
  min-width: 0;
  overflow: hidden;
  padding: 0;
}

.mockup-item img {
  height: 100%;
  object-fit: cover;
  transition: object-fit .01s linear, transform .8s cubic-bezier(.22, .61, .36, 1);
}

.mockup-item.is-expanded img {
  object-fit: contain;
  transform: scale(1.01);
}

.mockup-item:focus-visible {
  outline: 3px solid var(--portfolio-cyan);
  outline-offset: 4px;
}

.project-story {
  padding: 56px 0 118px;
}

.story-block {
  border-top: 1px solid rgba(0, 0, 0, .1);
  display: grid;
  gap: 56px;
  grid-template-columns: 38% 1fr;
  padding: 74px 0;
}

.story-block:first-child {
  border-top: 0;
}

.story-copy {
  max-width: 680px;
}

.story-copy p {
  font-size: 15px;
  line-height: 1.7;
}

.wide-project-img {
  height: 545px;
  margin-top: 66px;
}

.project-pager {
  display: flex;
  gap: 26px;
  justify-content: center;
  margin-top: 54px;
}

.project-pager a {
  align-items: center;
  border: 2px solid var(--portfolio-blue);
  border-radius: 50%;
  color: var(--portfolio-blue);
  display: inline-flex;
  font-size: 20px;
  font-weight: 600;
  height: 124px;
  justify-content: center;
  text-align: center;
  width: 124px;
}

.project-pager span {
  border-bottom: 3px solid var(--portfolio-blue);
  display: inline-block;
  padding: 0 10px 8px;
}

.testimonial-band {
  background: var(--portfolio-soft);
  padding: 112px 0 104px;
}

.testimonial-band p {
  font-size: 14px;
  line-height: 1.65;
  margin-top: 22px;
  max-width: 535px;
}

.testimonial-controls {
  display: flex;
  gap: 10px;
  margin-top: 34px;
}

.testimonial-controls button {
  align-items: center;
  background: transparent;
  border: 1px solid #050505;
  border-radius: 50%;
  color: #050505;
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.quote-card {
  padding-top: 8px;
}

.quote-mark {
  color: #e2ebf2;
  font-family: Georgia, serif;
  font-size: 114px;
  font-weight: 700;
  line-height: .5;
  margin-bottom: 30px;
}

.quote-card p {
  color: #050505;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.65;
  margin: 0;
  max-width: 660px;
}

.quote-person {
  align-items: center;
  display: flex;
  gap: 15px;
  margin-top: 34px;
}

.quote-person img {
  border-radius: 50%;
  height: 48px;
  object-fit: cover;
  width: 48px;
}

.testimonial-band .redweb-testimonial-carousel .quote-person img {
  flex: 0 0 48px;
  height: 48px;
  max-width: 48px;
  min-width: 48px;
  width: 48px !important;
}

.quote-person strong {
  color: #050505;
  display: block;
  font-size: 15px;
}

.quote-person span {
  color: var(--portfolio-muted);
  display: block;
  font-size: 11px;
}

.contact-section {
  padding: 112px 0 150px;
}

.hello-block {
  padding-left: 44px;
}

.hello-block > span {
  color: #050505;
  display: block;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 52px;
  line-height: .72;
  margin-left: 5px;
  transform: rotate(-14deg);
}

.hello-block > strong {
  -webkit-text-stroke: 2px var(--portfolio-blue);
  color: transparent;
  display: block;
  font-size: clamp(80px, 8vw, 142px);
  font-weight: 700;
  letter-spacing: 3px;
  line-height: .88;
  margin-bottom: 28px;
}

.hello-block h2 {
  color: #050505;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 18px;
}

.hello-block a {
  align-items: center;
  color: #050505;
  display: flex;
  font-size: 15px;
  gap: 13px;
  margin-bottom: 16px;
}

.hello-block a i {
  color: var(--portfolio-cyan);
  font-size: 20px;
}

.address {
  margin-top: 56px;
}

.address h3 {
  align-items: center;
  color: #050505;
  display: flex;
  font-size: 16px;
  font-weight: 700;
  gap: 13px;
  margin: 0 0 12px;
}

.address h3 span {
  align-items: center;
  background: linear-gradient(#f7941d 0 33%, #fff 33% 66%, #169b62 66%);
  border-radius: 50%;
  color: #0a4778;
  display: inline-flex;
  font-size: 10px;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.address p {
  font-size: 13px;
  margin: 0;
}

.contact-form {
  background: var(--portfolio-soft);
  border-radius: 22px;
  padding: 52px 52px 50px;
}

.contact-form h2 {
  font-weight: 700;
}

.contact-form h2 span {
  font-weight: 400;
}

.contact-form input,
.contact-form textarea {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 50px;
  color: #050505;
  font: inherit;
  font-size: 13px;
  min-height: 48px;
  outline: 0;
  padding: 0 20px;
  width: 100%;
}

.contact-form textarea {
  border-radius: 8px;
  min-height: 142px;
  padding-top: 17px;
  resize: vertical;
}

.contact-form button {
  border: 0;
  margin-top: 30px;
}

.portfolio-detail-contact-form .wpcf7-form {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portfolio-detail-contact-form .wpcf7-form .hidden-fields-container,
.portfolio-detail-contact-form .wpcf7-form > p,
.portfolio-detail-contact-form .wpcf7-form .wpcf7-response-output,
.portfolio-detail-contact-form .field-wrap:has(textarea) {
  grid-column: 1 / -1;
}

.portfolio-detail-contact-form .field-wrap,
.portfolio-detail-contact-form .field-wrap p {
  margin: 0;
}

.portfolio-detail-contact-form .wpcf7-form input,
.portfolio-detail-contact-form .wpcf7-form textarea {
  margin: 0;
}

.portfolio-detail-contact-form .wpcf7-form > p,
.portfolio-detail-contact-form .wpcf7-form .wpcf7-response-output {
  margin: 0;
}

.portfolio-detail-page .site-footer {
  background: var(--portfolio-soft);
  padding-bottom: 30px;
}

.portfolio-detail-page .footer-cta {
  border-radius: 54px;
  max-width: 820px;
  padding: 25px 48px;
  transform: translateY(-50px);
}

.portfolio-detail-page .footer-cta h2 {
  font-size: 24px;
  font-weight: 700;
}

.portfolio-detail-page .footer-main {
  padding-bottom: 40px;
}

.portfolio-detail-page .footer-main h3 {
  font-size: 14px;
}

.portfolio-detail-page .footer-main p,
.portfolio-detail-page .footer-main a {
  font-size: 12px;
}

.portfolio-detail-page .footer-main p {
  max-width: 310px;
}

@media (max-width: 1199.98px) {
  .project-meta {
    left: 8%;
    right: 8%;
  }

  .mockup-item,
  .wide-project-img {
    height: 455px;
  }

  .hello-block {
    padding-left: 0;
  }
}

@media (max-width: 991.98px) {
  .project-hero {
    padding-top: 130px;
  }

  .project-meta {
    border-radius: 20px;
    gap: 18px;
    grid-template-columns: repeat(2, 1fr);
    left: auto;
    margin: 0 24px;
    position: relative;
    right: auto;
    top: auto;
  }

  .project-hero-img {
    height: 390px;
    margin-top: -16px;
  }

  .mockup-gallery {
    grid-template-columns: 1fr;
  }

  .mockup-gallery.is-active-1,
  .mockup-gallery.is-active-2 {
    grid-template-columns: 1fr;
  }

  .story-block {
    gap: 26px;
    grid-template-columns: 1fr;
    padding: 56px 0;
  }

  .contact-form {
    padding: 38px 30px;
  }

  .portfolio-detail-page .footer-cta {
    transform: translateY(-36px);
  }
}

@media (max-width: 767.98px) {
  .project-hero {
    padding: 112px 0 56px;
  }

  .project-hero h1 {
    font-size: 37px;
  }

  .project-hero-copy p {
    font-size: 22px;
    margin-bottom: 34px;
  }

  .project-meta {
    grid-template-columns: 1fr;
    margin: 0 10px;
    padding: 22px 24px;
  }

  .project-hero-img {
    height: 300px;
  }

  .project-overview,
  .project-story,
  .testimonial-band,
  .contact-section {
    padding: 66px 0;
  }

  .project-overview h2,
  .story-copy h2,
  .testimonial-band h2,
  .contact-form h2 {
    font-size: 29px;
  }

  .overview-card {
    padding: 17px 18px;
  }

  .overview-card h3 {
    font-size: 15px;
  }

  .mockup-gallery {
    margin-top: 56px;
  }

  .mockup-item,
  .wide-project-img {
    height: 290px;
  }

  .project-pager a {
    font-size: 16px;
    height: 92px;
    width: 92px;
  }

  .quote-card p {
    font-size: 16px;
  }

  .hello-block > span {
    font-size: 42px;
  }

  .hello-block > strong {
    -webkit-text-stroke-width: 1.5px;
    font-size: 82px;
  }

  .address {
    margin-top: 40px;
  }

  .contact-form {
    border-radius: 18px;
    padding: 30px 20px;
  }

  .portfolio-detail-page .footer-cta {
    border-radius: 24px;
    padding: 24px 22px;
  }
}

@media (max-width: 420px) {
  .project-hero h1 {
    font-size: 33px;
  }

  .project-hero-copy p {
    font-size: 19px;
  }

  .project-pager {
    gap: 14px;
  }

  .hello-block > strong {
    font-size: 68px;
  }
}
