/*
Theme Name: Rise & Heights
Theme URI: https://creativethemes.com/blocksy/
Description: Child theme for Blocksy to control compositions (patterns) and keep the front-end clean and maintainable.
Author: Local
Template: blocksy
Text Domain: blocksy-child
*/

body.announcement-page {
  margin: 0;
  background: var(--announcement-bg, #f28d91);
  color: var(--announcement-text, #ffffff);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

body.admin-bar.announcement-page {
  --announcement-admin-bar-offset: 32px;
}

.announcement-page .ct-container,
.announcement-page .site-main,
.announcement-page .hero-section {
  display: none;
}

body.announcement-page::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 140vw;
  height: 140vh;
  pointer-events: none;
  background: #f54e16;
  transform: translate(-50%, -50%) translate3d(170vw, 0, 0) rotate(-8deg);
  animation: announcement-background-sweep 11s ease-in-out infinite;
  z-index: 0;
}

body.announcement-page::after {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 140vw;
  height: 140vh;
  pointer-events: none;
  background: var(--announcement-bg, #f28d91);
  transform: translate(-50%, -50%) translate3d(-170vw, 0, 0) rotate(8deg);
  animation: announcement-background-return 11s ease-in-out infinite;
  z-index: 0;
}

@keyframes announcement-background-sweep {
  0%,
  12% {
    transform: translate(-50%, -50%) translate3d(170vw, 0, 0) rotate(8deg);
  }

  30% {
    transform: translate(-50%, -50%) translate3d(0, 0, 0) rotate(8deg);
  }

  44%,
  68% {
    transform: translate(-50%, -50%) translate3d(0, 0, 0) rotate(8deg);
  }

  92%,
  100% {
    transform: translate(-50%, -50%) translate3d(-170vw, 0, 0) rotate(8deg);
  }
}

@keyframes announcement-background-return {
  0%,
  54% {
    transform: translate(-50%, -50%) translate3d(-170vw, 0, 0) rotate(8deg);
  }

  74% {
    transform: translate(-50%, -50%) translate3d(0, 0, 0) rotate(8deg);
  }

  88% {
    transform: translate(-50%, -50%) translate3d(0, 0, 0) rotate(8deg);
  }

  100% {
    transform: translate(-50%, -50%) translate3d(170vw, 0, 0) rotate(8deg);
  }
}

.announcement-layout {
  min-height: calc(100vh - var(--announcement-admin-bar-offset, 0px));
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(16px, 2.5vw, 32px);
  padding: clamp(16px, 2vw, 28px) clamp(32px, 4vw, 64px);
}

.announcement-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1.2fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  flex: 1;
}

.announcement-cell {
  min-width: 0;
}

.announcement-cell-top-left,
.announcement-cell-top-right {
  align-self: start;
  padding-top: 6px;
}

.announcement-cell-top-center {
  text-align: center;
  align-self: start;
}

.announcement-cell-top-left img,
.announcement-cell-top-right img,
.announcement-mark {
  max-width: 52px;
  height: auto;
}

.announcement-cell-top-right {
  text-align: right;
}

.announcement-mark {
  display: inline-flex;
  width: clamp(22px, 2vw, 32px);
  color: currentColor;
}

.announcement-mark svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.announcement-mark svg .st0,
.announcement-mark svg path {
  fill: currentColor;
}

.announcement-mark svg path {
  animation: announcement-mark-sequence 2.4s cubic-bezier(0.55, 0.08, 0.35, 1) infinite;
  transform-box: fill-box;
  transform-origin: center bottom;
  opacity: 0;
}

.announcement-mark svg path:nth-of-type(1) {
  --announcement-mark-shift: 2px;
  --announcement-mark-scale: 0.9;
  animation-delay: 0s;
}

.announcement-mark svg path:nth-of-type(2) {
  --announcement-mark-shift: -4px;
  --announcement-mark-scale: 1;
  animation-delay: 0.14s;
}

.announcement-mark svg path:nth-of-type(3) {
  --announcement-mark-shift: 3px;
  --announcement-mark-scale: 0.92;
  animation-delay: 0.28s;
}

.announcement-mark svg path:nth-of-type(4) {
  --announcement-mark-shift: -5px;
  --announcement-mark-scale: 1;
  animation-delay: 0.42s;
}

@keyframes announcement-mark-sequence {
  0%,
  18%,
  100% {
    opacity: 0;
    transform: translateY(9px) scaleY(0.82);
  }

  32% {
    opacity: 0.95;
    transform: translateY(var(--announcement-mark-shift, 0)) scaleY(var(--announcement-mark-scale, 1));
  }

  55% {
    opacity: 1;
    transform: translateY(calc(var(--announcement-mark-shift, 0) - 2px)) scaleY(1);
  }

  74% {
    opacity: 0.72;
    transform: translateY(2px) scaleY(0.94);
  }
}

.announcement-cell-middle-left,
.announcement-cell-middle-right {
  align-self: center;
}

.announcement-message {
  max-width: 280px;
  font-size: clamp(2.2rem, 4.8vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 300;
}

.announcement-message-desktop,
.announcement-message-mobile {
  display: block;
}

.announcement-message-mobile {
  display: none;
}

.announcement-cell-middle-right .announcement-message {
  margin-left: auto;
  text-align: left;
}

.announcement-cell-middle-center {
  text-align: center;
}

.announcement-visual {
  display: inline-block;
  width: min(100%, 540px);
  max-height: 58vh;
  object-fit: contain;
}

.announcement-visual-rectangles {
  width: min(100%, 350px);
  max-height: none;
}

.announcement-visual-placeholder {
  min-height: 320px;
  border: 2px solid currentColor;
  display: grid;
  place-items: center;
  padding: 32px;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
}

.announcement-wordmark,
.announcement-cell-top-center img,
.announcement-cell-top-center svg {
  display: inline-block;
  max-width: min(146px, 38vw);
  height: auto;
  font-size: clamp(1.5rem, 2.2vw, 2.4rem);
  line-height: 1;
  font-weight: 600;
  text-transform: lowercase;
}

.announcement-cell-top-center svg {
  width: min(146px, 38vw);
}

.announcement-meta {
  max-width: 360px;
  font-size: clamp(0.95rem, 1.25vw, 1.3rem);
  line-height: 1.25;
}

.announcement-meta p:last-child {
  margin-bottom: 0;
}

.announcement-address p:last-child {
  font-size: 1rem;
  line-height: 1.15;
  margin-top: 1rem;
}

.announcement-address p:first-child {
  margin-bottom: 0;
  font-size: clamp(1.1rem, 1.55vw, 1.65rem);
  line-height: 1.05;
}

.announcement-cta {
  margin-top: 1.4rem;
  min-width: 180px;
  padding: 0.95rem 1.5rem;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.announcement-cta:hover {
  background: #f54e16;
  color: #fff;
  border-color: #fff;
}

.announcement-cta-wrapper {
  margin-top: 1.6rem;
  text-align: center;
}

.announcement-cta-email {
  display: block;
  color: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.announcement-cta-contact {
  display: inline-block;
  margin-top: 0.6rem;
  text-decoration: none;
}

.announcement-meta-right {
  text-align: right;
}

.announcement-footer-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  transform: translateY(-28px);
}


.announcement-footer-right {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.announcement-partners {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 14px;
  white-space: nowrap;
}

.announcement-partner-group {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: nowrap;
}

.announcement-partner-label {
  font-size: 0.7rem;
  line-height: 1;
  white-space: nowrap;
  opacity: 0.95;
}

.announcement-partner-logo {
  display: inline-flex;
  align-items: center;
}

.announcement-partner-logo svg {
  display: block;
  height: auto;
}

.announcement-partner-logo-tralux svg {
  width: 84px;
}

.announcement-partner-logo-inowai svg {
  width: 86px;
}

.announcement-partner-logo-sunset svg {
  width: 118px;
}

@media (max-width: 900px) {
  .announcement-hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    text-align: center;
  }

  .announcement-cell-top-left,
  .announcement-cell-top-right,
  .announcement-cell-middle-left,
  .announcement-cell-middle-right,
  .announcement-footer-left,
  .announcement-footer-right {
    text-align: center;
  }

  .announcement-message,
  .announcement-meta,
  .announcement-meta-right {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .announcement-cell-middle-right .announcement-message {
    text-align: center;
  }

  .announcement-message-desktop {
    display: none;
  }

  .announcement-message-mobile {
    display: block;
    text-align: center;
  }

  .announcement-visual-rectangles {
    width: min(100%, 220px);
  }

  .announcement-cta {
    min-width: 182px;
    margin-top: 1.5rem;
    padding: 0.95rem 1.4rem;
    font-size: 1rem;
  }

  .announcement-partners {
    justify-content: center;
    align-items: flex-start;
    gap: 22px;
    white-space: normal;
  }

  .announcement-partner-group {
    justify-content: center;
    align-items: center;
  }
  .announcement-hero-grid{
    gap: 48px;
  }
  .announcement-partner-group-dev {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "logo";
    row-gap: 8px;
    justify-items: center;
  }

  .announcement-partner-group-dev .announcement-partner-label {
    grid-area: label;
  }

  .announcement-partner-group-dev .announcement-partner-logo-tralux {
    grid-area: logo;
  }

  .announcement-partner-group-sales {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-areas:
      "label label"
      "inowai sunset";
    column-gap: 16px;
    row-gap: 8px;
    justify-items: left;
    align-items: end;
  }

  .announcement-partner-group-sales .announcement-partner-label {
    grid-area: label;
  }

  .announcement-partner-group-sales .announcement-partner-logo-inowai {
    grid-area: inowai;
  }

  .announcement-partner-group-sales .announcement-partner-logo-sunset {
    grid-area: sunset;
  }

  .announcement-cell-top-left,
  .announcement-cell-top-right {
    display: none;
  }

  .announcement-footer-row {
    flex-direction: column;
    align-items: center;
    gap: 48px;
    transform: none;
  }

  .announcement-footer-left,
  .announcement-footer-right {
    width: 100%;
  }
  .announcement-layout{
    gap: 48px;
  }

  .announcement-address p:first-child {
    font-size: 1.2rem;
  }

  .announcement-address p{
    text-align: center;
  }
}

@media (max-width: 782px) {
  body.admin-bar.announcement-page {
    --announcement-admin-bar-offset: 46px;
  }
}
