/*
 * Corvette Lottery global footer presentation layer.
 * Structure and content live in the native Divi 5 Theme Builder layout.
 */

:root {
  --cl-footer-navy: #001550;
  --cl-footer-band: #000d38;
  --cl-footer-heading-blue: #8cddff;
  --cl-footer-yellow: var(--gcid-cl-yellow, #ffd400);
  --cl-footer-copy: rgb(255 255 255 / 82%);
}

.cl-global-footer.et_pb_section {
  position: relative;
  overflow: clip;
  padding: clamp(56px, 6vw, 78px) 0 0 !important;
  background: var(--cl-footer-navy) !important;
  color: var(--corvette-white);
}

.cl-global-footer.et_pb_section::before {
  display: none;
}

.cl-footer-primary-row.et_pb_row {
  display: grid !important;
  width: min(calc(100% - 48px), 1240px) !important;
  max-width: 1240px !important;
  grid-template-columns: minmax(270px, 1fr) minmax(190px, 0.62fr) minmax(320px, 1.08fr);
  gap: clamp(42px, 6vw, 82px);
  align-items: start;
  margin: 0 auto !important;
  padding: 0 0 clamp(54px, 6vw, 78px) !important;
}

.cl-footer-primary-row > .et_pb_column,
.cl-footer-bottom-row > .et_pb_column {
  width: auto !important;
  margin: 0 !important;
}

.cl-footer-column {
  min-width: 0;
}

.cl-footer-logo.et_pb_image {
  width: min(100%, 430px);
  margin: 0 0 28px !important;
}

.cl-footer-logo.et_pb_image .et_pb_image_wrap,
.cl-footer-logo.et_pb_image a,
.cl-footer-logo.et_pb_image img {
  display: block;
  width: 100%;
}

.cl-footer-logo.et_pb_image img {
  max-height: 104px;
  object-fit: contain;
  object-position: left center;
}

.cl-footer-fun-gallery.et_pb_gallery {
  width: min(100%, 420px);
  margin: 0 0 10px !important;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 18px;
  background: var(--cl-footer-band);
  box-shadow: 0 16px 38px rgb(0 0 0 / 22%);
}

.cl-footer-fun-gallery .et_pb_gallery_items,
.cl-footer-fun-gallery .et_pb_gallery_item,
.cl-footer-fun-gallery .et_pb_gallery_image,
.cl-footer-fun-gallery .et_pb_gallery_image a {
  aspect-ratio: 3 / 2;
}

.cl-footer-fun-gallery .et_pb_gallery_item,
.cl-footer-fun-gallery .et_pb_gallery_image,
.cl-footer-fun-gallery .et_pb_gallery_image a {
  overflow: hidden;
}

.cl-footer-fun-gallery .et_pb_gallery_image a {
  display: block;
}

.cl-footer-fun-gallery .et_pb_gallery_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transition: opacity 650ms ease;
}

.cl-footer-fun-gallery .et-pb-slider-arrows,
.cl-footer-fun-gallery .et-pb-controllers,
.cl-footer-fun-gallery .mfp-title {
  display: none !important;
}

.cl-footer-fun-caption.et_pb_text {
  width: min(100%, 420px);
  margin: 0 0 24px !important;
  color: var(--cl-footer-heading-blue) !important;
  font-family: "Montserrat", "Open Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.cl-footer-fun-caption p {
  margin: 0;
  padding: 0;
}

.cl-footer-brand-copy.et_pb_text,
.cl-footer-links.et_pb_text,
.cl-footer-bottom-copy.et_pb_text {
  margin: 0 !important;
  color: var(--cl-footer-copy) !important;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.7;
}

.cl-footer-brand-copy p,
.cl-footer-links p,
.cl-footer-bottom-copy p {
  padding: 0;
}

.cl-footer-brand-copy {
  max-width: 420px;
}

.cl-footer-brand-copy p {
  margin: 0;
  line-height: 1.62;
}

.cl-footer-brand-copy strong {
  color: var(--corvette-white);
  font-weight: 700;
}

.cl-footer-brand-copy p > strong:first-child {
  display: block;
  margin-bottom: 12px;
  color: rgb(255 255 255 / 74%);
  font-size: 0.84em;
  line-height: 1.45;
}

.cl-footer-brand-copy p > strong:first-child + br {
  display: none;
}

.cl-footer-heading.et_pb_heading {
  margin: 0 0 24px !important;
}

.cl-footer-heading h3 {
  padding: 0;
  color: var(--cl-footer-heading-blue) !important;
  font-family: "Montserrat", "Open Sans", Arial, sans-serif;
  font-size: clamp(21px, 1.5vw, 25px);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.cl-footer-heading h3::after {
  display: none;
}

.cl-footer-links ul {
  margin: 0;
  padding: 0 !important;
  list-style: none !important;
}

.cl-footer-links li {
  margin: 0;
  padding: 0 !important;
}

.cl-footer-links li + li {
  margin-top: 5px;
}

.cl-footer-links a,
.cl-footer-bottom-copy a {
  color: var(--corvette-white) !important;
  text-decoration-color: rgb(255 212 0 / 72%);
  text-underline-offset: 4px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.cl-footer-links li a {
  display: flex;
  min-height: 40px;
  align-items: center;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.cl-footer-links a:hover,
.cl-footer-bottom-copy a:hover {
  color: var(--cl-footer-yellow) !important;
  text-decoration-color: currentColor;
}

.cl-footer-links a:focus-visible,
.cl-footer-bottom-copy a:focus-visible,
.cl-footer-logo a:focus-visible {
  outline: 3px solid var(--cl-footer-yellow);
  outline-offset: 4px;
}

.cl-footer-facebook.et_pb_code,
.cl-footer-facebook .et_pb_code_inner {
  width: 100%;
  margin: 0 !important;
}

.cl-footer-facebook iframe {
  display: block;
  width: 100%;
  max-width: 500px;
  min-height: 420px;
  border: 0;
  border-radius: 0;
  background: var(--corvette-white);
}

.cl-footer-bottom-row.et_pb_row {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.cl-footer-bottom-column.et_pb_column,
.cl-footer-bottom-copy.et_pb_text,
.cl-footer-bottom-copy .et_pb_text_inner {
  width: 100% !important;
  max-width: none !important;
}

.cl-footer-bottom-copy.et_pb_text {
  display: block;
  font-size: 15px;
  line-height: 1.66;
}

.cl-footer-legal-bar {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(38px, 6vw, 84px);
  margin: 0;
  padding: 34px max(24px, calc((100vw - 1240px) / 2));
  background: rgb(0 0 0 / 13%);
}

.cl-footer-legal-bar p {
  margin: 0;
}

.cl-footer-legal-bar strong {
  display: block;
  margin-bottom: 7px;
  color: var(--corvette-white);
  font-family: "Montserrat", "Open Sans", Arial, sans-serif;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
}

.cl-footer-legal-bar span {
  display: block;
}

.cl-footer-licence-row {
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  background: var(--cl-footer-band);
  color: rgb(255 255 255 / 90%);
  text-align: center;
}

.cl-footer-licence-row p {
  margin: 0;
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 400;
  line-height: 1.5;
}

.cl-footer-licence-row strong {
  font-weight: 750;
}

.cl-footer-smallprint {
  position: relative;
  left: 50%;
  display: flex;
  width: 100vw;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  margin-inline-start: -50vw;
  padding: 16px 24px;
  background: #000000;
  color: rgb(255 255 255 / 82%);
  text-align: center;
}

.cl-footer-smallprint p:last-child {
  text-align: center;
}

@media (max-width: 980px) {
  .cl-footer-primary-row.et_pb_row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cl-footer-column--brand {
    grid-column: 1 / -1;
  }

  .cl-footer-logo.et_pb_image {
    width: min(100%, 470px);
  }
}

@media (max-width: 620px) {
  .cl-global-footer.et_pb_section {
    padding-top: 44px !important;
  }

  .cl-footer-primary-row.et_pb_row {
    width: calc(100% - 32px) !important;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cl-footer-column--brand {
    grid-column: auto;
  }

  .cl-footer-logo.et_pb_image {
    width: min(100%, 350px);
    margin-bottom: 22px !important;
  }

  .cl-footer-fun-gallery.et_pb_gallery,
  .cl-footer-fun-caption.et_pb_text {
    width: min(100%, 420px);
  }

  .cl-footer-facebook iframe {
    min-height: 500px;
  }

  .cl-footer-legal-bar {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 30px 16px;
  }

  .cl-footer-licence-row {
    min-height: 76px;
    padding-inline: 18px;
  }

  .cl-footer-smallprint {
    min-height: 68px;
    padding-inline: 18px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cl-footer-links a,
  .cl-footer-bottom-copy a,
  .cl-footer-fun-gallery .et_pb_gallery_image img {
    transition: none !important;
  }
}
