html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

/* Header and navigation */
.rd-navbar-static .rd-navbar-inner {
  gap: 32px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.rd-navbar-static .rd-navbar-panel {
  display: flex;
  align-items: center;
  gap: 28px;
}

.rd-navbar-static .rd-navbar-brand {
  flex: 0 0 200px;
  line-height: 0;
}

.rd-navbar-static .rd-navbar-brand img {
  display: block;
  width: 200px;
  max-width: none;
  height: auto;
}

.rd-navbar-static .rd-navbar-nav > li + li {
  margin-left: 38px;
}

.rd-navbar-static .rd-navbar-toggle {
  display: none;
}

.rd-navbar-default-sidebar.rd-navbar-fixed .rd-navbar-panel {
  flex-direction: row;
  justify-content: space-between;
  padding: 4px 14px;
  height: 72px;
}

.rd-navbar-fixed .rd-navbar-brand {
  flex: 0 0 auto;
  margin-left: 0;
  overflow: visible;
}

.rd-navbar-fixed .rd-navbar-brand img {
  width: 136px;
  max-width: none;
  height: auto;
}

.rd-navbar-fixed .rd-navbar-top-panel {
  display: none;
}

.rd-navbar-fixed .rd-navbar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  order: 2;
  width: 48px;
  height: 48px;
  padding: 0;
}

.rd-navbar-fixed .rd-navbar-toggle span,
.rd-navbar-fixed .rd-navbar-toggle span::before,
.rd-navbar-fixed .rd-navbar-toggle span::after {
  width: 30px;
  height: 3px;
  background: #363d41;
}

.rd-navbar-fixed .rd-navbar-toggle span::before {
  top: -9px;
}

.rd-navbar-fixed .rd-navbar-toggle span::after {
  top: 9px;
}

.rd-navbar-fixed .rd-navbar-toggle.active span {
  background: transparent;
}

.rd-navbar-fixed .rd-navbar-toggle.active span::before,
.rd-navbar-fixed .rd-navbar-toggle.active span::after {
  top: 0;
  right: 0;
  width: 30px;
}

.rd-navbar-fixed .rd-navbar-nav-wrap {
  top: 72px;
  right: 0;
  bottom: auto;
  left: auto;
  width: min(320px, calc(100vw - 24px));
  height: auto;
  max-height: calc(100vh - 84px);
  padding: 14px 14px 18px;
  overflow-y: auto;
  border-radius: 0 0 0 8px;
  box-shadow: -8px 12px 30px rgba(35, 37, 38, .18);
  transform: translateX(110%);
}

.rd-navbar-fixed .rd-navbar-nav-wrap::before,
.rd-navbar-fixed .rd-navbar-nav-wrap::after {
  display: none;
}

.rd-navbar-fixed .rd-navbar-nav > li > a {
  padding: 10px 12px;
}

.mobile-nav-contact {
  display: none;
}

.rd-navbar-fixed .mobile-nav-contact {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 16px 12px 0;
  border-top: 1px solid rgba(54, 61, 65, .18);
  font-size: 14px;
  font-style: normal;
  line-height: 1.45;
  text-align: left;
}

.rd-navbar-fixed .mobile-nav-contact a {
  color: #5f6569;
}

.rd-navbar-fixed .mobile-nav-contact a:hover {
  color: #caa450;
}

.rd-navbar-static .rd-navbar-nav > li > a,
.rd-navbar-fixed .rd-navbar-nav > li > a {
  text-transform: none;
}

.rd-navbar-static .rd-navbar-top-panel {
  padding: 0;
  color: #363d41;
  background: transparent;
}

.rd-navbar-static .rd-navbar-top-panel a {
  color: #363d41;
}

.rd-navbar-static .rd-navbar-top-panel a:hover {
  color: #caa450;
}

html.rd-navbar-fixed-linked .page {
  padding-top: 72px;
}

/* Hero */
.hero-slider {
  height: clamp(410px, 40vw, 460px);
  min-height: 0;
}

.hero-slide-cover {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.hero-slide-cover-1 {
  background-position: 58% center;
}

.hero-slide-cover-2 {
  background-position: 62% center;
}

.hero-slide-cover-3 {
  background-position: 66% center;
}

/* About */
.about-section.section-md {
  padding-top: 0;
  padding-bottom: 0;
}

.about-section .section-wrap-inner.section-md {
  min-height: 420px;
  padding-top: 58px;
  padding-bottom: 58px;
}

.about-section .about-montage {
  background: #f4f3ed;
}

.about-photo-stack {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
}

.about-photo-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(45%, 290px);
  aspect-ratio: 9 / 16;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 8px solid #fff;
  border-radius: 4px;
  box-shadow: 0 14px 36px rgba(35, 37, 38, 0.24);
  cursor: pointer;
  transition: transform 480ms cubic-bezier(.22, .61, .36, 1), box-shadow 480ms ease;
  transform-origin: center;
}

.about-photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-photo-card-1 {
  z-index: 3;
  transform: translate(-108%, -50%);
}

.about-photo-card-2 {
  z-index: 2;
  transform: translate(-52%, -50%);
}

.about-photo-card-3 {
  z-index: 1;
  transform: translate(4%, -50%);
}

.about-photo-card:hover,
.about-photo-card:focus-visible {
  z-index: 5;
  outline: none;
  box-shadow: 0 18px 42px rgba(35, 37, 38, 0.32);
}

.about-photo-card-1:hover,
.about-photo-card-1:focus-visible {
  transform: translate(-108%, calc(-50% - 6px)) scale(1.015);
}

.about-photo-card-2:hover,
.about-photo-card-2:focus-visible {
  transform: translate(-52%, calc(-50% - 6px)) scale(1.015);
}

.about-photo-card-3:hover,
.about-photo-card-3:focus-visible {
  transform: translate(4%, calc(-50% - 6px)) scale(1.015);
}

/* Reference carousel */
.section-anchor {
  position: relative;
  top: -95px;
  display: block;
  width: 0;
  height: 0;
  visibility: hidden;
}

.references-section .owl-centered.owl-carousel .owl-stage-outer {
  padding-top: 24px;
  padding-bottom: 18px;
}

.references-section.section-md {
  padding-bottom: 52px;
}

.references-section .thumbnail-classic,
.references-section .thumbnail-classic figure {
  height: auto;
}

.references-section .thumbnail-classic {
  background: transparent;
  overflow: hidden;
  opacity: .66;
  transform: scale(.7);
  transition: transform 420ms ease, opacity 420ms ease, box-shadow 420ms ease;
}

.references-section .thumbnail-classic figure {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.references-section .thumbnail-classic img {
  position: static;
  left: auto;
  width: 100%;
  height: auto;
  min-width: 0;
  max-width: 100%;
  object-fit: initial;
  transform: none;
}

.references-section .owl-centered.owl-carousel .owl-item.active.center .portfolio-item.thumbnail-classic {
  z-index: 2;
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 20px 46px rgba(35, 37, 38, .28), 0 7px 16px rgba(35, 37, 38, .18);
}

.references-section .owl-stage {
  cursor: grab;
}

.references-section .owl-stage:active {
  cursor: grabbing;
}

.desktop .references-section .thumbnail-classic:hover figure {
  transform: none;
}

/* PhotoSwipe uses the corrected source dimensions and keeps images proportional. */
.pswp__img {
  object-fit: contain;
}

/* Services */
.services-contact-note {
  max-width: 760px;
  margin: 40px auto 0;
  color: #5f6569;
  font-size: 19px;
  line-height: 1.55;
}

/* Testimonials and brands */
.quote-center-cite cite {
  display: block;
}

.testimonials-section .carousel-parent {
  margin-bottom: 8px;
}

.testimonials-section .carousel-parent .slick-list {
  transition: height 280ms ease;
}

.testimonials-section .quote-center-cite {
  margin-top: 16px;
}

.testimonials-section #child-carousel {
  margin-bottom: 0;
}

.brands-section .owl-carousel-brands .item {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.brands-section .owl-carousel-brands .brand-logo {
  width: 168px;
  max-width: 168px;
  max-height: 112px;
  opacity: 1;
  filter: none;
}

/* Lightweight section reveal */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal],
  .about-photo-card,
  .references-section .thumbnail-classic {
    transition: none !important;
  }
}

@media (max-width: 991px) {
  .section-anchor {
    top: -72px;
  }

  .hero-slider {
    height: clamp(330px, 66vw, 430px);
  }

  .hero-slide-cover {
    background-size: auto 100%;
  }

  .hero-slide-cover-1 {
    background-position: 64% center;
  }

  .hero-slide-cover-2 {
    background-position: 67% center;
  }

  .hero-slide-cover-3 {
    background-position: 69% center;
  }

  .about-section .section-wrap-inner {
    transform: none;
    margin-bottom: 0;
  }

  .about-section .section-wrap-inner > * {
    margin-top: 0;
  }

  .about-section .section-wrap-inner.section-md {
    min-height: 0;
    padding-top: 42px;
    padding-bottom: 0;
  }

  .about-section .about-montage {
    margin-top: 34px;
  }

  .about-photo-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-height: 0;
    padding: 0 14px 22px;
    overflow: visible;
  }

  .about-photo-card,
  .about-photo-card-1,
  .about-photo-card-2,
  .about-photo-card-3,
  .about-photo-card:hover,
  .about-photo-card:focus-visible {
    position: static;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-width: 4px;
    border-radius: 3px;
    cursor: default;
    transform: none;
  }

  .about-photo-card img {
    height: 100%;
    object-fit: cover;
  }

  .references-section .thumbnail-classic {
    opacity: 1;
    transform: scale(1);
  }

  .references-section .thumbnail-classic,
  .references-section .thumbnail-classic figure {
    height: auto;
  }
}

@media (max-width: 479px) {
  .hero-slider {
    height: 320px;
  }

  .hero-slider .swiper-slide-caption h1 {
    font-size: 38px;
  }

  .hero-slider .slider-subtitle-group h3 {
    font-size: 24px;
  }

  .hero-slider .slider-subtitle-group h4 {
    font-size: 18px;
  }

  .hero-slide-cover-1 {
    background-position: 61% center;
  }

  .hero-slide-cover-2 {
    background-position: 64% center;
  }

  .hero-slide-cover-3 {
    background-position: 66% center;
  }

  .about-section .section-wrap-inner.section-md {
    padding-top: 30px;
  }

  .about-section .section-wrap-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  .about-section .about-montage {
    margin-top: 26px;
  }

  .services-contact-note {
    margin-top: 30px;
    padding: 0 12px;
    font-size: 17px;
  }

  .brands-section .owl-carousel-brands .brand-logo {
    width: 150px;
    max-width: 150px;
    max-height: 100px;
  }
}
