﻿.ol-banner {
  /* Size reference: current home hero .onde-home-hero. */
  --ol-shell: 1440px;
  --ol-pad-x: clamp(18px, 4vw, 54px);
  --ol-home-min-height: clamp(600px, 50vw, 740px);
  --ol-home-shell-padding-top: clamp(46px, 5.5vw, 78px);
  --ol-home-shell-padding-bottom: clamp(34px, 4vw, 56px);
  --ol-home-facts-margin-top: clamp(48px, 6vw, 84px);
  --ol-home-facts-padding-top: clamp(22px, 2.4vw, 34px);
  --ol-home-fact-icon-size: 112px;

  /* Dark theme reference: .onde-home-hero in the current home page. */
  --ol-accent: #ffbf00;
  --ol-accent-strong: #ffbf00;
  --ol-accent-contrast: #17130a;
  --ol-text: #f7f5ef;
  --ol-muted: rgba(247, 245, 239, .72);
  --ol-line: rgba(247, 245, 239, .14);
  --ol-panel: rgba(8, 9, 6, .32);
  --ol-primary-button-bg: #ffbf00;
  --ol-primary-button-border: #ffbf00;
  --ol-primary-button-text: #17130a;
  --ol-ghost-button-bg: rgba(8, 9, 6, .32);
  --ol-ghost-button-border: rgba(255, 191, 0, .82);
  --ol-ghost-button-text: #ffbf00;
  --ol-card-bg: rgba(247, 245, 239, .035);
  position: relative;
  overflow: hidden;
  color: var(--ol-text);
  background: #050805;
}

main .ol-banner {
  width: 100vw;
  max-width: none;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
}

main .container:has(> .ol-banner),
main .container:has(.ol-banner) {
  max-width: none !important;
  width: 100% !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

main .row:has(.ol-banner) {
  --bs-gutter-x: 0;
  margin-right: 0;
  margin-left: 0;
}

main [class*="col-"]:has(.ol-banner) {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.ol-banner--light {
  /* Light theme reference: .onde-home-hero in the current home page. */
  --ol-accent: #2563eb;
  --ol-accent-strong: #2563eb;
  --ol-accent-contrast: #ffffff;
  --ol-text: #151515;
  --ol-muted: rgba(23, 23, 19, .68);
  --ol-line: rgba(30, 31, 26, .14);
  --ol-panel: rgba(247, 243, 234, .48);
  --ol-primary-button-bg: #2563eb;
  --ol-primary-button-border: #2563eb;
  --ol-primary-button-text: #ffffff;
  --ol-ghost-button-bg: rgba(247, 243, 234, .48);
  --ol-ghost-button-border: rgba(37, 99, 235, .48);
  --ol-ghost-button-text: #171713;
  --ol-card-bg: rgba(255, 255, 255, .44);
  background: #f1ece2;
}

html[data-onde-theme="light"] .ol-banner--sync-theme,
body.onde-theme-light .ol-banner--sync-theme {
  --ol-accent: #2563eb;
  --ol-accent-strong: #2563eb;
  --ol-accent-contrast: #ffffff;
  --ol-text: #151515;
  --ol-muted: rgba(23, 23, 19, .68);
  --ol-line: rgba(30, 31, 26, .14);
  --ol-panel: rgba(247, 243, 234, .48);
  --ol-primary-button-bg: #2563eb;
  --ol-primary-button-border: #2563eb;
  --ol-primary-button-text: #ffffff;
  --ol-ghost-button-bg: rgba(247, 243, 234, .48);
  --ol-ghost-button-border: rgba(37, 99, 235, .48);
  --ol-ghost-button-text: #171713;
  --ol-card-bg: rgba(255, 255, 255, .44);
  background: #f1ece2;
}

.ol-banner--home {
  min-height: var(--ol-home-min-height);
  display: flex;
  align-items: stretch;
  background-image:
    linear-gradient(180deg, rgba(4, 5, 4, 0) 0%, rgba(5, 8, 5, .18) 45%, rgba(5, 8, 5, .86) 100%),
    linear-gradient(90deg, rgba(4, 5, 4, .98) 0%, rgba(6, 7, 6, .82) 34%, rgba(6, 7, 6, .22) 70%, rgba(6, 7, 6, .08) 100%),
    var(--ol-home-hero-dark-image);
  background-position: center;
  background-size: cover;
}

.ol-banner--home.ol-banner--light {
  background-image:
    linear-gradient(180deg, rgba(247, 243, 234, 0) 0%, rgba(247, 243, 234, .34) 45%, rgba(247, 243, 234, .92) 100%),
    linear-gradient(90deg, rgba(247, 243, 234, .96) 0%, rgba(247, 243, 234, .78) 34%, rgba(247, 243, 234, .22) 70%, rgba(247, 243, 234, .04) 100%),
    var(--ol-home-hero-light-image);
}

html[data-onde-theme="light"] .ol-banner--home.ol-banner--sync-theme,
body.onde-theme-light .ol-banner--home.ol-banner--sync-theme {
  background-image:
    linear-gradient(180deg, rgba(247, 243, 234, 0) 0%, rgba(247, 243, 234, .34) 45%, rgba(247, 243, 234, .92) 100%),
    linear-gradient(90deg, rgba(247, 243, 234, .96) 0%, rgba(247, 243, 234, .78) 34%, rgba(247, 243, 234, .22) 70%, rgba(247, 243, 234, .04) 100%),
    var(--ol-home-hero-light-image);
}

.ol-banner__shell {
  width: min(var(--ol-shell), calc(100% - (var(--ol-pad-x) * 2)));
  min-height: inherit;
  box-sizing: border-box;
  margin: 0 auto;
  padding-top: var(--ol-home-shell-padding-top);
  padding-bottom: var(--ol-home-shell-padding-bottom);
}

.ol-banner--home .ol-banner__shell {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ol-banner--portfolio-hero .ol-banner__shell {
  justify-content: flex-start;
  padding-bottom: calc(var(--ol-home-shell-padding-bottom) + 72px);
}

.ol-banner__shell--compact {
  padding-top: clamp(34px, 4.2vw, 58px);
  padding-bottom: clamp(34px, 4.2vw, 58px);
}

.ol-banner__copy {
  width: min(520px, 100%);
}

.ol-banner__title,
.ol-banner__section-head h2 {
  margin: 0;
  color: var(--ol-text);
  font-weight: 800;
  letter-spacing: 0;
}

.ol-banner__title {
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1;
}

.ol-banner__subtitle {
  margin-top: 10px;
  color: var(--ol-text);
  font-size: clamp(19px, 2.1vw, 27px);
  line-height: 1.18;
  font-weight: 600;
}

.ol-banner__subtitle span {
  display: block;
}

.ol-banner__text span {
  display: block;
}

.ol-banner--portfolio-hero .ol-banner__copy {
  min-height: 0;
}

.ol-banner--portfolio-hero .ol-banner__subtitle {
  max-width: 520px;
  min-height: calc(2em * 1.18);
}

.ol-banner--portfolio-hero .ol-banner__text {
  max-width: 430px;
  min-height: calc(2em * 1.52);
}

.ol-banner__text,
.ol-banner__section-head p {
  color: var(--ol-muted);
  line-height: 1.52;
}

.ol-banner__text {
  max-width: 500px;
  margin-top: 18px;
  font-size: clamp(14px, 1.14vw, 16px);
}

.ol-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.ol-banner__button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px;
  border: 1px solid var(--ol-ghost-button-border);
  color: var(--ol-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.ol-banner__button::after {
  content: "→";
}

.ol-banner__button--primary {
  background: var(--ol-primary-button-bg);
  border-color: var(--ol-primary-button-border);
  color: var(--ol-primary-button-text);
}

.ol-banner__button--ghost {
  background: var(--ol-ghost-button-bg);
  border-color: var(--ol-ghost-button-border);
  color: var(--ol-ghost-button-text);
}

.ol-banner__button:hover {
  transform: translateY(-1px);
  border-color: var(--ol-accent-strong);
  color: var(--ol-ghost-button-text);
  text-decoration: none;
}

.ol-banner__button--primary:hover {
  color: var(--ol-primary-button-text);
}

.ol-banner__facts {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: var(--ol-home-facts-margin-top);
  padding-top: var(--ol-home-facts-padding-top);
}

.ol-fact {
  display: grid;
  grid-template-rows: 112px 72px auto;
  align-content: start;
  min-height: 264px;
  padding: 22px 0 28px;
  border-right: 1px solid var(--ol-line);
}

.ol-fact:last-child {
  border-right: 0;
}

.ol-fact__icon,
.ol-fact h3,
.ol-fact p {
  width: min(268px, calc(100% - 54px));
  justify-self: center;
}

.ol-fact__icon {
  height: 112px;
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.ol-fact__image {
  width: 96px;
  height: 96px;
  object-fit: contain;
  object-position: left top;
}

.ol-banner--light .ol-fact__image--dark,
.ol-banner:not(.ol-banner--light) .ol-fact__image--light {
  display: none;
}

html[data-onde-theme="light"] .ol-banner--sync-theme .ol-fact__image--dark,
body.onde-theme-light .ol-banner--sync-theme .ol-fact__image--dark,
html[data-onde-theme="dark"] .ol-banner--sync-theme .ol-fact__image--light,
body.onde-theme-dark .ol-banner--sync-theme .ol-fact__image--light {
  display: none;
}

html[data-onde-theme="light"] .ol-banner--sync-theme .ol-fact__image--light,
body.onde-theme-light .ol-banner--sync-theme .ol-fact__image--light,
html[data-onde-theme="dark"] .ol-banner--sync-theme .ol-fact__image--dark,
body.onde-theme-dark .ol-banner--sync-theme .ol-fact__image--dark {
  display: block;
}

.ol-fact h3 {
  min-height: 72px;
  margin: 0;
  color: var(--ol-text);
  font-size: 19px;
  line-height: 1.22;
  font-weight: 800;
}

.ol-fact h3 span,
.ol-fact p span {
  display: block;
}

.ol-fact p {
  margin: 0;
  color: var(--ol-muted);
  font-size: 16px;
  line-height: 1.48;
  font-weight: 500;
}

.ol-fact p span + span {
  margin-top: 5px;
}

.ol-banner__section-head {
  display: grid;
  grid-template-columns: minmax(220px, 420px) minmax(0, 1fr);
  gap: clamp(14px, 3vw, 42px);
  align-items: end;
  margin-bottom: clamp(18px, 2.8vw, 30px);
}

.ol-banner__section-head h2 {
  font-size: clamp(24px, 2.25vw, 32px);
  line-height: 1.08;
}

.ol-banner__section-head p {
  max-width: 780px;
  margin: 0;
  font-size: 17px;
}

.ol-banner__icon-buttons {
  display: grid;
  grid-template-columns: repeat(var(--ol-icon-columns, 5), minmax(0, 1fr));
  gap: 10px;
}

.ol-banner__icon-buttons--hero {
  width: 100%;
  gap: 0;
  margin-top: var(--ol-home-facts-margin-top);
  padding-top: var(--ol-home-facts-padding-top);
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ol-banner--portfolio-hero .ol-banner__icon-buttons--hero {
  margin-top: calc(var(--ol-home-facts-margin-top) + 72px);
}

.ol-icon-button {
  min-height: 106px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--ol-line);
  color: var(--ol-text);
  background: var(--ol-card-bg);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}

.ol-icon-button::after {
  content: "→";
  color: var(--ol-accent-strong);
  font-weight: 800;
}

.ol-icon-button:hover {
  border-color: var(--ol-accent);
  color: var(--ol-text);
  text-decoration: none;
  transform: translateY(-1px);
}

.ol-icon-button__media {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.ol-icon-button__media img {
  max-width: 58px;
  max-height: 58px;
  object-fit: contain;
  object-position: left top;
}

.ol-icon-button__image--dark {
  display: none;
}

.ol-banner--light .ol-icon-button__image--dark,
.ol-banner:not(.ol-banner--light) .ol-icon-button__image--light {
  display: none;
}

.ol-banner--light .ol-icon-button__image--light,
.ol-banner:not(.ol-banner--light) .ol-icon-button__image--dark {
  display: block;
}

html[data-onde-theme="light"] .ol-banner--sync-theme .ol-icon-button__image--dark,
body.onde-theme-light .ol-banner--sync-theme .ol-icon-button__image--dark,
html[data-onde-theme="dark"] .ol-banner--sync-theme .ol-icon-button__image--light,
body.onde-theme-dark .ol-banner--sync-theme .ol-icon-button__image--light {
  display: none;
}

html[data-onde-theme="light"] .ol-banner--sync-theme .ol-icon-button__image--light,
body.onde-theme-light .ol-banner--sync-theme .ol-icon-button__image--light,
html[data-onde-theme="dark"] .ol-banner--sync-theme .ol-icon-button__image--dark,
body.onde-theme-dark .ol-banner--sync-theme .ol-icon-button__image--dark {
  display: block;
}

.ol-icon-button__text {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.18;
}

.ol-banner__icon-buttons--hero .ol-icon-button {
  min-height: 264px;
  grid-template-columns: 1fr;
  grid-template-rows: 112px auto;
  align-content: start;
  justify-items: stretch;
  gap: 0;
  padding: 22px 0 28px;
  border: 0;
  border-right: 1px solid var(--ol-line);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.ol-banner__icon-buttons--hero .ol-icon-button:last-child {
  border-right: 0;
}

.ol-banner__icon-buttons--hero .ol-icon-button::after {
  display: none;
}

.ol-banner__icon-buttons--hero .ol-icon-button:hover,
.ol-banner__icon-buttons--hero .ol-icon-button:focus {
  background: color-mix(in srgb, var(--ol-accent) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ol-accent) 46%, transparent);
  transform: translateY(-2px);
}

.ol-banner__icon-buttons--hero .ol-icon-button__media {
  width: min(268px, calc(100% - 54px));
  height: 112px;
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-start;
  justify-self: center;
  box-sizing: border-box;
  padding-top: 0;
  border-radius: 0;
  background: transparent;
}

.ol-banner__icon-buttons--hero .ol-icon-button:hover .ol-icon-button__media,
.ol-banner__icon-buttons--hero .ol-icon-button:focus .ol-icon-button__media {
  background: transparent;
}

.ol-banner__icon-buttons--hero .ol-icon-button__media img {
  width: 96px;
  height: 96px;
  max-width: 96px;
  max-height: 96px;
}

.ol-banner--portfolio-hero .ol-banner__icon-buttons--hero .ol-icon-button {
  grid-template-rows: 146px auto;
}

.ol-banner--portfolio-hero .ol-banner__icon-buttons--hero .ol-icon-button__media {
  height: 146px;
  padding-top: 38px;
}

.ol-banner--portfolio-hero .ol-banner__icon-buttons--hero .ol-icon-button__media img {
  width: 96px;
  height: 96px;
  max-width: 96px;
  max-height: 96px;
}

.ol-banner--portfolio-hero .ol-banner__icon-buttons--hero .ol-icon-button__text {
  width: min(286px, calc(100% - 36px));
  font-size: inherit;
  line-height: normal;
  font-weight: 400;
}

.ol-banner--portfolio-hero .ol-icon-button__title {
  min-height: 46px;
  display: block;
  color: var(--ol-text);
  font-size: 19px;
  line-height: 1.22;
  font-weight: 800;
}

.ol-banner--portfolio-hero .ol-icon-button__description {
  display: block;
  margin-top: 18px;
  color: var(--ol-muted);
  font-size: 15px;
  line-height: 1.48;
  font-weight: 500;
}

.ol-banner--portfolio-hero .ol-icon-button__description span + span {
  margin-top: 5px;
}

.ol-banner__icon-buttons--hero .ol-icon-button__text {
  width: min(268px, calc(100% - 54px));
  min-height: 0;
  display: block;
  justify-self: center;
  color: var(--ol-text);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.22;
  text-align: left;
}

.ol-banner__icon-buttons--hero .ol-icon-button__text span {
  display: block;
}

.ol-banner--light .ol-banner__icon-buttons--hero,
html[data-onde-theme="light"] .ol-banner--sync-theme .ol-banner__icon-buttons--hero,
body.onde-theme-light .ol-banner--sync-theme .ol-banner__icon-buttons--hero {
  background: transparent;
  border-color: var(--ol-line);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (max-width: 991.98px) {
  .ol-banner__facts,
  .ol-banner__icon-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ol-fact:nth-child(2n),
  .ol-fact:last-child {
    border-right: 0;
  }

  .ol-banner__section-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .ol-banner--home {
    min-height: auto;
    background-image:
      linear-gradient(180deg, rgba(4, 5, 4, 0) 0%, rgba(5, 8, 5, .54) 50%, rgba(5, 8, 5, .94) 100%),
      linear-gradient(180deg, rgba(4, 5, 4, .94) 0%, rgba(4, 5, 4, .72) 46%, rgba(4, 5, 4, .36) 100%),
      var(--ol-home-hero-dark-image);
    background-position: center;
  }

  .ol-banner--home.ol-banner--light {
    background-image:
      linear-gradient(180deg, rgba(247, 243, 234, 0) 0%, rgba(247, 243, 234, .52) 50%, rgba(247, 243, 234, .96) 100%),
      linear-gradient(180deg, rgba(247, 243, 234, .96) 0%, rgba(247, 243, 234, .76) 52%, rgba(247, 243, 234, .34) 100%),
      var(--ol-home-hero-light-image);
  }

  .ol-banner__title {
    font-size: clamp(38px, 11vw, 54px);
  }

  .ol-banner__facts,
  .ol-banner__icon-buttons {
    grid-template-columns: 1fr;
  }

  .ol-fact,
  .ol-fact:last-child {
    min-height: 0;
    grid-template-rows: auto;
    row-gap: 14px;
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--ol-line);
  }

  .ol-banner__button {
    width: 100%;
  }

  .ol-icon-button {
    min-height: 92px;
    grid-template-columns: 52px minmax(0, 1fr) 22px;
    padding: 18px;
  }
}
