:root {
  --rb-red: #cb2026;
  --rb-bright: #f14728;
  --rb-yellow: #e2e729;
  --rb-dark: #101010;
  --rb-grey: #2a2a2a;
  --rb-panel: #2d3a3a;
  --rb-muted: #e6e7e8;
  --rb-building-bg: #eee;
  --rb-shell: 1440px;
  --rb-font: 'Source Sans 3', ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.rb-body {
  margin: 0;
  font-family: var(--rb-font);
  background: #fff;
  color: var(--rb-dark);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.rb-shell {
  width: 100%;
  max-width: var(--rb-shell);
  margin-inline: auto;
}

.rb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 2px 32px 4px;
  border-radius: 100px;
  background: var(--rb-red);
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  line-height: 22px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.rb-btn:hover {
  filter: brightness(1.08);
}

.rb-btn:active {
  transform: translateY(1px);
}

/* ——— Header ——— */
.rb-header {
  position: relative;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--rb-red);
  background: var(--rb-dark);
}

.rb-header__bar {
  display: flex;
  height: 80px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 13px 26px;
}

.rb-header__logo {
  position: relative;
  height: 48px;
  width: 133px;
  flex-shrink: 0;
}

.rb-header__logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left;
}

.rb-nav {
  display: none;
  align-items: center;
  gap: 18px;
}

.rb-nav__item {
  position: relative;
}

.rb-nav__link {
  position: relative;
  display: flex;
  height: 93px;
  align-items: center;
  padding: 0 16px;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.rb-nav__item.is-open > .rb-nav__link {
  background: var(--rb-grey);
}

.rb-nav__item.is-open > .rb-nav__link::after {
  content: '';
  position: absolute;
  bottom: 23px;
  left: 16px;
  right: 16px;
  height: 3px;
  background: var(--rb-red);
}

.rb-nav__dropdown {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 232px;
  background: var(--rb-dark);
  padding: 16px 24px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.rb-nav__item.is-open .rb-nav__dropdown {
  display: block;
}

.rb-nav__dropdown a {
  display: block;
  padding: 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.rb-nav__dropdown a:hover {
  text-decoration: underline;
}

.rb-header__actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.rb-icon-btn {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 100px;
  cursor: pointer;
  background: var(--rb-grey);
  padding: 0;
}

.rb-icon-btn--login {
  background: var(--rb-red);
}

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

.rb-menu-toggle {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.rb-mobile {
  display: none;
  position: absolute;
  inset-inline: 0;
  top: 100%;
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
  background: var(--rb-dark);
  padding: 32px 26px;
}

.rb-mobile.is-open {
  display: block;
}

.rb-mobile__inner {
  margin: 0 auto;
  width: 100%;
  max-width: 388px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.rb-mobile__list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.rb-mobile__link,
.rb-mobile__toggle {
  display: flex;
  width: 100%;
  height: 40px;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.rb-mobile__toggle.is-open {
  background: var(--rb-panel);
  border-radius: 8px;
  color: var(--rb-red);
}

.rb-mobile__children {
  display: none;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  flex-direction: column;
  gap: 4px;
}

.rb-mobile__toggle.is-open + .rb-mobile__children {
  display: flex;
}

.rb-mobile__children a {
  display: block;
  padding: 6px 8px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.rb-mobile .rb-btn {
  width: 100%;
}

@media (min-width: 1280px) {
  .rb-header__bar {
    height: 95px;
    padding: 8px 80px;
  }

  .rb-header__logo {
    height: 59px;
    width: 198px;
  }

  .rb-nav {
    display: flex;
  }

  .rb-icon-btn {
    display: flex;
  }

  .rb-menu-toggle,
  .rb-mobile {
    display: none !important;
  }
}

/* ——— Hero ——— */
.rb-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 700px;
  width: 100%;
  overflow: hidden;
}

.rb-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.rb-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2), transparent);
}

.rb-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: flex-start;
  padding: 80px 20px;
}

.rb-hero__title {
  margin: 0;
  max-width: 400px;
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

@media (min-width: 768px) {
  .rb-hero__inner {
    padding: 80px 120px;
  }

  .rb-hero__title {
    max-width: 620px;
    font-size: 60px;
    line-height: 60px;
  }
}

/* ——— Building ——— */
.rb-building {
  position: relative;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  background: var(--rb-building-bg);
  padding: 64px 0;
}

.rb-building__watermark {
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 60px;
  width: min(1490px, 110%);
  max-width: none;
  height: auto;
  transform: translateX(-50%);
}

.rb-building__inner {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.rb-building__intro {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 0 24px;
  text-align: center;
}

.rb-building__title {
  margin: 0;
  width: 100%;
  color: var(--rb-red);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
}

.rb-building__subtitle {
  margin: 0;
  max-width: 837px;
  color: var(--rb-dark);
  font-size: 20px;
  line-height: 28px;
}

.rb-building__mobile {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 48px;
  padding: 0 24px;
}

.rb-building__mobile-card {
  display: flex;
  min-height: 392px;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 16px;
  background: var(--rb-red);
  padding: 32px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
}

.rb-building__mobile-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rb-building__mobile-copy h3 {
  margin: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.25;
  white-space: pre-line;
}

.rb-building__mobile-copy p {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
}

.rb-building__grid {
  display: none;
  width: 100%;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 0 16px;
}

.rb-flip {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  perspective: 1200px;
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--rb-delay, 0ms),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--rb-delay, 0ms);
}

.rb-building__grid.is-visible .rb-flip {
  opacity: 1;
  transform: translateY(0);
}

.rb-flip__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.rb-flip:hover .rb-flip__inner,
.rb-flip:focus-within .rb-flip__inner {
  transform: rotateY(180deg);
}

.rb-flip__face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  backface-visibility: hidden;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.rb-flip__front {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rb-red);
  padding: 24px;
  text-align: center;
}

.rb-flip__front span {
  color: #fff;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
  white-space: pre-line;
}

.rb-flip__back {
  transform: rotateY(180deg);
}

.rb-flip__back > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rb-flip__shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.rb-flip__content {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 48px 24px 40px;
  text-align: left;
}

.rb-flip__copy {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 24px;
}

.rb-flip__back-title {
  color: #e6e7e8;
  font-size: 28px;
  font-weight: 400;
  line-height: 36px;
}

.rb-flip__back-desc {
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}

.rb-readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  font-size: 22px;
  font-weight: 600;
  line-height: 26px;
}

.rb-readmore--white {
  color: #fff;
}

.rb-readmore--yellow {
  color: var(--rb-yellow);
}

@media (min-width: 768px) {
  .rb-building {
    padding: 120px 0;
  }

  .rb-building__inner {
    gap: 100px;
  }

  .rb-building__intro {
    gap: 48px;
    padding: 0 120px;
  }

  .rb-building__title {
    font-size: 60px;
    line-height: 60px;
  }

  .rb-building__subtitle {
    font-size: 26px;
    line-height: 30px;
  }

  .rb-building__mobile {
    display: none;
  }

  .rb-building__grid {
    display: grid;
    gap: 32px;
    padding: 0 32px;
  }

  .rb-flip__front span {
    font-size: 44px;
  }

  .rb-flip__back-title {
    font-size: 34px;
    line-height: 36px;
  }

  .rb-flip__back-desc {
    font-size: 24px;
    line-height: 28px;
  }

  .rb-readmore {
    font-size: 26px;
    line-height: 36px;
  }
}

@media (min-width: 1024px) {
  .rb-building__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .rb-flip__front span {
    font-size: 50px;
  }
}

/* ——— Gallery ——— */
.rb-gallery {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--rb-dark);
  padding: 56px 0;
}

.rb-gallery__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 0 24px;
}

.rb-gallery__intro {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 24px;
  color: #fff;
}

.rb-gallery__title {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
}

.rb-gallery__subtitle {
  margin: 0;
  max-width: 908px;
  font-size: 20px;
  line-height: 28px;
}

.rb-gallery__stage {
  position: relative;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.rb-gallery__scroller {
  display: flex;
  width: 100%;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.rb-gallery__scroller::-webkit-scrollbar {
  display: none;
}

.rb-gallery__card {
  position: relative;
  display: flex;
  height: 360px;
  width: min(373px, 78vw);
  flex-shrink: 0;
  scroll-snap-align: center;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 16px;
}

.rb-gallery__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rb-gallery__grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.16) 65%,
    rgba(0, 0, 0, 0.64) 86%
  );
}

.rb-gallery__label {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  line-height: 30px;
  text-align: center;
}

.rb-gallery__fade {
  display: none;
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 400px;
  background-image: linear-gradient(
    90deg,
    rgb(16, 16, 16) 0%,
    rgba(16, 16, 16, 0) 8.5%,
    rgba(16, 16, 16, 0) 90.7%,
    rgb(16, 16, 16) 100%
  );
}

.rb-gallery__nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.rb-gallery__btn {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.rb-gallery__btn img {
  width: 100%;
  height: 100%;
}

@media (min-width: 768px) {
  .rb-gallery {
    padding: 60px 0;
  }

  .rb-gallery__inner {
    gap: 60px;
    padding: 0 120px;
  }

  .rb-gallery__intro {
    gap: 32px;
  }

  .rb-gallery__title {
    font-size: 60px;
    line-height: 60px;
  }

  .rb-gallery__subtitle {
    font-size: 26px;
    line-height: 30px;
  }

  .rb-gallery__scroller {
    gap: 48px;
    scroll-snap-type: none;
  }

  .rb-gallery__card {
    height: 400px;
    width: 373px;
    scroll-snap-align: none;
  }

  .rb-gallery__label {
    font-size: 26px;
  }

  .rb-gallery__fade {
    display: block;
  }
}

/* ——— CTA ——— */
.rb-cta {
  width: 100%;
  background: var(--rb-panel);
  padding: 64px 0;
}

.rb-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 0 24px;
}

.rb-cta__copy {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.rb-cta__title {
  margin: 0;
  max-width: 1100px;
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  white-space: pre-line;
}

.rb-cta__body {
  margin: 0;
  max-width: 855px;
  color: #fff;
  font-size: 18px;
  line-height: 28px;
}

@media (min-width: 768px) {
  .rb-cta {
    padding: 80px 0;
  }

  .rb-cta__inner {
    padding: 0 120px;
  }

  .rb-cta__title {
    font-size: 60px;
    line-height: 60px;
  }

  .rb-cta__body {
    font-size: 20px;
  }
}

/* ——— Footer ——— */
.rb-footer {
  width: 100%;
  border-top: 3px solid var(--rb-red);
  background: var(--rb-dark);
  padding: 80px 0 40px;
}

.rb-footer__inner {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 48px;
  padding: 0 24px;
}

.rb-footer__top {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.rb-footer__brand {
  display: flex;
  width: 100%;
  max-width: 219px;
  flex-direction: column;
  gap: 60px;
}

.rb-footer__logo-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rb-footer__logo {
  height: 59px;
  width: 198px;
}

.rb-footer__tagline {
  margin: 0;
  color: #e6e7e8;
  font-size: 16px;
  line-height: normal;
}

.rb-footer__social {
  display: flex;
  align-items: center;
  gap: 24px;
}

.rb-footer__social a {
  display: block;
  width: 26px;
  height: 26px;
}

.rb-footer__social img {
  width: 100%;
  height: 100%;
}

.rb-footer__cols {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 40px;
}

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

.rb-footer__col-title {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.rb-footer__col p {
  margin: 0 0 12px;
  color: #fff;
  font-size: 16px;
}

.rb-footer__col p:last-child {
  margin-bottom: 0;
}

.rb-footer__col a {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.rb-footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rb-footer__links a {
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 3%;
}

.rb-footer__bottom {
  border-top: 1px solid #d9d9d9;
  padding: 16px;
}

.rb-footer__bottom p {
  margin: 0;
  color: #fff;
  font-size: 16px;
}

@media (min-width: 768px) {
  .rb-footer__inner {
    padding: 0 120px;
  }

  .rb-footer__cols {
    flex-direction: row;
    justify-content: flex-end;
    gap: 80px;
  }
}

@media (min-width: 1024px) {
  .rb-footer__top {
    flex-direction: row;
    gap: 120px;
  }
}

/* Elementor canvas: full-bleed widgets, no default section padding */
.elementor-page .elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 100%;
}

.elementor-widget-redbuilt-hero,
.elementor-widget-redbuilt-building,
.elementor-widget-redbuilt-gallery,
.elementor-widget-redbuilt-cta {
  width: 100%;
}

.elementor-editor-active .rb-flip:hover .rb-flip__inner {
  transform: none;
}
